From 416c707da1041bde1fa0eb40e849b305b664bcbb Mon Sep 17 00:00:00 2001 From: UCloud Date: Thu, 8 Jun 2023 17:13:05 +0800 Subject: [PATCH] sdk: rolling update for 1.2.10-release (#62) --- VERSION | 2 +- examples/generic/pom.xml | 4 +- .../src/main/java/cn/ucloud/example/Main.java | 1 - examples/uhost/pom.xml | 4 +- .../src/main/java/cn/ucloud/example/Main.java | 6 +- pom.xml | 3 +- ucloud-sdk-java-common/pom.xml | 4 +- .../ucloud/common/client/DefaultClient.java | 1 + .../ucloud/common/credential/Credential.java | 1 + .../common/middlewares/LogMiddleware.java | 2 - .../cn/ucloud/common/request/Request.java | 1 - .../common/transport/DefaultTransport.java | 15 +- .../cn/ucloud/common/accessor/ConfigTest.java | 1 - .../ucloud/common/accessor/RequestTest.java | 4 +- .../cn/ucloud/common/client/ClientTest.java | 1 - .../common/credential/CredentialTest.java | 4 +- ucloud-sdk-java-cube/pom.xml | 48 + .../cn/ucloud/cube/client/CubeClient.java | 261 ++ .../cube/client/CubeClientInterface.java | 223 ++ .../models/CreateCubeDeploymentRequest.java | 219 ++ .../models/CreateCubeDeploymentResponse.java | 70 + .../cube/models/CreateCubePodRequest.java | 139 + .../cube/models/CreateCubePodResponse.java | 70 + .../models/DeleteCubeDeploymentRequest.java | 71 + .../models/DeleteCubeDeploymentResponse.java | 38 + .../cube/models/DeleteCubePodRequest.java | 136 + .../cube/models/DeleteCubePodResponse.java | 38 + .../cube/models/GetCubeDeploymentRequest.java | 105 + .../models/GetCubeDeploymentResponse.java | 54 + .../cube/models/GetCubeExecTokenRequest.java | 137 + .../cube/models/GetCubeExecTokenResponse.java | 70 + .../cube/models/GetCubeExtendInfoRequest.java | 104 + .../models/GetCubeExtendInfoResponse.java | 319 ++ .../cube/models/GetCubeMetricsRequest.java | 173 + .../cube/models/GetCubeMetricsResponse.java | 124 + .../cube/models/GetCubeTokenRequest.java | 137 + .../cube/models/GetCubeTokenResponse.java | 54 + .../cube/models/ListCubePodRequest.java | 184 ++ .../cube/models/ListCubePodResponse.java | 70 + .../cube/models/RenewCubePodRequest.java | 121 + .../cube/models/RenewCubePodResponse.java | 54 + ucloud-sdk-java-ipsecvpn/pom.xml | 6 +- .../ipsecvpn/client/IPSecVPNClient.java | 426 ++- .../client/IPSecVPNClientInterface.java | 187 +- .../models/CreateRemoteVPNGatewayRequest.java | 88 +- .../CreateRemoteVPNGatewayResponse.java | 38 +- .../models/CreateVPNGatewayRequest.java | 148 +- .../models/CreateVPNGatewayResponse.java | 38 +- .../models/CreateVPNTunnelRequest.java | 290 +- .../models/CreateVPNTunnelResponse.java | 38 +- .../models/DeleteRemoteVPNGatewayRequest.java | 58 +- .../DeleteRemoteVPNGatewayResponse.java | 32 +- .../models/DeleteVPNGatewayRequest.java | 68 +- .../models/DeleteVPNGatewayResponse.java | 32 +- .../models/DeleteVPNTunnelRequest.java | 58 +- .../models/DeleteVPNTunnelResponse.java | 32 +- .../DescribeRemoteVPNGatewayRequest.java | 86 +- .../DescribeRemoteVPNGatewayResponse.java | 219 +- .../models/DescribeVPNGatewayRequest.java | 97 +- .../models/DescribeVPNGatewayResponse.java | 401 ++- .../models/DescribeVPNTunnelRequest.java | 87 +- .../models/DescribeVPNTunnelResponse.java | 825 +++-- .../models/GetVPNGatewayPriceRequest.java | 78 +- .../models/GetVPNGatewayPriceResponse.java | 111 +- .../GetVPNGatewayUpgradePriceRequest.java | 76 +- .../GetVPNGatewayUpgradePriceResponse.java | 38 +- .../models/UpdateVPNGatewayRequest.java | 68 +- .../models/UpdateVPNGatewayResponse.java | 32 +- .../UpdateVPNTunnelAttributeRequest.java | 240 +- .../UpdateVPNTunnelAttributeResponse.java | 32 +- ucloud-sdk-java-pathx/pom.xml | 6 +- .../cn/ucloud/pathx/client/PathXClient.java | 926 +++--- .../pathx/client/PathXClientInterface.java | 380 ++- .../pathx/models/BindPathXSSLRequest.java | 71 +- .../pathx/models/BindPathXSSLResponse.java | 32 +- .../CreateGlobalSSHInstanceRequest.java | 148 +- .../CreateGlobalSSHInstanceResponse.java | 48 +- .../pathx/models/CreatePathXSSLRequest.java | 98 +- .../pathx/models/CreatePathXSSLResponse.java | 38 +- .../models/CreateUGAForwarderRequest.java | 211 +- .../models/CreateUGAForwarderResponse.java | 32 +- .../models/CreateUGAInstanceRequest.java | 91 +- .../models/CreateUGAInstanceResponse.java | 48 +- .../pathx/models/CreateUPathRequest.java | 117 +- .../pathx/models/CreateUPathResponse.java | 38 +- .../DeleteGlobalSSHInstanceRequest.java | 48 +- .../DeleteGlobalSSHInstanceResponse.java | 32 +- .../pathx/models/DeletePathXSSLRequest.java | 48 +- .../pathx/models/DeletePathXSSLResponse.java | 32 +- .../models/DeleteUGAForwarderRequest.java | 131 +- .../models/DeleteUGAForwarderResponse.java | 32 +- .../models/DeleteUGAInstanceRequest.java | 48 +- .../models/DeleteUGAInstanceResponse.java | 32 +- .../pathx/models/DeleteUPathRequest.java | 48 +- .../pathx/models/DeleteUPathResponse.java | 32 +- .../DescribeGlobalSSHInstanceRequest.java | 48 +- .../DescribeGlobalSSHInstanceResponse.java | 469 +-- .../DescribePathXLineConfigRequest.java | 35 +- .../DescribePathXLineConfigResponse.java | 525 +-- .../pathx/models/DescribePathXSSLRequest.java | 78 +- .../models/DescribePathXSSLResponse.java | 329 +- .../models/DescribeUGAInstanceRequest.java | 68 +- .../models/DescribeUGAInstanceResponse.java | 863 ++--- .../pathx/models/DescribeUPathRequest.java | 48 +- .../pathx/models/DescribeUPathResponse.java | 477 +-- .../models/DescribeUPathTemplateRequest.java | 48 +- .../models/DescribeUPathTemplateResponse.java | 264 +- .../models/GetGlobalSSHPriceRequest.java | 68 +- .../models/GetGlobalSSHPriceResponse.java | 38 +- .../GetGlobalSSHUpdatePriceRequest.java | 78 +- .../GetGlobalSSHUpdatePriceResponse.java | 38 +- .../pathx/models/GetPathXMetricRequest.java | 97 +- .../pathx/models/GetPathXMetricResponse.java | 187 +- .../models/ModifyGlobalSSHPortRequest.java | 58 +- .../models/ModifyGlobalSSHPortResponse.java | 32 +- .../models/ModifyGlobalSSHRemarkRequest.java | 58 +- .../models/ModifyGlobalSSHRemarkResponse.java | 32 +- .../models/ModifyGlobalSSHTypeRequest.java | 84 +- .../models/ModifyGlobalSSHTypeResponse.java | 32 +- .../models/ModifyUPathBandwidthRequest.java | 58 +- .../models/ModifyUPathBandwidthResponse.java | 32 +- .../models/ModifyUPathTemplateRequest.java | 120 +- .../models/ModifyUPathTemplateResponse.java | 32 +- .../pathx/models/UGABindUPathRequest.java | 68 +- .../pathx/models/UGABindUPathResponse.java | 32 +- .../pathx/models/UGAUnBindUPathRequest.java | 58 +- .../pathx/models/UGAUnBindUPathResponse.java | 32 +- .../pathx/models/UnBindPathXSSLRequest.java | 71 +- .../pathx/models/UnBindPathXSSLResponse.java | 32 +- .../models/UpdatePathXWhitelistRequest.java | 62 +- .../models/UpdatePathXWhitelistResponse.java | 32 +- ucloud-sdk-java-uaccount/pom.xml | 6 +- .../uaccount/client/UAccountClient.java | 234 +- .../client/UAccountClientInterface.java | 103 +- .../models/AddMemberToProjectRequest.java | 58 +- .../models/AddMemberToProjectResponse.java | 32 +- .../uaccount/models/FreezeMemberRequest.java | 38 +- .../uaccount/models/FreezeMemberResponse.java | 32 +- .../models/GetNetworkMaskRequest.java | 33 +- .../models/GetNetworkMaskResponse.java | 88 +- .../models/GetProjectListRequest.java | 39 +- .../models/GetProjectListResponse.java | 245 +- .../uaccount/models/GetRegionRequest.java | 33 +- .../uaccount/models/GetRegionResponse.java | 183 +- .../RemoveMemberFromProjectRequest.java | 48 +- .../RemoveMemberFromProjectResponse.java | 32 +- .../models/SetNetworkMaskRequest.java | 58 +- .../models/SetNetworkMaskResponse.java | 32 +- ucloud-sdk-java-ubill/pom.xml | 6 +- .../cn/ucloud/ubill/client/UBillClient.java | 203 +- .../ubill/client/UBillClientInterface.java | 90 +- .../ubill/models/CreateRenewRequest.java | 51 +- .../ubill/models/CreateRenewResponse.java | 38 +- .../ubill/models/GetBalanceRequest.java | 33 +- .../ubill/models/GetBalanceResponse.java | 156 +- .../models/GetBillDataFileUrlRequest.java | 104 +- .../models/GetBillDataFileUrlResponse.java | 48 +- .../ubill/models/ListUBillDetailRequest.java | 145 +- .../ubill/models/ListUBillDetailResponse.java | 708 ++-- .../models/ListUBillOverviewRequest.java | 58 +- .../models/ListUBillOverviewResponse.java | 405 ++- .../models/ModifyAutoRenewFlagRequest.java | 51 +- .../models/ModifyAutoRenewFlagResponse.java | 131 +- ucloud-sdk-java-ucdn/pom.xml | 6 +- .../cn/ucloud/ucdn/client/UCDNClient.java | 971 +++--- .../ucdn/client/UCDNClientInterface.java | 405 ++- .../ucdn/models/AddCertificateRequest.java | 77 +- .../ucdn/models/AddCertificateResponse.java | 32 +- .../ControlUcdnDomainCacheAccessRequest.java | 60 +- .../ControlUcdnDomainCacheAccessResponse.java | 32 +- .../ucdn/models/DeleteCertificateRequest.java | 47 +- .../models/DeleteCertificateResponse.java | 32 +- ...scribeNewUcdnPrefetchCacheTaskRequest.java | 101 +- ...cribeNewUcdnPrefetchCacheTaskResponse.java | 275 +- ...escribeNewUcdnRefreshCacheTaskRequest.java | 101 +- ...scribeNewUcdnRefreshCacheTaskResponse.java | 275 +- .../ucdn/models/GetAuthConfigRequest.java | 67 +- .../ucdn/models/GetAuthConfigResponse.java | 189 +- .../ucdn/models/GetCertificateV2Request.java | 58 +- .../ucdn/models/GetCertificateV2Response.java | 271 +- .../GetNewUcdnDomainHitRateRequest.java | 90 +- .../GetNewUcdnDomainHitRateResponse.java | 111 +- ...GetNewUcdnLogRefererStatisticsRequest.java | 89 +- ...etNewUcdnLogRefererStatisticsResponse.java | 161 +- .../GetNewUcdnLogUrlStatisticsRequest.java | 97 +- .../GetNewUcdnLogUrlStatisticsResponse.java | 187 +- .../GetUcdnDomain95BandwidthV2Request.java | 90 +- .../GetUcdnDomain95BandwidthV2Response.java | 48 +- ...cdnDomainBandwidthByIpProtocolRequest.java | 99 +- ...dnDomainBandwidthByIpProtocolResponse.java | 113 +- .../GetUcdnDomainBandwidthV2Request.java | 120 +- .../GetUcdnDomainBandwidthV2Response.java | 113 +- .../models/GetUcdnDomainConfigRequest.java | 101 +- .../models/GetUcdnDomainConfigResponse.java | 1403 ++++---- .../models/GetUcdnDomainHitRateRequest.java | 109 +- .../models/GetUcdnDomainHitRateResponse.java | 111 +- .../GetUcdnDomainHttpCodeV2Request.java | 109 +- .../GetUcdnDomainHttpCodeV2Response.java | 1721 +++++----- .../models/GetUcdnDomainInfoListRequest.java | 58 +- .../models/GetUcdnDomainInfoListResponse.java | 99 +- .../models/GetUcdnDomainLogV2Request.java | 70 +- .../models/GetUcdnDomainLogV2Response.java | 137 +- .../GetUcdnDomainOriginRequestNumRequest.java | 100 +- ...GetUcdnDomainOriginRequestNumResponse.java | 89 +- .../GetUcdnDomainPrefetchEnableRequest.java | 47 +- .../GetUcdnDomainPrefetchEnableResponse.java | 38 +- .../GetUcdnDomainRequestNumV3Request.java | 110 +- .../GetUcdnDomainRequestNumV3Response.java | 89 +- .../models/GetUcdnPassBandwidthV2Request.java | 99 +- .../GetUcdnPassBandwidthV2Response.java | 89 +- .../GetUcdnProIspBandwidthV2Request.java | 104 +- .../GetUcdnProIspBandwidthV2Response.java | 161 +- .../GetUcdnProIspRequestNumV2Request.java | 100 +- .../GetUcdnProIspRequestNumV2Response.java | 137 +- .../ucdn/models/GetUcdnTrafficV2Request.java | 48 +- .../ucdn/models/GetUcdnTrafficV2Response.java | 133 +- .../PrefetchNewUcdnDomainCacheRequest.java | 49 +- .../PrefetchNewUcdnDomainCacheResponse.java | 38 +- .../ucdn/models/QueryIpLocationRequest.java | 41 +- .../ucdn/models/QueryIpLocationResponse.java | 157 +- .../RefreshNewUcdnDomainCacheRequest.java | 60 +- .../RefreshNewUcdnDomainCacheResponse.java | 38 +- .../models/SwitchUcdnChargeTypeRequest.java | 48 +- .../models/SwitchUcdnChargeTypeResponse.java | 32 +- .../models/UpdateUcdnDomainStatusRequest.java | 67 +- .../UpdateUcdnDomainStatusResponse.java | 32 +- ucloud-sdk-java-udb/pom.xml | 6 +- .../java/cn/ucloud/udb/client/UDBClient.java | 1879 ++++++----- .../ucloud/udb/client/UDBClientInterface.java | 789 +++-- .../BackupUDBInstanceBinlogRequest.java | 88 +- .../BackupUDBInstanceBinlogResponse.java | 32 +- .../BackupUDBInstanceErrorLogRequest.java | 78 +- .../BackupUDBInstanceErrorLogResponse.java | 32 +- .../udb/models/BackupUDBInstanceRequest.java | 118 +- .../udb/models/BackupUDBInstanceResponse.java | 32 +- .../BackupUDBInstanceSlowLogRequest.java | 88 +- .../BackupUDBInstanceSlowLogResponse.java | 32 +- .../models/ChangeUDBParamGroupRequest.java | 78 +- .../models/ChangeUDBParamGroupResponse.java | 32 +- .../CheckRecoverUDBInstanceRequest.java | 68 +- .../CheckRecoverUDBInstanceResponse.java | 38 +- .../CheckUDBInstanceToHAAllowanceRequest.java | 58 +- ...CheckUDBInstanceToHAAllowanceResponse.java | 38 +- .../ucloud/udb/models/ClearUDBLogRequest.java | 88 +- .../udb/models/ClearUDBLogResponse.java | 32 +- .../CreateMongoDBReplicaSetRequest.java | 239 +- .../CreateMongoDBReplicaSetResponse.java | 39 +- .../CreateUDBInstanceByRecoveryRequest.java | 167 +- .../CreateUDBInstanceByRecoveryResponse.java | 38 +- .../udb/models/CreateUDBInstanceRequest.java | 311 +- .../udb/models/CreateUDBInstanceResponse.java | 38 +- .../models/CreateUDBParamGroupRequest.java | 107 +- .../models/CreateUDBParamGroupResponse.java | 38 +- .../CreateUDBReplicationInstanceRequest.java | 118 +- .../CreateUDBReplicationInstanceResponse.java | 38 +- .../models/CreateUDBRouteInstanceRequest.java | 171 +- .../CreateUDBRouteInstanceResponse.java | 38 +- .../udb/models/CreateUDBSlaveRequest.java | 206 +- .../udb/models/CreateUDBSlaveResponse.java | 38 +- .../udb/models/DeleteUDBInstanceRequest.java | 78 +- .../udb/models/DeleteUDBInstanceResponse.java | 32 +- .../models/DeleteUDBLogPackageRequest.java | 78 +- .../models/DeleteUDBLogPackageResponse.java | 32 +- .../models/DeleteUDBParamGroupRequest.java | 78 +- .../models/DeleteUDBParamGroupResponse.java | 32 +- .../DescribeUDBBackupBlacklistRequest.java | 68 +- .../DescribeUDBBackupBlacklistResponse.java | 38 +- .../udb/models/DescribeUDBBackupRequest.java | 130 +- .../udb/models/DescribeUDBBackupResponse.java | 375 ++- .../DescribeUDBBinlogBackupURLRequest.java | 68 +- .../DescribeUDBBinlogBackupURLResponse.java | 48 +- ...DescribeUDBInstanceBackupStateRequest.java | 78 +- ...escribeUDBInstanceBackupStateResponse.java | 38 +- .../DescribeUDBInstanceBackupURLRequest.java | 87 +- .../DescribeUDBInstanceBackupURLResponse.java | 58 +- ...beUDBInstanceBinlogBackupStateRequest.java | 78 +- ...eUDBInstanceBinlogBackupStateResponse.java | 38 +- .../DescribeUDBInstanceBinlogRequest.java | 88 +- .../DescribeUDBInstanceBinlogResponse.java | 133 +- .../models/DescribeUDBInstanceLogRequest.java | 98 +- .../DescribeUDBInstanceLogResponse.java | 48 +- .../DescribeUDBInstancePriceRequest.java | 142 +- .../DescribeUDBInstancePriceResponse.java | 89 +- .../models/DescribeUDBInstanceRequest.java | 128 +- .../models/DescribeUDBInstanceResponse.java | 2156 +++++++------ .../DescribeUDBInstanceStateRequest.java | 68 +- .../DescribeUDBInstanceStateResponse.java | 37 +- ...escribeUDBInstanceUpgradePriceRequest.java | 107 +- ...scribeUDBInstanceUpgradePriceResponse.java | 38 +- .../DescribeUDBLogBackupURLRequest.java | 77 +- .../DescribeUDBLogBackupURLResponse.java | 48 +- .../models/DescribeUDBLogPackageRequest.java | 130 +- .../models/DescribeUDBLogPackageResponse.java | 323 +- .../models/DescribeUDBParamGroupRequest.java | 117 +- .../models/DescribeUDBParamGroupResponse.java | 381 ++- .../DescribeUDBSplittingInfoRequest.java | 58 +- .../DescribeUDBSplittingInfoResponse.java | 246 +- .../udb/models/DescribeUDBTypeRequest.java | 99 +- .../udb/models/DescribeUDBTypeResponse.java | 71 +- .../models/DisableUDBRWSplittingRequest.java | 58 +- .../models/DisableUDBRWSplittingResponse.java | 32 +- .../models/EditUDBBackupBlacklistRequest.java | 78 +- .../EditUDBBackupBlacklistResponse.java | 32 +- .../models/EnableUDBRWSplittingRequest.java | 68 +- .../models/EnableUDBRWSplittingResponse.java | 48 +- .../models/ExtractUDBParamGroupRequest.java | 64 +- .../models/ExtractUDBParamGroupResponse.java | 38 +- ...UDBInstanceEarliestRecoverTimeRequest.java | 68 +- ...DBInstanceEarliestRecoverTimeResponse.java | 38 +- .../models/GetUDBClientConnNumRequest.java | 67 +- .../models/GetUDBClientConnNumResponse.java | 89 +- .../models/ModifyUDBInstanceNameRequest.java | 78 +- .../models/ModifyUDBInstanceNameResponse.java | 32 +- .../ModifyUDBInstancePasswordRequest.java | 88 +- .../ModifyUDBInstancePasswordResponse.java | 32 +- .../models/PromoteUDBInstanceToHARequest.java | 57 +- .../PromoteUDBInstanceToHAResponse.java | 32 +- .../udb/models/PromoteUDBSlaveRequest.java | 78 +- .../udb/models/PromoteUDBSlaveResponse.java | 32 +- .../udb/models/ResizeUDBInstanceRequest.java | 138 +- .../udb/models/ResizeUDBInstanceResponse.java | 32 +- .../udb/models/RestartRWSplittingRequest.java | 58 +- .../models/RestartRWSplittingResponse.java | 32 +- .../udb/models/RestartUDBInstanceRequest.java | 68 +- .../models/RestartUDBInstanceResponse.java | 32 +- .../udb/models/SetUDBRWSplittingRequest.java | 101 +- .../udb/models/SetUDBRWSplittingResponse.java | 32 +- .../udb/models/StartUDBInstanceRequest.java | 68 +- .../udb/models/StartUDBInstanceResponse.java | 32 +- .../udb/models/StopUDBInstanceRequest.java | 78 +- .../udb/models/StopUDBInstanceResponse.java | 32 +- .../models/SwitchUDBHAToSentinelRequest.java | 77 +- .../models/SwitchUDBHAToSentinelResponse.java | 32 +- .../models/SwitchUDBInstanceToHARequest.java | 86 +- .../models/SwitchUDBInstanceToHAResponse.java | 38 +- ...pdateUDBInstanceBackupStrategyRequest.java | 105 +- ...dateUDBInstanceBackupStrategyResponse.java | 32 +- ...teUDBInstanceSlaveBackupSwitchRequest.java | 88 +- ...eUDBInstanceSlaveBackupSwitchResponse.java | 32 +- .../models/UpdateUDBParamGroupRequest.java | 119 +- .../models/UpdateUDBParamGroupResponse.java | 32 +- .../models/UpgradeUDBInstanceToHARequest.java | 67 +- .../UpgradeUDBInstanceToHAResponse.java | 32 +- .../models/UploadUDBParamGroupRequest.java | 108 +- .../models/UploadUDBParamGroupResponse.java | 38 +- ucloud-sdk-java-udbproxy/pom.xml | 6 +- .../udbproxy/client/UDBProxyClient.java | 49 +- .../client/UDBProxyClientInterface.java | 31 +- .../models/ListUDBProxyClientRequest.java | 67 +- .../models/ListUDBProxyClientResponse.java | 403 ++- ucloud-sdk-java-udi/pom.xml | 6 +- .../java/cn/ucloud/udi/client/UDIClient.java | 208 +- .../ucloud/udi/client/UDIClientInterface.java | 96 +- .../models/CreateFunctionTemplateRequest.java | 237 +- .../CreateFunctionTemplateResponse.java | 38 +- .../udi/models/CreateMediaTaskRequest.java | 117 +- .../udi/models/CreateMediaTaskResponse.java | 38 +- .../models/DeleteFunctionTemplateRequest.java | 67 +- .../DeleteFunctionTemplateResponse.java | 32 +- .../DescribeFunctionTemplateRequest.java | 67 +- .../DescribeFunctionTemplateResponse.java | 111 +- .../models/DescribeMediaFunctionsRequest.java | 67 +- .../DescribeMediaFunctionsResponse.java | 395 ++- .../udi/models/DescribeMediaTaskRequest.java | 67 +- .../udi/models/DescribeMediaTaskResponse.java | 111 +- ucloud-sdk-java-udisk/pom.xml | 6 +- .../cn/ucloud/udisk/client/UDiskClient.java | 639 ++-- .../udisk/client/UDiskClientInterface.java | 252 +- .../udisk/models/AttachUDiskRequest.java | 98 +- .../udisk/models/AttachUDiskResponse.java | 68 +- .../udisk/models/CloneUDiskRequest.java | 213 +- .../udisk/models/CloneUDiskResponse.java | 39 +- .../models/CloneUDiskSnapshotRequest.java | 213 +- .../models/CloneUDiskSnapshotResponse.java | 39 +- .../models/CloneUDiskUDataArkRequest.java | 223 +- .../models/CloneUDiskUDataArkResponse.java | 39 +- .../models/CreateAttachUDiskRequest.java | 232 +- .../models/CreateAttachUDiskResponse.java | 68 +- .../udisk/models/CreateUDiskRequest.java | 216 +- .../udisk/models/CreateUDiskResponse.java | 39 +- .../models/CreateUDiskSnapshotRequest.java | 108 +- .../models/CreateUDiskSnapshotResponse.java | 39 +- .../udisk/models/DeleteUDiskRequest.java | 68 +- .../udisk/models/DeleteUDiskResponse.java | 32 +- .../models/DeleteUDiskSnapshotRequest.java | 78 +- .../models/DeleteUDiskSnapshotResponse.java | 32 +- .../models/DescribeRecycleUDiskRequest.java | 78 +- .../models/DescribeRecycleUDiskResponse.java | 245 +- .../models/DescribeUDiskPriceRequest.java | 172 +- .../models/DescribeUDiskPriceResponse.java | 157 +- .../udisk/models/DescribeUDiskRequest.java | 187 +- .../udisk/models/DescribeUDiskResponse.java | 901 +++--- .../models/DescribeUDiskSnapshotRequest.java | 97 +- .../models/DescribeUDiskSnapshotResponse.java | 531 +-- .../DescribeUDiskUpgradePriceRequest.java | 152 +- .../DescribeUDiskUpgradePriceResponse.java | 48 +- .../udisk/models/DetachUDiskRequest.java | 88 +- .../udisk/models/DetachUDiskResponse.java | 58 +- .../udisk/models/RecoverUDiskRequest.java | 88 +- .../udisk/models/RecoverUDiskResponse.java | 32 +- .../udisk/models/RenameUDiskRequest.java | 78 +- .../udisk/models/RenameUDiskResponse.java | 32 +- .../udisk/models/ResizeUDiskRequest.java | 98 +- .../udisk/models/ResizeUDiskResponse.java | 32 +- .../udisk/models/RestoreUDiskRequest.java | 88 +- .../udisk/models/RestoreUDiskResponse.java | 32 +- .../models/SetUDiskUDataArkModeRequest.java | 87 +- .../models/SetUDiskUDataArkModeResponse.java | 32 +- ucloud-sdk-java-udpn/pom.xml | 6 +- .../cn/ucloud/udpn/client/UDPNClient.java | 233 +- .../udpn/client/UDPNClientInterface.java | 97 +- .../udpn/models/AllocateUDPNRequest.java | 115 +- .../udpn/models/AllocateUDPNResponse.java | 38 +- .../udpn/models/DescribeUDPNRequest.java | 78 +- .../udpn/models/DescribeUDPNResponse.java | 219 +- .../udpn/models/GetUDPNLineListRequest.java | 49 +- .../udpn/models/GetUDPNLineListResponse.java | 127 +- .../udpn/models/GetUDPNPriceRequest.java | 96 +- .../udpn/models/GetUDPNPriceResponse.java | 48 +- .../models/GetUDPNUpgradePriceRequest.java | 68 +- .../models/GetUDPNUpgradePriceResponse.java | 38 +- .../models/ModifyUDPNBandwidthRequest.java | 68 +- .../models/ModifyUDPNBandwidthResponse.java | 32 +- .../udpn/models/ReleaseUDPNRequest.java | 58 +- .../udpn/models/ReleaseUDPNResponse.java | 32 +- ucloud-sdk-java-uec/pom.xml | 6 +- .../java/cn/ucloud/uec/client/UECClient.java | 1342 +++++--- .../ucloud/uec/client/UECClientInterface.java | 569 +++- .../uec/models/BindUEcFirewallRequest.java | 57 +- .../uec/models/BindUEcFirewallResponse.java | 32 +- .../models/CreateUEcCustomImageRequest.java | 67 +- .../models/CreateUEcCustomImageResponse.java | 38 +- .../uec/models/CreateUEcFirewallRequest.java | 224 +- .../uec/models/CreateUEcFirewallResponse.java | 38 +- .../uec/models/CreateUEcHolderRequest.java | 522 +-- .../uec/models/CreateUEcHolderResponse.java | 38 +- .../uec/models/CreateUEcSubnetRequest.java | 77 +- .../uec/models/CreateUEcSubnetResponse.java | 38 +- .../uec/models/CreateUEcVHostRequest.java | 240 +- .../uec/models/CreateUEcVHostResponse.java | 67 +- .../models/DeleteUEcCustomImageRequest.java | 57 +- .../models/DeleteUEcCustomImageResponse.java | 38 +- .../uec/models/DeleteUEcHolderRequest.java | 49 +- .../uec/models/DeleteUEcHolderResponse.java | 32 +- .../uec/models/DeleteUEcSubnetRequest.java | 47 +- .../uec/models/DeleteUEcSubnetResponse.java | 32 +- .../uec/models/DeleteUEcVHostRequest.java | 50 +- .../uec/models/DeleteUEcVHostResponse.java | 32 +- .../models/DescribeUEcFirewallRequest.java | 78 +- .../DescribeUEcFirewallResourceRequest.java | 47 +- .../DescribeUEcFirewallResourceResponse.java | 167 +- .../models/DescribeUEcFirewallResponse.java | 380 ++- .../models/DescribeUEcHolderIDCRequest.java | 90 +- .../models/DescribeUEcHolderIDCResponse.java | 209 +- .../uec/models/DescribeUEcHolderRequest.java | 71 +- .../uec/models/DescribeUEcHolderResponse.java | 1261 +++++--- .../uec/models/DescribeUEcIDCRequest.java | 100 +- .../uec/models/DescribeUEcIDCResponse.java | 209 +- .../uec/models/DescribeUEcSubnetRequest.java | 58 +- .../uec/models/DescribeUEcSubnetResponse.java | 235 +- .../models/DescribeUEcVHostISPRequest.java | 59 +- .../models/DescribeUEcVHostISPResponse.java | 157 +- .../uec/models/DescribeUEcVHostRequest.java | 81 +- .../uec/models/DescribeUEcVHostResponse.java | 667 ++-- .../uec/models/GetUEcHolderLogRequest.java | 57 +- .../uec/models/GetUEcHolderLogResponse.java | 38 +- .../models/GetUEcHolderMetricsRequest.java | 90 +- .../models/GetUEcHolderMetricsResponse.java | 241 +- .../uec/models/GetUEcIDCCutInfoRequest.java | 33 +- .../uec/models/GetUEcIDCCutInfoResponse.java | 277 +- .../uec/models/GetUEcIDCVHostDataRequest.java | 80 +- .../models/GetUEcIDCVHostDataResponse.java | 345 +- .../ucloud/uec/models/GetUEcImageRequest.java | 68 +- .../uec/models/GetUEcImageResponse.java | 351 +- .../uec/models/GetUEcPodPriceRequest.java | 108 +- .../uec/models/GetUEcPodPriceResponse.java | 48 +- .../uec/models/GetUEcUpgradePriceRequest.java | 97 +- .../models/GetUEcUpgradePriceResponse.java | 38 +- .../uec/models/GetUEcVHostDataRequest.java | 80 +- .../uec/models/GetUEcVHostDataResponse.java | 345 +- .../uec/models/GetUEcVHostPriceRequest.java | 158 +- .../uec/models/GetUEcVHostPriceResponse.java | 48 +- .../models/ImportUEcCustomImageRequest.java | 111 +- .../models/ImportUEcCustomImageResponse.java | 38 +- .../uec/models/LoginUEcDockerRequest.java | 57 +- .../uec/models/LoginUEcDockerResponse.java | 58 +- .../uec/models/ModifyUEcBandwidthRequest.java | 57 +- .../models/ModifyUEcBandwidthResponse.java | 32 +- .../models/ModifyUEcHolderNameRequest.java | 57 +- .../models/ModifyUEcHolderNameResponse.java | 32 +- .../uec/models/ModifyUEcImageNameRequest.java | 67 +- .../models/ModifyUEcImageNameResponse.java | 32 +- .../uec/models/PoweroffUEcVHostRequest.java | 50 +- .../uec/models/PoweroffUEcVHostResponse.java | 32 +- .../uec/models/ReinstallUEcVHostRequest.java | 87 +- .../uec/models/ReinstallUEcVHostResponse.java | 32 +- .../uec/models/RestartUEcHolderRequest.java | 50 +- .../uec/models/RestartUEcHolderResponse.java | 32 +- .../uec/models/RestartUEcVHostRequest.java | 50 +- .../uec/models/RestartUEcVHostResponse.java | 32 +- .../uec/models/StartUEcVHostRequest.java | 50 +- .../uec/models/StartUEcVHostResponse.java | 32 +- .../uec/models/StopUEcVHostRequest.java | 50 +- .../uec/models/StopUEcVHostResponse.java | 32 +- .../uec/models/UnBindUEcFirewallRequest.java | 57 +- .../uec/models/UnBindUEcFirewallResponse.java | 32 +- .../UpdateUEcFirewallAttributeRequest.java | 67 +- .../UpdateUEcFirewallAttributeResponse.java | 32 +- .../uec/models/UpdateUEcFirewallRequest.java | 217 +- .../uec/models/UpdateUEcFirewallResponse.java | 32 +- .../uec/models/UpdateUEcSubnetRequest.java | 67 +- .../uec/models/UpdateUEcSubnetResponse.java | 32 +- ucloud-sdk-java-ufile/pom.xml | 6 +- .../cn/ucloud/ufile/client/UFileClient.java | 613 ++-- .../ufile/client/UFileClientInterface.java | 254 +- .../ufile/models/CreateBucketRequest.java | 68 +- .../ufile/models/CreateBucketResponse.java | 48 +- .../models/CreateUFileLifeCycleRequest.java | 117 +- .../models/CreateUFileLifeCycleResponse.java | 38 +- .../ufile/models/CreateUFileTokenRequest.java | 121 +- .../models/CreateUFileTokenResponse.java | 378 ++- .../ufile/models/DeleteBucketRequest.java | 48 +- .../ufile/models/DeleteBucketResponse.java | 48 +- .../models/DeleteUFileLifeCycleRequest.java | 67 +- .../models/DeleteUFileLifeCycleResponse.java | 32 +- .../ufile/models/DeleteUFileTokenRequest.java | 58 +- .../models/DeleteUFileTokenResponse.java | 32 +- .../ufile/models/DescribeBucketRequest.java | 79 +- .../ufile/models/DescribeBucketResponse.java | 421 ++- .../models/DescribeUFileLifeCycleRequest.java | 67 +- .../DescribeUFileLifeCycleResponse.java | 235 +- .../models/DescribeUFileTokenRequest.java | 79 +- .../models/DescribeUFileTokenResponse.java | 368 ++- .../models/GetUFileDailyReportRequest.java | 77 +- .../models/GetUFileDailyReportResponse.java | 503 +-- .../models/GetUFileQuotaInfoRequest.java | 61 +- .../models/GetUFileQuotaInfoResponse.java | 187 +- .../models/GetUFileQuotaPriceRequest.java | 68 +- .../models/GetUFileQuotaPriceResponse.java | 38 +- .../ufile/models/GetUFileQuotaRequest.java | 48 +- .../ufile/models/GetUFileQuotaResponse.java | 38 +- .../ufile/models/GetUFileReportRequest.java | 68 +- .../ufile/models/GetUFileReportResponse.java | 133 +- .../ufile/models/SetUFileRefererRequest.java | 101 +- .../ufile/models/SetUFileRefererResponse.java | 32 +- .../ufile/models/UpdateBucketRequest.java | 58 +- .../ufile/models/UpdateBucketResponse.java | 48 +- .../models/UpdateUFileLifeCycleRequest.java | 127 +- .../models/UpdateUFileLifeCycleResponse.java | 32 +- .../ufile/models/UpdateUFileTokenRequest.java | 110 +- .../models/UpdateUFileTokenResponse.java | 32 +- .../ufile/models/UpdateUdsRuleRequest.java | 161 +- .../ufile/models/UpdateUdsRuleResponse.java | 48 +- ucloud-sdk-java-ufs/pom.xml | 6 +- .../java/cn/ucloud/ufs/client/UFSClient.java | 306 +- .../ucloud/ufs/client/UFSClientInterface.java | 139 +- .../models/AddUFSVolumeMountPointRequest.java | 87 +- .../AddUFSVolumeMountPointResponse.java | 32 +- .../ufs/models/CreateUFSVolumeRequest.java | 137 +- .../ufs/models/CreateUFSVolumeResponse.java | 58 +- .../ufs/models/DescribeUFSVolume2Request.java | 78 +- .../models/DescribeUFSVolume2Response.java | 375 ++- .../DescribeUFSVolumeMountpointRequest.java | 57 +- .../DescribeUFSVolumeMountpointResponse.java | 203 +- .../models/DescribeUFSVolumePriceRequest.java | 97 +- .../DescribeUFSVolumePriceResponse.java | 111 +- .../ufs/models/ExtendUFSVolumeRequest.java | 64 +- .../ufs/models/ExtendUFSVolumeResponse.java | 32 +- .../RemoveUFSVolumeMountPointRequest.java | 77 +- .../RemoveUFSVolumeMountPointResponse.java | 32 +- .../ufs/models/RemoveUFSVolumeRequest.java | 58 +- .../ufs/models/RemoveUFSVolumeResponse.java | 32 +- .../models/UpdateUFSVolumeInfoRequest.java | 77 +- .../models/UpdateUFSVolumeInfoResponse.java | 32 +- ucloud-sdk-java-uhost/pom.xml | 6 +- .../cn/ucloud/uhost/client/UHostClient.java | 1159 ++++--- .../uhost/client/UHostClientInterface.java | 480 ++- .../uhost/models/CopyCustomImageRequest.java | 107 +- .../uhost/models/CopyCustomImageResponse.java | 38 +- .../models/CreateCustomImageRequest.java | 87 +- .../models/CreateCustomImageResponse.java | 38 +- .../models/CreateIsolationGroupRequest.java | 71 +- .../models/CreateIsolationGroupResponse.java | 38 +- .../models/CreateUHostInstanceRequest.java | 967 ++++-- .../models/CreateUHostInstanceResponse.java | 52 +- .../models/CreateUHostKeyPairRequest.java | 67 +- .../models/CreateUHostKeyPairResponse.java | 182 +- .../models/DeleteIsolationGroupRequest.java | 58 +- .../models/DeleteIsolationGroupResponse.java | 38 +- .../models/DeleteUHostKeyPairsRequest.java | 70 +- .../models/DeleteUHostKeyPairsResponse.java | 32 +- ...DescribeAvailableInstanceTypesRequest.java | 71 +- ...escribeAvailableInstanceTypesResponse.java | 1112 ++++--- .../uhost/models/DescribeImageRequest.java | 117 +- .../uhost/models/DescribeImageResponse.java | 456 +-- .../models/DescribeIsolationGroupRequest.java | 84 +- .../DescribeIsolationGroupResponse.java | 197 +- .../models/DescribeUHostInstanceRequest.java | 148 +- .../models/DescribeUHostInstanceResponse.java | 1666 ++++++---- .../models/DescribeUHostKeyPairsRequest.java | 98 +- .../models/DescribeUHostKeyPairsResponse.java | 167 +- .../models/DescribeUHostTagsRequest.java | 57 +- .../models/DescribeUHostTagsResponse.java | 121 +- .../GetAttachedDiskUpgradePriceRequest.java | 96 +- .../GetAttachedDiskUpgradePriceResponse.java | 38 +- .../models/GetUHostInstancePriceRequest.java | 349 +- .../models/GetUHostInstancePriceResponse.java | 317 +- .../GetUHostInstanceVncInfoRequest.java | 67 +- .../GetUHostInstanceVncInfoResponse.java | 68 +- .../models/GetUHostRenewPriceRequest.java | 67 +- .../models/GetUHostRenewPriceResponse.java | 113 +- .../models/GetUHostUpgradePriceRequest.java | 109 +- .../models/GetUHostUpgradePriceResponse.java | 48 +- .../models/ImportCustomImageRequest.java | 117 +- .../models/ImportCustomImageResponse.java | 38 +- .../models/ImportUHostKeyPairsRequest.java | 77 +- .../models/ImportUHostKeyPairsResponse.java | 58 +- .../models/LeaveIsolationGroupRequest.java | 78 +- .../models/LeaveIsolationGroupResponse.java | 38 +- .../uhost/models/ModifyUHostIPRequest.java | 88 +- .../uhost/models/ModifyUHostIPResponse.java | 38 +- .../ModifyUHostInstanceNameRequest.java | 77 +- .../ModifyUHostInstanceNameResponse.java | 38 +- .../ModifyUHostInstanceRemarkRequest.java | 77 +- .../ModifyUHostInstanceRemarkResponse.java | 38 +- .../models/ModifyUHostInstanceTagRequest.java | 77 +- .../ModifyUHostInstanceTagResponse.java | 38 +- .../models/PoweroffUHostInstanceRequest.java | 67 +- .../models/PoweroffUHostInstanceResponse.java | 38 +- .../models/RebootUHostInstanceRequest.java | 77 +- .../models/RebootUHostInstanceResponse.java | 38 +- .../models/ReinstallUHostInstanceRequest.java | 152 +- .../ReinstallUHostInstanceResponse.java | 38 +- .../ResetUHostInstancePasswordRequest.java | 77 +- .../ResetUHostInstancePasswordResponse.java | 38 +- .../models/ResizeAttachedDiskRequest.java | 97 +- .../models/ResizeAttachedDiskResponse.java | 48 +- .../models/ResizeUHostInstanceRequest.java | 103 +- .../models/ResizeUHostInstanceResponse.java | 38 +- .../models/StartUHostInstanceRequest.java | 77 +- .../models/StartUHostInstanceResponse.java | 38 +- .../models/StopUHostInstanceRequest.java | 67 +- .../models/StopUHostInstanceResponse.java | 38 +- .../models/TerminateCustomImageRequest.java | 57 +- .../models/TerminateCustomImageResponse.java | 38 +- .../models/TerminateUHostInstanceRequest.java | 90 +- .../TerminateUHostInstanceResponse.java | 48 +- .../UpgradeToArkUHostInstanceRequest.java | 71 +- .../UpgradeToArkUHostInstanceResponse.java | 39 +- ucloud-sdk-java-uk8s/pom.xml | 6 +- .../cn/ucloud/uk8s/client/UK8SClient.java | 462 +-- .../uk8s/client/UK8SClientInterface.java | 204 +- .../models/AddUK8SExistingUHostRequest.java | 156 +- .../models/AddUK8SExistingUHostResponse.java | 32 +- .../uk8s/models/AddUK8SNodeGroupRequest.java | 197 +- .../uk8s/models/AddUK8SNodeGroupResponse.java | 38 +- .../uk8s/models/AddUK8SPHostNodeRequest.java | 197 +- .../uk8s/models/AddUK8SPHostNodeResponse.java | 32 +- .../uk8s/models/AddUK8SUHostNodeRequest.java | 275 +- .../uk8s/models/AddUK8SUHostNodeResponse.java | 40 +- .../models/CreateUK8SClusterV2Request.java | 710 ++-- .../models/CreateUK8SClusterV2Response.java | 38 +- .../models/DelUK8SClusterNodeV2Request.java | 76 +- .../models/DelUK8SClusterNodeV2Response.java | 32 +- .../uk8s/models/DelUK8SClusterRequest.java | 68 +- .../uk8s/models/DelUK8SClusterResponse.java | 32 +- .../models/DescribeUK8SClusterRequest.java | 58 +- .../models/DescribeUK8SClusterResponse.java | 999 +++--- .../uk8s/models/DescribeUK8SImageRequest.java | 58 +- .../models/DescribeUK8SImageResponse.java | 143 +- .../uk8s/models/DescribeUK8SNodeRequest.java | 67 +- .../uk8s/models/DescribeUK8SNodeResponse.java | 465 ++- .../models/ListUK8SClusterNodeV2Request.java | 57 +- .../models/ListUK8SClusterNodeV2Response.java | 779 +++-- .../uk8s/models/ListUK8SClusterV2Request.java | 77 +- .../models/ListUK8SClusterV2Response.java | 403 ++- .../uk8s/models/ListUK8SNodeGroupRequest.java | 57 +- .../models/ListUK8SNodeGroupResponse.java | 417 ++- .../models/RemoveUK8SNodeGroupRequest.java | 67 +- .../models/RemoveUK8SNodeGroupResponse.java | 32 +- ucloud-sdk-java-ulb/pom.xml | 6 +- .../java/cn/ucloud/ulb/client/ULBClient.java | 852 +++-- .../ucloud/ulb/client/ULBClientInterface.java | 330 +- .../ulb/models/AllocateBackendRequest.java | 159 +- .../ulb/models/AllocateBackendResponse.java | 37 +- .../cn/ucloud/ulb/models/BindSSLRequest.java | 78 +- .../cn/ucloud/ulb/models/BindSSLResponse.java | 32 +- .../ulb/models/CreatePolicyRequest.java | 120 +- .../ulb/models/CreatePolicyResponse.java | 38 +- .../ucloud/ulb/models/CreateSSLRequest.java | 117 +- .../ucloud/ulb/models/CreateSSLResponse.java | 38 +- .../models/CreateSecurityPolicyRequest.java | 80 +- .../models/CreateSecurityPolicyResponse.java | 38 +- .../ucloud/ulb/models/CreateULBRequest.java | 165 +- .../ucloud/ulb/models/CreateULBResponse.java | 48 +- .../ulb/models/CreateVServerRequest.java | 230 +- .../ulb/models/CreateVServerResponse.java | 38 +- .../ulb/models/DeletePolicyRequest.java | 71 +- .../ulb/models/DeletePolicyResponse.java | 32 +- .../ucloud/ulb/models/DeleteSSLRequest.java | 58 +- .../ucloud/ulb/models/DeleteSSLResponse.java | 32 +- .../models/DeleteSecurityPolicyRequest.java | 57 +- .../models/DeleteSecurityPolicyResponse.java | 32 +- .../ucloud/ulb/models/DeleteULBRequest.java | 68 +- .../ucloud/ulb/models/DeleteULBResponse.java | 32 +- .../ulb/models/DeleteVServerRequest.java | 68 +- .../ulb/models/DeleteVServerResponse.java | 32 +- .../ucloud/ulb/models/DescribeSSLRequest.java | 77 +- .../ulb/models/DescribeSSLResponse.java | 431 ++- .../DescribeSecurityPoliciesRequest.java | 77 +- .../DescribeSecurityPoliciesResponse.java | 302 +- .../models/DescribeSupportCiphersRequest.java | 47 +- .../DescribeSupportCiphersResponse.java | 89 +- .../ucloud/ulb/models/DescribeULBRequest.java | 107 +- .../ulb/models/DescribeULBResponse.java | 2856 ++++++++++------- .../ulb/models/DescribeULBSimpleRequest.java | 107 +- .../ulb/models/DescribeULBSimpleResponse.java | 859 +++-- .../ulb/models/DescribeVServerRequest.java | 87 +- .../ulb/models/DescribeVServerResponse.java | 2059 +++++++----- .../ulb/models/ReleaseBackendRequest.java | 68 +- .../ulb/models/ReleaseBackendResponse.java | 32 +- .../models/UnBindSecurityPolicyRequest.java | 57 +- .../models/UnBindSecurityPolicyResponse.java | 32 +- .../ucloud/ulb/models/UnbindSSLRequest.java | 78 +- .../ucloud/ulb/models/UnbindSSLResponse.java | 32 +- .../models/UpdateBackendAttributeRequest.java | 110 +- .../UpdateBackendAttributeResponse.java | 32 +- .../ulb/models/UpdatePolicyRequest.java | 130 +- .../ulb/models/UpdatePolicyResponse.java | 32 +- .../ulb/models/UpdateSSLAttributeRequest.java | 67 +- .../models/UpdateSSLAttributeResponse.java | 32 +- .../models/UpdateSecurityPolicyRequest.java | 90 +- .../models/UpdateSecurityPolicyResponse.java | 32 +- .../ulb/models/UpdateULBAttributeRequest.java | 137 +- .../models/UpdateULBAttributeResponse.java | 32 +- .../models/UpdateVServerAttributeRequest.java | 211 +- .../UpdateVServerAttributeResponse.java | 32 +- ucloud-sdk-java-umem/pom.xml | 6 +- .../cn/ucloud/umem/client/UMemClient.java | 1413 ++++---- .../umem/client/UMemClientInterface.java | 591 +++- .../CheckUDredisSpaceAllowanceRequest.java | 78 +- .../CheckUDredisSpaceAllowanceResponse.java | 41 +- .../models/CheckURedisAllowanceRequest.java | 107 +- .../models/CheckURedisAllowanceResponse.java | 41 +- .../umem/models/CreateUMemBackupRequest.java | 78 +- .../umem/models/CreateUMemBackupResponse.java | 38 +- .../umem/models/CreateUMemSpaceRequest.java | 216 +- .../umem/models/CreateUMemSpaceResponse.java | 38 +- .../models/CreateUMemcacheGroupRequest.java | 148 +- .../models/CreateUMemcacheGroupResponse.java | 38 +- .../models/CreateURedisBackupRequest.java | 88 +- .../models/CreateURedisBackupResponse.java | 38 +- .../umem/models/CreateURedisGroupRequest.java | 246 +- .../models/CreateURedisGroupResponse.java | 38 +- .../umem/models/DeleteUMemSpaceRequest.java | 68 +- .../umem/models/DeleteUMemSpaceResponse.java | 32 +- .../models/DeleteUMemcacheGroupRequest.java | 68 +- .../models/DeleteUMemcacheGroupResponse.java | 32 +- .../umem/models/DeleteURedisGroupRequest.java | 58 +- .../models/DeleteURedisGroupResponse.java | 32 +- .../DescribeUDRedisProxyInfoRequest.java | 67 +- .../DescribeUDRedisProxyInfoResponse.java | 133 +- .../models/DescribeUDRedisSlowlogRequest.java | 78 +- .../DescribeUDRedisSlowlogResponse.java | 143 +- .../models/DescribeUMemBackupRequest.java | 88 +- .../models/DescribeUMemBackupResponse.java | 183 +- .../models/DescribeUMemBackupURLRequest.java | 88 +- .../models/DescribeUMemBackupURLResponse.java | 39 +- .../models/DescribeUMemBlockInfoRequest.java | 87 +- .../models/DescribeUMemBlockInfoResponse.java | 239 +- .../umem/models/DescribeUMemPriceRequest.java | 97 +- .../models/DescribeUMemPriceResponse.java | 111 +- .../umem/models/DescribeUMemRequest.java | 97 +- .../umem/models/DescribeUMemResponse.java | 1390 ++++---- .../umem/models/DescribeUMemSpaceRequest.java | 98 +- .../models/DescribeUMemSpaceResponse.java | 512 +-- .../DescribeUMemUpgradePriceRequest.java | 87 +- .../DescribeUMemUpgradePriceResponse.java | 48 +- .../models/DescribeUMemcacheGroupRequest.java | 88 +- .../DescribeUMemcacheGroupResponse.java | 405 ++- .../models/DescribeUMemcachePriceRequest.java | 98 +- .../DescribeUMemcachePriceResponse.java | 133 +- .../DescribeUMemcacheUpgradePriceRequest.java | 48 +- ...DescribeUMemcacheUpgradePriceResponse.java | 38 +- .../models/DescribeURedisBackupRequest.java | 78 +- .../models/DescribeURedisBackupResponse.java | 271 +- .../DescribeURedisBackupURLRequest.java | 98 +- .../DescribeURedisBackupURLResponse.java | 48 +- .../models/DescribeURedisConfigRequest.java | 108 +- .../models/DescribeURedisConfigResponse.java | 297 +- .../models/DescribeURedisGroupRequest.java | 87 +- .../models/DescribeURedisGroupResponse.java | 742 +++-- .../models/DescribeURedisPriceRequest.java | 108 +- .../models/DescribeURedisPriceResponse.java | 133 +- .../models/DescribeURedisSlowlogRequest.java | 78 +- .../models/DescribeURedisSlowlogResponse.java | 121 +- .../DescribeURedisUpgradePriceRequest.java | 68 +- .../DescribeURedisUpgradePriceResponse.java | 38 +- .../models/DescribeURedisVersionRequest.java | 58 +- .../models/DescribeURedisVersionResponse.java | 77 +- .../models/FlushallURedisGroupRequest.java | 118 +- .../models/FlushallURedisGroupResponse.java | 32 +- .../umem/models/GetUMemSpaceStateRequest.java | 68 +- .../models/GetUMemSpaceStateResponse.java | 38 +- .../models/ISolationURedisGroupRequest.java | 87 +- .../models/ISolationURedisGroupResponse.java | 32 +- .../models/ModifyUMemSpaceNameRequest.java | 78 +- .../models/ModifyUMemSpaceNameResponse.java | 32 +- .../models/ModifyURedisConfigRequest.java | 107 +- .../models/ModifyURedisConfigResponse.java | 32 +- .../models/ModifyURedisGroupNameRequest.java | 68 +- .../models/ModifyURedisGroupNameResponse.java | 32 +- .../ModifyURedisGroupPasswordRequest.java | 78 +- .../ModifyURedisGroupPasswordResponse.java | 32 +- .../umem/models/RemoveUDRedisDataRequest.java | 68 +- .../models/RemoveUDRedisDataResponse.java | 32 +- .../umem/models/ResizeUMemSpaceRequest.java | 97 +- .../umem/models/ResizeUMemSpaceResponse.java | 32 +- .../umem/models/ResizeURedisGroupRequest.java | 108 +- .../models/ResizeURedisGroupResponse.java | 32 +- .../models/RestartUMemcacheGroupRequest.java | 68 +- .../models/RestartUMemcacheGroupResponse.java | 32 +- .../models/RestartURedisGroupRequest.java | 68 +- .../models/RestartURedisGroupResponse.java | 32 +- .../UpdateURedisBackupStrategyRequest.java | 97 +- .../UpdateURedisBackupStrategyResponse.java | 32 +- .../UpdateURedisRewriteTimeRequest.java | 87 +- .../UpdateURedisRewriteTimeResponse.java | 32 +- ucloud-sdk-java-umongodb/pom.xml | 6 +- .../umongodb/client/UMongoDBClient.java | 561 ++-- .../client/UMongoDBClientInterface.java | 239 +- .../models/BackupUMongoDBClusterRequest.java | 71 +- .../models/BackupUMongoDBClusterResponse.java | 48 +- .../CreateUMongoDBConfigTemplateRequest.java | 97 +- .../CreateUMongoDBConfigTemplateResponse.java | 38 +- .../DescribeUMongoDBBackupURLRequest.java | 97 +- .../DescribeUMongoDBBackupURLResponse.java | 48 +- .../DescribeUMongoDBInstanceRequest.java | 77 +- .../DescribeUMongoDBInstanceResponse.java | 1377 ++++---- .../models/GetUMongoDBBackupParamRequest.java | 58 +- .../GetUMongoDBBackupParamResponse.java | 156 +- .../models/GetUMongoDBCfgTempItemRequest.java | 57 +- .../GetUMongoDBCfgTempItemResponse.java | 551 ++-- .../GetUMongoDBRecoverTimeRangeRequest.java | 67 +- .../GetUMongoDBRecoverTimeRangeResponse.java | 48 +- .../models/ListUMongoDBBackupRequest.java | 58 +- .../models/ListUMongoDBBackupResponse.java | 235 +- .../ListUMongoDBConfigTemplateRequest.java | 47 +- .../ListUMongoDBConfigTemplateResponse.java | 261 +- .../ListUMongoDBMachineTypeRequest.java | 57 +- .../ListUMongoDBMachineTypeResponse.java | 183 +- .../models/ListUMongoDBVersionRequest.java | 57 +- .../models/ListUMongoDBVersionResponse.java | 67 +- .../ModifyUMongoDBAdminPasswordRequest.java | 77 +- .../ModifyUMongoDBAdminPasswordResponse.java | 32 +- .../ModifyUMongoDBAttributeRequest.java | 87 +- .../ModifyUMongoDBAttributeResponse.java | 32 +- .../ModifyUMongoDBBackupParamRequest.java | 78 +- .../ModifyUMongoDBBackupParamResponse.java | 32 +- .../models/RestartUMongoDBClusterRequest.java | 67 +- .../RestartUMongoDBClusterResponse.java | 38 +- .../models/StartUMongoDBClusterRequest.java | 67 +- .../models/StartUMongoDBClusterResponse.java | 38 +- .../models/StopUMongoDBClusterRequest.java | 70 +- .../models/StopUMongoDBClusterResponse.java | 38 +- ucloud-sdk-java-unet/pom.xml | 6 +- .../cn/ucloud/unet/client/UNetClient.java | 1082 ++++--- .../unet/client/UNetClientInterface.java | 448 ++- .../unet/models/AllocateEIPRequest.java | 160 +- .../unet/models/AllocateEIPResponse.java | 137 +- .../models/AllocateShareBandwidthRequest.java | 110 +- .../AllocateShareBandwidthResponse.java | 38 +- ...AssociateEIPWithShareBandwidthRequest.java | 80 +- ...ssociateEIPWithShareBandwidthResponse.java | 32 +- .../cn/ucloud/unet/models/BindEIPRequest.java | 88 +- .../ucloud/unet/models/BindEIPResponse.java | 32 +- .../models/CreateBandwidthPackageRequest.java | 88 +- .../CreateBandwidthPackageResponse.java | 38 +- .../unet/models/CreateFirewallRequest.java | 87 +- .../unet/models/CreateFirewallResponse.java | 38 +- .../models/DeleteBandwidthPackageRequest.java | 58 +- .../DeleteBandwidthPackageResponse.java | 32 +- .../unet/models/DeleteFirewallRequest.java | 58 +- .../unet/models/DeleteFirewallResponse.java | 32 +- .../DescribeBandwidthPackageRequest.java | 68 +- .../DescribeBandwidthPackageResponse.java | 275 +- .../models/DescribeBandwidthUsageRequest.java | 81 +- .../DescribeBandwidthUsageResponse.java | 99 +- .../unet/models/DescribeEIPRequest.java | 91 +- .../unet/models/DescribeEIPResponse.java | 914 +++--- .../unet/models/DescribeFirewallRequest.java | 97 +- .../DescribeFirewallResourceRequest.java | 77 +- .../DescribeFirewallResourceResponse.java | 326 +- .../unet/models/DescribeFirewallResponse.java | 432 ++- .../DescribeShareBandwidthPriceRequest.java | 87 +- .../DescribeShareBandwidthPriceResponse.java | 38 +- .../models/DescribeShareBandwidthRequest.java | 61 +- .../DescribeShareBandwidthResponse.java | 379 ++- ...cribeShareBandwidthUpdatePriceRequest.java | 58 +- ...ribeShareBandwidthUpdatePriceResponse.java | 38 +- ...associateEIPWithShareBandwidthRequest.java | 101 +- ...ssociateEIPWithShareBandwidthResponse.java | 32 +- .../models/DisassociateFirewallRequest.java | 77 +- .../models/DisassociateFirewallResponse.java | 32 +- .../models/GetEIPExclusiveUTPInfoRequest.java | 105 + .../GetEIPExclusiveUTPInfoResponse.java | 185 ++ .../unet/models/GetEIPPayModeRequest.java | 61 +- .../unet/models/GetEIPPayModeResponse.java | 89 +- .../unet/models/GetEIPPriceRequest.java | 99 +- .../unet/models/GetEIPPriceResponse.java | 133 +- .../models/GetEIPUpgradePriceRequest.java | 68 +- .../models/GetEIPUpgradePriceResponse.java | 38 +- .../GetThroughputDailyBillingInfoRequest.java | 77 +- ...GetThroughputDailyBillingInfoResponse.java | 156 +- .../unet/models/GrantFirewallRequest.java | 77 +- .../unet/models/GrantFirewallResponse.java | 32 +- .../models/ModifyEIPBandwidthRequest.java | 68 +- .../models/ModifyEIPBandwidthResponse.java | 32 +- .../unet/models/ModifyEIPWeightRequest.java | 67 +- .../unet/models/ModifyEIPWeightResponse.java | 32 +- .../ucloud/unet/models/ReleaseEIPRequest.java | 58 +- .../unet/models/ReleaseEIPResponse.java | 32 +- .../models/ReleaseShareBandwidthRequest.java | 78 +- .../models/ReleaseShareBandwidthResponse.java | 32 +- .../models/ResizeShareBandwidthRequest.java | 67 +- .../models/ResizeShareBandwidthResponse.java | 32 +- .../unet/models/SetEIPPayModeRequest.java | 78 +- .../unet/models/SetEIPPayModeResponse.java | 32 +- .../ucloud/unet/models/UnBindEIPRequest.java | 78 +- .../ucloud/unet/models/UnBindEIPResponse.java | 32 +- .../models/UpdateEIPAttributeRequest.java | 87 +- .../models/UpdateEIPAttributeResponse.java | 32 +- .../UpdateFirewallAttributeRequest.java | 88 +- .../UpdateFirewallAttributeResponse.java | 32 +- .../unet/models/UpdateFirewallRequest.java | 67 +- .../unet/models/UpdateFirewallResponse.java | 38 +- ucloud-sdk-java-upgsql/pom.xml | 6 +- .../cn/ucloud/upgsql/client/UPgSQLClient.java | 910 +++--- .../upgsql/client/UPgSQLClientInterface.java | 385 ++- .../upgsql/models/BackupUPgSQLLogRequest.java | 117 +- .../models/BackupUPgSQLLogResponse.java | 32 +- .../models/CreateUPgSQLInstanceRequest.java | 157 +- .../models/CreateUPgSQLInstanceResponse.java | 38 +- .../CreateUPgSQLParamTemplateRequest.java | 97 +- .../CreateUPgSQLParamTemplateResponse.java | 38 +- .../models/CreateUPgSQLReadonlyRequest.java | 126 +- .../models/CreateUPgSQLReadonlyResponse.java | 38 +- .../models/DeleteUPgSQLInstanceRequest.java | 67 +- .../models/DeleteUPgSQLInstanceResponse.java | 32 +- .../DeleteUPgSQLParamTemplateRequest.java | 67 +- .../DeleteUPgSQLParamTemplateResponse.java | 32 +- .../DownloadUPgSQLParamTemplateRequest.java | 67 +- .../DownloadUPgSQLParamTemplateResponse.java | 38 +- .../GetUPgSQLBackupStrategyRequest.java | 67 +- .../GetUPgSQLBackupStrategyResponse.java | 58 +- .../models/GetUPgSQLBackupURLRequest.java | 77 +- .../models/GetUPgSQLBackupURLResponse.java | 48 +- .../models/GetUPgSQLInstanceLogRequest.java | 117 +- .../models/GetUPgSQLInstanceLogResponse.java | 38 +- .../models/GetUPgSQLInstancePriceRequest.java | 107 +- .../GetUPgSQLInstancePriceResponse.java | 111 +- .../models/GetUPgSQLInstanceRequest.java | 67 +- .../models/GetUPgSQLInstanceResponse.java | 735 +++-- .../models/GetUPgSQLParamTemplateRequest.java | 67 +- .../GetUPgSQLParamTemplateResponse.java | 209 +- .../models/GetUPgSQLUpgradePriceRequest.java | 97 +- .../models/GetUPgSQLUpgradePriceResponse.java | 48 +- .../models/ListUPgSQLBackupRequest.java | 97 +- .../models/ListUPgSQLBackupResponse.java | 271 +- .../models/ListUPgSQLInstanceRequest.java | 57 +- .../models/ListUPgSQLInstanceResponse.java | 741 +++-- .../upgsql/models/ListUPgSQLLogRequest.java | 87 +- .../upgsql/models/ListUPgSQLLogResponse.java | 133 +- .../models/ListUPgSQLMachineTypeRequest.java | 57 +- .../models/ListUPgSQLMachineTypeResponse.java | 157 +- .../models/ListUPgSQLVersionRequest.java | 57 +- .../models/ListUPgSQLVersionResponse.java | 89 +- .../models/RestartUPgSQLInstanceRequest.java | 87 +- .../models/RestartUPgSQLInstanceResponse.java | 32 +- .../models/StartUPgSQLInstanceRequest.java | 67 +- .../models/StartUPgSQLInstanceResponse.java | 32 +- .../StopUPgSQLCreatingReadonlyRequest.java | 67 +- .../StopUPgSQLCreatingReadonlyResponse.java | 32 +- .../models/StopUPgSQLInstanceRequest.java | 87 +- .../models/StopUPgSQLInstanceResponse.java | 32 +- .../models/UpdateUPgSQLAttributeRequest.java | 87 +- .../models/UpdateUPgSQLAttributeResponse.java | 32 +- .../UpdateUPgSQLBackupStrategyRequest.java | 97 +- .../UpdateUPgSQLBackupStrategyResponse.java | 32 +- .../models/UpdateUPgSQLPasswordRequest.java | 77 +- .../models/UpdateUPgSQLPasswordResponse.java | 32 +- .../models/UpgradeUPgSQLInstanceRequest.java | 87 +- .../models/UpgradeUPgSQLInstanceResponse.java | 32 +- .../UploadUPgSQLParamTemplateRequest.java | 107 +- .../UploadUPgSQLParamTemplateResponse.java | 38 +- ucloud-sdk-java-uphone/pom.xml | 6 +- .../cn/ucloud/uphone/client/UPhoneClient.java | 1763 ++++++---- .../uphone/client/UPhoneClientInterface.java | 729 ++++- .../uphone/models/CreateUPhoneAppRequest.java | 70 +- .../models/CreateUPhoneAppResponse.java | 38 +- .../models/CreateUPhoneAppVersionRequest.java | 96 +- .../CreateUPhoneAppVersionResponse.java | 38 +- .../models/CreateUPhoneImageRequest.java | 83 +- .../models/CreateUPhoneImageResponse.java | 48 +- .../uphone/models/CreateUPhoneRequest.java | 216 +- .../uphone/models/CreateUPhoneResponse.java | 49 +- .../models/CreateUPhoneServerRequest.java | 183 +- .../models/CreateUPhoneServerResponse.java | 38 +- .../models/DeleteUPhoneImageRequest.java | 57 +- .../models/DeleteUPhoneImageResponse.java | 38 +- .../uphone/models/DeleteUPhoneRequest.java | 69 +- .../uphone/models/DeleteUPhoneResponse.java | 38 +- .../models/DeleteUPhoneServerRequest.java | 77 +- .../models/DeleteUPhoneServerResponse.java | 32 +- .../DeleteUPhoneShareBandwidthRequest.java | 47 +- .../DeleteUPhoneShareBandwidthResponse.java | 32 +- .../models/DescribeUPhoneAppRequest.java | 84 +- .../models/DescribeUPhoneAppResponse.java | 167 +- .../DescribeUPhoneAppVersionRequest.java | 103 +- .../DescribeUPhoneAppVersionResponse.java | 246 +- .../models/DescribeUPhoneCitiesRequest.java | 49 +- .../models/DescribeUPhoneCitiesResponse.java | 161 +- .../DescribeUPhoneDetailByAppRequest.java | 87 +- .../DescribeUPhoneDetailByAppResponse.java | 722 +++-- .../models/DescribeUPhoneEipListRequest.java | 58 +- .../models/DescribeUPhoneEipListResponse.java | 349 +- .../models/DescribeUPhoneImageRequest.java | 93 +- .../models/DescribeUPhoneImageResponse.java | 522 +-- .../DescribeUPhoneIpRegionsRequest.java | 53 +- .../DescribeUPhoneIpRegionsResponse.java | 99 +- .../models/DescribeUPhoneJobRequest.java | 114 +- .../models/DescribeUPhoneJobResponse.java | 492 +-- .../models/DescribeUPhoneModelRequest.java | 90 +- .../models/DescribeUPhoneModelResponse.java | 245 +- .../uphone/models/DescribeUPhoneRequest.java | 120 +- .../uphone/models/DescribeUPhoneResponse.java | 831 +++-- .../DescribeUPhoneServerModelRequest.java | 79 +- .../DescribeUPhoneServerModelResponse.java | 457 +-- .../models/DescribeUPhoneServerRequest.java | 79 +- .../models/DescribeUPhoneServerResponse.java | 887 ++--- .../DescribeUPhoneShareBandwidthRequest.java | 57 +- .../DescribeUPhoneShareBandwidthResponse.java | 349 +- .../models/GetUPhoneAllowanceRequest.java | 47 +- .../models/GetUPhoneAllowanceResponse.java | 89 +- ...GetUPhoneBandwidthUpgradePriceRequest.java | 67 +- ...etUPhoneBandwidthUpgradePriceResponse.java | 58 +- .../uphone/models/GetUPhonePriceRequest.java | 156 +- .../uphone/models/GetUPhonePriceResponse.java | 136 +- .../models/GetUPhoneRenewPriceRequest.java | 67 +- .../models/GetUPhoneRenewPriceResponse.java | 136 +- .../models/GetUPhoneScreenCaptureRequest.java | 67 +- .../GetUPhoneScreenCaptureResponse.java | 38 +- .../models/GetUPhoneServerPriceRequest.java | 116 +- .../models/GetUPhoneServerPriceResponse.java | 133 +- .../GetUPhoneServerRenewPriceRequest.java | 76 +- .../GetUPhoneServerRenewPriceResponse.java | 133 +- ...honeShareBandwidthUpgradePriceRequest.java | 57 +- ...oneShareBandwidthUpgradePriceResponse.java | 58 +- .../uphone/models/ImportFileRequest.java | 101 +- .../uphone/models/ImportFileResponse.java | 38 +- .../InstallUPhoneAppVersionRequest.java | 76 +- .../InstallUPhoneAppVersionResponse.java | 38 +- .../models/ModifyUPhoneBandwidthRequest.java | 67 +- .../models/ModifyUPhoneBandwidthResponse.java | 32 +- .../models/ModifyUPhoneNameRequest.java | 67 +- .../models/ModifyUPhoneNameResponse.java | 38 +- .../models/ModifyUPhoneRemarkRequest.java | 67 +- .../models/ModifyUPhoneRemarkResponse.java | 38 +- .../models/ModifyUPhoneServerNameRequest.java | 67 +- .../ModifyUPhoneServerNameResponse.java | 38 +- .../ModifyUPhoneServerRemarkRequest.java | 67 +- .../ModifyUPhoneServerRemarkResponse.java | 38 +- ...ModifyUPhoneShareBandwidthNameRequest.java | 57 +- ...odifyUPhoneShareBandwidthNameResponse.java | 32 +- ...difyUPhoneShareBandwidthRemarkRequest.java | 57 +- ...ifyUPhoneShareBandwidthRemarkResponse.java | 32 +- .../ModifyUPhoneShareBandwidthRequest.java | 57 +- .../ModifyUPhoneShareBandwidthResponse.java | 32 +- .../uphone/models/PoweroffUPhoneRequest.java | 66 +- .../uphone/models/PoweroffUPhoneResponse.java | 38 +- .../uphone/models/PoweronUPhoneRequest.java | 70 +- .../uphone/models/PoweronUPhoneResponse.java | 38 +- .../uphone/models/RebootUPhoneRequest.java | 66 +- .../uphone/models/RebootUPhoneResponse.java | 38 +- .../uphone/models/RenewUPhoneRequest.java | 316 +- .../uphone/models/RenewUPhoneResponse.java | 38 +- .../uphone/models/ResetUPhoneRequest.java | 76 +- .../uphone/models/ResetUPhoneResponse.java | 38 +- .../uphone/models/RunAsyncCommandRequest.java | 76 +- .../models/RunAsyncCommandResponse.java | 38 +- .../uphone/models/RunSyncCommandRequest.java | 76 +- .../uphone/models/RunSyncCommandResponse.java | 89 +- .../models/SetUPhoneCallbackRequest.java | 77 +- .../models/SetUPhoneCallbackResponse.java | 32 +- .../uphone/models/SetUPhoneConfigRequest.java | 120 +- .../models/SetUPhoneConfigResponse.java | 109 +- .../uphone/models/SetUPhoneGPSRequest.java | 189 +- .../uphone/models/SetUPhoneGPSResponse.java | 38 +- .../models/SetUPhoneManagerModeRequest.java | 77 +- .../models/SetUPhoneManagerModeResponse.java | 32 +- .../models/SetUPhoneRootModeRequest.java | 86 +- .../models/SetUPhoneRootModeResponse.java | 38 +- .../uphone/models/SetUPhoneTokenRequest.java | 77 +- .../uphone/models/SetUPhoneTokenResponse.java | 32 +- .../UnInstallUPhoneAppVersionRequest.java | 76 +- .../UnInstallUPhoneAppVersionResponse.java | 38 +- .../models/UpdateUPhoneImageRequest.java | 77 +- .../models/UpdateUPhoneImageResponse.java | 38 +- ucloud-sdk-java-uphost/pom.xml | 6 +- .../cn/ucloud/uphost/client/UPHostClient.java | 652 ++-- .../uphost/client/UPHostClientInterface.java | 269 +- .../models/CreatePHostImageRequest.java | 87 +- .../models/CreatePHostImageResponse.java | 38 +- .../uphost/models/CreatePHostRequest.java | 316 +- .../uphost/models/CreatePHostResponse.java | 39 +- .../DescribeBaremetalMachineTypeRequest.java | 67 +- .../DescribeBaremetalMachineTypeResponse.java | 374 ++- .../models/DescribePHostImageRequest.java | 110 +- .../models/DescribePHostImageResponse.java | 323 +- .../DescribePHostMachineTypeRequest.java | 67 +- .../DescribePHostMachineTypeResponse.java | 563 ++-- .../uphost/models/DescribePHostRequest.java | 110 +- .../uphost/models/DescribePHostResponse.java | 1248 ++++--- .../models/DescribePHostTagsRequest.java | 58 +- .../models/DescribePHostTagsResponse.java | 99 +- .../GetPHostDiskUpgradePriceRequest.java | 98 +- .../GetPHostDiskUpgradePriceResponse.java | 48 +- .../uphost/models/GetPHostPriceRequest.java | 191 +- .../uphost/models/GetPHostPriceResponse.java | 133 +- .../models/ModifyPHostImageInfoRequest.java | 87 +- .../models/ModifyPHostImageInfoResponse.java | 38 +- .../uphost/models/ModifyPHostInfoRequest.java | 98 +- .../models/ModifyPHostInfoResponse.java | 38 +- .../uphost/models/PoweroffPHostRequest.java | 68 +- .../uphost/models/PoweroffPHostResponse.java | 38 +- .../uphost/models/RebootPHostRequest.java | 68 +- .../uphost/models/RebootPHostResponse.java | 38 +- .../uphost/models/ReinstallPHostRequest.java | 148 +- .../uphost/models/ReinstallPHostResponse.java | 38 +- .../models/ResetPHostPasswordRequest.java | 78 +- .../models/ResetPHostPasswordResponse.java | 38 +- .../ResizePHostAttachedDiskRequest.java | 87 +- .../ResizePHostAttachedDiskResponse.java | 38 +- .../uphost/models/StartPHostRequest.java | 68 +- .../uphost/models/StartPHostResponse.java | 38 +- .../uphost/models/StopPHostRequest.java | 67 +- .../uphost/models/StopPHostResponse.java | 38 +- .../models/TerminatePHostImageRequest.java | 67 +- .../models/TerminatePHostImageResponse.java | 38 +- .../uphost/models/TerminatePHostRequest.java | 88 +- .../uphost/models/TerminatePHostResponse.java | 38 +- ucloud-sdk-java-uslk/pom.xml | 6 +- .../cn/ucloud/uslk/client/USLKClient.java | 208 +- .../uslk/client/USLKClientInterface.java | 96 +- .../BatchCreateUSLKShortLinkRequest.java | 91 +- .../BatchCreateUSLKShortLinkResponse.java | 39 +- .../models/CreateUSLKLongLinkRequest.java | 48 +- .../models/CreateUSLKLongLinkResponse.java | 48 +- .../models/CreateUSLKScenarioRequest.java | 48 +- .../models/CreateUSLKScenarioResponse.java | 48 +- .../models/CreateUSLKShortLinkRequest.java | 88 +- .../models/CreateUSLKShortLinkResponse.java | 38 +- .../DescribeUSLKRedirectRecordsRequest.java | 106 +- .../DescribeUSLKRedirectRecordsResponse.java | 323 +- .../DescribeUSLKShortLinkListRequest.java | 137 +- .../DescribeUSLKShortLinkListResponse.java | 785 +++-- ucloud-sdk-java-usms/pom.xml | 6 +- .../cn/ucloud/usms/client/USMSClient.java | 363 ++- .../usms/client/USMSClientInterface.java | 161 +- .../models/CreateUSMSSignatureRequest.java | 108 +- .../models/CreateUSMSSignatureResponse.java | 38 +- .../models/CreateUSMSTemplateRequest.java | 105 +- .../models/CreateUSMSTemplateResponse.java | 38 +- .../models/DeleteUSMSSignatureRequest.java | 51 +- .../models/DeleteUSMSSignatureResponse.java | 32 +- .../models/DeleteUSMSTemplateRequest.java | 57 +- .../models/DeleteUSMSTemplateResponse.java | 32 +- .../models/GetUSMSSendReceiptRequest.java | 70 +- .../models/GetUSMSSendReceiptResponse.java | 270 +- .../models/QueryUSMSSignatureRequest.java | 59 +- .../models/QueryUSMSSignatureResponse.java | 132 +- .../usms/models/QueryUSMSTemplateRequest.java | 47 +- .../models/QueryUSMSTemplateResponse.java | 286 +- .../models/SendBatchUSMSMessageRequest.java | 61 +- .../models/SendBatchUSMSMessageResponse.java | 295 +- .../usms/models/SendUSMSMessageRequest.java | 103 +- .../usms/models/SendUSMSMessageResponse.java | 48 +- .../models/UpdateUSMSSignatureRequest.java | 117 +- .../models/UpdateUSMSSignatureResponse.java | 32 +- .../models/UpdateUSMSTemplateRequest.java | 96 +- .../models/UpdateUSMSTemplateResponse.java | 32 +- ucloud-sdk-java-uvms/pom.xml | 6 +- .../cn/ucloud/uvms/client/UVMSClient.java | 49 +- .../uvms/client/UVMSClientInterface.java | 31 +- .../uvms/models/SendUVMSMessageRequest.java | 110 +- .../uvms/models/SendUVMSMessageResponse.java | 59 +- ucloud-sdk-java-vpc/pom.xml | 6 +- .../java/cn/ucloud/vpc/client/VPCClient.java | 2316 +++++++------ .../ucloud/vpc/client/VPCClientInterface.java | 961 ++++-- .../ucloud/vpc/models/AddSnatRuleRequest.java | 87 +- .../vpc/models/AddSnatRuleResponse.java | 32 +- .../vpc/models/AddVPCNetworkRequest.java | 71 +- .../vpc/models/AddVPCNetworkResponse.java | 32 +- .../models/AddWhiteListResourceRequest.java | 71 +- .../models/AddWhiteListResourceResponse.java | 32 +- .../AllocateBatchSecondaryIpRequest.java | 120 +- .../AllocateBatchSecondaryIpResponse.java | 267 +- .../models/AllocateSecondaryIpRequest.java | 108 +- .../models/AllocateSecondaryIpResponse.java | 182 +- .../ucloud/vpc/models/AllocateVIPRequest.java | 138 +- .../vpc/models/AllocateVIPResponse.java | 121 +- .../models/AssociateRouteTableRequest.java | 68 +- .../models/AssociateRouteTableResponse.java | 32 +- .../models/AttachNetworkInterfaceRequest.java | 67 +- .../AttachNetworkInterfaceResponse.java | 32 +- .../vpc/models/CloneRouteTableRequest.java | 58 +- .../vpc/models/CloneRouteTableResponse.java | 38 +- .../vpc/models/CreateNATGWPolicyRequest.java | 118 +- .../vpc/models/CreateNATGWPolicyResponse.java | 38 +- .../ucloud/vpc/models/CreateNATGWRequest.java | 130 +- .../vpc/models/CreateNATGWResponse.java | 38 +- .../CreateNetworkAclAssociationRequest.java | 67 +- .../CreateNetworkAclAssociationResponse.java | 145 +- .../models/CreateNetworkAclEntryRequest.java | 151 +- .../models/CreateNetworkAclEntryResponse.java | 38 +- .../vpc/models/CreateNetworkAclRequest.java | 78 +- .../vpc/models/CreateNetworkAclResponse.java | 38 +- .../models/CreateNetworkInterfaceRequest.java | 121 +- .../CreateNetworkInterfaceResponse.java | 391 ++- .../vpc/models/CreateRouteTableRequest.java | 88 +- .../vpc/models/CreateRouteTableResponse.java | 38 +- .../vpc/models/CreateSnatDnatRuleRequest.java | 80 +- .../models/CreateSnatDnatRuleResponse.java | 32 +- .../vpc/models/CreateSubnetRequest.java | 108 +- .../vpc/models/CreateSubnetResponse.java | 38 +- .../vpc/models/CreateVPCIntercomRequest.java | 88 +- .../vpc/models/CreateVPCIntercomResponse.java | 32 +- .../ucloud/vpc/models/CreateVPCRequest.java | 94 +- .../ucloud/vpc/models/CreateVPCResponse.java | 38 +- .../vpc/models/DeleteNATGWPolicyRequest.java | 68 +- .../vpc/models/DeleteNATGWPolicyResponse.java | 32 +- .../ucloud/vpc/models/DeleteNATGWRequest.java | 67 +- .../vpc/models/DeleteNATGWResponse.java | 32 +- .../DeleteNetworkAclAssociationRequest.java | 68 +- .../DeleteNetworkAclAssociationResponse.java | 32 +- .../models/DeleteNetworkAclEntryRequest.java | 68 +- .../models/DeleteNetworkAclEntryResponse.java | 32 +- .../vpc/models/DeleteNetworkAclRequest.java | 58 +- .../vpc/models/DeleteNetworkAclResponse.java | 32 +- .../models/DeleteNetworkInterfaceRequest.java | 57 +- .../DeleteNetworkInterfaceResponse.java | 32 +- .../vpc/models/DeleteRouteTableRequest.java | 58 +- .../vpc/models/DeleteRouteTableResponse.java | 32 +- .../vpc/models/DeleteSecondaryIpRequest.java | 108 +- .../vpc/models/DeleteSecondaryIpResponse.java | 32 +- .../vpc/models/DeleteSnatDnatRuleRequest.java | 79 +- .../models/DeleteSnatDnatRuleResponse.java | 32 +- .../vpc/models/DeleteSnatRuleRequest.java | 67 +- .../vpc/models/DeleteSnatRuleResponse.java | 32 +- .../vpc/models/DeleteSubnetRequest.java | 58 +- .../vpc/models/DeleteSubnetResponse.java | 32 +- .../vpc/models/DeleteVPCIntercomRequest.java | 88 +- .../vpc/models/DeleteVPCIntercomResponse.java | 32 +- .../ucloud/vpc/models/DeleteVPCRequest.java | 58 +- .../ucloud/vpc/models/DeleteVPCResponse.java | 32 +- .../DeleteWhiteListResourceRequest.java | 71 +- .../DeleteWhiteListResourceResponse.java | 32 +- ...scribeInstanceNetworkInterfaceRequest.java | 77 +- ...cribeInstanceNetworkInterfaceResponse.java | 443 +-- .../models/DescribeNATGWPolicyRequest.java | 78 +- .../models/DescribeNATGWPolicyResponse.java | 271 +- .../vpc/models/DescribeNATGWRequest.java | 80 +- .../vpc/models/DescribeNATGWResponse.java | 623 ++-- ...eNetworkAclAssociationBySubnetRequest.java | 58 +- ...NetworkAclAssociationBySubnetResponse.java | 132 +- .../DescribeNetworkAclAssociationRequest.java | 78 +- ...DescribeNetworkAclAssociationResponse.java | 133 +- .../DescribeNetworkAclEntryRequest.java | 57 +- .../DescribeNetworkAclEntryResponse.java | 551 ++-- .../vpc/models/DescribeNetworkAclRequest.java | 77 +- .../models/DescribeNetworkAclResponse.java | 871 ++--- .../DescribeNetworkInterfaceRequest.java | 131 +- .../DescribeNetworkInterfaceResponse.java | 619 ++-- .../vpc/models/DescribeRouteTableRequest.java | 117 +- .../models/DescribeRouteTableResponse.java | 694 ++-- .../models/DescribeSecondaryIpRequest.java | 87 +- .../models/DescribeSecondaryIpResponse.java | 183 +- .../models/DescribeSnatDnatRuleRequest.java | 70 +- .../models/DescribeSnatDnatRuleResponse.java | 111 +- .../vpc/models/DescribeSnatRuleRequest.java | 97 +- .../vpc/models/DescribeSnatRuleResponse.java | 143 +- .../vpc/models/DescribeSubnetRequest.java | 134 +- .../models/DescribeSubnetResourceRequest.java | 84 +- .../DescribeSubnetResourceResponse.java | 145 +- .../vpc/models/DescribeSubnetResponse.java | 453 +-- .../ucloud/vpc/models/DescribeVIPRequest.java | 108 +- .../vpc/models/DescribeVIPResponse.java | 307 +- .../models/DescribeVPCIntercomRequest.java | 80 +- .../models/DescribeVPCIntercomResponse.java | 236 +- .../ucloud/vpc/models/DescribeVPCRequest.java | 90 +- .../vpc/models/DescribeVPCResponse.java | 379 ++- .../DescribeWhiteListResourceRequest.java | 81 +- .../DescribeWhiteListResourceResponse.java | 353 +- .../models/DetachNetworkInterfaceRequest.java | 67 +- .../DetachNetworkInterfaceResponse.java | 32 +- .../vpc/models/EnableWhiteListRequest.java | 68 +- .../vpc/models/EnableWhiteListResponse.java | 32 +- .../GetAvailableResourceForPolicyRequest.java | 77 +- ...GetAvailableResourceForPolicyResponse.java | 113 +- ...etAvailableResourceForSnatRuleRequest.java | 77 +- ...tAvailableResourceForSnatRuleResponse.java | 193 +- ...tAvailableResourceForWhiteListRequest.java | 77 +- ...AvailableResourceForWhiteListResponse.java | 273 +- .../GetNetworkAclTargetResourceRequest.java | 60 +- .../GetNetworkAclTargetResourceResponse.java | 245 +- .../vpc/models/ListSubnetForNATGWRequest.java | 58 +- .../models/ListSubnetForNATGWResponse.java | 157 +- .../vpc/models/ModifyRouteRuleRequest.java | 75 +- .../vpc/models/ModifyRouteRuleResponse.java | 32 +- .../vpc/models/MoveSecondaryIPMacRequest.java | 87 +- .../models/MoveSecondaryIPMacResponse.java | 32 +- .../ucloud/vpc/models/ReleaseVIPRequest.java | 68 +- .../ucloud/vpc/models/ReleaseVIPResponse.java | 32 +- .../vpc/models/SetGwDefaultExportRequest.java | 78 +- .../models/SetGwDefaultExportResponse.java | 32 +- .../vpc/models/UpdateNATGWPolicyRequest.java | 127 +- .../vpc/models/UpdateNATGWPolicyResponse.java | 32 +- .../vpc/models/UpdateNATGWSubnetRequest.java | 70 +- .../vpc/models/UpdateNATGWSubnetResponse.java | 32 +- .../models/UpdateNetworkAclEntryRequest.java | 161 +- .../models/UpdateNetworkAclEntryResponse.java | 32 +- .../vpc/models/UpdateNetworkAclRequest.java | 77 +- .../vpc/models/UpdateNetworkAclResponse.java | 32 +- .../UpdateRouteTableAttributeRequest.java | 88 +- .../UpdateRouteTableAttributeResponse.java | 32 +- .../vpc/models/UpdateSnatRuleRequest.java | 87 +- .../vpc/models/UpdateSnatRuleResponse.java | 32 +- .../models/UpdateSubnetAttributeRequest.java | 78 +- .../models/UpdateSubnetAttributeResponse.java | 32 +- .../vpc/models/UpdateVIPAttributeRequest.java | 88 +- .../models/UpdateVIPAttributeResponse.java | 32 +- .../vpc/models/UpdateVPCNetworkRequest.java | 67 +- .../vpc/models/UpdateVPCNetworkResponse.java | 32 +- 1343 files changed, 117979 insertions(+), 59639 deletions(-) create mode 100644 ucloud-sdk-java-cube/pom.xml create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClient.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClientInterface.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentRequest.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentResponse.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodRequest.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodResponse.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentRequest.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentResponse.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodRequest.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodResponse.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentRequest.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentResponse.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenRequest.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenResponse.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoRequest.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoResponse.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsRequest.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsResponse.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenRequest.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenResponse.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodRequest.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodResponse.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodRequest.java create mode 100644 ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodResponse.java create mode 100644 ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPExclusiveUTPInfoRequest.java create mode 100644 ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPExclusiveUTPInfoResponse.java diff --git a/VERSION b/VERSION index 2fb457ce..9e48a073 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.9-release +1.2.10-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index 22fa523f..9f2c4b29 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/examples/generic/src/main/java/cn/ucloud/example/Main.java b/examples/generic/src/main/java/cn/ucloud/example/Main.java index 7e090aa1..f0dce097 100644 --- a/examples/generic/src/main/java/cn/ucloud/example/Main.java +++ b/examples/generic/src/main/java/cn/ucloud/example/Main.java @@ -8,7 +8,6 @@ import cn.ucloud.common.exception.ValidatorException; import cn.ucloud.common.request.Request; import cn.ucloud.common.response.Response; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index 9463c9a8..4777dd5d 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.9-release + 1.2.10-release diff --git a/examples/uhost/src/main/java/cn/ucloud/example/Main.java b/examples/uhost/src/main/java/cn/ucloud/example/Main.java index 1b935791..681ef1ff 100644 --- a/examples/uhost/src/main/java/cn/ucloud/example/Main.java +++ b/examples/uhost/src/main/java/cn/ucloud/example/Main.java @@ -6,15 +6,13 @@ import cn.ucloud.common.exception.UCloudException; import cn.ucloud.uhost.client.UHostClient; import cn.ucloud.uhost.models.*; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Base64; import java.util.List; import java.util.concurrent.TimeUnit; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class Main { private static final Logger logger = LoggerFactory.getLogger(Main.class); diff --git a/pom.xml b/pom.xml index 0b0f0d05..e19e455e 100644 --- a/pom.xml +++ b/pom.xml @@ -7,9 +7,10 @@ cn.ucloud ucloud-sdk-java pom - 1.2.9-release + 1.2.10-release ucloud-sdk-java-common + ucloud-sdk-java-cube ucloud-sdk-java-ipsecvpn ucloud-sdk-java-pathx ucloud-sdk-java-uaccount diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 65b6d1b4..4d2feba4 100644 --- a/ucloud-sdk-java-common/pom.xml +++ b/ucloud-sdk-java-common/pom.xml @@ -7,12 +7,12 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/client/DefaultClient.java b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/client/DefaultClient.java index 538efa4b..e75b1cf4 100644 --- a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/client/DefaultClient.java +++ b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/client/DefaultClient.java @@ -27,6 +27,7 @@ import cn.ucloud.common.transport.DefaultTransport; import cn.ucloud.common.transport.Transport; +import java.io.Closeable; import java.io.IOException; import java.util.ArrayList; import java.util.List; diff --git a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/credential/Credential.java b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/credential/Credential.java index 171eb392..1a62dff5 100644 --- a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/credential/Credential.java +++ b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/credential/Credential.java @@ -19,6 +19,7 @@ import org.apache.commons.codec.digest.DigestUtils; import java.io.UnsupportedEncodingException; +import java.math.BigDecimal; import java.security.NoSuchAlgorithmException; import java.text.DecimalFormat; import java.util.Arrays; diff --git a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/middlewares/LogMiddleware.java b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/middlewares/LogMiddleware.java index 51f7b093..e60198b2 100644 --- a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/middlewares/LogMiddleware.java +++ b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/middlewares/LogMiddleware.java @@ -19,9 +19,7 @@ import cn.ucloud.common.middleware.Middleware; import cn.ucloud.common.request.Request; import cn.ucloud.common.response.Response; - import com.google.gson.Gson; - import org.slf4j.Logger; /** LogMiddleware is the middleware to print logs */ diff --git a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/request/Request.java b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/request/Request.java index 257ec70c..966bfe42 100644 --- a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/request/Request.java +++ b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/request/Request.java @@ -17,7 +17,6 @@ import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.exception.UCloudException; import cn.ucloud.common.exception.ValidatorException; - import java.lang.reflect.Field; import java.util.*; diff --git a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/transport/DefaultTransport.java b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/transport/DefaultTransport.java index f2650821..049a9793 100644 --- a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/transport/DefaultTransport.java +++ b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/transport/DefaultTransport.java @@ -17,9 +17,12 @@ import cn.ucloud.common.exception.UCloudException; import cn.ucloud.common.request.Request; import cn.ucloud.common.response.Response; - import com.google.gson.Gson; +import java.io.Closeable; +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.apache.http.StatusLine; import org.apache.http.client.methods.CloseableHttpResponse; @@ -31,10 +34,6 @@ import org.apache.http.protocol.HTTP; import org.apache.http.util.EntityUtils; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.Map; - /** DefaultTransport is the default implementation of transport */ public class DefaultTransport implements Transport { @@ -82,9 +81,9 @@ public Response invoke(Request request, Class clazz) StatusLine httpStatus = httpResponse.getStatusLine(); if (httpStatus.getStatusCode() >= 400) { throw new UCloudException( - String.format( - "http error, status code %d %s", - httpStatus.getStatusCode(), httpStatus.getReasonPhrase())); + String.format( + "http error, status code %d %s", + httpStatus.getStatusCode(), httpStatus.getReasonPhrase())); } // decode response diff --git a/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/accessor/ConfigTest.java b/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/accessor/ConfigTest.java index 41e0e80a..31c16c2a 100644 --- a/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/accessor/ConfigTest.java +++ b/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/accessor/ConfigTest.java @@ -3,7 +3,6 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.exception.RetCodeException; import cn.ucloud.common.exception.ValidatorException; - import org.junit.Assert; import org.junit.Test; import org.slf4j.Logger; diff --git a/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/accessor/RequestTest.java b/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/accessor/RequestTest.java index e9f9f097..41613bad 100644 --- a/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/accessor/RequestTest.java +++ b/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/accessor/RequestTest.java @@ -3,12 +3,10 @@ import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; import cn.ucloud.common.response.Response; - +import java.util.*; import org.junit.Assert; import org.junit.Test; -import java.util.*; - class DemoRequest extends Request { @UCloudParam("Name") diff --git a/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/client/ClientTest.java b/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/client/ClientTest.java index 16415761..0c7b8ce9 100644 --- a/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/client/ClientTest.java +++ b/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/client/ClientTest.java @@ -8,7 +8,6 @@ import cn.ucloud.common.request.Request; import cn.ucloud.common.response.Response; import cn.ucloud.common.transport.DefaultTransport; - import org.apache.http.*; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.CloseableHttpClient; diff --git a/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/credential/CredentialTest.java b/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/credential/CredentialTest.java index 91718401..a7ea4f65 100644 --- a/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/credential/CredentialTest.java +++ b/ucloud-sdk-java-common/src/test/java/cn/ucloud/common/credential/CredentialTest.java @@ -63,9 +63,7 @@ public void verifyAc() throws UCloudException { } static class DoubleRequest extends Request { - DoubleRequest() { - super(); - } + DoubleRequest() { super(); } @UCloudParam("Proportion") private Double proportion; diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml new file mode 100644 index 00000000..19d2c7cd --- /dev/null +++ b/ucloud-sdk-java-cube/pom.xml @@ -0,0 +1,48 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.2.10-release + + + 4.0.0 + ucloud-sdk-java-cube + 1.2.10-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.10-release + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + \ No newline at end of file diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClient.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClient.java new file mode 100644 index 00000000..3cf5ce15 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClient.java @@ -0,0 +1,261 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.cube.client; + +import cn.ucloud.common.client.DefaultClient; +import cn.ucloud.common.config.Config; +import cn.ucloud.common.credential.Credential; +import cn.ucloud.common.exception.UCloudException; + + + +import cn.ucloud.cube.models.CreateCubeDeploymentRequest; +import cn.ucloud.cube.models.CreateCubeDeploymentResponse; + + + +import cn.ucloud.cube.models.CreateCubePodRequest; +import cn.ucloud.cube.models.CreateCubePodResponse; + + + +import cn.ucloud.cube.models.DeleteCubeDeploymentRequest; +import cn.ucloud.cube.models.DeleteCubeDeploymentResponse; + + + +import cn.ucloud.cube.models.DeleteCubePodRequest; +import cn.ucloud.cube.models.DeleteCubePodResponse; + + + +import cn.ucloud.cube.models.GetCubeDeploymentRequest; +import cn.ucloud.cube.models.GetCubeDeploymentResponse; + + + +import cn.ucloud.cube.models.GetCubeExecTokenRequest; +import cn.ucloud.cube.models.GetCubeExecTokenResponse; + + + +import cn.ucloud.cube.models.GetCubeExtendInfoRequest; +import cn.ucloud.cube.models.GetCubeExtendInfoResponse; + + + +import cn.ucloud.cube.models.GetCubeMetricsRequest; +import cn.ucloud.cube.models.GetCubeMetricsResponse; + + + +import cn.ucloud.cube.models.GetCubeTokenRequest; +import cn.ucloud.cube.models.GetCubeTokenResponse; + + + +import cn.ucloud.cube.models.ListCubePodRequest; +import cn.ucloud.cube.models.ListCubePodResponse; + + + +import cn.ucloud.cube.models.RenewCubePodRequest; +import cn.ucloud.cube.models.RenewCubePodResponse; + +/** + * This client is used to call actions of **Cube** service + */ +public class CubeClient extends DefaultClient implements CubeClientInterface { + public CubeClient(Config config, Credential credential) { + super(config, credential); + } + + + + + + + /** + * CreateCubeDeployment - 创建容器实例Deployment + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCubeDeploymentResponse createCubeDeployment(CreateCubeDeploymentRequest request) throws UCloudException { + request.setAction("CreateCubeDeployment"); + return (CreateCubeDeploymentResponse) this.invoke(request, CreateCubeDeploymentResponse.class); + } + + + + + + + /** + * CreateCubePod - 创建容器实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCubePodResponse createCubePod(CreateCubePodRequest request) throws UCloudException { + request.setAction("CreateCubePod"); + return (CreateCubePodResponse) this.invoke(request, CreateCubePodResponse.class); + } + + + + + + + /** + * DeleteCubeDeployment - 删除容器实例Deployment + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCubeDeploymentResponse deleteCubeDeployment(DeleteCubeDeploymentRequest request) throws UCloudException { + request.setAction("DeleteCubeDeployment"); + return (DeleteCubeDeploymentResponse) this.invoke(request, DeleteCubeDeploymentResponse.class); + } + + + + + + + /** + * DeleteCubePod - 删除容器实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCubePodResponse deleteCubePod(DeleteCubePodRequest request) throws UCloudException { + request.setAction("DeleteCubePod"); + return (DeleteCubePodResponse) this.invoke(request, DeleteCubePodResponse.class); + } + + + + + + + /** + * GetCubeDeployment - 获取容器实例Deployment详细信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeDeploymentResponse getCubeDeployment(GetCubeDeploymentRequest request) throws UCloudException { + request.setAction("GetCubeDeployment"); + return (GetCubeDeploymentResponse) this.invoke(request, GetCubeDeploymentResponse.class); + } + + + + + + + /** + * GetCubeExecToken - 获取容器实例执行token + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeExecTokenResponse getCubeExecToken(GetCubeExecTokenRequest request) throws UCloudException { + request.setAction("GetCubeExecToken"); + return (GetCubeExecTokenResponse) this.invoke(request, GetCubeExecTokenResponse.class); + } + + + + + + + /** + * GetCubeExtendInfo - 获取容器实例附加信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeExtendInfoResponse getCubeExtendInfo(GetCubeExtendInfoRequest request) throws UCloudException { + request.setAction("GetCubeExtendInfo"); + return (GetCubeExtendInfoResponse) this.invoke(request, GetCubeExtendInfoResponse.class); + } + + + + + + + /** + * GetCubeMetrics - 获取容器实例指标 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeMetricsResponse getCubeMetrics(GetCubeMetricsRequest request) throws UCloudException { + request.setAction("GetCubeMetrics"); + return (GetCubeMetricsResponse) this.invoke(request, GetCubeMetricsResponse.class); + } + + + + + + + /** + * GetCubeToken - 获取容器实例Token + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeTokenResponse getCubeToken(GetCubeTokenRequest request) throws UCloudException { + request.setAction("GetCubeToken"); + return (GetCubeTokenResponse) this.invoke(request, GetCubeTokenResponse.class); + } + + + + + + + /** + * ListCubePod - 获取容器实例详细列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListCubePodResponse listCubePod(ListCubePodRequest request) throws UCloudException { + request.setAction("ListCubePod"); + return (ListCubePodResponse) this.invoke(request, ListCubePodResponse.class); + } + + + + + + + /** + * RenewCubePod - 更新容器实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RenewCubePodResponse renewCubePod(RenewCubePodRequest request) throws UCloudException { + request.setAction("RenewCubePod"); + return (RenewCubePodResponse) this.invoke(request, RenewCubePodResponse.class); + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClientInterface.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClientInterface.java new file mode 100644 index 00000000..ed4d0275 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClientInterface.java @@ -0,0 +1,223 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.cube.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; + + + +import cn.ucloud.cube.models.CreateCubeDeploymentRequest; +import cn.ucloud.cube.models.CreateCubeDeploymentResponse; + + + +import cn.ucloud.cube.models.CreateCubePodRequest; +import cn.ucloud.cube.models.CreateCubePodResponse; + + + +import cn.ucloud.cube.models.DeleteCubeDeploymentRequest; +import cn.ucloud.cube.models.DeleteCubeDeploymentResponse; + + + +import cn.ucloud.cube.models.DeleteCubePodRequest; +import cn.ucloud.cube.models.DeleteCubePodResponse; + + + +import cn.ucloud.cube.models.GetCubeDeploymentRequest; +import cn.ucloud.cube.models.GetCubeDeploymentResponse; + + + +import cn.ucloud.cube.models.GetCubeExecTokenRequest; +import cn.ucloud.cube.models.GetCubeExecTokenResponse; + + + +import cn.ucloud.cube.models.GetCubeExtendInfoRequest; +import cn.ucloud.cube.models.GetCubeExtendInfoResponse; + + + +import cn.ucloud.cube.models.GetCubeMetricsRequest; +import cn.ucloud.cube.models.GetCubeMetricsResponse; + + + +import cn.ucloud.cube.models.GetCubeTokenRequest; +import cn.ucloud.cube.models.GetCubeTokenResponse; + + + +import cn.ucloud.cube.models.ListCubePodRequest; +import cn.ucloud.cube.models.ListCubePodResponse; + + + +import cn.ucloud.cube.models.RenewCubePodRequest; +import cn.ucloud.cube.models.RenewCubePodResponse; + +/** + * This client is used to call actions of **Cube** service + */ +public interface CubeClientInterface extends Client { + + + + + + + /** + * CreateCubeDeployment - 创建容器实例Deployment + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCubeDeploymentResponse createCubeDeployment(CreateCubeDeploymentRequest request) throws UCloudException; + + + + + + + /** + * CreateCubePod - 创建容器实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCubePodResponse createCubePod(CreateCubePodRequest request) throws UCloudException; + + + + + + + /** + * DeleteCubeDeployment - 删除容器实例Deployment + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCubeDeploymentResponse deleteCubeDeployment(DeleteCubeDeploymentRequest request) throws UCloudException; + + + + + + + /** + * DeleteCubePod - 删除容器实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCubePodResponse deleteCubePod(DeleteCubePodRequest request) throws UCloudException; + + + + + + + /** + * GetCubeDeployment - 获取容器实例Deployment详细信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeDeploymentResponse getCubeDeployment(GetCubeDeploymentRequest request) throws UCloudException; + + + + + + + /** + * GetCubeExecToken - 获取容器实例执行token + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeExecTokenResponse getCubeExecToken(GetCubeExecTokenRequest request) throws UCloudException; + + + + + + + /** + * GetCubeExtendInfo - 获取容器实例附加信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeExtendInfoResponse getCubeExtendInfo(GetCubeExtendInfoRequest request) throws UCloudException; + + + + + + + /** + * GetCubeMetrics - 获取容器实例指标 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeMetricsResponse getCubeMetrics(GetCubeMetricsRequest request) throws UCloudException; + + + + + + + /** + * GetCubeToken - 获取容器实例Token + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeTokenResponse getCubeToken(GetCubeTokenRequest request) throws UCloudException; + + + + + + + /** + * ListCubePod - 获取容器实例详细列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListCubePodResponse listCubePod(ListCubePodRequest request) throws UCloudException; + + + + + + + /** + * RenewCubePod - 更新容器实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RenewCubePodResponse renewCubePod(RenewCubePodRequest request) throws UCloudException; +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentRequest.java new file mode 100644 index 00000000..33a2f5c6 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentRequest.java @@ -0,0 +1,219 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class CreateCubeDeploymentRequest extends Request { + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Region") + private String region; + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + + + /** + * Deployment所属VPC + */ + @NotEmpty + @UCloudParam("VPCId") + private String vpcId; + + + + /** + * Deployment所属子网 + */ + @NotEmpty + @UCloudParam("SubnetId") + private String subnetId; + + + + /** + * Deployment yaml,使用base64编码 + */ + @NotEmpty + @UCloudParam("Deployment") + private String deployment; + + + + /** + * Deployment名称 + */ + @UCloudParam("Name") + private String name; + + + + /** + * CPU平台 + */ + @UCloudParam("CpuPlatform") + private String cpuPlatform; + + + + /** + * 计费模式 + */ + @UCloudParam("ChargeType") + private String chargeType; + + + + /** + * 数量,默认为1 + */ + @UCloudParam("Quantity") + private String quantity; + + + + /** + * 标签 + */ + @UCloudParam("Tag") + private String tag; + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getDeployment() { + return deployment; + } + + public void setDeployment(String deployment) { + this.deployment = deployment; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getCpuPlatform() { + return cpuPlatform; + } + + public void setCpuPlatform(String cpuPlatform) { + this.cpuPlatform = cpuPlatform; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getQuantity() { + return quantity; + } + + public void setQuantity(String quantity) { + this.quantity = quantity; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentResponse.java new file mode 100644 index 00000000..9c4c2634 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentResponse.java @@ -0,0 +1,70 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +public class CreateCubeDeploymentResponse extends Response { + + + + /** + * Deployment ID + */ + @SerializedName("DeploymentId") + private String deploymentId; + + + + /** + * Deployment yaml,使用base64编码 + */ + @SerializedName("Deployment") + private String deployment; + + + public String getDeploymentId() { + return deploymentId; + } + + public void setDeploymentId(String deploymentId) { + this.deploymentId = deploymentId; + } + + public String getDeployment() { + return deployment; + } + + public void setDeployment(String deployment) { + this.deployment = deployment; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodRequest.java new file mode 100644 index 00000000..7add10b5 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodRequest.java @@ -0,0 +1,139 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class CreateCubePodRequest extends Request { + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Region") + private String region; + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + + + /** + * 容器实例所属的VPC ID + */ + @NotEmpty + @UCloudParam("VPCId") + private String vpcId; + + + + /** + * 容器实例所属的子网ID + */ + @NotEmpty + @UCloudParam("SubnetId") + private String subnetId; + + + + /** + * Pod yaml,使用base64编码 + */ + @NotEmpty + @UCloudParam("Pod") + private String pod; + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getPod() { + return pod; + } + + public void setPod(String pod) { + this.pod = pod; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodResponse.java new file mode 100644 index 00000000..87ca5779 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodResponse.java @@ -0,0 +1,70 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +public class CreateCubePodResponse extends Response { + + + + /** + * Pod yaml,使用base64编码 + */ + @SerializedName("Pod") + private String pod; + + + + /** + * 容器实例ID + */ + @SerializedName("CubeId") + private String cubeId; + + + public String getPod() { + return pod; + } + + public void setPod(String pod) { + this.pod = pod; + } + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentRequest.java new file mode 100644 index 00000000..41ab393f --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentRequest.java @@ -0,0 +1,71 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class DeleteCubeDeploymentRequest extends Request { + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Region") + private String region; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentResponse.java new file mode 100644 index 00000000..3f9fb416 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentResponse.java @@ -0,0 +1,38 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +public class DeleteCubeDeploymentResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodRequest.java new file mode 100644 index 00000000..bcac7ba3 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodRequest.java @@ -0,0 +1,136 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class DeleteCubePodRequest extends Request { + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Region") + private String region; + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + + + /** + * 要删除的容器实例UID,若填写了CubeId则可忽略 + */ + @UCloudParam("Uid") + private String uid; + + + + /** + * 要删除的容器实例ID,若填写了Uid则可忽略 + */ + @UCloudParam("CubeId") + private String cubeId; + + + + /** + * 要释放的EIP,如果容器实例绑定了EIP则可以填写,会将EIP一并释放。否则EIP会被保留。 + */ + @UCloudParam("ReleaseEIP") + private String releaseEIP; + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUid() { + return uid; + } + + public void setUid(String uid) { + this.uid = uid; + } + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + + public String getReleaseEIP() { + return releaseEIP; + } + + public void setReleaseEIP(String releaseEIP) { + this.releaseEIP = releaseEIP; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodResponse.java new file mode 100644 index 00000000..1b6aa8ab --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodResponse.java @@ -0,0 +1,38 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +public class DeleteCubePodResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentRequest.java new file mode 100644 index 00000000..268b8010 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentRequest.java @@ -0,0 +1,105 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class GetCubeDeploymentRequest extends Request { + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Region") + private String region; + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + + + /** + * Deployment ID + */ + @NotEmpty + @UCloudParam("DeploymentId") + private String deploymentId; + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDeploymentId() { + return deploymentId; + } + + public void setDeploymentId(String deploymentId) { + this.deploymentId = deploymentId; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentResponse.java new file mode 100644 index 00000000..3a468078 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentResponse.java @@ -0,0 +1,54 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +public class GetCubeDeploymentResponse extends Response { + + + + /** + * Deployment yaml,使用base64编码 + */ + @SerializedName("Deployment") + private String deployment; + + + public String getDeployment() { + return deployment; + } + + public void setDeployment(String deployment) { + this.deployment = deployment; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenRequest.java new file mode 100644 index 00000000..f3266917 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenRequest.java @@ -0,0 +1,137 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class GetCubeExecTokenRequest extends Request { + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Region") + private String region; + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + + + /** + * 要执行的容器名称 + */ + @NotEmpty + @UCloudParam("ContainerName") + private String containerName; + + + + /** + * 容器实例ID,若填写了Uid则可忽略 + */ + @UCloudParam("CubeId") + private String cubeId; + + + + /** + * 容器实例UID,若填写了CubeId则可忽略 + */ + @UCloudParam("Uid") + private String uid; + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getContainerName() { + return containerName; + } + + public void setContainerName(String containerName) { + this.containerName = containerName; + } + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + + public String getUid() { + return uid; + } + + public void setUid(String uid) { + this.uid = uid; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenResponse.java new file mode 100644 index 00000000..83b695d5 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenResponse.java @@ -0,0 +1,70 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +public class GetCubeExecTokenResponse extends Response { + + + + /** + * 执行Token + */ + @SerializedName("Token") + private String token; + + + + /** + * 终端url + */ + @SerializedName("TerminalUrl") + private String terminalUrl; + + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + + public String getTerminalUrl() { + return terminalUrl; + } + + public void setTerminalUrl(String terminalUrl) { + this.terminalUrl = terminalUrl; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoRequest.java new file mode 100644 index 00000000..a5274c8d --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoRequest.java @@ -0,0 +1,104 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class GetCubeExtendInfoRequest extends Request { + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Region") + private String region; + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + + + /** + * 容器实例ID,用逗号分割 + */ + @UCloudParam("CubeIds") + private String cubeIds; + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getCubeIds() { + return cubeIds; + } + + public void setCubeIds(String cubeIds) { + this.cubeIds = cubeIds; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoResponse.java new file mode 100644 index 00000000..c447264f --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoResponse.java @@ -0,0 +1,319 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +public class GetCubeExtendInfoResponse extends Response { + + + + /** + * 容器实例的附加信息 + */ + @SerializedName("ExtendInfo") + private List extendInfo; + + + public List getExtendInfo() { + return extendInfo; + } + + public void setExtendInfo(List extendInfo) { + this.extendInfo = extendInfo; + } + + public static class CubeExtendInfo extends Response { + + + /** + * Cube的Id + */ + @SerializedName("CubeId") + private String cubeId; + + + + /** + * Cube的名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * EIPSet + */ + @SerializedName("Eip") + private List eip; + + + + /** + * 资源有效期 + */ + @SerializedName("Expiration") + private Integer expiration; + + + + /** + * 业务组名称 + */ + @SerializedName("Tag") + private String tag; + + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public List getEip() { + return eip; + } + + public void setEip(List eip) { + this.eip = eip; + } + + public Integer getExpiration() { + return expiration; + } + + public void setExpiration(Integer expiration) { + this.expiration = expiration; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + } + public static class EIPAddr extends Response { + + + /** + * IP地址 + */ + @SerializedName("IP") + private String ip; + + + + /** + * 线路名称BGP或者internalation + */ + @SerializedName("OperatorName") + private String operatorName; + + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public String getOperatorName() { + return operatorName; + } + + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + } + public static class EIPSet extends Response { + + + /** + * EIP带宽值 + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * 带宽类型0标准普通带宽,1表示共享带宽 + */ + @SerializedName("BandwidthType") + private Integer bandwidthType; + + + + /** + * EIP创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * EIP地址 + */ + @SerializedName("EIPAddr") + private List eipAddr; + + + + /** + * EIPId + */ + @SerializedName("EIPId") + private String eipId; + + + + /** + * 付费模式,带宽付费或者流量付费 + */ + @SerializedName("PayMode") + private String payMode; + + + + /** + * EIP绑定对象的资源Id + */ + @SerializedName("Resource") + private String resource; + + + + /** + * EIP状态,表示使用中或者空闲 + */ + @SerializedName("Status") + private String status; + + + + /** + * EIP权重 + */ + @SerializedName("Weight") + private Integer weight; + + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public Integer getBandwidthType() { + return bandwidthType; + } + + public void setBandwidthType(Integer bandwidthType) { + this.bandwidthType = bandwidthType; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public List getEIPAddr() { + return eipAddr; + } + + public void setEIPAddr(List eipAddr) { + this.eipAddr = eipAddr; + } + + public String getEIPId() { + return eipId; + } + + public void setEIPId(String eipId) { + this.eipId = eipId; + } + + public String getPayMode() { + return payMode; + } + + public void setPayMode(String payMode) { + this.payMode = payMode; + } + + public String getResource() { + return resource; + } + + public void setResource(String resource) { + this.resource = resource; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + + } +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsRequest.java new file mode 100644 index 00000000..9b540cd6 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsRequest.java @@ -0,0 +1,173 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class GetCubeMetricsRequest extends Request { + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Region") + private String region; + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + + + /** + * 资源ID + */ + @NotEmpty + @UCloudParam("ResourceId") + private String resourceId; + + + + /** + * 指标名称 + */ + @NotEmpty + @UCloudParam("MetricName") + private String metricName; + + + + /** + * 容器名称 + */ + @NotEmpty + @UCloudParam("ContainerName") + private String containerName; + + + + /** + * 开始时间 + */ + @NotEmpty + @UCloudParam("BeginTime") + private String beginTime; + + + + /** + * 结束时间 + */ + @NotEmpty + @UCloudParam("EndTime") + private String endTime; + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getMetricName() { + return metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public String getContainerName() { + return containerName; + } + + public void setContainerName(String containerName) { + this.containerName = containerName; + } + + public String getBeginTime() { + return beginTime; + } + + public void setBeginTime(String beginTime) { + this.beginTime = beginTime; + } + + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsResponse.java new file mode 100644 index 00000000..37761c28 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsResponse.java @@ -0,0 +1,124 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +public class GetCubeMetricsResponse extends Response { + + + + /** + * 指标数据 + */ + @SerializedName("DataSets") + private List dataSets; + + + public List getDataSets() { + return dataSets; + } + + public void setDataSets(List dataSets) { + this.dataSets = dataSets; + } + + public static class MetricDataSet extends Response { + + + /** + * + */ + @SerializedName("MetricName") + private String metricName; + + + + /** + * + */ + @SerializedName("Values") + private List values; + + + public String getMetricName() { + return metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public List getValues() { + return values; + } + + public void setValues(List values) { + this.values = values; + } + + } + public static class ValueSet extends Response { + + + /** + * + */ + @SerializedName("Value") + private Double value; + + + + /** + * + */ + @SerializedName("Timestamp") + private Integer timestamp; + + + public Double getValue() { + return value; + } + + public void setValue(Double value) { + this.value = value; + } + + public Integer getTimestamp() { + return timestamp; + } + + public void setTimestamp(Integer timestamp) { + this.timestamp = timestamp; + } + + } +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenRequest.java new file mode 100644 index 00000000..71fe1881 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenRequest.java @@ -0,0 +1,137 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class GetCubeTokenRequest extends Request { + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Region") + private String region; + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + + + /** + * 容器名称 + */ + @NotEmpty + @UCloudParam("ContainerName") + private String containerName; + + + + /** + * 容器实例ID,若填写了Uid则可忽略 + */ + @UCloudParam("CubeId") + private String cubeId; + + + + /** + * 容器实例UID,若填写了CubeId则可忽略 + */ + @UCloudParam("Uid") + private String uid; + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getContainerName() { + return containerName; + } + + public void setContainerName(String containerName) { + this.containerName = containerName; + } + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + + public String getUid() { + return uid; + } + + public void setUid(String uid) { + this.uid = uid; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenResponse.java new file mode 100644 index 00000000..59ad4675 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenResponse.java @@ -0,0 +1,54 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +public class GetCubeTokenResponse extends Response { + + + + /** + * 容器实例Token + */ + @SerializedName("Token") + private String token; + + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodRequest.java new file mode 100644 index 00000000..37b5c000 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodRequest.java @@ -0,0 +1,184 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class ListCubePodRequest extends Request { + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Region") + private String region; + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + + + /** + * 列表起始位置偏移量,默认为0 + */ + @UCloudParam("Offset") + private Integer offset; + + + + /** + * 返回数据长度,默认为20,最大100 + */ + @UCloudParam("Limit") + private Integer limit; + + + + /** + * 容器实例组 + */ + @UCloudParam("Group") + private String group; + + + + /** + * 容器实例所属VPC + */ + @UCloudParam("VPCId") + private String vpcId; + + + + /** + * 容器实例所属子网 + */ + @UCloudParam("SubnetId") + private String subnetId; + + + + /** + * 容器实例所属Deployment + */ + @UCloudParam("DeploymentId") + private String deploymentId; + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public String getGroup() { + return group; + } + + public void setGroup(String group) { + this.group = group; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getDeploymentId() { + return deploymentId; + } + + public void setDeploymentId(String deploymentId) { + this.deploymentId = deploymentId; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodResponse.java new file mode 100644 index 00000000..6d63ea16 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodResponse.java @@ -0,0 +1,70 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +public class ListCubePodResponse extends Response { + + + + /** + * 容器实例yaml列表,以base64编码 + */ + @SerializedName("Pods") + private List pods; + + + + /** + * 容器实例总数 + */ + @SerializedName("TotalCount") + private Integer totalCount; + + + public List getPods() { + return pods; + } + + public void setPods(List pods) { + this.pods = pods; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodRequest.java new file mode 100644 index 00000000..2a497dbc --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodRequest.java @@ -0,0 +1,121 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class RenewCubePodRequest extends Request { + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Region") + private String region; + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + + + /** + * Pod yaml,以base64编码 + */ + @NotEmpty + @UCloudParam("Pod") + private String pod; + + + + /** + * 要更新的容器实例ID + */ + @UCloudParam("CubeId") + private String cubeId; + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getPod() { + return pod; + } + + public void setPod(String pod) { + this.pod = pod; + } + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodResponse.java new file mode 100644 index 00000000..9da5130a --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodResponse.java @@ -0,0 +1,54 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.cube.models; + +import java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +public class RenewCubePodResponse extends Response { + + + + /** + * Pod yaml,以base64编码 + */ + @SerializedName("Pod") + private String pod; + + + public String getPod() { + return pod; + } + + public void setPod(String pod) { + this.pod = pod; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 261a8d24..5462253c 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-ipsecvpn - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/client/IPSecVPNClient.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/client/IPSecVPNClient.java index e7dd080e..61e0a98f 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/client/IPSecVPNClient.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/client/IPSecVPNClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.ipsecvpn.client; @@ -17,197 +19,285 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.ipsecvpn.models.CreateRemoteVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.CreateRemoteVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.CreateVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.CreateVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.CreateVPNTunnelRequest; import cn.ucloud.ipsecvpn.models.CreateVPNTunnelResponse; + + + import cn.ucloud.ipsecvpn.models.DeleteRemoteVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.DeleteRemoteVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.DeleteVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.DeleteVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.DeleteVPNTunnelRequest; import cn.ucloud.ipsecvpn.models.DeleteVPNTunnelResponse; + + + import cn.ucloud.ipsecvpn.models.DescribeRemoteVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.DescribeRemoteVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.DescribeVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.DescribeVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.DescribeVPNTunnelRequest; import cn.ucloud.ipsecvpn.models.DescribeVPNTunnelResponse; + + + import cn.ucloud.ipsecvpn.models.GetVPNGatewayPriceRequest; import cn.ucloud.ipsecvpn.models.GetVPNGatewayPriceResponse; + + + import cn.ucloud.ipsecvpn.models.GetVPNGatewayUpgradePriceRequest; import cn.ucloud.ipsecvpn.models.GetVPNGatewayUpgradePriceResponse; + + + import cn.ucloud.ipsecvpn.models.UpdateVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.UpdateVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.UpdateVPNTunnelAttributeRequest; import cn.ucloud.ipsecvpn.models.UpdateVPNTunnelAttributeResponse; -/** This client is used to call actions of **IPSecVPN** service */ +/** + * This client is used to call actions of **IPSecVPN** service + */ public class IPSecVPNClient extends DefaultClient implements IPSecVPNClientInterface { public IPSecVPNClient(Config config, Credential credential) { super(config, credential); } - - /** - * CreateRemoteVPNGateway - 创建客户VPN网关 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateRemoteVPNGatewayResponse createRemoteVPNGateway( - CreateRemoteVPNGatewayRequest request) throws UCloudException { - request.setAction("CreateRemoteVPNGateway"); - return (CreateRemoteVPNGatewayResponse) - this.invoke(request, CreateRemoteVPNGatewayResponse.class); - } - - /** - * CreateVPNGateway - 创建VPN网关 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateVPNGatewayResponse createVPNGateway(CreateVPNGatewayRequest request) - throws UCloudException { - request.setAction("CreateVPNGateway"); - return (CreateVPNGatewayResponse) this.invoke(request, CreateVPNGatewayResponse.class); - } - - /** - * CreateVPNTunnel - 创建VPN隧道 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateVPNTunnelResponse createVPNTunnel(CreateVPNTunnelRequest request) - throws UCloudException { - request.setAction("CreateVPNTunnel"); - return (CreateVPNTunnelResponse) this.invoke(request, CreateVPNTunnelResponse.class); - } - - /** - * DeleteRemoteVPNGateway - 删除客户VPN网关 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteRemoteVPNGatewayResponse deleteRemoteVPNGateway( - DeleteRemoteVPNGatewayRequest request) throws UCloudException { - request.setAction("DeleteRemoteVPNGateway"); - return (DeleteRemoteVPNGatewayResponse) - this.invoke(request, DeleteRemoteVPNGatewayResponse.class); - } - - /** - * DeleteVPNGateway - 删除VPN网关 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteVPNGatewayResponse deleteVPNGateway(DeleteVPNGatewayRequest request) - throws UCloudException { - request.setAction("DeleteVPNGateway"); - return (DeleteVPNGatewayResponse) this.invoke(request, DeleteVPNGatewayResponse.class); - } - - /** - * DeleteVPNTunnel - 删除VPN隧道 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteVPNTunnelResponse deleteVPNTunnel(DeleteVPNTunnelRequest request) - throws UCloudException { - request.setAction("DeleteVPNTunnel"); - return (DeleteVPNTunnelResponse) this.invoke(request, DeleteVPNTunnelResponse.class); - } - - /** - * DescribeRemoteVPNGateway - 获取客户VPN网关信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeRemoteVPNGatewayResponse describeRemoteVPNGateway( - DescribeRemoteVPNGatewayRequest request) throws UCloudException { - request.setAction("DescribeRemoteVPNGateway"); - return (DescribeRemoteVPNGatewayResponse) - this.invoke(request, DescribeRemoteVPNGatewayResponse.class); - } - - /** - * DescribeVPNGateway - 获取VPN网关信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeVPNGatewayResponse describeVPNGateway(DescribeVPNGatewayRequest request) - throws UCloudException { - request.setAction("DescribeVPNGateway"); - return (DescribeVPNGatewayResponse) this.invoke(request, DescribeVPNGatewayResponse.class); - } - - /** - * DescribeVPNTunnel - 获取VPN隧道信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeVPNTunnelResponse describeVPNTunnel(DescribeVPNTunnelRequest request) - throws UCloudException { - request.setAction("DescribeVPNTunnel"); - return (DescribeVPNTunnelResponse) this.invoke(request, DescribeVPNTunnelResponse.class); - } - - /** - * GetVPNGatewayPrice - 获取VPN价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetVPNGatewayPriceResponse getVPNGatewayPrice(GetVPNGatewayPriceRequest request) - throws UCloudException { - request.setAction("GetVPNGatewayPrice"); - return (GetVPNGatewayPriceResponse) this.invoke(request, GetVPNGatewayPriceResponse.class); - } - - /** - * GetVPNGatewayUpgradePrice - 获取VPN网关规格改动价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetVPNGatewayUpgradePriceResponse getVPNGatewayUpgradePrice( - GetVPNGatewayUpgradePriceRequest request) throws UCloudException { - request.setAction("GetVPNGatewayUpgradePrice"); - return (GetVPNGatewayUpgradePriceResponse) - this.invoke(request, GetVPNGatewayUpgradePriceResponse.class); - } - - /** - * UpdateVPNGateway - 更改VPN网关规格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateVPNGatewayResponse updateVPNGateway(UpdateVPNGatewayRequest request) - throws UCloudException { - request.setAction("UpdateVPNGateway"); - return (UpdateVPNGatewayResponse) this.invoke(request, UpdateVPNGatewayResponse.class); - } - - /** - * UpdateVPNTunnelAttribute - 更新VPN隧道属性 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateVPNTunnelAttributeResponse updateVPNTunnelAttribute( - UpdateVPNTunnelAttributeRequest request) throws UCloudException { - request.setAction("UpdateVPNTunnelAttribute"); - return (UpdateVPNTunnelAttributeResponse) - this.invoke(request, UpdateVPNTunnelAttributeResponse.class); - } + + + + + + + /** + * CreateRemoteVPNGateway - 创建客户VPN网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateRemoteVPNGatewayResponse createRemoteVPNGateway(CreateRemoteVPNGatewayRequest request) throws UCloudException { + request.setAction("CreateRemoteVPNGateway"); + return (CreateRemoteVPNGatewayResponse) this.invoke(request, CreateRemoteVPNGatewayResponse.class); + } + + + + + + + /** + * CreateVPNGateway - 创建VPN网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateVPNGatewayResponse createVPNGateway(CreateVPNGatewayRequest request) throws UCloudException { + request.setAction("CreateVPNGateway"); + return (CreateVPNGatewayResponse) this.invoke(request, CreateVPNGatewayResponse.class); + } + + + + + + + /** + * CreateVPNTunnel - 创建VPN隧道 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateVPNTunnelResponse createVPNTunnel(CreateVPNTunnelRequest request) throws UCloudException { + request.setAction("CreateVPNTunnel"); + return (CreateVPNTunnelResponse) this.invoke(request, CreateVPNTunnelResponse.class); + } + + + + + + + /** + * DeleteRemoteVPNGateway - 删除客户VPN网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteRemoteVPNGatewayResponse deleteRemoteVPNGateway(DeleteRemoteVPNGatewayRequest request) throws UCloudException { + request.setAction("DeleteRemoteVPNGateway"); + return (DeleteRemoteVPNGatewayResponse) this.invoke(request, DeleteRemoteVPNGatewayResponse.class); + } + + + + + + + /** + * DeleteVPNGateway - 删除VPN网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteVPNGatewayResponse deleteVPNGateway(DeleteVPNGatewayRequest request) throws UCloudException { + request.setAction("DeleteVPNGateway"); + return (DeleteVPNGatewayResponse) this.invoke(request, DeleteVPNGatewayResponse.class); + } + + + + + + + /** + * DeleteVPNTunnel - 删除VPN隧道 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteVPNTunnelResponse deleteVPNTunnel(DeleteVPNTunnelRequest request) throws UCloudException { + request.setAction("DeleteVPNTunnel"); + return (DeleteVPNTunnelResponse) this.invoke(request, DeleteVPNTunnelResponse.class); + } + + + + + + + /** + * DescribeRemoteVPNGateway - 获取客户VPN网关信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeRemoteVPNGatewayResponse describeRemoteVPNGateway(DescribeRemoteVPNGatewayRequest request) throws UCloudException { + request.setAction("DescribeRemoteVPNGateway"); + return (DescribeRemoteVPNGatewayResponse) this.invoke(request, DescribeRemoteVPNGatewayResponse.class); + } + + + + + + + /** + * DescribeVPNGateway - 获取VPN网关信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeVPNGatewayResponse describeVPNGateway(DescribeVPNGatewayRequest request) throws UCloudException { + request.setAction("DescribeVPNGateway"); + return (DescribeVPNGatewayResponse) this.invoke(request, DescribeVPNGatewayResponse.class); + } + + + + + + + /** + * DescribeVPNTunnel - 获取VPN隧道信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeVPNTunnelResponse describeVPNTunnel(DescribeVPNTunnelRequest request) throws UCloudException { + request.setAction("DescribeVPNTunnel"); + return (DescribeVPNTunnelResponse) this.invoke(request, DescribeVPNTunnelResponse.class); + } + + + + + + + /** + * GetVPNGatewayPrice - 获取VPN价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetVPNGatewayPriceResponse getVPNGatewayPrice(GetVPNGatewayPriceRequest request) throws UCloudException { + request.setAction("GetVPNGatewayPrice"); + return (GetVPNGatewayPriceResponse) this.invoke(request, GetVPNGatewayPriceResponse.class); + } + + + + + + + /** + * GetVPNGatewayUpgradePrice - 获取VPN网关规格改动价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetVPNGatewayUpgradePriceResponse getVPNGatewayUpgradePrice(GetVPNGatewayUpgradePriceRequest request) throws UCloudException { + request.setAction("GetVPNGatewayUpgradePrice"); + return (GetVPNGatewayUpgradePriceResponse) this.invoke(request, GetVPNGatewayUpgradePriceResponse.class); + } + + + + + + + /** + * UpdateVPNGateway - 更改VPN网关规格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateVPNGatewayResponse updateVPNGateway(UpdateVPNGatewayRequest request) throws UCloudException { + request.setAction("UpdateVPNGateway"); + return (UpdateVPNGatewayResponse) this.invoke(request, UpdateVPNGatewayResponse.class); + } + + + + + + + /** + * UpdateVPNTunnelAttribute - 更新VPN隧道属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateVPNTunnelAttributeResponse updateVPNTunnelAttribute(UpdateVPNTunnelAttributeRequest request) throws UCloudException { + request.setAction("UpdateVPNTunnelAttribute"); + return (UpdateVPNTunnelAttributeResponse) this.invoke(request, UpdateVPNTunnelAttributeResponse.class); + } } diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/client/IPSecVPNClientInterface.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/client/IPSecVPNClientInterface.java index 6f5fd777..ec4a0d77 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/client/IPSecVPNClientInterface.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/client/IPSecVPNClientInterface.java @@ -1,164 +1,259 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.ipsecvpn.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.ipsecvpn.models.CreateRemoteVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.CreateRemoteVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.CreateVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.CreateVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.CreateVPNTunnelRequest; import cn.ucloud.ipsecvpn.models.CreateVPNTunnelResponse; + + + import cn.ucloud.ipsecvpn.models.DeleteRemoteVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.DeleteRemoteVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.DeleteVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.DeleteVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.DeleteVPNTunnelRequest; import cn.ucloud.ipsecvpn.models.DeleteVPNTunnelResponse; + + + import cn.ucloud.ipsecvpn.models.DescribeRemoteVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.DescribeRemoteVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.DescribeVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.DescribeVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.DescribeVPNTunnelRequest; import cn.ucloud.ipsecvpn.models.DescribeVPNTunnelResponse; + + + import cn.ucloud.ipsecvpn.models.GetVPNGatewayPriceRequest; import cn.ucloud.ipsecvpn.models.GetVPNGatewayPriceResponse; + + + import cn.ucloud.ipsecvpn.models.GetVPNGatewayUpgradePriceRequest; import cn.ucloud.ipsecvpn.models.GetVPNGatewayUpgradePriceResponse; + + + import cn.ucloud.ipsecvpn.models.UpdateVPNGatewayRequest; import cn.ucloud.ipsecvpn.models.UpdateVPNGatewayResponse; + + + import cn.ucloud.ipsecvpn.models.UpdateVPNTunnelAttributeRequest; import cn.ucloud.ipsecvpn.models.UpdateVPNTunnelAttributeResponse; -/** This client is used to call actions of **IPSecVPN** service */ +/** + * This client is used to call actions of **IPSecVPN** service + */ public interface IPSecVPNClientInterface extends Client { - + + + + + + /** * CreateRemoteVPNGateway - 创建客户VPN网关 * * @param request Request object * @throws UCloudException Exception */ - public CreateRemoteVPNGatewayResponse createRemoteVPNGateway( - CreateRemoteVPNGatewayRequest request) throws UCloudException; - + public CreateRemoteVPNGatewayResponse createRemoteVPNGateway(CreateRemoteVPNGatewayRequest request) throws UCloudException; + + + + + + /** * CreateVPNGateway - 创建VPN网关 * * @param request Request object * @throws UCloudException Exception */ - public CreateVPNGatewayResponse createVPNGateway(CreateVPNGatewayRequest request) - throws UCloudException; - + public CreateVPNGatewayResponse createVPNGateway(CreateVPNGatewayRequest request) throws UCloudException; + + + + + + /** * CreateVPNTunnel - 创建VPN隧道 * * @param request Request object * @throws UCloudException Exception */ - public CreateVPNTunnelResponse createVPNTunnel(CreateVPNTunnelRequest request) - throws UCloudException; - + public CreateVPNTunnelResponse createVPNTunnel(CreateVPNTunnelRequest request) throws UCloudException; + + + + + + /** * DeleteRemoteVPNGateway - 删除客户VPN网关 * * @param request Request object * @throws UCloudException Exception */ - public DeleteRemoteVPNGatewayResponse deleteRemoteVPNGateway( - DeleteRemoteVPNGatewayRequest request) throws UCloudException; - + public DeleteRemoteVPNGatewayResponse deleteRemoteVPNGateway(DeleteRemoteVPNGatewayRequest request) throws UCloudException; + + + + + + /** * DeleteVPNGateway - 删除VPN网关 * * @param request Request object * @throws UCloudException Exception */ - public DeleteVPNGatewayResponse deleteVPNGateway(DeleteVPNGatewayRequest request) - throws UCloudException; - + public DeleteVPNGatewayResponse deleteVPNGateway(DeleteVPNGatewayRequest request) throws UCloudException; + + + + + + /** * DeleteVPNTunnel - 删除VPN隧道 * * @param request Request object * @throws UCloudException Exception */ - public DeleteVPNTunnelResponse deleteVPNTunnel(DeleteVPNTunnelRequest request) - throws UCloudException; - + public DeleteVPNTunnelResponse deleteVPNTunnel(DeleteVPNTunnelRequest request) throws UCloudException; + + + + + + /** * DescribeRemoteVPNGateway - 获取客户VPN网关信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeRemoteVPNGatewayResponse describeRemoteVPNGateway( - DescribeRemoteVPNGatewayRequest request) throws UCloudException; - + public DescribeRemoteVPNGatewayResponse describeRemoteVPNGateway(DescribeRemoteVPNGatewayRequest request) throws UCloudException; + + + + + + /** * DescribeVPNGateway - 获取VPN网关信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeVPNGatewayResponse describeVPNGateway(DescribeVPNGatewayRequest request) - throws UCloudException; - + public DescribeVPNGatewayResponse describeVPNGateway(DescribeVPNGatewayRequest request) throws UCloudException; + + + + + + /** * DescribeVPNTunnel - 获取VPN隧道信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeVPNTunnelResponse describeVPNTunnel(DescribeVPNTunnelRequest request) - throws UCloudException; - + public DescribeVPNTunnelResponse describeVPNTunnel(DescribeVPNTunnelRequest request) throws UCloudException; + + + + + + /** * GetVPNGatewayPrice - 获取VPN价格 * * @param request Request object * @throws UCloudException Exception */ - public GetVPNGatewayPriceResponse getVPNGatewayPrice(GetVPNGatewayPriceRequest request) - throws UCloudException; - + public GetVPNGatewayPriceResponse getVPNGatewayPrice(GetVPNGatewayPriceRequest request) throws UCloudException; + + + + + + /** * GetVPNGatewayUpgradePrice - 获取VPN网关规格改动价格 * * @param request Request object * @throws UCloudException Exception */ - public GetVPNGatewayUpgradePriceResponse getVPNGatewayUpgradePrice( - GetVPNGatewayUpgradePriceRequest request) throws UCloudException; - + public GetVPNGatewayUpgradePriceResponse getVPNGatewayUpgradePrice(GetVPNGatewayUpgradePriceRequest request) throws UCloudException; + + + + + + /** * UpdateVPNGateway - 更改VPN网关规格 * * @param request Request object * @throws UCloudException Exception */ - public UpdateVPNGatewayResponse updateVPNGateway(UpdateVPNGatewayRequest request) - throws UCloudException; - + public UpdateVPNGatewayResponse updateVPNGateway(UpdateVPNGatewayRequest request) throws UCloudException; + + + + + + /** * UpdateVPNTunnelAttribute - 更新VPN隧道属性 * * @param request Request object * @throws UCloudException Exception */ - public UpdateVPNTunnelAttributeResponse updateVPNTunnelAttribute( - UpdateVPNTunnelAttributeRequest request) throws UCloudException; + public UpdateVPNTunnelAttributeResponse updateVPNTunnelAttribute(UpdateVPNTunnelAttributeRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateRemoteVPNGatewayRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateRemoteVPNGatewayRequest.java index 7290d7a9..80ed847b 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateRemoteVPNGatewayRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateRemoteVPNGatewayRequest.java @@ -1,53 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateRemoteVPNGatewayRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 客户VPN网关名称 */ + + + + /** + * 客户VPN网关名称 + */ @NotEmpty @UCloudParam("RemoteVPNGatewayName") private String remoteVPNGatewayName; - - /** 客户VPN网关地址 */ + + + + /** + * 客户VPN网关地址 + */ @NotEmpty @UCloudParam("RemoteVPNGatewayAddr") private String remoteVPNGatewayAddr; - - /** 业务组名称,默认为 "Default" */ + + + + /** + * 业务组名称,默认为 "Default" + */ @UCloudParam("Tag") private String tag; - - /** 备注,默认为空 */ + + + + /** + * 备注,默认为空 + */ @UCloudParam("Remark") private String remark; - + + public String getRegion() { return region; } @@ -55,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -63,7 +93,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getRemoteVPNGatewayName() { return remoteVPNGatewayName; } @@ -71,7 +101,7 @@ public String getRemoteVPNGatewayName() { public void setRemoteVPNGatewayName(String remoteVPNGatewayName) { this.remoteVPNGatewayName = remoteVPNGatewayName; } - + public String getRemoteVPNGatewayAddr() { return remoteVPNGatewayAddr; } @@ -79,7 +109,7 @@ public String getRemoteVPNGatewayAddr() { public void setRemoteVPNGatewayAddr(String remoteVPNGatewayAddr) { this.remoteVPNGatewayAddr = remoteVPNGatewayAddr; } - + public String getTag() { return tag; } @@ -87,7 +117,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -95,4 +125,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateRemoteVPNGatewayResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateRemoteVPNGatewayResponse.java index a875a43d..d2d38025 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateRemoteVPNGatewayResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateRemoteVPNGatewayResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateRemoteVPNGatewayResponse extends Response { - /** 新建客户VPN网关的资源ID */ + + + /** + * 新建客户VPN网关的资源ID + */ @SerializedName("RemoteVPNGatewayId") private String remoteVPNGatewayId; - + + public String getRemoteVPNGatewayId() { return remoteVPNGatewayId; } @@ -31,4 +41,14 @@ public String getRemoteVPNGatewayId() { public void setRemoteVPNGatewayId(String remoteVPNGatewayId) { this.remoteVPNGatewayId = remoteVPNGatewayId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNGatewayRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNGatewayRequest.java index 3e47a113..1f03fdc5 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNGatewayRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNGatewayRequest.java @@ -1,78 +1,132 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateVPNGatewayRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 新建VPN网关名称 */ + + + + /** + * 新建VPN网关名称 + */ @NotEmpty @UCloudParam("VPNGatewayName") private String vpnGatewayName; - - /** 新建VPN网关所属VPC的资源ID */ + + + + /** + * 新建VPN网关所属VPC的资源ID + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - - /** 购买的VPN网关规格,枚举值为: Standard, 标准型; Enhanced, 增强型 */ + + + + /** + * 购买的VPN网关规格,枚举值为: Standard, 标准型; Enhanced, 增强型 + */ @NotEmpty @UCloudParam("Grade") private String grade; - - /** 备注,默认为空 */ + + + + /** + * 备注,默认为空 + */ @UCloudParam("Remark") private String remark; - - /** 业务组名称,默认为 "Default" */ + + + + /** + * 业务组名称,默认为 "Default" + */ @UCloudParam("Tag") private String tag; - - /** 购买时长, 默认: 1 */ + + + + /** + * 购买时长, 默认: 1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费;Dynamic, 按需付费(需开启权限);Trial, 试用(需开启权限);默认为按月付费 */ + + + + /** + * 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费;Dynamic, 按需付费(需开启权限);Trial, 试用(需开启权限);默认为按月付费 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 业务组ID */ + + + + /** + * 业务组ID + */ @UCloudParam("BusinessId") private String businessId; - - /** 若要绑定EIP,在此填上EIP的资源ID */ + + + + /** + * 若要绑定EIP,在此填上EIP的资源ID + */ @UCloudParam("EIPId") private String eipId; - - /** 代金券ID, 默认不使用 */ + + + + /** + * 代金券ID, 默认不使用 + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -80,7 +134,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -88,7 +142,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPNGatewayName() { return vpnGatewayName; } @@ -96,7 +150,7 @@ public String getVPNGatewayName() { public void setVPNGatewayName(String vpnGatewayName) { this.vpnGatewayName = vpnGatewayName; } - + public String getVPCId() { return vpcId; } @@ -104,7 +158,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getGrade() { return grade; } @@ -112,7 +166,7 @@ public String getGrade() { public void setGrade(String grade) { this.grade = grade; } - + public String getRemark() { return remark; } @@ -120,7 +174,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public String getTag() { return tag; } @@ -128,7 +182,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public Integer getQuantity() { return quantity; } @@ -136,7 +190,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getChargeType() { return chargeType; } @@ -144,7 +198,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getBusinessId() { return businessId; } @@ -152,7 +206,7 @@ public String getBusinessId() { public void setBusinessId(String businessId) { this.businessId = businessId; } - + public String getEIPId() { return eipId; } @@ -160,7 +214,7 @@ public String getEIPId() { public void setEIPId(String eipId) { this.eipId = eipId; } - + public String getCouponId() { return couponId; } @@ -168,4 +222,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNGatewayResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNGatewayResponse.java index e1f40463..9ea45c71 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNGatewayResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNGatewayResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateVPNGatewayResponse extends Response { - /** 新建VPN网关的资源ID */ + + + /** + * 新建VPN网关的资源ID + */ @SerializedName("VPNGatewayId") private String vpnGatewayId; - + + public String getVPNGatewayId() { return vpnGatewayId; } @@ -31,4 +41,14 @@ public String getVPNGatewayId() { public void setVPNGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNTunnelRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNTunnelRequest.java index b9eabcbf..af292fd1 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNTunnelRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNTunnelRequest.java @@ -1,143 +1,249 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateVPNTunnelRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** VPN隧道名称 */ + + + + /** + * VPN隧道名称 + */ @NotEmpty @UCloudParam("VPNTunnelName") private String vpnTunnelName; - - /** VPN网关的资源ID */ + + + + /** + * VPN网关的资源ID + */ @NotEmpty @UCloudParam("VPNGatewayId") private String vpnGatewayId; - - /** 客户VPN网关的资源ID */ + + + + /** + * 客户VPN网关的资源ID + */ @NotEmpty @UCloudParam("RemoteVPNGatewayId") private String remoteVPNGatewayId; - - /** 预共享密钥 */ + + + + /** + * 预共享密钥 + */ @NotEmpty @UCloudParam("IKEPreSharedKey") private String ikePreSharedKey; - - /** vpcId */ + + + + /** + * vpcId + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - - /** ike版本,枚举值: "IKE V1","IKE V2",默认v1 */ + + + + /** + * ike版本,枚举值: "IKE V1","IKE V2",默认v1 + */ @NotEmpty @UCloudParam("IKEVersion") private String ikeVersion; - - /** 指定VPN连接的本地子网的资源ID,最多可填写10个。 */ + + + + /** + * 指定VPN连接的本地子网的资源ID,最多可填写10个。 + */ @NotEmpty @UCloudParam("IPSecLocalSubnetIds") private List ipSecLocalSubnetIds; - - /** 指定VPN连接的客户网段,最多可填写20个。 */ + + + + /** + * 指定VPN连接的客户网段,最多可填写20个。 + */ @NotEmpty @UCloudParam("IPSecRemoteSubnets") private List ipSecRemoteSubnets; - - /** 业务组,默认为“Default” */ + + + + /** + * 业务组,默认为“Default” + */ @UCloudParam("Tag") private String tag; - - /** 备注,默认为空 */ + + + + /** + * 备注,默认为空 + */ @UCloudParam("Remark") private String remark; - - /** IKE协商过程中使用的加密算法,枚举值,"aes128", "aes192", "aes256", "aes512", "3des"。默认值为“aes128” */ + + + + /** + * IKE协商过程中使用的加密算法,枚举值,"aes128", "aes192", "aes256", "aes512", "3des"。默认值为“aes128” + */ @UCloudParam("IKEEncryptionAlgorithm") private String ikeEncryptionAlgorithm; - - /** IKE协商过程中使用的认证算法,"md5", "sha1", "sha2-256"。默认值为“sha1” */ + + + + /** + * IKE协商过程中使用的认证算法,"md5", "sha1", "sha2-256"。默认值为“sha1” + */ @UCloudParam("IKEAuthenticationAlgorithm") private String ikeAuthenticationAlgorithm; - - /** IKE协商过程中使用的模式,枚举值,主模式,“main”;野蛮模式,“aggressive”。IKEV1默认为主模式“main”,IKEV2时不使用该参数。 */ + + + + /** + * IKE协商过程中使用的模式,枚举值,主模式,“main”;野蛮模式,“aggressive”。IKEV1默认为主模式“main”,IKEV2时不使用该参数。 + */ @UCloudParam("IKEExchangeMode") private String ikeExchangeMode; - - /** 本端标识。枚举值,自动识别,“auto”;IP地址或域名。默认为自动识别“auto”。IKEV2必填该参数 */ + + + + /** + * 本端标识。枚举值,自动识别,“auto”;IP地址或域名。默认为自动识别“auto”。IKEV2必填该参数 + */ @UCloudParam("IKELocalId") private String ikeLocalId; - - /** 客户端标识。枚举值,自动识别,“auto”;IP地址或域名。默认为“自动识别“auto”。IKEV2必填该参数 */ + + + + /** + * 客户端标识。枚举值,自动识别,“auto”;IP地址或域名。默认为“自动识别“auto”。IKEV2必填该参数 + */ @UCloudParam("IKERemoteId") private String ikeRemoteId; - - /** IKE协商过程中使用的DH组,枚举值,"1", "2", "5", "14", "15", "16"。默认为“15” */ + + + + /** + * IKE协商过程中使用的DH组,枚举值,"1", "2", "5", "14", "15", "16"。默认为“15” + */ @UCloudParam("IKEDhGroup") private String ikeDhGroup; - - /** IKE中SA的生存时间,可填写范围为600-604800。默认为86400。 */ + + + + /** + * IKE中SA的生存时间,可填写范围为600-604800。默认为86400。 + */ @UCloudParam("IKESALifetime") private String ikesaLifetime; - - /** 使用的安全协议,枚举值,“esp”,“ah”。默认为“esp” */ + + + + /** + * 使用的安全协议,枚举值,“esp”,“ah”。默认为“esp” + */ @UCloudParam("IPSecProtocol") private String ipSecProtocol; - - /** IPSec隧道中使用的加密算法,枚举值,"aes128", "aes192", "aes256", "aes512", "3des"。默认值为“aes128” */ + + + + /** + * IPSec隧道中使用的加密算法,枚举值,"aes128", "aes192", "aes256", "aes512", "3des"。默认值为“aes128” + */ @UCloudParam("IPSecEncryptionAlgorithm") private String ipSecEncryptionAlgorithm; - - /** IPSec隧道中使用的认证算法,枚举值,"md5", "sha1","sha2-256"。默认值为“sha1” */ + + + + /** + * IPSec隧道中使用的认证算法,枚举值,"md5", "sha1","sha2-256"。默认值为“sha1” + */ @UCloudParam("IPSecAuthenticationAlgorithm") private String ipSecAuthenticationAlgorithm; - - /** IPSec中SA的生存时间,可填写范围为1200 - 604800。默认为3600 */ + + + + /** + * IPSec中SA的生存时间,可填写范围为1200 - 604800。默认为3600 + */ @UCloudParam("IPSecSALifetime") private String ipSecSALifetime; - - /** IPSec中SA的生存时间(以字节计)。可选为8000 – 20000000。默认使用SA生存时间, */ + + + + /** + * IPSec中SA的生存时间(以字节计)。可选为8000 – 20000000。默认使用SA生存时间, + */ @UCloudParam("IPSecSALifetimeBytes") private String ipSecSALifetimeBytes; - - /** IPSec的PFS是否开启,枚举值,,不开启,"disable";数字表示DH组, "1", "2", "5", "14", "15", "16"。默认为“disable”。 */ + + + + /** + * IPSec的PFS是否开启,枚举值,,不开启,"disable";数字表示DH组, "1", "2", "5", "14", "15", "16"。默认为“disable”。 + */ @UCloudParam("IPSecPFSDhGroup") private String ipSecPFSDhGroup; - - /** IPSec隧道关闭后的处理动作,枚举值:“none”,流量触发;“restart”,自动重联,默认为none */ + + + + /** + * IPSec隧道关闭后的处理动作,枚举值:“none”,流量触发;“restart”,自动重联,默认为none + */ @UCloudParam("IPSecCloseAction") private String ipSecCloseAction; - + + public String getRegion() { return region; } @@ -145,7 +251,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -153,7 +259,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPNTunnelName() { return vpnTunnelName; } @@ -161,7 +267,7 @@ public String getVPNTunnelName() { public void setVPNTunnelName(String vpnTunnelName) { this.vpnTunnelName = vpnTunnelName; } - + public String getVPNGatewayId() { return vpnGatewayId; } @@ -169,7 +275,7 @@ public String getVPNGatewayId() { public void setVPNGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; } - + public String getRemoteVPNGatewayId() { return remoteVPNGatewayId; } @@ -177,7 +283,7 @@ public String getRemoteVPNGatewayId() { public void setRemoteVPNGatewayId(String remoteVPNGatewayId) { this.remoteVPNGatewayId = remoteVPNGatewayId; } - + public String getIKEPreSharedKey() { return ikePreSharedKey; } @@ -185,7 +291,7 @@ public String getIKEPreSharedKey() { public void setIKEPreSharedKey(String ikePreSharedKey) { this.ikePreSharedKey = ikePreSharedKey; } - + public String getVPCId() { return vpcId; } @@ -193,7 +299,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getIKEVersion() { return ikeVersion; } @@ -201,7 +307,7 @@ public String getIKEVersion() { public void setIKEVersion(String ikeVersion) { this.ikeVersion = ikeVersion; } - + public List getIPSecLocalSubnetIds() { return ipSecLocalSubnetIds; } @@ -209,7 +315,7 @@ public List getIPSecLocalSubnetIds() { public void setIPSecLocalSubnetIds(List ipSecLocalSubnetIds) { this.ipSecLocalSubnetIds = ipSecLocalSubnetIds; } - + public List getIPSecRemoteSubnets() { return ipSecRemoteSubnets; } @@ -217,7 +323,7 @@ public List getIPSecRemoteSubnets() { public void setIPSecRemoteSubnets(List ipSecRemoteSubnets) { this.ipSecRemoteSubnets = ipSecRemoteSubnets; } - + public String getTag() { return tag; } @@ -225,7 +331,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -233,7 +339,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public String getIKEEncryptionAlgorithm() { return ikeEncryptionAlgorithm; } @@ -241,7 +347,7 @@ public String getIKEEncryptionAlgorithm() { public void setIKEEncryptionAlgorithm(String ikeEncryptionAlgorithm) { this.ikeEncryptionAlgorithm = ikeEncryptionAlgorithm; } - + public String getIKEAuthenticationAlgorithm() { return ikeAuthenticationAlgorithm; } @@ -249,7 +355,7 @@ public String getIKEAuthenticationAlgorithm() { public void setIKEAuthenticationAlgorithm(String ikeAuthenticationAlgorithm) { this.ikeAuthenticationAlgorithm = ikeAuthenticationAlgorithm; } - + public String getIKEExchangeMode() { return ikeExchangeMode; } @@ -257,7 +363,7 @@ public String getIKEExchangeMode() { public void setIKEExchangeMode(String ikeExchangeMode) { this.ikeExchangeMode = ikeExchangeMode; } - + public String getIKELocalId() { return ikeLocalId; } @@ -265,7 +371,7 @@ public String getIKELocalId() { public void setIKELocalId(String ikeLocalId) { this.ikeLocalId = ikeLocalId; } - + public String getIKERemoteId() { return ikeRemoteId; } @@ -273,7 +379,7 @@ public String getIKERemoteId() { public void setIKERemoteId(String ikeRemoteId) { this.ikeRemoteId = ikeRemoteId; } - + public String getIKEDhGroup() { return ikeDhGroup; } @@ -281,7 +387,7 @@ public String getIKEDhGroup() { public void setIKEDhGroup(String ikeDhGroup) { this.ikeDhGroup = ikeDhGroup; } - + public String getIKESALifetime() { return ikesaLifetime; } @@ -289,7 +395,7 @@ public String getIKESALifetime() { public void setIKESALifetime(String ikesaLifetime) { this.ikesaLifetime = ikesaLifetime; } - + public String getIPSecProtocol() { return ipSecProtocol; } @@ -297,7 +403,7 @@ public String getIPSecProtocol() { public void setIPSecProtocol(String ipSecProtocol) { this.ipSecProtocol = ipSecProtocol; } - + public String getIPSecEncryptionAlgorithm() { return ipSecEncryptionAlgorithm; } @@ -305,7 +411,7 @@ public String getIPSecEncryptionAlgorithm() { public void setIPSecEncryptionAlgorithm(String ipSecEncryptionAlgorithm) { this.ipSecEncryptionAlgorithm = ipSecEncryptionAlgorithm; } - + public String getIPSecAuthenticationAlgorithm() { return ipSecAuthenticationAlgorithm; } @@ -313,7 +419,7 @@ public String getIPSecAuthenticationAlgorithm() { public void setIPSecAuthenticationAlgorithm(String ipSecAuthenticationAlgorithm) { this.ipSecAuthenticationAlgorithm = ipSecAuthenticationAlgorithm; } - + public String getIPSecSALifetime() { return ipSecSALifetime; } @@ -321,7 +427,7 @@ public String getIPSecSALifetime() { public void setIPSecSALifetime(String ipSecSALifetime) { this.ipSecSALifetime = ipSecSALifetime; } - + public String getIPSecSALifetimeBytes() { return ipSecSALifetimeBytes; } @@ -329,7 +435,7 @@ public String getIPSecSALifetimeBytes() { public void setIPSecSALifetimeBytes(String ipSecSALifetimeBytes) { this.ipSecSALifetimeBytes = ipSecSALifetimeBytes; } - + public String getIPSecPFSDhGroup() { return ipSecPFSDhGroup; } @@ -337,7 +443,7 @@ public String getIPSecPFSDhGroup() { public void setIPSecPFSDhGroup(String ipSecPFSDhGroup) { this.ipSecPFSDhGroup = ipSecPFSDhGroup; } - + public String getIPSecCloseAction() { return ipSecCloseAction; } @@ -345,4 +451,14 @@ public String getIPSecCloseAction() { public void setIPSecCloseAction(String ipSecCloseAction) { this.ipSecCloseAction = ipSecCloseAction; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNTunnelResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNTunnelResponse.java index 6de9f42f..b13f3c88 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNTunnelResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/CreateVPNTunnelResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateVPNTunnelResponse extends Response { - /** VPN隧道的资源ID */ + + + /** + * VPN隧道的资源ID + */ @SerializedName("VPNTunnelId") private String vpnTunnelId; - + + public String getVPNTunnelId() { return vpnTunnelId; } @@ -31,4 +41,14 @@ public String getVPNTunnelId() { public void setVPNTunnelId(String vpnTunnelId) { this.vpnTunnelId = vpnTunnelId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteRemoteVPNGatewayRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteRemoteVPNGatewayRequest.java index 2de02b91..381d74d5 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteRemoteVPNGatewayRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteRemoteVPNGatewayRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteRemoteVPNGatewayRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 客户VPN网关的资源ID */ + + + + /** + * 客户VPN网关的资源ID + */ @NotEmpty @UCloudParam("RemoteVPNGatewayId") private String remoteVPNGatewayId; - + + public String getRegion() { return region; } @@ -42,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -50,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getRemoteVPNGatewayId() { return remoteVPNGatewayId; } @@ -58,4 +76,14 @@ public String getRemoteVPNGatewayId() { public void setRemoteVPNGatewayId(String remoteVPNGatewayId) { this.remoteVPNGatewayId = remoteVPNGatewayId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteRemoteVPNGatewayResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteRemoteVPNGatewayResponse.java index f238a58a..c090d51e 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteRemoteVPNGatewayResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteRemoteVPNGatewayResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteRemoteVPNGatewayResponse extends Response {} +public class DeleteRemoteVPNGatewayResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNGatewayRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNGatewayRequest.java index ad14ec3a..85905e36 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNGatewayRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNGatewayRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteVPNGatewayRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** VPN网关的资源ID */ + + + + /** + * VPN网关的资源ID + */ @NotEmpty @UCloudParam("VPNGatewayId") private String vpnGatewayId; - - /** 删除VPN时是否一并释放EIP。false,只解绑EIP不删除EIP;true,解绑并释放EIP。默认是false */ + + + + /** + * 删除VPN时是否一并释放EIP。false,只解绑EIP不删除EIP;true,解绑并释放EIP。默认是false + */ @UCloudParam("ReleaseEip") private Boolean releaseEip; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -54,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPNGatewayId() { return vpnGatewayId; } @@ -62,7 +84,7 @@ public String getVPNGatewayId() { public void setVPNGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; } - + public Boolean getReleaseEip() { return releaseEip; } @@ -70,4 +92,14 @@ public Boolean getReleaseEip() { public void setReleaseEip(Boolean releaseEip) { this.releaseEip = releaseEip; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNGatewayResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNGatewayResponse.java index f940df73..bc8654c6 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNGatewayResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNGatewayResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteVPNGatewayResponse extends Response {} +public class DeleteVPNGatewayResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNTunnelRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNTunnelRequest.java index ae7d3e22..ab297b5b 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNTunnelRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNTunnelRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteVPNTunnelRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** VPN隧道的资源ID */ + + + + /** + * VPN隧道的资源ID + */ @NotEmpty @UCloudParam("VPNTunnelId") private String vpnTunnelId; - + + public String getRegion() { return region; } @@ -42,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -50,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPNTunnelId() { return vpnTunnelId; } @@ -58,4 +76,14 @@ public String getVPNTunnelId() { public void setVPNTunnelId(String vpnTunnelId) { this.vpnTunnelId = vpnTunnelId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNTunnelResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNTunnelResponse.java index b4887276..223b9e6e 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNTunnelResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DeleteVPNTunnelResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteVPNTunnelResponse extends Response {} +public class DeleteVPNTunnelResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeRemoteVPNGatewayRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeRemoteVPNGatewayRequest.java index 16c97cf5..a6b0e2c7 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeRemoteVPNGatewayRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeRemoteVPNGatewayRequest.java @@ -1,57 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeRemoteVPNGatewayRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - + + + /** * 客户VPN网关的资源ID,例如RemoteVPNGatewayIds.0代表希望获取客户VPN网关1的信息,RemoteVPNGatewayIds.1代表客户VPN网关2,如果为空,则返回当前Region中所有客户VPN网关实例的信息 */ @UCloudParam("RemoteVPNGatewayIds") private List remoteVPNGatewayIds; - - /** 业务组名称,若指定则返回业务组下所有客户VPN网关信息 */ + + + + /** + * 业务组名称,若指定则返回业务组下所有客户VPN网关信息 + */ @UCloudParam("Tag") private String tag; - - /** 数据偏移量, 默认为0 */ + + + + /** + * 数据偏移量, 默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 数据分页值, 默认为20 */ + + + + /** + * 数据分页值, 默认为20 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -59,7 +83,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -67,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getRemoteVPNGatewayIds() { return remoteVPNGatewayIds; } @@ -75,7 +99,7 @@ public List getRemoteVPNGatewayIds() { public void setRemoteVPNGatewayIds(List remoteVPNGatewayIds) { this.remoteVPNGatewayIds = remoteVPNGatewayIds; } - + public String getTag() { return tag; } @@ -83,7 +107,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public Integer getOffset() { return offset; } @@ -91,7 +115,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -99,4 +123,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeRemoteVPNGatewayResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeRemoteVPNGatewayResponse.java index 4841478f..e4d61159 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeRemoteVPNGatewayResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeRemoteVPNGatewayResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeRemoteVPNGatewayResponse extends Response { - /** 符合条件的客户VPN网关总数 */ + + + /** + * 符合条件的客户VPN网关总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 客户VPN网关列表, 每项参数详见 RemoteVPNGatewayDataSet */ + + + + /** + * 客户VPN网关列表, 每项参数详见 RemoteVPNGatewayDataSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,91 +57,129 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class RemoteVPNGatewayDataSet extends Response { + + + /** + * 客户网关ID + */ + @SerializedName("RemoteVPNGatewayId") + private String remoteVPNGatewayId; + + + + /** + * 客户网关名称 + */ + @SerializedName("RemoteVPNGatewayName") + private String remoteVPNGatewayName; + + + + /** + * 客户网关IP地址 + */ + @SerializedName("RemoteVPNGatewayAddr") + private String remoteVPNGatewayAddr; + + + + /** + * 用户组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 活跃的隧道数量 + */ + @SerializedName("TunnelCount") + private Integer tunnelCount; + + + public String getRemoteVPNGatewayId() { + return remoteVPNGatewayId; + } - public static class RemoteVPNGatewayDataSet extends Response { - - /** 客户网关ID */ - @SerializedName("RemoteVPNGatewayId") - private String remoteVPNGatewayId; - - /** 客户网关名称 */ - @SerializedName("RemoteVPNGatewayName") - private String remoteVPNGatewayName; - - /** 客户网关IP地址 */ - @SerializedName("RemoteVPNGatewayAddr") - private String remoteVPNGatewayAddr; - - /** 用户组 */ - @SerializedName("Tag") - private String tag; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; + public void setRemoteVPNGatewayId(String remoteVPNGatewayId) { + this.remoteVPNGatewayId = remoteVPNGatewayId; + } + + public String getRemoteVPNGatewayName() { + return remoteVPNGatewayName; + } - /** 活跃的隧道数量 */ - @SerializedName("TunnelCount") - private Integer tunnelCount; + public void setRemoteVPNGatewayName(String remoteVPNGatewayName) { + this.remoteVPNGatewayName = remoteVPNGatewayName; + } + + public String getRemoteVPNGatewayAddr() { + return remoteVPNGatewayAddr; + } - public String getRemoteVPNGatewayId() { - return remoteVPNGatewayId; - } + public void setRemoteVPNGatewayAddr(String remoteVPNGatewayAddr) { + this.remoteVPNGatewayAddr = remoteVPNGatewayAddr; + } + + public String getTag() { + return tag; + } - public void setRemoteVPNGatewayId(String remoteVPNGatewayId) { - this.remoteVPNGatewayId = remoteVPNGatewayId; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } - public String getRemoteVPNGatewayName() { - return remoteVPNGatewayName; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getCreateTime() { + return createTime; + } - public void setRemoteVPNGatewayName(String remoteVPNGatewayName) { - this.remoteVPNGatewayName = remoteVPNGatewayName; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getTunnelCount() { + return tunnelCount; + } - public String getRemoteVPNGatewayAddr() { - return remoteVPNGatewayAddr; + public void setTunnelCount(Integer tunnelCount) { + this.tunnelCount = tunnelCount; + } + } +} - public void setRemoteVPNGatewayAddr(String remoteVPNGatewayAddr) { - this.remoteVPNGatewayAddr = remoteVPNGatewayAddr; - } - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getTunnelCount() { - return tunnelCount; - } - public void setTunnelCount(Integer tunnelCount) { - this.tunnelCount = tunnelCount; - } - } -} diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNGatewayRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNGatewayRequest.java index 7ebe7835..7c67d2fe 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNGatewayRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNGatewayRequest.java @@ -1,58 +1,89 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeVPNGatewayRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - + + + /** * VPN网关的资源ID,例如VPNGatewayIds.0代表希望获取VPN网关1的信息,VPNGatewayIds.1代表VPN网关2,如果为空,则返回当前Region中所有VPN网关的信息 */ @UCloudParam("VPNGatewayIds") private List vpnGatewayIds; - - /** VPC的资源ID,返回指定的VPC下的所有VPN网关的信息。默认返回当前Region中所有VPN网关实例的信息 */ + + + + /** + * VPC的资源ID,返回指定的VPC下的所有VPN网关的信息。默认返回当前Region中所有VPN网关实例的信息 + */ @UCloudParam("VPCId") private String vpcId; - - /** 数据偏移量。默认为0 */ + + + + /** + * 数据偏移量。默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 业务组名称,若指定则返回指定的业务组下的所有VPN网关的信息。 */ + + + + /** + * 业务组名称,若指定则返回指定的业务组下的所有VPN网关的信息。 + */ @UCloudParam("Tag") private String tag; - - /** 数据分页值。默认为20 */ + + + + /** + * 数据分页值。默认为20 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -60,7 +91,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -68,7 +99,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getVPNGatewayIds() { return vpnGatewayIds; } @@ -76,7 +107,7 @@ public List getVPNGatewayIds() { public void setVPNGatewayIds(List vpnGatewayIds) { this.vpnGatewayIds = vpnGatewayIds; } - + public String getVPCId() { return vpcId; } @@ -84,7 +115,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public Integer getOffset() { return offset; } @@ -92,7 +123,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public String getTag() { return tag; } @@ -100,7 +131,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public Integer getLimit() { return limit; } @@ -108,4 +139,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNGatewayResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNGatewayResponse.java index caaf4dfa..496ad176 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNGatewayResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNGatewayResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeVPNGatewayResponse extends Response { - /** 满足条件的VPN网关总数 */ + + + /** + * 满足条件的VPN网关总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 获取的VPN网关信息列表,每项参数详见 VPNGatewayDataSet */ + + + + /** + * 获取的VPN网关信息列表,每项参数详见 VPNGatewayDataSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,175 +57,241 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class VPNGatewayDataSet extends Response { + + + /** + * 网关Id + */ + @SerializedName("VPNGatewayId") + private String vpnGatewayId; + + + + /** + * 网关名字 + */ + @SerializedName("VPNGatewayName") + private String vpnGatewayName; + + + + /** + * 网关业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 网关备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 所属VPCId + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 所属VPC名字 + */ + @SerializedName("VPCName") + private String vpcName; + + + + /** + * 付费类型 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 到期时间 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 是否自动续费 + */ + @SerializedName("AutoRenew") + private String autoRenew; + + + + /** + * 网关类型 + */ + @SerializedName("Grade") + private String grade; + + + + /** + * 绑定EIP的IP地址 + */ + @SerializedName("EIP") + private String eip; + + + + /** + * EIP类型 + */ + @SerializedName("EIPType") + private String eipType; + + + + /** + * EIPID + */ + @SerializedName("EIPId") + private String eipId; + + + public String getVPNGatewayId() { + return vpnGatewayId; + } - public static class VPNGatewayDataSet extends Response { - - /** 网关Id */ - @SerializedName("VPNGatewayId") - private String vpnGatewayId; - - /** 网关名字 */ - @SerializedName("VPNGatewayName") - private String vpnGatewayName; - - /** 网关业务组 */ - @SerializedName("Tag") - private String tag; - - /** 网关备注 */ - @SerializedName("Remark") - private String remark; - - /** 所属VPCId */ - @SerializedName("VPCId") - private String vpcId; - - /** 所属VPC名字 */ - @SerializedName("VPCName") - private String vpcName; - - /** 付费类型 */ - @SerializedName("ChargeType") - private String chargeType; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 到期时间 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 是否自动续费 */ - @SerializedName("AutoRenew") - private String autoRenew; - - /** 网关类型 */ - @SerializedName("Grade") - private String grade; - - /** 绑定EIP的IP地址 */ - @SerializedName("EIP") - private String eip; - - /** EIP类型 */ - @SerializedName("EIPType") - private String eipType; - - /** EIPID */ - @SerializedName("EIPId") - private String eipId; - - public String getVPNGatewayId() { - return vpnGatewayId; - } - - public void setVPNGatewayId(String vpnGatewayId) { - this.vpnGatewayId = vpnGatewayId; - } - - public String getVPNGatewayName() { - return vpnGatewayName; - } - - public void setVPNGatewayName(String vpnGatewayName) { - this.vpnGatewayName = vpnGatewayName; - } - - public String getTag() { - return tag; - } - - public void setTag(String tag) { - this.tag = tag; - } + public void setVPNGatewayId(String vpnGatewayId) { + this.vpnGatewayId = vpnGatewayId; + } + + public String getVPNGatewayName() { + return vpnGatewayName; + } - public String getRemark() { - return remark; - } + public void setVPNGatewayName(String vpnGatewayName) { + this.vpnGatewayName = vpnGatewayName; + } + + public String getTag() { + return tag; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } - public String getVPCId() { - return vpcId; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getVPCId() { + return vpcId; + } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getVPCName() { + return vpcName; + } - public String getVPCName() { - return vpcName; - } + public void setVPCName(String vpcName) { + this.vpcName = vpcName; + } + + public String getChargeType() { + return chargeType; + } - public void setVPCName(String vpcName) { - this.vpcName = vpcName; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getCreateTime() { + return createTime; + } - public String getChargeType() { - return chargeType; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getAutoRenew() { + return autoRenew; + } - public Integer getCreateTime() { - return createTime; - } + public void setAutoRenew(String autoRenew) { + this.autoRenew = autoRenew; + } + + public String getGrade() { + return grade; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setGrade(String grade) { + this.grade = grade; + } + + public String getEIP() { + return eip; + } - public Integer getExpireTime() { - return expireTime; - } + public void setEIP(String eip) { + this.eip = eip; + } + + public String getEIPType() { + return eipType; + } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } + public void setEIPType(String eipType) { + this.eipType = eipType; + } + + public String getEIPId() { + return eipId; + } - public String getAutoRenew() { - return autoRenew; + public void setEIPId(String eipId) { + this.eipId = eipId; + } + } +} - public void setAutoRenew(String autoRenew) { - this.autoRenew = autoRenew; - } - public String getGrade() { - return grade; - } - public void setGrade(String grade) { - this.grade = grade; - } - public String getEIP() { - return eip; - } - public void setEIP(String eip) { - this.eip = eip; - } - public String getEIPType() { - return eipType; - } - public void setEIPType(String eipType) { - this.eipType = eipType; - } - public String getEIPId() { - return eipId; - } - public void setEIPId(String eipId) { - this.eipId = eipId; - } - } -} diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNTunnelRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNTunnelRequest.java index 4b4e165c..902cfbd9 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNTunnelRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNTunnelRequest.java @@ -1,54 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeVPNTunnelRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - + + + /** * VPN隧道的资源ID,例如VPNTunnelIds.0代表希望获取信息的VPN隧道1,VPNTunneIds.1代表VPN隧道2,如果为空,则返回当前Region中所有的VPN隧道实例 */ @UCloudParam("VPNTunnelIds") private List vpnTunnelIds; - - /** 数据偏移量, 默认为0 */ + + + + /** + * 数据偏移量, 默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 数据分页值, 默认为20 */ + + + + /** + * 数据分页值, 默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 业务组名称,若指定则返回指定的业务组下的所有VPN网关的信息 */ + + + + /** + * 业务组名称,若指定则返回指定的业务组下的所有VPN网关的信息 + */ @UCloudParam("Tag") private String tag; - + + public String getRegion() { return region; } @@ -56,7 +83,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -64,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getVPNTunnelIds() { return vpnTunnelIds; } @@ -72,7 +99,7 @@ public List getVPNTunnelIds() { public void setVPNTunnelIds(List vpnTunnelIds) { this.vpnTunnelIds = vpnTunnelIds; } - + public Integer getOffset() { return offset; } @@ -80,7 +107,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -88,7 +115,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getTag() { return tag; } @@ -96,4 +123,14 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNTunnelResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNTunnelResponse.java index b29091da..36e51ed1 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNTunnelResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNTunnelResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeVPNTunnelResponse extends Response { - /** VPN隧道总数 */ + + + /** + * VPN隧道总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 获取的VPN隧道信息列表,每项参数详见 VPNTunnelDataSet */ + + + + /** + * 获取的VPN隧道信息列表,每项参数详见 VPNTunnelDataSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,373 +57,503 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - - public static class IKEData extends Response { - - /** IKE认证算法 */ - @SerializedName("IKEAuthenticationAlgorithm") - private String ikeAuthenticationAlgorithm; - - /** IKEDH组 */ - @SerializedName("IKEDhGroup") - private String ikeDhGroup; - - /** IKE加密算法 */ - @SerializedName("IKEEncryptionAlgorithm") - private String ikeEncryptionAlgorithm; - - /** IKEv1协商模式 */ - @SerializedName("IKEExchangeMode") - private String ikeExchangeMode; - - /** IKE本地ID标识 */ - @SerializedName("IKELocalId") - private String ikeLocalId; - - /** IKE预共享秘钥 */ - @SerializedName("IKEPreSharedKey") - private String ikePreSharedKey; - - /** IKE对端ID标识 */ - @SerializedName("IKERemoteId") - private String ikeRemoteId; - - /** IKE秘钥生存时间 */ - @SerializedName("IKESALifetime") - private String ikesaLifetime; - - /** IKE版本 */ - @SerializedName("IKEVersion") - private String ikeVersion; - - public String getIKEAuthenticationAlgorithm() { - return ikeAuthenticationAlgorithm; - } - - public void setIKEAuthenticationAlgorithm(String ikeAuthenticationAlgorithm) { - this.ikeAuthenticationAlgorithm = ikeAuthenticationAlgorithm; - } - - public String getIKEDhGroup() { - return ikeDhGroup; - } - - public void setIKEDhGroup(String ikeDhGroup) { - this.ikeDhGroup = ikeDhGroup; - } - - public String getIKEEncryptionAlgorithm() { - return ikeEncryptionAlgorithm; - } - - public void setIKEEncryptionAlgorithm(String ikeEncryptionAlgorithm) { - this.ikeEncryptionAlgorithm = ikeEncryptionAlgorithm; - } - - public String getIKEExchangeMode() { - return ikeExchangeMode; - } - - public void setIKEExchangeMode(String ikeExchangeMode) { - this.ikeExchangeMode = ikeExchangeMode; - } - - public String getIKELocalId() { - return ikeLocalId; - } - - public void setIKELocalId(String ikeLocalId) { - this.ikeLocalId = ikeLocalId; - } - - public String getIKEPreSharedKey() { - return ikePreSharedKey; - } - - public void setIKEPreSharedKey(String ikePreSharedKey) { - this.ikePreSharedKey = ikePreSharedKey; - } - - public String getIKERemoteId() { - return ikeRemoteId; - } - - public void setIKERemoteId(String ikeRemoteId) { - this.ikeRemoteId = ikeRemoteId; - } - - public String getIKESALifetime() { - return ikesaLifetime; - } - - public void setIKESALifetime(String ikesaLifetime) { - this.ikesaLifetime = ikesaLifetime; - } - - public String getIKEVersion() { - return ikeVersion; - } - - public void setIKEVersion(String ikeVersion) { - this.ikeVersion = ikeVersion; - } + + public static class IKEData extends Response { + + + /** + * IKE认证算法 + */ + @SerializedName("IKEAuthenticationAlgorithm") + private String ikeAuthenticationAlgorithm; + + + + /** + * IKEDH组 + */ + @SerializedName("IKEDhGroup") + private String ikeDhGroup; + + + + /** + * IKE加密算法 + */ + @SerializedName("IKEEncryptionAlgorithm") + private String ikeEncryptionAlgorithm; + + + + /** + * IKEv1协商模式 + */ + @SerializedName("IKEExchangeMode") + private String ikeExchangeMode; + + + + /** + * IKE本地ID标识 + */ + @SerializedName("IKELocalId") + private String ikeLocalId; + + + + /** + * IKE预共享秘钥 + */ + @SerializedName("IKEPreSharedKey") + private String ikePreSharedKey; + + + + /** + * IKE对端ID标识 + */ + @SerializedName("IKERemoteId") + private String ikeRemoteId; + + + + /** + * IKE秘钥生存时间 + */ + @SerializedName("IKESALifetime") + private String ikesaLifetime; + + + + /** + * IKE版本 + */ + @SerializedName("IKEVersion") + private String ikeVersion; + + + public String getIKEAuthenticationAlgorithm() { + return ikeAuthenticationAlgorithm; } - public static class IPSecData extends Response { - - /** IPSec通道中使用的认证算法 */ - @SerializedName("IPSecAuthenticationAlgorithm") - private String ipSecAuthenticationAlgorithm; - - /** IPSec通道中使用的加密算法 */ - @SerializedName("IPSecEncryptionAlgorithm") - private String ipSecEncryptionAlgorithm; - - /** 指定VPN连接的本地子网,用逗号分隔 */ - @SerializedName("IPSecLocalSubnetIds") - private List ipSecLocalSubnetIds; - - /** 使用的安全协议,ESP或AH */ - @SerializedName("IPSecProtocol") - private String ipSecProtocol; - - /** 指定VPN连接的客户网段,用逗号分隔 */ - @SerializedName("IPSecRemoteSubnets") - private List ipSecRemoteSubnets; - - /** IPSec中SA的生存时间 */ - @SerializedName("IPSecSALifetime") - private String ipSecSALifetime; - - /** IPSec中SA的生存时间(以字节计) */ - @SerializedName("IPSecSALifetimeBytes") - private String ipSecSALifetimeBytes; - - /** 是否开启PFS功能,Disable表示关闭,数字表示DH组 */ - @SerializedName("IPSecPFSDhGroup") - private String ipSecPFSDhGroup; - - public String getIPSecAuthenticationAlgorithm() { - return ipSecAuthenticationAlgorithm; - } - - public void setIPSecAuthenticationAlgorithm(String ipSecAuthenticationAlgorithm) { - this.ipSecAuthenticationAlgorithm = ipSecAuthenticationAlgorithm; - } - - public String getIPSecEncryptionAlgorithm() { - return ipSecEncryptionAlgorithm; - } - - public void setIPSecEncryptionAlgorithm(String ipSecEncryptionAlgorithm) { - this.ipSecEncryptionAlgorithm = ipSecEncryptionAlgorithm; - } - - public List getIPSecLocalSubnetIds() { - return ipSecLocalSubnetIds; - } - - public void setIPSecLocalSubnetIds(List ipSecLocalSubnetIds) { - this.ipSecLocalSubnetIds = ipSecLocalSubnetIds; - } - - public String getIPSecProtocol() { - return ipSecProtocol; - } - - public void setIPSecProtocol(String ipSecProtocol) { - this.ipSecProtocol = ipSecProtocol; - } - - public List getIPSecRemoteSubnets() { - return ipSecRemoteSubnets; - } - - public void setIPSecRemoteSubnets(List ipSecRemoteSubnets) { - this.ipSecRemoteSubnets = ipSecRemoteSubnets; - } - - public String getIPSecSALifetime() { - return ipSecSALifetime; - } - - public void setIPSecSALifetime(String ipSecSALifetime) { - this.ipSecSALifetime = ipSecSALifetime; - } - - public String getIPSecSALifetimeBytes() { - return ipSecSALifetimeBytes; - } - - public void setIPSecSALifetimeBytes(String ipSecSALifetimeBytes) { - this.ipSecSALifetimeBytes = ipSecSALifetimeBytes; - } - - public String getIPSecPFSDhGroup() { - return ipSecPFSDhGroup; - } - - public void setIPSecPFSDhGroup(String ipSecPFSDhGroup) { - this.ipSecPFSDhGroup = ipSecPFSDhGroup; - } + public void setIKEAuthenticationAlgorithm(String ikeAuthenticationAlgorithm) { + this.ikeAuthenticationAlgorithm = ikeAuthenticationAlgorithm; + } + + public String getIKEDhGroup() { + return ikeDhGroup; } - public static class VPNTunnelDataSet extends Response { - - /** 隧道id */ - @SerializedName("VPNTunnelId") - private String vpnTunnelId; - - /** 隧道名称 */ - @SerializedName("VPNTunnelName") - private String vpnTunnelName; + public void setIKEDhGroup(String ikeDhGroup) { + this.ikeDhGroup = ikeDhGroup; + } + + public String getIKEEncryptionAlgorithm() { + return ikeEncryptionAlgorithm; + } - /** 用户组 */ - @SerializedName("Tag") - private String tag; + public void setIKEEncryptionAlgorithm(String ikeEncryptionAlgorithm) { + this.ikeEncryptionAlgorithm = ikeEncryptionAlgorithm; + } + + public String getIKEExchangeMode() { + return ikeExchangeMode; + } - /** 备注 */ - @SerializedName("Remark") - private String remark; + public void setIKEExchangeMode(String ikeExchangeMode) { + this.ikeExchangeMode = ikeExchangeMode; + } + + public String getIKELocalId() { + return ikeLocalId; + } - /** 所属VPN网关id */ - @SerializedName("VPNGatewayId") - private String vpnGatewayId; + public void setIKELocalId(String ikeLocalId) { + this.ikeLocalId = ikeLocalId; + } + + public String getIKEPreSharedKey() { + return ikePreSharedKey; + } - /** 对端网关Id */ - @SerializedName("RemoteVPNGatewayId") - private String remoteVPNGatewayId; + public void setIKEPreSharedKey(String ikePreSharedKey) { + this.ikePreSharedKey = ikePreSharedKey; + } + + public String getIKERemoteId() { + return ikeRemoteId; + } - /** VPN网关名字 */ - @SerializedName("VPNGatewayName") - private String vpnGatewayName; + public void setIKERemoteId(String ikeRemoteId) { + this.ikeRemoteId = ikeRemoteId; + } + + public String getIKESALifetime() { + return ikesaLifetime; + } - /** 对端网关名字 */ - @SerializedName("RemoteVPNGatewayName") - private String remoteVPNGatewayName; + public void setIKESALifetime(String ikesaLifetime) { + this.ikesaLifetime = ikesaLifetime; + } + + public String getIKEVersion() { + return ikeVersion; + } - /** 所属VPCId */ - @SerializedName("VPCId") - private String vpcId; + public void setIKEVersion(String ikeVersion) { + this.ikeVersion = ikeVersion; + } + + } + public static class IPSecData extends Response { + + + /** + * IPSec通道中使用的认证算法 + */ + @SerializedName("IPSecAuthenticationAlgorithm") + private String ipSecAuthenticationAlgorithm; + + + + /** + * IPSec通道中使用的加密算法 + */ + @SerializedName("IPSecEncryptionAlgorithm") + private String ipSecEncryptionAlgorithm; + + + + /** + * 指定VPN连接的本地子网,用逗号分隔 + */ + @SerializedName("IPSecLocalSubnetIds") + private List ipSecLocalSubnetIds; + + + + /** + * 使用的安全协议,ESP或AH + */ + @SerializedName("IPSecProtocol") + private String ipSecProtocol; + + + + /** + * 指定VPN连接的客户网段,用逗号分隔 + */ + @SerializedName("IPSecRemoteSubnets") + private List ipSecRemoteSubnets; + + + + /** + * IPSec中SA的生存时间 + */ + @SerializedName("IPSecSALifetime") + private String ipSecSALifetime; + + + + /** + * IPSec中SA的生存时间(以字节计) + */ + @SerializedName("IPSecSALifetimeBytes") + private String ipSecSALifetimeBytes; + + + + /** + * 是否开启PFS功能,Disable表示关闭,数字表示DH组 + */ + @SerializedName("IPSecPFSDhGroup") + private String ipSecPFSDhGroup; + + + public String getIPSecAuthenticationAlgorithm() { + return ipSecAuthenticationAlgorithm; + } - /** 所属VOC名字 */ - @SerializedName("VPCName") - private String vpcName; + public void setIPSecAuthenticationAlgorithm(String ipSecAuthenticationAlgorithm) { + this.ipSecAuthenticationAlgorithm = ipSecAuthenticationAlgorithm; + } + + public String getIPSecEncryptionAlgorithm() { + return ipSecEncryptionAlgorithm; + } - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; + public void setIPSecEncryptionAlgorithm(String ipSecEncryptionAlgorithm) { + this.ipSecEncryptionAlgorithm = ipSecEncryptionAlgorithm; + } + + public List getIPSecLocalSubnetIds() { + return ipSecLocalSubnetIds; + } - /** IKE参数 */ - @SerializedName("IKEData") - private IKEData ikeData; + public void setIPSecLocalSubnetIds(List ipSecLocalSubnetIds) { + this.ipSecLocalSubnetIds = ipSecLocalSubnetIds; + } + + public String getIPSecProtocol() { + return ipSecProtocol; + } - /** IPSec参数 */ - @SerializedName("IPSecData") - private IPSecData ipSecData; + public void setIPSecProtocol(String ipSecProtocol) { + this.ipSecProtocol = ipSecProtocol; + } + + public List getIPSecRemoteSubnets() { + return ipSecRemoteSubnets; + } - public String getVPNTunnelId() { - return vpnTunnelId; - } + public void setIPSecRemoteSubnets(List ipSecRemoteSubnets) { + this.ipSecRemoteSubnets = ipSecRemoteSubnets; + } + + public String getIPSecSALifetime() { + return ipSecSALifetime; + } - public void setVPNTunnelId(String vpnTunnelId) { - this.vpnTunnelId = vpnTunnelId; - } + public void setIPSecSALifetime(String ipSecSALifetime) { + this.ipSecSALifetime = ipSecSALifetime; + } + + public String getIPSecSALifetimeBytes() { + return ipSecSALifetimeBytes; + } - public String getVPNTunnelName() { - return vpnTunnelName; - } + public void setIPSecSALifetimeBytes(String ipSecSALifetimeBytes) { + this.ipSecSALifetimeBytes = ipSecSALifetimeBytes; + } + + public String getIPSecPFSDhGroup() { + return ipSecPFSDhGroup; + } - public void setVPNTunnelName(String vpnTunnelName) { - this.vpnTunnelName = vpnTunnelName; - } + public void setIPSecPFSDhGroup(String ipSecPFSDhGroup) { + this.ipSecPFSDhGroup = ipSecPFSDhGroup; + } + + } + public static class VPNTunnelDataSet extends Response { + + + /** + * 隧道id + */ + @SerializedName("VPNTunnelId") + private String vpnTunnelId; + + + + /** + * 隧道名称 + */ + @SerializedName("VPNTunnelName") + private String vpnTunnelName; + + + + /** + * 用户组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 所属VPN网关id + */ + @SerializedName("VPNGatewayId") + private String vpnGatewayId; + + + + /** + * 对端网关Id + */ + @SerializedName("RemoteVPNGatewayId") + private String remoteVPNGatewayId; + + + + /** + * VPN网关名字 + */ + @SerializedName("VPNGatewayName") + private String vpnGatewayName; + + + + /** + * 对端网关名字 + */ + @SerializedName("RemoteVPNGatewayName") + private String remoteVPNGatewayName; + + + + /** + * 所属VPCId + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 所属VOC名字 + */ + @SerializedName("VPCName") + private String vpcName; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * IKE参数 + */ + @SerializedName("IKEData") + private IKEData ikeData; + + + + /** + * IPSec参数 + */ + @SerializedName("IPSecData") + private IPSecData ipSecData; + + + public String getVPNTunnelId() { + return vpnTunnelId; + } - public String getTag() { - return tag; - } + public void setVPNTunnelId(String vpnTunnelId) { + this.vpnTunnelId = vpnTunnelId; + } + + public String getVPNTunnelName() { + return vpnTunnelName; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setVPNTunnelName(String vpnTunnelName) { + this.vpnTunnelName = vpnTunnelName; + } + + public String getTag() { + return tag; + } - public String getRemark() { - return remark; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getVPNGatewayId() { + return vpnGatewayId; + } - public String getVPNGatewayId() { - return vpnGatewayId; - } + public void setVPNGatewayId(String vpnGatewayId) { + this.vpnGatewayId = vpnGatewayId; + } + + public String getRemoteVPNGatewayId() { + return remoteVPNGatewayId; + } - public void setVPNGatewayId(String vpnGatewayId) { - this.vpnGatewayId = vpnGatewayId; - } + public void setRemoteVPNGatewayId(String remoteVPNGatewayId) { + this.remoteVPNGatewayId = remoteVPNGatewayId; + } + + public String getVPNGatewayName() { + return vpnGatewayName; + } - public String getRemoteVPNGatewayId() { - return remoteVPNGatewayId; - } + public void setVPNGatewayName(String vpnGatewayName) { + this.vpnGatewayName = vpnGatewayName; + } + + public String getRemoteVPNGatewayName() { + return remoteVPNGatewayName; + } - public void setRemoteVPNGatewayId(String remoteVPNGatewayId) { - this.remoteVPNGatewayId = remoteVPNGatewayId; - } + public void setRemoteVPNGatewayName(String remoteVPNGatewayName) { + this.remoteVPNGatewayName = remoteVPNGatewayName; + } + + public String getVPCId() { + return vpcId; + } - public String getVPNGatewayName() { - return vpnGatewayName; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getVPCName() { + return vpcName; + } - public void setVPNGatewayName(String vpnGatewayName) { - this.vpnGatewayName = vpnGatewayName; - } + public void setVPCName(String vpcName) { + this.vpcName = vpcName; + } + + public Integer getCreateTime() { + return createTime; + } - public String getRemoteVPNGatewayName() { - return remoteVPNGatewayName; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public IKEData getIKEData() { + return ikeData; + } - public void setRemoteVPNGatewayName(String remoteVPNGatewayName) { - this.remoteVPNGatewayName = remoteVPNGatewayName; - } + public void setIKEData(IKEData ikeData) { + this.ikeData = ikeData; + } + + public IPSecData getIPSecData() { + return ipSecData; + } - public String getVPCId() { - return vpcId; + public void setIPSecData(IPSecData ipSecData) { + this.ipSecData = ipSecData; + } + } +} - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - public String getVPCName() { - return vpcName; - } - public void setVPCName(String vpcName) { - this.vpcName = vpcName; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public IKEData getIKEData() { - return ikeData; - } - public void setIKEData(IKEData ikeData) { - this.ikeData = ikeData; - } - public IPSecData getIPSecData() { - return ipSecData; - } - public void setIPSecData(IPSecData ipSecData) { - this.ipSecData = ipSecData; - } - } -} diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayPriceRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayPriceRequest.java index 4dd213b6..c42d6344 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayPriceRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayPriceRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetVPNGatewayPriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** VPN网关规格。枚举值,包括:标准型:Standard,增强型:Enhanced。 */ + + + + /** + * VPN网关规格。枚举值,包括:标准型:Standard,增强型:Enhanced。 + */ @NotEmpty @UCloudParam("Grade") private String grade; - - /** 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费(需开启权限); 默认为获取三种价格 */ + + + + /** + * 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费(需开启权限); 默认为获取三种价格 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长, 默认: 1 */ + + + + /** + * 购买时长, 默认: 1 + */ @UCloudParam("Quantity") private Integer quantity; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -58,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGrade() { return grade; } @@ -66,7 +92,7 @@ public String getGrade() { public void setGrade(String grade) { this.grade = grade; } - + public String getChargeType() { return chargeType; } @@ -74,7 +100,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -82,4 +108,14 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayPriceResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayPriceResponse.java index b5a1ece1..b31ca811 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayPriceResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayPriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetVPNGatewayPriceResponse extends Response { - /** 获取的VPN网关价格信息列表,每项参数详见 VPNGatewayPriceSet */ + + + /** + * 获取的VPN网关价格信息列表,每项参数详见 VPNGatewayPriceSet + */ @SerializedName("PriceSet") private List priceSet; - + + public List getPriceSet() { return priceSet; } @@ -32,43 +41,65 @@ public List getPriceSet() { public void setPriceSet(List priceSet) { this.priceSet = priceSet; } + + public static class VPNGatewayPriceSet extends Response { + + + /** + * VPN网关付费方式 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * VPN网关价格, 单位"元" + */ + @SerializedName("Price") + private Double price; + + + + /** + * 资源有效期, 以Unix Timestamp表示 + */ + @SerializedName("PurchaseValue") + private Integer purchaseValue; + + + public String getChargeType() { + return chargeType; + } - public static class VPNGatewayPriceSet extends Response { + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } + + public Integer getPurchaseValue() { + return purchaseValue; + } + + public void setPurchaseValue(Integer purchaseValue) { + this.purchaseValue = purchaseValue; + } + + } +} - /** VPN网关付费方式 */ - @SerializedName("ChargeType") - private String chargeType; - /** VPN网关价格, 单位"元" */ - @SerializedName("Price") - private Double price; - /** 资源有效期, 以Unix Timestamp表示 */ - @SerializedName("PurchaseValue") - private Integer purchaseValue; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Double getPrice() { - return price; - } - public void setPrice(Double price) { - this.price = price; - } - public Integer getPurchaseValue() { - return purchaseValue; - } - public void setPurchaseValue(Integer purchaseValue) { - this.purchaseValue = purchaseValue; - } - } -} diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayUpgradePriceRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayUpgradePriceRequest.java index 95b7ff48..de481ea0 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayUpgradePriceRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayUpgradePriceRequest.java @@ -1,45 +1,77 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetVPNGatewayUpgradePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** VPN网关的资源ID */ + + + + /** + * VPN网关的资源ID + */ @NotEmpty @UCloudParam("VPNGatewayId") private String vpnGatewayId; + + + + /** + * + + + + + + + + - /** 更改的VPN网关规格,枚举值为: Standard, 标准型; Enhanced, 增强型。 */ +更改的VPN网关规格,枚举值为: Standard, 标准型; Enhanced, 增强型。 + */ @NotEmpty @UCloudParam("Grade") private String grade; - + + public String getRegion() { return region; } @@ -47,7 +79,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -55,7 +87,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPNGatewayId() { return vpnGatewayId; } @@ -63,7 +95,7 @@ public String getVPNGatewayId() { public void setVPNGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; } - + public String getGrade() { return grade; } @@ -71,4 +103,14 @@ public String getGrade() { public void setGrade(String grade) { this.grade = grade; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayUpgradePriceResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayUpgradePriceResponse.java index 83247212..6745685b 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayUpgradePriceResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/GetVPNGatewayUpgradePriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetVPNGatewayUpgradePriceResponse extends Response { - /** 调整规格后的VPN网关价格, 单位为"元", 如需退费此处为负值 */ + + + /** + * 调整规格后的VPN网关价格, 单位为"元", 如需退费此处为负值 + */ @SerializedName("Price") private Double price; - + + public Double getPrice() { return price; } @@ -31,4 +41,14 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNGatewayRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNGatewayRequest.java index eba6c3bc..91aa519d 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNGatewayRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNGatewayRequest.java @@ -1,45 +1,67 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateVPNGatewayRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** VPN网关的资源ID */ + + + + /** + * VPN网关的资源ID + */ @NotEmpty @UCloudParam("VPNGatewayId") private String vpnGatewayId; - - /** 网关规格。枚举值为: Standard, 标准型; Enhanced, 增强型。 */ + + + + /** + * 网关规格。枚举值为: Standard, 标准型; Enhanced, 增强型。 + */ @NotEmpty @UCloudParam("Grade") private String grade; - + + public String getRegion() { return region; } @@ -47,7 +69,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -55,7 +77,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPNGatewayId() { return vpnGatewayId; } @@ -63,7 +85,7 @@ public String getVPNGatewayId() { public void setVPNGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; } - + public String getGrade() { return grade; } @@ -71,4 +93,14 @@ public String getGrade() { public void setGrade(String grade) { this.grade = grade; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNGatewayResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNGatewayResponse.java index 5d241959..a6fcb167 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNGatewayResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNGatewayResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateVPNGatewayResponse extends Response {} +public class UpdateVPNGatewayResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNTunnelAttributeRequest.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNTunnelAttributeRequest.java index 2a2fe75a..cccf4dbc 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNTunnelAttributeRequest.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNTunnelAttributeRequest.java @@ -1,116 +1,202 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UpdateVPNTunnelAttributeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** VPN隧道的资源ID */ + + + + /** + * VPN隧道的资源ID + */ @NotEmpty @UCloudParam("VPNTunnelId") private String vpnTunnelId; - - /** 预共享密钥 */ + + + + /** + * 预共享密钥 + */ @UCloudParam("IKEPreSharedKey") private String ikePreSharedKey; - - /** IKE协商过程中使用的加密算法 */ + + + + /** + * IKE协商过程中使用的加密算法 + */ @UCloudParam("IKEEncryptionAlgorithm") private String ikeEncryptionAlgorithm; - - /** IKE协商过程中使用的认证算法 */ + + + + /** + * IKE协商过程中使用的认证算法 + */ @UCloudParam("IKEAuthenticationAlgorithm") private String ikeAuthenticationAlgorithm; - - /** IKE协商过程中使用的模式,可选“主动模式”与“野蛮模式”。IKEV2不使用该参数。 */ + + + + /** + * IKE协商过程中使用的模式,可选“主动模式”与“野蛮模式”。IKEV2不使用该参数。 + */ @UCloudParam("IKEExchangeMode") private String ikeExchangeMode; - - /** 本端标识。不填时默认使用之前的参数,结合IKEversion进行校验,IKEV2时不能为auto。 */ + + + + /** + * 本端标识。不填时默认使用之前的参数,结合IKEversion进行校验,IKEV2时不能为auto。 + */ @UCloudParam("IKELocalId") private String ikeLocalId; - - /** 客户端标识。不填时默认使用之前的参数,结合IKEversion进行校验,IKEV2时不能为auto。 */ + + + + /** + * 客户端标识。不填时默认使用之前的参数,结合IKEversion进行校验,IKEV2时不能为auto。 + */ @UCloudParam("IKERemoteId") private String ikeRemoteId; - - /** IKE协商过程中使用的DH组 */ + + + + /** + * IKE协商过程中使用的DH组 + */ @UCloudParam("IKEDhGroup") private String ikeDhGroup; - - /** IKE中SA的生存时间 */ + + + + /** + * IKE中SA的生存时间 + */ @UCloudParam("IKESALifetime") private String ikesaLifetime; - - /** 使用的安全协议,ESP或AH */ + + + + /** + * 使用的安全协议,ESP或AH + */ @UCloudParam("IPSecProtocol") private String ipSecProtocol; - - /** 指定VPN连接的本地子网的id,用逗号分隔 */ + + + + /** + * 指定VPN连接的本地子网的id,用逗号分隔 + */ @UCloudParam("IPSecLocalSubnetIds") private List ipSecLocalSubnetIds; - - /** 指定VPN连接的客户网段,用逗号分隔 */ + + + + /** + * 指定VPN连接的客户网段,用逗号分隔 + */ @UCloudParam("IPSecRemoteSubnets") private List ipSecRemoteSubnets; - - /** IPSec隧道中使用的加密算法 */ + + + + /** + * IPSec隧道中使用的加密算法 + */ @UCloudParam("IPSecEncryptionAlgorithm") private String ipSecEncryptionAlgorithm; - - /** IPSec隧道中使用的认证算法 */ + + + + /** + * IPSec隧道中使用的认证算法 + */ @UCloudParam("IPSecAuthenticationAlgorithm") private String ipSecAuthenticationAlgorithm; - - /** IPSec中SA的生存时间 */ + + + + /** + * IPSec中SA的生存时间 + */ @UCloudParam("IPSecSALifetime") private String ipSecSALifetime; - - /** IPSec中SA的生存时间(以字节计) */ + + + + /** + * IPSec中SA的生存时间(以字节计) + */ @UCloudParam("IPSecSALifetimeBytes") private String ipSecSALifetimeBytes; - - /** IPSec中的PFS是否开启 */ + + + + /** + * IPSec中的PFS是否开启 + */ @UCloudParam("IPSecPFSDhGroup") private String ipSecPFSDhGroup; - - /** 枚举值:"IKE V1","IKE V2" */ + + + + /** + * 枚举值:"IKE V1","IKE V2" + */ @UCloudParam("IKEVersion") private String ikeVersion; - - /** IPSec隧道关闭后的处理动作,默认与原本一致,若原本为空,必传。枚举值:“none”,不处理(推荐为none,流量会自动触发隧道重建);“restart”重建 */ + + + + /** + * IPSec隧道关闭后的处理动作,默认与原本一致,若原本为空,必传。枚举值:“none”,不处理(推荐为none,流量会自动触发隧道重建);“restart”重建 + */ @UCloudParam("IPSecCloseAction") private String ipSecCloseAction; - + + public String getRegion() { return region; } @@ -118,7 +204,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -126,7 +212,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPNTunnelId() { return vpnTunnelId; } @@ -134,7 +220,7 @@ public String getVPNTunnelId() { public void setVPNTunnelId(String vpnTunnelId) { this.vpnTunnelId = vpnTunnelId; } - + public String getIKEPreSharedKey() { return ikePreSharedKey; } @@ -142,7 +228,7 @@ public String getIKEPreSharedKey() { public void setIKEPreSharedKey(String ikePreSharedKey) { this.ikePreSharedKey = ikePreSharedKey; } - + public String getIKEEncryptionAlgorithm() { return ikeEncryptionAlgorithm; } @@ -150,7 +236,7 @@ public String getIKEEncryptionAlgorithm() { public void setIKEEncryptionAlgorithm(String ikeEncryptionAlgorithm) { this.ikeEncryptionAlgorithm = ikeEncryptionAlgorithm; } - + public String getIKEAuthenticationAlgorithm() { return ikeAuthenticationAlgorithm; } @@ -158,7 +244,7 @@ public String getIKEAuthenticationAlgorithm() { public void setIKEAuthenticationAlgorithm(String ikeAuthenticationAlgorithm) { this.ikeAuthenticationAlgorithm = ikeAuthenticationAlgorithm; } - + public String getIKEExchangeMode() { return ikeExchangeMode; } @@ -166,7 +252,7 @@ public String getIKEExchangeMode() { public void setIKEExchangeMode(String ikeExchangeMode) { this.ikeExchangeMode = ikeExchangeMode; } - + public String getIKELocalId() { return ikeLocalId; } @@ -174,7 +260,7 @@ public String getIKELocalId() { public void setIKELocalId(String ikeLocalId) { this.ikeLocalId = ikeLocalId; } - + public String getIKERemoteId() { return ikeRemoteId; } @@ -182,7 +268,7 @@ public String getIKERemoteId() { public void setIKERemoteId(String ikeRemoteId) { this.ikeRemoteId = ikeRemoteId; } - + public String getIKEDhGroup() { return ikeDhGroup; } @@ -190,7 +276,7 @@ public String getIKEDhGroup() { public void setIKEDhGroup(String ikeDhGroup) { this.ikeDhGroup = ikeDhGroup; } - + public String getIKESALifetime() { return ikesaLifetime; } @@ -198,7 +284,7 @@ public String getIKESALifetime() { public void setIKESALifetime(String ikesaLifetime) { this.ikesaLifetime = ikesaLifetime; } - + public String getIPSecProtocol() { return ipSecProtocol; } @@ -206,7 +292,7 @@ public String getIPSecProtocol() { public void setIPSecProtocol(String ipSecProtocol) { this.ipSecProtocol = ipSecProtocol; } - + public List getIPSecLocalSubnetIds() { return ipSecLocalSubnetIds; } @@ -214,7 +300,7 @@ public List getIPSecLocalSubnetIds() { public void setIPSecLocalSubnetIds(List ipSecLocalSubnetIds) { this.ipSecLocalSubnetIds = ipSecLocalSubnetIds; } - + public List getIPSecRemoteSubnets() { return ipSecRemoteSubnets; } @@ -222,7 +308,7 @@ public List getIPSecRemoteSubnets() { public void setIPSecRemoteSubnets(List ipSecRemoteSubnets) { this.ipSecRemoteSubnets = ipSecRemoteSubnets; } - + public String getIPSecEncryptionAlgorithm() { return ipSecEncryptionAlgorithm; } @@ -230,7 +316,7 @@ public String getIPSecEncryptionAlgorithm() { public void setIPSecEncryptionAlgorithm(String ipSecEncryptionAlgorithm) { this.ipSecEncryptionAlgorithm = ipSecEncryptionAlgorithm; } - + public String getIPSecAuthenticationAlgorithm() { return ipSecAuthenticationAlgorithm; } @@ -238,7 +324,7 @@ public String getIPSecAuthenticationAlgorithm() { public void setIPSecAuthenticationAlgorithm(String ipSecAuthenticationAlgorithm) { this.ipSecAuthenticationAlgorithm = ipSecAuthenticationAlgorithm; } - + public String getIPSecSALifetime() { return ipSecSALifetime; } @@ -246,7 +332,7 @@ public String getIPSecSALifetime() { public void setIPSecSALifetime(String ipSecSALifetime) { this.ipSecSALifetime = ipSecSALifetime; } - + public String getIPSecSALifetimeBytes() { return ipSecSALifetimeBytes; } @@ -254,7 +340,7 @@ public String getIPSecSALifetimeBytes() { public void setIPSecSALifetimeBytes(String ipSecSALifetimeBytes) { this.ipSecSALifetimeBytes = ipSecSALifetimeBytes; } - + public String getIPSecPFSDhGroup() { return ipSecPFSDhGroup; } @@ -262,7 +348,7 @@ public String getIPSecPFSDhGroup() { public void setIPSecPFSDhGroup(String ipSecPFSDhGroup) { this.ipSecPFSDhGroup = ipSecPFSDhGroup; } - + public String getIKEVersion() { return ikeVersion; } @@ -270,7 +356,7 @@ public String getIKEVersion() { public void setIKEVersion(String ikeVersion) { this.ikeVersion = ikeVersion; } - + public String getIPSecCloseAction() { return ipSecCloseAction; } @@ -278,4 +364,14 @@ public String getIPSecCloseAction() { public void setIPSecCloseAction(String ipSecCloseAction) { this.ipSecCloseAction = ipSecCloseAction; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNTunnelAttributeResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNTunnelAttributeResponse.java index 3508fe1c..0da3dc63 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNTunnelAttributeResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/UpdateVPNTunnelAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ipsecvpn.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateVPNTunnelAttributeResponse extends Response {} +public class UpdateVPNTunnelAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index 71a4a476..0ca9fe0c 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-pathx - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClient.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClient.java index e234e442..fe8b9329 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClient.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.pathx.client; @@ -17,425 +19,621 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.pathx.models.BindPathXSSLRequest; import cn.ucloud.pathx.models.BindPathXSSLResponse; + + + import cn.ucloud.pathx.models.CreateGlobalSSHInstanceRequest; import cn.ucloud.pathx.models.CreateGlobalSSHInstanceResponse; + + + import cn.ucloud.pathx.models.CreatePathXSSLRequest; import cn.ucloud.pathx.models.CreatePathXSSLResponse; + + + import cn.ucloud.pathx.models.CreateUGAForwarderRequest; import cn.ucloud.pathx.models.CreateUGAForwarderResponse; + + + import cn.ucloud.pathx.models.CreateUGAInstanceRequest; import cn.ucloud.pathx.models.CreateUGAInstanceResponse; + + + import cn.ucloud.pathx.models.CreateUPathRequest; import cn.ucloud.pathx.models.CreateUPathResponse; + + + import cn.ucloud.pathx.models.DeleteGlobalSSHInstanceRequest; import cn.ucloud.pathx.models.DeleteGlobalSSHInstanceResponse; + + + import cn.ucloud.pathx.models.DeletePathXSSLRequest; import cn.ucloud.pathx.models.DeletePathXSSLResponse; + + + import cn.ucloud.pathx.models.DeleteUGAForwarderRequest; import cn.ucloud.pathx.models.DeleteUGAForwarderResponse; + + + import cn.ucloud.pathx.models.DeleteUGAInstanceRequest; import cn.ucloud.pathx.models.DeleteUGAInstanceResponse; + + + import cn.ucloud.pathx.models.DeleteUPathRequest; import cn.ucloud.pathx.models.DeleteUPathResponse; + + + import cn.ucloud.pathx.models.DescribeGlobalSSHInstanceRequest; import cn.ucloud.pathx.models.DescribeGlobalSSHInstanceResponse; + + + import cn.ucloud.pathx.models.DescribePathXLineConfigRequest; import cn.ucloud.pathx.models.DescribePathXLineConfigResponse; + + + import cn.ucloud.pathx.models.DescribePathXSSLRequest; import cn.ucloud.pathx.models.DescribePathXSSLResponse; + + + import cn.ucloud.pathx.models.DescribeUGAInstanceRequest; import cn.ucloud.pathx.models.DescribeUGAInstanceResponse; + + + import cn.ucloud.pathx.models.DescribeUPathRequest; import cn.ucloud.pathx.models.DescribeUPathResponse; + + + import cn.ucloud.pathx.models.DescribeUPathTemplateRequest; import cn.ucloud.pathx.models.DescribeUPathTemplateResponse; + + + import cn.ucloud.pathx.models.GetGlobalSSHPriceRequest; import cn.ucloud.pathx.models.GetGlobalSSHPriceResponse; + + + import cn.ucloud.pathx.models.GetGlobalSSHUpdatePriceRequest; import cn.ucloud.pathx.models.GetGlobalSSHUpdatePriceResponse; + + + import cn.ucloud.pathx.models.GetPathXMetricRequest; import cn.ucloud.pathx.models.GetPathXMetricResponse; + + + import cn.ucloud.pathx.models.ModifyGlobalSSHPortRequest; import cn.ucloud.pathx.models.ModifyGlobalSSHPortResponse; + + + import cn.ucloud.pathx.models.ModifyGlobalSSHRemarkRequest; import cn.ucloud.pathx.models.ModifyGlobalSSHRemarkResponse; + + + import cn.ucloud.pathx.models.ModifyGlobalSSHTypeRequest; import cn.ucloud.pathx.models.ModifyGlobalSSHTypeResponse; + + + import cn.ucloud.pathx.models.ModifyUPathBandwidthRequest; import cn.ucloud.pathx.models.ModifyUPathBandwidthResponse; + + + import cn.ucloud.pathx.models.ModifyUPathTemplateRequest; import cn.ucloud.pathx.models.ModifyUPathTemplateResponse; + + + import cn.ucloud.pathx.models.UGABindUPathRequest; import cn.ucloud.pathx.models.UGABindUPathResponse; + + + import cn.ucloud.pathx.models.UGAUnBindUPathRequest; import cn.ucloud.pathx.models.UGAUnBindUPathResponse; + + + import cn.ucloud.pathx.models.UnBindPathXSSLRequest; import cn.ucloud.pathx.models.UnBindPathXSSLResponse; + + + import cn.ucloud.pathx.models.UpdatePathXWhitelistRequest; import cn.ucloud.pathx.models.UpdatePathXWhitelistResponse; -/** This client is used to call actions of **PathX** service */ +/** + * This client is used to call actions of **PathX** service + */ public class PathXClient extends DefaultClient implements PathXClientInterface { public PathXClient(Config config, Credential credential) { super(config, credential); } - - /** - * BindPathXSSL - 绑定PathX SSL证书 - * - * @param request Request object - * @throws UCloudException Exception - */ - public BindPathXSSLResponse bindPathXSSL(BindPathXSSLRequest request) throws UCloudException { - request.setAction("BindPathXSSL"); - return (BindPathXSSLResponse) this.invoke(request, BindPathXSSLResponse.class); - } - - /** - * CreateGlobalSSHInstance - 创建GlobalSSH实例 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateGlobalSSHInstanceResponse createGlobalSSHInstance( - CreateGlobalSSHInstanceRequest request) throws UCloudException { - request.setAction("CreateGlobalSSHInstance"); - return (CreateGlobalSSHInstanceResponse) - this.invoke(request, CreateGlobalSSHInstanceResponse.class); - } - - /** - * CreatePathXSSL - 创建证书 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreatePathXSSLResponse createPathXSSL(CreatePathXSSLRequest request) - throws UCloudException { - request.setAction("CreatePathXSSL"); - return (CreatePathXSSLResponse) this.invoke(request, CreatePathXSSLResponse.class); - } - - /** - * CreateUGAForwarder - 创建加速实例转发器 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUGAForwarderResponse createUGAForwarder(CreateUGAForwarderRequest request) - throws UCloudException { - request.setAction("CreateUGAForwarder"); - return (CreateUGAForwarderResponse) this.invoke(request, CreateUGAForwarderResponse.class); - } - - /** - * CreateUGAInstance - 创建全球加速配置项 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUGAInstanceResponse createUGAInstance(CreateUGAInstanceRequest request) - throws UCloudException { - request.setAction("CreateUGAInstance"); - return (CreateUGAInstanceResponse) this.invoke(request, CreateUGAInstanceResponse.class); - } - - /** - * CreateUPath - 创建UPath - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUPathResponse createUPath(CreateUPathRequest request) throws UCloudException { - request.setAction("CreateUPath"); - return (CreateUPathResponse) this.invoke(request, CreateUPathResponse.class); - } - - /** - * DeleteGlobalSSHInstance - 删除GlobalSSH实例 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteGlobalSSHInstanceResponse deleteGlobalSSHInstance( - DeleteGlobalSSHInstanceRequest request) throws UCloudException { - request.setAction("DeleteGlobalSSHInstance"); - return (DeleteGlobalSSHInstanceResponse) - this.invoke(request, DeleteGlobalSSHInstanceResponse.class); - } - - /** - * DeletePathXSSL - 删除PathX SSL证书 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeletePathXSSLResponse deletePathXSSL(DeletePathXSSLRequest request) - throws UCloudException { - request.setAction("DeletePathXSSL"); - return (DeletePathXSSLResponse) this.invoke(request, DeletePathXSSLResponse.class); - } - - /** - * DeleteUGAForwarder - 删除加速实例转发器 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUGAForwarderResponse deleteUGAForwarder(DeleteUGAForwarderRequest request) - throws UCloudException { - request.setAction("DeleteUGAForwarder"); - return (DeleteUGAForwarderResponse) this.invoke(request, DeleteUGAForwarderResponse.class); - } - - /** - * DeleteUGAInstance - 删除全球加速服务加速配置 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUGAInstanceResponse deleteUGAInstance(DeleteUGAInstanceRequest request) - throws UCloudException { - request.setAction("DeleteUGAInstance"); - return (DeleteUGAInstanceResponse) this.invoke(request, DeleteUGAInstanceResponse.class); - } - - /** - * DeleteUPath - 删除UPath - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUPathResponse deleteUPath(DeleteUPathRequest request) throws UCloudException { - request.setAction("DeleteUPath"); - return (DeleteUPathResponse) this.invoke(request, DeleteUPathResponse.class); - } - - /** - * DescribeGlobalSSHInstance - 获取GlobalSSH实例列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeGlobalSSHInstanceResponse describeGlobalSSHInstance( - DescribeGlobalSSHInstanceRequest request) throws UCloudException { - request.setAction("DescribeGlobalSSHInstance"); - return (DescribeGlobalSSHInstanceResponse) - this.invoke(request, DescribeGlobalSSHInstanceResponse.class); - } - - /** - * DescribePathXLineConfig - 获取全球加速线路信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribePathXLineConfigResponse describePathXLineConfig( - DescribePathXLineConfigRequest request) throws UCloudException { - request.setAction("DescribePathXLineConfig"); - return (DescribePathXLineConfigResponse) - this.invoke(request, DescribePathXLineConfigResponse.class); - } - - /** - * DescribePathXSSL - 获取SSL证书信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribePathXSSLResponse describePathXSSL(DescribePathXSSLRequest request) - throws UCloudException { - request.setAction("DescribePathXSSL"); - return (DescribePathXSSLResponse) this.invoke(request, DescribePathXSSLResponse.class); - } - - /** - * DescribeUGAInstance - 获取全球加速服务加速配置信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUGAInstanceResponse describeUGAInstance(DescribeUGAInstanceRequest request) - throws UCloudException { - request.setAction("DescribeUGAInstance"); - return (DescribeUGAInstanceResponse) - this.invoke(request, DescribeUGAInstanceResponse.class); - } - - /** - * DescribeUPath - 获取加速线路信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPathResponse describeUPath(DescribeUPathRequest request) - throws UCloudException { - request.setAction("DescribeUPath"); - return (DescribeUPathResponse) this.invoke(request, DescribeUPathResponse.class); - } - - /** - * DescribeUPathTemplate - 查询UPath的监控模板 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPathTemplateResponse describeUPathTemplate(DescribeUPathTemplateRequest request) - throws UCloudException { - request.setAction("DescribeUPathTemplate"); - return (DescribeUPathTemplateResponse) - this.invoke(request, DescribeUPathTemplateResponse.class); - } - - /** - * GetGlobalSSHPrice - 获取GlobalSSH价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetGlobalSSHPriceResponse getGlobalSSHPrice(GetGlobalSSHPriceRequest request) - throws UCloudException { - request.setAction("GetGlobalSSHPrice"); - return (GetGlobalSSHPriceResponse) this.invoke(request, GetGlobalSSHPriceResponse.class); - } - - /** - * GetGlobalSSHUpdatePrice - 获取GlobalSSH升级价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetGlobalSSHUpdatePriceResponse getGlobalSSHUpdatePrice( - GetGlobalSSHUpdatePriceRequest request) throws UCloudException { - request.setAction("GetGlobalSSHUpdatePrice"); - return (GetGlobalSSHUpdatePriceResponse) - this.invoke(request, GetGlobalSSHUpdatePriceResponse.class); - } - - /** - * GetPathXMetric - 获取全球加速监控信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetPathXMetricResponse getPathXMetric(GetPathXMetricRequest request) - throws UCloudException { - request.setAction("GetPathXMetric"); - return (GetPathXMetricResponse) this.invoke(request, GetPathXMetricResponse.class); - } - - /** - * ModifyGlobalSSHPort - 修改GlobalSSH端口 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyGlobalSSHPortResponse modifyGlobalSSHPort(ModifyGlobalSSHPortRequest request) - throws UCloudException { - request.setAction("ModifyGlobalSSHPort"); - return (ModifyGlobalSSHPortResponse) - this.invoke(request, ModifyGlobalSSHPortResponse.class); - } - - /** - * ModifyGlobalSSHRemark - 修改GlobalSSH备注 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyGlobalSSHRemarkResponse modifyGlobalSSHRemark(ModifyGlobalSSHRemarkRequest request) - throws UCloudException { - request.setAction("ModifyGlobalSSHRemark"); - return (ModifyGlobalSSHRemarkResponse) - this.invoke(request, ModifyGlobalSSHRemarkResponse.class); - } - - /** - * ModifyGlobalSSHType - 修改GlobalSSH实例类型 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyGlobalSSHTypeResponse modifyGlobalSSHType(ModifyGlobalSSHTypeRequest request) - throws UCloudException { - request.setAction("ModifyGlobalSSHType"); - return (ModifyGlobalSSHTypeResponse) - this.invoke(request, ModifyGlobalSSHTypeResponse.class); - } - - /** - * ModifyUPathBandwidth - 修改加速线路带宽 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUPathBandwidthResponse modifyUPathBandwidth(ModifyUPathBandwidthRequest request) - throws UCloudException { - request.setAction("ModifyUPathBandwidth"); - return (ModifyUPathBandwidthResponse) - this.invoke(request, ModifyUPathBandwidthResponse.class); - } - - /** - * ModifyUPathTemplate - 修改UPath监控告警项 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUPathTemplateResponse modifyUPathTemplate(ModifyUPathTemplateRequest request) - throws UCloudException { - request.setAction("ModifyUPathTemplate"); - return (ModifyUPathTemplateResponse) - this.invoke(request, ModifyUPathTemplateResponse.class); - } - - /** - * UGABindUPath - UGA绑定UPath - * - * @param request Request object - * @throws UCloudException Exception - */ - public UGABindUPathResponse ugaBindUPath(UGABindUPathRequest request) throws UCloudException { - request.setAction("UGABindUPath"); - return (UGABindUPathResponse) this.invoke(request, UGABindUPathResponse.class); - } - - /** - * UGAUnBindUPath - UGA与UPath解绑 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UGAUnBindUPathResponse ugaUnBindUPath(UGAUnBindUPathRequest request) - throws UCloudException { - request.setAction("UGAUnBindUPath"); - return (UGAUnBindUPathResponse) this.invoke(request, UGAUnBindUPathResponse.class); - } - - /** - * UnBindPathXSSL - 解绑PathX SSL 证书 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UnBindPathXSSLResponse unBindPathXSSL(UnBindPathXSSLRequest request) - throws UCloudException { - request.setAction("UnBindPathXSSL"); - return (UnBindPathXSSLResponse) this.invoke(request, UnBindPathXSSLResponse.class); - } - - /** - * UpdatePathXWhitelist - 更新入口白名单 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdatePathXWhitelistResponse updatePathXWhitelist(UpdatePathXWhitelistRequest request) - throws UCloudException { - request.setAction("UpdatePathXWhitelist"); - return (UpdatePathXWhitelistResponse) - this.invoke(request, UpdatePathXWhitelistResponse.class); - } + + + + + + + /** + * BindPathXSSL - 绑定PathX SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BindPathXSSLResponse bindPathXSSL(BindPathXSSLRequest request) throws UCloudException { + request.setAction("BindPathXSSL"); + return (BindPathXSSLResponse) this.invoke(request, BindPathXSSLResponse.class); + } + + + + + + + /** + * CreateGlobalSSHInstance - 创建GlobalSSH实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateGlobalSSHInstanceResponse createGlobalSSHInstance(CreateGlobalSSHInstanceRequest request) throws UCloudException { + request.setAction("CreateGlobalSSHInstance"); + return (CreateGlobalSSHInstanceResponse) this.invoke(request, CreateGlobalSSHInstanceResponse.class); + } + + + + + + + /** + * CreatePathXSSL - 创建证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreatePathXSSLResponse createPathXSSL(CreatePathXSSLRequest request) throws UCloudException { + request.setAction("CreatePathXSSL"); + return (CreatePathXSSLResponse) this.invoke(request, CreatePathXSSLResponse.class); + } + + + + + + + /** + * CreateUGAForwarder - 创建加速实例转发器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUGAForwarderResponse createUGAForwarder(CreateUGAForwarderRequest request) throws UCloudException { + request.setAction("CreateUGAForwarder"); + return (CreateUGAForwarderResponse) this.invoke(request, CreateUGAForwarderResponse.class); + } + + + + + + + /** + * CreateUGAInstance - 创建全球加速配置项 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUGAInstanceResponse createUGAInstance(CreateUGAInstanceRequest request) throws UCloudException { + request.setAction("CreateUGAInstance"); + return (CreateUGAInstanceResponse) this.invoke(request, CreateUGAInstanceResponse.class); + } + + + + + + + /** + * CreateUPath - 创建UPath + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPathResponse createUPath(CreateUPathRequest request) throws UCloudException { + request.setAction("CreateUPath"); + return (CreateUPathResponse) this.invoke(request, CreateUPathResponse.class); + } + + + + + + + /** + * DeleteGlobalSSHInstance - 删除GlobalSSH实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteGlobalSSHInstanceResponse deleteGlobalSSHInstance(DeleteGlobalSSHInstanceRequest request) throws UCloudException { + request.setAction("DeleteGlobalSSHInstance"); + return (DeleteGlobalSSHInstanceResponse) this.invoke(request, DeleteGlobalSSHInstanceResponse.class); + } + + + + + + + /** + * DeletePathXSSL - 删除PathX SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeletePathXSSLResponse deletePathXSSL(DeletePathXSSLRequest request) throws UCloudException { + request.setAction("DeletePathXSSL"); + return (DeletePathXSSLResponse) this.invoke(request, DeletePathXSSLResponse.class); + } + + + + + + + /** + * DeleteUGAForwarder - 删除加速实例转发器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUGAForwarderResponse deleteUGAForwarder(DeleteUGAForwarderRequest request) throws UCloudException { + request.setAction("DeleteUGAForwarder"); + return (DeleteUGAForwarderResponse) this.invoke(request, DeleteUGAForwarderResponse.class); + } + + + + + + + /** + * DeleteUGAInstance - 删除全球加速服务加速配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUGAInstanceResponse deleteUGAInstance(DeleteUGAInstanceRequest request) throws UCloudException { + request.setAction("DeleteUGAInstance"); + return (DeleteUGAInstanceResponse) this.invoke(request, DeleteUGAInstanceResponse.class); + } + + + + + + + /** + * DeleteUPath - 删除UPath + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPathResponse deleteUPath(DeleteUPathRequest request) throws UCloudException { + request.setAction("DeleteUPath"); + return (DeleteUPathResponse) this.invoke(request, DeleteUPathResponse.class); + } + + + + + + + /** + * DescribeGlobalSSHInstance - 获取GlobalSSH实例列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeGlobalSSHInstanceResponse describeGlobalSSHInstance(DescribeGlobalSSHInstanceRequest request) throws UCloudException { + request.setAction("DescribeGlobalSSHInstance"); + return (DescribeGlobalSSHInstanceResponse) this.invoke(request, DescribeGlobalSSHInstanceResponse.class); + } + + + + + + + /** + * DescribePathXLineConfig - 获取全球加速线路信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribePathXLineConfigResponse describePathXLineConfig(DescribePathXLineConfigRequest request) throws UCloudException { + request.setAction("DescribePathXLineConfig"); + return (DescribePathXLineConfigResponse) this.invoke(request, DescribePathXLineConfigResponse.class); + } + + + + + + + /** + * DescribePathXSSL - 获取SSL证书信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribePathXSSLResponse describePathXSSL(DescribePathXSSLRequest request) throws UCloudException { + request.setAction("DescribePathXSSL"); + return (DescribePathXSSLResponse) this.invoke(request, DescribePathXSSLResponse.class); + } + + + + + + + /** + * DescribeUGAInstance - 获取全球加速服务加速配置信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUGAInstanceResponse describeUGAInstance(DescribeUGAInstanceRequest request) throws UCloudException { + request.setAction("DescribeUGAInstance"); + return (DescribeUGAInstanceResponse) this.invoke(request, DescribeUGAInstanceResponse.class); + } + + + + + + + /** + * DescribeUPath - 获取加速线路信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPathResponse describeUPath(DescribeUPathRequest request) throws UCloudException { + request.setAction("DescribeUPath"); + return (DescribeUPathResponse) this.invoke(request, DescribeUPathResponse.class); + } + + + + + + + /** + * DescribeUPathTemplate - 查询UPath的监控模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPathTemplateResponse describeUPathTemplate(DescribeUPathTemplateRequest request) throws UCloudException { + request.setAction("DescribeUPathTemplate"); + return (DescribeUPathTemplateResponse) this.invoke(request, DescribeUPathTemplateResponse.class); + } + + + + + + + /** + * GetGlobalSSHPrice - 获取GlobalSSH价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetGlobalSSHPriceResponse getGlobalSSHPrice(GetGlobalSSHPriceRequest request) throws UCloudException { + request.setAction("GetGlobalSSHPrice"); + return (GetGlobalSSHPriceResponse) this.invoke(request, GetGlobalSSHPriceResponse.class); + } + + + + + + + /** + * GetGlobalSSHUpdatePrice - 获取GlobalSSH升级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetGlobalSSHUpdatePriceResponse getGlobalSSHUpdatePrice(GetGlobalSSHUpdatePriceRequest request) throws UCloudException { + request.setAction("GetGlobalSSHUpdatePrice"); + return (GetGlobalSSHUpdatePriceResponse) this.invoke(request, GetGlobalSSHUpdatePriceResponse.class); + } + + + + + + + /** + * GetPathXMetric - 获取全球加速监控信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetPathXMetricResponse getPathXMetric(GetPathXMetricRequest request) throws UCloudException { + request.setAction("GetPathXMetric"); + return (GetPathXMetricResponse) this.invoke(request, GetPathXMetricResponse.class); + } + + + + + + + /** + * ModifyGlobalSSHPort - 修改GlobalSSH端口 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyGlobalSSHPortResponse modifyGlobalSSHPort(ModifyGlobalSSHPortRequest request) throws UCloudException { + request.setAction("ModifyGlobalSSHPort"); + return (ModifyGlobalSSHPortResponse) this.invoke(request, ModifyGlobalSSHPortResponse.class); + } + + + + + + + /** + * ModifyGlobalSSHRemark - 修改GlobalSSH备注 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyGlobalSSHRemarkResponse modifyGlobalSSHRemark(ModifyGlobalSSHRemarkRequest request) throws UCloudException { + request.setAction("ModifyGlobalSSHRemark"); + return (ModifyGlobalSSHRemarkResponse) this.invoke(request, ModifyGlobalSSHRemarkResponse.class); + } + + + + + + + /** + * ModifyGlobalSSHType - 修改GlobalSSH实例类型 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyGlobalSSHTypeResponse modifyGlobalSSHType(ModifyGlobalSSHTypeRequest request) throws UCloudException { + request.setAction("ModifyGlobalSSHType"); + return (ModifyGlobalSSHTypeResponse) this.invoke(request, ModifyGlobalSSHTypeResponse.class); + } + + + + + + + /** + * ModifyUPathBandwidth - 修改加速线路带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPathBandwidthResponse modifyUPathBandwidth(ModifyUPathBandwidthRequest request) throws UCloudException { + request.setAction("ModifyUPathBandwidth"); + return (ModifyUPathBandwidthResponse) this.invoke(request, ModifyUPathBandwidthResponse.class); + } + + + + + + + /** + * ModifyUPathTemplate - 修改UPath监控告警项 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPathTemplateResponse modifyUPathTemplate(ModifyUPathTemplateRequest request) throws UCloudException { + request.setAction("ModifyUPathTemplate"); + return (ModifyUPathTemplateResponse) this.invoke(request, ModifyUPathTemplateResponse.class); + } + + + + + + + /** + * UGABindUPath - UGA绑定UPath + * + * @param request Request object + * @throws UCloudException Exception + */ + public UGABindUPathResponse ugaBindUPath(UGABindUPathRequest request) throws UCloudException { + request.setAction("UGABindUPath"); + return (UGABindUPathResponse) this.invoke(request, UGABindUPathResponse.class); + } + + + + + + + /** + * UGAUnBindUPath - UGA与UPath解绑 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UGAUnBindUPathResponse ugaUnBindUPath(UGAUnBindUPathRequest request) throws UCloudException { + request.setAction("UGAUnBindUPath"); + return (UGAUnBindUPathResponse) this.invoke(request, UGAUnBindUPathResponse.class); + } + + + + + + + /** + * UnBindPathXSSL - 解绑PathX SSL 证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UnBindPathXSSLResponse unBindPathXSSL(UnBindPathXSSLRequest request) throws UCloudException { + request.setAction("UnBindPathXSSL"); + return (UnBindPathXSSLResponse) this.invoke(request, UnBindPathXSSLResponse.class); + } + + + + + + + /** + * UpdatePathXWhitelist - 更新入口白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdatePathXWhitelistResponse updatePathXWhitelist(UpdatePathXWhitelistRequest request) throws UCloudException { + request.setAction("UpdatePathXWhitelist"); + return (UpdatePathXWhitelistResponse) this.invoke(request, UpdatePathXWhitelistResponse.class); + } } diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClientInterface.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClientInterface.java index 4fc53182..463abcaa 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClientInterface.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClientInterface.java @@ -1,82 +1,178 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.pathx.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.pathx.models.BindPathXSSLRequest; import cn.ucloud.pathx.models.BindPathXSSLResponse; + + + import cn.ucloud.pathx.models.CreateGlobalSSHInstanceRequest; import cn.ucloud.pathx.models.CreateGlobalSSHInstanceResponse; + + + import cn.ucloud.pathx.models.CreatePathXSSLRequest; import cn.ucloud.pathx.models.CreatePathXSSLResponse; + + + import cn.ucloud.pathx.models.CreateUGAForwarderRequest; import cn.ucloud.pathx.models.CreateUGAForwarderResponse; + + + import cn.ucloud.pathx.models.CreateUGAInstanceRequest; import cn.ucloud.pathx.models.CreateUGAInstanceResponse; + + + import cn.ucloud.pathx.models.CreateUPathRequest; import cn.ucloud.pathx.models.CreateUPathResponse; + + + import cn.ucloud.pathx.models.DeleteGlobalSSHInstanceRequest; import cn.ucloud.pathx.models.DeleteGlobalSSHInstanceResponse; + + + import cn.ucloud.pathx.models.DeletePathXSSLRequest; import cn.ucloud.pathx.models.DeletePathXSSLResponse; + + + import cn.ucloud.pathx.models.DeleteUGAForwarderRequest; import cn.ucloud.pathx.models.DeleteUGAForwarderResponse; + + + import cn.ucloud.pathx.models.DeleteUGAInstanceRequest; import cn.ucloud.pathx.models.DeleteUGAInstanceResponse; + + + import cn.ucloud.pathx.models.DeleteUPathRequest; import cn.ucloud.pathx.models.DeleteUPathResponse; + + + import cn.ucloud.pathx.models.DescribeGlobalSSHInstanceRequest; import cn.ucloud.pathx.models.DescribeGlobalSSHInstanceResponse; + + + import cn.ucloud.pathx.models.DescribePathXLineConfigRequest; import cn.ucloud.pathx.models.DescribePathXLineConfigResponse; + + + import cn.ucloud.pathx.models.DescribePathXSSLRequest; import cn.ucloud.pathx.models.DescribePathXSSLResponse; + + + import cn.ucloud.pathx.models.DescribeUGAInstanceRequest; import cn.ucloud.pathx.models.DescribeUGAInstanceResponse; + + + import cn.ucloud.pathx.models.DescribeUPathRequest; import cn.ucloud.pathx.models.DescribeUPathResponse; + + + import cn.ucloud.pathx.models.DescribeUPathTemplateRequest; import cn.ucloud.pathx.models.DescribeUPathTemplateResponse; + + + import cn.ucloud.pathx.models.GetGlobalSSHPriceRequest; import cn.ucloud.pathx.models.GetGlobalSSHPriceResponse; + + + import cn.ucloud.pathx.models.GetGlobalSSHUpdatePriceRequest; import cn.ucloud.pathx.models.GetGlobalSSHUpdatePriceResponse; + + + import cn.ucloud.pathx.models.GetPathXMetricRequest; import cn.ucloud.pathx.models.GetPathXMetricResponse; + + + import cn.ucloud.pathx.models.ModifyGlobalSSHPortRequest; import cn.ucloud.pathx.models.ModifyGlobalSSHPortResponse; + + + import cn.ucloud.pathx.models.ModifyGlobalSSHRemarkRequest; import cn.ucloud.pathx.models.ModifyGlobalSSHRemarkResponse; + + + import cn.ucloud.pathx.models.ModifyGlobalSSHTypeRequest; import cn.ucloud.pathx.models.ModifyGlobalSSHTypeResponse; + + + import cn.ucloud.pathx.models.ModifyUPathBandwidthRequest; import cn.ucloud.pathx.models.ModifyUPathBandwidthResponse; + + + import cn.ucloud.pathx.models.ModifyUPathTemplateRequest; import cn.ucloud.pathx.models.ModifyUPathTemplateResponse; + + + import cn.ucloud.pathx.models.UGABindUPathRequest; import cn.ucloud.pathx.models.UGABindUPathResponse; + + + import cn.ucloud.pathx.models.UGAUnBindUPathRequest; import cn.ucloud.pathx.models.UGAUnBindUPathResponse; + + + import cn.ucloud.pathx.models.UnBindPathXSSLRequest; import cn.ucloud.pathx.models.UnBindPathXSSLResponse; + + + import cn.ucloud.pathx.models.UpdatePathXWhitelistRequest; import cn.ucloud.pathx.models.UpdatePathXWhitelistResponse; -/** This client is used to call actions of **PathX** service */ +/** + * This client is used to call actions of **PathX** service + */ public interface PathXClientInterface extends Client { - + + + + + + /** * BindPathXSSL - 绑定PathX SSL证书 * @@ -84,43 +180,64 @@ public interface PathXClientInterface extends Client { * @throws UCloudException Exception */ public BindPathXSSLResponse bindPathXSSL(BindPathXSSLRequest request) throws UCloudException; - + + + + + + /** * CreateGlobalSSHInstance - 创建GlobalSSH实例 * * @param request Request object * @throws UCloudException Exception */ - public CreateGlobalSSHInstanceResponse createGlobalSSHInstance( - CreateGlobalSSHInstanceRequest request) throws UCloudException; - + public CreateGlobalSSHInstanceResponse createGlobalSSHInstance(CreateGlobalSSHInstanceRequest request) throws UCloudException; + + + + + + /** * CreatePathXSSL - 创建证书 * * @param request Request object * @throws UCloudException Exception */ - public CreatePathXSSLResponse createPathXSSL(CreatePathXSSLRequest request) - throws UCloudException; - + public CreatePathXSSLResponse createPathXSSL(CreatePathXSSLRequest request) throws UCloudException; + + + + + + /** * CreateUGAForwarder - 创建加速实例转发器 * * @param request Request object * @throws UCloudException Exception */ - public CreateUGAForwarderResponse createUGAForwarder(CreateUGAForwarderRequest request) - throws UCloudException; - + public CreateUGAForwarderResponse createUGAForwarder(CreateUGAForwarderRequest request) throws UCloudException; + + + + + + /** * CreateUGAInstance - 创建全球加速配置项 * * @param request Request object * @throws UCloudException Exception */ - public CreateUGAInstanceResponse createUGAInstance(CreateUGAInstanceRequest request) - throws UCloudException; - + public CreateUGAInstanceResponse createUGAInstance(CreateUGAInstanceRequest request) throws UCloudException; + + + + + + /** * CreateUPath - 创建UPath * @@ -128,43 +245,64 @@ public CreateUGAInstanceResponse createUGAInstance(CreateUGAInstanceRequest requ * @throws UCloudException Exception */ public CreateUPathResponse createUPath(CreateUPathRequest request) throws UCloudException; - + + + + + + /** * DeleteGlobalSSHInstance - 删除GlobalSSH实例 * * @param request Request object * @throws UCloudException Exception */ - public DeleteGlobalSSHInstanceResponse deleteGlobalSSHInstance( - DeleteGlobalSSHInstanceRequest request) throws UCloudException; - + public DeleteGlobalSSHInstanceResponse deleteGlobalSSHInstance(DeleteGlobalSSHInstanceRequest request) throws UCloudException; + + + + + + /** * DeletePathXSSL - 删除PathX SSL证书 * * @param request Request object * @throws UCloudException Exception */ - public DeletePathXSSLResponse deletePathXSSL(DeletePathXSSLRequest request) - throws UCloudException; - + public DeletePathXSSLResponse deletePathXSSL(DeletePathXSSLRequest request) throws UCloudException; + + + + + + /** * DeleteUGAForwarder - 删除加速实例转发器 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUGAForwarderResponse deleteUGAForwarder(DeleteUGAForwarderRequest request) - throws UCloudException; - + public DeleteUGAForwarderResponse deleteUGAForwarder(DeleteUGAForwarderRequest request) throws UCloudException; + + + + + + /** * DeleteUGAInstance - 删除全球加速服务加速配置 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUGAInstanceResponse deleteUGAInstance(DeleteUGAInstanceRequest request) - throws UCloudException; - + public DeleteUGAInstanceResponse deleteUGAInstance(DeleteUGAInstanceRequest request) throws UCloudException; + + + + + + /** * DeleteUPath - 删除UPath * @@ -172,43 +310,64 @@ public DeleteUGAInstanceResponse deleteUGAInstance(DeleteUGAInstanceRequest requ * @throws UCloudException Exception */ public DeleteUPathResponse deleteUPath(DeleteUPathRequest request) throws UCloudException; - + + + + + + /** * DescribeGlobalSSHInstance - 获取GlobalSSH实例列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeGlobalSSHInstanceResponse describeGlobalSSHInstance( - DescribeGlobalSSHInstanceRequest request) throws UCloudException; - + public DescribeGlobalSSHInstanceResponse describeGlobalSSHInstance(DescribeGlobalSSHInstanceRequest request) throws UCloudException; + + + + + + /** * DescribePathXLineConfig - 获取全球加速线路信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribePathXLineConfigResponse describePathXLineConfig( - DescribePathXLineConfigRequest request) throws UCloudException; - + public DescribePathXLineConfigResponse describePathXLineConfig(DescribePathXLineConfigRequest request) throws UCloudException; + + + + + + /** * DescribePathXSSL - 获取SSL证书信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribePathXSSLResponse describePathXSSL(DescribePathXSSLRequest request) - throws UCloudException; - + public DescribePathXSSLResponse describePathXSSL(DescribePathXSSLRequest request) throws UCloudException; + + + + + + /** * DescribeUGAInstance - 获取全球加速服务加速配置信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUGAInstanceResponse describeUGAInstance(DescribeUGAInstanceRequest request) - throws UCloudException; - + public DescribeUGAInstanceResponse describeUGAInstance(DescribeUGAInstanceRequest request) throws UCloudException; + + + + + + /** * DescribeUPath - 获取加速线路信息 * @@ -216,88 +375,129 @@ public DescribeUGAInstanceResponse describeUGAInstance(DescribeUGAInstanceReques * @throws UCloudException Exception */ public DescribeUPathResponse describeUPath(DescribeUPathRequest request) throws UCloudException; - + + + + + + /** * DescribeUPathTemplate - 查询UPath的监控模板 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPathTemplateResponse describeUPathTemplate(DescribeUPathTemplateRequest request) - throws UCloudException; - + public DescribeUPathTemplateResponse describeUPathTemplate(DescribeUPathTemplateRequest request) throws UCloudException; + + + + + + /** * GetGlobalSSHPrice - 获取GlobalSSH价格 * * @param request Request object * @throws UCloudException Exception */ - public GetGlobalSSHPriceResponse getGlobalSSHPrice(GetGlobalSSHPriceRequest request) - throws UCloudException; - + public GetGlobalSSHPriceResponse getGlobalSSHPrice(GetGlobalSSHPriceRequest request) throws UCloudException; + + + + + + /** * GetGlobalSSHUpdatePrice - 获取GlobalSSH升级价格 * * @param request Request object * @throws UCloudException Exception */ - public GetGlobalSSHUpdatePriceResponse getGlobalSSHUpdatePrice( - GetGlobalSSHUpdatePriceRequest request) throws UCloudException; - + public GetGlobalSSHUpdatePriceResponse getGlobalSSHUpdatePrice(GetGlobalSSHUpdatePriceRequest request) throws UCloudException; + + + + + + /** * GetPathXMetric - 获取全球加速监控信息 * * @param request Request object * @throws UCloudException Exception */ - public GetPathXMetricResponse getPathXMetric(GetPathXMetricRequest request) - throws UCloudException; - + public GetPathXMetricResponse getPathXMetric(GetPathXMetricRequest request) throws UCloudException; + + + + + + /** * ModifyGlobalSSHPort - 修改GlobalSSH端口 * * @param request Request object * @throws UCloudException Exception */ - public ModifyGlobalSSHPortResponse modifyGlobalSSHPort(ModifyGlobalSSHPortRequest request) - throws UCloudException; - + public ModifyGlobalSSHPortResponse modifyGlobalSSHPort(ModifyGlobalSSHPortRequest request) throws UCloudException; + + + + + + /** * ModifyGlobalSSHRemark - 修改GlobalSSH备注 * * @param request Request object * @throws UCloudException Exception */ - public ModifyGlobalSSHRemarkResponse modifyGlobalSSHRemark(ModifyGlobalSSHRemarkRequest request) - throws UCloudException; - + public ModifyGlobalSSHRemarkResponse modifyGlobalSSHRemark(ModifyGlobalSSHRemarkRequest request) throws UCloudException; + + + + + + /** * ModifyGlobalSSHType - 修改GlobalSSH实例类型 * * @param request Request object * @throws UCloudException Exception */ - public ModifyGlobalSSHTypeResponse modifyGlobalSSHType(ModifyGlobalSSHTypeRequest request) - throws UCloudException; - + public ModifyGlobalSSHTypeResponse modifyGlobalSSHType(ModifyGlobalSSHTypeRequest request) throws UCloudException; + + + + + + /** * ModifyUPathBandwidth - 修改加速线路带宽 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUPathBandwidthResponse modifyUPathBandwidth(ModifyUPathBandwidthRequest request) - throws UCloudException; - + public ModifyUPathBandwidthResponse modifyUPathBandwidth(ModifyUPathBandwidthRequest request) throws UCloudException; + + + + + + /** * ModifyUPathTemplate - 修改UPath监控告警项 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUPathTemplateResponse modifyUPathTemplate(ModifyUPathTemplateRequest request) - throws UCloudException; - + public ModifyUPathTemplateResponse modifyUPathTemplate(ModifyUPathTemplateRequest request) throws UCloudException; + + + + + + /** * UGABindUPath - UGA绑定UPath * @@ -305,31 +505,43 @@ public ModifyUPathTemplateResponse modifyUPathTemplate(ModifyUPathTemplateReques * @throws UCloudException Exception */ public UGABindUPathResponse ugaBindUPath(UGABindUPathRequest request) throws UCloudException; - + + + + + + /** * UGAUnBindUPath - UGA与UPath解绑 * * @param request Request object * @throws UCloudException Exception */ - public UGAUnBindUPathResponse ugaUnBindUPath(UGAUnBindUPathRequest request) - throws UCloudException; - + public UGAUnBindUPathResponse ugaUnBindUPath(UGAUnBindUPathRequest request) throws UCloudException; + + + + + + /** * UnBindPathXSSL - 解绑PathX SSL 证书 * * @param request Request object * @throws UCloudException Exception */ - public UnBindPathXSSLResponse unBindPathXSSL(UnBindPathXSSLRequest request) - throws UCloudException; - + public UnBindPathXSSLResponse unBindPathXSSL(UnBindPathXSSLRequest request) throws UCloudException; + + + + + + /** * UpdatePathXWhitelist - 更新入口白名单 * * @param request Request object * @throws UCloudException Exception */ - public UpdatePathXWhitelistResponse updatePathXWhitelist(UpdatePathXWhitelistRequest request) - throws UCloudException; + public UpdatePathXWhitelistResponse updatePathXWhitelist(UpdatePathXWhitelistRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLRequest.java index 6df05c5b..5953e2a0 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLRequest.java @@ -1,46 +1,67 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class BindPathXSSLRequest extends Request { - /** 项目ID。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 证书ID,如果没有指定证书ID也没有申请免费证书,HTTPS接入无法正常工作 */ + + + + /** + * 证书ID,如果没有指定证书ID也没有申请免费证书,HTTPS接入无法正常工作 + */ @NotEmpty @UCloudParam("SSLId") private String sslId; - - /** UGA实例ID */ + + + + /** + * UGA实例ID + */ @NotEmpty @UCloudParam("UGAId") private String ugaId; - - /** 绑定SSL证书的HTTPS端口。Port.0 Port.1对应多个Port。如果Port不存在则不会绑定 */ + + + + /** + * 绑定SSL证书的HTTPS端口。Port.0 Port.1对应多个Port。如果Port不存在则不会绑定 + */ @NotEmpty @UCloudParam("Port") private List port; - + + public String getProjectId() { return projectId; } @@ -48,7 +69,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSSLId() { return sslId; } @@ -56,7 +77,7 @@ public String getSSLId() { public void setSSLId(String sslId) { this.sslId = sslId; } - + public String getUGAId() { return ugaId; } @@ -64,7 +85,7 @@ public String getUGAId() { public void setUGAId(String ugaId) { this.ugaId = ugaId; } - + public List getPort() { return port; } @@ -72,4 +93,14 @@ public List getPort() { public void setPort(List port) { this.port = port; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLResponse.java index 7768517f..24ba7ee0 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class BindPathXSSLResponse extends Response {} +public class BindPathXSSLResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceRequest.java index 5e0258fc..1b44fd3c 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceRequest.java @@ -1,81 +1,133 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateGlobalSSHInstanceRequest extends Request { - /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + + + /** + * 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 填写支持SSH访问IP的地区名称,如“洛杉矶”,“新加坡”,“香港”,“东京”,“华盛顿”,“法兰克福”,“首尔”。Area和AreaCode两者必填一个 */ + + + + /** + * 填写支持SSH访问IP的地区名称,如“洛杉矶”,“新加坡”,“香港”,“东京”,“华盛顿”,“法兰克福”,“首尔”。Area和AreaCode两者必填一个 + */ @NotEmpty @UCloudParam("Area") private String area; - - /** 被SSH访问的源站IP,仅支持IPv4地址。 */ + + + + /** + * 被SSH访问的源站IP,仅支持IPv4地址。 + */ @NotEmpty @UCloudParam("TargetIP") private String targetIP; - + + + /** - * 源站服务器监听的SSH端口,可取范围[1-65535],不能使用80,443, - * 65123端口。如果InstanceType=Free,取值范围缩小为[22,3389],linux系统选择22,windows系统自动选3389。 + * 源站服务器监听的SSH端口,可取范围[1-65535],不能使用80,443, 65123端口。如果InstanceType=Free,取值范围缩小为[22,3389],linux系统选择22,windows系统自动选3389。 */ @NotEmpty @UCloudParam("Port") private Integer port; - - /** AreaCode, 区域航空港国际通用代码。Area和AreaCode两者必填一个 */ + + + + /** + * AreaCode, 区域航空港国际通用代码。Area和AreaCode两者必填一个 + */ @NotEmpty @UCloudParam("AreaCode") private String areaCode; - - /** 备注信息 */ + + + + /** + * 备注信息 + */ @UCloudParam("Remark") private String remark; - - /** 支付方式,如按月:Month、 按年:Year、按时:Dynamic */ + + + + /** + * 支付方式,如按月:Month、 按年:Year、按时:Dynamic + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买数量 按月购买至月底请传0 */ + + + + /** + * 购买数量 +按月购买至月底请传0 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 枚举值:["Ultimate","Enterprise","Basic","Primary"], 分别代表旗舰版,企业版,基础版,入门版 */ + + + + /** + * 枚举值:["Ultimate","Enterprise","Basic","Primary"], 分别代表旗舰版,企业版,基础版,入门版 + */ @UCloudParam("InstanceType") private String instanceType; - - /** Ultimate版本带宽包大小,枚举值:[0,20,40]。单位MB */ + + + + /** + * Ultimate版本带宽包大小,枚举值:[0,20,40]。单位MB + */ @UCloudParam("BandwidthPackage") private Integer bandwidthPackage; - - /** InstanceType等于Basic时可以在["cn-bj2","cn-sh2","cn-gd"]中选择1个作为转发机房,其他付费版默认配置三个转发机房 */ + + + + /** + * InstanceType等于Basic时可以在["cn-bj2","cn-sh2","cn-gd"]中选择1个作为转发机房,其他付费版默认配置三个转发机房 + */ @UCloudParam("ForwardRegion") private String forwardRegion; - - /** 使用代金券可冲抵部分费用 */ + + + + /** + * 使用代金券可冲抵部分费用 + */ @UCloudParam("CouponId") private String couponId; - + + public String getProjectId() { return projectId; } @@ -83,7 +135,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getArea() { return area; } @@ -91,7 +143,7 @@ public String getArea() { public void setArea(String area) { this.area = area; } - + public String getTargetIP() { return targetIP; } @@ -99,7 +151,7 @@ public String getTargetIP() { public void setTargetIP(String targetIP) { this.targetIP = targetIP; } - + public Integer getPort() { return port; } @@ -107,7 +159,7 @@ public Integer getPort() { public void setPort(Integer port) { this.port = port; } - + public String getAreaCode() { return areaCode; } @@ -115,7 +167,7 @@ public String getAreaCode() { public void setAreaCode(String areaCode) { this.areaCode = areaCode; } - + public String getRemark() { return remark; } @@ -123,7 +175,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public String getChargeType() { return chargeType; } @@ -131,7 +183,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -139,7 +191,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getInstanceType() { return instanceType; } @@ -147,7 +199,7 @@ public String getInstanceType() { public void setInstanceType(String instanceType) { this.instanceType = instanceType; } - + public Integer getBandwidthPackage() { return bandwidthPackage; } @@ -155,7 +207,7 @@ public Integer getBandwidthPackage() { public void setBandwidthPackage(Integer bandwidthPackage) { this.bandwidthPackage = bandwidthPackage; } - + public String getForwardRegion() { return forwardRegion; } @@ -163,7 +215,7 @@ public String getForwardRegion() { public void setForwardRegion(String forwardRegion) { this.forwardRegion = forwardRegion; } - + public String getCouponId() { return couponId; } @@ -171,4 +223,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceResponse.java index 59bd5ac6..5fa95382 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateGlobalSSHInstanceResponse extends Response { - /** 实例ID,资源唯一标识 */ + + + /** + * 实例ID,资源唯一标识 + */ @SerializedName("InstanceId") private String instanceId; - - /** 加速域名,访问该域名可就近接入 */ + + + + /** + * 加速域名,访问该域名可就近接入 + */ @SerializedName("AcceleratingDomain") private String acceleratingDomain; - + + public String getInstanceId() { return instanceId; } @@ -35,7 +49,7 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } - + public String getAcceleratingDomain() { return acceleratingDomain; } @@ -43,4 +57,14 @@ public String getAcceleratingDomain() { public void setAcceleratingDomain(String acceleratingDomain) { this.acceleratingDomain = acceleratingDomain; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLRequest.java index 8f6d2a81..0aa83c21 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLRequest.java @@ -1,55 +1,89 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreatePathXSSLRequest extends Request { - /** 项目ID org-xxx格式。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID org-xxx格式。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** SSL证书的名字 */ + + + + /** + * SSL证书的名字 + */ @NotEmpty @UCloudParam("SSLName") private String sslName; - - /** 所添加的SSL证书类型,目前只支持Pem格式 */ + + + + /** + * 所添加的SSL证书类型,目前只支持Pem格式 + */ @UCloudParam("SSLType") private String sslType; - - /** SSL证书的完整内容,私钥不可使用密码,包括加密证书的私钥、用户证书或CA证书等 */ + + + + /** + * SSL证书的完整内容,私钥不可使用密码,包括加密证书的私钥、用户证书或CA证书等 + */ @UCloudParam("SSLContent") private String sslContent; - - /** 用户自签证书内容 */ + + + + /** + * 用户自签证书内容 + */ @UCloudParam("UserCert") private String userCert; - - /** 加密证书的私钥,不可使用密码保护,开启密码保护后,重启服务需要输入密码 */ + + + + /** + * 加密证书的私钥,不可使用密码保护,开启密码保护后,重启服务需要输入密码 + */ @UCloudParam("PrivateKey") private String privateKey; - - /** CA颁发证书内容 */ + + + + /** + * CA颁发证书内容 + */ @UCloudParam("CACert") private String caCert; - + + public String getProjectId() { return projectId; } @@ -57,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSSLName() { return sslName; } @@ -65,7 +99,7 @@ public String getSSLName() { public void setSSLName(String sslName) { this.sslName = sslName; } - + public String getSSLType() { return sslType; } @@ -73,7 +107,7 @@ public String getSSLType() { public void setSSLType(String sslType) { this.sslType = sslType; } - + public String getSSLContent() { return sslContent; } @@ -81,7 +115,7 @@ public String getSSLContent() { public void setSSLContent(String sslContent) { this.sslContent = sslContent; } - + public String getUserCert() { return userCert; } @@ -89,7 +123,7 @@ public String getUserCert() { public void setUserCert(String userCert) { this.userCert = userCert; } - + public String getPrivateKey() { return privateKey; } @@ -97,7 +131,7 @@ public String getPrivateKey() { public void setPrivateKey(String privateKey) { this.privateKey = privateKey; } - + public String getCACert() { return caCert; } @@ -105,4 +139,14 @@ public String getCACert() { public void setCACert(String caCert) { this.caCert = caCert; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLResponse.java index 8d394017..a495e868 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreatePathXSSLResponse extends Response { - /** SSL证书的Id */ + + + /** + * SSL证书的Id + */ @SerializedName("SSLId") private String sslId; - + + public String getSSLId() { return sslId; } @@ -31,4 +41,14 @@ public String getSSLId() { public void setSSLId(String sslId) { this.sslId = sslId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderRequest.java index 23c94da2..e5bc6735 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderRequest.java @@ -1,100 +1,177 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateUGAForwarderRequest extends Request { - /** 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + + + /** + * 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 加速配置实例ID */ + + + + /** + * 加速配置实例ID + */ @NotEmpty @UCloudParam("UGAId") private String ugaId; - - /** HTTP接入HTTP回源转发,接入端口。禁用65123端口 */ + + + + /** + * HTTP接入HTTP回源转发,接入端口。禁用65123端口 + */ @UCloudParam("HTTPHTTP") private List httphttp; - - /** HTTP接入HTTP回源转发,源站监听端口 */ + + + + /** + * HTTP接入HTTP回源转发,源站监听端口 + */ @UCloudParam("HTTPHTTPRS") private List httphttprs; - - /** HTTPS接入HTTP回源转发,接入端口。禁用65123端口 */ + + + + /** + * HTTPS接入HTTP回源转发,接入端口。禁用65123端口 + */ @UCloudParam("HTTPSHTTP") private List httpshttp; - - /** HTTPS接入HTTP回源转发,回源端口 */ + + + + /** + * HTTPS接入HTTP回源转发,回源端口 + */ @UCloudParam("HTTPSHTTPRS") private List httpshttprs; - - /** HTTPS接入HTTPS回源转发,接入端口。禁用65123端口 */ + + + + /** + * HTTPS接入HTTPS回源转发,接入端口。禁用65123端口 + */ @UCloudParam("HTTPSHTTPS") private List httpshttps; - - /** HTTPS接入HTTPS回源转发,源站监听端口 */ + + + + /** + * HTTPS接入HTTPS回源转发,源站监听端口 + */ @UCloudParam("HTTPSHTTPSRS") private List httpshttpsrs; - - /** TCP接入端口,禁用65123端口 */ + + + + /** + * TCP接入端口,禁用65123端口 + */ @UCloudParam("TCP") private List tcp; - - /** TCP回源端口 */ + + + + /** + * TCP回源端口 + */ @UCloudParam("TCPRS") private List tcprs; - - /** UDP接入端口,禁用65123端口 */ + + + + /** + * UDP接入端口,禁用65123端口 + */ @UCloudParam("UDP") private List udp; - - /** UDP回源端口 */ + + + + /** + * UDP回源端口 + */ @UCloudParam("UDPRS") private List udprs; - - /** WebSocket接入WebSocket回源转发,接入端口。禁用65123。 */ + + + + /** + * WebSocket接入WebSocket回源转发,接入端口。禁用65123。 + */ @UCloudParam("WSWS") private List wsws; - - /** WebSocket接入WebSocket回源转发,源站监听端口 */ + + + + /** + * WebSocket接入WebSocket回源转发,源站监听端口 + */ @UCloudParam("WSWSRS") private List wswsrs; - - /** WebSocketS接入WebSocketS回源转发,接入端口。禁用65123。 */ + + + + /** + * WebSocketS接入WebSocketS回源转发,接入端口。禁用65123。 + */ @UCloudParam("WSSWSS") private List wsswss; - - /** WebSocketS接入WebSocketS回源转发,源站监听端口。 */ + + + + /** + * WebSocketS接入WebSocketS回源转发,源站监听端口。 + */ @UCloudParam("WSSWSSRS") private List wsswssrs; - - /** WebSocketS接入WebSocket回源转发,接入端口。禁用65123。 */ + + + + /** + * WebSocketS接入WebSocket回源转发,接入端口。禁用65123。 + */ @UCloudParam("WSSWS") private List wssws; - - /** WebSocketS接入WebSocket回源转发,源站监听端口。 */ + + + + /** + * WebSocketS接入WebSocket回源转发,源站监听端口。 + */ @UCloudParam("WSSWSRS") private List wsswsrs; - + + public String getProjectId() { return projectId; } @@ -102,7 +179,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUGAId() { return ugaId; } @@ -110,7 +187,7 @@ public String getUGAId() { public void setUGAId(String ugaId) { this.ugaId = ugaId; } - + public List getHTTPHTTP() { return httphttp; } @@ -118,7 +195,7 @@ public List getHTTPHTTP() { public void setHTTPHTTP(List httphttp) { this.httphttp = httphttp; } - + public List getHTTPHTTPRS() { return httphttprs; } @@ -126,7 +203,7 @@ public List getHTTPHTTPRS() { public void setHTTPHTTPRS(List httphttprs) { this.httphttprs = httphttprs; } - + public List getHTTPSHTTP() { return httpshttp; } @@ -134,7 +211,7 @@ public List getHTTPSHTTP() { public void setHTTPSHTTP(List httpshttp) { this.httpshttp = httpshttp; } - + public List getHTTPSHTTPRS() { return httpshttprs; } @@ -142,7 +219,7 @@ public List getHTTPSHTTPRS() { public void setHTTPSHTTPRS(List httpshttprs) { this.httpshttprs = httpshttprs; } - + public List getHTTPSHTTPS() { return httpshttps; } @@ -150,7 +227,7 @@ public List getHTTPSHTTPS() { public void setHTTPSHTTPS(List httpshttps) { this.httpshttps = httpshttps; } - + public List getHTTPSHTTPSRS() { return httpshttpsrs; } @@ -158,7 +235,7 @@ public List getHTTPSHTTPSRS() { public void setHTTPSHTTPSRS(List httpshttpsrs) { this.httpshttpsrs = httpshttpsrs; } - + public List getTCP() { return tcp; } @@ -166,7 +243,7 @@ public List getTCP() { public void setTCP(List tcp) { this.tcp = tcp; } - + public List getTCPRS() { return tcprs; } @@ -174,7 +251,7 @@ public List getTCPRS() { public void setTCPRS(List tcprs) { this.tcprs = tcprs; } - + public List getUDP() { return udp; } @@ -182,7 +259,7 @@ public List getUDP() { public void setUDP(List udp) { this.udp = udp; } - + public List getUDPRS() { return udprs; } @@ -190,7 +267,7 @@ public List getUDPRS() { public void setUDPRS(List udprs) { this.udprs = udprs; } - + public List getWSWS() { return wsws; } @@ -198,7 +275,7 @@ public List getWSWS() { public void setWSWS(List wsws) { this.wsws = wsws; } - + public List getWSWSRS() { return wswsrs; } @@ -206,7 +283,7 @@ public List getWSWSRS() { public void setWSWSRS(List wswsrs) { this.wswsrs = wswsrs; } - + public List getWSSWSS() { return wsswss; } @@ -214,7 +291,7 @@ public List getWSSWSS() { public void setWSSWSS(List wsswss) { this.wsswss = wsswss; } - + public List getWSSWSSRS() { return wsswssrs; } @@ -222,7 +299,7 @@ public List getWSSWSSRS() { public void setWSSWSSRS(List wsswssrs) { this.wsswssrs = wsswssrs; } - + public List getWSSWS() { return wssws; } @@ -230,7 +307,7 @@ public List getWSSWS() { public void setWSSWS(List wssws) { this.wssws = wssws; } - + public List getWSSWSRS() { return wsswsrs; } @@ -238,4 +315,14 @@ public List getWSSWSRS() { public void setWSSWSRS(List wsswsrs) { this.wsswsrs = wsswsrs; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderResponse.java index bd0b02b2..ed19993d 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class CreateUGAForwarderResponse extends Response {} +public class CreateUGAForwarderResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceRequest.java index ce4cb746..b8c037a6 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceRequest.java @@ -1,52 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateUGAInstanceRequest extends Request { - /** 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 加速配置实例名称 */ + + + + /** + * 加速配置实例名称 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 加速源IP,多个IP用英文半角逗号(,)隔开;IPList和Domain二选一必填 */ + + + + /** + * 加速源IP,多个IP用英文半角逗号(,)隔开;IPList和Domain二选一必填 + */ @UCloudParam("IPList") private String ipList; - - /** 加速源域名,IPList和Domain二选一必填 */ + + + + /** + * 加速源域名,IPList和Domain二选一必填 + */ @UCloudParam("Domain") private String domain; - - /** TCP端口号,已废弃。请使用 CreateUGAForwarder API 创建端口 */ + + + + /** + * TCP端口号,已废弃。请使用 CreateUGAForwarder API 创建端口 + */ @UCloudParam("TCP") private List tcp; - - /** UDP端口号,已废弃。请使用 CreateUGAForwarder API 创建端口 */ + + + + /** + * UDP端口号,已废弃。请使用 CreateUGAForwarder API 创建端口 + */ @UCloudParam("UDP") private List udp; - + + public String getProjectId() { return projectId; } @@ -54,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -62,7 +91,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getIPList() { return ipList; } @@ -70,7 +99,7 @@ public String getIPList() { public void setIPList(String ipList) { this.ipList = ipList; } - + public String getDomain() { return domain; } @@ -78,7 +107,7 @@ public String getDomain() { public void setDomain(String domain) { this.domain = domain; } - + public List getTCP() { return tcp; } @@ -86,7 +115,7 @@ public List getTCP() { public void setTCP(List tcp) { this.tcp = tcp; } - + public List getUDP() { return udp; } @@ -94,4 +123,14 @@ public List getUDP() { public void setUDP(List udp) { this.udp = udp; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceResponse.java index 1907ab27..2e74246d 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUGAInstanceResponse extends Response { - /** 加速配置ID */ + + + /** + * 加速配置ID + */ @SerializedName("UGAId") private String ugaId; - - /** 加速域名 用户可把业务域名CName到此域名上。注意:未绑定线路情况时 加速域名解析不出IP。 */ + + + + /** + * 加速域名 用户可把业务域名CName到此域名上。注意:未绑定线路情况时 加速域名解析不出IP。 + */ @SerializedName("CName") private String cName; - + + public String getUGAId() { return ugaId; } @@ -35,7 +49,7 @@ public String getUGAId() { public void setUGAId(String ugaId) { this.ugaId = ugaId; } - + public String getCName() { return cName; } @@ -43,4 +57,14 @@ public String getCName() { public void setCName(String cName) { this.cName = cName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathRequest.java index fd845a26..f8b198b0 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathRequest.java @@ -1,68 +1,107 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUPathRequest extends Request { - /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + + + /** + * 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 名字,便于记忆区分 */ + + + + /** + * 名字,便于记忆区分 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 选择的线路,由DescribePathXLineConfig接口提供 */ + + + + /** + * 选择的线路,由DescribePathXLineConfig接口提供 + */ @NotEmpty @UCloudParam("LineId") private String lineId; - + + + /** - * 当PostPaid为false时,该值为预付费固定带宽;当PostPaid为true时,该值为后付费保底带宽,保底带宽越大可用的上限带宽越大。最小1Mbps,最大带宽由 - * DescribePathXLineConfig 接口获得。可联系产品团队咨询最大带宽。 + * 当PostPaid为false时,该值为预付费固定带宽;当PostPaid为true时,该值为后付费保底带宽,保底带宽越大可用的上限带宽越大。最小1Mbps,最大带宽由 DescribePathXLineConfig 接口获得。可联系产品团队咨询最大带宽。 */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - - /** 计费模式,默认为Month 按月收费,可选范围['Month','Year','Dynamic'] */ + + + + /** + * 计费模式,默认为Month 按月收费,可选范围['Month','Year','Dynamic'] + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买周期,ChargeType为Month时,Quantity默认为0代表购买到月底,按时和按年付费该参数必须大于0 */ + + + + /** + * 购买周期,ChargeType为Month时,Quantity默认为0代表购买到月底,按时和按年付费该参数必须大于0 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 是否开启后付费, 默认为false ,不开启后付费。当ChargeType为Dynamic时不能开启后付费。 */ + + + + /** + * 是否开启后付费, 默认为false ,不开启后付费。当ChargeType为Dynamic时不能开启后付费。 + */ @UCloudParam("PostPaid") private Boolean postPaid; - - /** private:专线线路;public:海外SD-WAN。默认为private。 */ + + + + /** + * private:专线线路;public:海外SD-WAN。默认为private。 + */ @UCloudParam("PathType") private String pathType; - - /** 代金券Id */ + + + + /** + * 代金券Id + */ @UCloudParam("CouponId") private String couponId; - + + public String getProjectId() { return projectId; } @@ -70,7 +109,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -78,7 +117,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getLineId() { return lineId; } @@ -86,7 +125,7 @@ public String getLineId() { public void setLineId(String lineId) { this.lineId = lineId; } - + public Integer getBandwidth() { return bandwidth; } @@ -94,7 +133,7 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } - + public String getChargeType() { return chargeType; } @@ -102,7 +141,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -110,7 +149,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public Boolean getPostPaid() { return postPaid; } @@ -118,7 +157,7 @@ public Boolean getPostPaid() { public void setPostPaid(Boolean postPaid) { this.postPaid = postPaid; } - + public String getPathType() { return pathType; } @@ -126,7 +165,7 @@ public String getPathType() { public void setPathType(String pathType) { this.pathType = pathType; } - + public String getCouponId() { return couponId; } @@ -134,4 +173,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathResponse.java index 928a2e63..351ee0ea 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUPathResponse extends Response { - /** 加速线路实例Id */ + + + /** + * 加速线路实例Id + */ @SerializedName("PathId") private String pathId; - + + public String getPathId() { return pathId; } @@ -31,4 +41,14 @@ public String getPathId() { public void setPathId(String pathId) { this.pathId = pathId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceRequest.java index 595149c2..ee628630 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceRequest.java @@ -1,35 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteGlobalSSHInstanceRequest extends Request { - /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + + + /** + * 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 实例Id,资源的唯一标识 */ + + + + /** + * 实例Id,资源的唯一标识 + */ @NotEmpty @UCloudParam("InstanceId") private String instanceId; - + + public String getProjectId() { return projectId; } @@ -37,7 +51,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceId() { return instanceId; } @@ -45,4 +59,14 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceResponse.java index e6407a81..12951fbc 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteGlobalSSHInstanceResponse extends Response {} +public class DeleteGlobalSSHInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLRequest.java index a7284cbd..c2e0c999 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLRequest.java @@ -1,35 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeletePathXSSLRequest extends Request { - /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** SSL证书的ID */ + + + + /** + * SSL证书的ID + */ @NotEmpty @UCloudParam("SSLId") private String sslId; - + + public String getProjectId() { return projectId; } @@ -37,7 +51,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSSLId() { return sslId; } @@ -45,4 +59,14 @@ public String getSSLId() { public void setSSLId(String sslId) { this.sslId = sslId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLResponse.java index 2b30fa0f..761a2d5c 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeletePathXSSLResponse extends Response {} +public class DeletePathXSSLResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderRequest.java index 771acfd6..530f8698 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderRequest.java @@ -1,68 +1,113 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DeleteUGAForwarderRequest extends Request { - /** 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + + + /** + * 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 加速配置实例ID */ + + + + /** + * 加速配置实例ID + */ @NotEmpty @UCloudParam("UGAId") private String ugaId; - - /** HTTP接入HTTP回源,接入端口。禁用65123端口 */ + + + + /** + * HTTP接入HTTP回源,接入端口。禁用65123端口 + */ @UCloudParam("HTTPHTTP") private List httphttp; - - /** HTTPS接入HTTP回源, 接入端口。禁用65123端口 */ + + + + /** + * HTTPS接入HTTP回源, 接入端口。禁用65123端口 + */ @UCloudParam("HTTPSHTTP") private List httpshttp; - - /** HTTPS接入HTTPS回源, 接入端口。禁用65123端口 */ + + + + /** + * HTTPS接入HTTPS回源, 接入端口。禁用65123端口 + */ @UCloudParam("HTTPSHTTPS") private List httpshttps; - - /** WebSocketS接入WebSocketS回源, 接入端口。禁用65123端口 */ + + + + /** + * WebSocketS接入WebSocketS回源, 接入端口。禁用65123端口 + */ @UCloudParam("WSSWSS") private List wsswss; - - /** WebSocket接入WebSocket回源, 接入端口。禁用65123端口 */ + + + + /** + * WebSocket接入WebSocket回源, 接入端口。禁用65123端口 + */ @UCloudParam("WSWS") private List wsws; - - /** WebSocketS接入WebSocket回源, 接入端口。禁用65123端口。 */ + + + + /** + * WebSocketS接入WebSocket回源, 接入端口。禁用65123端口。 + */ @UCloudParam("WSSWS") private List wssws; - - /** TCP接入端口 */ + + + + /** + * TCP接入端口 + */ @UCloudParam("TCP") private List tcp; - - /** UDP接入端口 */ + + + + /** + * UDP接入端口 + */ @UCloudParam("UDP") private List udp; - + + public String getProjectId() { return projectId; } @@ -70,7 +115,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUGAId() { return ugaId; } @@ -78,7 +123,7 @@ public String getUGAId() { public void setUGAId(String ugaId) { this.ugaId = ugaId; } - + public List getHTTPHTTP() { return httphttp; } @@ -86,7 +131,7 @@ public List getHTTPHTTP() { public void setHTTPHTTP(List httphttp) { this.httphttp = httphttp; } - + public List getHTTPSHTTP() { return httpshttp; } @@ -94,7 +139,7 @@ public List getHTTPSHTTP() { public void setHTTPSHTTP(List httpshttp) { this.httpshttp = httpshttp; } - + public List getHTTPSHTTPS() { return httpshttps; } @@ -102,7 +147,7 @@ public List getHTTPSHTTPS() { public void setHTTPSHTTPS(List httpshttps) { this.httpshttps = httpshttps; } - + public List getWSSWSS() { return wsswss; } @@ -110,7 +155,7 @@ public List getWSSWSS() { public void setWSSWSS(List wsswss) { this.wsswss = wsswss; } - + public List getWSWS() { return wsws; } @@ -118,7 +163,7 @@ public List getWSWS() { public void setWSWS(List wsws) { this.wsws = wsws; } - + public List getWSSWS() { return wssws; } @@ -126,7 +171,7 @@ public List getWSSWS() { public void setWSSWS(List wssws) { this.wssws = wssws; } - + public List getTCP() { return tcp; } @@ -134,7 +179,7 @@ public List getTCP() { public void setTCP(List tcp) { this.tcp = tcp; } - + public List getUDP() { return udp; } @@ -142,4 +187,14 @@ public List getUDP() { public void setUDP(List udp) { this.udp = udp; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderResponse.java index 67a0a743..e9c3cfa4 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUGAForwarderResponse extends Response {} +public class DeleteUGAForwarderResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceRequest.java index 96e72fd4..5f49a16c 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceRequest.java @@ -1,35 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUGAInstanceRequest extends Request { - /** 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 加速配置实例ID */ + + + + /** + * 加速配置实例ID + */ @NotEmpty @UCloudParam("UGAId") private String ugaId; - + + public String getProjectId() { return projectId; } @@ -37,7 +51,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUGAId() { return ugaId; } @@ -45,4 +59,14 @@ public String getUGAId() { public void setUGAId(String ugaId) { this.ugaId = ugaId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceResponse.java index 04a626e8..cfa84571 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUGAInstanceResponse extends Response {} +public class DeleteUGAInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathRequest.java index 7731a3e4..4f363b77 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathRequest.java @@ -1,35 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUPathRequest extends Request { - /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 加速线路实例ID */ + + + + /** + * 加速线路实例ID + */ @NotEmpty @UCloudParam("UPathId") private String uPathId; - + + public String getProjectId() { return projectId; } @@ -37,7 +51,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPathId() { return uPathId; } @@ -45,4 +59,14 @@ public String getUPathId() { public void setUPathId(String uPathId) { this.uPathId = uPathId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathResponse.java index a46d7a23..3c77486c 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUPathResponse extends Response {} +public class DeleteUPathResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceRequest.java index f4b2719a..c504c72c 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceRequest.java @@ -1,34 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeGlobalSSHInstanceRequest extends Request { - /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + + + /** + * 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 实例ID,资源唯一标识 */ + + + + /** + * 实例ID,资源唯一标识 + */ @UCloudParam("InstanceId") private String instanceId; - + + public String getProjectId() { return projectId; } @@ -36,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceId() { return instanceId; } @@ -44,4 +58,14 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceResponse.java index 6272e849..e48c511e 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeGlobalSSHInstanceResponse extends Response { - /** GlobalSSH实例列表,实例的属性参考GlobalSSHInfo模型 */ + + + /** + * GlobalSSH实例列表,实例的属性参考GlobalSSHInfo模型 + */ @SerializedName("InstanceSet") private List instanceSet; - + + public List getInstanceSet() { return instanceSet; } @@ -32,211 +41,289 @@ public List getInstanceSet() { public void setInstanceSet(List instanceSet) { this.instanceSet = instanceSet; } + + public static class GlobalSSHInfo extends Response { + + + /** + * 实例ID,资源唯一标识 + */ + @SerializedName("InstanceId") + private String instanceId; + + + + /** + * 枚举值:["Enterprise","Basic","Free","Welfare"], 分别代表企业版,基础版本,免费版本,较早的公测免费版 + */ + @SerializedName("InstanceType") + private String instanceType; + + + + /** + * GlobalSSH分配的加速域名。 + */ + @SerializedName("AcceleratingDomain") + private String acceleratingDomain; + + + + /** + * 被SSH访问的IP所在地区 + */ + @SerializedName("Area") + private String area; + + + + /** + * 被SSH访问的源站 IPv4地址。 + */ + @SerializedName("TargetIP") + private String targetIP; + + + + /** + * 备注信息 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 源站服务器监听的SSH端口,windows系统为RDP端口 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * InstanceType等于Free时,由系统自动分配,不等于源站Port值。InstanceType不等于Free时,与源站Port值相同。 + */ + @SerializedName("GlobalSSHPort") + private Integer globalSSHPort; + + + + /** + * 支付周期,如Month,Year,Dynamic等 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 资源创建时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 资源过期时间戳 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 是否过期 + */ + @SerializedName("Expire") + private Boolean expire; + + + + /** + * 是否开启EIP IPV6 接入,Flase:未开启 + */ + @SerializedName("IPV6Access") + private Boolean ipv6Access; + + + + /** + * GlobalSSH分配的其他可用加速域名列表 + */ + @SerializedName("ExtraDomain") + private List extraDomain; + + + + /** + * globalssh Ultimate带宽包大小 + */ + @SerializedName("BandwidthPackage") + private Integer bandwidthPackage; + + + + /** + * InstanceType为Basic版本时,需要展示具体分配的转发机房 + */ + @SerializedName("ForwardRegion") + private String forwardRegion; + + + + /** + * 加速域名当前可用性检测结果 HashMap 结构 0表示可用, 1 表示有污染 + */ + @SerializedName("DomainStatus") + private Object domainStatus; + + + public String getInstanceId() { + return instanceId; + } - public static class GlobalSSHInfo extends Response { - - /** 实例ID,资源唯一标识 */ - @SerializedName("InstanceId") - private String instanceId; - - /** 枚举值:["Enterprise","Basic","Free","Welfare"], 分别代表企业版,基础版本,免费版本,较早的公测免费版 */ - @SerializedName("InstanceType") - private String instanceType; - - /** GlobalSSH分配的加速域名。 */ - @SerializedName("AcceleratingDomain") - private String acceleratingDomain; - - /** 被SSH访问的IP所在地区 */ - @SerializedName("Area") - private String area; - - /** 被SSH访问的源站 IPv4地址。 */ - @SerializedName("TargetIP") - private String targetIP; - - /** 备注信息 */ - @SerializedName("Remark") - private String remark; - - /** 源站服务器监听的SSH端口,windows系统为RDP端口 */ - @SerializedName("Port") - private Integer port; - - /** InstanceType等于Free时,由系统自动分配,不等于源站Port值。InstanceType不等于Free时,与源站Port值相同。 */ - @SerializedName("GlobalSSHPort") - private Integer globalSSHPort; - - /** 支付周期,如Month,Year,Dynamic等 */ - @SerializedName("ChargeType") - private String chargeType; - - /** 资源创建时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 资源过期时间戳 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 是否过期 */ - @SerializedName("Expire") - private Boolean expire; - - /** 是否开启EIP IPV6 接入,Flase:未开启 */ - @SerializedName("IPV6Access") - private Boolean ipv6Access; - - /** GlobalSSH分配的其他可用加速域名列表 */ - @SerializedName("ExtraDomain") - private List extraDomain; - - /** globalssh Ultimate带宽包大小 */ - @SerializedName("BandwidthPackage") - private Integer bandwidthPackage; - - /** InstanceType为Basic版本时,需要展示具体分配的转发机房 */ - @SerializedName("ForwardRegion") - private String forwardRegion; - - /** 加速域名当前可用性检测结果 HashMap 结构 0表示可用, 1 表示有污染 */ - @SerializedName("DomainStatus") - private Object domainStatus; - - public String getInstanceId() { - return instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public String getInstanceType() { - return instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getAcceleratingDomain() { - return acceleratingDomain; - } - - public void setAcceleratingDomain(String acceleratingDomain) { - this.acceleratingDomain = acceleratingDomain; - } - - public String getArea() { - return area; - } - - public void setArea(String area) { - this.area = area; - } - - public String getTargetIP() { - return targetIP; - } + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getInstanceType() { + return instanceType; + } - public void setTargetIP(String targetIP) { - this.targetIP = targetIP; - } + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getAcceleratingDomain() { + return acceleratingDomain; + } - public String getRemark() { - return remark; - } + public void setAcceleratingDomain(String acceleratingDomain) { + this.acceleratingDomain = acceleratingDomain; + } + + public String getArea() { + return area; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setArea(String area) { + this.area = area; + } + + public String getTargetIP() { + return targetIP; + } - public Integer getPort() { - return port; - } + public void setTargetIP(String targetIP) { + this.targetIP = targetIP; + } + + public String getRemark() { + return remark; + } - public void setPort(Integer port) { - this.port = port; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getPort() { + return port; + } - public Integer getGlobalSSHPort() { - return globalSSHPort; - } + public void setPort(Integer port) { + this.port = port; + } + + public Integer getGlobalSSHPort() { + return globalSSHPort; + } - public void setGlobalSSHPort(Integer globalSSHPort) { - this.globalSSHPort = globalSSHPort; - } + public void setGlobalSSHPort(Integer globalSSHPort) { + this.globalSSHPort = globalSSHPort; + } + + public String getChargeType() { + return chargeType; + } - public String getChargeType() { - return chargeType; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getCreateTime() { + return createTime; + } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public Integer getCreateTime() { - return createTime; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Boolean getExpire() { + return expire; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setExpire(Boolean expire) { + this.expire = expire; + } + + public Boolean getIPV6Access() { + return ipv6Access; + } - public Integer getExpireTime() { - return expireTime; - } + public void setIPV6Access(Boolean ipv6Access) { + this.ipv6Access = ipv6Access; + } + + public List getExtraDomain() { + return extraDomain; + } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } + public void setExtraDomain(List extraDomain) { + this.extraDomain = extraDomain; + } + + public Integer getBandwidthPackage() { + return bandwidthPackage; + } - public Boolean getExpire() { - return expire; - } + public void setBandwidthPackage(Integer bandwidthPackage) { + this.bandwidthPackage = bandwidthPackage; + } + + public String getForwardRegion() { + return forwardRegion; + } - public void setExpire(Boolean expire) { - this.expire = expire; - } + public void setForwardRegion(String forwardRegion) { + this.forwardRegion = forwardRegion; + } + + public Object getDomainStatus() { + return domainStatus; + } - public Boolean getIPV6Access() { - return ipv6Access; + public void setDomainStatus(Object domainStatus) { + this.domainStatus = domainStatus; + } + } +} - public void setIPV6Access(Boolean ipv6Access) { - this.ipv6Access = ipv6Access; - } - public List getExtraDomain() { - return extraDomain; - } - public void setExtraDomain(List extraDomain) { - this.extraDomain = extraDomain; - } - public Integer getBandwidthPackage() { - return bandwidthPackage; - } - public void setBandwidthPackage(Integer bandwidthPackage) { - this.bandwidthPackage = bandwidthPackage; - } - public String getForwardRegion() { - return forwardRegion; - } - public void setForwardRegion(String forwardRegion) { - this.forwardRegion = forwardRegion; - } - public Object getDomainStatus() { - return domainStatus; - } - public void setDomainStatus(Object domainStatus) { - this.domainStatus = domainStatus; - } - } -} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigRequest.java index d7cd858b..22a94182 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigRequest.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class DescribePathXLineConfigRequest extends Request { + + /** * 项目ID,如org-xxxx。不填为默认项目。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + public String getProjectId() { return projectId; } @@ -32,4 +41,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigResponse.java index 3b77bb9a..6cbb2ffa 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribePathXLineConfigResponse extends Response { - /** UGAA线路列表,参考UGAALine字段定义 */ + + + /** + * UGAA线路列表,参考UGAALine字段定义 + */ @SerializedName("LineSet") private List lineSet; - + + public List getLineSet() { return lineSet; } @@ -32,238 +41,324 @@ public List getLineSet() { public void setLineSet(List lineSet) { this.lineSet = lineSet; } - - public static class LineDetail extends Response { - - /** 线路源 */ - @SerializedName("LineFrom") - private String lineFrom; - - /** 线路目的 */ - @SerializedName("LineTo") - private String lineTo; - - /** 线路计费Id */ - @SerializedName("LineId") - private String lineId; - - /** 线路源中文名称 */ - @SerializedName("LineFromName") - private String lineFromName; - - /** 线路目的中文名称 */ - @SerializedName("LineToName") - private String lineToName; - - public String getLineFrom() { - return lineFrom; - } - - public void setLineFrom(String lineFrom) { - this.lineFrom = lineFrom; - } - - public String getLineTo() { - return lineTo; - } - - public void setLineTo(String lineTo) { - this.lineTo = lineTo; - } - - public String getLineId() { - return lineId; - } - - public void setLineId(String lineId) { - this.lineId = lineId; - } - - public String getLineFromName() { - return lineFromName; - } - - public void setLineFromName(String lineFromName) { - this.lineFromName = lineFromName; - } - - public String getLineToName() { - return lineToName; - } - - public void setLineToName(String lineToName) { - this.lineToName = lineToName; - } + + public static class LineDetail extends Response { + + + /** + * 线路源 + */ + @SerializedName("LineFrom") + private String lineFrom; + + + + /** + * 线路目的 + */ + @SerializedName("LineTo") + private String lineTo; + + + + /** + * 线路计费Id + */ + @SerializedName("LineId") + private String lineId; + + + + /** + * 线路源中文名称 + */ + @SerializedName("LineFromName") + private String lineFromName; + + + + /** + * 线路目的中文名称 + */ + @SerializedName("LineToName") + private String lineToName; + + + public String getLineFrom() { + return lineFrom; } - public static class UGAALine extends Response { - - /** 线路源 */ - @SerializedName("LineFrom") - private String lineFrom; - - /** 线路目的 */ - @SerializedName("LineTo") - private String lineTo; - - /** 线路源中文名称 */ - @SerializedName("LineFromName") - private String lineFromName; - - /** 线路目的中文名称 */ - @SerializedName("LineToName") - private String lineToName; - - /** 预付费线路可售最大带宽 */ - @SerializedName("MaxBandwidth") - private Integer maxBandwidth; - - /** 后付费线路最大可售带宽 */ - @SerializedName("PostPaidMaxBandwidth") - private Integer postPaidMaxBandwidth; - - /** 后付费线路上限带宽与保底带宽的固定比例,正整数 */ - @SerializedName("GuaranteedBandwidthProportion") - private Integer guaranteedBandwidthProportion; - - /** true:支持SD-WAN线路;false:不支持SD-WAN线路 */ - @SerializedName("SupportPublicNetwork") - private Boolean supportPublicNetwork; - - /** 线路ID,可用于创建加速线路资源 */ - @SerializedName("LineId") - private String lineId; - - /** 线路接入点信息 */ - @SerializedName("LineDetail") - private List lineDetail; - - /** 加速国家区域国旗代码 */ - @SerializedName("FlagUnicodeFrom") - private String flagUnicodeFrom; - - /** 源站所在国家区域国旗代码 */ - @SerializedName("FlagUnicodeTo") - private String flagUnicodeTo; - - /** 加速国家区域所属地区代码 */ - @SerializedName("RegionCategoryFrom") - private String regionCategoryFrom; - - /** 源站所在国家区域所属地区代码 */ - @SerializedName("RegionCategoryTo") - private String regionCategoryTo; - - public String getLineFrom() { - return lineFrom; - } + public void setLineFrom(String lineFrom) { + this.lineFrom = lineFrom; + } + + public String getLineTo() { + return lineTo; + } - public void setLineFrom(String lineFrom) { - this.lineFrom = lineFrom; - } + public void setLineTo(String lineTo) { + this.lineTo = lineTo; + } + + public String getLineId() { + return lineId; + } - public String getLineTo() { - return lineTo; - } + public void setLineId(String lineId) { + this.lineId = lineId; + } + + public String getLineFromName() { + return lineFromName; + } - public void setLineTo(String lineTo) { - this.lineTo = lineTo; - } + public void setLineFromName(String lineFromName) { + this.lineFromName = lineFromName; + } + + public String getLineToName() { + return lineToName; + } - public String getLineFromName() { - return lineFromName; - } + public void setLineToName(String lineToName) { + this.lineToName = lineToName; + } + + } + public static class UGAALine extends Response { + + + /** + * 线路源 + */ + @SerializedName("LineFrom") + private String lineFrom; + + + + /** + * 线路目的 + */ + @SerializedName("LineTo") + private String lineTo; + + + + /** + * 线路源中文名称 + */ + @SerializedName("LineFromName") + private String lineFromName; + + + + /** + * 线路目的中文名称 + */ + @SerializedName("LineToName") + private String lineToName; + + + + /** + * 预付费线路可售最大带宽 + */ + @SerializedName("MaxBandwidth") + private Integer maxBandwidth; + + + + /** + * 后付费线路最大可售带宽 + */ + @SerializedName("PostPaidMaxBandwidth") + private Integer postPaidMaxBandwidth; + + + + /** + * 后付费线路上限带宽与保底带宽的固定比例,正整数 + */ + @SerializedName("GuaranteedBandwidthProportion") + private Integer guaranteedBandwidthProportion; + + + + /** + * true:支持SD-WAN线路;false:不支持SD-WAN线路 + */ + @SerializedName("SupportPublicNetwork") + private Boolean supportPublicNetwork; + + + + /** + * 线路ID,可用于创建加速线路资源 + */ + @SerializedName("LineId") + private String lineId; + + + + /** + * 线路接入点信息 + */ + @SerializedName("LineDetail") + private List lineDetail; + + + + /** + * 加速国家区域国旗代码 + */ + @SerializedName("FlagUnicodeFrom") + private String flagUnicodeFrom; + + + + /** + * 源站所在国家区域国旗代码 + */ + @SerializedName("FlagUnicodeTo") + private String flagUnicodeTo; + + + + /** + * 加速国家区域所属地区代码 + */ + @SerializedName("RegionCategoryFrom") + private String regionCategoryFrom; + + + + /** + * 源站所在国家区域所属地区代码 + */ + @SerializedName("RegionCategoryTo") + private String regionCategoryTo; + + + public String getLineFrom() { + return lineFrom; + } - public void setLineFromName(String lineFromName) { - this.lineFromName = lineFromName; - } + public void setLineFrom(String lineFrom) { + this.lineFrom = lineFrom; + } + + public String getLineTo() { + return lineTo; + } - public String getLineToName() { - return lineToName; - } + public void setLineTo(String lineTo) { + this.lineTo = lineTo; + } + + public String getLineFromName() { + return lineFromName; + } - public void setLineToName(String lineToName) { - this.lineToName = lineToName; - } + public void setLineFromName(String lineFromName) { + this.lineFromName = lineFromName; + } + + public String getLineToName() { + return lineToName; + } - public Integer getMaxBandwidth() { - return maxBandwidth; - } + public void setLineToName(String lineToName) { + this.lineToName = lineToName; + } + + public Integer getMaxBandwidth() { + return maxBandwidth; + } - public void setMaxBandwidth(Integer maxBandwidth) { - this.maxBandwidth = maxBandwidth; - } + public void setMaxBandwidth(Integer maxBandwidth) { + this.maxBandwidth = maxBandwidth; + } + + public Integer getPostPaidMaxBandwidth() { + return postPaidMaxBandwidth; + } - public Integer getPostPaidMaxBandwidth() { - return postPaidMaxBandwidth; - } + public void setPostPaidMaxBandwidth(Integer postPaidMaxBandwidth) { + this.postPaidMaxBandwidth = postPaidMaxBandwidth; + } + + public Integer getGuaranteedBandwidthProportion() { + return guaranteedBandwidthProportion; + } - public void setPostPaidMaxBandwidth(Integer postPaidMaxBandwidth) { - this.postPaidMaxBandwidth = postPaidMaxBandwidth; - } + public void setGuaranteedBandwidthProportion(Integer guaranteedBandwidthProportion) { + this.guaranteedBandwidthProportion = guaranteedBandwidthProportion; + } + + public Boolean getSupportPublicNetwork() { + return supportPublicNetwork; + } - public Integer getGuaranteedBandwidthProportion() { - return guaranteedBandwidthProportion; - } + public void setSupportPublicNetwork(Boolean supportPublicNetwork) { + this.supportPublicNetwork = supportPublicNetwork; + } + + public String getLineId() { + return lineId; + } - public void setGuaranteedBandwidthProportion(Integer guaranteedBandwidthProportion) { - this.guaranteedBandwidthProportion = guaranteedBandwidthProportion; - } + public void setLineId(String lineId) { + this.lineId = lineId; + } + + public List getLineDetail() { + return lineDetail; + } - public Boolean getSupportPublicNetwork() { - return supportPublicNetwork; - } + public void setLineDetail(List lineDetail) { + this.lineDetail = lineDetail; + } + + public String getFlagUnicodeFrom() { + return flagUnicodeFrom; + } - public void setSupportPublicNetwork(Boolean supportPublicNetwork) { - this.supportPublicNetwork = supportPublicNetwork; - } + public void setFlagUnicodeFrom(String flagUnicodeFrom) { + this.flagUnicodeFrom = flagUnicodeFrom; + } + + public String getFlagUnicodeTo() { + return flagUnicodeTo; + } - public String getLineId() { - return lineId; - } + public void setFlagUnicodeTo(String flagUnicodeTo) { + this.flagUnicodeTo = flagUnicodeTo; + } + + public String getRegionCategoryFrom() { + return regionCategoryFrom; + } - public void setLineId(String lineId) { - this.lineId = lineId; - } + public void setRegionCategoryFrom(String regionCategoryFrom) { + this.regionCategoryFrom = regionCategoryFrom; + } + + public String getRegionCategoryTo() { + return regionCategoryTo; + } - public List getLineDetail() { - return lineDetail; + public void setRegionCategoryTo(String regionCategoryTo) { + this.regionCategoryTo = regionCategoryTo; + } + } +} - public void setLineDetail(List lineDetail) { - this.lineDetail = lineDetail; - } - public String getFlagUnicodeFrom() { - return flagUnicodeFrom; - } - public void setFlagUnicodeFrom(String flagUnicodeFrom) { - this.flagUnicodeFrom = flagUnicodeFrom; - } - public String getFlagUnicodeTo() { - return flagUnicodeTo; - } - public void setFlagUnicodeTo(String flagUnicodeTo) { - this.flagUnicodeTo = flagUnicodeTo; - } - public String getRegionCategoryFrom() { - return regionCategoryFrom; - } - public void setRegionCategoryFrom(String regionCategoryFrom) { - this.regionCategoryFrom = regionCategoryFrom; - } - public String getRegionCategoryTo() { - return regionCategoryTo; - } - public void setRegionCategoryTo(String regionCategoryTo) { - this.regionCategoryTo = regionCategoryTo; - } - } -} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLRequest.java index b668476f..fc9fdb7f 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLRequest.java @@ -1,46 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribePathXSSLRequest extends Request { - /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** SSL证书的Id,不传分页获取证书列表 */ + + + + /** + * SSL证书的Id,不传分页获取证书列表 + */ @UCloudParam("SSLId") private String sslId; - - /** 不为空则按证书名称、证书域名模糊搜索 分页返回结果 */ + + + + /** + * 不为空则按证书名称、证书域名模糊搜索 分页返回结果 + */ @UCloudParam("SearchValue") private String searchValue; - - /** 最大返回条数,默认100,最大400 */ + + + + /** + * 最大返回条数,默认100,最大400 + */ @UCloudParam("Limit") private Integer limit; - - /** 偏移值 默认为0 */ + + + + /** + * 偏移值 默认为0 + */ @UCloudParam("Offset") private Integer offset; - + + public String getProjectId() { return projectId; } @@ -48,7 +74,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSSLId() { return sslId; } @@ -56,7 +82,7 @@ public String getSSLId() { public void setSSLId(String sslId) { this.sslId = sslId; } - + public String getSearchValue() { return searchValue; } @@ -64,7 +90,7 @@ public String getSearchValue() { public void setSearchValue(String searchValue) { this.searchValue = searchValue; } - + public Integer getLimit() { return limit; } @@ -72,7 +98,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -80,4 +106,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLResponse.java index b784416e..b099d017 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribePathXSSLResponse extends Response { - /** SSL证书详细信息,具体结构见 PathXSSLSet */ + + + /** + * SSL证书详细信息,具体结构见 PathXSSLSet + */ @SerializedName("DataSet") private List dataSet; - - /** 符合条件的证书总数 */ + + + + /** + * 符合条件的证书总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,142 +57,196 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class PathXSSLSet extends Response { + + + /** + * SSL证书的Id + */ + @SerializedName("SSLId") + private String sslId; + + + + /** + * SSL证书的名字 + */ + @SerializedName("SSLName") + private String sslName; + + + + /** + * 证书域名 + */ + @SerializedName("SubjectName") + private String subjectName; + + + + /** + * 证书过期时间 时间戳 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 证书来源,0:用户上传 1: 免费颁发 + */ + @SerializedName("SourceType") + private Integer sourceType; + + + + /** + * SSL证书(用户证书、私钥、ca证书合并)内容md5值 + */ + @SerializedName("SSLMD5") + private String sslmd5; + + + + /** + * SSL证书的创建时间 时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * SSL证书绑定的对象 + */ + @SerializedName("SSLBindedTargetSet") + private List sslBindedTargetSet; + + + + /** + * SSL证书内容 + */ + @SerializedName("SSLContent") + private String sslContent; + + + public String getSSLId() { + return sslId; + } - public static class PathXSSLSet extends Response { - - /** SSL证书的Id */ - @SerializedName("SSLId") - private String sslId; - - /** SSL证书的名字 */ - @SerializedName("SSLName") - private String sslName; - - /** 证书域名 */ - @SerializedName("SubjectName") - private String subjectName; - - /** 证书过期时间 时间戳 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 证书来源,0:用户上传 1: 免费颁发 */ - @SerializedName("SourceType") - private Integer sourceType; - - /** SSL证书(用户证书、私钥、ca证书合并)内容md5值 */ - @SerializedName("SSLMD5") - private String sslmd5; - - /** SSL证书的创建时间 时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** SSL证书绑定的对象 */ - @SerializedName("SSLBindedTargetSet") - private List sslBindedTargetSet; - - /** SSL证书内容 */ - @SerializedName("SSLContent") - private String sslContent; - - public String getSSLId() { - return sslId; - } - - public void setSSLId(String sslId) { - this.sslId = sslId; - } - - public String getSSLName() { - return sslName; - } - - public void setSSLName(String sslName) { - this.sslName = sslName; - } - - public String getSubjectName() { - return subjectName; - } - - public void setSubjectName(String subjectName) { - this.subjectName = subjectName; - } + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public String getSSLName() { + return sslName; + } - public Integer getExpireTime() { - return expireTime; - } + public void setSSLName(String sslName) { + this.sslName = sslName; + } + + public String getSubjectName() { + return subjectName; + } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } + public void setSubjectName(String subjectName) { + this.subjectName = subjectName; + } + + public Integer getExpireTime() { + return expireTime; + } - public Integer getSourceType() { - return sourceType; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getSourceType() { + return sourceType; + } - public void setSourceType(Integer sourceType) { - this.sourceType = sourceType; - } + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public String getSSLMD5() { + return sslmd5; + } - public String getSSLMD5() { - return sslmd5; - } + public void setSSLMD5(String sslmd5) { + this.sslmd5 = sslmd5; + } + + public Integer getCreateTime() { + return createTime; + } - public void setSSLMD5(String sslmd5) { - this.sslmd5 = sslmd5; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public List getSSLBindedTargetSet() { + return sslBindedTargetSet; + } - public Integer getCreateTime() { - return createTime; - } + public void setSSLBindedTargetSet(List sslBindedTargetSet) { + this.sslBindedTargetSet = sslBindedTargetSet; + } + + public String getSSLContent() { + return sslContent; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setSSLContent(String sslContent) { + this.sslContent = sslContent; + } + + } + public static class SSLBindedTargetSet extends Response { + + + /** + * SSL证书绑定到的实例ID + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * SSL证书绑定到的实例名称 + */ + @SerializedName("ResourceName") + private String resourceName; + + + public String getResourceId() { + return resourceId; + } - public List getSSLBindedTargetSet() { - return sslBindedTargetSet; - } + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } - public void setSSLBindedTargetSet(List sslBindedTargetSet) { - this.sslBindedTargetSet = sslBindedTargetSet; + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + } +} - public String getSSLContent() { - return sslContent; - } - public void setSSLContent(String sslContent) { - this.sslContent = sslContent; - } - } - public static class SSLBindedTargetSet extends Response { - /** SSL证书绑定到的实例ID */ - @SerializedName("ResourceId") - private String resourceId; - /** SSL证书绑定到的实例名称 */ - @SerializedName("ResourceName") - private String resourceName; - public String getResourceId() { - return resourceId; - } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - public String getResourceName() { - return resourceName; - } - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } - } -} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceRequest.java index 600b67db..c1f1ad19 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceRequest.java @@ -1,42 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUGAInstanceRequest extends Request { - /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 加速配置实例ID,如果传了实例ID 则返回匹配实例ID的记录;如果没传则返回 ProjectId 下全部实例且符合分页要求 */ + + + + /** + * 加速配置实例ID,如果传了实例ID 则返回匹配实例ID的记录;如果没传则返回 ProjectId 下全部实例且符合分页要求 + */ @UCloudParam("UGAId") private String ugaId; - - /** 返回的最大条数,默认为100,最大值400 */ + + + + /** + * 返回的最大条数,默认为100,最大值400 + */ @UCloudParam("Limit") private Integer limit; - - /** 偏移量,默认为0 */ + + + + /** + * 偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - + + public String getProjectId() { return projectId; } @@ -44,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUGAId() { return ugaId; } @@ -52,7 +74,7 @@ public String getUGAId() { public void setUGAId(String ugaId) { this.ugaId = ugaId; } - + public Integer getLimit() { return limit; } @@ -60,7 +82,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -68,4 +90,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceResponse.java index 416a30f0..fb95c24a 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUGAInstanceResponse extends Response { - /** 全球加速实例信息列表 */ + + + /** + * 全球加速实例信息列表 + */ @SerializedName("UGAList") private List ugaList; - - /** 符合条件的总数 */ + + + + /** + * 符合条件的总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getUGAList() { return ugaList; } @@ -36,7 +49,7 @@ public List getUGAList() { public void setUGAList(List ugaList) { this.ugaList = ugaList; } - + public Integer getTotalCount() { return totalCount; } @@ -44,394 +57,528 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - - public static class OutPublicIpInfo extends Response { - - /** 线路回源节点EIP */ - @SerializedName("IP") - private String ip; - - /** 线路回源节点机房代号 */ - @SerializedName("Area") - private String area; - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } - - public String getArea() { - return area; - } - - public void setArea(String area) { - this.area = area; - } + + public static class OutPublicIpInfo extends Response { + + + /** + * 线路回源节点EIP + */ + @SerializedName("IP") + private String ip; + + + + /** + * 线路回源节点机房代号 + */ + @SerializedName("Area") + private String area; + + + public String getIP() { + return ip; } - public static class UGAAInfo extends Response { - - /** 加速配置实例ID */ - @SerializedName("UGAId") - private String ugaId; - - /** 加速域名,请在加速区域配置您的业务域名的CName记录值为加速域名 */ - @SerializedName("CName") - private String cName; - - /** 加速配置名称 */ - @SerializedName("UGAName") - private String ugaName; - - /** 源站IP列表,多个值由半角英文逗号相隔 */ - @SerializedName("IPList") - private List ipList; - - /** 源站域名 */ - @SerializedName("Domain") - private String domain; - - /** 源站所在区域,加速实例在绑定线路后会自动设置该值。console页面上通过该值过滤加速实例可以绑定的upath实例。注意:缺少该值会导致在console上无法修改线路 */ - @SerializedName("Location") - private String location; - - /** 绑定的加速线路 */ - @SerializedName("UPathSet") - private List uPathSet; - - /** 端口配置信息(不再维护,建议使用ForwarderSet) */ - @SerializedName("TaskSet") - private List taskSet; - - /** UGA 4层转发器配置,记录接入或回源端口,接入或回源协议信息 */ - @SerializedName("L4ForwarderSet") - private List l4ForwarderSet; - - /** UGA 7层转发器配置,记录接入或回源端口,接入或回源协议信息 如绑定证书会返回证书ID */ - @SerializedName("L7ForwarderSet") - private List l7ForwarderSet; - - /** 线路出口IP地址 */ - @SerializedName("OutPublicIpList") - private List outPublicIpList; - - public String getUGAId() { - return ugaId; - } - - public void setUGAId(String ugaId) { - this.ugaId = ugaId; - } - - public String getCName() { - return cName; - } - - public void setCName(String cName) { - this.cName = cName; - } - - public String getUGAName() { - return ugaName; - } - - public void setUGAName(String ugaName) { - this.ugaName = ugaName; - } - - public List getIPList() { - return ipList; - } - - public void setIPList(List ipList) { - this.ipList = ipList; - } - - public String getDomain() { - return domain; - } - - public void setDomain(String domain) { - this.domain = domain; - } - - public String getLocation() { - return location; - } - - public void setLocation(String location) { - this.location = location; - } - - public List getUPathSet() { - return uPathSet; - } - - public void setUPathSet(List uPathSet) { - this.uPathSet = uPathSet; - } - - public List getTaskSet() { - return taskSet; - } - - public void setTaskSet(List taskSet) { - this.taskSet = taskSet; - } - - public List getL4ForwarderSet() { - return l4ForwarderSet; - } - - public void setL4ForwarderSet(List l4ForwarderSet) { - this.l4ForwarderSet = l4ForwarderSet; - } - - public List getL7ForwarderSet() { - return l7ForwarderSet; - } - - public void setL7ForwarderSet(List l7ForwarderSet) { - this.l7ForwarderSet = l7ForwarderSet; - } - - public List getOutPublicIpList() { - return outPublicIpList; - } - - public void setOutPublicIpList(List outPublicIpList) { - this.outPublicIpList = outPublicIpList; - } + public void setIP(String ip) { + this.ip = ip; } - - public static class UGAATask extends Response { - - /** 接入端口 */ - @SerializedName("Port") - private Integer port; - - /** 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 */ - @SerializedName("Protocol") - private String protocol; - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol; - } + + public String getArea() { + return area; } - public static class UGAL4Forwarder extends Response { - - /** 接入端口 */ - @SerializedName("Port") - private Integer port; - - /** 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 */ - @SerializedName("Protocol") - private String protocol; - - /** RSPort,源站监听端口 */ - @SerializedName("RSPort") - private Integer rsPort; - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol; - } - - public Integer getRSPort() { - return rsPort; - } - - public void setRSPort(Integer rsPort) { - this.rsPort = rsPort; - } + public void setArea(String area) { + this.area = area; + } + + } + public static class UGAAInfo extends Response { + + + /** + * 加速配置实例ID + */ + @SerializedName("UGAId") + private String ugaId; + + + + /** + * 加速域名,请在加速区域配置您的业务域名的CName记录值为加速域名 + */ + @SerializedName("CName") + private String cName; + + + + /** + * 加速配置名称 + */ + @SerializedName("UGAName") + private String ugaName; + + + + /** + * 源站IP列表,多个值由半角英文逗号相隔 + */ + @SerializedName("IPList") + private List ipList; + + + + /** + * 源站域名 + */ + @SerializedName("Domain") + private String domain; + + + + /** + * 源站所在区域,加速实例在绑定线路后会自动设置该值。console页面上通过该值过滤加速实例可以绑定的upath实例。注意:缺少该值会导致在console上无法修改线路 + */ + @SerializedName("Location") + private String location; + + + + /** + * 绑定的加速线路 + */ + @SerializedName("UPathSet") + private List uPathSet; + + + + /** + * 端口配置信息(不再维护,建议使用ForwarderSet) + */ + @SerializedName("TaskSet") + private List taskSet; + + + + /** + * UGA 4层转发器配置,记录接入或回源端口,接入或回源协议信息 + */ + @SerializedName("L4ForwarderSet") + private List l4ForwarderSet; + + + + /** + * UGA 7层转发器配置,记录接入或回源端口,接入或回源协议信息 如绑定证书会返回证书ID + */ + @SerializedName("L7ForwarderSet") + private List l7ForwarderSet; + + + + /** + * 线路出口IP地址 + */ + @SerializedName("OutPublicIpList") + private List outPublicIpList; + + + public String getUGAId() { + return ugaId; } - public static class UGAL7Forwarder extends Response { - - /** 接入端口 */ - @SerializedName("Port") - private Integer port; - - /** 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 */ - @SerializedName("Protocol") - private String protocol; - - /** RSPort,源站监听端口 */ - @SerializedName("RSPort") - private Integer rsPort; + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } + + public String getCName() { + return cName; + } - /** 证书ID */ - @SerializedName("SSLId") - private String sslId; + public void setCName(String cName) { + this.cName = cName; + } + + public String getUGAName() { + return ugaName; + } - /** 证书名称 */ - @SerializedName("SSLName") - private String sslName; + public void setUGAName(String ugaName) { + this.ugaName = ugaName; + } + + public List getIPList() { + return ipList; + } - public Integer getPort() { - return port; - } + public void setIPList(List ipList) { + this.ipList = ipList; + } + + public String getDomain() { + return domain; + } - public void setPort(Integer port) { - this.port = port; - } + public void setDomain(String domain) { + this.domain = domain; + } + + public String getLocation() { + return location; + } - public String getProtocol() { - return protocol; - } + public void setLocation(String location) { + this.location = location; + } + + public List getUPathSet() { + return uPathSet; + } - public void setProtocol(String protocol) { - this.protocol = protocol; - } + public void setUPathSet(List uPathSet) { + this.uPathSet = uPathSet; + } + + public List getTaskSet() { + return taskSet; + } - public Integer getRSPort() { - return rsPort; - } + public void setTaskSet(List taskSet) { + this.taskSet = taskSet; + } + + public List getL4ForwarderSet() { + return l4ForwarderSet; + } - public void setRSPort(Integer rsPort) { - this.rsPort = rsPort; - } + public void setL4ForwarderSet(List l4ForwarderSet) { + this.l4ForwarderSet = l4ForwarderSet; + } + + public List getL7ForwarderSet() { + return l7ForwarderSet; + } - public String getSSLId() { - return sslId; - } + public void setL7ForwarderSet(List l7ForwarderSet) { + this.l7ForwarderSet = l7ForwarderSet; + } + + public List getOutPublicIpList() { + return outPublicIpList; + } - public void setSSLId(String sslId) { - this.sslId = sslId; - } + public void setOutPublicIpList(List outPublicIpList) { + this.outPublicIpList = outPublicIpList; + } + + } + public static class UGAATask extends Response { + + + /** + * 接入端口 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 + */ + @SerializedName("Protocol") + private String protocol; + + + public Integer getPort() { + return port; + } - public String getSSLName() { - return sslName; - } + public void setPort(Integer port) { + this.port = port; + } + + public String getProtocol() { + return protocol; + } - public void setSSLName(String sslName) { - this.sslName = sslName; - } + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + } + public static class UGAL4Forwarder extends Response { + + + /** + * 接入端口 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 + */ + @SerializedName("Protocol") + private String protocol; + + + + /** + * RSPort,源站监听端口 + */ + @SerializedName("RSPort") + private Integer rsPort; + + + public Integer getPort() { + return port; } - public static class UPathSet extends Response { + public void setPort(Integer port) { + this.port = port; + } + + public String getProtocol() { + return protocol; + } - /** UPath名字 */ - @SerializedName("UPathName") - private String uPathName; + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public Integer getRSPort() { + return rsPort; + } - /** UPath 实例ID */ - @SerializedName("UPathId") - private String uPathId; + public void setRSPort(Integer rsPort) { + this.rsPort = rsPort; + } + + } + public static class UGAL7Forwarder extends Response { + + + /** + * 接入端口 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 + */ + @SerializedName("Protocol") + private String protocol; + + + + /** + * RSPort,源站监听端口 + */ + @SerializedName("RSPort") + private Integer rsPort; + + + + /** + * 证书ID + */ + @SerializedName("SSLId") + private String sslId; + + + + /** + * 证书名称 + */ + @SerializedName("SSLName") + private String sslName; + + + public Integer getPort() { + return port; + } - /** 带宽 Mbps, 1~800Mbps */ - @SerializedName("Bandwidth") - private Integer bandwidth; + public void setPort(Integer port) { + this.port = port; + } + + public String getProtocol() { + return protocol; + } - /** 线路ID */ - @SerializedName("LineId") - private String lineId; + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public Integer getRSPort() { + return rsPort; + } - /** 线路起点中文名字,加速区域 */ - @SerializedName("LineFromName") - private String lineFromName; + public void setRSPort(Integer rsPort) { + this.rsPort = rsPort; + } + + public String getSSLId() { + return sslId; + } - /** 线路对端中文名字,源站区域 */ - @SerializedName("LineToName") - private String lineToName; + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public String getSSLName() { + return sslName; + } - /** 线路起点英文代号,加速区域 */ - @SerializedName("LineFrom") - private String lineFrom; + public void setSSLName(String sslName) { + this.sslName = sslName; + } + + } + public static class UPathSet extends Response { + + + /** + * UPath名字 + */ + @SerializedName("UPathName") + private String uPathName; + + + + /** + * UPath 实例ID + */ + @SerializedName("UPathId") + private String uPathId; + + + + /** + * 带宽 Mbps, 1~800Mbps + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * 线路ID + */ + @SerializedName("LineId") + private String lineId; + + + + /** + * 线路起点中文名字,加速区域 + */ + @SerializedName("LineFromName") + private String lineFromName; + + + + /** + * 线路对端中文名字,源站区域 + */ + @SerializedName("LineToName") + private String lineToName; + + + + /** + * 线路起点英文代号,加速区域 + */ + @SerializedName("LineFrom") + private String lineFrom; + + + + /** + * 线路对端英文代号,源站区域 + */ + @SerializedName("LineTo") + private String lineTo; + + + public String getUPathName() { + return uPathName; + } - /** 线路对端英文代号,源站区域 */ - @SerializedName("LineTo") - private String lineTo; + public void setUPathName(String uPathName) { + this.uPathName = uPathName; + } + + public String getUPathId() { + return uPathId; + } - public String getUPathName() { - return uPathName; - } + public void setUPathId(String uPathId) { + this.uPathId = uPathId; + } + + public Integer getBandwidth() { + return bandwidth; + } - public void setUPathName(String uPathName) { - this.uPathName = uPathName; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getLineId() { + return lineId; + } - public String getUPathId() { - return uPathId; - } + public void setLineId(String lineId) { + this.lineId = lineId; + } + + public String getLineFromName() { + return lineFromName; + } - public void setUPathId(String uPathId) { - this.uPathId = uPathId; - } + public void setLineFromName(String lineFromName) { + this.lineFromName = lineFromName; + } + + public String getLineToName() { + return lineToName; + } - public Integer getBandwidth() { - return bandwidth; - } + public void setLineToName(String lineToName) { + this.lineToName = lineToName; + } + + public String getLineFrom() { + return lineFrom; + } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } + public void setLineFrom(String lineFrom) { + this.lineFrom = lineFrom; + } + + public String getLineTo() { + return lineTo; + } - public String getLineId() { - return lineId; + public void setLineTo(String lineTo) { + this.lineTo = lineTo; + } + } +} - public void setLineId(String lineId) { - this.lineId = lineId; - } - public String getLineFromName() { - return lineFromName; - } - public void setLineFromName(String lineFromName) { - this.lineFromName = lineFromName; - } - public String getLineToName() { - return lineToName; - } - public void setLineToName(String lineToName) { - this.lineToName = lineToName; - } - public String getLineFrom() { - return lineFrom; - } - public void setLineFrom(String lineFrom) { - this.lineFrom = lineFrom; - } - public String getLineTo() { - return lineTo; - } - public void setLineTo(String lineTo) { - this.lineTo = lineTo; - } - } -} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathRequest.java index 3c46336a..18adc325 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathRequest.java @@ -1,34 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUPathRequest extends Request { - /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 如果不填参数 返回 ProjectId 下所有的线路资源,填此参数则返回upath实例ID匹配的线路 */ + + + + /** + * 如果不填参数 返回 ProjectId 下所有的线路资源,填此参数则返回upath实例ID匹配的线路 + */ @UCloudParam("UPathId") private String uPathId; - + + public String getProjectId() { return projectId; } @@ -36,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPathId() { return uPathId; } @@ -44,4 +58,14 @@ public String getUPathId() { public void setUPathId(String uPathId) { this.uPathId = uPathId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathResponse.java index 46f88dae..b3d54312 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPathResponse extends Response { - /** 线路信息数组 */ + + + /** + * 线路信息数组 + */ @SerializedName("UPathSet") private List uPathSet; - + + public List getUPathSet() { return uPathSet; } @@ -32,217 +41,295 @@ public List getUPathSet() { public void setUPathSet(List uPathSet) { this.uPathSet = uPathSet; } - - public static class OutPublicIpInfo extends Response { - - /** 线路回源节点EIP */ - @SerializedName("IP") - private String ip; - - /** 线路回源节点机房代号 */ - @SerializedName("Area") - private String area; - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } - - public String getArea() { - return area; - } - - public void setArea(String area) { - this.area = area; - } + + public static class OutPublicIpInfo extends Response { + + + /** + * 线路回源节点EIP + */ + @SerializedName("IP") + private String ip; + + + + /** + * 线路回源节点机房代号 + */ + @SerializedName("Area") + private String area; + + + public String getIP() { + return ip; } - public static class PathXUGAInfo extends Response { - - /** 加速配置ID */ - @SerializedName("UGAId") - private String ugaId; - - /** 源站IP列表,多个值由半角英文逗号相隔 */ - @SerializedName("IPList") - private List ipList; - - /** 源站域名 */ - @SerializedName("Domain") - private String domain; - - public String getUGAId() { - return ugaId; - } - - public void setUGAId(String ugaId) { - this.ugaId = ugaId; - } - - public List getIPList() { - return ipList; - } - - public void setIPList(List ipList) { - this.ipList = ipList; - } - - public String getDomain() { - return domain; - } - - public void setDomain(String domain) { - this.domain = domain; - } + public void setIP(String ip) { + this.ip = ip; + } + + public String getArea() { + return area; } - public static class UPathInfo extends Response { - - /** 是否为后付费实例 */ - @SerializedName("PostPaid") - private Boolean postPaid; - - /** 计费模式,默认为Month 按月收费,可选范围['Month','Year','Dynamic'] */ - @SerializedName("ChargeType") - private String chargeType; - - /** UPath实例名字 */ - @SerializedName("Name") - private String name; - - /** UPath加速线路实例ID */ - @SerializedName("UPathId") - private String uPathId; - - /** 带宽,单位Mbps */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - /** 选择的线路 */ - @SerializedName("LineId") - private String lineId; - - /** 与该UPath绑定的UGA列表 */ - @SerializedName("UGAList") - private List ugaList; - - /** UPath创建的时间,10位时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** UPath的过期时间,10位时间戳 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 线路入口名称 */ - @SerializedName("LineFromName") - private String lineFromName; - - /** 线路出口名称 */ - @SerializedName("LineToName") - private String lineToName; - - /** 线路出口IP数组 */ - @SerializedName("OutPublicIpList") - private List outPublicIpList; + public void setArea(String area) { + this.area = area; + } + + } + public static class PathXUGAInfo extends Response { + + + /** + * 加速配置ID + */ + @SerializedName("UGAId") + private String ugaId; + + + + /** + * 源站IP列表,多个值由半角英文逗号相隔 + */ + @SerializedName("IPList") + private List ipList; + + + + /** + * 源站域名 + */ + @SerializedName("Domain") + private String domain; + + + public String getUGAId() { + return ugaId; + } - public Boolean getPostPaid() { - return postPaid; - } + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } + + public List getIPList() { + return ipList; + } - public void setPostPaid(Boolean postPaid) { - this.postPaid = postPaid; - } + public void setIPList(List ipList) { + this.ipList = ipList; + } + + public String getDomain() { + return domain; + } - public String getChargeType() { - return chargeType; - } + public void setDomain(String domain) { + this.domain = domain; + } + + } + public static class UPathInfo extends Response { + + + /** + * 是否为后付费实例 + */ + @SerializedName("PostPaid") + private Boolean postPaid; + + + + /** + * 计费模式,默认为Month 按月收费,可选范围['Month','Year','Dynamic'] + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * UPath实例名字 + */ + @SerializedName("Name") + private String name; + + + + /** + * UPath加速线路实例ID + */ + @SerializedName("UPathId") + private String uPathId; + + + + /** + * 带宽,单位Mbps + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * 选择的线路 + */ + @SerializedName("LineId") + private String lineId; + + + + /** + * 与该UPath绑定的UGA列表 + */ + @SerializedName("UGAList") + private List ugaList; + + + + /** + * UPath创建的时间,10位时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * UPath的过期时间,10位时间戳 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 线路入口名称 + */ + @SerializedName("LineFromName") + private String lineFromName; + + + + /** + * 线路出口名称 + */ + @SerializedName("LineToName") + private String lineToName; + + + + /** + * 线路出口IP数组 + */ + @SerializedName("OutPublicIpList") + private List outPublicIpList; + + + public Boolean getPostPaid() { + return postPaid; + } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } + public void setPostPaid(Boolean postPaid) { + this.postPaid = postPaid; + } + + public String getChargeType() { + return chargeType; + } - public String getName() { - return name; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getName() { + return name; + } - public void setName(String name) { - this.name = name; - } + public void setName(String name) { + this.name = name; + } + + public String getUPathId() { + return uPathId; + } - public String getUPathId() { - return uPathId; - } + public void setUPathId(String uPathId) { + this.uPathId = uPathId; + } + + public Integer getBandwidth() { + return bandwidth; + } - public void setUPathId(String uPathId) { - this.uPathId = uPathId; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getLineId() { + return lineId; + } - public Integer getBandwidth() { - return bandwidth; - } + public void setLineId(String lineId) { + this.lineId = lineId; + } + + public List getUGAList() { + return ugaList; + } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } + public void setUGAList(List ugaList) { + this.ugaList = ugaList; + } + + public Integer getCreateTime() { + return createTime; + } - public String getLineId() { - return lineId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public void setLineId(String lineId) { - this.lineId = lineId; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getLineFromName() { + return lineFromName; + } - public List getUGAList() { - return ugaList; - } + public void setLineFromName(String lineFromName) { + this.lineFromName = lineFromName; + } + + public String getLineToName() { + return lineToName; + } - public void setUGAList(List ugaList) { - this.ugaList = ugaList; - } + public void setLineToName(String lineToName) { + this.lineToName = lineToName; + } + + public List getOutPublicIpList() { + return outPublicIpList; + } - public Integer getCreateTime() { - return createTime; + public void setOutPublicIpList(List outPublicIpList) { + this.outPublicIpList = outPublicIpList; + } + } +} - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getExpireTime() { - return expireTime; - } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } - public String getLineFromName() { - return lineFromName; - } - public void setLineFromName(String lineFromName) { - this.lineFromName = lineFromName; - } - public String getLineToName() { - return lineToName; - } - public void setLineToName(String lineToName) { - this.lineToName = lineToName; - } - public List getOutPublicIpList() { - return outPublicIpList; - } - public void setOutPublicIpList(List outPublicIpList) { - this.outPublicIpList = outPublicIpList; - } - } -} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateRequest.java index 159c7bff..cc22d5dc 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateRequest.java @@ -1,35 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUPathTemplateRequest extends Request { - /** 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + + + /** + * 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 加速线路实例ID,格式 upath-xxxx */ + + + + /** + * 加速线路实例ID,格式 upath-xxxx + */ @NotEmpty @UCloudParam("UPathId") private String uPathId; - + + public String getProjectId() { return projectId; } @@ -37,7 +51,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPathId() { return uPathId; } @@ -45,4 +59,14 @@ public String getUPathId() { public void setUPathId(String uPathId) { this.uPathId = uPathId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateResponse.java index 16866218..805bdba0 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPathTemplateResponse extends Response { - /** 监控模板详情 */ + + + /** + * 监控模板详情 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,118 +41,161 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class AlarmRuler extends Response { + + + /** + * 收敛策略,可选范围 ['Exponential','Continuous','Once'],分别对应指数递增、连续告警、单次告警 + */ + @SerializedName("AlarmStrategy") + private String alarmStrategy; + + + + /** + * 告警探测周期,单位秒 + */ + @SerializedName("AlarmFrequency") + private Integer alarmFrequency; + + + + /** + * 比较策略,可选 ['GE','LE'] 分别代表不小于和不大于 + */ + @SerializedName("Compare") + private String compare; + + + + /** + * 联系组ID + */ + @SerializedName("ContactGroupId") + private Integer contactGroupId; + + + + /** + * 告警指标名称, 所有n的个数必须一致。目前仅允许以下四项:UpathNetworkOut:出向带宽,UpathNetworkIn:入向带宽,UpathNetworkOutUsage:出向带宽使用率,UpathNetworkInUsage:入向带宽使用率 + */ + @SerializedName("MetricName") + private String metricName; + + + + /** + * 告警阈值,带宽使用率的阈值范围是[50,100]的正整数,带宽告警阈值为1000000的倍数, 如大于2Mbps则告警 阈值应该传 2000000 + */ + @SerializedName("Threshold") + private Integer threshold; + + + + /** + * 告警触发周期(次数) + */ + @SerializedName("TriggerCount") + private Integer triggerCount; + + + + /** + * 告警模板策略ID + */ + @SerializedName("AlarmTemplateRuleId") + private Integer alarmTemplateRuleId; + + + + /** + * 资源类型 + */ + @SerializedName("ResourceType") + private String resourceType; + + + public String getAlarmStrategy() { + return alarmStrategy; + } - public static class AlarmRuler extends Response { - - /** 收敛策略,可选范围 ['Exponential','Continuous','Once'],分别对应指数递增、连续告警、单次告警 */ - @SerializedName("AlarmStrategy") - private String alarmStrategy; - - /** 告警探测周期,单位秒 */ - @SerializedName("AlarmFrequency") - private Integer alarmFrequency; - - /** 比较策略,可选 ['GE','LE'] 分别代表不小于和不大于 */ - @SerializedName("Compare") - private String compare; - - /** 联系组ID */ - @SerializedName("ContactGroupId") - private Integer contactGroupId; - - /** - * 告警指标名称, - * 所有n的个数必须一致。目前仅允许以下四项:UpathNetworkOut:出向带宽,UpathNetworkIn:入向带宽,UpathNetworkOutUsage:出向带宽使用率,UpathNetworkInUsage:入向带宽使用率 - */ - @SerializedName("MetricName") - private String metricName; - - /** 告警阈值,带宽使用率的阈值范围是[50,100]的正整数,带宽告警阈值为1000000的倍数, 如大于2Mbps则告警 阈值应该传 2000000 */ - @SerializedName("Threshold") - private Integer threshold; - - /** 告警触发周期(次数) */ - @SerializedName("TriggerCount") - private Integer triggerCount; - - /** 告警模板策略ID */ - @SerializedName("AlarmTemplateRuleId") - private Integer alarmTemplateRuleId; - - /** 资源类型 */ - @SerializedName("ResourceType") - private String resourceType; - - public String getAlarmStrategy() { - return alarmStrategy; - } + public void setAlarmStrategy(String alarmStrategy) { + this.alarmStrategy = alarmStrategy; + } + + public Integer getAlarmFrequency() { + return alarmFrequency; + } - public void setAlarmStrategy(String alarmStrategy) { - this.alarmStrategy = alarmStrategy; - } + public void setAlarmFrequency(Integer alarmFrequency) { + this.alarmFrequency = alarmFrequency; + } + + public String getCompare() { + return compare; + } - public Integer getAlarmFrequency() { - return alarmFrequency; - } + public void setCompare(String compare) { + this.compare = compare; + } + + public Integer getContactGroupId() { + return contactGroupId; + } - public void setAlarmFrequency(Integer alarmFrequency) { - this.alarmFrequency = alarmFrequency; - } + public void setContactGroupId(Integer contactGroupId) { + this.contactGroupId = contactGroupId; + } + + public String getMetricName() { + return metricName; + } - public String getCompare() { - return compare; - } + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public Integer getThreshold() { + return threshold; + } - public void setCompare(String compare) { - this.compare = compare; - } + public void setThreshold(Integer threshold) { + this.threshold = threshold; + } + + public Integer getTriggerCount() { + return triggerCount; + } - public Integer getContactGroupId() { - return contactGroupId; - } + public void setTriggerCount(Integer triggerCount) { + this.triggerCount = triggerCount; + } + + public Integer getAlarmTemplateRuleId() { + return alarmTemplateRuleId; + } - public void setContactGroupId(Integer contactGroupId) { - this.contactGroupId = contactGroupId; - } + public void setAlarmTemplateRuleId(Integer alarmTemplateRuleId) { + this.alarmTemplateRuleId = alarmTemplateRuleId; + } + + public String getResourceType() { + return resourceType; + } - public String getMetricName() { - return metricName; + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + } +} - public void setMetricName(String metricName) { - this.metricName = metricName; - } - public Integer getThreshold() { - return threshold; - } - public void setThreshold(Integer threshold) { - this.threshold = threshold; - } - public Integer getTriggerCount() { - return triggerCount; - } - public void setTriggerCount(Integer triggerCount) { - this.triggerCount = triggerCount; - } - public Integer getAlarmTemplateRuleId() { - return alarmTemplateRuleId; - } - public void setAlarmTemplateRuleId(Integer alarmTemplateRuleId) { - this.alarmTemplateRuleId = alarmTemplateRuleId; - } - public String getResourceType() { - return resourceType; - } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - } -} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceRequest.java index b20ce970..5ac41b22 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceRequest.java @@ -1,42 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetGlobalSSHPriceRequest extends Request { - /** 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 购买周期,如果ChargeType为Month,Quantity默认为0;其他情况必须为大于0的整数 */ + + + + /** + * 购买周期,如果ChargeType为Month,Quantity默认为0;其他情况必须为大于0的整数 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 计费类型:Dynamic,Month,Year */ + + + + /** + * 计费类型:Dynamic,Month,Year + */ @UCloudParam("ChargeType") private String chargeType; - - /** 版本类型。枚举值,Enterprise:企业版;Basic:基础版。可不填,默认为Basic。 */ + + + + /** + * 版本类型。枚举值,Enterprise:企业版;Basic:基础版。可不填,默认为Basic。 + */ @UCloudParam("InstanceType") private String instanceType; - + + public String getProjectId() { return projectId; } @@ -44,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getQuantity() { return quantity; } @@ -52,7 +74,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getChargeType() { return chargeType; } @@ -60,7 +82,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getInstanceType() { return instanceType; } @@ -68,4 +90,14 @@ public String getInstanceType() { public void setInstanceType(String instanceType) { this.instanceType = instanceType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceResponse.java index 9285b77a..6a92e48e 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetGlobalSSHPriceResponse extends Response { - /** 价格,返回单位为元 */ + + + /** + * 价格,返回单位为元 + */ @SerializedName("Price") private Double price; - + + public Double getPrice() { return price; } @@ -31,4 +41,14 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceRequest.java index 0617387e..7a5cca87 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceRequest.java @@ -1,47 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetGlobalSSHUpdatePriceRequest extends Request { - /** 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 升级后的实例类型。枚举值,Enterprise:企业版;Basic:基础版。 */ + + + + /** + * 升级后的实例类型。枚举值,Enterprise:企业版;Basic:基础版。 + */ @NotEmpty @UCloudParam("InstanceType") private String instanceType; - - /** 实例ID,唯一资源标识。从免费版升级到付费版可不填,其他情况必填。 */ + + + + /** + * 实例ID,唯一资源标识。从免费版升级到付费版可不填,其他情况必填。 + */ @UCloudParam("InstanceId") private String instanceId; - - /** 购买周期,如果ChargeType为Month,Quantity可以不填默认为0;其他情况必须为正整数。 */ + + + + /** + * 购买周期,如果ChargeType为Month,Quantity可以不填默认为0;其他情况必须为正整数。 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 计费类型:Dynamic,Month,Year。从免费版升级到付费版必须传,其他情况不需要传 */ + + + + /** + * 计费类型:Dynamic,Month,Year。从免费版升级到付费版必须传,其他情况不需要传 + */ @UCloudParam("ChargeType") private String chargeType; - + + public String getProjectId() { return projectId; } @@ -49,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceType() { return instanceType; } @@ -57,7 +83,7 @@ public String getInstanceType() { public void setInstanceType(String instanceType) { this.instanceType = instanceType; } - + public String getInstanceId() { return instanceId; } @@ -65,7 +91,7 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } - + public Integer getQuantity() { return quantity; } @@ -73,7 +99,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getChargeType() { return chargeType; } @@ -81,4 +107,14 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceResponse.java index cf37460c..da0e0c8b 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetGlobalSSHUpdatePriceResponse extends Response { - /** 价格,返回单位为元。正数表示付费升级,负数表示降级退费。 */ + + + /** + * 价格,返回单位为元。正数表示付费升级,负数表示降级退费。 + */ @SerializedName("Price") private Double price; - + + public Double getPrice() { return price; } @@ -31,4 +41,14 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricRequest.java index de1ca12a..b0092d33 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricRequest.java @@ -1,63 +1,94 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetPathXMetricRequest extends Request { - /** 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + + + /** + * 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** ResourceId,如upath ID 和 uga ID */ + + + + /** + * ResourceId,如upath ID 和 uga ID + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - - /** 查询起始时间,10位长度时间戳 */ + + + + /** + * 查询起始时间,10位长度时间戳 + */ @NotEmpty @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询结束时间,10位长度时间戳 */ + + + + /** + * 查询结束时间,10位长度时间戳 + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - + + + /** * 查询监控的指标项。目前仅允许以下四项:NetworkOut:出向带宽,NetworkIn:入向带宽,NetworkOutUsage:出向带宽使用率,NetworkInUsage:入向带宽使用率 */ @NotEmpty @UCloudParam("MetricName") private List metricName; - - /** upath:加速线路,uga:加速实例 */ + + + + /** + * upath:加速线路,uga:加速实例 + */ @NotEmpty @UCloudParam("ResourceType") private String resourceType; - - /** 具体线路id,调用DescribePathXLineConfig接口获取线路列表 */ + + + + /** + * 具体线路id,调用DescribePathXLineConfig接口获取线路列表 + */ @NotEmpty @UCloudParam("LineId") private String lineId; - + + public String getProjectId() { return projectId; } @@ -65,7 +96,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getResourceId() { return resourceId; } @@ -73,7 +104,7 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } - + public Integer getBeginTime() { return beginTime; } @@ -81,7 +112,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -89,7 +120,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public List getMetricName() { return metricName; } @@ -97,7 +128,7 @@ public List getMetricName() { public void setMetricName(List metricName) { this.metricName = metricName; } - + public String getResourceType() { return resourceType; } @@ -105,7 +136,7 @@ public String getResourceType() { public void setResourceType(String resourceType) { this.resourceType = resourceType; } - + public String getLineId() { return lineId; } @@ -113,4 +144,14 @@ public String getLineId() { public void setLineId(String lineId) { this.lineId = lineId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricResponse.java index fbb0a901..a8c41804 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetPathXMetricResponse extends Response { - /** 监控数据结果集 */ + + + /** + * 监控数据结果集 + */ @SerializedName("DataSet") private MetricPeriod dataSet; - + + public MetricPeriod getDataSet() { return dataSet; } @@ -32,82 +41,116 @@ public MetricPeriod getDataSet() { public void setDataSet(MetricPeriod dataSet) { this.dataSet = dataSet; } + + public static class MatricPoint extends Response { + + + /** + * 时间戳 + */ + @SerializedName("Timestamp") + private Integer timestamp; + + + + /** + * 监控点数值 + */ + @SerializedName("Value") + private Integer value; + + + public Integer getTimestamp() { + return timestamp; + } - public static class MatricPoint extends Response { - - /** 时间戳 */ - @SerializedName("Timestamp") - private Integer timestamp; - - /** 监控点数值 */ - @SerializedName("Value") - private Integer value; - - public Integer getTimestamp() { - return timestamp; - } - - public void setTimestamp(Integer timestamp) { - this.timestamp = timestamp; - } - - public Integer getValue() { - return value; - } + public void setTimestamp(Integer timestamp) { + this.timestamp = timestamp; + } + + public Integer getValue() { + return value; + } - public void setValue(Integer value) { - this.value = value; + public void setValue(Integer value) { + this.value = value; + } + } + public static class MetricPeriod extends Response { + + + /** + * 出向带宽 + */ + @SerializedName("NetworkOut") + private List networkOut; + + + + /** + * 入向带宽 + */ + @SerializedName("NetworkIn") + private List networkIn; + + + + /** + * 出向带宽使用率 + */ + @SerializedName("NetworkOutUsage") + private List networkOutUsage; + + + + /** + * 入向带宽使用率 + */ + @SerializedName("NetworkInUsage") + private List networkInUsage; + + + public List getNetworkOut() { + return networkOut; } - public static class MetricPeriod extends Response { + public void setNetworkOut(List networkOut) { + this.networkOut = networkOut; + } + + public List getNetworkIn() { + return networkIn; + } - /** 出向带宽 */ - @SerializedName("NetworkOut") - private List networkOut; + public void setNetworkIn(List networkIn) { + this.networkIn = networkIn; + } + + public List getNetworkOutUsage() { + return networkOutUsage; + } - /** 入向带宽 */ - @SerializedName("NetworkIn") - private List networkIn; + public void setNetworkOutUsage(List networkOutUsage) { + this.networkOutUsage = networkOutUsage; + } + + public List getNetworkInUsage() { + return networkInUsage; + } - /** 出向带宽使用率 */ - @SerializedName("NetworkOutUsage") - private List networkOutUsage; + public void setNetworkInUsage(List networkInUsage) { + this.networkInUsage = networkInUsage; + } + + } +} - /** 入向带宽使用率 */ - @SerializedName("NetworkInUsage") - private List networkInUsage; - public List getNetworkOut() { - return networkOut; - } - public void setNetworkOut(List networkOut) { - this.networkOut = networkOut; - } - public List getNetworkIn() { - return networkIn; - } - public void setNetworkIn(List networkIn) { - this.networkIn = networkIn; - } - public List getNetworkOutUsage() { - return networkOutUsage; - } - public void setNetworkOutUsage(List networkOutUsage) { - this.networkOutUsage = networkOutUsage; - } - public List getNetworkInUsage() { - return networkInUsage; - } - public void setNetworkInUsage(List networkInUsage) { - this.networkInUsage = networkInUsage; - } - } -} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortRequest.java index 2bbfad9a..654b5510 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyGlobalSSHPortRequest extends Request { - /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + + + /** + * 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 实例ID,资源唯一标识。当前仅收费版GlobalSSH实例可以修改端口。 */ + + + + /** + * 实例ID,资源唯一标识。当前仅收费版GlobalSSH实例可以修改端口。 + */ @NotEmpty @UCloudParam("InstanceId") private String instanceId; - - /** 源站服务器监听的SSH端口号。收费版本端口范围[1,65535]且不能为80,443,65123端口。免费版不支持修改端口。 */ + + + + /** + * 源站服务器监听的SSH端口号。收费版本端口范围[1,65535]且不能为80,443,65123端口。免费版不支持修改端口。 + */ @NotEmpty @UCloudParam("Port") private Integer port; - + + public String getProjectId() { return projectId; } @@ -42,7 +60,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceId() { return instanceId; } @@ -50,7 +68,7 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } - + public Integer getPort() { return port; } @@ -58,4 +76,14 @@ public Integer getPort() { public void setPort(Integer port) { this.port = port; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortResponse.java index d4e0240d..54a487fd 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyGlobalSSHPortResponse extends Response {} +public class ModifyGlobalSSHPortResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkRequest.java index b81265a6..d6fb47f6 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyGlobalSSHRemarkRequest extends Request { - /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + + + /** + * 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 实例ID,资源唯一标识 */ + + + + /** + * 实例ID,资源唯一标识 + */ @NotEmpty @UCloudParam("InstanceId") private String instanceId; - - /** 备注信息,不填默认为空字符串 */ + + + + /** + * 备注信息,不填默认为空字符串 + */ @UCloudParam("Remark") private String remark; - + + public String getProjectId() { return projectId; } @@ -41,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceId() { return instanceId; } @@ -49,7 +67,7 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } - + public String getRemark() { return remark; } @@ -57,4 +75,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkResponse.java index 5ed3ee8d..458a53a7 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyGlobalSSHRemarkResponse extends Response {} +public class ModifyGlobalSSHRemarkResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeRequest.java index a8e18d57..b0a7d1de 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeRequest.java @@ -1,54 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyGlobalSSHTypeRequest extends Request { - /** 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 实例ID,资源唯一标识 */ + + + + /** + * 实例ID,资源唯一标识 + */ @NotEmpty @UCloudParam("InstanceId") private String instanceId; - + + + /** * 取值范围["Enterprise","Basic"],分别对应企业版和基础版,表示升级后的实例类型。比如从Free版本升级为Basic版或Enterprise版,不可从收费版降级为免费版,或从企业版降级为基础版 */ @NotEmpty @UCloudParam("InstanceType") private String instanceType; - - /** 支付方式,如按月、按年、按时 */ + + + + /** + * 支付方式,如按月、按年、按时 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时间,当ChargeType为Month,Quantity为0代表购买到月底 */ + + + + /** + * 购买时间,当ChargeType为Month,Quantity为0代表购买到月底 + */ @UCloudParam("Quantity") private String quantity; - - /** 可抵扣费用的券,通常不使用 */ + + + + /** + * 可抵扣费用的券,通常不使用 + */ @UCloudParam("CouponId") private String couponId; - + + public String getProjectId() { return projectId; } @@ -56,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceId() { return instanceId; } @@ -64,7 +92,7 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } - + public String getInstanceType() { return instanceType; } @@ -72,7 +100,7 @@ public String getInstanceType() { public void setInstanceType(String instanceType) { this.instanceType = instanceType; } - + public String getChargeType() { return chargeType; } @@ -80,7 +108,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getQuantity() { return quantity; } @@ -88,7 +116,7 @@ public String getQuantity() { public void setQuantity(String quantity) { this.quantity = quantity; } - + public String getCouponId() { return couponId; } @@ -96,4 +124,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeResponse.java index bc9477ae..54e3af77 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyGlobalSSHTypeResponse extends Response {} +public class ModifyGlobalSSHTypeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthRequest.java index d366e1fe..1ca5086a 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUPathBandwidthRequest extends Request { - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** UPath 加速线路实例Id */ + + + + /** + * UPath 加速线路实例Id + */ @NotEmpty @UCloudParam("UPathId") private String uPathId; - - /** 线路带宽,单位Mbps。最小1Mbps,最大带宽由 DescribePathXLineConfig 接口获得。如需更大带宽,请联系产品团队。 */ + + + + /** + * 线路带宽,单位Mbps。最小1Mbps,最大带宽由 DescribePathXLineConfig 接口获得。如需更大带宽,请联系产品团队。 + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - + + public String getProjectId() { return projectId; } @@ -42,7 +60,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPathId() { return uPathId; } @@ -50,7 +68,7 @@ public String getUPathId() { public void setUPathId(String uPathId) { this.uPathId = uPathId; } - + public Integer getBandwidth() { return bandwidth; } @@ -58,4 +76,14 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthResponse.java index edecdf17..2d3be9d8 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUPathBandwidthResponse extends Response {} +public class ModifyUPathBandwidthResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateRequest.java index 5c3d3cd9..f3925117 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateRequest.java @@ -1,67 +1,105 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class ModifyUPathTemplateRequest extends Request { - /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 加速线路实例ID */ + + + + /** + * 加速线路实例ID + */ @NotEmpty @UCloudParam("UPathId") private String uPathId; - + + + /** - * 告警指标名称, - * 所有n的个数必须一致。目前仅允许以下四项:UpathNetworkOut:出向带宽,UpathNetworkIn:入向带宽,UpathNetworkOutUsage:出向带宽使用率,UpathNetworkInUsage:入向带宽使用率 + * 告警指标名称, 所有n的个数必须一致。目前仅允许以下四项:UpathNetworkOut:出向带宽,UpathNetworkIn:入向带宽,UpathNetworkOutUsage:出向带宽使用率,UpathNetworkInUsage:入向带宽使用率 */ @UCloudParam("MetricName") private List metricName; - - /** 告警阈值,带宽使用率的阈值范围是[50,100]的正整数,带宽告警阈值为1000000的倍数, 如大于2Mbps则告警 阈值应该传 2000000 */ + + + + /** + * 告警阈值,带宽使用率的阈值范围是[50,100]的正整数,带宽告警阈值为1000000的倍数, 如大于2Mbps则告警 阈值应该传 2000000 + */ @UCloudParam("Threshold") private List threshold; - - /** 告警探测周期,单位:秒 */ + + + + /** + * 告警探测周期,单位:秒 + */ @UCloudParam("AlarmFrequency") private List alarmFrequency; - - /** 告警组id */ + + + + /** + * 告警组id + */ @UCloudParam("ContactGroupId") private List contactGroupId; - - /** 比较策略,可选 ['GE','LE'] 分别代表不小于和不大于 */ + + + + /** + * 比较策略,可选 ['GE','LE'] 分别代表不小于和不大于 + */ @UCloudParam("Compare") private List compare; - - /** 收敛策略,可选范围 ['Exponential','Continuous','Once'],分别对应指数递增、连续告警、单次告警 */ + + + + /** + * 收敛策略,可选范围 ['Exponential','Continuous','Once'],分别对应指数递增、连续告警、单次告警 + */ @UCloudParam("AlarmStrategy") private List alarmStrategy; - - /** 告警触发周期(次数) */ + + + + /** + * 告警触发周期(次数) + */ @UCloudParam("TriggerCount") private List triggerCount; - + + public String getProjectId() { return projectId; } @@ -69,7 +107,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPathId() { return uPathId; } @@ -77,7 +115,7 @@ public String getUPathId() { public void setUPathId(String uPathId) { this.uPathId = uPathId; } - + public List getMetricName() { return metricName; } @@ -85,7 +123,7 @@ public List getMetricName() { public void setMetricName(List metricName) { this.metricName = metricName; } - + public List getThreshold() { return threshold; } @@ -93,7 +131,7 @@ public List getThreshold() { public void setThreshold(List threshold) { this.threshold = threshold; } - + public List getAlarmFrequency() { return alarmFrequency; } @@ -101,7 +139,7 @@ public List getAlarmFrequency() { public void setAlarmFrequency(List alarmFrequency) { this.alarmFrequency = alarmFrequency; } - + public List getContactGroupId() { return contactGroupId; } @@ -109,7 +147,7 @@ public List getContactGroupId() { public void setContactGroupId(List contactGroupId) { this.contactGroupId = contactGroupId; } - + public List getCompare() { return compare; } @@ -117,7 +155,7 @@ public List getCompare() { public void setCompare(List compare) { this.compare = compare; } - + public List getAlarmStrategy() { return alarmStrategy; } @@ -125,7 +163,7 @@ public List getAlarmStrategy() { public void setAlarmStrategy(List alarmStrategy) { this.alarmStrategy = alarmStrategy; } - + public List getTriggerCount() { return triggerCount; } @@ -133,4 +171,14 @@ public List getTriggerCount() { public void setTriggerCount(List triggerCount) { this.triggerCount = triggerCount; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateResponse.java index fc434d45..a66eb328 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUPathTemplateResponse extends Response {} +public class ModifyUPathTemplateResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathRequest.java index 0ac45759..40f8ef53 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UGABindUPathRequest extends Request { - /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 加速配置实例ID,格式uga-xxxx */ + + + + /** + * 加速配置实例ID,格式uga-xxxx + */ @NotEmpty @UCloudParam("UGAId") private String ugaId; - - /** 加速线路实例ID,格式upath-xxx */ + + + + /** + * 加速线路实例ID,格式upath-xxx + */ @NotEmpty @UCloudParam("UPathId") private String uPathId; - - /** 代金券 */ + + + + /** + * 代金券 + */ @UCloudParam("CouponId") private String couponId; - + + public String getProjectId() { return projectId; } @@ -46,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUGAId() { return ugaId; } @@ -54,7 +76,7 @@ public String getUGAId() { public void setUGAId(String ugaId) { this.ugaId = ugaId; } - + public String getUPathId() { return uPathId; } @@ -62,7 +84,7 @@ public String getUPathId() { public void setUPathId(String uPathId) { this.uPathId = uPathId; } - + public String getCouponId() { return couponId; } @@ -70,4 +92,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathResponse.java index 6ff1fbf2..1dfdc20d 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UGABindUPathResponse extends Response {} +public class UGABindUPathResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathRequest.java index a98578d9..92acb33f 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UGAUnBindUPathRequest extends Request { - /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 加速配置实例ID 格式uga-xxx */ + + + + /** + * 加速配置实例ID 格式uga-xxx + */ @NotEmpty @UCloudParam("UGAId") private String ugaId; - - /** 加速线路实例ID 格式upath-xxx */ + + + + /** + * 加速线路实例ID 格式upath-xxx + */ @NotEmpty @UCloudParam("UPathId") private String uPathId; - + + public String getProjectId() { return projectId; } @@ -42,7 +60,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUGAId() { return ugaId; } @@ -50,7 +68,7 @@ public String getUGAId() { public void setUGAId(String ugaId) { this.ugaId = ugaId; } - + public String getUPathId() { return uPathId; } @@ -58,4 +76,14 @@ public String getUPathId() { public void setUPathId(String uPathId) { this.uPathId = uPathId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathResponse.java index 5de89996..38c42b1f 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UGAUnBindUPathResponse extends Response {} +public class UGAUnBindUPathResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLRequest.java index 2da2cb8f..40f18dd6 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLRequest.java @@ -1,46 +1,67 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UnBindPathXSSLRequest extends Request { - /** 项目ID。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** UGA实例ID。 */ + + + + /** + * UGA实例ID。 + */ @NotEmpty @UCloudParam("UGAId") private String ugaId; - - /** SSL证书ID。 */ + + + + /** + * SSL证书ID。 + */ @NotEmpty @UCloudParam("SSLId") private String sslId; - - /** 解绑SSL证书的HTTPS端口。Port.0 Port.1格式 端口错误则解绑失败。 */ + + + + /** + * 解绑SSL证书的HTTPS端口。Port.0 Port.1格式 端口错误则解绑失败。 + */ @NotEmpty @UCloudParam("Port") private List port; - + + public String getProjectId() { return projectId; } @@ -48,7 +69,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUGAId() { return ugaId; } @@ -56,7 +77,7 @@ public String getUGAId() { public void setUGAId(String ugaId) { this.ugaId = ugaId; } - + public String getSSLId() { return sslId; } @@ -64,7 +85,7 @@ public String getSSLId() { public void setSSLId(String sslId) { this.sslId = sslId; } - + public List getPort() { return port; } @@ -72,4 +93,14 @@ public List getPort() { public void setPort(List port) { this.port = port; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLResponse.java index 191fa919..86ebd5db 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UnBindPathXSSLResponse extends Response {} +public class UnBindPathXSSLResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistRequest.java index 2aef64cb..929f3bf1 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistRequest.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistRequest.java @@ -1,45 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UpdatePathXWhitelistRequest extends Request { - /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + + + /** + * 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** GlobalSSH实例ID,资源唯一标识 */ + + + + /** + * GlobalSSH实例ID,资源唯一标识 + */ @NotEmpty @UCloudParam("InstanceId") private String instanceId; - + + + /** - * 白名单规则,例如 "Whitelist.0": "192.168.1.1/24|tcp|22","Whitelist.1": - * "192.168.1.2|tcp|8080:8090",第一个参数为ip或ip段,第二个参数代表协议(tcp/udp),第三个参数代表端口号或端口范围(使用 ':' - * 隔开);可以添加多条规则(递增Whitelist.n字段内的n值);此接口需要列出全部规则,例如不填则为清空白名单规则,如若需要增量添加,使用InsertPathXWhitelist接口,globalssh - * 没有端口范围:端口设置成加速端口,协议设置成tcp:ip|tcp|加速端口 + * 白名单规则,例如 "Whitelist.0": "192.168.1.1/24|tcp|22","Whitelist.1": "192.168.1.2|tcp|8080:8090",第一个参数为ip或ip段,第二个参数代表协议(tcp/udp),第三个参数代表端口号或端口范围(使用 ':' 隔开);可以添加多条规则(递增Whitelist.n字段内的n值);此接口需要列出全部规则,例如不填则为清空白名单规则,如若需要增量添加,使用InsertPathXWhitelist接口,globalssh 没有端口范围:端口设置成加速端口,协议设置成tcp:ip|tcp|加速端口 */ @UCloudParam("Whitelist") private List whitelist; - + + public String getProjectId() { return projectId; } @@ -47,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceId() { return instanceId; } @@ -55,7 +67,7 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } - + public List getWhitelist() { return whitelist; } @@ -63,4 +75,14 @@ public List getWhitelist() { public void setWhitelist(List whitelist) { this.whitelist = whitelist; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistResponse.java index 6977b9e8..af3b13fa 100644 --- a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistResponse.java +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.pathx.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdatePathXWhitelistResponse extends Response {} +public class UpdatePathXWhitelistResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index 0368acc8..ed8e4ad5 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-uaccount - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClient.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClient.java index 6cc77604..5b8c4c48 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClient.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uaccount.client; @@ -17,107 +19,159 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.uaccount.models.AddMemberToProjectRequest; import cn.ucloud.uaccount.models.AddMemberToProjectResponse; + + + import cn.ucloud.uaccount.models.FreezeMemberRequest; import cn.ucloud.uaccount.models.FreezeMemberResponse; + + + import cn.ucloud.uaccount.models.GetNetworkMaskRequest; import cn.ucloud.uaccount.models.GetNetworkMaskResponse; + + + import cn.ucloud.uaccount.models.GetProjectListRequest; import cn.ucloud.uaccount.models.GetProjectListResponse; + + + import cn.ucloud.uaccount.models.GetRegionRequest; import cn.ucloud.uaccount.models.GetRegionResponse; + + + import cn.ucloud.uaccount.models.RemoveMemberFromProjectRequest; import cn.ucloud.uaccount.models.RemoveMemberFromProjectResponse; + + + import cn.ucloud.uaccount.models.SetNetworkMaskRequest; import cn.ucloud.uaccount.models.SetNetworkMaskResponse; -/** This client is used to call actions of **UAccount** service */ +/** + * This client is used to call actions of **UAccount** service + */ public class UAccountClient extends DefaultClient implements UAccountClientInterface { public UAccountClient(Config config, Credential credential) { super(config, credential); } - - /** - * AddMemberToProject - 添加成员到项目 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AddMemberToProjectResponse addMemberToProject(AddMemberToProjectRequest request) - throws UCloudException { - request.setAction("AddMemberToProject"); - return (AddMemberToProjectResponse) this.invoke(request, AddMemberToProjectResponse.class); - } - - /** - * FreezeMember - 冻结成员 - * - * @param request Request object - * @throws UCloudException Exception - */ - public FreezeMemberResponse freezeMember(FreezeMemberRequest request) throws UCloudException { - request.setAction("FreezeMember"); - return (FreezeMemberResponse) this.invoke(request, FreezeMemberResponse.class); - } - - /** - * GetNetworkMask - 查询登录与API调用的网络掩码 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetNetworkMaskResponse getNetworkMask(GetNetworkMaskRequest request) - throws UCloudException { - request.setAction("GetNetworkMask"); - return (GetNetworkMaskResponse) this.invoke(request, GetNetworkMaskResponse.class); - } - - /** - * GetProjectList - 获取帐号下的项目列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetProjectListResponse getProjectList(GetProjectListRequest request) - throws UCloudException { - request.setAction("GetProjectList"); - return (GetProjectListResponse) this.invoke(request, GetProjectListResponse.class); - } - - /** - * GetRegion - 获取地域和可用区列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetRegionResponse getRegion(GetRegionRequest request) throws UCloudException { - request.setAction("GetRegion"); - return (GetRegionResponse) this.invoke(request, GetRegionResponse.class); - } - - /** - * RemoveMemberFromProject - 从项目中移除成员 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RemoveMemberFromProjectResponse removeMemberFromProject( - RemoveMemberFromProjectRequest request) throws UCloudException { - request.setAction("RemoveMemberFromProject"); - return (RemoveMemberFromProjectResponse) - this.invoke(request, RemoveMemberFromProjectResponse.class); - } - - /** - * SetNetworkMask - 设置登录与API调用的网络掩码 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SetNetworkMaskResponse setNetworkMask(SetNetworkMaskRequest request) - throws UCloudException { - request.setAction("SetNetworkMask"); - return (SetNetworkMaskResponse) this.invoke(request, SetNetworkMaskResponse.class); - } + + + + + + + /** + * AddMemberToProject - 添加成员到项目 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddMemberToProjectResponse addMemberToProject(AddMemberToProjectRequest request) throws UCloudException { + request.setAction("AddMemberToProject"); + return (AddMemberToProjectResponse) this.invoke(request, AddMemberToProjectResponse.class); + } + + + + + + + /** + * FreezeMember - 冻结成员 + * + * @param request Request object + * @throws UCloudException Exception + */ + public FreezeMemberResponse freezeMember(FreezeMemberRequest request) throws UCloudException { + request.setAction("FreezeMember"); + return (FreezeMemberResponse) this.invoke(request, FreezeMemberResponse.class); + } + + + + + + + /** + * GetNetworkMask - 查询登录与API调用的网络掩码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetNetworkMaskResponse getNetworkMask(GetNetworkMaskRequest request) throws UCloudException { + request.setAction("GetNetworkMask"); + return (GetNetworkMaskResponse) this.invoke(request, GetNetworkMaskResponse.class); + } + + + + + + + /** + * GetProjectList - 获取帐号下的项目列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetProjectListResponse getProjectList(GetProjectListRequest request) throws UCloudException { + request.setAction("GetProjectList"); + return (GetProjectListResponse) this.invoke(request, GetProjectListResponse.class); + } + + + + + + + /** + * GetRegion - 获取地域和可用区列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetRegionResponse getRegion(GetRegionRequest request) throws UCloudException { + request.setAction("GetRegion"); + return (GetRegionResponse) this.invoke(request, GetRegionResponse.class); + } + + + + + + + /** + * RemoveMemberFromProject - 从项目中移除成员 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RemoveMemberFromProjectResponse removeMemberFromProject(RemoveMemberFromProjectRequest request) throws UCloudException { + request.setAction("RemoveMemberFromProject"); + return (RemoveMemberFromProjectResponse) this.invoke(request, RemoveMemberFromProjectResponse.class); + } + + + + + + + /** + * SetNetworkMask - 设置登录与API调用的网络掩码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SetNetworkMaskResponse setNetworkMask(SetNetworkMaskRequest request) throws UCloudException { + request.setAction("SetNetworkMask"); + return (SetNetworkMaskResponse) this.invoke(request, SetNetworkMaskResponse.class); + } } diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClientInterface.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClientInterface.java index 97df5c23..1fd1ace0 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClientInterface.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClientInterface.java @@ -1,47 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uaccount.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.uaccount.models.AddMemberToProjectRequest; import cn.ucloud.uaccount.models.AddMemberToProjectResponse; + + + import cn.ucloud.uaccount.models.FreezeMemberRequest; import cn.ucloud.uaccount.models.FreezeMemberResponse; + + + import cn.ucloud.uaccount.models.GetNetworkMaskRequest; import cn.ucloud.uaccount.models.GetNetworkMaskResponse; + + + import cn.ucloud.uaccount.models.GetProjectListRequest; import cn.ucloud.uaccount.models.GetProjectListResponse; + + + import cn.ucloud.uaccount.models.GetRegionRequest; import cn.ucloud.uaccount.models.GetRegionResponse; + + + import cn.ucloud.uaccount.models.RemoveMemberFromProjectRequest; import cn.ucloud.uaccount.models.RemoveMemberFromProjectResponse; + + + import cn.ucloud.uaccount.models.SetNetworkMaskRequest; import cn.ucloud.uaccount.models.SetNetworkMaskResponse; -/** This client is used to call actions of **UAccount** service */ +/** + * This client is used to call actions of **UAccount** service + */ public interface UAccountClientInterface extends Client { - + + + + + + /** * AddMemberToProject - 添加成员到项目 * * @param request Request object * @throws UCloudException Exception */ - public AddMemberToProjectResponse addMemberToProject(AddMemberToProjectRequest request) - throws UCloudException; - + public AddMemberToProjectResponse addMemberToProject(AddMemberToProjectRequest request) throws UCloudException; + + + + + + /** * FreezeMember - 冻结成员 * @@ -49,25 +83,38 @@ public AddMemberToProjectResponse addMemberToProject(AddMemberToProjectRequest r * @throws UCloudException Exception */ public FreezeMemberResponse freezeMember(FreezeMemberRequest request) throws UCloudException; - + + + + + + /** * GetNetworkMask - 查询登录与API调用的网络掩码 * * @param request Request object * @throws UCloudException Exception */ - public GetNetworkMaskResponse getNetworkMask(GetNetworkMaskRequest request) - throws UCloudException; - + public GetNetworkMaskResponse getNetworkMask(GetNetworkMaskRequest request) throws UCloudException; + + + + + + /** * GetProjectList - 获取帐号下的项目列表 * * @param request Request object * @throws UCloudException Exception */ - public GetProjectListResponse getProjectList(GetProjectListRequest request) - throws UCloudException; - + public GetProjectListResponse getProjectList(GetProjectListRequest request) throws UCloudException; + + + + + + /** * GetRegion - 获取地域和可用区列表 * @@ -75,22 +122,30 @@ public GetProjectListResponse getProjectList(GetProjectListRequest request) * @throws UCloudException Exception */ public GetRegionResponse getRegion(GetRegionRequest request) throws UCloudException; - + + + + + + /** * RemoveMemberFromProject - 从项目中移除成员 * * @param request Request object * @throws UCloudException Exception */ - public RemoveMemberFromProjectResponse removeMemberFromProject( - RemoveMemberFromProjectRequest request) throws UCloudException; - + public RemoveMemberFromProjectResponse removeMemberFromProject(RemoveMemberFromProjectRequest request) throws UCloudException; + + + + + + /** * SetNetworkMask - 设置登录与API调用的网络掩码 * * @param request Request object * @throws UCloudException Exception */ - public SetNetworkMaskResponse setNetworkMask(SetNetworkMaskRequest request) - throws UCloudException; + public SetNetworkMaskResponse setNetworkMask(SetNetworkMaskRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectRequest.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectRequest.java index 8e73ca2c..3040c75a 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectRequest.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AddMemberToProjectRequest extends Request { - /** 项目ID,请参考[GetProjectList接口](../summary/get_project_list.html)的描述。不填写为创建时间最早的项目。 */ + + + /** + * 项目ID,请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)的描述。不填写为创建时间最早的项目。 + */ @UCloudParam("ProjectId") private String projectId; - - /** 被加入成员Email */ + + + + /** + * 被加入成员Email + */ @NotEmpty @UCloudParam("MemberEmail") private String memberEmail; - - /** 被加入成员归属角色ID */ + + + + /** + * 被加入成员归属角色ID + */ @NotEmpty @UCloudParam("CharacterId") private String characterId; - + + public String getProjectId() { return projectId; } @@ -41,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getMemberEmail() { return memberEmail; } @@ -49,7 +67,7 @@ public String getMemberEmail() { public void setMemberEmail(String memberEmail) { this.memberEmail = memberEmail; } - + public String getCharacterId() { return characterId; } @@ -57,4 +75,14 @@ public String getCharacterId() { public void setCharacterId(String characterId) { this.characterId = characterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectResponse.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectResponse.java index ccdb3046..2fe0915a 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectResponse.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class AddMemberToProjectResponse extends Response {} +public class AddMemberToProjectResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberRequest.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberRequest.java index dec77420..6f7f945d 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberRequest.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberRequest.java @@ -1,30 +1,40 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class FreezeMemberRequest extends Request { - /** 需要被冻结的成员Email */ + + + /** + * 需要被冻结的成员Email + */ @NotEmpty @UCloudParam("MemberEmail") private String memberEmail; - + + public String getMemberEmail() { return memberEmail; } @@ -32,4 +42,14 @@ public String getMemberEmail() { public void setMemberEmail(String memberEmail) { this.memberEmail = memberEmail; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberResponse.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberResponse.java index 3c1c1949..ee0f647b 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberResponse.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class FreezeMemberResponse extends Response {} +public class FreezeMemberResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetNetworkMaskRequest.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetNetworkMaskRequest.java index bdb1440b..ac93e4ff 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetNetworkMaskRequest.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetNetworkMaskRequest.java @@ -1,19 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; +import java.util.List; + import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class GetNetworkMaskRequest extends Request { + + +} + + + + + + + + -public class GetNetworkMaskRequest extends Request {} diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetNetworkMaskResponse.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetNetworkMaskResponse.java index d06988a1..fa82edf9 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetNetworkMaskResponse.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetNetworkMaskResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetNetworkMaskResponse extends Response { - /** 接口返回数据 */ + + + /** + * 接口返回数据 + */ @SerializedName("Data") private NetworkMask data; - + + public NetworkMask getData() { return data; } @@ -31,31 +41,49 @@ public NetworkMask getData() { public void setData(NetworkMask data) { this.data = data; } + + public static class NetworkMask extends Response { + + + /** + * API调用网络掩码,默认空字符串,不限制登录IP,多个IP以英文逗号分隔。 + */ + @SerializedName("APINetworkMask") + private String apiNetworkMask; + + + + /** + * 登录网络掩码,默认空字符串,不限制登录IP,多个IP以英文逗号分隔。 + */ + @SerializedName("LoginNetworkMask") + private String loginNetworkMask; + + + public String getAPINetworkMask() { + return apiNetworkMask; + } + + public void setAPINetworkMask(String apiNetworkMask) { + this.apiNetworkMask = apiNetworkMask; + } + + public String getLoginNetworkMask() { + return loginNetworkMask; + } + + public void setLoginNetworkMask(String loginNetworkMask) { + this.loginNetworkMask = loginNetworkMask; + } + + } +} + + - public static class NetworkMask extends Response { - /** API调用网络掩码,默认空字符串,不限制登录IP,多个IP以英文逗号分隔。 */ - @SerializedName("APINetworkMask") - private String apiNetworkMask; - /** 登录网络掩码,默认空字符串,不限制登录IP,多个IP以英文逗号分隔。 */ - @SerializedName("LoginNetworkMask") - private String loginNetworkMask; - public String getAPINetworkMask() { - return apiNetworkMask; - } - public void setAPINetworkMask(String apiNetworkMask) { - this.apiNetworkMask = apiNetworkMask; - } - public String getLoginNetworkMask() { - return loginNetworkMask; - } - public void setLoginNetworkMask(String loginNetworkMask) { - this.loginNetworkMask = loginNetworkMask; - } - } -} diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetProjectListRequest.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetProjectListRequest.java index 0439e554..7037a164 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetProjectListRequest.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetProjectListRequest.java @@ -1,28 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class GetProjectListRequest extends Request { - /** 是否是财务账号(Yes:是,No:否) */ + + + /** + * 是否是财务账号(Yes:是,No:否) + */ @UCloudParam("IsFinance") private String isFinance; - + + public String getIsFinance() { return isFinance; } @@ -30,4 +41,14 @@ public String getIsFinance() { public void setIsFinance(String isFinance) { this.isFinance = isFinance; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetProjectListResponse.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetProjectListResponse.java index 8beb7544..9d9d6192 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetProjectListResponse.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetProjectListResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetProjectListResponse extends Response { - /** 项目总数 */ + + + /** + * 项目总数 + */ @SerializedName("ProjectCount") private Integer projectCount; - - /** JSON格式的项目列表实例 */ + + + + /** + * JSON格式的项目列表实例 + */ @SerializedName("ProjectSet") private List projectSet; - + + public Integer getProjectCount() { return projectCount; } @@ -36,7 +49,7 @@ public Integer getProjectCount() { public void setProjectCount(Integer projectCount) { this.projectCount = projectCount; } - + public List getProjectSet() { return projectSet; } @@ -44,103 +57,145 @@ public List getProjectSet() { public void setProjectSet(List projectSet) { this.projectSet = projectSet; } + + public static class ProjectListInfo extends Response { + + + /** + * 项目ID + */ + @SerializedName("ProjectId") + private String projectId; + + + + /** + * 项目名称 + */ + @SerializedName("ProjectName") + private String projectName; + + + + /** + * 创建时间(Unix时间戳) + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 是否为默认项目 + */ + @SerializedName("IsDefault") + private Boolean isDefault; + + + + /** + * 项目下资源数量(已废弃,不建议使用) + */ + @SerializedName("ResourceCount") + private Integer resourceCount; + + + + /** + * 项目下成员数量 + */ + @SerializedName("MemberCount") + private Integer memberCount; + + + + /** + * 父项目ID(已废弃) + */ + @SerializedName("ParentId") + private String parentId; + + + + /** + * 父项目名称(已废弃) + */ + @SerializedName("ParentName") + private String parentName; + + + public String getProjectId() { + return projectId; + } - public static class ProjectListInfo extends Response { - - /** 项目ID */ - @SerializedName("ProjectId") - private String projectId; - - /** 项目名称 */ - @SerializedName("ProjectName") - private String projectName; - - /** 创建时间(Unix时间戳) */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 是否为默认项目 */ - @SerializedName("IsDefault") - private Boolean isDefault; - - /** 项目下资源数量(已废弃,不建议使用) */ - @SerializedName("ResourceCount") - private Integer resourceCount; - - /** 项目下成员数量 */ - @SerializedName("MemberCount") - private Integer memberCount; - - /** 父项目ID(已废弃) */ - @SerializedName("ParentId") - private String parentId; - - /** 父项目名称(已废弃) */ - @SerializedName("ParentName") - private String parentName; + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getProjectName() { + return projectName; + } - public String getProjectId() { - return projectId; - } + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public Integer getCreateTime() { + return createTime; + } - public void setProjectId(String projectId) { - this.projectId = projectId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Boolean getIsDefault() { + return isDefault; + } - public String getProjectName() { - return projectName; - } + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + } + + public Integer getResourceCount() { + return resourceCount; + } - public void setProjectName(String projectName) { - this.projectName = projectName; - } + public void setResourceCount(Integer resourceCount) { + this.resourceCount = resourceCount; + } + + public Integer getMemberCount() { + return memberCount; + } - public Integer getCreateTime() { - return createTime; - } + public void setMemberCount(Integer memberCount) { + this.memberCount = memberCount; + } + + public String getParentId() { + return parentId; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setParentId(String parentId) { + this.parentId = parentId; + } + + public String getParentName() { + return parentName; + } - public Boolean getIsDefault() { - return isDefault; + public void setParentName(String parentName) { + this.parentName = parentName; + } + } +} - public void setIsDefault(Boolean isDefault) { - this.isDefault = isDefault; - } - public Integer getResourceCount() { - return resourceCount; - } - public void setResourceCount(Integer resourceCount) { - this.resourceCount = resourceCount; - } - public Integer getMemberCount() { - return memberCount; - } - public void setMemberCount(Integer memberCount) { - this.memberCount = memberCount; - } - public String getParentId() { - return parentId; - } - public void setParentId(String parentId) { - this.parentId = parentId; - } - public String getParentName() { - return parentName; - } - public void setParentName(String parentName) { - this.parentName = parentName; - } - } -} diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetRegionRequest.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetRegionRequest.java index ceaf0128..f508bcc1 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetRegionRequest.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetRegionRequest.java @@ -1,19 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; +import java.util.List; + import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class GetRegionRequest extends Request { + + +} + + + + + + + + -public class GetRegionRequest extends Request {} diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetRegionResponse.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetRegionResponse.java index 69b0eddc..18641c6a 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetRegionResponse.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/GetRegionResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetRegionResponse extends Response { - /** 各数据中心信息 */ + + + /** + * 各数据中心信息 + */ @SerializedName("Regions") private List regions; - + + public List getRegions() { return regions; } @@ -32,79 +41,113 @@ public List getRegions() { public void setRegions(List regions) { this.regions = regions; } + + public static class RegionInfo extends Response { + + + /** + * 数据中心ID + */ + @SerializedName("RegionId") + private Integer regionId; + + + + /** + * 数据中心名称 + */ + @SerializedName("RegionName") + private String regionName; + + + + /** + * 是否用户当前默认数据中心 + */ + @SerializedName("IsDefault") + private Boolean isDefault; + + + + /** + * 用户在此数据中心的权限位 + */ + @SerializedName("BitMaps") + private String bitMaps; + + + + /** + * 地域名字,如cn-bj + */ + @SerializedName("Region") + private String region; + + + + /** + * 可用区名字,如cn-bj-01 + */ + @SerializedName("Zone") + private String zone; + + + public Integer getRegionId() { + return regionId; + } - public static class RegionInfo extends Response { - - /** 数据中心ID */ - @SerializedName("RegionId") - private Integer regionId; - - /** 数据中心名称 */ - @SerializedName("RegionName") - private String regionName; - - /** 是否用户当前默认数据中心 */ - @SerializedName("IsDefault") - private Boolean isDefault; - - /** 用户在此数据中心的权限位 */ - @SerializedName("BitMaps") - private String bitMaps; + public void setRegionId(Integer regionId) { + this.regionId = regionId; + } + + public String getRegionName() { + return regionName; + } - /** 地域名字,如cn-bj */ - @SerializedName("Region") - private String region; + public void setRegionName(String regionName) { + this.regionName = regionName; + } + + public Boolean getIsDefault() { + return isDefault; + } - /** 可用区名字,如cn-bj-01 */ - @SerializedName("Zone") - private String zone; + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + } + + public String getBitMaps() { + return bitMaps; + } - public Integer getRegionId() { - return regionId; - } + public void setBitMaps(String bitMaps) { + this.bitMaps = bitMaps; + } + + public String getRegion() { + return region; + } - public void setRegionId(Integer regionId) { - this.regionId = regionId; - } + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } - public String getRegionName() { - return regionName; + public void setZone(String zone) { + this.zone = zone; + } + } +} - public void setRegionName(String regionName) { - this.regionName = regionName; - } - public Boolean getIsDefault() { - return isDefault; - } - public void setIsDefault(Boolean isDefault) { - this.isDefault = isDefault; - } - public String getBitMaps() { - return bitMaps; - } - public void setBitMaps(String bitMaps) { - this.bitMaps = bitMaps; - } - public String getRegion() { - return region; - } - public void setRegion(String region) { - this.region = region; - } - public String getZone() { - return zone; - } - public void setZone(String zone) { - this.zone = zone; - } - } -} diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectRequest.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectRequest.java index 0226da3a..493111db 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectRequest.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectRequest.java @@ -1,35 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RemoveMemberFromProjectRequest extends Request { - /** 项目ID,请参考[GetProjectList接口](../summary/get_project_list.html)的描述。不填写为默认项目,子帐号必须填写。 */ + + + /** + * 项目ID,请参考[GetProjectList接口](../summary/get_project_list.html)的描述。不填写为默认项目,子帐号必须填写。 + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 需要被移除成员Email */ + + + + /** + * 需要被移除成员Email + */ @NotEmpty @UCloudParam("MemberEmail") private String memberEmail; - + + public String getProjectId() { return projectId; } @@ -37,7 +51,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getMemberEmail() { return memberEmail; } @@ -45,4 +59,14 @@ public String getMemberEmail() { public void setMemberEmail(String memberEmail) { this.memberEmail = memberEmail; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectResponse.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectResponse.java index 85dc6ce4..fdd38e29 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectResponse.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RemoveMemberFromProjectResponse extends Response {} +public class RemoveMemberFromProjectResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/SetNetworkMaskRequest.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/SetNetworkMaskRequest.java index 853e1659..35762bf9 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/SetNetworkMaskRequest.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/SetNetworkMaskRequest.java @@ -1,38 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class SetNetworkMaskRequest extends Request { - /** 短信验证码 */ + + + /** + * 短信验证码 + */ @NotEmpty @UCloudParam("Code") private String code; - - /** API调用网络掩码,多个IP以英文逗号分隔。默认空字符串,不限制登录IP。 */ + + + + /** + * API调用网络掩码,多个IP以英文逗号分隔。默认空字符串,不限制登录IP。 + */ @UCloudParam("APINetworkMask") private String apiNetworkMask; - - /** 登录网络掩码,多个IP以英文逗号分隔。默认空字符串,不限制登录IP。 */ + + + + /** + * 登录网络掩码,多个IP以英文逗号分隔。默认空字符串,不限制登录IP。 + */ @UCloudParam("LoginNetworkMask") private String loginNetworkMask; - + + public String getCode() { return code; } @@ -40,7 +58,7 @@ public String getCode() { public void setCode(String code) { this.code = code; } - + public String getAPINetworkMask() { return apiNetworkMask; } @@ -48,7 +66,7 @@ public String getAPINetworkMask() { public void setAPINetworkMask(String apiNetworkMask) { this.apiNetworkMask = apiNetworkMask; } - + public String getLoginNetworkMask() { return loginNetworkMask; } @@ -56,4 +74,14 @@ public String getLoginNetworkMask() { public void setLoginNetworkMask(String loginNetworkMask) { this.loginNetworkMask = loginNetworkMask; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/SetNetworkMaskResponse.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/SetNetworkMaskResponse.java index 2205efe5..ee8968f4 100644 --- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/SetNetworkMaskResponse.java +++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/SetNetworkMaskResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uaccount.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class SetNetworkMaskResponse extends Response {} +public class SetNetworkMaskResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index a64e8bb7..ecade9e6 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-ubill - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/client/UBillClient.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/client/UBillClient.java index 5cd0b4c5..f55422e3 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/client/UBillClient.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/client/UBillClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.ubill.client; @@ -17,93 +19,138 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.ubill.models.CreateRenewRequest; import cn.ucloud.ubill.models.CreateRenewResponse; + + + import cn.ucloud.ubill.models.GetBalanceRequest; import cn.ucloud.ubill.models.GetBalanceResponse; + + + import cn.ucloud.ubill.models.GetBillDataFileUrlRequest; import cn.ucloud.ubill.models.GetBillDataFileUrlResponse; + + + import cn.ucloud.ubill.models.ListUBillDetailRequest; import cn.ucloud.ubill.models.ListUBillDetailResponse; + + + import cn.ucloud.ubill.models.ListUBillOverviewRequest; import cn.ucloud.ubill.models.ListUBillOverviewResponse; + + + import cn.ucloud.ubill.models.ModifyAutoRenewFlagRequest; import cn.ucloud.ubill.models.ModifyAutoRenewFlagResponse; -/** This client is used to call actions of **UBill** service */ +/** + * This client is used to call actions of **UBill** service + */ public class UBillClient extends DefaultClient implements UBillClientInterface { public UBillClient(Config config, Credential credential) { super(config, credential); } - - /** - * CreateRenew - 创建单个续费订单 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateRenewResponse createRenew(CreateRenewRequest request) throws UCloudException { - request.setAction("CreateRenew"); - return (CreateRenewResponse) this.invoke(request, CreateRenewResponse.class); - } - - /** - * GetBalance - 获取账户余额 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetBalanceResponse getBalance(GetBalanceRequest request) throws UCloudException { - request.setAction("GetBalance"); - return (GetBalanceResponse) this.invoke(request, GetBalanceResponse.class); - } - - /** - * GetBillDataFileUrl - 生成账单数据文件下载的 url - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetBillDataFileUrlResponse getBillDataFileUrl(GetBillDataFileUrlRequest request) - throws UCloudException { - request.setAction("GetBillDataFileUrl"); - return (GetBillDataFileUrlResponse) this.invoke(request, GetBillDataFileUrlResponse.class); - } - - /** - * ListUBillDetail - 获取账单明细 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUBillDetailResponse listUBillDetail(ListUBillDetailRequest request) - throws UCloudException { - request.setAction("ListUBillDetail"); - return (ListUBillDetailResponse) this.invoke(request, ListUBillDetailResponse.class); - } - - /** - * ListUBillOverview - 获取账单总览 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUBillOverviewResponse listUBillOverview(ListUBillOverviewRequest request) - throws UCloudException { - request.setAction("ListUBillOverview"); - return (ListUBillOverviewResponse) this.invoke(request, ListUBillOverviewResponse.class); - } - - /** - * ModifyAutoRenewFlag - 修改资源自动续费标识 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyAutoRenewFlagResponse modifyAutoRenewFlag(ModifyAutoRenewFlagRequest request) - throws UCloudException { - request.setAction("ModifyAutoRenewFlag"); - return (ModifyAutoRenewFlagResponse) - this.invoke(request, ModifyAutoRenewFlagResponse.class); - } + + + + + + + /** + * CreateRenew - 创建单个续费订单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateRenewResponse createRenew(CreateRenewRequest request) throws UCloudException { + request.setAction("CreateRenew"); + return (CreateRenewResponse) this.invoke(request, CreateRenewResponse.class); + } + + + + + + + /** + * GetBalance - 获取账户余额 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetBalanceResponse getBalance(GetBalanceRequest request) throws UCloudException { + request.setAction("GetBalance"); + return (GetBalanceResponse) this.invoke(request, GetBalanceResponse.class); + } + + + + + + + /** + * GetBillDataFileUrl - 生成账单数据文件下载的 url + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetBillDataFileUrlResponse getBillDataFileUrl(GetBillDataFileUrlRequest request) throws UCloudException { + request.setAction("GetBillDataFileUrl"); + return (GetBillDataFileUrlResponse) this.invoke(request, GetBillDataFileUrlResponse.class); + } + + + + + + + /** + * ListUBillDetail - 获取账单明细 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUBillDetailResponse listUBillDetail(ListUBillDetailRequest request) throws UCloudException { + request.setAction("ListUBillDetail"); + return (ListUBillDetailResponse) this.invoke(request, ListUBillDetailResponse.class); + } + + + + + + + /** + * ListUBillOverview - 获取账单总览 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUBillOverviewResponse listUBillOverview(ListUBillOverviewRequest request) throws UCloudException { + request.setAction("ListUBillOverview"); + return (ListUBillOverviewResponse) this.invoke(request, ListUBillOverviewResponse.class); + } + + + + + + + /** + * ModifyAutoRenewFlag - 修改资源自动续费标识 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyAutoRenewFlagResponse modifyAutoRenewFlag(ModifyAutoRenewFlagRequest request) throws UCloudException { + request.setAction("ModifyAutoRenewFlag"); + return (ModifyAutoRenewFlagResponse) this.invoke(request, ModifyAutoRenewFlagResponse.class); + } } diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/client/UBillClientInterface.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/client/UBillClientInterface.java index 4ae5f364..0264298d 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/client/UBillClientInterface.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/client/UBillClientInterface.java @@ -1,36 +1,63 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.ubill.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.ubill.models.CreateRenewRequest; import cn.ucloud.ubill.models.CreateRenewResponse; + + + import cn.ucloud.ubill.models.GetBalanceRequest; import cn.ucloud.ubill.models.GetBalanceResponse; + + + import cn.ucloud.ubill.models.GetBillDataFileUrlRequest; import cn.ucloud.ubill.models.GetBillDataFileUrlResponse; + + + import cn.ucloud.ubill.models.ListUBillDetailRequest; import cn.ucloud.ubill.models.ListUBillDetailResponse; + + + import cn.ucloud.ubill.models.ListUBillOverviewRequest; import cn.ucloud.ubill.models.ListUBillOverviewResponse; + + + import cn.ucloud.ubill.models.ModifyAutoRenewFlagRequest; import cn.ucloud.ubill.models.ModifyAutoRenewFlagResponse; -/** This client is used to call actions of **UBill** service */ +/** + * This client is used to call actions of **UBill** service + */ public interface UBillClientInterface extends Client { - + + + + + + /** * CreateRenew - 创建单个续费订单 * @@ -38,7 +65,12 @@ public interface UBillClientInterface extends Client { * @throws UCloudException Exception */ public CreateRenewResponse createRenew(CreateRenewRequest request) throws UCloudException; - + + + + + + /** * GetBalance - 获取账户余额 * @@ -46,40 +78,56 @@ public interface UBillClientInterface extends Client { * @throws UCloudException Exception */ public GetBalanceResponse getBalance(GetBalanceRequest request) throws UCloudException; - + + + + + + /** * GetBillDataFileUrl - 生成账单数据文件下载的 url * * @param request Request object * @throws UCloudException Exception */ - public GetBillDataFileUrlResponse getBillDataFileUrl(GetBillDataFileUrlRequest request) - throws UCloudException; - + public GetBillDataFileUrlResponse getBillDataFileUrl(GetBillDataFileUrlRequest request) throws UCloudException; + + + + + + /** * ListUBillDetail - 获取账单明细 * * @param request Request object * @throws UCloudException Exception */ - public ListUBillDetailResponse listUBillDetail(ListUBillDetailRequest request) - throws UCloudException; - + public ListUBillDetailResponse listUBillDetail(ListUBillDetailRequest request) throws UCloudException; + + + + + + /** * ListUBillOverview - 获取账单总览 * * @param request Request object * @throws UCloudException Exception */ - public ListUBillOverviewResponse listUBillOverview(ListUBillOverviewRequest request) - throws UCloudException; - + public ListUBillOverviewResponse listUBillOverview(ListUBillOverviewRequest request) throws UCloudException; + + + + + + /** * ModifyAutoRenewFlag - 修改资源自动续费标识 * * @param request Request object * @throws UCloudException Exception */ - public ModifyAutoRenewFlagResponse modifyAutoRenewFlag(ModifyAutoRenewFlagRequest request) - throws UCloudException; + public ModifyAutoRenewFlagResponse modifyAutoRenewFlag(ModifyAutoRenewFlagRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/CreateRenewRequest.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/CreateRenewRequest.java index 6d5d0d67..a4f72a6c 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/CreateRenewRequest.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/CreateRenewRequest.java @@ -1,35 +1,51 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ubill.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateRenewRequest extends Request { - /** 需要续费资源ID */ + + + /** + * 需要续费资源ID + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - - /** 续费周期数[1~10],按月计费资源可传值为0,表示续费到月底 */ + + + + /** + * 续费周期数[1~10],按月计费资源可传值为0,表示续费到月底 + */ @NotEmpty @UCloudParam("Quantity") private Integer quantity; - + + + + public String getResourceId() { return resourceId; } @@ -37,7 +53,7 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } - + public Integer getQuantity() { return quantity; } @@ -45,4 +61,15 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/CreateRenewResponse.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/CreateRenewResponse.java index 5a92db82..b622b499 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/CreateRenewResponse.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/CreateRenewResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ubill.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateRenewResponse extends Response { - /** 订单号 */ + + + /** + * 订单号 + */ @SerializedName("OrderNo") private String orderNo; - + + public String getOrderNo() { return orderNo; } @@ -31,4 +41,14 @@ public String getOrderNo() { public void setOrderNo(String orderNo) { this.orderNo = orderNo; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBalanceRequest.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBalanceRequest.java index 0907553e..52247b3f 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBalanceRequest.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBalanceRequest.java @@ -1,19 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ubill.models; +import java.util.List; + import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class GetBalanceRequest extends Request { + + +} + + + + + + + + -public class GetBalanceRequest extends Request {} diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBalanceResponse.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBalanceResponse.java index 7e380597..12e3e129 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBalanceResponse.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBalanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ubill.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetBalanceResponse extends Response { - /** 账户余额信息 */ + + + /** + * 账户余额信息 + */ @SerializedName("AccountInfo") private AccountInfo accountInfo; - + + public AccountInfo getAccountInfo() { return accountInfo; } @@ -31,67 +41,97 @@ public AccountInfo getAccountInfo() { public void setAccountInfo(AccountInfo accountInfo) { this.accountInfo = accountInfo; } + + public static class AccountInfo extends Response { + + + /** + * 冻结账户金额 + */ + @SerializedName("AmountFreeze") + private String amountFreeze; + + + + /** + * 信用账户余额 + */ + @SerializedName("AmountCredit") + private String amountCredit; + + + + /** + * 赠送账户余额 + */ + @SerializedName("AmountFree") + private String amountFree; + + + + /** + * 账户余额 + */ + @SerializedName("Amount") + private String amount; + + + + /** + * 账户可用余额 + */ + @SerializedName("AmountAvailable") + private String amountAvailable; + + + public String getAmountFreeze() { + return amountFreeze; + } - public static class AccountInfo extends Response { - - /** 冻结账户金额 */ - @SerializedName("AmountFreeze") - private String amountFreeze; - - /** 信用账户余额 */ - @SerializedName("AmountCredit") - private String amountCredit; + public void setAmountFreeze(String amountFreeze) { + this.amountFreeze = amountFreeze; + } + + public String getAmountCredit() { + return amountCredit; + } - /** 赠送账户余额 */ - @SerializedName("AmountFree") - private String amountFree; + public void setAmountCredit(String amountCredit) { + this.amountCredit = amountCredit; + } + + public String getAmountFree() { + return amountFree; + } - /** 账户余额 */ - @SerializedName("Amount") - private String amount; + public void setAmountFree(String amountFree) { + this.amountFree = amountFree; + } + + public String getAmount() { + return amount; + } - /** 账户可用余额 */ - @SerializedName("AmountAvailable") - private String amountAvailable; + public void setAmount(String amount) { + this.amount = amount; + } + + public String getAmountAvailable() { + return amountAvailable; + } - public String getAmountFreeze() { - return amountFreeze; + public void setAmountAvailable(String amountAvailable) { + this.amountAvailable = amountAvailable; + } + } +} - public void setAmountFreeze(String amountFreeze) { - this.amountFreeze = amountFreeze; - } - public String getAmountCredit() { - return amountCredit; - } - public void setAmountCredit(String amountCredit) { - this.amountCredit = amountCredit; - } - public String getAmountFree() { - return amountFree; - } - public void setAmountFree(String amountFree) { - this.amountFree = amountFree; - } - public String getAmount() { - return amount; - } - public void setAmount(String amount) { - this.amount = amount; - } - public String getAmountAvailable() { - return amountAvailable; - } - public void setAmountAvailable(String amountAvailable) { - this.amountAvailable = amountAvailable; - } - } -} diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBillDataFileUrlRequest.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBillDataFileUrlRequest.java index b57f162b..611f835b 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBillDataFileUrlRequest.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBillDataFileUrlRequest.java @@ -1,51 +1,89 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ubill.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetBillDataFileUrlRequest extends Request { - /** 账单类型,传 0 时获取账单总览报表,传 1 获取账单明细报表 */ + + + /** + * 账单类型,枚举值:\\ > 0: 账单总览报表; \\ > 1: 账单明细报表 + */ @NotEmpty @UCloudParam("BillType") private Integer billType; - - /** 账期(字符串格式,YYYY-MM,例如2021-08). 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先 */ + + + + /** + * 账期: YYYY-MM格式的字符串,例如 ”2021-08“ + */ @NotEmpty @UCloudParam("BillingCycle") private String billingCycle; - - /** 此字段不推荐使用,建议使用BillingCycle. 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先 */ + + + + /** + * 账期: 时间戳格式,已弃用,请使用BillingCycle + */ @UCloudParam("BillPeriod") private Integer billPeriod; - - /** 获取账单总览报表时,账单的支付状态,传 0 时获取待支付账单,传 1 时获取已支付账单。获取账单明细报表时该参数无效 */ + + + + /** + * 账单支付状态, (获取账单明细报表,不需要填写该参数),枚举值:\\ > 0: 0待支付总览账单(只支持当前月份的账期);\\ > 1: 已支付账单总览 + */ @UCloudParam("PaidType") private Integer paidType; - - /** 如需求其他语言版本的账单则使用此参数。默认中文。如 RequireVersion = "EN",则提供英文版本账单。 */ + + + + /** + * 账单语言版本,枚举值:\\ > ”“: 默认中文;\\ > ”EN“: 英文版本 + */ @UCloudParam("RequireVersion") private String requireVersion; - - /** 文件版本,若为"v1"表示获取带有子用户信息的账单,可以为空 */ + + + + /** + * 文件版本,固定值"v1"。 + */ @UCloudParam("Version") private String version; - + + + + /** + * 文件格式,枚举值:\\ > ”csv“: csv格式;\\ > ”pdf“: pdf格式(已支付总览文件 从2023年03月开始支持PDF) + */ + @UCloudParam("Format") + private String format; + + public Integer getBillType() { return billType; } @@ -53,7 +91,7 @@ public Integer getBillType() { public void setBillType(Integer billType) { this.billType = billType; } - + public String getBillingCycle() { return billingCycle; } @@ -61,7 +99,7 @@ public String getBillingCycle() { public void setBillingCycle(String billingCycle) { this.billingCycle = billingCycle; } - + public Integer getBillPeriod() { return billPeriod; } @@ -69,7 +107,7 @@ public Integer getBillPeriod() { public void setBillPeriod(Integer billPeriod) { this.billPeriod = billPeriod; } - + public Integer getPaidType() { return paidType; } @@ -77,7 +115,7 @@ public Integer getPaidType() { public void setPaidType(Integer paidType) { this.paidType = paidType; } - + public String getRequireVersion() { return requireVersion; } @@ -85,7 +123,7 @@ public String getRequireVersion() { public void setRequireVersion(String requireVersion) { this.requireVersion = requireVersion; } - + public String getVersion() { return version; } @@ -93,4 +131,22 @@ public String getVersion() { public void setVersion(String version) { this.version = version; } + + public String getFormat() { + return format; + } + + public void setFormat(String format) { + this.format = format; + } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBillDataFileUrlResponse.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBillDataFileUrlResponse.java index c77dbc08..83a18240 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBillDataFileUrlResponse.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/GetBillDataFileUrlResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ubill.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetBillDataFileUrlResponse extends Response { - /** 交易账单数据下载URL */ + + + /** + * 交易账单文件下载URL + */ @SerializedName("FileUrl") private String fileUrl; - - /** 生成的 URL是否有效,即有对应数据文件 */ + + + + /** + * 是否有对应数据文件。(该参数返回no,表示文件正在生成中,需要用户发起重试获取。 + */ @SerializedName("IsValid") private String isValid; - + + public String getFileUrl() { return fileUrl; } @@ -35,7 +49,7 @@ public String getFileUrl() { public void setFileUrl(String fileUrl) { this.fileUrl = fileUrl; } - + public String getIsValid() { return isValid; } @@ -43,4 +57,14 @@ public String getIsValid() { public void setIsValid(String isValid) { this.isValid = isValid; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailRequest.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailRequest.java index 0937bcc0..d1c6c0b4 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailRequest.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailRequest.java @@ -1,85 +1,126 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ubill.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class ListUBillDetailRequest extends Request { - /** 账期,YYYY-MM,比如2021-08,只支持2018-05之后的查询 */ + + + /** + * 账期,YYYY-MM,比如2021-08,只支持2018-05之后的查询 + */ @NotEmpty @UCloudParam("BillingCycle") private String billingCycle; - - /** 项目名称 (筛选项, 默认全部) */ + + + + /** + * 项目名称 (筛选项, 默认全部) + */ @UCloudParam("ProjectName") private String projectName; - + + + /** - * 资源ID(筛选项, 默认全部) 支持多筛选,多筛选请在请求参数中添加多个字段 例 ResourceIds.0: uhost-bzgf1gh5, ResourceIds.1: - * uhost-gu1xpspa, + * 资源ID(筛选项, 默认全部) +支持多筛选,多筛选请在请求参数中添加多个字段 +例 +ResourceIds.0: uhost-bzgf1gh5, +ResourceIds.1: uhost-gu1xpspa, + */ @UCloudParam("ResourceIds") private List resourceIds; - + + + /** - * 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_REFUND:退费 \\ - * > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_PAYMENT:删除资源回款 \\ > OT_POSTPAID_PAYMENT:后付费回款 \\ - * > OT_RECOVER:删除恢复 \\ > OT_POSTPAID_RENEW:过期续费回款 + * 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_ADDITIONAL:补单 \\ > OT_REFUND:删除 \\ > OT_POSTPAID_RENEW:过期 \\ > OT_POSTPAID_PAYMENT:后付费 \\ > OT_RECOVER:删除恢复 */ @UCloudParam("OrderType") private String orderType; - + + + /** - * 计费方式 (筛选项, 默认全部)。枚举值:\\ > Dynamic:按时 \\ > Month:按月 \\ > Year:按年 \\ > Once:一次性按量 \\ > Used:按量 - * \\ > Post:后付费 + * 计费方式 (筛选项, 默认全部)。枚举值:\\ > Year:按年\\ > Month:按月 \\ > Day:按天 \\ > Dynamic:按时 \\ > Used:按量 \\ > Donate:赠送 \\ > Trial:试用 \\ > Post:后付费 \\ > Spot:抢占式 */ @UCloudParam("ChargeType") private String chargeType; - - /** 是否显示0元订单 (0 不显示, 1 显示, 默认0) */ + + + + /** + * 是否显示0元订单 (0 不显示, 1 显示, 默认0) + */ @UCloudParam("ShowZero") private Integer showZero; - - /** 支付状态 (筛选项, 1:仅显示未支付订单; 2:仅显示已支付订单; 0:两者都显示) */ + + + + /** + * 支付状态 (筛选项, 1:仅显示未支付订单; 2:仅显示已支付订单; 0:两者都显示) + */ @UCloudParam("PaidState") private Integer paidState; - - /** 用户邮箱,可以根据用户邮箱来进行筛选 */ + + + + /** + * 用户邮箱,可以根据用户邮箱来进行筛选 + */ @UCloudParam("UserEmail") private String userEmail; - - /** 每页数量,默认值25,最大值:100。 */ + + + + /** + * 每页数量,默认值25,最大值:100。 + */ @UCloudParam("Limit") private Integer limit; - - /** 数据偏移量 (默认0) */ + + + + /** + * 数据偏移量 (默认0) + */ @UCloudParam("Offset") private Integer offset; - + + + /** - * 产品类型 (筛选项, 默认全部), 支持多筛选,多筛选请在请求参数中添加多个字段。枚举值:\\ > uhost:云主机 \\ > udisk:普通云硬盘 \\ > udb:云数据库 \\ - * > eip:弹性IP \\ > ufile:对象存储 \\ > fortress_host:堡垒机 \\ > ufs:文件存储 \\ > waf:WEB应用防火墙 \\ > - * ues:弹性搜索 \\ > udisk_ssd:SSD云硬盘 \\ > rssd:RSSD云硬盘 + * 产品类型 (筛选项, 默认全部), +支持多筛选,多筛选请在请求参数中添加多个字段。枚举值:\\ > uhost:云主机 \\ > udisk:普通云硬盘 \\ > udb:云数据库 \\ > eip:弹性IP \\ > ufile:对象存储 \\ > fortress_host:堡垒机 \\ > ufs:文件存储 \\ > waf:WEB应用防火墙 \\ > ues:弹性搜索 \\ > udisk_ssd:SSD云硬盘 \\ > rssd:RSSD云硬盘 */ @UCloudParam("ResourceTypes") private List resourceTypes; - + + public String getBillingCycle() { return billingCycle; } @@ -87,7 +128,7 @@ public String getBillingCycle() { public void setBillingCycle(String billingCycle) { this.billingCycle = billingCycle; } - + public String getProjectName() { return projectName; } @@ -95,7 +136,7 @@ public String getProjectName() { public void setProjectName(String projectName) { this.projectName = projectName; } - + public List getResourceIds() { return resourceIds; } @@ -103,7 +144,7 @@ public List getResourceIds() { public void setResourceIds(List resourceIds) { this.resourceIds = resourceIds; } - + public String getOrderType() { return orderType; } @@ -111,7 +152,7 @@ public String getOrderType() { public void setOrderType(String orderType) { this.orderType = orderType; } - + public String getChargeType() { return chargeType; } @@ -119,7 +160,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getShowZero() { return showZero; } @@ -127,7 +168,7 @@ public Integer getShowZero() { public void setShowZero(Integer showZero) { this.showZero = showZero; } - + public Integer getPaidState() { return paidState; } @@ -135,7 +176,7 @@ public Integer getPaidState() { public void setPaidState(Integer paidState) { this.paidState = paidState; } - + public String getUserEmail() { return userEmail; } @@ -143,7 +184,7 @@ public String getUserEmail() { public void setUserEmail(String userEmail) { this.userEmail = userEmail; } - + public Integer getLimit() { return limit; } @@ -151,7 +192,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -159,7 +200,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public List getResourceTypes() { return resourceTypes; } @@ -167,4 +208,14 @@ public List getResourceTypes() { public void setResourceTypes(List resourceTypes) { this.resourceTypes = resourceTypes; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailResponse.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailResponse.java index 30ca1510..2e2511b6 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailResponse.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ubill.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUBillDetailResponse extends Response { - /** 账单明细数组 */ + + + /** + * 账单明细数组 + */ @SerializedName("Items") private List items; - - /** 账单明细总长度 */ + + + + /** + * 账单明细总长度 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getItems() { return items; } @@ -36,7 +49,7 @@ public List getItems() { public void setItems(List items) { this.items = items; } - + public Integer getTotalCount() { return totalCount; } @@ -44,324 +57,423 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class BillDetailItem extends Response { + + + /** + * 订单总金额 + */ + @SerializedName("Amount") + private String amount; + + + + /** + * 现金账户支付 + */ + @SerializedName("AmountReal") + private String amountReal; + + + + /** + * 赠送金额抵扣 + */ + @SerializedName("AmountFree") + private String amountFree; + + + + /** + * 代金券抵扣 + */ + @SerializedName("AmountCoupon") + private String amountCoupon; + + + + /** + * 可用区 + */ + @SerializedName("AzGroupCName") + private String azGroupCName; + + + + /** + * 计费方式 (筛选项, 默认全部)。枚举值:\\ > Year:按年\\ > Month:按月 \\ > Day:按天 \\ > Dynamic:按时 \\ > Used:按量 \\ > Donate:赠送 \\ > Trial:试用 \\ > Post:后付费 \\ > Spot:抢占式 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 创建时间(时间戳) + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 开始时间(时间戳) + */ + @SerializedName("StartTime") + private Integer startTime; + + + + /** + * 订单号 + */ + @SerializedName("OrderNo") + private String orderNo; + + + + /** + * 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_ADDITIONAL:补单 \\ > OT_REFUND:删除 \\ > OT_POSTPAID_RENEW:过期 \\ > OT_POSTPAID_PAYMENT:后付费 \\ > OT_RECOVER:删除恢复 + */ + @SerializedName("OrderType") + private String orderType; + + + + /** + * 项目名称 + */ + @SerializedName("ProjectName") + private String projectName; + + + + /** + * 资源ID + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 产品类型。枚举值:\\ > uhost:云主机 \\ > udisk:普通云硬盘 \\ > udb:云数据库 \\ > eip:弹性IP \\ > ufile:对象存储 \\ > fortress_host:堡垒机 \\ > ufs:文件存储 \\ > waf:WEB应用防火墙 \\ > ues:弹性搜索 \\ > udisk_ssd:SSD云硬盘 \\ > rssd:RSSD云硬盘 + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 产品类型代码 + */ + @SerializedName("ResourceTypeCode") + private Integer resourceTypeCode; + + + + /** + * 产品配置 + */ + @SerializedName("ItemDetails") + private List itemDetails; + + + + /** + * 资源标识 + */ + @SerializedName("ResourceExtendInfo") + private List resourceExtendInfo; + + + + /** + * 订单支付状态。枚举值:\\> 0:未支付 \\ > 1:已支付 + */ + @SerializedName("ShowHover") + private Integer showHover; + + + + /** + * 账户邮箱 + */ + @SerializedName("UserEmail") + private String userEmail; + + + + /** + * 账户名 + */ + @SerializedName("UserName") + private String userName; + + + + /** + * 账户昵称 + */ + @SerializedName("UserDisplayName") + private String userDisplayName; + + + + /** + * 是否为主账号。枚举值:\\ > 0:子账号 \\ > 1:主账号 + */ + @SerializedName("Admin") + private Integer admin; + + + public String getAmount() { + return amount; + } - public static class BillDetailItem extends Response { - - /** 订单总金额 */ - @SerializedName("Amount") - private String amount; - - /** 现金账户支付 */ - @SerializedName("AmountReal") - private String amountReal; - - /** 赠送金额抵扣 */ - @SerializedName("AmountFree") - private String amountFree; - - /** 代金券抵扣 */ - @SerializedName("AmountCoupon") - private String amountCoupon; - - /** 可用区 */ - @SerializedName("AzGroupCName") - private String azGroupCName; - - /** - * 计费方式 (筛选项, 默认全部)。枚举值:\\ > Dynamic:按时 \\ > Month:按月 \\ > Year:按年 \\ > Once:一次性按量 \\ > - * Used:按量 \\ > Post:后付费 - */ - @SerializedName("ChargeType") - private String chargeType; - - /** 创建时间(时间戳) */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 开始时间(时间戳) */ - @SerializedName("StartTime") - private Integer startTime; - - /** 订单号 */ - @SerializedName("OrderNo") - private String orderNo; - - /** - * 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > - * OT_REFUND:退费 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_PAYMENT:删除资源回款 \\ > - * OT_POSTPAID_PAYMENT:后付费回款 \\ > OT_RECOVER:删除恢复 \\ > OT_POSTPAID_RENEW:过期续费回款 - */ - @SerializedName("OrderType") - private String orderType; - - /** 项目名称 */ - @SerializedName("ProjectName") - private String projectName; - - /** 资源ID */ - @SerializedName("ResourceId") - private String resourceId; - - /** - * 产品类型。枚举值:\\ > uhost:云主机 \\ > udisk:普通云硬盘 \\ > udb:云数据库 \\ > eip:弹性IP \\ > ufile:对象存储 \\ > - * fortress_host:堡垒机 \\ > ufs:文件存储 \\ > waf:WEB应用防火墙 \\ > ues:弹性搜索 \\ > udisk_ssd:SSD云硬盘 \\ - * > rssd:RSSD云硬盘 - */ - @SerializedName("ResourceType") - private String resourceType; - - /** 产品类型代码 */ - @SerializedName("ResourceTypeCode") - private Integer resourceTypeCode; - - /** 产品配置 */ - @SerializedName("ItemDetails") - private List itemDetails; - - /** 资源标识 */ - @SerializedName("ResourceExtendInfo") - private List resourceExtendInfo; - - /** 订单支付状态。枚举值:\\> 0:未支付 \\ > 1:已支付 */ - @SerializedName("ShowHover") - private Integer showHover; - - /** 账户邮箱 */ - @SerializedName("UserEmail") - private String userEmail; - - /** 账户名 */ - @SerializedName("UserName") - private String userName; - - /** 账户昵称 */ - @SerializedName("UserDisplayName") - private String userDisplayName; - - /** 是否为主账号。枚举值:\\ > 0:子账号 \\ > 1:主账号 */ - @SerializedName("Admin") - private Integer admin; - - public String getAmount() { - return amount; - } - - public void setAmount(String amount) { - this.amount = amount; - } - - public String getAmountReal() { - return amountReal; - } - - public void setAmountReal(String amountReal) { - this.amountReal = amountReal; - } - - public String getAmountFree() { - return amountFree; - } - - public void setAmountFree(String amountFree) { - this.amountFree = amountFree; - } - - public String getAmountCoupon() { - return amountCoupon; - } - - public void setAmountCoupon(String amountCoupon) { - this.amountCoupon = amountCoupon; - } - - public String getAzGroupCName() { - return azGroupCName; - } - - public void setAzGroupCName(String azGroupCName) { - this.azGroupCName = azGroupCName; - } - - public String getChargeType() { - return chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public Integer getStartTime() { - return startTime; - } - - public void setStartTime(Integer startTime) { - this.startTime = startTime; - } - - public String getOrderNo() { - return orderNo; - } - - public void setOrderNo(String orderNo) { - this.orderNo = orderNo; - } - - public String getOrderType() { - return orderType; - } - - public void setOrderType(String orderType) { - this.orderType = orderType; - } - - public String getProjectName() { - return projectName; - } - - public void setProjectName(String projectName) { - this.projectName = projectName; - } - - public String getResourceId() { - return resourceId; - } + public void setAmount(String amount) { + this.amount = amount; + } + + public String getAmountReal() { + return amountReal; + } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } + public void setAmountReal(String amountReal) { + this.amountReal = amountReal; + } + + public String getAmountFree() { + return amountFree; + } - public String getResourceType() { - return resourceType; - } + public void setAmountFree(String amountFree) { + this.amountFree = amountFree; + } + + public String getAmountCoupon() { + return amountCoupon; + } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } + public void setAmountCoupon(String amountCoupon) { + this.amountCoupon = amountCoupon; + } + + public String getAzGroupCName() { + return azGroupCName; + } - public Integer getResourceTypeCode() { - return resourceTypeCode; - } + public void setAzGroupCName(String azGroupCName) { + this.azGroupCName = azGroupCName; + } + + public String getChargeType() { + return chargeType; + } - public void setResourceTypeCode(Integer resourceTypeCode) { - this.resourceTypeCode = resourceTypeCode; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getCreateTime() { + return createTime; + } - public List getItemDetails() { - return itemDetails; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getStartTime() { + return startTime; + } - public void setItemDetails(List itemDetails) { - this.itemDetails = itemDetails; - } + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public String getOrderNo() { + return orderNo; + } - public List getResourceExtendInfo() { - return resourceExtendInfo; - } + public void setOrderNo(String orderNo) { + this.orderNo = orderNo; + } + + public String getOrderType() { + return orderType; + } - public void setResourceExtendInfo(List resourceExtendInfo) { - this.resourceExtendInfo = resourceExtendInfo; - } + public void setOrderType(String orderType) { + this.orderType = orderType; + } + + public String getProjectName() { + return projectName; + } - public Integer getShowHover() { - return showHover; - } + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public String getResourceId() { + return resourceId; + } - public void setShowHover(Integer showHover) { - this.showHover = showHover; - } + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceType() { + return resourceType; + } - public String getUserEmail() { - return userEmail; - } + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public Integer getResourceTypeCode() { + return resourceTypeCode; + } - public void setUserEmail(String userEmail) { - this.userEmail = userEmail; - } + public void setResourceTypeCode(Integer resourceTypeCode) { + this.resourceTypeCode = resourceTypeCode; + } + + public List getItemDetails() { + return itemDetails; + } - public String getUserName() { - return userName; - } + public void setItemDetails(List itemDetails) { + this.itemDetails = itemDetails; + } + + public List getResourceExtendInfo() { + return resourceExtendInfo; + } - public void setUserName(String userName) { - this.userName = userName; - } + public void setResourceExtendInfo(List resourceExtendInfo) { + this.resourceExtendInfo = resourceExtendInfo; + } + + public Integer getShowHover() { + return showHover; + } - public String getUserDisplayName() { - return userDisplayName; - } + public void setShowHover(Integer showHover) { + this.showHover = showHover; + } + + public String getUserEmail() { + return userEmail; + } - public void setUserDisplayName(String userDisplayName) { - this.userDisplayName = userDisplayName; - } + public void setUserEmail(String userEmail) { + this.userEmail = userEmail; + } + + public String getUserName() { + return userName; + } - public Integer getAdmin() { - return admin; - } + public void setUserName(String userName) { + this.userName = userName; + } + + public String getUserDisplayName() { + return userDisplayName; + } - public void setAdmin(Integer admin) { - this.admin = admin; - } + public void setUserDisplayName(String userDisplayName) { + this.userDisplayName = userDisplayName; + } + + public Integer getAdmin() { + return admin; } - public static class ItemDetail extends Response { + public void setAdmin(Integer admin) { + this.admin = admin; + } + + } + public static class ItemDetail extends Response { + + + /** + * 产品小类名称 + */ + @SerializedName("ProductName") + private String productName; + + + + /** + * 产品小类规格 + */ + @SerializedName("Value") + private String value; + + + public String getProductName() { + return productName; + } - /** 产品小类名称 */ - @SerializedName("ProductName") - private String productName; + public void setProductName(String productName) { + this.productName = productName; + } + + public String getValue() { + return value; + } - /** 产品小类规格 */ - @SerializedName("Value") - private String value; + public void setValue(String value) { + this.value = value; + } + + } + public static class ResourceExtendInfo extends Response { + + + /** + * 资源标识健 + */ + @SerializedName("KeyId") + private String keyId; + + + + /** + * 资源标识值 + */ + @SerializedName("Value") + private String value; + + + public String getKeyId() { + return keyId; + } - public String getProductName() { - return productName; - } + public void setKeyId(String keyId) { + this.keyId = keyId; + } + + public String getValue() { + return value; + } - public void setProductName(String productName) { - this.productName = productName; + public void setValue(String value) { + this.value = value; + } + } +} - public String getValue() { - return value; - } - public void setValue(String value) { - this.value = value; - } - } - public static class ResourceExtendInfo extends Response { - /** 资源标识健 */ - @SerializedName("KeyId") - private String keyId; - /** 资源标识值 */ - @SerializedName("Value") - private String value; - public String getKeyId() { - return keyId; - } - public void setKeyId(String keyId) { - this.keyId = keyId; - } - public String getValue() { - return value; - } - public void setValue(String value) { - this.value = value; - } - } -} diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillOverviewRequest.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillOverviewRequest.java index eccf4310..216d9d5e 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillOverviewRequest.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillOverviewRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ubill.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUBillOverviewRequest extends Request { - /** 账期,YYYY-MM格式,例如2022-02,只支持2018-05之后的查询 */ + + + /** + * 账期,YYYY-MM格式,例如2022-02,只支持2018-05之后的查询 + */ @NotEmpty @UCloudParam("BillingCycle") private String billingCycle; - - /** 账单维度, product 按产品聚合,project 按项目聚合,user 按子账号聚合 */ + + + + /** + * 账单维度, product 按产品聚合,project 按项目聚合,user 按子账号聚合 + */ @NotEmpty @UCloudParam("Dimension") private String dimension; - - /** 是否显示已入账账单, 1 已入账, 0 待入账 (默认0 ) */ + + + + /** + * 是否显示已入账账单, 1 已入账, 0 待入账 (默认0 ) + */ @UCloudParam("HideUnpaid") private Integer hideUnpaid; - + + public String getBillingCycle() { return billingCycle; } @@ -41,7 +59,7 @@ public String getBillingCycle() { public void setBillingCycle(String billingCycle) { this.billingCycle = billingCycle; } - + public String getDimension() { return dimension; } @@ -49,7 +67,7 @@ public String getDimension() { public void setDimension(String dimension) { this.dimension = dimension; } - + public Integer getHideUnpaid() { return hideUnpaid; } @@ -57,4 +75,14 @@ public Integer getHideUnpaid() { public void setHideUnpaid(Integer hideUnpaid) { this.hideUnpaid = hideUnpaid; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillOverviewResponse.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillOverviewResponse.java index 9fa418e9..12da9613 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillOverviewResponse.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillOverviewResponse.java @@ -1,46 +1,71 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ubill.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUBillOverviewResponse extends Response { - /** 账单总览数据总数 */ + + + /** + * 账单总览数据总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 已入账订单总额(已入账时显示) */ + + + + /** + * 已入账订单总额(已入账时显示) + */ @SerializedName("TotalPaidAmount") private String totalPaidAmount; - - /** 现金账户扣款总额 (已入账时显示) */ + + + + /** + * 现金账户扣款总额 (已入账时显示) + */ @SerializedName("TotalPaidAmountReal") private String totalPaidAmountReal; - - /** 待入账订单总额(待入账时显示) */ + + + + /** + * 待入账订单总额(待入账时显示) + */ @SerializedName("TotalUnpaidAmount") private String totalUnpaidAmount; - - /** 账单聚合数据 */ + + + + /** + * 账单聚合数据 + */ @SerializedName("Items") private List items; - + + public Integer getTotalCount() { return totalCount; } @@ -48,7 +73,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public String getTotalPaidAmount() { return totalPaidAmount; } @@ -56,7 +81,7 @@ public String getTotalPaidAmount() { public void setTotalPaidAmount(String totalPaidAmount) { this.totalPaidAmount = totalPaidAmount; } - + public String getTotalPaidAmountReal() { return totalPaidAmountReal; } @@ -64,7 +89,7 @@ public String getTotalPaidAmountReal() { public void setTotalPaidAmountReal(String totalPaidAmountReal) { this.totalPaidAmountReal = totalPaidAmountReal; } - + public String getTotalUnpaidAmount() { return totalUnpaidAmount; } @@ -72,7 +97,7 @@ public String getTotalUnpaidAmount() { public void setTotalUnpaidAmount(String totalUnpaidAmount) { this.totalUnpaidAmount = totalUnpaidAmount; } - + public List getItems() { return items; } @@ -80,163 +105,225 @@ public List getItems() { public void setItems(List items) { this.items = items; } + + public static class BillOverviewItem extends Response { + + + /** + * 账单维度, product 按产品维度聚合,project 按项目维度聚合,user 按子账号维度聚合 + */ + @SerializedName("Dimension") + private String dimension; + + + + /** + * 订单总金额 + */ + @SerializedName("Amount") + private String amount; + + + + /** + * 代金券抵扣(已入账时显示) + */ + @SerializedName("AmountCoupon") + private String amountCoupon; + + + + /** + * 赠送金额抵扣(已入账时显示) + */ + @SerializedName("AmountFree") + private String amountFree; + + + + /** + * 现金账户支付(已入账时显示) + */ + @SerializedName("AmountReal") + private String amountReal; + + + + /** + * 产品分类 (账单维度按产品筛选时显示) + */ + @SerializedName("ProductCategory") + private String productCategory; + + + + /** + * 产品类型 (账单维度按产品筛选时显示) + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 产品类型代码(账单维度按产品筛选时显示) + */ + @SerializedName("ResourceTypeCode") + private Integer resourceTypeCode; + + + + /** + * 项目名称(账单维度按项目筛选时显示) + */ + @SerializedName("ProjectName") + private String projectName; + + + + /** + * 账户邮箱(账单维度按子账号筛选时显示) + */ + @SerializedName("UserEmail") + private String userEmail; + + + + /** + * 账户名 (账单维度按子账号筛选时显示) + */ + @SerializedName("UserName") + private String userName; + + + + /** + * 账户昵称(账单维度按子账号筛选时显示) + */ + @SerializedName("UserDisplayName") + private String userDisplayName; + + + + /** + * 该账户是否为主账号,1 主账号,0 子账号(账单维度按子账号筛选时显示) + */ + @SerializedName("Admin") + private Integer admin; + + + public String getDimension() { + return dimension; + } - public static class BillOverviewItem extends Response { - - /** 账单维度, product 按产品维度聚合,project 按项目维度聚合,user 按子账号维度聚合 */ - @SerializedName("Dimension") - private String dimension; - - /** 订单总金额 */ - @SerializedName("Amount") - private String amount; - - /** 代金券抵扣(已入账时显示) */ - @SerializedName("AmountCoupon") - private String amountCoupon; - - /** 赠送金额抵扣(已入账时显示) */ - @SerializedName("AmountFree") - private String amountFree; - - /** 现金账户支付(已入账时显示) */ - @SerializedName("AmountReal") - private String amountReal; - - /** 产品分类 (账单维度按产品筛选时显示) */ - @SerializedName("ProductCategory") - private String productCategory; - - /** 产品类型 (账单维度按产品筛选时显示) */ - @SerializedName("ResourceType") - private String resourceType; - - /** 产品类型代码(账单维度按产品筛选时显示) */ - @SerializedName("ResourceTypeCode") - private Integer resourceTypeCode; - - /** 项目名称(账单维度按项目筛选时显示) */ - @SerializedName("ProjectName") - private String projectName; - - /** 账户邮箱(账单维度按子账号筛选时显示) */ - @SerializedName("UserEmail") - private String userEmail; - - /** 账户名 (账单维度按子账号筛选时显示) */ - @SerializedName("UserName") - private String userName; - - /** 账户昵称(账单维度按子账号筛选时显示) */ - @SerializedName("UserDisplayName") - private String userDisplayName; - - /** 该账户是否为主账号,1 主账号,0 子账号(账单维度按子账号筛选时显示) */ - @SerializedName("Admin") - private Integer admin; - - public String getDimension() { - return dimension; - } - - public void setDimension(String dimension) { - this.dimension = dimension; - } - - public String getAmount() { - return amount; - } - - public void setAmount(String amount) { - this.amount = amount; - } - - public String getAmountCoupon() { - return amountCoupon; - } + public void setDimension(String dimension) { + this.dimension = dimension; + } + + public String getAmount() { + return amount; + } - public void setAmountCoupon(String amountCoupon) { - this.amountCoupon = amountCoupon; - } + public void setAmount(String amount) { + this.amount = amount; + } + + public String getAmountCoupon() { + return amountCoupon; + } - public String getAmountFree() { - return amountFree; - } + public void setAmountCoupon(String amountCoupon) { + this.amountCoupon = amountCoupon; + } + + public String getAmountFree() { + return amountFree; + } - public void setAmountFree(String amountFree) { - this.amountFree = amountFree; - } + public void setAmountFree(String amountFree) { + this.amountFree = amountFree; + } + + public String getAmountReal() { + return amountReal; + } - public String getAmountReal() { - return amountReal; - } + public void setAmountReal(String amountReal) { + this.amountReal = amountReal; + } + + public String getProductCategory() { + return productCategory; + } - public void setAmountReal(String amountReal) { - this.amountReal = amountReal; - } + public void setProductCategory(String productCategory) { + this.productCategory = productCategory; + } + + public String getResourceType() { + return resourceType; + } - public String getProductCategory() { - return productCategory; - } + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public Integer getResourceTypeCode() { + return resourceTypeCode; + } - public void setProductCategory(String productCategory) { - this.productCategory = productCategory; - } + public void setResourceTypeCode(Integer resourceTypeCode) { + this.resourceTypeCode = resourceTypeCode; + } + + public String getProjectName() { + return projectName; + } - public String getResourceType() { - return resourceType; - } + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public String getUserEmail() { + return userEmail; + } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } + public void setUserEmail(String userEmail) { + this.userEmail = userEmail; + } + + public String getUserName() { + return userName; + } - public Integer getResourceTypeCode() { - return resourceTypeCode; - } + public void setUserName(String userName) { + this.userName = userName; + } + + public String getUserDisplayName() { + return userDisplayName; + } - public void setResourceTypeCode(Integer resourceTypeCode) { - this.resourceTypeCode = resourceTypeCode; - } + public void setUserDisplayName(String userDisplayName) { + this.userDisplayName = userDisplayName; + } + + public Integer getAdmin() { + return admin; + } - public String getProjectName() { - return projectName; + public void setAdmin(Integer admin) { + this.admin = admin; + } + } +} - public void setProjectName(String projectName) { - this.projectName = projectName; - } - public String getUserEmail() { - return userEmail; - } - public void setUserEmail(String userEmail) { - this.userEmail = userEmail; - } - public String getUserName() { - return userName; - } - public void setUserName(String userName) { - this.userName = userName; - } - public String getUserDisplayName() { - return userDisplayName; - } - public void setUserDisplayName(String userDisplayName) { - this.userDisplayName = userDisplayName; - } - public Integer getAdmin() { - return admin; - } - public void setAdmin(Integer admin) { - this.admin = admin; - } - } -} diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ModifyAutoRenewFlagRequest.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ModifyAutoRenewFlagRequest.java index 3ca6c7a6..fadca418 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ModifyAutoRenewFlagRequest.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ModifyAutoRenewFlagRequest.java @@ -1,35 +1,51 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ubill.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyAutoRenewFlagRequest extends Request { - /** 开关标识(TURN_ON: 打开; TURN_OFF: 关闭) */ + + + /** + * 开关标识(TURN_ON: 打开; TURN_OFF: 关闭) + */ @NotEmpty @UCloudParam("Flag") private String flag; - - /** 资源ID */ + + + + /** + * 资源ID + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - + + + + public String getFlag() { return flag; } @@ -37,7 +53,7 @@ public String getFlag() { public void setFlag(String flag) { this.flag = flag; } - + public String getResourceId() { return resourceId; } @@ -45,4 +61,15 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ModifyAutoRenewFlagResponse.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ModifyAutoRenewFlagResponse.java index 67370db7..d0220402 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ModifyAutoRenewFlagResponse.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ModifyAutoRenewFlagResponse.java @@ -1,38 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ubill.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ModifyAutoRenewFlagResponse extends Response { - /** 操作成功资源数量 */ + + + /** + * 操作成功资源数量 + */ @SerializedName("Success") private Integer success; - - /** 操作失败资源数量 */ + + + + /** + * 操作失败资源数量 + */ @SerializedName("Fail") private Integer fail; - - /** 开关资源自动续费结果数组 */ + + + + /** + * 开关资源自动续费结果数组 + */ @SerializedName("ResultSet") private List resultSet; - + + public Integer getSuccess() { return success; } @@ -40,7 +57,7 @@ public Integer getSuccess() { public void setSuccess(Integer success) { this.success = success; } - + public Integer getFail() { return fail; } @@ -48,7 +65,7 @@ public Integer getFail() { public void setFail(Integer fail) { this.fail = fail; } - + public List getResultSet() { return resultSet; } @@ -56,43 +73,65 @@ public List getResultSet() { public void setResultSet(List resultSet) { this.resultSet = resultSet; } + + public static class ResultSet extends Response { + + + /** + * 续费结果(0:成功,失败返回错误码) + */ + @SerializedName("RetCode") + private Integer retCode; + + + + /** + * 错误信息描述 + */ + @SerializedName("Message") + private String message; + + + + /** + * 资源ID + */ + @SerializedName("ResourceId") + private String resourceId; + + + public Integer getRetCode() { + return retCode; + } - public static class ResultSet extends Response { + public void setRetCode(Integer retCode) { + this.retCode = retCode; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + } +} - /** 续费结果(0:成功,失败返回错误码) */ - @SerializedName("RetCode") - private Integer retCode; - /** 错误信息描述 */ - @SerializedName("Message") - private String message; - /** 资源ID */ - @SerializedName("ResourceId") - private String resourceId; - public Integer getRetCode() { - return retCode; - } - public void setRetCode(Integer retCode) { - this.retCode = retCode; - } - public String getMessage() { - return message; - } - public void setMessage(String message) { - this.message = message; - } - public String getResourceId() { - return resourceId; - } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - } -} diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index 13f45b95..82749d91 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-ucdn - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClient.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClient.java index d4e84455..ad81c1a9 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClient.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.ucdn.client; @@ -17,453 +19,642 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.ucdn.models.AddCertificateRequest; import cn.ucloud.ucdn.models.AddCertificateResponse; + + + import cn.ucloud.ucdn.models.ControlUcdnDomainCacheAccessRequest; import cn.ucloud.ucdn.models.ControlUcdnDomainCacheAccessResponse; + + + import cn.ucloud.ucdn.models.DeleteCertificateRequest; import cn.ucloud.ucdn.models.DeleteCertificateResponse; + + + import cn.ucloud.ucdn.models.DescribeNewUcdnPrefetchCacheTaskRequest; import cn.ucloud.ucdn.models.DescribeNewUcdnPrefetchCacheTaskResponse; + + + import cn.ucloud.ucdn.models.DescribeNewUcdnRefreshCacheTaskRequest; import cn.ucloud.ucdn.models.DescribeNewUcdnRefreshCacheTaskResponse; + + + import cn.ucloud.ucdn.models.GetAuthConfigRequest; import cn.ucloud.ucdn.models.GetAuthConfigResponse; + + + import cn.ucloud.ucdn.models.GetCertificateV2Request; import cn.ucloud.ucdn.models.GetCertificateV2Response; + + + import cn.ucloud.ucdn.models.GetNewUcdnDomainHitRateRequest; import cn.ucloud.ucdn.models.GetNewUcdnDomainHitRateResponse; + + + import cn.ucloud.ucdn.models.GetNewUcdnLogRefererStatisticsRequest; import cn.ucloud.ucdn.models.GetNewUcdnLogRefererStatisticsResponse; + + + import cn.ucloud.ucdn.models.GetNewUcdnLogUrlStatisticsRequest; import cn.ucloud.ucdn.models.GetNewUcdnLogUrlStatisticsResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomain95BandwidthV2Request; import cn.ucloud.ucdn.models.GetUcdnDomain95BandwidthV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnDomainBandwidthByIpProtocolRequest; import cn.ucloud.ucdn.models.GetUcdnDomainBandwidthByIpProtocolResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomainBandwidthV2Request; import cn.ucloud.ucdn.models.GetUcdnDomainBandwidthV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnDomainConfigRequest; import cn.ucloud.ucdn.models.GetUcdnDomainConfigResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomainHitRateRequest; import cn.ucloud.ucdn.models.GetUcdnDomainHitRateResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomainHttpCodeV2Request; import cn.ucloud.ucdn.models.GetUcdnDomainHttpCodeV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnDomainInfoListRequest; import cn.ucloud.ucdn.models.GetUcdnDomainInfoListResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomainLogV2Request; import cn.ucloud.ucdn.models.GetUcdnDomainLogV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnDomainOriginRequestNumRequest; import cn.ucloud.ucdn.models.GetUcdnDomainOriginRequestNumResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomainPrefetchEnableRequest; import cn.ucloud.ucdn.models.GetUcdnDomainPrefetchEnableResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomainRequestNumV3Request; import cn.ucloud.ucdn.models.GetUcdnDomainRequestNumV3Response; + + + import cn.ucloud.ucdn.models.GetUcdnPassBandwidthV2Request; import cn.ucloud.ucdn.models.GetUcdnPassBandwidthV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnProIspBandwidthV2Request; import cn.ucloud.ucdn.models.GetUcdnProIspBandwidthV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnProIspRequestNumV2Request; import cn.ucloud.ucdn.models.GetUcdnProIspRequestNumV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnTrafficV2Request; import cn.ucloud.ucdn.models.GetUcdnTrafficV2Response; + + + import cn.ucloud.ucdn.models.PrefetchNewUcdnDomainCacheRequest; import cn.ucloud.ucdn.models.PrefetchNewUcdnDomainCacheResponse; + + + import cn.ucloud.ucdn.models.QueryIpLocationRequest; import cn.ucloud.ucdn.models.QueryIpLocationResponse; + + + import cn.ucloud.ucdn.models.RefreshNewUcdnDomainCacheRequest; import cn.ucloud.ucdn.models.RefreshNewUcdnDomainCacheResponse; + + + import cn.ucloud.ucdn.models.SwitchUcdnChargeTypeRequest; import cn.ucloud.ucdn.models.SwitchUcdnChargeTypeResponse; + + + import cn.ucloud.ucdn.models.UpdateUcdnDomainStatusRequest; import cn.ucloud.ucdn.models.UpdateUcdnDomainStatusResponse; -/** This client is used to call actions of **UCDN** service */ +/** + * This client is used to call actions of **UCDN** service + */ public class UCDNClient extends DefaultClient implements UCDNClientInterface { public UCDNClient(Config config, Credential credential) { super(config, credential); } - - /** - * AddCertificate - 添加证书 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AddCertificateResponse addCertificate(AddCertificateRequest request) - throws UCloudException { - request.setAction("AddCertificate"); - return (AddCertificateResponse) this.invoke(request, AddCertificateResponse.class); - } - - /** - * ControlUcdnDomainCacheAccess - 封禁解封缓存访问 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ControlUcdnDomainCacheAccessResponse controlUcdnDomainCacheAccess( - ControlUcdnDomainCacheAccessRequest request) throws UCloudException { - request.setAction("ControlUcdnDomainCacheAccess"); - return (ControlUcdnDomainCacheAccessResponse) - this.invoke(request, ControlUcdnDomainCacheAccessResponse.class); - } - - /** - * DeleteCertificate - 删除证书 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteCertificateResponse deleteCertificate(DeleteCertificateRequest request) - throws UCloudException { - request.setAction("DeleteCertificate"); - return (DeleteCertificateResponse) this.invoke(request, DeleteCertificateResponse.class); - } - - /** - * DescribeNewUcdnPrefetchCacheTask - 获取预取任务状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeNewUcdnPrefetchCacheTaskResponse describeNewUcdnPrefetchCacheTask( - DescribeNewUcdnPrefetchCacheTaskRequest request) throws UCloudException { - request.setAction("DescribeNewUcdnPrefetchCacheTask"); - return (DescribeNewUcdnPrefetchCacheTaskResponse) - this.invoke(request, DescribeNewUcdnPrefetchCacheTaskResponse.class); - } - - /** - * DescribeNewUcdnRefreshCacheTask - 获取域名刷新任务状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeNewUcdnRefreshCacheTaskResponse describeNewUcdnRefreshCacheTask( - DescribeNewUcdnRefreshCacheTaskRequest request) throws UCloudException { - request.setAction("DescribeNewUcdnRefreshCacheTask"); - return (DescribeNewUcdnRefreshCacheTaskResponse) - this.invoke(request, DescribeNewUcdnRefreshCacheTaskResponse.class); - } - - /** - * GetAuthConfig - 接口获取鉴权信息(非标使用) - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetAuthConfigResponse getAuthConfig(GetAuthConfigRequest request) - throws UCloudException { - request.setAction("GetAuthConfig"); - return (GetAuthConfigResponse) this.invoke(request, GetAuthConfigResponse.class); - } - - /** - * GetCertificateV2 - 获取证书 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetCertificateV2Response getCertificateV2(GetCertificateV2Request request) - throws UCloudException { - request.setAction("GetCertificateV2"); - return (GetCertificateV2Response) this.invoke(request, GetCertificateV2Response.class); - } - - /** - * GetNewUcdnDomainHitRate - 获取域名命中率 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetNewUcdnDomainHitRateResponse getNewUcdnDomainHitRate( - GetNewUcdnDomainHitRateRequest request) throws UCloudException { - request.setAction("GetNewUcdnDomainHitRate"); - return (GetNewUcdnDomainHitRateResponse) - this.invoke(request, GetNewUcdnDomainHitRateResponse.class); - } - - /** - * GetNewUcdnLogRefererStatistics - 获取热点referer统计 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetNewUcdnLogRefererStatisticsResponse getNewUcdnLogRefererStatistics( - GetNewUcdnLogRefererStatisticsRequest request) throws UCloudException { - request.setAction("GetNewUcdnLogRefererStatistics"); - return (GetNewUcdnLogRefererStatisticsResponse) - this.invoke(request, GetNewUcdnLogRefererStatisticsResponse.class); - } - - /** - * GetNewUcdnLogUrlStatistics - 获取日志url统计 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetNewUcdnLogUrlStatisticsResponse getNewUcdnLogUrlStatistics( - GetNewUcdnLogUrlStatisticsRequest request) throws UCloudException { - request.setAction("GetNewUcdnLogUrlStatistics"); - return (GetNewUcdnLogUrlStatisticsResponse) - this.invoke(request, GetNewUcdnLogUrlStatisticsResponse.class); - } - - /** - * GetUcdnDomain95BandwidthV2 - 获取域名九五峰值带宽数据【新】 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnDomain95BandwidthV2Response getUcdnDomain95BandwidthV2( - GetUcdnDomain95BandwidthV2Request request) throws UCloudException { - request.setAction("GetUcdnDomain95BandwidthV2"); - return (GetUcdnDomain95BandwidthV2Response) - this.invoke(request, GetUcdnDomain95BandwidthV2Response.class); - } - - /** - * GetUcdnDomainBandwidthByIpProtocol - 获取域名带宽数据按ip协议【新】 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnDomainBandwidthByIpProtocolResponse getUcdnDomainBandwidthByIpProtocol( - GetUcdnDomainBandwidthByIpProtocolRequest request) throws UCloudException { - request.setAction("GetUcdnDomainBandwidthByIpProtocol"); - return (GetUcdnDomainBandwidthByIpProtocolResponse) - this.invoke(request, GetUcdnDomainBandwidthByIpProtocolResponse.class); - } - - /** - * GetUcdnDomainBandwidthV2 - 获取域名带宽数据【新】 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnDomainBandwidthV2Response getUcdnDomainBandwidthV2( - GetUcdnDomainBandwidthV2Request request) throws UCloudException { - request.setAction("GetUcdnDomainBandwidthV2"); - return (GetUcdnDomainBandwidthV2Response) - this.invoke(request, GetUcdnDomainBandwidthV2Response.class); - } - - /** - * GetUcdnDomainConfig - 批量获取加速域名配置 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnDomainConfigResponse getUcdnDomainConfig(GetUcdnDomainConfigRequest request) - throws UCloudException { - request.setAction("GetUcdnDomainConfig"); - return (GetUcdnDomainConfigResponse) - this.invoke(request, GetUcdnDomainConfigResponse.class); - } - - /** - * GetUcdnDomainHitRate - 获取域名命中率(新) - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnDomainHitRateResponse getUcdnDomainHitRate(GetUcdnDomainHitRateRequest request) - throws UCloudException { - request.setAction("GetUcdnDomainHitRate"); - return (GetUcdnDomainHitRateResponse) - this.invoke(request, GetUcdnDomainHitRateResponse.class); - } - - /** - * GetUcdnDomainHttpCodeV2 - 获取域名状态码信息【新】 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnDomainHttpCodeV2Response getUcdnDomainHttpCodeV2( - GetUcdnDomainHttpCodeV2Request request) throws UCloudException { - request.setAction("GetUcdnDomainHttpCodeV2"); - return (GetUcdnDomainHttpCodeV2Response) - this.invoke(request, GetUcdnDomainHttpCodeV2Response.class); - } - - /** - * GetUcdnDomainInfoList - 获取域名基本信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnDomainInfoListResponse getUcdnDomainInfoList(GetUcdnDomainInfoListRequest request) - throws UCloudException { - request.setAction("GetUcdnDomainInfoList"); - return (GetUcdnDomainInfoListResponse) - this.invoke(request, GetUcdnDomainInfoListResponse.class); - } - - /** - * GetUcdnDomainLogV2 - 获取域名5分钟日志 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnDomainLogV2Response getUcdnDomainLogV2(GetUcdnDomainLogV2Request request) - throws UCloudException { - request.setAction("GetUcdnDomainLogV2"); - return (GetUcdnDomainLogV2Response) this.invoke(request, GetUcdnDomainLogV2Response.class); - } - - /** - * GetUcdnDomainOriginRequestNum - 获取域名回源请求数【新】 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnDomainOriginRequestNumResponse getUcdnDomainOriginRequestNum( - GetUcdnDomainOriginRequestNumRequest request) throws UCloudException { - request.setAction("GetUcdnDomainOriginRequestNum"); - return (GetUcdnDomainOriginRequestNumResponse) - this.invoke(request, GetUcdnDomainOriginRequestNumResponse.class); - } - - /** - * GetUcdnDomainPrefetchEnable - 获取域名预取开启状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnDomainPrefetchEnableResponse getUcdnDomainPrefetchEnable( - GetUcdnDomainPrefetchEnableRequest request) throws UCloudException { - request.setAction("GetUcdnDomainPrefetchEnable"); - return (GetUcdnDomainPrefetchEnableResponse) - this.invoke(request, GetUcdnDomainPrefetchEnableResponse.class); - } - - /** - * GetUcdnDomainRequestNumV3 - 获取域名请求数【新】 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnDomainRequestNumV3Response getUcdnDomainRequestNumV3( - GetUcdnDomainRequestNumV3Request request) throws UCloudException { - request.setAction("GetUcdnDomainRequestNumV3"); - return (GetUcdnDomainRequestNumV3Response) - this.invoke(request, GetUcdnDomainRequestNumV3Response.class); - } - - /** - * GetUcdnPassBandwidthV2 - 获取回源带宽数据(按时间分类)【新】 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnPassBandwidthV2Response getUcdnPassBandwidthV2( - GetUcdnPassBandwidthV2Request request) throws UCloudException { - request.setAction("GetUcdnPassBandwidthV2"); - return (GetUcdnPassBandwidthV2Response) - this.invoke(request, GetUcdnPassBandwidthV2Response.class); - } - - /** - * GetUcdnProIspBandwidthV2 - 按省份运营商获取域名带宽数据【新】 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnProIspBandwidthV2Response getUcdnProIspBandwidthV2( - GetUcdnProIspBandwidthV2Request request) throws UCloudException { - request.setAction("GetUcdnProIspBandwidthV2"); - return (GetUcdnProIspBandwidthV2Response) - this.invoke(request, GetUcdnProIspBandwidthV2Response.class); - } - - /** - * GetUcdnProIspRequestNumV2 - 按省份运营商获取域名请求数【新】 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnProIspRequestNumV2Response getUcdnProIspRequestNumV2( - GetUcdnProIspRequestNumV2Request request) throws UCloudException { - request.setAction("GetUcdnProIspRequestNumV2"); - return (GetUcdnProIspRequestNumV2Response) - this.invoke(request, GetUcdnProIspRequestNumV2Response.class); - } - - /** - * GetUcdnTrafficV2 - 获取账户总流量信息【新】 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUcdnTrafficV2Response getUcdnTrafficV2(GetUcdnTrafficV2Request request) - throws UCloudException { - request.setAction("GetUcdnTrafficV2"); - return (GetUcdnTrafficV2Response) this.invoke(request, GetUcdnTrafficV2Response.class); - } - - /** - * PrefetchNewUcdnDomainCache - 提交预取任务 - * - * @param request Request object - * @throws UCloudException Exception - */ - public PrefetchNewUcdnDomainCacheResponse prefetchNewUcdnDomainCache( - PrefetchNewUcdnDomainCacheRequest request) throws UCloudException { - request.setAction("PrefetchNewUcdnDomainCache"); - return (PrefetchNewUcdnDomainCacheResponse) - this.invoke(request, PrefetchNewUcdnDomainCacheResponse.class); - } - - /** - * QueryIpLocation - 查询IP信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public QueryIpLocationResponse queryIpLocation(QueryIpLocationRequest request) - throws UCloudException { - request.setAction("QueryIpLocation"); - return (QueryIpLocationResponse) this.invoke(request, QueryIpLocationResponse.class); - } - - /** - * RefreshNewUcdnDomainCache - 刷新缓存 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RefreshNewUcdnDomainCacheResponse refreshNewUcdnDomainCache( - RefreshNewUcdnDomainCacheRequest request) throws UCloudException { - request.setAction("RefreshNewUcdnDomainCache"); - return (RefreshNewUcdnDomainCacheResponse) - this.invoke(request, RefreshNewUcdnDomainCacheResponse.class); - } - - /** - * SwitchUcdnChargeType - 切换账号计费方式 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SwitchUcdnChargeTypeResponse switchUcdnChargeType(SwitchUcdnChargeTypeRequest request) - throws UCloudException { - request.setAction("SwitchUcdnChargeType"); - return (SwitchUcdnChargeTypeResponse) - this.invoke(request, SwitchUcdnChargeTypeResponse.class); - } - - /** - * UpdateUcdnDomainStatus - 更新加速域名状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUcdnDomainStatusResponse updateUcdnDomainStatus( - UpdateUcdnDomainStatusRequest request) throws UCloudException { - request.setAction("UpdateUcdnDomainStatus"); - return (UpdateUcdnDomainStatusResponse) - this.invoke(request, UpdateUcdnDomainStatusResponse.class); - } + + + + + + + /** + * AddCertificate - 添加证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddCertificateResponse addCertificate(AddCertificateRequest request) throws UCloudException { + request.setAction("AddCertificate"); + return (AddCertificateResponse) this.invoke(request, AddCertificateResponse.class); + } + + + + + + + /** + * ControlUcdnDomainCacheAccess - 封禁解封缓存访问 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ControlUcdnDomainCacheAccessResponse controlUcdnDomainCacheAccess(ControlUcdnDomainCacheAccessRequest request) throws UCloudException { + request.setAction("ControlUcdnDomainCacheAccess"); + return (ControlUcdnDomainCacheAccessResponse) this.invoke(request, ControlUcdnDomainCacheAccessResponse.class); + } + + + + + + + /** + * DeleteCertificate - 删除证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCertificateResponse deleteCertificate(DeleteCertificateRequest request) throws UCloudException { + request.setAction("DeleteCertificate"); + return (DeleteCertificateResponse) this.invoke(request, DeleteCertificateResponse.class); + } + + + + + + + /** + * DescribeNewUcdnPrefetchCacheTask - 获取预取任务状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNewUcdnPrefetchCacheTaskResponse describeNewUcdnPrefetchCacheTask(DescribeNewUcdnPrefetchCacheTaskRequest request) throws UCloudException { + request.setAction("DescribeNewUcdnPrefetchCacheTask"); + return (DescribeNewUcdnPrefetchCacheTaskResponse) this.invoke(request, DescribeNewUcdnPrefetchCacheTaskResponse.class); + } + + + + + + + /** + * DescribeNewUcdnRefreshCacheTask - 获取域名刷新任务状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNewUcdnRefreshCacheTaskResponse describeNewUcdnRefreshCacheTask(DescribeNewUcdnRefreshCacheTaskRequest request) throws UCloudException { + request.setAction("DescribeNewUcdnRefreshCacheTask"); + return (DescribeNewUcdnRefreshCacheTaskResponse) this.invoke(request, DescribeNewUcdnRefreshCacheTaskResponse.class); + } + + + + + + + /** + * GetAuthConfig - 接口获取鉴权信息(非标使用) + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetAuthConfigResponse getAuthConfig(GetAuthConfigRequest request) throws UCloudException { + request.setAction("GetAuthConfig"); + return (GetAuthConfigResponse) this.invoke(request, GetAuthConfigResponse.class); + } + + + + + + + /** + * GetCertificateV2 - 获取证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCertificateV2Response getCertificateV2(GetCertificateV2Request request) throws UCloudException { + request.setAction("GetCertificateV2"); + return (GetCertificateV2Response) this.invoke(request, GetCertificateV2Response.class); + } + + + + + + + /** + * GetNewUcdnDomainHitRate - 获取域名命中率 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetNewUcdnDomainHitRateResponse getNewUcdnDomainHitRate(GetNewUcdnDomainHitRateRequest request) throws UCloudException { + request.setAction("GetNewUcdnDomainHitRate"); + return (GetNewUcdnDomainHitRateResponse) this.invoke(request, GetNewUcdnDomainHitRateResponse.class); + } + + + + + + + /** + * GetNewUcdnLogRefererStatistics - 获取热点referer统计 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetNewUcdnLogRefererStatisticsResponse getNewUcdnLogRefererStatistics(GetNewUcdnLogRefererStatisticsRequest request) throws UCloudException { + request.setAction("GetNewUcdnLogRefererStatistics"); + return (GetNewUcdnLogRefererStatisticsResponse) this.invoke(request, GetNewUcdnLogRefererStatisticsResponse.class); + } + + + + + + + /** + * GetNewUcdnLogUrlStatistics - 获取日志url统计 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetNewUcdnLogUrlStatisticsResponse getNewUcdnLogUrlStatistics(GetNewUcdnLogUrlStatisticsRequest request) throws UCloudException { + request.setAction("GetNewUcdnLogUrlStatistics"); + return (GetNewUcdnLogUrlStatisticsResponse) this.invoke(request, GetNewUcdnLogUrlStatisticsResponse.class); + } + + + + + + + /** + * GetUcdnDomain95BandwidthV2 - 获取域名九五峰值带宽数据【新】 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnDomain95BandwidthV2Response getUcdnDomain95BandwidthV2(GetUcdnDomain95BandwidthV2Request request) throws UCloudException { + request.setAction("GetUcdnDomain95BandwidthV2"); + return (GetUcdnDomain95BandwidthV2Response) this.invoke(request, GetUcdnDomain95BandwidthV2Response.class); + } + + + + + + + /** + * GetUcdnDomainBandwidthByIpProtocol - 获取域名带宽数据按ip协议【新】 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnDomainBandwidthByIpProtocolResponse getUcdnDomainBandwidthByIpProtocol(GetUcdnDomainBandwidthByIpProtocolRequest request) throws UCloudException { + request.setAction("GetUcdnDomainBandwidthByIpProtocol"); + return (GetUcdnDomainBandwidthByIpProtocolResponse) this.invoke(request, GetUcdnDomainBandwidthByIpProtocolResponse.class); + } + + + + + + + /** + * GetUcdnDomainBandwidthV2 - 获取域名带宽数据【新】 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnDomainBandwidthV2Response getUcdnDomainBandwidthV2(GetUcdnDomainBandwidthV2Request request) throws UCloudException { + request.setAction("GetUcdnDomainBandwidthV2"); + return (GetUcdnDomainBandwidthV2Response) this.invoke(request, GetUcdnDomainBandwidthV2Response.class); + } + + + + + + + /** + * GetUcdnDomainConfig - 批量获取加速域名配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnDomainConfigResponse getUcdnDomainConfig(GetUcdnDomainConfigRequest request) throws UCloudException { + request.setAction("GetUcdnDomainConfig"); + return (GetUcdnDomainConfigResponse) this.invoke(request, GetUcdnDomainConfigResponse.class); + } + + + + + + + /** + * GetUcdnDomainHitRate - 获取域名命中率(新) + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnDomainHitRateResponse getUcdnDomainHitRate(GetUcdnDomainHitRateRequest request) throws UCloudException { + request.setAction("GetUcdnDomainHitRate"); + return (GetUcdnDomainHitRateResponse) this.invoke(request, GetUcdnDomainHitRateResponse.class); + } + + + + + + + /** + * GetUcdnDomainHttpCodeV2 - 获取域名状态码信息【新】 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnDomainHttpCodeV2Response getUcdnDomainHttpCodeV2(GetUcdnDomainHttpCodeV2Request request) throws UCloudException { + request.setAction("GetUcdnDomainHttpCodeV2"); + return (GetUcdnDomainHttpCodeV2Response) this.invoke(request, GetUcdnDomainHttpCodeV2Response.class); + } + + + + + + + /** + * GetUcdnDomainInfoList - 获取域名基本信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnDomainInfoListResponse getUcdnDomainInfoList(GetUcdnDomainInfoListRequest request) throws UCloudException { + request.setAction("GetUcdnDomainInfoList"); + return (GetUcdnDomainInfoListResponse) this.invoke(request, GetUcdnDomainInfoListResponse.class); + } + + + + + + + /** + * GetUcdnDomainLogV2 - 获取域名5分钟日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnDomainLogV2Response getUcdnDomainLogV2(GetUcdnDomainLogV2Request request) throws UCloudException { + request.setAction("GetUcdnDomainLogV2"); + return (GetUcdnDomainLogV2Response) this.invoke(request, GetUcdnDomainLogV2Response.class); + } + + + + + + + /** + * GetUcdnDomainOriginRequestNum - 获取域名回源请求数【新】 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnDomainOriginRequestNumResponse getUcdnDomainOriginRequestNum(GetUcdnDomainOriginRequestNumRequest request) throws UCloudException { + request.setAction("GetUcdnDomainOriginRequestNum"); + return (GetUcdnDomainOriginRequestNumResponse) this.invoke(request, GetUcdnDomainOriginRequestNumResponse.class); + } + + + + + + + /** + * GetUcdnDomainPrefetchEnable - 获取域名预取开启状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnDomainPrefetchEnableResponse getUcdnDomainPrefetchEnable(GetUcdnDomainPrefetchEnableRequest request) throws UCloudException { + request.setAction("GetUcdnDomainPrefetchEnable"); + return (GetUcdnDomainPrefetchEnableResponse) this.invoke(request, GetUcdnDomainPrefetchEnableResponse.class); + } + + + + + + + /** + * GetUcdnDomainRequestNumV3 - 获取域名请求数【新】 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnDomainRequestNumV3Response getUcdnDomainRequestNumV3(GetUcdnDomainRequestNumV3Request request) throws UCloudException { + request.setAction("GetUcdnDomainRequestNumV3"); + return (GetUcdnDomainRequestNumV3Response) this.invoke(request, GetUcdnDomainRequestNumV3Response.class); + } + + + + + + + /** + * GetUcdnPassBandwidthV2 - 获取回源带宽数据(按时间分类)【新】 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnPassBandwidthV2Response getUcdnPassBandwidthV2(GetUcdnPassBandwidthV2Request request) throws UCloudException { + request.setAction("GetUcdnPassBandwidthV2"); + return (GetUcdnPassBandwidthV2Response) this.invoke(request, GetUcdnPassBandwidthV2Response.class); + } + + + + + + + /** + * GetUcdnProIspBandwidthV2 - 按省份运营商获取域名带宽数据【新】 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnProIspBandwidthV2Response getUcdnProIspBandwidthV2(GetUcdnProIspBandwidthV2Request request) throws UCloudException { + request.setAction("GetUcdnProIspBandwidthV2"); + return (GetUcdnProIspBandwidthV2Response) this.invoke(request, GetUcdnProIspBandwidthV2Response.class); + } + + + + + + + /** + * GetUcdnProIspRequestNumV2 - 按省份运营商获取域名请求数【新】 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnProIspRequestNumV2Response getUcdnProIspRequestNumV2(GetUcdnProIspRequestNumV2Request request) throws UCloudException { + request.setAction("GetUcdnProIspRequestNumV2"); + return (GetUcdnProIspRequestNumV2Response) this.invoke(request, GetUcdnProIspRequestNumV2Response.class); + } + + + + + + + /** + * GetUcdnTrafficV2 - 获取账户总流量信息【新】 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUcdnTrafficV2Response getUcdnTrafficV2(GetUcdnTrafficV2Request request) throws UCloudException { + request.setAction("GetUcdnTrafficV2"); + return (GetUcdnTrafficV2Response) this.invoke(request, GetUcdnTrafficV2Response.class); + } + + + + + + + /** + * PrefetchNewUcdnDomainCache - 提交预取任务 + * + * @param request Request object + * @throws UCloudException Exception + */ + public PrefetchNewUcdnDomainCacheResponse prefetchNewUcdnDomainCache(PrefetchNewUcdnDomainCacheRequest request) throws UCloudException { + request.setAction("PrefetchNewUcdnDomainCache"); + return (PrefetchNewUcdnDomainCacheResponse) this.invoke(request, PrefetchNewUcdnDomainCacheResponse.class); + } + + + + + + + /** + * QueryIpLocation - 查询IP信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryIpLocationResponse queryIpLocation(QueryIpLocationRequest request) throws UCloudException { + request.setAction("QueryIpLocation"); + return (QueryIpLocationResponse) this.invoke(request, QueryIpLocationResponse.class); + } + + + + + + + /** + * RefreshNewUcdnDomainCache - 刷新缓存 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RefreshNewUcdnDomainCacheResponse refreshNewUcdnDomainCache(RefreshNewUcdnDomainCacheRequest request) throws UCloudException { + request.setAction("RefreshNewUcdnDomainCache"); + return (RefreshNewUcdnDomainCacheResponse) this.invoke(request, RefreshNewUcdnDomainCacheResponse.class); + } + + + + + + + /** + * SwitchUcdnChargeType - 切换账号计费方式 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SwitchUcdnChargeTypeResponse switchUcdnChargeType(SwitchUcdnChargeTypeRequest request) throws UCloudException { + request.setAction("SwitchUcdnChargeType"); + return (SwitchUcdnChargeTypeResponse) this.invoke(request, SwitchUcdnChargeTypeResponse.class); + } + + + + + + + /** + * UpdateUcdnDomainStatus - 更新加速域名状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUcdnDomainStatusResponse updateUcdnDomainStatus(UpdateUcdnDomainStatusRequest request) throws UCloudException { + request.setAction("UpdateUcdnDomainStatus"); + return (UpdateUcdnDomainStatusResponse) this.invoke(request, UpdateUcdnDomainStatusResponse.class); + } } diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClientInterface.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClientInterface.java index ba396f0f..ab1a8bb0 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClientInterface.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClientInterface.java @@ -1,129 +1,248 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.ucdn.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.ucdn.models.AddCertificateRequest; import cn.ucloud.ucdn.models.AddCertificateResponse; + + + import cn.ucloud.ucdn.models.ControlUcdnDomainCacheAccessRequest; import cn.ucloud.ucdn.models.ControlUcdnDomainCacheAccessResponse; + + + import cn.ucloud.ucdn.models.DeleteCertificateRequest; import cn.ucloud.ucdn.models.DeleteCertificateResponse; + + + import cn.ucloud.ucdn.models.DescribeNewUcdnPrefetchCacheTaskRequest; import cn.ucloud.ucdn.models.DescribeNewUcdnPrefetchCacheTaskResponse; + + + import cn.ucloud.ucdn.models.DescribeNewUcdnRefreshCacheTaskRequest; import cn.ucloud.ucdn.models.DescribeNewUcdnRefreshCacheTaskResponse; + + + import cn.ucloud.ucdn.models.GetAuthConfigRequest; import cn.ucloud.ucdn.models.GetAuthConfigResponse; + + + import cn.ucloud.ucdn.models.GetCertificateV2Request; import cn.ucloud.ucdn.models.GetCertificateV2Response; + + + import cn.ucloud.ucdn.models.GetNewUcdnDomainHitRateRequest; import cn.ucloud.ucdn.models.GetNewUcdnDomainHitRateResponse; + + + import cn.ucloud.ucdn.models.GetNewUcdnLogRefererStatisticsRequest; import cn.ucloud.ucdn.models.GetNewUcdnLogRefererStatisticsResponse; + + + import cn.ucloud.ucdn.models.GetNewUcdnLogUrlStatisticsRequest; import cn.ucloud.ucdn.models.GetNewUcdnLogUrlStatisticsResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomain95BandwidthV2Request; import cn.ucloud.ucdn.models.GetUcdnDomain95BandwidthV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnDomainBandwidthByIpProtocolRequest; import cn.ucloud.ucdn.models.GetUcdnDomainBandwidthByIpProtocolResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomainBandwidthV2Request; import cn.ucloud.ucdn.models.GetUcdnDomainBandwidthV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnDomainConfigRequest; import cn.ucloud.ucdn.models.GetUcdnDomainConfigResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomainHitRateRequest; import cn.ucloud.ucdn.models.GetUcdnDomainHitRateResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomainHttpCodeV2Request; import cn.ucloud.ucdn.models.GetUcdnDomainHttpCodeV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnDomainInfoListRequest; import cn.ucloud.ucdn.models.GetUcdnDomainInfoListResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomainLogV2Request; import cn.ucloud.ucdn.models.GetUcdnDomainLogV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnDomainOriginRequestNumRequest; import cn.ucloud.ucdn.models.GetUcdnDomainOriginRequestNumResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomainPrefetchEnableRequest; import cn.ucloud.ucdn.models.GetUcdnDomainPrefetchEnableResponse; + + + import cn.ucloud.ucdn.models.GetUcdnDomainRequestNumV3Request; import cn.ucloud.ucdn.models.GetUcdnDomainRequestNumV3Response; + + + import cn.ucloud.ucdn.models.GetUcdnPassBandwidthV2Request; import cn.ucloud.ucdn.models.GetUcdnPassBandwidthV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnProIspBandwidthV2Request; import cn.ucloud.ucdn.models.GetUcdnProIspBandwidthV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnProIspRequestNumV2Request; import cn.ucloud.ucdn.models.GetUcdnProIspRequestNumV2Response; + + + import cn.ucloud.ucdn.models.GetUcdnTrafficV2Request; import cn.ucloud.ucdn.models.GetUcdnTrafficV2Response; + + + import cn.ucloud.ucdn.models.PrefetchNewUcdnDomainCacheRequest; import cn.ucloud.ucdn.models.PrefetchNewUcdnDomainCacheResponse; + + + import cn.ucloud.ucdn.models.QueryIpLocationRequest; import cn.ucloud.ucdn.models.QueryIpLocationResponse; + + + import cn.ucloud.ucdn.models.RefreshNewUcdnDomainCacheRequest; import cn.ucloud.ucdn.models.RefreshNewUcdnDomainCacheResponse; + + + import cn.ucloud.ucdn.models.SwitchUcdnChargeTypeRequest; import cn.ucloud.ucdn.models.SwitchUcdnChargeTypeResponse; + + + import cn.ucloud.ucdn.models.UpdateUcdnDomainStatusRequest; import cn.ucloud.ucdn.models.UpdateUcdnDomainStatusResponse; -/** This client is used to call actions of **UCDN** service */ +/** + * This client is used to call actions of **UCDN** service + */ public interface UCDNClientInterface extends Client { - + + + + + + /** * AddCertificate - 添加证书 * * @param request Request object * @throws UCloudException Exception */ - public AddCertificateResponse addCertificate(AddCertificateRequest request) - throws UCloudException; - + public AddCertificateResponse addCertificate(AddCertificateRequest request) throws UCloudException; + + + + + + /** * ControlUcdnDomainCacheAccess - 封禁解封缓存访问 * * @param request Request object * @throws UCloudException Exception */ - public ControlUcdnDomainCacheAccessResponse controlUcdnDomainCacheAccess( - ControlUcdnDomainCacheAccessRequest request) throws UCloudException; - + public ControlUcdnDomainCacheAccessResponse controlUcdnDomainCacheAccess(ControlUcdnDomainCacheAccessRequest request) throws UCloudException; + + + + + + /** * DeleteCertificate - 删除证书 * * @param request Request object * @throws UCloudException Exception */ - public DeleteCertificateResponse deleteCertificate(DeleteCertificateRequest request) - throws UCloudException; - + public DeleteCertificateResponse deleteCertificate(DeleteCertificateRequest request) throws UCloudException; + + + + + + /** * DescribeNewUcdnPrefetchCacheTask - 获取预取任务状态 * * @param request Request object * @throws UCloudException Exception */ - public DescribeNewUcdnPrefetchCacheTaskResponse describeNewUcdnPrefetchCacheTask( - DescribeNewUcdnPrefetchCacheTaskRequest request) throws UCloudException; - + public DescribeNewUcdnPrefetchCacheTaskResponse describeNewUcdnPrefetchCacheTask(DescribeNewUcdnPrefetchCacheTaskRequest request) throws UCloudException; + + + + + + /** * DescribeNewUcdnRefreshCacheTask - 获取域名刷新任务状态 * * @param request Request object * @throws UCloudException Exception */ - public DescribeNewUcdnRefreshCacheTaskResponse describeNewUcdnRefreshCacheTask( - DescribeNewUcdnRefreshCacheTaskRequest request) throws UCloudException; - + public DescribeNewUcdnRefreshCacheTaskResponse describeNewUcdnRefreshCacheTask(DescribeNewUcdnRefreshCacheTaskRequest request) throws UCloudException; + + + + + + /** * GetAuthConfig - 接口获取鉴权信息(非标使用) * @@ -131,220 +250,316 @@ public DescribeNewUcdnRefreshCacheTaskResponse describeNewUcdnRefreshCacheTask( * @throws UCloudException Exception */ public GetAuthConfigResponse getAuthConfig(GetAuthConfigRequest request) throws UCloudException; - + + + + + + /** * GetCertificateV2 - 获取证书 * * @param request Request object * @throws UCloudException Exception */ - public GetCertificateV2Response getCertificateV2(GetCertificateV2Request request) - throws UCloudException; - + public GetCertificateV2Response getCertificateV2(GetCertificateV2Request request) throws UCloudException; + + + + + + /** * GetNewUcdnDomainHitRate - 获取域名命中率 * * @param request Request object * @throws UCloudException Exception */ - public GetNewUcdnDomainHitRateResponse getNewUcdnDomainHitRate( - GetNewUcdnDomainHitRateRequest request) throws UCloudException; - + public GetNewUcdnDomainHitRateResponse getNewUcdnDomainHitRate(GetNewUcdnDomainHitRateRequest request) throws UCloudException; + + + + + + /** * GetNewUcdnLogRefererStatistics - 获取热点referer统计 * * @param request Request object * @throws UCloudException Exception */ - public GetNewUcdnLogRefererStatisticsResponse getNewUcdnLogRefererStatistics( - GetNewUcdnLogRefererStatisticsRequest request) throws UCloudException; - + public GetNewUcdnLogRefererStatisticsResponse getNewUcdnLogRefererStatistics(GetNewUcdnLogRefererStatisticsRequest request) throws UCloudException; + + + + + + /** * GetNewUcdnLogUrlStatistics - 获取日志url统计 * * @param request Request object * @throws UCloudException Exception */ - public GetNewUcdnLogUrlStatisticsResponse getNewUcdnLogUrlStatistics( - GetNewUcdnLogUrlStatisticsRequest request) throws UCloudException; - + public GetNewUcdnLogUrlStatisticsResponse getNewUcdnLogUrlStatistics(GetNewUcdnLogUrlStatisticsRequest request) throws UCloudException; + + + + + + /** * GetUcdnDomain95BandwidthV2 - 获取域名九五峰值带宽数据【新】 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnDomain95BandwidthV2Response getUcdnDomain95BandwidthV2( - GetUcdnDomain95BandwidthV2Request request) throws UCloudException; - + public GetUcdnDomain95BandwidthV2Response getUcdnDomain95BandwidthV2(GetUcdnDomain95BandwidthV2Request request) throws UCloudException; + + + + + + /** * GetUcdnDomainBandwidthByIpProtocol - 获取域名带宽数据按ip协议【新】 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnDomainBandwidthByIpProtocolResponse getUcdnDomainBandwidthByIpProtocol( - GetUcdnDomainBandwidthByIpProtocolRequest request) throws UCloudException; - + public GetUcdnDomainBandwidthByIpProtocolResponse getUcdnDomainBandwidthByIpProtocol(GetUcdnDomainBandwidthByIpProtocolRequest request) throws UCloudException; + + + + + + /** * GetUcdnDomainBandwidthV2 - 获取域名带宽数据【新】 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnDomainBandwidthV2Response getUcdnDomainBandwidthV2( - GetUcdnDomainBandwidthV2Request request) throws UCloudException; - + public GetUcdnDomainBandwidthV2Response getUcdnDomainBandwidthV2(GetUcdnDomainBandwidthV2Request request) throws UCloudException; + + + + + + /** * GetUcdnDomainConfig - 批量获取加速域名配置 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnDomainConfigResponse getUcdnDomainConfig(GetUcdnDomainConfigRequest request) - throws UCloudException; - + public GetUcdnDomainConfigResponse getUcdnDomainConfig(GetUcdnDomainConfigRequest request) throws UCloudException; + + + + + + /** * GetUcdnDomainHitRate - 获取域名命中率(新) * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnDomainHitRateResponse getUcdnDomainHitRate(GetUcdnDomainHitRateRequest request) - throws UCloudException; - + public GetUcdnDomainHitRateResponse getUcdnDomainHitRate(GetUcdnDomainHitRateRequest request) throws UCloudException; + + + + + + /** * GetUcdnDomainHttpCodeV2 - 获取域名状态码信息【新】 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnDomainHttpCodeV2Response getUcdnDomainHttpCodeV2( - GetUcdnDomainHttpCodeV2Request request) throws UCloudException; - + public GetUcdnDomainHttpCodeV2Response getUcdnDomainHttpCodeV2(GetUcdnDomainHttpCodeV2Request request) throws UCloudException; + + + + + + /** * GetUcdnDomainInfoList - 获取域名基本信息 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnDomainInfoListResponse getUcdnDomainInfoList(GetUcdnDomainInfoListRequest request) - throws UCloudException; - + public GetUcdnDomainInfoListResponse getUcdnDomainInfoList(GetUcdnDomainInfoListRequest request) throws UCloudException; + + + + + + /** * GetUcdnDomainLogV2 - 获取域名5分钟日志 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnDomainLogV2Response getUcdnDomainLogV2(GetUcdnDomainLogV2Request request) - throws UCloudException; - + public GetUcdnDomainLogV2Response getUcdnDomainLogV2(GetUcdnDomainLogV2Request request) throws UCloudException; + + + + + + /** * GetUcdnDomainOriginRequestNum - 获取域名回源请求数【新】 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnDomainOriginRequestNumResponse getUcdnDomainOriginRequestNum( - GetUcdnDomainOriginRequestNumRequest request) throws UCloudException; - + public GetUcdnDomainOriginRequestNumResponse getUcdnDomainOriginRequestNum(GetUcdnDomainOriginRequestNumRequest request) throws UCloudException; + + + + + + /** * GetUcdnDomainPrefetchEnable - 获取域名预取开启状态 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnDomainPrefetchEnableResponse getUcdnDomainPrefetchEnable( - GetUcdnDomainPrefetchEnableRequest request) throws UCloudException; - + public GetUcdnDomainPrefetchEnableResponse getUcdnDomainPrefetchEnable(GetUcdnDomainPrefetchEnableRequest request) throws UCloudException; + + + + + + /** * GetUcdnDomainRequestNumV3 - 获取域名请求数【新】 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnDomainRequestNumV3Response getUcdnDomainRequestNumV3( - GetUcdnDomainRequestNumV3Request request) throws UCloudException; - + public GetUcdnDomainRequestNumV3Response getUcdnDomainRequestNumV3(GetUcdnDomainRequestNumV3Request request) throws UCloudException; + + + + + + /** * GetUcdnPassBandwidthV2 - 获取回源带宽数据(按时间分类)【新】 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnPassBandwidthV2Response getUcdnPassBandwidthV2( - GetUcdnPassBandwidthV2Request request) throws UCloudException; - + public GetUcdnPassBandwidthV2Response getUcdnPassBandwidthV2(GetUcdnPassBandwidthV2Request request) throws UCloudException; + + + + + + /** * GetUcdnProIspBandwidthV2 - 按省份运营商获取域名带宽数据【新】 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnProIspBandwidthV2Response getUcdnProIspBandwidthV2( - GetUcdnProIspBandwidthV2Request request) throws UCloudException; - + public GetUcdnProIspBandwidthV2Response getUcdnProIspBandwidthV2(GetUcdnProIspBandwidthV2Request request) throws UCloudException; + + + + + + /** * GetUcdnProIspRequestNumV2 - 按省份运营商获取域名请求数【新】 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnProIspRequestNumV2Response getUcdnProIspRequestNumV2( - GetUcdnProIspRequestNumV2Request request) throws UCloudException; - + public GetUcdnProIspRequestNumV2Response getUcdnProIspRequestNumV2(GetUcdnProIspRequestNumV2Request request) throws UCloudException; + + + + + + /** * GetUcdnTrafficV2 - 获取账户总流量信息【新】 * * @param request Request object * @throws UCloudException Exception */ - public GetUcdnTrafficV2Response getUcdnTrafficV2(GetUcdnTrafficV2Request request) - throws UCloudException; - + public GetUcdnTrafficV2Response getUcdnTrafficV2(GetUcdnTrafficV2Request request) throws UCloudException; + + + + + + /** * PrefetchNewUcdnDomainCache - 提交预取任务 * * @param request Request object * @throws UCloudException Exception */ - public PrefetchNewUcdnDomainCacheResponse prefetchNewUcdnDomainCache( - PrefetchNewUcdnDomainCacheRequest request) throws UCloudException; - + public PrefetchNewUcdnDomainCacheResponse prefetchNewUcdnDomainCache(PrefetchNewUcdnDomainCacheRequest request) throws UCloudException; + + + + + + /** * QueryIpLocation - 查询IP信息 * * @param request Request object * @throws UCloudException Exception */ - public QueryIpLocationResponse queryIpLocation(QueryIpLocationRequest request) - throws UCloudException; - + public QueryIpLocationResponse queryIpLocation(QueryIpLocationRequest request) throws UCloudException; + + + + + + /** * RefreshNewUcdnDomainCache - 刷新缓存 * * @param request Request object * @throws UCloudException Exception */ - public RefreshNewUcdnDomainCacheResponse refreshNewUcdnDomainCache( - RefreshNewUcdnDomainCacheRequest request) throws UCloudException; - + public RefreshNewUcdnDomainCacheResponse refreshNewUcdnDomainCache(RefreshNewUcdnDomainCacheRequest request) throws UCloudException; + + + + + + /** * SwitchUcdnChargeType - 切换账号计费方式 * * @param request Request object * @throws UCloudException Exception */ - public SwitchUcdnChargeTypeResponse switchUcdnChargeType(SwitchUcdnChargeTypeRequest request) - throws UCloudException; - + public SwitchUcdnChargeTypeResponse switchUcdnChargeType(SwitchUcdnChargeTypeRequest request) throws UCloudException; + + + + + + /** * UpdateUcdnDomainStatus - 更新加速域名状态 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUcdnDomainStatusResponse updateUcdnDomainStatus( - UpdateUcdnDomainStatusRequest request) throws UCloudException; + public UpdateUcdnDomainStatusResponse updateUcdnDomainStatus(UpdateUcdnDomainStatusRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/AddCertificateRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/AddCertificateRequest.java index 35da410f..767cd085 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/AddCertificateRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/AddCertificateRequest.java @@ -1,51 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AddCertificateRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 证书名称 */ + + + + /** + * 证书名称 + */ @NotEmpty @UCloudParam("CertName") private String certName; - - /** 用户证书 */ + + + + /** + * 用户证书 + */ @NotEmpty @UCloudParam("UserCert") private String userCert; - - /** 用户私钥 */ + + + + /** + * 用户私钥 + */ @NotEmpty @UCloudParam("PrivateKey") private String privateKey; - - /** Ca证书,默认为空 */ + + + + /** + * Ca证书,默认为空 + */ @UCloudParam("CaCert") private String caCert; - + + public String getProjectId() { return projectId; } @@ -53,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCertName() { return certName; } @@ -61,7 +84,7 @@ public String getCertName() { public void setCertName(String certName) { this.certName = certName; } - + public String getUserCert() { return userCert; } @@ -69,7 +92,7 @@ public String getUserCert() { public void setUserCert(String userCert) { this.userCert = userCert; } - + public String getPrivateKey() { return privateKey; } @@ -77,7 +100,7 @@ public String getPrivateKey() { public void setPrivateKey(String privateKey) { this.privateKey = privateKey; } - + public String getCaCert() { return caCert; } @@ -85,4 +108,14 @@ public String getCaCert() { public void setCaCert(String caCert) { this.caCert = caCert; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/AddCertificateResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/AddCertificateResponse.java index 9991850c..c86f2c47 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/AddCertificateResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/AddCertificateResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class AddCertificateResponse extends Response {} +public class AddCertificateResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/ControlUcdnDomainCacheAccessRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/ControlUcdnDomainCacheAccessRequest.java index 6171f46c..b64b04ec 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/ControlUcdnDomainCacheAccessRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/ControlUcdnDomainCacheAccessRequest.java @@ -1,43 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class ControlUcdnDomainCacheAccessRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 待封禁的Url,一次封禁多个Url时最多一次30条,只能对表示文件的Url进行操作 */ + + + + /** + * 待封禁的Url,一次封禁多个Url时最多一次30条,只能对表示文件的Url进行操作 + */ @NotEmpty @UCloudParam("UrlList") private List urlList; - - /** forbid=封禁 unforbid=解封 其他值非法 */ + + + + /** + * forbid=封禁 unforbid=解封 其他值非法 + */ @NotEmpty @UCloudParam("Type") private String type; - + + public String getProjectId() { return projectId; } @@ -45,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUrlList() { return urlList; } @@ -53,7 +67,7 @@ public List getUrlList() { public void setUrlList(List urlList) { this.urlList = urlList; } - + public String getType() { return type; } @@ -61,4 +75,14 @@ public String getType() { public void setType(String type) { this.type = type; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/ControlUcdnDomainCacheAccessResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/ControlUcdnDomainCacheAccessResponse.java index 5fb04c31..98f516f3 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/ControlUcdnDomainCacheAccessResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/ControlUcdnDomainCacheAccessResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ControlUcdnDomainCacheAccessResponse extends Response {} +public class ControlUcdnDomainCacheAccessResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DeleteCertificateRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DeleteCertificateRequest.java index 02c28805..cbd32720 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DeleteCertificateRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DeleteCertificateRequest.java @@ -1,37 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteCertificateRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 证书名称 */ + + + + /** + * 证书名称 + */ @NotEmpty @UCloudParam("CertName") private String certName; - + + public String getProjectId() { return projectId; } @@ -39,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCertName() { return certName; } @@ -47,4 +58,14 @@ public String getCertName() { public void setCertName(String certName) { this.certName = certName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DeleteCertificateResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DeleteCertificateResponse.java index 3de2c128..3187f326 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DeleteCertificateResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DeleteCertificateResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteCertificateResponse extends Response {} +public class DeleteCertificateResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnPrefetchCacheTaskRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnPrefetchCacheTaskRequest.java index bd828493..528996d2 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnPrefetchCacheTaskRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnPrefetchCacheTaskRequest.java @@ -1,56 +1,87 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.ucdn.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.ucdn.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class DescribeNewUcdnPrefetchCacheTaskRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 提交任务时返回的任务ID */ + + + + /** + * 提交任务时返回的任务ID + */ @UCloudParam("TaskId") private List taskId; - - /** 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值 */ + + + + /** + * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值 + */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 */ + + + + /** + * 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 + */ @UCloudParam("EndTime") private Integer endTime; - - /** 需要获取的内容预热的状态,枚举值:success:成功;wait:等待处理;process:正在处理;failure:失败; unknow:未知,默认选择所有状态 */ + + + + /** + * 需要获取的内容预热的状态,枚举值:success:成功;wait:等待处理;process:正在处理;failure:失败; unknow:未知,默认选择所有状态 + */ @UCloudParam("Status") private String status; - - /** 数据偏移量,默认为0,自然数 */ + + + + /** + * 数据偏移量,默认为0,自然数 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认全部,自然数 */ + + + + /** + * 返回数据长度,默认全部,自然数 + */ @UCloudParam("Limit") private Integer limit; - + + public String getProjectId() { return projectId; } @@ -58,7 +89,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getTaskId() { return taskId; } @@ -66,7 +97,7 @@ public List getTaskId() { public void setTaskId(List taskId) { this.taskId = taskId; } - + public Integer getBeginTime() { return beginTime; } @@ -74,7 +105,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -82,7 +113,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public String getStatus() { return status; } @@ -90,7 +121,7 @@ public String getStatus() { public void setStatus(String status) { this.status = status; } - + public Integer getOffset() { return offset; } @@ -98,7 +129,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -106,4 +137,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnPrefetchCacheTaskResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnPrefetchCacheTaskResponse.java index 172a2c5c..16be54d6 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnPrefetchCacheTaskResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnPrefetchCacheTaskResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeNewUcdnPrefetchCacheTaskResponse extends Response { - /** 预热任务的总数 */ + + + /** + * 预热任务的总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 预热任务信息,参考TaskInfo */ + + + + /** + * 预热任务信息,参考TaskInfo + */ @SerializedName("TaskList") private List taskList; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getTaskList() { return taskList; } @@ -44,118 +57,164 @@ public List getTaskList() { public void setTaskList(List taskList) { this.taskList = taskList; } + + public static class TaskInfo extends Response { + + + /** + * 提交任务时返回的任务ID + */ + @SerializedName("TaskId") + private String taskId; + + + + /** + * 任务url的信息列表,参考UrlProgressInfo + */ + @SerializedName("UrlLists") + private List urlLists; + + + + /** + * 刷新任务创建的时间。格式为Unix Timestamp + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 刷新任务的当前状态,枚举值:success:成功;wait:排队中;process:处理中;failure:失败; unknow:未知 + */ + @SerializedName("Status") + private String status; + + + public String getTaskId() { + return taskId; + } - public static class TaskInfo extends Response { - - /** 提交任务时返回的任务ID */ - @SerializedName("TaskId") - private String taskId; - - /** 任务url的信息列表,参考UrlProgressInfo */ - @SerializedName("UrlLists") - private List urlLists; - - /** 刷新任务创建的时间。格式为Unix Timestamp */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 刷新任务的当前状态,枚举值:success:成功;wait:排队中;process:处理中;failure:失败; unknow:未知 */ - @SerializedName("Status") - private String status; - - public String getTaskId() { - return taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - public List getUrlLists() { - return urlLists; - } - - public void setUrlLists(List urlLists) { - this.urlLists = urlLists; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public String getStatus() { - return status; - } + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public List getUrlLists() { + return urlLists; + } - public void setStatus(String status) { - this.status = status; - } + public void setUrlLists(List urlLists) { + this.urlLists = urlLists; + } + + public Integer getCreateTime() { + return createTime; } - public static class UrlProgressInfo extends Response { + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getStatus() { + return status; + } - /** 刷新的单条url */ - @SerializedName("Url") - private String url; + public void setStatus(String status) { + this.status = status; + } + + } + public static class UrlProgressInfo extends Response { + + + /** + * 刷新的单条url + */ + @SerializedName("Url") + private String url; + + + + /** + * 刷新任务创建的时间。格式为Unix Timestamp + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 任务完成时间。格式为Unix Timestamp + */ + @SerializedName("FinishTime") + private Integer finishTime; + + + + /** + * 刷新任务的当前状态,枚举值:success:成功;wait:排队中;process:处理中;failure:失败; unknow:未知 + */ + @SerializedName("Status") + private String status; + + + + /** + * 刷新进度,单位% + */ + @SerializedName("Progress") + private Integer progress; + + + public String getUrl() { + return url; + } - /** 刷新任务创建的时间。格式为Unix Timestamp */ - @SerializedName("CreateTime") - private Integer createTime; + public void setUrl(String url) { + this.url = url; + } + + public Integer getCreateTime() { + return createTime; + } - /** 任务完成时间。格式为Unix Timestamp */ - @SerializedName("FinishTime") - private Integer finishTime; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getFinishTime() { + return finishTime; + } - /** 刷新任务的当前状态,枚举值:success:成功;wait:排队中;process:处理中;failure:失败; unknow:未知 */ - @SerializedName("Status") - private String status; + public void setFinishTime(Integer finishTime) { + this.finishTime = finishTime; + } + + public String getStatus() { + return status; + } - /** 刷新进度,单位% */ - @SerializedName("Progress") - private Integer progress; + public void setStatus(String status) { + this.status = status; + } + + public Integer getProgress() { + return progress; + } - public String getUrl() { - return url; + public void setProgress(Integer progress) { + this.progress = progress; + } + } +} - public void setUrl(String url) { - this.url = url; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getFinishTime() { - return finishTime; - } - public void setFinishTime(Integer finishTime) { - this.finishTime = finishTime; - } - public String getStatus() { - return status; - } - public void setStatus(String status) { - this.status = status; - } - public Integer getProgress() { - return progress; - } - public void setProgress(Integer progress) { - this.progress = progress; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnRefreshCacheTaskRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnRefreshCacheTaskRequest.java index 971604ed..ff46886f 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnRefreshCacheTaskRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnRefreshCacheTaskRequest.java @@ -1,56 +1,87 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.ucdn.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.ucdn.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class DescribeNewUcdnRefreshCacheTaskRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 提交任务时返回的任务ID */ + + + + /** + * 提交任务时返回的任务ID + */ @UCloudParam("TaskId") private List taskId; - - /** 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值 */ + + + + /** + * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值 + */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 */ + + + + /** + * 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 + */ @UCloudParam("EndTime") private Integer endTime; - - /** 需要获取的内容刷新的状态,枚举值:success:成功;wait:等待处理;process:正在处理;failure:失败; unknow:未知,默认选择所有状态 */ + + + + /** + * 需要获取的内容刷新的状态,枚举值:success:成功;wait:等待处理;process:正在处理;failure:失败; unknow:未知,默认选择所有状态 + */ @UCloudParam("Status") private String status; - - /** 数据偏移量,默认为0,自然数 */ + + + + /** + * 数据偏移量,默认为0,自然数 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认全部,自然数 */ + + + + /** + * 返回数据长度,默认全部,自然数 + */ @UCloudParam("Limit") private Integer limit; - + + public String getProjectId() { return projectId; } @@ -58,7 +89,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getTaskId() { return taskId; } @@ -66,7 +97,7 @@ public List getTaskId() { public void setTaskId(List taskId) { this.taskId = taskId; } - + public Integer getBeginTime() { return beginTime; } @@ -74,7 +105,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -82,7 +113,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public String getStatus() { return status; } @@ -90,7 +121,7 @@ public String getStatus() { public void setStatus(String status) { this.status = status; } - + public Integer getOffset() { return offset; } @@ -98,7 +129,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -106,4 +137,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnRefreshCacheTaskResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnRefreshCacheTaskResponse.java index 972d5b2a..1355dff4 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnRefreshCacheTaskResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnRefreshCacheTaskResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeNewUcdnRefreshCacheTaskResponse extends Response { - /** 刷新任务的总数 */ + + + /** + * 刷新任务的总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 刷新任务信息,参考TaskInfo */ + + + + /** + * 刷新任务信息,参考TaskInfo + */ @SerializedName("TaskList") private List taskList; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getTaskList() { return taskList; } @@ -44,118 +57,164 @@ public List getTaskList() { public void setTaskList(List taskList) { this.taskList = taskList; } + + public static class TaskInfo extends Response { + + + /** + * 提交任务时返回的任务ID + */ + @SerializedName("TaskId") + private String taskId; + + + + /** + * 任务url的信息列表,参考UrlProgressInfo + */ + @SerializedName("UrlLists") + private List urlLists; + + + + /** + * 刷新任务创建的时间。格式为Unix Timestamp + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 刷新任务的当前状态,枚举值:success:成功;wait:排队中;process:处理中;failure:失败; unknow:未知 + */ + @SerializedName("Status") + private String status; + + + public String getTaskId() { + return taskId; + } - public static class TaskInfo extends Response { - - /** 提交任务时返回的任务ID */ - @SerializedName("TaskId") - private String taskId; - - /** 任务url的信息列表,参考UrlProgressInfo */ - @SerializedName("UrlLists") - private List urlLists; - - /** 刷新任务创建的时间。格式为Unix Timestamp */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 刷新任务的当前状态,枚举值:success:成功;wait:排队中;process:处理中;failure:失败; unknow:未知 */ - @SerializedName("Status") - private String status; - - public String getTaskId() { - return taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - public List getUrlLists() { - return urlLists; - } - - public void setUrlLists(List urlLists) { - this.urlLists = urlLists; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public String getStatus() { - return status; - } + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public List getUrlLists() { + return urlLists; + } - public void setStatus(String status) { - this.status = status; - } + public void setUrlLists(List urlLists) { + this.urlLists = urlLists; + } + + public Integer getCreateTime() { + return createTime; } - public static class UrlProgressInfo extends Response { + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getStatus() { + return status; + } - /** 刷新的单条url */ - @SerializedName("Url") - private String url; + public void setStatus(String status) { + this.status = status; + } + + } + public static class UrlProgressInfo extends Response { + + + /** + * 刷新的单条url + */ + @SerializedName("Url") + private String url; + + + + /** + * 刷新任务创建的时间。格式为Unix Timestamp + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 任务完成时间。格式为Unix Timestamp + */ + @SerializedName("FinishTime") + private Integer finishTime; + + + + /** + * 刷新任务的当前状态,枚举值:success:成功;wait:排队中;process:处理中;failure:失败; unknow:未知 + */ + @SerializedName("Status") + private String status; + + + + /** + * 刷新进度,单位% + */ + @SerializedName("Progress") + private Integer progress; + + + public String getUrl() { + return url; + } - /** 刷新任务创建的时间。格式为Unix Timestamp */ - @SerializedName("CreateTime") - private Integer createTime; + public void setUrl(String url) { + this.url = url; + } + + public Integer getCreateTime() { + return createTime; + } - /** 任务完成时间。格式为Unix Timestamp */ - @SerializedName("FinishTime") - private Integer finishTime; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getFinishTime() { + return finishTime; + } - /** 刷新任务的当前状态,枚举值:success:成功;wait:排队中;process:处理中;failure:失败; unknow:未知 */ - @SerializedName("Status") - private String status; + public void setFinishTime(Integer finishTime) { + this.finishTime = finishTime; + } + + public String getStatus() { + return status; + } - /** 刷新进度,单位% */ - @SerializedName("Progress") - private Integer progress; + public void setStatus(String status) { + this.status = status; + } + + public Integer getProgress() { + return progress; + } - public String getUrl() { - return url; + public void setProgress(Integer progress) { + this.progress = progress; + } + } +} - public void setUrl(String url) { - this.url = url; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getFinishTime() { - return finishTime; - } - public void setFinishTime(Integer finishTime) { - this.finishTime = finishTime; - } - public String getStatus() { - return status; - } - public void setStatus(String status) { - this.status = status; - } - public Integer getProgress() { - return progress; - } - public void setProgress(Integer progress) { - this.progress = progress; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetAuthConfigRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetAuthConfigRequest.java index 252da504..4cd8941a 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetAuthConfigRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetAuthConfigRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetAuthConfigRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 希望获取的域名,不传则获取所有 */ + + + + /** + * 希望获取的域名,不传则获取所有 + */ @UCloudParam("Domain") private String domain; - + + public String getRegion() { return region; } @@ -48,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -56,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -64,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDomain() { return domain; } @@ -72,4 +91,14 @@ public String getDomain() { public void setDomain(String domain) { this.domain = domain; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetAuthConfigResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetAuthConfigResponse.java index 7a2e43ac..f24410c4 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetAuthConfigResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetAuthConfigResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetAuthConfigResponse extends Response { - /** 鉴权配置列表 */ + + + /** + * 鉴权配置列表 + */ @SerializedName("AuthConfigs") private List authConfigs; - + + public List getAuthConfigs() { return authConfigs; } @@ -32,85 +41,119 @@ public List getAuthConfigs() { public void setAuthConfigs(List authConfigs) { this.authConfigs = authConfigs; } + + public static class KwaiAuthConfig extends Response { + + + /** + * 类型 pkey / ksc / typeA + */ + @SerializedName("Type") + private String type; + + + + /** + * + */ + @SerializedName("Keys") + private List keys; + + + public String getType() { + return type; + } - public static class KwaiAuthConfig extends Response { - - /** 类型 pkey / ksc / typeA */ - @SerializedName("Type") - private String type; - - /** */ - @SerializedName("Keys") - private List keys; - - public String getType() { - return type; - } + public void setType(String type) { + this.type = type; + } + + public List getKeys() { + return keys; + } - public void setType(String type) { - this.type = type; + public void setKeys(List keys) { + this.keys = keys; + } + } + public static class KwaiAuthKv extends Response { + + + /** + * key信息 + */ + @SerializedName("Key") + private String key; + + + + /** + * iv信息 + */ + @SerializedName("Iv") + private String iv; + + + public String getKey() { + return key; + } - public List getKeys() { - return keys; - } + public void setKey(String key) { + this.key = key; + } + + public String getIv() { + return iv; + } - public void setKeys(List keys) { - this.keys = keys; + public void setIv(String iv) { + this.iv = iv; + } + } + public static class KwaiDomainAuthConfig extends Response { + + + /** + * 域名 + */ + @SerializedName("Domain") + private String domain; + + + + /** + * + */ + @SerializedName("Config") + private List config; + + + public String getDomain() { + return domain; } - public static class KwaiAuthKv extends Response { - - /** key信息 */ - @SerializedName("Key") - private String key; - - /** iv信息 */ - @SerializedName("Iv") - private String iv; - - public String getKey() { - return key; - } + public void setDomain(String domain) { + this.domain = domain; + } + + public List getConfig() { + return config; + } - public void setKey(String key) { - this.key = key; + public void setConfig(List config) { + this.config = config; + } + } +} - public String getIv() { - return iv; - } - public void setIv(String iv) { - this.iv = iv; - } - } - public static class KwaiDomainAuthConfig extends Response { - /** 域名 */ - @SerializedName("Domain") - private String domain; - /** */ - @SerializedName("Config") - private List config; - public String getDomain() { - return domain; - } - public void setDomain(String domain) { - this.domain = domain; - } - public List getConfig() { - return config; - } - public void setConfig(List config) { - this.config = config; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetCertificateV2Request.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetCertificateV2Request.java index 004e2039..04f34c89 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetCertificateV2Request.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetCertificateV2Request.java @@ -1,39 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class GetCertificateV2Request extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 偏移,默认为0,非负整数 */ + + + + /** + * 偏移,默认为0,非负整数 + */ @UCloudParam("Offset") private Integer offset; - - /** 长度,默认为全部,非负整数 */ + + + + /** + * 长度,默认为全部,非负整数 + */ @UCloudParam("Limit") private Integer limit; - + + public String getProjectId() { return projectId; } @@ -41,7 +57,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getOffset() { return offset; } @@ -49,7 +65,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -57,4 +73,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetCertificateV2Response.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetCertificateV2Response.java index b35eb907..64e1debb 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetCertificateV2Response.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetCertificateV2Response.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetCertificateV2Response extends Response { - /** 证书数量 */ + + + /** + * 证书数量 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 证书信息列表 */ + + + + /** + * 证书信息列表 + */ @SerializedName("CertList") private List certList; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getCertList() { return certList; } @@ -44,115 +57,161 @@ public List getCertList() { public void setCertList(List certList) { this.certList = certList; } + + public static class CertList extends Response { + + + /** + * 证书名 + */ + @SerializedName("CertName") + private String certName; + + + + /** + * 通用名 + */ + @SerializedName("CommonName") + private String commonName; + + + + /** + * dns名称 + */ + @SerializedName("DnsName") + private String dnsName; + + + + /** + * 证书开始时间 + */ + @SerializedName("BeginTime") + private Integer beginTime; + + + + /** + * 证书获取时间 + */ + @SerializedName("EndTime") + private Integer endTime; + + + + /** + * 已配置域名个数 + */ + @SerializedName("DomainCount") + private Integer domainCount; + + + + /** + * 证书内容 + */ + @SerializedName("UserCert") + private String userCert; + + + + /** + * ca证内容 + */ + @SerializedName("CaCert") + private String caCert; + + + + /** + * 已配置的域名列表 + */ + @SerializedName("Domains") + private List domains; + + + public String getCertName() { + return certName; + } - public static class CertList extends Response { - - /** 证书名 */ - @SerializedName("CertName") - private String certName; - - /** 通用名 */ - @SerializedName("CommonName") - private String commonName; - - /** dns名称 */ - @SerializedName("DnsName") - private String dnsName; - - /** 证书开始时间 */ - @SerializedName("BeginTime") - private Integer beginTime; - - /** 证书获取时间 */ - @SerializedName("EndTime") - private Integer endTime; - - /** 已配置域名个数 */ - @SerializedName("DomainCount") - private Integer domainCount; - - /** 证书内容 */ - @SerializedName("UserCert") - private String userCert; - - /** ca证内容 */ - @SerializedName("CaCert") - private String caCert; - - /** 已配置的域名列表 */ - @SerializedName("Domains") - private List domains; - - public String getCertName() { - return certName; - } + public void setCertName(String certName) { + this.certName = certName; + } + + public String getCommonName() { + return commonName; + } - public void setCertName(String certName) { - this.certName = certName; - } + public void setCommonName(String commonName) { + this.commonName = commonName; + } + + public String getDnsName() { + return dnsName; + } - public String getCommonName() { - return commonName; - } + public void setDnsName(String dnsName) { + this.dnsName = dnsName; + } + + public Integer getBeginTime() { + return beginTime; + } - public void setCommonName(String commonName) { - this.commonName = commonName; - } + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } - public String getDnsName() { - return dnsName; - } + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public Integer getDomainCount() { + return domainCount; + } - public void setDnsName(String dnsName) { - this.dnsName = dnsName; - } + public void setDomainCount(Integer domainCount) { + this.domainCount = domainCount; + } + + public String getUserCert() { + return userCert; + } - public Integer getBeginTime() { - return beginTime; - } + public void setUserCert(String userCert) { + this.userCert = userCert; + } + + public String getCaCert() { + return caCert; + } - public void setBeginTime(Integer beginTime) { - this.beginTime = beginTime; - } + public void setCaCert(String caCert) { + this.caCert = caCert; + } + + public List getDomains() { + return domains; + } - public Integer getEndTime() { - return endTime; + public void setDomains(List domains) { + this.domains = domains; + } + } +} - public void setEndTime(Integer endTime) { - this.endTime = endTime; - } - public Integer getDomainCount() { - return domainCount; - } - public void setDomainCount(Integer domainCount) { - this.domainCount = domainCount; - } - public String getUserCert() { - return userCert; - } - public void setUserCert(String userCert) { - this.userCert = userCert; - } - public String getCaCert() { - return caCert; - } - public void setCaCert(String caCert) { - this.caCert = caCert; - } - public List getDomains() { - return domains; - } - public void setDomains(List domains) { - this.domains = domains; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnDomainHitRateRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnDomainHitRateRequest.java index 7173a3ab..ae4a5e86 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnDomainHitRateRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnDomainHitRateRequest.java @@ -1,55 +1,79 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.ucdn.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.ucdn.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class GetNewUcdnDomainHitRateRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度)默认5分钟 */ + + + + /** + * 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度)默认5分钟 + */ @UCloudParam("Type") private Integer type; - - /** 域名id,创建域名时生成的id。默认全部域名 */ + + + + /** + * 域名id,创建域名时生成的id。默认全部域名 + */ @UCloudParam("DomainId") private List domainId; - - /** 查询带宽区域 cn代表国内 abroad代表海外,只支持国内 */ + + + + /** + * 查询带宽区域 cn代表国内 abroad代表海外,只支持国内 + */ @UCloudParam("Areacode") private String areacode; - + + + /** - * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 - * 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 + * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 */ + + + + /** + * 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 + */ @UCloudParam("EndTime") private Integer endTime; - + + public String getProjectId() { return projectId; } @@ -57,7 +81,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getType() { return type; } @@ -65,7 +89,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public List getDomainId() { return domainId; } @@ -73,7 +97,7 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } - + public String getAreacode() { return areacode; } @@ -81,7 +105,7 @@ public String getAreacode() { public void setAreacode(String areacode) { this.areacode = areacode; } - + public Integer getBeginTime() { return beginTime; } @@ -89,7 +113,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -97,4 +121,14 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnDomainHitRateResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnDomainHitRateResponse.java index a981b54d..cf751491 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnDomainHitRateResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnDomainHitRateResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetNewUcdnDomainHitRateResponse extends Response { - /** 请求数实例表。 */ + + + /** + * 请求数实例表。 + */ @SerializedName("HitRateList") private List hitRateList; - + + public List getHitRateList() { return hitRateList; } @@ -32,43 +41,65 @@ public List getHitRateList() { public void setHitRateList(List hitRateList) { this.hitRateList = hitRateList; } + + public static class HitRateInfo extends Response { + + + /** + * 带宽获取的时间点。格式:时间戳 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 总流量命中率,单位% + */ + @SerializedName("FlowHitRate") + private Double flowHitRate; + + + + /** + * 请求数命中率,单位% + */ + @SerializedName("RequestHitRate") + private Double requestHitRate; + + + public Integer getTime() { + return time; + } - public static class HitRateInfo extends Response { + public void setTime(Integer time) { + this.time = time; + } + + public Double getFlowHitRate() { + return flowHitRate; + } + + public void setFlowHitRate(Double flowHitRate) { + this.flowHitRate = flowHitRate; + } + + public Double getRequestHitRate() { + return requestHitRate; + } + + public void setRequestHitRate(Double requestHitRate) { + this.requestHitRate = requestHitRate; + } + + } +} - /** 带宽获取的时间点。格式:时间戳 */ - @SerializedName("Time") - private Integer time; - /** 总流量命中率,单位% */ - @SerializedName("FlowHitRate") - private Double flowHitRate; - /** 请求数命中率,单位% */ - @SerializedName("RequestHitRate") - private Double requestHitRate; - public Integer getTime() { - return time; - } - public void setTime(Integer time) { - this.time = time; - } - public Double getFlowHitRate() { - return flowHitRate; - } - public void setFlowHitRate(Double flowHitRate) { - this.flowHitRate = flowHitRate; - } - public Double getRequestHitRate() { - return requestHitRate; - } - public void setRequestHitRate(Double requestHitRate) { - this.requestHitRate = requestHitRate; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogRefererStatisticsRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogRefererStatisticsRequest.java index eed756b1..4e124c06 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogRefererStatisticsRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogRefererStatisticsRequest.java @@ -1,48 +1,79 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class GetNewUcdnLogRefererStatisticsRequest extends Request { - /** 域名id,创建域名时生成的id */ + + + /** + * 域名id,创建域名时生成的id + */ @UCloudParam("DomainId") private String domainId; - - /** 查询带宽区域 cn代表国内 abroad代表海外 ;目前只支持国内 */ + + + + /** + * 查询带宽区域 cn代表国内 abroad代表海外 ;目前只支持国内 + */ @UCloudParam("Areacode") private String areacode; - - /** 查询带宽的起始时间,格式:时间戳 */ + + + + /** + * 查询带宽的起始时间,格式:时间戳 + */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询统计日志的结束时间,格式:时间戳。最大时间间隔30天 */ + + + + /** + * 查询统计日志的结束时间,格式:时间戳。最大时间间隔30天 + */ @UCloudParam("EndTime") private Integer endTime; - - /** 0表示按流量降序排列,1表示按照下载次数降序排列,默认为0 */ + + + + /** + * 0表示按流量降序排列,1表示按照下载次数降序排列,默认为0 + */ @UCloudParam("OrderBy") private Integer orderBy; - - /** 返回的结果数量限制,默认1000 */ + + + + /** + * 返回的结果数量限制,默认1000 + */ @UCloudParam("Limit") private Integer limit; - + + public String getDomainId() { return domainId; } @@ -50,7 +81,7 @@ public String getDomainId() { public void setDomainId(String domainId) { this.domainId = domainId; } - + public String getAreacode() { return areacode; } @@ -58,7 +89,7 @@ public String getAreacode() { public void setAreacode(String areacode) { this.areacode = areacode; } - + public Integer getBeginTime() { return beginTime; } @@ -66,7 +97,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -74,7 +105,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public Integer getOrderBy() { return orderBy; } @@ -82,7 +113,7 @@ public Integer getOrderBy() { public void setOrderBy(Integer orderBy) { this.orderBy = orderBy; } - + public Integer getLimit() { return limit; } @@ -90,4 +121,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogRefererStatisticsResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogRefererStatisticsResponse.java index b8741bb6..39903cb5 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogRefererStatisticsResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogRefererStatisticsResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetNewUcdnLogRefererStatisticsResponse extends Response { - /** 按天统计实例 */ + + + /** + * 按天统计实例 + */ @SerializedName("RefererStatistics") private List refererStatistics; - + + public List getRefererStatistics() { return refererStatistics; } @@ -32,70 +41,100 @@ public List getRefererStatistics() { public void setRefererStatistics(List refererStatistics) { this.refererStatistics = refererStatistics; } + + public static class RefererList extends Response { + + + /** + * 客户端请求的referer + */ + @SerializedName("Referer") + private String referer; + + + + /** + * 次数 + */ + @SerializedName("RequestTimes") + private Integer requestTimes; + + + + /** + * 次数占比,单位% + */ + @SerializedName("Percent") + private Double percent; + + + public String getReferer() { + return referer; + } - public static class RefererList extends Response { - - /** 客户端请求的referer */ - @SerializedName("Referer") - private String referer; - - /** 次数 */ - @SerializedName("RequestTimes") - private Integer requestTimes; - - /** 次数占比,单位% */ - @SerializedName("Percent") - private Double percent; + public void setReferer(String referer) { + this.referer = referer; + } + + public Integer getRequestTimes() { + return requestTimes; + } - public String getReferer() { - return referer; - } + public void setRequestTimes(Integer requestTimes) { + this.requestTimes = requestTimes; + } + + public Double getPercent() { + return percent; + } - public void setReferer(String referer) { - this.referer = referer; + public void setPercent(Double percent) { + this.percent = percent; + } + } + public static class RefererStatistics extends Response { + + + /** + * 日期 + */ + @SerializedName("Date") + private String date; + + + + /** + * Referer实例表 + */ + @SerializedName("RefererList") + private List refererList; + + + public String getDate() { + return date; + } - public Integer getRequestTimes() { - return requestTimes; - } + public void setDate(String date) { + this.date = date; + } + + public List getRefererList() { + return refererList; + } - public void setRequestTimes(Integer requestTimes) { - this.requestTimes = requestTimes; + public void setRefererList(List refererList) { + this.refererList = refererList; + } + } +} - public Double getPercent() { - return percent; - } - public void setPercent(Double percent) { - this.percent = percent; - } - } - public static class RefererStatistics extends Response { - /** 日期 */ - @SerializedName("Date") - private String date; - /** Referer实例表 */ - @SerializedName("RefererList") - private List refererList; - public String getDate() { - return date; - } - public void setDate(String date) { - this.date = date; - } - public List getRefererList() { - return refererList; - } - public void setRefererList(List refererList) { - this.refererList = refererList; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogUrlStatisticsRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogUrlStatisticsRequest.java index aa263006..af191bb7 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogUrlStatisticsRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogUrlStatisticsRequest.java @@ -1,57 +1,88 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetNewUcdnLogUrlStatisticsRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 域名Id */ + + + + /** + * 域名Id + */ @NotEmpty @UCloudParam("DomainId") private String domainId; - - /** 查询带宽区域 cn代表国内 abroad代表海外 只支持国内 */ + + + + /** + * 查询带宽区域 cn代表国内 abroad代表海外 只支持国内 + */ @UCloudParam("Areacode") private String areacode; - - /** 查询带宽的起始时间,格式:时间戳 */ + + + + /** + * 查询带宽的起始时间,格式:时间戳 + */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询统计日志的结束时间,格式:时间戳,只能支持查询1天。可不填 */ + + + + /** + * 查询统计日志的结束时间,格式:时间戳,只能支持查询1天。可不填 + */ @UCloudParam("EndTime") private Integer endTime; - - /** 0表示按流量降序排列,1表示按照下载次数降序排列,默认为0 */ + + + + /** + * 0表示按流量降序排列,1表示按照下载次数降序排列,默认为0 + */ @UCloudParam("OrderBy") private Integer orderBy; - - /** 返回的结果数量限制,默认1000 */ + + + + /** + * 返回的结果数量限制,默认1000 + */ @UCloudParam("Limit") private Integer limit; - + + public String getProjectId() { return projectId; } @@ -59,7 +90,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDomainId() { return domainId; } @@ -67,7 +98,7 @@ public String getDomainId() { public void setDomainId(String domainId) { this.domainId = domainId; } - + public String getAreacode() { return areacode; } @@ -75,7 +106,7 @@ public String getAreacode() { public void setAreacode(String areacode) { this.areacode = areacode; } - + public Integer getBeginTime() { return beginTime; } @@ -83,7 +114,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -91,7 +122,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public Integer getOrderBy() { return orderBy; } @@ -99,7 +130,7 @@ public Integer getOrderBy() { public void setOrderBy(Integer orderBy) { this.orderBy = orderBy; } - + public Integer getLimit() { return limit; } @@ -107,4 +138,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogUrlStatisticsResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogUrlStatisticsResponse.java index 79645a86..211844ea 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogUrlStatisticsResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogUrlStatisticsResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetNewUcdnLogUrlStatisticsResponse extends Response { - /** 按天统计实例。 */ + + + /** + * 按天统计实例。 + */ @SerializedName("UrlStatisticsList") private List urlStatisticsList; - + + public List getUrlStatisticsList() { return urlStatisticsList; } @@ -32,82 +41,116 @@ public List getUrlStatisticsList() { public void setUrlStatisticsList(List urlStatisticsList) { this.urlStatisticsList = urlStatisticsList; } + + public static class DownloadStatisticInfo extends Response { + + + /** + * 下载链接的url + */ + @SerializedName("Url") + private String url; + + + + /** + * 流量(单位为G) + */ + @SerializedName("Traffic") + private Double traffic; + + + + /** + * 下载次数 + */ + @SerializedName("DownloadTimes") + private Integer downloadTimes; + + + + /** + * 流量占比,单位% + */ + @SerializedName("Percent") + private Double percent; + + + public String getUrl() { + return url; + } - public static class DownloadStatisticInfo extends Response { - - /** 下载链接的url */ - @SerializedName("Url") - private String url; - - /** 流量(单位为G) */ - @SerializedName("Traffic") - private Double traffic; - - /** 下载次数 */ - @SerializedName("DownloadTimes") - private Integer downloadTimes; - - /** 流量占比,单位% */ - @SerializedName("Percent") - private Double percent; - - public String getUrl() { - return url; - } + public void setUrl(String url) { + this.url = url; + } + + public Double getTraffic() { + return traffic; + } - public void setUrl(String url) { - this.url = url; - } + public void setTraffic(Double traffic) { + this.traffic = traffic; + } + + public Integer getDownloadTimes() { + return downloadTimes; + } - public Double getTraffic() { - return traffic; - } + public void setDownloadTimes(Integer downloadTimes) { + this.downloadTimes = downloadTimes; + } + + public Double getPercent() { + return percent; + } - public void setTraffic(Double traffic) { - this.traffic = traffic; + public void setPercent(Double percent) { + this.percent = percent; + } + } + public static class UrlStatistics extends Response { + + + /** + * + */ + @SerializedName("UrlList") + private List urlList; + + + + /** + * 日期 + */ + @SerializedName("Date") + private String date; + + + public List getUrlList() { + return urlList; + } - public Integer getDownloadTimes() { - return downloadTimes; - } + public void setUrlList(List urlList) { + this.urlList = urlList; + } + + public String getDate() { + return date; + } - public void setDownloadTimes(Integer downloadTimes) { - this.downloadTimes = downloadTimes; + public void setDate(String date) { + this.date = date; + } + } +} - public Double getPercent() { - return percent; - } - public void setPercent(Double percent) { - this.percent = percent; - } - } - public static class UrlStatistics extends Response { - /** */ - @SerializedName("UrlList") - private List urlList; - /** 日期 */ - @SerializedName("Date") - private String date; - public List getUrlList() { - return urlList; - } - public void setUrlList(List urlList) { - this.urlList = urlList; - } - public String getDate() { - return date; - } - public void setDate(String date) { - this.date = date; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomain95BandwidthV2Request.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomain95BandwidthV2Request.java index 827cd178..ff1675e2 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomain95BandwidthV2Request.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomain95BandwidthV2Request.java @@ -1,55 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUcdnDomain95BandwidthV2Request extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 查询的起始日期,格式为Unix Timestamp */ + + + + /** + * 查询的起始日期,格式为Unix Timestamp + */ @NotEmpty @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束日期,格式为Unix Timestamp */ + + + + /** + * 查询的结束日期,格式为Unix Timestamp + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 域名id,创建域名时生成的id。默认全部域名 */ + + + + /** + * 域名id,创建域名时生成的id。默认全部域名 + */ @UCloudParam("DomainId") private List domainId; - - /** 查询带宽区域 cn代表国内 abroad代表海外 不填默认为全部区域 */ + + + + /** + * 查询带宽区域 cn代表国内 abroad代表海外 不填默认为全部区域 + */ @UCloudParam("Areacode") private String areacode; - - /** 是否是动态加速 默认是false */ + + + + /** + * 是否是动态加速 默认是false + */ @UCloudParam("IsDcdn") private Boolean isDcdn; - + + public String getProjectId() { return projectId; } @@ -57,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getBeginTime() { return beginTime; } @@ -65,7 +91,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -73,7 +99,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public List getDomainId() { return domainId; } @@ -81,7 +107,7 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } - + public String getAreacode() { return areacode; } @@ -89,7 +115,7 @@ public String getAreacode() { public void setAreacode(String areacode) { this.areacode = areacode; } - + public Boolean getIsDcdn() { return isDcdn; } @@ -97,4 +123,14 @@ public Boolean getIsDcdn() { public void setIsDcdn(Boolean isDcdn) { this.isDcdn = isDcdn; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomain95BandwidthV2Response.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomain95BandwidthV2Response.java index f90586dd..89018b0c 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomain95BandwidthV2Response.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomain95BandwidthV2Response.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUcdnDomain95BandwidthV2Response extends Response { - /** 查询时间期间的95带宽时间点 Unix时间戳 */ + + + /** + * 查询时间期间的95带宽时间点 Unix时间戳 + */ @SerializedName("Time") private Integer time; - - /** 查询期间的CDN的95带宽值,单位Mbps */ + + + + /** + * 查询期间的CDN的95带宽值,单位Mbps + */ @SerializedName("CdnBandwidth") private Double cdnBandwidth; - + + public Integer getTime() { return time; } @@ -35,7 +49,7 @@ public Integer getTime() { public void setTime(Integer time) { this.time = time; } - + public Double getCdnBandwidth() { return cdnBandwidth; } @@ -43,4 +57,14 @@ public Double getCdnBandwidth() { public void setCdnBandwidth(Double cdnBandwidth) { this.cdnBandwidth = cdnBandwidth; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthByIpProtocolRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthByIpProtocolRequest.java index 44cca3cc..ad44d1e5 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthByIpProtocolRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthByIpProtocolRequest.java @@ -1,62 +1,89 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUcdnDomainBandwidthByIpProtocolRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示按照1分钟粒度) */ + + + + /** + * 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示按照1分钟粒度) + */ @NotEmpty @UCloudParam("Type") private Integer type; - - /** 协议,ipv4、ipv6 */ + + + + /** + * 协议,ipv4、ipv6 + */ @NotEmpty @UCloudParam("IpProtocol") private String ipProtocol; - - /** 域名id,创建域名时生成的id。默认全部域名 */ + + + + /** + * 域名id,创建域名时生成的id。默认全部域名 + */ @UCloudParam("DomainId") private List domainId; - - /** 查询带宽区域 cn代表国内 abroad代表海外 不填默认为全部区域 */ + + + + /** + * 查询带宽区域 cn代表国内 abroad代表海外 不填默认为全部区域 + */ @UCloudParam("Areacode") private String areacode; - + + + /** - * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 - * 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 + * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 */ + + + + /** + * 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 + */ @UCloudParam("EndTime") private Integer endTime; - + + public String getProjectId() { return projectId; } @@ -64,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getType() { return type; } @@ -72,7 +99,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public String getIpProtocol() { return ipProtocol; } @@ -80,7 +107,7 @@ public String getIpProtocol() { public void setIpProtocol(String ipProtocol) { this.ipProtocol = ipProtocol; } - + public List getDomainId() { return domainId; } @@ -88,7 +115,7 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } - + public String getAreacode() { return areacode; } @@ -96,7 +123,7 @@ public String getAreacode() { public void setAreacode(String areacode) { this.areacode = areacode; } - + public Integer getBeginTime() { return beginTime; } @@ -104,7 +131,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -112,4 +139,14 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthByIpProtocolResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthByIpProtocolResponse.java index 61643963..8447c2a7 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthByIpProtocolResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthByIpProtocolResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnDomainBandwidthByIpProtocolResponse extends Response { - /** 带宽信息列表,参见BandwidthTrafficInfo */ + + + /** + * 带宽信息列表,参见BandwidthTrafficInfo + */ @SerializedName("BandwidthTrafficList") private List bandwidthTrafficList; - + + public List getBandwidthTrafficList() { return bandwidthTrafficList; } @@ -32,45 +41,65 @@ public List getBandwidthTrafficList() { public void setBandwidthTrafficList(List bandwidthTrafficList) { this.bandwidthTrafficList = bandwidthTrafficList; } + + public static class BandwidthTrafficInfo extends Response { + + + /** + * 带宽获取的时间点。格式:时间戳 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 返回值返回指定时间区间内CDN的带宽峰值,单位Mbps(如果请求参数Type为0,则Value是五分钟粒度的带宽值,如果Type为1,则Value是1小时的带宽峰值,如果Type为2,则Value是一天内的带宽峰值) + */ + @SerializedName("CdnBandwidth") + private Double cdnBandwidth; + + + + /** + * 对应时间粒度的流量,单位字节 + */ + @SerializedName("Traffic") + private Double traffic; + + + public Integer getTime() { + return time; + } - public static class BandwidthTrafficInfo extends Response { + public void setTime(Integer time) { + this.time = time; + } + + public Double getCdnBandwidth() { + return cdnBandwidth; + } + + public void setCdnBandwidth(Double cdnBandwidth) { + this.cdnBandwidth = cdnBandwidth; + } + + public Double getTraffic() { + return traffic; + } + + public void setTraffic(Double traffic) { + this.traffic = traffic; + } + + } +} - /** 带宽获取的时间点。格式:时间戳 */ - @SerializedName("Time") - private Integer time; - /** - * 返回值返回指定时间区间内CDN的带宽峰值,单位Mbps(如果请求参数Type为0,则Value是五分钟粒度的带宽值,如果Type为1,则Value是1小时的带宽峰值,如果Type为2,则Value是一天内的带宽峰值) - */ - @SerializedName("CdnBandwidth") - private Double cdnBandwidth; - /** 对应时间粒度的流量,单位字节 */ - @SerializedName("Traffic") - private Double traffic; - public Integer getTime() { - return time; - } - public void setTime(Integer time) { - this.time = time; - } - public Double getCdnBandwidth() { - return cdnBandwidth; - } - public void setCdnBandwidth(Double cdnBandwidth) { - this.cdnBandwidth = cdnBandwidth; - } - public Double getTraffic() { - return traffic; - } - public void setTraffic(Double traffic) { - this.traffic = traffic; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthV2Request.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthV2Request.java index 1e5dee52..b340f6a7 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthV2Request.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthV2Request.java @@ -1,67 +1,103 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.ucdn.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.ucdn.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class GetUcdnDomainBandwidthV2Request extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示按照1分钟粒度) */ + + + + /** + * 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示按照1分钟粒度) + */ @UCloudParam("Type") private Integer type; - - /** 域名id,创建域名时生成的id。默认全部域名;例(DomainId.0=ucdn-xxxxxx;DomainId.1=ucdn-xxxxxx) */ + + + + /** + * 域名id,创建域名时生成的id。默认全部域名;例(DomainId.0=ucdn-xxxxxx;DomainId.1=ucdn-xxxxxx) + */ @UCloudParam("DomainId") private List domainId; - - /** 查询带宽区域 cn代表国内 abroad代表海外 不填默认为全部区域 */ + + + + /** + * 查询带宽区域 cn代表国内 abroad代表海外 不填默认为全部区域 + */ @UCloudParam("Areacode") private String areacode; - + + + /** - * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 - * 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 + * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 */ + + + + /** + * 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 + */ @UCloudParam("EndTime") private Integer endTime; - - /** 协议,http、https、websocket 不传则查所有协议的带宽,可以查多个协议,用逗号分隔 */ + + + + /** + * 协议,http、https、websocket 不传则查所有协议的带宽,可以查多个协议,用逗号分隔 + */ @UCloudParam("Protocol") private String protocol; - - /** 原始带宽,不为0则获取原始带宽,默认为0 */ + + + + /** + * 原始带宽,不为0则获取原始带宽,默认为0 + */ @UCloudParam("Primeval") private Integer primeval; - - /** 是否全站加速,默认false */ + + + + /** + * 是否全站加速,默认false + */ @UCloudParam("IsDcdn") private Boolean isDcdn; - + + public String getProjectId() { return projectId; } @@ -69,7 +105,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getType() { return type; } @@ -77,7 +113,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public List getDomainId() { return domainId; } @@ -85,7 +121,7 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } - + public String getAreacode() { return areacode; } @@ -93,7 +129,7 @@ public String getAreacode() { public void setAreacode(String areacode) { this.areacode = areacode; } - + public Integer getBeginTime() { return beginTime; } @@ -101,7 +137,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -109,7 +145,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public String getProtocol() { return protocol; } @@ -117,7 +153,7 @@ public String getProtocol() { public void setProtocol(String protocol) { this.protocol = protocol; } - + public Integer getPrimeval() { return primeval; } @@ -125,7 +161,7 @@ public Integer getPrimeval() { public void setPrimeval(Integer primeval) { this.primeval = primeval; } - + public Boolean getIsDcdn() { return isDcdn; } @@ -133,4 +169,14 @@ public Boolean getIsDcdn() { public void setIsDcdn(Boolean isDcdn) { this.isDcdn = isDcdn; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthV2Response.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthV2Response.java index b92c013e..a22d4091 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthV2Response.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainBandwidthV2Response.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnDomainBandwidthV2Response extends Response { - /** 带宽信息列表,参见BandwidthTrafficInfo */ + + + /** + * 带宽信息列表,参见BandwidthTrafficInfo + */ @SerializedName("BandwidthTrafficList") private List bandwidthTrafficList; - + + public List getBandwidthTrafficList() { return bandwidthTrafficList; } @@ -32,45 +41,65 @@ public List getBandwidthTrafficList() { public void setBandwidthTrafficList(List bandwidthTrafficList) { this.bandwidthTrafficList = bandwidthTrafficList; } + + public static class BandwidthTrafficInfo extends Response { + + + /** + * 带宽获取的时间点。格式:时间戳 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 返回值返回指定时间区间内CDN的带宽峰值,单位Mbps(如果请求参数Type为0,则Value是五分钟粒度的带宽值,如果Type为1,则Value是1小时的带宽峰值,如果Type为2,则Value是一天内的带宽峰值) + */ + @SerializedName("CdnBandwidth") + private Double cdnBandwidth; + + + + /** + * 对应时间粒度的流量,单位字节 + */ + @SerializedName("Traffic") + private Double traffic; + + + public Integer getTime() { + return time; + } - public static class BandwidthTrafficInfo extends Response { + public void setTime(Integer time) { + this.time = time; + } + + public Double getCdnBandwidth() { + return cdnBandwidth; + } + + public void setCdnBandwidth(Double cdnBandwidth) { + this.cdnBandwidth = cdnBandwidth; + } + + public Double getTraffic() { + return traffic; + } + + public void setTraffic(Double traffic) { + this.traffic = traffic; + } + + } +} - /** 带宽获取的时间点。格式:时间戳 */ - @SerializedName("Time") - private Integer time; - /** - * 返回值返回指定时间区间内CDN的带宽峰值,单位Mbps(如果请求参数Type为0,则Value是五分钟粒度的带宽值,如果Type为1,则Value是1小时的带宽峰值,如果Type为2,则Value是一天内的带宽峰值) - */ - @SerializedName("CdnBandwidth") - private Double cdnBandwidth; - /** 对应时间粒度的流量,单位字节 */ - @SerializedName("Traffic") - private Double traffic; - public Integer getTime() { - return time; - } - public void setTime(Integer time) { - this.time = time; - } - public Double getCdnBandwidth() { - return cdnBandwidth; - } - public void setCdnBandwidth(Double cdnBandwidth) { - this.cdnBandwidth = cdnBandwidth; - } - public Double getTraffic() { - return traffic; - } - public void setTraffic(Double traffic) { - this.traffic = traffic; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainConfigRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainConfigRequest.java index 6721c800..53d41e5a 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainConfigRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainConfigRequest.java @@ -1,56 +1,87 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.ucdn.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.ucdn.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class GetUcdnDomainConfigRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 数据偏移量,默认0,非负整数 */ + + + + /** + * 数据偏移量,默认0,非负整数 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度, 默认全部,非负整数 */ + + + + /** + * 返回数据长度, 默认全部,非负整数 + */ @UCloudParam("Limit") private Integer limit; - - /** 域名id,创建域名时生成的id。默认获取账号下的所有域名信息,n为自然数,从DomainId.0开始。 */ + + + + /** + * 域名id,创建域名时生成的id。默认获取账号下的所有域名信息,n为自然数,从DomainId.0开始。 + */ @UCloudParam("DomainId") private List domainId; - - /** 产品类型ucdn,可不填,默认为ucdn */ + + + + /** + * 产品类型ucdn,可不填,默认为ucdn + */ @UCloudParam("ChannelType") private String channelType; - - /** 域名 */ + + + + /** + * 域名 + */ @UCloudParam("Domain") private List domain; - - /** 是否是动态加速 默认是false */ + + + + /** + * 是否是动态加速 默认是false + */ @UCloudParam("IsDcdn") private Boolean isDcdn; - + + public String getProjectId() { return projectId; } @@ -58,7 +89,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getOffset() { return offset; } @@ -66,7 +97,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -74,7 +105,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public List getDomainId() { return domainId; } @@ -82,7 +113,7 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } - + public String getChannelType() { return channelType; } @@ -90,7 +121,7 @@ public String getChannelType() { public void setChannelType(String channelType) { this.channelType = channelType; } - + public List getDomain() { return domain; } @@ -98,7 +129,7 @@ public List getDomain() { public void setDomain(List domain) { this.domain = domain; } - + public Boolean getIsDcdn() { return isDcdn; } @@ -106,4 +137,14 @@ public Boolean getIsDcdn() { public void setIsDcdn(Boolean isDcdn) { this.isDcdn = isDcdn; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainConfigResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainConfigResponse.java index 2f24725c..fd6679d6 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainConfigResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainConfigResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnDomainConfigResponse extends Response { - /** 获取的域名信息,具体参考下面DomainConfig */ + + + /** + * 获取的域名信息,具体参考下面DomainConfig + */ @SerializedName("DomainList") private List domainList; - + + public List getDomainList() { return domainList; } @@ -32,647 +41,867 @@ public List getDomainList() { public void setDomainList(List domainList) { this.domainList = domainList; } - - public static class AccessControlConf extends Response { - - /** ip黑名单,多个ip,可表示为: IpBlackList.0=1.1.1.1,IpBlackList.1=2.2.2.2 */ - @SerializedName("IpBlackList") - private List ipBlackList; - - /** refer配置 */ - @SerializedName("ReferConf") - private ReferConf referConf; - - public List getIpBlackList() { - return ipBlackList; - } - - public void setIpBlackList(List ipBlackList) { - this.ipBlackList = ipBlackList; - } - - public ReferConf getReferConf() { - return referConf; - } - - public void setReferConf(ReferConf referConf) { - this.referConf = referConf; - } + + public static class AccessControlConf extends Response { + + + /** + * ip黑名单,多个ip,可表示为: +IpBlackList.0=1.1.1.1,IpBlackList.1=2.2.2.2 + */ + @SerializedName("IpBlackList") + private List ipBlackList; + + + + /** + * refer配置 + */ + @SerializedName("ReferConf") + private ReferConf referConf; + + + public List getIpBlackList() { + return ipBlackList; } - public static class AdvancedConf extends Response { - - /** 客户端响应http头列表 */ - @SerializedName("HttpClientHeader") - private List httpClientHeader; - - /** 源站http头列表 */ - @SerializedName("HttpOriginHeader") - private List httpOriginHeader; - - /** http转https回源 true是,false否 */ - @SerializedName("Http2Https") - private Boolean http2Https; - - /** 是否开启websocket */ - @SerializedName("WebSocketEnable") - private Boolean webSocketEnable; - - /** 是否开启quic */ - @SerializedName("QuicEnable") - private Boolean quicEnable; - - public List getHttpClientHeader() { - return httpClientHeader; - } - - public void setHttpClientHeader(List httpClientHeader) { - this.httpClientHeader = httpClientHeader; - } - - public List getHttpOriginHeader() { - return httpOriginHeader; - } - - public void setHttpOriginHeader(List httpOriginHeader) { - this.httpOriginHeader = httpOriginHeader; - } - - public Boolean getHttp2Https() { - return http2Https; - } - - public void setHttp2Https(Boolean http2Https) { - this.http2Https = http2Https; - } - - public Boolean getWebSocketEnable() { - return webSocketEnable; - } - - public void setWebSocketEnable(Boolean webSocketEnable) { - this.webSocketEnable = webSocketEnable; - } - - public Boolean getQuicEnable() { - return quicEnable; - } - - public void setQuicEnable(Boolean quicEnable) { - this.quicEnable = quicEnable; - } + public void setIpBlackList(List ipBlackList) { + this.ipBlackList = ipBlackList; } - - public static class CacheAllConfig extends Response { - - /** 缓存Host,不同的域名可以配置为同一个CacheHost来实现缓存共享,默认为加速域名 */ - @SerializedName("CacheHost") - private String cacheHost; - - /** 缓存配置列表,参见CacheConf */ - @SerializedName("CacheList") - private List cacheList; - - /** 状态码缓存配置列表,参见CacheConf */ - @SerializedName("HttpCodeCacheList") - private List httpCodeCacheList; - - /** 忽略参数缓存配置列表,参见CacheKeyInfo */ - @SerializedName("CacheKeyList") - private List cacheKeyList; - - public String getCacheHost() { - return cacheHost; - } - - public void setCacheHost(String cacheHost) { - this.cacheHost = cacheHost; - } - - public List getCacheList() { - return cacheList; - } - - public void setCacheList(List cacheList) { - this.cacheList = cacheList; - } - - public List getHttpCodeCacheList() { - return httpCodeCacheList; - } - - public void setHttpCodeCacheList(List httpCodeCacheList) { - this.httpCodeCacheList = httpCodeCacheList; - } - - public List getCacheKeyList() { - return cacheKeyList; - } - - public void setCacheKeyList(List cacheKeyList) { - this.cacheKeyList = cacheKeyList; - } + + public ReferConf getReferConf() { + return referConf; } - public static class CacheConf extends Response { - - /** 路径模式,支持正则 */ - @SerializedName("PathPattern") - private String pathPattern; - - /** 缓存时间 */ - @SerializedName("CacheTTL") - private Integer cacheTTL; - - /** 缓存时间的单位。sec(秒),min(分钟),hour(小时),day(天)。上限1年。 */ - @SerializedName("CacheUnit") - private String cacheUnit; - - /** 是否缓存,true为缓存,flase为不缓存。为flase的情况下,CacheTTL和CacheUnit强制不生效 */ - @SerializedName("CacheBehavior") - private Boolean cacheBehavior; - - /** 状态码模式,非200,206状态码,多个状态码用竖线(|)分隔,该属性仅仅在状态码缓存配置列表中返回 */ - @SerializedName("HttpCodePattern") - private String httpCodePattern; - - /** 缓存规则描述 */ - @SerializedName("Description") - private String description; - - /** 是否优先遵循源站头部缓存策略,false为不优先遵循源站,true为优先遵循源站缓存头部。默认为0 */ - @SerializedName("FollowOriginRule") - private Boolean followOriginRule; - - public String getPathPattern() { - return pathPattern; - } - - public void setPathPattern(String pathPattern) { - this.pathPattern = pathPattern; - } - - public Integer getCacheTTL() { - return cacheTTL; - } - - public void setCacheTTL(Integer cacheTTL) { - this.cacheTTL = cacheTTL; - } - - public String getCacheUnit() { - return cacheUnit; - } - - public void setCacheUnit(String cacheUnit) { - this.cacheUnit = cacheUnit; - } - - public Boolean getCacheBehavior() { - return cacheBehavior; - } - - public void setCacheBehavior(Boolean cacheBehavior) { - this.cacheBehavior = cacheBehavior; - } - - public String getHttpCodePattern() { - return httpCodePattern; - } - - public void setHttpCodePattern(String httpCodePattern) { - this.httpCodePattern = httpCodePattern; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Boolean getFollowOriginRule() { - return followOriginRule; - } - - public void setFollowOriginRule(Boolean followOriginRule) { - this.followOriginRule = followOriginRule; - } + public void setReferConf(ReferConf referConf) { + this.referConf = referConf; } - - public static class CacheKeyInfo extends Response { - - /** 是否忽略 */ - @SerializedName("Ignore") - private Boolean ignore; - - /** 路径模式,支持正则 */ - @SerializedName("PathPattern") - private String pathPattern; - - /** 自定义变量,以$符号开头,多个变量用加号(+)连接,$querystring表示所有变量 */ - @SerializedName("QueryString") - private String queryString; - - public Boolean getIgnore() { - return ignore; - } - - public void setIgnore(Boolean ignore) { - this.ignore = ignore; - } - - public String getPathPattern() { - return pathPattern; - } - - public void setPathPattern(String pathPattern) { - this.pathPattern = pathPattern; - } - - public String getQueryString() { - return queryString; - } - - public void setQueryString(String queryString) { - this.queryString = queryString; - } + + } + public static class AdvancedConf extends Response { + + + /** + * 客户端响应http头列表 + */ + @SerializedName("HttpClientHeader") + private List httpClientHeader; + + + + /** + * 源站http头列表 + */ + @SerializedName("HttpOriginHeader") + private List httpOriginHeader; + + + + /** + * http转https回源 true是,false否 + */ + @SerializedName("Http2Https") + private Boolean http2Https; + + + + /** + * 是否开启websocket + */ + @SerializedName("WebSocketEnable") + private Boolean webSocketEnable; + + + + /** + * 是否开启quic + */ + @SerializedName("QuicEnable") + private Boolean quicEnable; + + + public List getHttpClientHeader() { + return httpClientHeader; } - public static class DomainConfigInfo extends Response { - - /** 查询带宽区域 cn代表国内 abroad代表海外 all表示全部区域 */ - @SerializedName("AreaCode") - private String areaCode; - - /** 加速域名的业务类型,web代表网站,stream代表视频 ,download 代表下载 */ - @SerializedName("CdnType") - private String cdnType; - - /** - * 创建的加速域名的当前的状态。 check代表审核中; checkSuccess代表审核通过; checkFail代表审核失败; enable代表加速中; - * disable代表停止加速; delete代表删除加速; enableing代表正在开启加速; disableing代表正在停止加速中; deleteing代表删除中; - * deploying代表部署中 - */ - @SerializedName("Status") - private String status; - - /** cdn域名。创建加速域名生成的cdn域名,用于设置CNAME记录 */ - @SerializedName("Cname") - private String cname; - - /** 域名创建的时间。格式:时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 测试url。用于域名创建加速时的测试 */ - @SerializedName("TestUrl") - private String testUrl; - - /** 国内https状态 enableing-开启中 fail-开启失败 enable-启用 disable-未启用 */ - @SerializedName("HttpsStatusCn") - private String httpsStatusCn; - - /** 国外https状态 enableing-开启中 fail-开启失败 enable-启用 disable-未启用 */ - @SerializedName("HttpsStatusAbroad") - private String httpsStatusAbroad; - - /** 国内证书名称 */ - @SerializedName("CertNameCn") - private String certNameCn; - - /** 国外证书名称 */ - @SerializedName("CertNameAbroad") - private String certNameAbroad; - - /** 业务组:Default */ - @SerializedName("Tag") - private String tag; - - /** 域名Id */ - @SerializedName("DomainId") - private String domainId; - - /** 域名 */ - @SerializedName("Domain") - private String domain; - - /** 源站配置 参考OriginConf */ - @SerializedName("OriginConf") - private OriginConf originConf; - - /** 访问控制配置 参考AccessControlConf */ - @SerializedName("AccessControlConf") - private AccessControlConf accessControlConf; - - /** 缓存配置 参考CacheAllConfig */ - @SerializedName("CacheConf") - private CacheAllConfig cacheConf; - - /** 高级配置 参考AdvancedConf */ - @SerializedName("AdvancedConf") - private AdvancedConf advancedConf; - - public String getAreaCode() { - return areaCode; - } - - public void setAreaCode(String areaCode) { - this.areaCode = areaCode; - } - - public String getCdnType() { - return cdnType; - } - - public void setCdnType(String cdnType) { - this.cdnType = cdnType; - } - - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getCname() { - return cname; - } - - public void setCname(String cname) { - this.cname = cname; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public String getTestUrl() { - return testUrl; - } - - public void setTestUrl(String testUrl) { - this.testUrl = testUrl; - } - - public String getHttpsStatusCn() { - return httpsStatusCn; - } - - public void setHttpsStatusCn(String httpsStatusCn) { - this.httpsStatusCn = httpsStatusCn; - } - - public String getHttpsStatusAbroad() { - return httpsStatusAbroad; - } - - public void setHttpsStatusAbroad(String httpsStatusAbroad) { - this.httpsStatusAbroad = httpsStatusAbroad; - } - - public String getCertNameCn() { - return certNameCn; - } - - public void setCertNameCn(String certNameCn) { - this.certNameCn = certNameCn; - } + public void setHttpClientHeader(List httpClientHeader) { + this.httpClientHeader = httpClientHeader; + } + + public List getHttpOriginHeader() { + return httpOriginHeader; + } - public String getCertNameAbroad() { - return certNameAbroad; - } + public void setHttpOriginHeader(List httpOriginHeader) { + this.httpOriginHeader = httpOriginHeader; + } + + public Boolean getHttp2Https() { + return http2Https; + } - public void setCertNameAbroad(String certNameAbroad) { - this.certNameAbroad = certNameAbroad; - } + public void setHttp2Https(Boolean http2Https) { + this.http2Https = http2Https; + } + + public Boolean getWebSocketEnable() { + return webSocketEnable; + } - public String getTag() { - return tag; - } + public void setWebSocketEnable(Boolean webSocketEnable) { + this.webSocketEnable = webSocketEnable; + } + + public Boolean getQuicEnable() { + return quicEnable; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setQuicEnable(Boolean quicEnable) { + this.quicEnable = quicEnable; + } + + } + public static class CacheAllConfig extends Response { + + + /** + * 缓存Host,不同的域名可以配置为同一个CacheHost来实现缓存共享,默认为加速域名 + */ + @SerializedName("CacheHost") + private String cacheHost; + + + + /** + * 缓存配置列表,参见CacheConf + */ + @SerializedName("CacheList") + private List cacheList; + + + + /** + * 状态码缓存配置列表,参见CacheConf + */ + @SerializedName("HttpCodeCacheList") + private List httpCodeCacheList; + + + + /** + * 忽略参数缓存配置列表,参见CacheKeyInfo + */ + @SerializedName("CacheKeyList") + private List cacheKeyList; + + + public String getCacheHost() { + return cacheHost; + } - public String getDomainId() { - return domainId; - } + public void setCacheHost(String cacheHost) { + this.cacheHost = cacheHost; + } + + public List getCacheList() { + return cacheList; + } - public void setDomainId(String domainId) { - this.domainId = domainId; - } + public void setCacheList(List cacheList) { + this.cacheList = cacheList; + } + + public List getHttpCodeCacheList() { + return httpCodeCacheList; + } - public String getDomain() { - return domain; - } + public void setHttpCodeCacheList(List httpCodeCacheList) { + this.httpCodeCacheList = httpCodeCacheList; + } + + public List getCacheKeyList() { + return cacheKeyList; + } - public void setDomain(String domain) { - this.domain = domain; - } + public void setCacheKeyList(List cacheKeyList) { + this.cacheKeyList = cacheKeyList; + } + + } + public static class CacheConf extends Response { + + + /** + * 路径模式,支持正则 + */ + @SerializedName("PathPattern") + private String pathPattern; + + + + /** + * 缓存时间 + */ + @SerializedName("CacheTTL") + private Integer cacheTTL; + + + + /** + * 缓存时间的单位。sec(秒),min(分钟),hour(小时),day(天)。上限1年。 + */ + @SerializedName("CacheUnit") + private String cacheUnit; + + + + /** + * 是否缓存,true为缓存,flase为不缓存。为flase的情况下,CacheTTL和CacheUnit强制不生效 + */ + @SerializedName("CacheBehavior") + private Boolean cacheBehavior; + + + + /** + * 状态码模式,非200,206状态码,多个状态码用竖线(|)分隔,该属性仅仅在状态码缓存配置列表中返回 + */ + @SerializedName("HttpCodePattern") + private String httpCodePattern; + + + + /** + * 缓存规则描述 + */ + @SerializedName("Description") + private String description; + + + + /** + * 是否优先遵循源站头部缓存策略,false为不优先遵循源站,true为优先遵循源站缓存头部。默认为0 + */ + @SerializedName("FollowOriginRule") + private Boolean followOriginRule; + + + public String getPathPattern() { + return pathPattern; + } - public OriginConf getOriginConf() { - return originConf; - } + public void setPathPattern(String pathPattern) { + this.pathPattern = pathPattern; + } + + public Integer getCacheTTL() { + return cacheTTL; + } - public void setOriginConf(OriginConf originConf) { - this.originConf = originConf; - } + public void setCacheTTL(Integer cacheTTL) { + this.cacheTTL = cacheTTL; + } + + public String getCacheUnit() { + return cacheUnit; + } - public AccessControlConf getAccessControlConf() { - return accessControlConf; - } + public void setCacheUnit(String cacheUnit) { + this.cacheUnit = cacheUnit; + } + + public Boolean getCacheBehavior() { + return cacheBehavior; + } - public void setAccessControlConf(AccessControlConf accessControlConf) { - this.accessControlConf = accessControlConf; - } + public void setCacheBehavior(Boolean cacheBehavior) { + this.cacheBehavior = cacheBehavior; + } + + public String getHttpCodePattern() { + return httpCodePattern; + } - public CacheAllConfig getCacheConf() { - return cacheConf; - } + public void setHttpCodePattern(String httpCodePattern) { + this.httpCodePattern = httpCodePattern; + } + + public String getDescription() { + return description; + } - public void setCacheConf(CacheAllConfig cacheConf) { - this.cacheConf = cacheConf; - } + public void setDescription(String description) { + this.description = description; + } + + public Boolean getFollowOriginRule() { + return followOriginRule; + } - public AdvancedConf getAdvancedConf() { - return advancedConf; - } + public void setFollowOriginRule(Boolean followOriginRule) { + this.followOriginRule = followOriginRule; + } + + } + public static class CacheKeyInfo extends Response { + + + /** + * 是否忽略 + */ + @SerializedName("Ignore") + private Boolean ignore; + + + + /** + * 路径模式,支持正则 + */ + @SerializedName("PathPattern") + private String pathPattern; + + + + /** + * 自定义变量,以$符号开头,多个变量用加号(+)连接,$querystring表示所有变量 + */ + @SerializedName("QueryString") + private String queryString; + + + public Boolean getIgnore() { + return ignore; + } - public void setAdvancedConf(AdvancedConf advancedConf) { - this.advancedConf = advancedConf; - } + public void setIgnore(Boolean ignore) { + this.ignore = ignore; + } + + public String getPathPattern() { + return pathPattern; } - public static class OriginConf extends Response { + public void setPathPattern(String pathPattern) { + this.pathPattern = pathPattern; + } + + public String getQueryString() { + return queryString; + } - /** 源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"] */ - @SerializedName("OriginIpList") - private List originIpList; + public void setQueryString(String queryString) { + this.queryString = queryString; + } + + } + public static class DomainConfigInfo extends Response { + + + /** + * 查询带宽区域 cn代表国内 abroad代表海外 all表示全部区域 + */ + @SerializedName("AreaCode") + private String areaCode; + + + + /** + * 加速域名的业务类型,web代表网站,stream代表视频 ,download 代表下载 + */ + @SerializedName("CdnType") + private String cdnType; + + + + /** + * 创建的加速域名的当前的状态。 +check代表审核中; +checkSuccess代表审核通过; +checkFail代表审核失败; +enable代表加速中; +disable代表停止加速; +delete代表删除加速; +enableing代表正在开启加速; +disableing代表正在停止加速中; +deleteing代表删除中; +deploying代表部署中 + */ + @SerializedName("Status") + private String status; + + + + /** + * cdn域名。创建加速域名生成的cdn域名,用于设置CNAME记录 + */ + @SerializedName("Cname") + private String cname; + + + + /** + * 域名创建的时间。格式:时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 测试url。用于域名创建加速时的测试 + */ + @SerializedName("TestUrl") + private String testUrl; + + + + /** + * 国内https状态 enableing-开启中 fail-开启失败 enable-启用 disable-未启用 + */ + @SerializedName("HttpsStatusCn") + private String httpsStatusCn; + + + + /** + * 国外https状态 enableing-开启中 fail-开启失败 enable-启用 disable-未启用 + */ + @SerializedName("HttpsStatusAbroad") + private String httpsStatusAbroad; + + + + /** + * 国内证书名称 + */ + @SerializedName("CertNameCn") + private String certNameCn; + + + + /** + * 国外证书名称 + */ + @SerializedName("CertNameAbroad") + private String certNameAbroad; + + + + /** + * 业务组:Default + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 域名Id + */ + @SerializedName("DomainId") + private String domainId; + + + + /** + * 域名 + */ + @SerializedName("Domain") + private String domain; + + + + /** + * 源站配置 参考OriginConf + */ + @SerializedName("OriginConf") + private OriginConf originConf; + + + + /** + * 访问控制配置 参考AccessControlConf + */ + @SerializedName("AccessControlConf") + private AccessControlConf accessControlConf; + + + + /** + * 缓存配置 参考CacheAllConfig + */ + @SerializedName("CacheConf") + private CacheAllConfig cacheConf; + + + + /** + * 高级配置 参考AdvancedConf + */ + @SerializedName("AdvancedConf") + private AdvancedConf advancedConf; + + + public String getAreaCode() { + return areaCode; + } - /** 回源Http请求头部Host,默认是加速域名 */ - @SerializedName("OriginHost") - private String originHost; + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } + + public String getCdnType() { + return cdnType; + } - /** 回源端口 */ - @SerializedName("OriginPort") - private Integer originPort; + public void setCdnType(String cdnType) { + this.cdnType = cdnType; + } + + public String getStatus() { + return status; + } - /** - * 1如果为false表示BackupOriginIp为空,表示没有备份源站,忽略BackupOriginIp,BackupOriginHost字段 - * 2如果为true表示BackupOriginIp.n必须至少有一个备份源站地址 - */ - @SerializedName("BackupOriginEnable") - private Boolean backupOriginEnable; + public void setStatus(String status) { + this.status = status; + } + + public String getCname() { + return cname; + } - /** 备份源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"] */ - @SerializedName("BackupOriginIpList") - private List backupOriginIpList; + public void setCname(String cname) { + this.cname = cname; + } + + public Integer getCreateTime() { + return createTime; + } - /** 备份回源Http请求头部Host,默认是加速域名 */ - @SerializedName("BackupOriginHost") - private String backupOriginHost; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getTestUrl() { + return testUrl; + } - /** 主源响应的回源错误码(如:404|500),默认空字符串 */ - @SerializedName("OriginErrorCode") - private String originErrorCode; + public void setTestUrl(String testUrl) { + this.testUrl = testUrl; + } + + public String getHttpsStatusCn() { + return httpsStatusCn; + } - /** 回主源的回源失败数,默认1 */ - @SerializedName("OriginErrorNum") - private Integer originErrorNum; + public void setHttpsStatusCn(String httpsStatusCn) { + this.httpsStatusCn = httpsStatusCn; + } + + public String getHttpsStatusAbroad() { + return httpsStatusAbroad; + } - /** 源站协议http,http|https 默认http */ - @SerializedName("OriginProtocol") - private String originProtocol; + public void setHttpsStatusAbroad(String httpsStatusAbroad) { + this.httpsStatusAbroad = httpsStatusAbroad; + } + + public String getCertNameCn() { + return certNameCn; + } - /** 跟随301跳转 0=不跟随 1=跟随 */ - @SerializedName("OriginFollow301") - private Integer originFollow301; + public void setCertNameCn(String certNameCn) { + this.certNameCn = certNameCn; + } + + public String getCertNameAbroad() { + return certNameAbroad; + } - public List getOriginIpList() { - return originIpList; - } + public void setCertNameAbroad(String certNameAbroad) { + this.certNameAbroad = certNameAbroad; + } + + public String getTag() { + return tag; + } - public void setOriginIpList(List originIpList) { - this.originIpList = originIpList; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getDomainId() { + return domainId; + } - public String getOriginHost() { - return originHost; - } + public void setDomainId(String domainId) { + this.domainId = domainId; + } + + public String getDomain() { + return domain; + } - public void setOriginHost(String originHost) { - this.originHost = originHost; - } + public void setDomain(String domain) { + this.domain = domain; + } + + public OriginConf getOriginConf() { + return originConf; + } - public Integer getOriginPort() { - return originPort; - } + public void setOriginConf(OriginConf originConf) { + this.originConf = originConf; + } + + public AccessControlConf getAccessControlConf() { + return accessControlConf; + } - public void setOriginPort(Integer originPort) { - this.originPort = originPort; - } + public void setAccessControlConf(AccessControlConf accessControlConf) { + this.accessControlConf = accessControlConf; + } + + public CacheAllConfig getCacheConf() { + return cacheConf; + } - public Boolean getBackupOriginEnable() { - return backupOriginEnable; - } + public void setCacheConf(CacheAllConfig cacheConf) { + this.cacheConf = cacheConf; + } + + public AdvancedConf getAdvancedConf() { + return advancedConf; + } - public void setBackupOriginEnable(Boolean backupOriginEnable) { - this.backupOriginEnable = backupOriginEnable; - } + public void setAdvancedConf(AdvancedConf advancedConf) { + this.advancedConf = advancedConf; + } + + } + public static class OriginConf extends Response { + + + /** + * 源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"] + */ + @SerializedName("OriginIpList") + private List originIpList; + + + + /** + * 回源Http请求头部Host,默认是加速域名 + */ + @SerializedName("OriginHost") + private String originHost; + + + + /** + * 回源端口 + */ + @SerializedName("OriginPort") + private Integer originPort; + + + + /** + * 1如果为false表示BackupOriginIp为空,表示没有备份源站,忽略BackupOriginIp,BackupOriginHost字段 +2如果为true表示BackupOriginIp.n必须至少有一个备份源站地址 + + */ + @SerializedName("BackupOriginEnable") + private Boolean backupOriginEnable; + + + + /** + * 备份源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"] + */ + @SerializedName("BackupOriginIpList") + private List backupOriginIpList; + + + + /** + * 备份回源Http请求头部Host,默认是加速域名 + */ + @SerializedName("BackupOriginHost") + private String backupOriginHost; + + + + /** + * 主源响应的回源错误码(如:404|500),默认空字符串 + */ + @SerializedName("OriginErrorCode") + private String originErrorCode; + + + + /** + * 回主源的回源失败数,默认1 + */ + @SerializedName("OriginErrorNum") + private Integer originErrorNum; + + + + /** + * 源站协议http,http|https 默认http + */ + @SerializedName("OriginProtocol") + private String originProtocol; + + + + /** + * 跟随301跳转 0=不跟随 1=跟随 + */ + @SerializedName("OriginFollow301") + private Integer originFollow301; + + + public List getOriginIpList() { + return originIpList; + } - public List getBackupOriginIpList() { - return backupOriginIpList; - } + public void setOriginIpList(List originIpList) { + this.originIpList = originIpList; + } + + public String getOriginHost() { + return originHost; + } - public void setBackupOriginIpList(List backupOriginIpList) { - this.backupOriginIpList = backupOriginIpList; - } + public void setOriginHost(String originHost) { + this.originHost = originHost; + } + + public Integer getOriginPort() { + return originPort; + } - public String getBackupOriginHost() { - return backupOriginHost; - } + public void setOriginPort(Integer originPort) { + this.originPort = originPort; + } + + public Boolean getBackupOriginEnable() { + return backupOriginEnable; + } - public void setBackupOriginHost(String backupOriginHost) { - this.backupOriginHost = backupOriginHost; - } + public void setBackupOriginEnable(Boolean backupOriginEnable) { + this.backupOriginEnable = backupOriginEnable; + } + + public List getBackupOriginIpList() { + return backupOriginIpList; + } - public String getOriginErrorCode() { - return originErrorCode; - } + public void setBackupOriginIpList(List backupOriginIpList) { + this.backupOriginIpList = backupOriginIpList; + } + + public String getBackupOriginHost() { + return backupOriginHost; + } - public void setOriginErrorCode(String originErrorCode) { - this.originErrorCode = originErrorCode; - } + public void setBackupOriginHost(String backupOriginHost) { + this.backupOriginHost = backupOriginHost; + } + + public String getOriginErrorCode() { + return originErrorCode; + } - public Integer getOriginErrorNum() { - return originErrorNum; - } + public void setOriginErrorCode(String originErrorCode) { + this.originErrorCode = originErrorCode; + } + + public Integer getOriginErrorNum() { + return originErrorNum; + } - public void setOriginErrorNum(Integer originErrorNum) { - this.originErrorNum = originErrorNum; - } + public void setOriginErrorNum(Integer originErrorNum) { + this.originErrorNum = originErrorNum; + } + + public String getOriginProtocol() { + return originProtocol; + } - public String getOriginProtocol() { - return originProtocol; - } + public void setOriginProtocol(String originProtocol) { + this.originProtocol = originProtocol; + } + + public Integer getOriginFollow301() { + return originFollow301; + } - public void setOriginProtocol(String originProtocol) { - this.originProtocol = originProtocol; - } + public void setOriginFollow301(Integer originFollow301) { + this.originFollow301 = originFollow301; + } + + } + public static class ReferConf extends Response { + + + /** + * Refer防盗链配置 0白名单,1黑名单 + */ + @SerializedName("ReferType") + private Integer referType; + + + + /** + * ReferType为白名单时(删除),NullRefer为0代表不允许NULL refer访问,为1代表允许Null refer访问 + */ + @SerializedName("NullRefer") + private Integer nullRefer; + + + + /** + * Refer防盗链规则列表,支持正则表达式 + */ + @SerializedName("ReferList") + private List referList; + + + public Integer getReferType() { + return referType; + } - public Integer getOriginFollow301() { - return originFollow301; - } + public void setReferType(Integer referType) { + this.referType = referType; + } + + public Integer getNullRefer() { + return nullRefer; + } - public void setOriginFollow301(Integer originFollow301) { - this.originFollow301 = originFollow301; - } + public void setNullRefer(Integer nullRefer) { + this.nullRefer = nullRefer; + } + + public List getReferList() { + return referList; } - public static class ReferConf extends Response { + public void setReferList(List referList) { + this.referList = referList; + } + + } +} - /** Refer防盗链配置 0白名单,1黑名单 */ - @SerializedName("ReferType") - private Integer referType; - /** ReferType为白名单时(删除),NullRefer为0代表不允许NULL refer访问,为1代表允许Null refer访问 */ - @SerializedName("NullRefer") - private Integer nullRefer; - /** Refer防盗链规则列表,支持正则表达式 */ - @SerializedName("ReferList") - private List referList; - public Integer getReferType() { - return referType; - } - public void setReferType(Integer referType) { - this.referType = referType; - } - public Integer getNullRefer() { - return nullRefer; - } - public void setNullRefer(Integer nullRefer) { - this.nullRefer = nullRefer; - } - public List getReferList() { - return referList; - } - public void setReferList(List referList) { - this.referList = referList; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHitRateRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHitRateRequest.java index 7bfd771d..c544ce1b 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHitRateRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHitRateRequest.java @@ -1,65 +1,96 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUcdnDomainHitRateRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示按照一分钟的粒度)默认5分钟 */ + + + + /** + * 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示按照一分钟的粒度)默认5分钟 + */ @NotEmpty @UCloudParam("Type") private Integer type; - - /** 域名id,创建域名时生成的id。默认全部域名 */ + + + + /** + * 域名id,创建域名时生成的id。默认全部域名 + */ @UCloudParam("DomainId") private List domainId; - - /** 查询带宽区域 cn代表国内 abroad代表海外,只支持国内 */ + + + + /** + * 查询带宽区域 cn代表国内 abroad代表海外,只支持国内 + */ @UCloudParam("Areacode") private String areacode; - + + + /** - * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 - * 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 + * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 */ + + + + /** + * 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 + */ @UCloudParam("EndTime") private Integer endTime; - - /** 命中类型:0=整体命中 1=边缘命中 默认是0 */ + + + + /** + * 命中类型:0=整体命中 1=边缘命中 默认是0 + */ @UCloudParam("HitType") private Integer hitType; - - /** 是否全站加速,默认false */ + + + + /** + * 是否全站加速,默认false + */ @UCloudParam("IsDcdn") private Boolean isDcdn; - + + public String getProjectId() { return projectId; } @@ -67,7 +98,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getType() { return type; } @@ -75,7 +106,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public List getDomainId() { return domainId; } @@ -83,7 +114,7 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } - + public String getAreacode() { return areacode; } @@ -91,7 +122,7 @@ public String getAreacode() { public void setAreacode(String areacode) { this.areacode = areacode; } - + public Integer getBeginTime() { return beginTime; } @@ -99,7 +130,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -107,7 +138,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public Integer getHitType() { return hitType; } @@ -115,7 +146,7 @@ public Integer getHitType() { public void setHitType(Integer hitType) { this.hitType = hitType; } - + public Boolean getIsDcdn() { return isDcdn; } @@ -123,4 +154,14 @@ public Boolean getIsDcdn() { public void setIsDcdn(Boolean isDcdn) { this.isDcdn = isDcdn; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHitRateResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHitRateResponse.java index 0003b5f3..016e6153 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHitRateResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHitRateResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnDomainHitRateResponse extends Response { - /** 请求数实例表。 */ + + + /** + * 请求数实例表。 + */ @SerializedName("HitRateList") private List hitRateList; - + + public List getHitRateList() { return hitRateList; } @@ -32,43 +41,65 @@ public List getHitRateList() { public void setHitRateList(List hitRateList) { this.hitRateList = hitRateList; } + + public static class HitRateInfoV2 extends Response { + + + /** + * 带宽获取的时间点。格式:时间戳 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 总流量命中率,单位% + */ + @SerializedName("FlowHitRate") + private Double flowHitRate; + + + + /** + * 请求数命中率,单位% + */ + @SerializedName("RequestHitRate") + private Double requestHitRate; + + + public Integer getTime() { + return time; + } - public static class HitRateInfoV2 extends Response { + public void setTime(Integer time) { + this.time = time; + } + + public Double getFlowHitRate() { + return flowHitRate; + } + + public void setFlowHitRate(Double flowHitRate) { + this.flowHitRate = flowHitRate; + } + + public Double getRequestHitRate() { + return requestHitRate; + } + + public void setRequestHitRate(Double requestHitRate) { + this.requestHitRate = requestHitRate; + } + + } +} - /** 带宽获取的时间点。格式:时间戳 */ - @SerializedName("Time") - private Integer time; - /** 总流量命中率,单位% */ - @SerializedName("FlowHitRate") - private Double flowHitRate; - /** 请求数命中率,单位% */ - @SerializedName("RequestHitRate") - private Double requestHitRate; - public Integer getTime() { - return time; - } - public void setTime(Integer time) { - this.time = time; - } - public Double getFlowHitRate() { - return flowHitRate; - } - public void setFlowHitRate(Double flowHitRate) { - this.flowHitRate = flowHitRate; - } - public Double getRequestHitRate() { - return requestHitRate; - } - public void setRequestHitRate(Double requestHitRate) { - this.requestHitRate = requestHitRate; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHttpCodeV2Request.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHttpCodeV2Request.java index a353fe37..15c6dd81 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHttpCodeV2Request.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHttpCodeV2Request.java @@ -1,65 +1,96 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUcdnDomainHttpCodeV2Request extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示1分钟粒度) */ + + + + /** + * 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示1分钟粒度) + */ @NotEmpty @UCloudParam("Type") private Integer type; - - /** 域名id,创建域名时生成的id。默认全部域名 */ + + + + /** + * 域名id,创建域名时生成的id。默认全部域名 + */ @UCloudParam("DomainId") private List domainId; - - /** 查询带宽区域 cn代表国内 abroad代表海外,只支持国内 */ + + + + /** + * 查询带宽区域 cn代表国内 abroad代表海外,只支持国内 + */ @UCloudParam("Areacode") private String areacode; - + + + /** - * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 - * 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 + * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 */ + + + + /** + * 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 + */ @UCloudParam("EndTime") private Integer endTime; - - /** 指定获取的状态码是边缘还是上层 edge 表示边缘 layer 表示上层 */ + + + + /** + * 指定获取的状态码是边缘还是上层 edge 表示边缘 layer 表示上层 + */ @UCloudParam("Layer") private String layer; - - /** 是否全站加速 默认false */ + + + + /** + * 是否全站加速 默认false + */ @UCloudParam("IsDcdn") private Boolean isDcdn; - + + public String getProjectId() { return projectId; } @@ -67,7 +98,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getType() { return type; } @@ -75,7 +106,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public List getDomainId() { return domainId; } @@ -83,7 +114,7 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } - + public String getAreacode() { return areacode; } @@ -91,7 +122,7 @@ public String getAreacode() { public void setAreacode(String areacode) { this.areacode = areacode; } - + public Integer getBeginTime() { return beginTime; } @@ -99,7 +130,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -107,7 +138,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public String getLayer() { return layer; } @@ -115,7 +146,7 @@ public String getLayer() { public void setLayer(String layer) { this.layer = layer; } - + public Boolean getIsDcdn() { return isDcdn; } @@ -123,4 +154,14 @@ public Boolean getIsDcdn() { public void setIsDcdn(Boolean isDcdn) { this.isDcdn = isDcdn; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHttpCodeV2Response.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHttpCodeV2Response.java index 062819bd..33cf53b4 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHttpCodeV2Response.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainHttpCodeV2Response.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnDomainHttpCodeV2Response extends Response { - /** 状态码实例表。详细见HttpCodeInfoV2 */ + + + /** + * 状态码实例表。详细见HttpCodeInfoV2 + */ @SerializedName("HttpCodeDetail") private List httpCodeDetail; - + + public List getHttpCodeDetail() { return httpCodeDetail; } @@ -32,790 +41,1060 @@ public List getHttpCodeDetail() { public void setHttpCodeDetail(List httpCodeDetail) { this.httpCodeDetail = httpCodeDetail; } - - public static class HttpCodeInfoV2 extends Response { - - /** 带宽获取的时间点。格式:时间戳 */ - @SerializedName("Time") - private Integer time; - - /** 1xx信息,参考HttpCodeV2Detail结构 */ - @SerializedName("Http1XX") - private HttpCodeV2Detail http1XX; - - /** 2xx信息,参考HttpCodeV2Detail结构 */ - @SerializedName("Http2XX") - private HttpCodeV2Detail http2XX; - - /** 3xx信息,参考HttpCodeV2Detail结构 */ - @SerializedName("Http3XX") - private HttpCodeV2Detail http3XX; - - /** 4xx信息,参考HttpCodeV2Detail结构 */ - @SerializedName("Http4XX") - private HttpCodeV2Detail http4XX; - - /** 5xx信息,参考HttpCodeV2Detail结构 */ - @SerializedName("Http5XX") - private HttpCodeV2Detail http5XX; - - /** 6xx信息,参考HttpCodeV2Detail结构 */ - @SerializedName("Http6XX") - private HttpCodeV2Detail http6XX; - - public Integer getTime() { - return time; - } - - public void setTime(Integer time) { - this.time = time; - } - - public HttpCodeV2Detail getHttp1XX() { - return http1XX; - } - - public void setHttp1XX(HttpCodeV2Detail http1XX) { - this.http1XX = http1XX; - } - - public HttpCodeV2Detail getHttp2XX() { - return http2XX; - } - - public void setHttp2XX(HttpCodeV2Detail http2XX) { - this.http2XX = http2XX; - } - - public HttpCodeV2Detail getHttp3XX() { - return http3XX; - } - - public void setHttp3XX(HttpCodeV2Detail http3XX) { - this.http3XX = http3XX; - } - - public HttpCodeV2Detail getHttp4XX() { - return http4XX; - } - - public void setHttp4XX(HttpCodeV2Detail http4XX) { - this.http4XX = http4XX; - } - - public HttpCodeV2Detail getHttp5XX() { - return http5XX; - } - - public void setHttp5XX(HttpCodeV2Detail http5XX) { - this.http5XX = http5XX; - } - - public HttpCodeV2Detail getHttp6XX() { - return http6XX; - } - - public void setHttp6XX(HttpCodeV2Detail http6XX) { - this.http6XX = http6XX; - } + + public static class HttpCodeInfoV2 extends Response { + + + /** + * 带宽获取的时间点。格式:时间戳 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 1xx信息,参考HttpCodeV2Detail结构 + */ + @SerializedName("Http1XX") + private HttpCodeV2Detail http1XX; + + + + /** + * 2xx信息,参考HttpCodeV2Detail结构 + */ + @SerializedName("Http2XX") + private HttpCodeV2Detail http2XX; + + + + /** + * 3xx信息,参考HttpCodeV2Detail结构 + */ + @SerializedName("Http3XX") + private HttpCodeV2Detail http3XX; + + + + /** + * 4xx信息,参考HttpCodeV2Detail结构 + */ + @SerializedName("Http4XX") + private HttpCodeV2Detail http4XX; + + + + /** + * 5xx信息,参考HttpCodeV2Detail结构 + */ + @SerializedName("Http5XX") + private HttpCodeV2Detail http5XX; + + + + /** + * 6xx信息,参考HttpCodeV2Detail结构 + */ + @SerializedName("Http6XX") + private HttpCodeV2Detail http6XX; + + + public Integer getTime() { + return time; } - public static class HttpCodeV2Detail extends Response { - - /** 时间 */ - @SerializedName("Time") - private Integer time; - - /** 当前分组的总状态码数 */ - @SerializedName("Total") - private Integer total; - - /** http100数量 */ - @SerializedName("Http100") - private Integer http100; - - /** http101数量 */ - @SerializedName("Http101") - private Integer http101; - - /** http102数量 */ - @SerializedName("Http102") - private Integer http102; - - /** http200数量 */ - @SerializedName("Http200") - private Integer http200; - - /** http201数量 */ - @SerializedName("Http201") - private Integer http201; - - /** http202数量 */ - @SerializedName("Http202") - private Integer http202; - - /** http203数量 */ - @SerializedName("Http203") - private Integer http203; - - /** http204数量 */ - @SerializedName("Http204") - private Integer http204; - - /** http205数量 */ - @SerializedName("Http205") - private Integer http205; - - /** http206数量 */ - @SerializedName("Http206") - private Integer http206; - - /** http207数量 */ - @SerializedName("Http207") - private Integer http207; - - /** http300数量 */ - @SerializedName("Http300") - private Integer http300; - - /** http301数量 */ - @SerializedName("Http301") - private Integer http301; - - /** http302数量 */ - @SerializedName("Http302") - private Integer http302; - - /** http303数量 */ - @SerializedName("Http303") - private Integer http303; - - /** http304数量 */ - @SerializedName("Http304") - private Integer http304; - - /** http305数量 */ - @SerializedName("Http305") - private Integer http305; - - /** http306数量 */ - @SerializedName("Http306") - private Integer http306; - - /** http307数量 */ - @SerializedName("Http307") - private Integer http307; - - /** http400数量 */ - @SerializedName("Http400") - private Integer http400; - - /** http401数量 */ - @SerializedName("Http401") - private Integer http401; - - /** http402数量 */ - @SerializedName("Http402") - private Integer http402; - - /** http403数量 */ - @SerializedName("Http403") - private Integer http403; - - /** http404数量 */ - @SerializedName("Http404") - private Integer http404; - - /** http405数量 */ - @SerializedName("Http405") - private Integer http405; - - /** http406数量 */ - @SerializedName("Http406") - private Integer http406; - - /** http407数量 */ - @SerializedName("Http407") - private Integer http407; - - /** http408数量 */ - @SerializedName("Http408") - private Integer http408; - - /** http409数量 */ - @SerializedName("Http409") - private Integer http409; - - /** http410数量 */ - @SerializedName("Http410") - private Integer http410; - - /** http411数量 */ - @SerializedName("Http411") - private Integer http411; - - /** http412数量 */ - @SerializedName("Http412") - private Integer http412; - - /** http413数量 */ - @SerializedName("Http413") - private Integer http413; - - /** http414数量 */ - @SerializedName("Http414") - private Integer http414; - - /** http415数量 */ - @SerializedName("Http415") - private Integer http415; - - /** http416数量 */ - @SerializedName("Http416") - private Integer http416; - - /** http417数量 */ - @SerializedName("Http417") - private Integer http417; - - /** http418数量 */ - @SerializedName("Http418") - private Integer http418; - - /** http421数量 */ - @SerializedName("Http421") - private Integer http421; - - /** http422数量 */ - @SerializedName("Http422") - private Integer http422; - - /** http423数量 */ - @SerializedName("Http423") - private Integer http423; - - /** http424数量 */ - @SerializedName("Http424") - private Integer http424; - - /** http425数量 */ - @SerializedName("Http425") - private Integer http425; - - /** http426数量 */ - @SerializedName("Http426") - private Integer http426; - - /** http449数量 */ - @SerializedName("Http449") - private Integer http449; - - /** http451数量 */ - @SerializedName("Http451") - private Integer http451; - - /** http500数量 */ - @SerializedName("Http500") - private Integer http500; - - /** http501数量 */ - @SerializedName("Http501") - private Integer http501; - - /** http502数量 */ - @SerializedName("Http502") - private Integer http502; - - /** http503数量 */ - @SerializedName("Http503") - private Integer http503; - - /** http504数量 */ - @SerializedName("Http504") - private Integer http504; - - /** http505数量 */ - @SerializedName("Http505") - private Integer http505; - - /** http506数量 */ - @SerializedName("Http506") - private Integer http506; - - /** http507数量 */ - @SerializedName("Http507") - private Integer http507; - - /** http509数量 */ - @SerializedName("Http509") - private Integer http509; - - /** http510数量 */ - @SerializedName("Http510") - private Integer http510; - - public Integer getTime() { - return time; - } - - public void setTime(Integer time) { - this.time = time; - } - - public Integer getTotal() { - return total; - } - - public void setTotal(Integer total) { - this.total = total; - } - - public Integer getHttp100() { - return http100; - } - - public void setHttp100(Integer http100) { - this.http100 = http100; - } - - public Integer getHttp101() { - return http101; - } - - public void setHttp101(Integer http101) { - this.http101 = http101; - } - - public Integer getHttp102() { - return http102; - } - - public void setHttp102(Integer http102) { - this.http102 = http102; - } - - public Integer getHttp200() { - return http200; - } - - public void setHttp200(Integer http200) { - this.http200 = http200; - } - - public Integer getHttp201() { - return http201; - } - - public void setHttp201(Integer http201) { - this.http201 = http201; - } - - public Integer getHttp202() { - return http202; - } - - public void setHttp202(Integer http202) { - this.http202 = http202; - } - - public Integer getHttp203() { - return http203; - } - - public void setHttp203(Integer http203) { - this.http203 = http203; - } - - public Integer getHttp204() { - return http204; - } - - public void setHttp204(Integer http204) { - this.http204 = http204; - } - - public Integer getHttp205() { - return http205; - } - - public void setHttp205(Integer http205) { - this.http205 = http205; - } - - public Integer getHttp206() { - return http206; - } - - public void setHttp206(Integer http206) { - this.http206 = http206; - } - - public Integer getHttp207() { - return http207; - } - - public void setHttp207(Integer http207) { - this.http207 = http207; - } - - public Integer getHttp300() { - return http300; - } - - public void setHttp300(Integer http300) { - this.http300 = http300; - } - - public Integer getHttp301() { - return http301; - } - - public void setHttp301(Integer http301) { - this.http301 = http301; - } - - public Integer getHttp302() { - return http302; - } - - public void setHttp302(Integer http302) { - this.http302 = http302; - } - - public Integer getHttp303() { - return http303; - } - - public void setHttp303(Integer http303) { - this.http303 = http303; - } - - public Integer getHttp304() { - return http304; - } - - public void setHttp304(Integer http304) { - this.http304 = http304; - } - - public Integer getHttp305() { - return http305; - } - - public void setHttp305(Integer http305) { - this.http305 = http305; - } - - public Integer getHttp306() { - return http306; - } - - public void setHttp306(Integer http306) { - this.http306 = http306; - } - - public Integer getHttp307() { - return http307; - } - - public void setHttp307(Integer http307) { - this.http307 = http307; - } - - public Integer getHttp400() { - return http400; - } + public void setTime(Integer time) { + this.time = time; + } + + public HttpCodeV2Detail getHttp1XX() { + return http1XX; + } - public void setHttp400(Integer http400) { - this.http400 = http400; - } + public void setHttp1XX(HttpCodeV2Detail http1XX) { + this.http1XX = http1XX; + } + + public HttpCodeV2Detail getHttp2XX() { + return http2XX; + } - public Integer getHttp401() { - return http401; - } + public void setHttp2XX(HttpCodeV2Detail http2XX) { + this.http2XX = http2XX; + } + + public HttpCodeV2Detail getHttp3XX() { + return http3XX; + } - public void setHttp401(Integer http401) { - this.http401 = http401; - } + public void setHttp3XX(HttpCodeV2Detail http3XX) { + this.http3XX = http3XX; + } + + public HttpCodeV2Detail getHttp4XX() { + return http4XX; + } - public Integer getHttp402() { - return http402; - } + public void setHttp4XX(HttpCodeV2Detail http4XX) { + this.http4XX = http4XX; + } + + public HttpCodeV2Detail getHttp5XX() { + return http5XX; + } - public void setHttp402(Integer http402) { - this.http402 = http402; - } + public void setHttp5XX(HttpCodeV2Detail http5XX) { + this.http5XX = http5XX; + } + + public HttpCodeV2Detail getHttp6XX() { + return http6XX; + } - public Integer getHttp403() { - return http403; - } + public void setHttp6XX(HttpCodeV2Detail http6XX) { + this.http6XX = http6XX; + } + + } + public static class HttpCodeV2Detail extends Response { + + + /** + * 时间 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 当前分组的总状态码数 + */ + @SerializedName("Total") + private Integer total; + + + + /** + * http100数量 + */ + @SerializedName("Http100") + private Integer http100; + + + + /** + * http101数量 + */ + @SerializedName("Http101") + private Integer http101; + + + + /** + * http102数量 + */ + @SerializedName("Http102") + private Integer http102; + + + + /** + * http200数量 + */ + @SerializedName("Http200") + private Integer http200; + + + + /** + * http201数量 + */ + @SerializedName("Http201") + private Integer http201; + + + + /** + * http202数量 + */ + @SerializedName("Http202") + private Integer http202; + + + + /** + * http203数量 + */ + @SerializedName("Http203") + private Integer http203; + + + + /** + * http204数量 + */ + @SerializedName("Http204") + private Integer http204; + + + + /** + * http205数量 + */ + @SerializedName("Http205") + private Integer http205; + + + + /** + * http206数量 + */ + @SerializedName("Http206") + private Integer http206; + + + + /** + * http207数量 + */ + @SerializedName("Http207") + private Integer http207; + + + + /** + * http300数量 + */ + @SerializedName("Http300") + private Integer http300; + + + + /** + * http301数量 + */ + @SerializedName("Http301") + private Integer http301; + + + + /** + * http302数量 + */ + @SerializedName("Http302") + private Integer http302; + + + + /** + * http303数量 + */ + @SerializedName("Http303") + private Integer http303; + + + + /** + * http304数量 + */ + @SerializedName("Http304") + private Integer http304; + + + + /** + * http305数量 + */ + @SerializedName("Http305") + private Integer http305; + + + + /** + * http306数量 + */ + @SerializedName("Http306") + private Integer http306; + + + + /** + * http307数量 + */ + @SerializedName("Http307") + private Integer http307; + + + + /** + * http400数量 + */ + @SerializedName("Http400") + private Integer http400; + + + + /** + * http401数量 + */ + @SerializedName("Http401") + private Integer http401; + + + + /** + * http402数量 + */ + @SerializedName("Http402") + private Integer http402; + + + + /** + * http403数量 + */ + @SerializedName("Http403") + private Integer http403; + + + + /** + * http404数量 + */ + @SerializedName("Http404") + private Integer http404; + + + + /** + * http405数量 + */ + @SerializedName("Http405") + private Integer http405; + + + + /** + * http406数量 + */ + @SerializedName("Http406") + private Integer http406; + + + + /** + * http407数量 + */ + @SerializedName("Http407") + private Integer http407; + + + + /** + * http408数量 + */ + @SerializedName("Http408") + private Integer http408; + + + + /** + * http409数量 + */ + @SerializedName("Http409") + private Integer http409; + + + + /** + * http410数量 + */ + @SerializedName("Http410") + private Integer http410; + + + + /** + * http411数量 + */ + @SerializedName("Http411") + private Integer http411; + + + + /** + * http412数量 + */ + @SerializedName("Http412") + private Integer http412; + + + + /** + * http413数量 + */ + @SerializedName("Http413") + private Integer http413; + + + + /** + * http414数量 + */ + @SerializedName("Http414") + private Integer http414; + + + + /** + * http415数量 + */ + @SerializedName("Http415") + private Integer http415; + + + + /** + * http416数量 + */ + @SerializedName("Http416") + private Integer http416; + + + + /** + * http417数量 + */ + @SerializedName("Http417") + private Integer http417; + + + + /** + * http418数量 + */ + @SerializedName("Http418") + private Integer http418; + + + + /** + * http421数量 + */ + @SerializedName("Http421") + private Integer http421; + + + + /** + * http422数量 + */ + @SerializedName("Http422") + private Integer http422; + + + + /** + * http423数量 + */ + @SerializedName("Http423") + private Integer http423; + + + + /** + * http424数量 + */ + @SerializedName("Http424") + private Integer http424; + + + + /** + * http425数量 + */ + @SerializedName("Http425") + private Integer http425; + + + + /** + * http426数量 + */ + @SerializedName("Http426") + private Integer http426; + + + + /** + * http449数量 + */ + @SerializedName("Http449") + private Integer http449; + + + + /** + * http451数量 + */ + @SerializedName("Http451") + private Integer http451; + + + + /** + * http500数量 + */ + @SerializedName("Http500") + private Integer http500; + + + + /** + * http501数量 + */ + @SerializedName("Http501") + private Integer http501; + + + + /** + * http502数量 + */ + @SerializedName("Http502") + private Integer http502; + + + + /** + * http503数量 + */ + @SerializedName("Http503") + private Integer http503; + + + + /** + * http504数量 + */ + @SerializedName("Http504") + private Integer http504; + + + + /** + * http505数量 + */ + @SerializedName("Http505") + private Integer http505; + + + + /** + * http506数量 + */ + @SerializedName("Http506") + private Integer http506; + + + + /** + * http507数量 + */ + @SerializedName("Http507") + private Integer http507; + + + + /** + * http509数量 + */ + @SerializedName("Http509") + private Integer http509; + + + + /** + * http510数量 + */ + @SerializedName("Http510") + private Integer http510; + + + public Integer getTime() { + return time; + } - public void setHttp403(Integer http403) { - this.http403 = http403; - } + public void setTime(Integer time) { + this.time = time; + } + + public Integer getTotal() { + return total; + } - public Integer getHttp404() { - return http404; - } + public void setTotal(Integer total) { + this.total = total; + } + + public Integer getHttp100() { + return http100; + } - public void setHttp404(Integer http404) { - this.http404 = http404; - } + public void setHttp100(Integer http100) { + this.http100 = http100; + } + + public Integer getHttp101() { + return http101; + } - public Integer getHttp405() { - return http405; - } + public void setHttp101(Integer http101) { + this.http101 = http101; + } + + public Integer getHttp102() { + return http102; + } - public void setHttp405(Integer http405) { - this.http405 = http405; - } + public void setHttp102(Integer http102) { + this.http102 = http102; + } + + public Integer getHttp200() { + return http200; + } - public Integer getHttp406() { - return http406; - } + public void setHttp200(Integer http200) { + this.http200 = http200; + } + + public Integer getHttp201() { + return http201; + } - public void setHttp406(Integer http406) { - this.http406 = http406; - } + public void setHttp201(Integer http201) { + this.http201 = http201; + } + + public Integer getHttp202() { + return http202; + } - public Integer getHttp407() { - return http407; - } + public void setHttp202(Integer http202) { + this.http202 = http202; + } + + public Integer getHttp203() { + return http203; + } - public void setHttp407(Integer http407) { - this.http407 = http407; - } + public void setHttp203(Integer http203) { + this.http203 = http203; + } + + public Integer getHttp204() { + return http204; + } - public Integer getHttp408() { - return http408; - } + public void setHttp204(Integer http204) { + this.http204 = http204; + } + + public Integer getHttp205() { + return http205; + } - public void setHttp408(Integer http408) { - this.http408 = http408; - } + public void setHttp205(Integer http205) { + this.http205 = http205; + } + + public Integer getHttp206() { + return http206; + } - public Integer getHttp409() { - return http409; - } + public void setHttp206(Integer http206) { + this.http206 = http206; + } + + public Integer getHttp207() { + return http207; + } - public void setHttp409(Integer http409) { - this.http409 = http409; - } + public void setHttp207(Integer http207) { + this.http207 = http207; + } + + public Integer getHttp300() { + return http300; + } - public Integer getHttp410() { - return http410; - } + public void setHttp300(Integer http300) { + this.http300 = http300; + } + + public Integer getHttp301() { + return http301; + } - public void setHttp410(Integer http410) { - this.http410 = http410; - } + public void setHttp301(Integer http301) { + this.http301 = http301; + } + + public Integer getHttp302() { + return http302; + } - public Integer getHttp411() { - return http411; - } + public void setHttp302(Integer http302) { + this.http302 = http302; + } + + public Integer getHttp303() { + return http303; + } - public void setHttp411(Integer http411) { - this.http411 = http411; - } + public void setHttp303(Integer http303) { + this.http303 = http303; + } + + public Integer getHttp304() { + return http304; + } - public Integer getHttp412() { - return http412; - } + public void setHttp304(Integer http304) { + this.http304 = http304; + } + + public Integer getHttp305() { + return http305; + } - public void setHttp412(Integer http412) { - this.http412 = http412; - } + public void setHttp305(Integer http305) { + this.http305 = http305; + } + + public Integer getHttp306() { + return http306; + } - public Integer getHttp413() { - return http413; - } + public void setHttp306(Integer http306) { + this.http306 = http306; + } + + public Integer getHttp307() { + return http307; + } - public void setHttp413(Integer http413) { - this.http413 = http413; - } + public void setHttp307(Integer http307) { + this.http307 = http307; + } + + public Integer getHttp400() { + return http400; + } - public Integer getHttp414() { - return http414; - } + public void setHttp400(Integer http400) { + this.http400 = http400; + } + + public Integer getHttp401() { + return http401; + } - public void setHttp414(Integer http414) { - this.http414 = http414; - } + public void setHttp401(Integer http401) { + this.http401 = http401; + } + + public Integer getHttp402() { + return http402; + } - public Integer getHttp415() { - return http415; - } + public void setHttp402(Integer http402) { + this.http402 = http402; + } + + public Integer getHttp403() { + return http403; + } - public void setHttp415(Integer http415) { - this.http415 = http415; - } + public void setHttp403(Integer http403) { + this.http403 = http403; + } + + public Integer getHttp404() { + return http404; + } - public Integer getHttp416() { - return http416; - } + public void setHttp404(Integer http404) { + this.http404 = http404; + } + + public Integer getHttp405() { + return http405; + } - public void setHttp416(Integer http416) { - this.http416 = http416; - } + public void setHttp405(Integer http405) { + this.http405 = http405; + } + + public Integer getHttp406() { + return http406; + } - public Integer getHttp417() { - return http417; - } + public void setHttp406(Integer http406) { + this.http406 = http406; + } + + public Integer getHttp407() { + return http407; + } - public void setHttp417(Integer http417) { - this.http417 = http417; - } + public void setHttp407(Integer http407) { + this.http407 = http407; + } + + public Integer getHttp408() { + return http408; + } - public Integer getHttp418() { - return http418; - } + public void setHttp408(Integer http408) { + this.http408 = http408; + } + + public Integer getHttp409() { + return http409; + } - public void setHttp418(Integer http418) { - this.http418 = http418; - } + public void setHttp409(Integer http409) { + this.http409 = http409; + } + + public Integer getHttp410() { + return http410; + } - public Integer getHttp421() { - return http421; - } + public void setHttp410(Integer http410) { + this.http410 = http410; + } + + public Integer getHttp411() { + return http411; + } - public void setHttp421(Integer http421) { - this.http421 = http421; - } + public void setHttp411(Integer http411) { + this.http411 = http411; + } + + public Integer getHttp412() { + return http412; + } - public Integer getHttp422() { - return http422; - } + public void setHttp412(Integer http412) { + this.http412 = http412; + } + + public Integer getHttp413() { + return http413; + } - public void setHttp422(Integer http422) { - this.http422 = http422; - } + public void setHttp413(Integer http413) { + this.http413 = http413; + } + + public Integer getHttp414() { + return http414; + } - public Integer getHttp423() { - return http423; - } + public void setHttp414(Integer http414) { + this.http414 = http414; + } + + public Integer getHttp415() { + return http415; + } - public void setHttp423(Integer http423) { - this.http423 = http423; - } + public void setHttp415(Integer http415) { + this.http415 = http415; + } + + public Integer getHttp416() { + return http416; + } - public Integer getHttp424() { - return http424; - } + public void setHttp416(Integer http416) { + this.http416 = http416; + } + + public Integer getHttp417() { + return http417; + } - public void setHttp424(Integer http424) { - this.http424 = http424; - } + public void setHttp417(Integer http417) { + this.http417 = http417; + } + + public Integer getHttp418() { + return http418; + } - public Integer getHttp425() { - return http425; - } + public void setHttp418(Integer http418) { + this.http418 = http418; + } + + public Integer getHttp421() { + return http421; + } - public void setHttp425(Integer http425) { - this.http425 = http425; - } + public void setHttp421(Integer http421) { + this.http421 = http421; + } + + public Integer getHttp422() { + return http422; + } - public Integer getHttp426() { - return http426; - } + public void setHttp422(Integer http422) { + this.http422 = http422; + } + + public Integer getHttp423() { + return http423; + } - public void setHttp426(Integer http426) { - this.http426 = http426; - } + public void setHttp423(Integer http423) { + this.http423 = http423; + } + + public Integer getHttp424() { + return http424; + } - public Integer getHttp449() { - return http449; - } + public void setHttp424(Integer http424) { + this.http424 = http424; + } + + public Integer getHttp425() { + return http425; + } - public void setHttp449(Integer http449) { - this.http449 = http449; - } + public void setHttp425(Integer http425) { + this.http425 = http425; + } + + public Integer getHttp426() { + return http426; + } - public Integer getHttp451() { - return http451; - } + public void setHttp426(Integer http426) { + this.http426 = http426; + } + + public Integer getHttp449() { + return http449; + } - public void setHttp451(Integer http451) { - this.http451 = http451; - } + public void setHttp449(Integer http449) { + this.http449 = http449; + } + + public Integer getHttp451() { + return http451; + } - public Integer getHttp500() { - return http500; - } + public void setHttp451(Integer http451) { + this.http451 = http451; + } + + public Integer getHttp500() { + return http500; + } - public void setHttp500(Integer http500) { - this.http500 = http500; - } + public void setHttp500(Integer http500) { + this.http500 = http500; + } + + public Integer getHttp501() { + return http501; + } - public Integer getHttp501() { - return http501; - } + public void setHttp501(Integer http501) { + this.http501 = http501; + } + + public Integer getHttp502() { + return http502; + } - public void setHttp501(Integer http501) { - this.http501 = http501; - } + public void setHttp502(Integer http502) { + this.http502 = http502; + } + + public Integer getHttp503() { + return http503; + } - public Integer getHttp502() { - return http502; - } + public void setHttp503(Integer http503) { + this.http503 = http503; + } + + public Integer getHttp504() { + return http504; + } - public void setHttp502(Integer http502) { - this.http502 = http502; - } + public void setHttp504(Integer http504) { + this.http504 = http504; + } + + public Integer getHttp505() { + return http505; + } - public Integer getHttp503() { - return http503; - } + public void setHttp505(Integer http505) { + this.http505 = http505; + } + + public Integer getHttp506() { + return http506; + } - public void setHttp503(Integer http503) { - this.http503 = http503; - } + public void setHttp506(Integer http506) { + this.http506 = http506; + } + + public Integer getHttp507() { + return http507; + } - public Integer getHttp504() { - return http504; - } + public void setHttp507(Integer http507) { + this.http507 = http507; + } + + public Integer getHttp509() { + return http509; + } - public void setHttp504(Integer http504) { - this.http504 = http504; - } + public void setHttp509(Integer http509) { + this.http509 = http509; + } + + public Integer getHttp510() { + return http510; + } - public Integer getHttp505() { - return http505; + public void setHttp510(Integer http510) { + this.http510 = http510; + } + } +} - public void setHttp505(Integer http505) { - this.http505 = http505; - } - public Integer getHttp506() { - return http506; - } - public void setHttp506(Integer http506) { - this.http506 = http506; - } - public Integer getHttp507() { - return http507; - } - public void setHttp507(Integer http507) { - this.http507 = http507; - } - public Integer getHttp509() { - return http509; - } - public void setHttp509(Integer http509) { - this.http509 = http509; - } - public Integer getHttp510() { - return http510; - } - public void setHttp510(Integer http510) { - this.http510 = http510; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainInfoListRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainInfoListRequest.java index 87692165..67d1a80e 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainInfoListRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainInfoListRequest.java @@ -1,39 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class GetUcdnDomainInfoListRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 分页的大小,不填默认每页20个 */ + + + + /** + * 分页的大小,不填默认每页20个 + */ @UCloudParam("PageSize") private Integer pageSize; - - /** 返回第几页,不填默认是第1页 */ + + + + /** + * 返回第几页,不填默认是第1页 + */ @UCloudParam("PageIndex") private Integer pageIndex; - + + public String getProjectId() { return projectId; } @@ -41,7 +57,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getPageSize() { return pageSize; } @@ -49,7 +65,7 @@ public Integer getPageSize() { public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } - + public Integer getPageIndex() { return pageIndex; } @@ -57,4 +73,14 @@ public Integer getPageIndex() { public void setPageIndex(Integer pageIndex) { this.pageIndex = pageIndex; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainInfoListResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainInfoListResponse.java index 07da8769..e9fd7817 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainInfoListResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainInfoListResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnDomainInfoListResponse extends Response { - /** 账户下域名总个数 */ + + + /** + * 账户下域名总个数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 域名基本信息 */ + + + + /** + * 域名基本信息 + */ @SerializedName("DomainInfoList") private List domainInfoList; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDomainInfoList() { return domainInfoList; } @@ -44,31 +57,49 @@ public List getDomainInfoList() { public void setDomainInfoList(List domainInfoList) { this.domainInfoList = domainInfoList; } + + public static class DomainBaseInfo extends Response { + + + /** + * 域名 + */ + @SerializedName("Domain") + private String domain; + + + + /** + * 域名的资源id + */ + @SerializedName("DomainId") + private String domainId; + + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public String getDomainId() { + return domainId; + } + + public void setDomainId(String domainId) { + this.domainId = domainId; + } + + } +} + + - public static class DomainBaseInfo extends Response { - /** 域名 */ - @SerializedName("Domain") - private String domain; - /** 域名的资源id */ - @SerializedName("DomainId") - private String domainId; - public String getDomain() { - return domain; - } - public void setDomain(String domain) { - this.domain = domain; - } - public String getDomainId() { - return domainId; - } - public void setDomainId(String domainId) { - this.domainId = domainId; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainLogV2Request.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainLogV2Request.java index 05cef951..55d49637 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainLogV2Request.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainLogV2Request.java @@ -1,47 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUcdnDomainLogV2Request extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 查询的起始时间,格式为Unix Timestamp */ + + + + /** + * 查询的起始时间,格式为Unix Timestamp + */ @NotEmpty @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束时间,格式为Unix Timestamp */ + + + + /** + * 查询的结束时间,格式为Unix Timestamp + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 域名id,创建域名时生成的id。默认全部域名 */ + + + + /** + * 域名id,创建域名时生成的id。默认全部域名 + */ @UCloudParam("DomainId") private List domainId; - + + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getBeginTime() { return beginTime; } @@ -57,7 +75,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -65,7 +83,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public List getDomainId() { return domainId; } @@ -73,4 +91,14 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainLogV2Response.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainLogV2Response.java index 914c2ba4..16075d99 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainLogV2Response.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainLogV2Response.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnDomainLogV2Response extends Response { - /** */ + + + /** + * + */ @SerializedName("DomainLogSet") private List domainLogSet; - + + public List getDomainLogSet() { return domainLogSet; } @@ -32,58 +41,84 @@ public List getDomainLogSet() { public void setDomainLogSet(List domainLogSet) { this.domainLogSet = domainLogSet; } + + public static class DomanLogList extends Response { + + + /** + * 域名 + */ + @SerializedName("Domain") + private String domain; + + + + /** + * 日志信息列表 + */ + @SerializedName("LogList") + private List logList; + + + public String getDomain() { + return domain; + } - public static class DomanLogList extends Response { - - /** 域名 */ - @SerializedName("Domain") - private String domain; - - /** 日志信息列表 */ - @SerializedName("LogList") - private List logList; + public void setDomain(String domain) { + this.domain = domain; + } + + public List getLogList() { + return logList; + } - public String getDomain() { - return domain; + public void setLogList(List logList) { + this.logList = logList; + } + } + public static class LogInfo extends Response { + + + /** + * Unix时间戳 + */ + @SerializedName("LogTime") + private Integer logTime; + + + + /** + * 日志url地址,多个URL用分号隔开 + */ + @SerializedName("LogUrl") + private String logUrl; + + + public Integer getLogTime() { + return logTime; + } - public void setDomain(String domain) { - this.domain = domain; - } + public void setLogTime(Integer logTime) { + this.logTime = logTime; + } + + public String getLogUrl() { + return logUrl; + } - public List getLogList() { - return logList; + public void setLogUrl(String logUrl) { + this.logUrl = logUrl; + } + } +} + - public void setLogList(List logList) { - this.logList = logList; - } - } - public static class LogInfo extends Response { - /** Unix时间戳 */ - @SerializedName("LogTime") - private Integer logTime; - /** 日志url地址,多个URL用分号隔开 */ - @SerializedName("LogUrl") - private String logUrl; - public Integer getLogTime() { - return logTime; - } - public void setLogTime(Integer logTime) { - this.logTime = logTime; - } - public String getLogUrl() { - return logUrl; - } - public void setLogUrl(String logUrl) { - this.logUrl = logUrl; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainOriginRequestNumRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainOriginRequestNumRequest.java index 3ac888eb..807a2d43 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainOriginRequestNumRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainOriginRequestNumRequest.java @@ -1,60 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUcdnDomainOriginRequestNumRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度, 3=按1分钟) */ + + + + /** + * 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度, 3=按1分钟) + */ @NotEmpty @UCloudParam("Type") private Integer type; - - /** 查询的起始时间,格式为Unix Timestamp */ + + + + /** + * 查询的起始时间,格式为Unix Timestamp + */ @NotEmpty @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束时间,格式为Unix Timestamp */ + + + + /** + * 查询的结束时间,格式为Unix Timestamp + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 域名id,创建域名时生成的id。默认全部域名 */ + + + + /** + * 域名id,创建域名时生成的id。默认全部域名 + */ @UCloudParam("DomainId") private List domainId; - - /** 查询区域 cn代表国内 abroad代表海外,只支持国内 */ + + + + /** + * 查询区域 cn代表国内 abroad代表海外,只支持国内 + */ @UCloudParam("Areacode") private String areacode; - - /** 是否全站加速 默认false */ + + + + /** + * 是否全站加速 默认false + */ @UCloudParam("IsDcdn") private Boolean isDcdn; - + + public String getProjectId() { return projectId; } @@ -62,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getType() { return type; } @@ -70,7 +100,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public Integer getBeginTime() { return beginTime; } @@ -78,7 +108,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -86,7 +116,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public List getDomainId() { return domainId; } @@ -94,7 +124,7 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } - + public String getAreacode() { return areacode; } @@ -102,7 +132,7 @@ public String getAreacode() { public void setAreacode(String areacode) { this.areacode = areacode; } - + public Boolean getIsDcdn() { return isDcdn; } @@ -110,4 +140,14 @@ public Boolean getIsDcdn() { public void setIsDcdn(Boolean isDcdn) { this.isDcdn = isDcdn; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainOriginRequestNumResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainOriginRequestNumResponse.java index eca3e88b..02523085 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainOriginRequestNumResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainOriginRequestNumResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnDomainOriginRequestNumResponse extends Response { - /** 请求数实例表。 */ + + + /** + * 请求数实例表。 + */ @SerializedName("RequestList") private List requestList; - + + public List getRequestList() { return requestList; } @@ -32,31 +41,49 @@ public List getRequestList() { public void setRequestList(List requestList) { this.requestList = requestList; } + + public static class RequestInfoV2 extends Response { + + + /** + * 带宽获取的时间点。格式:时间戳 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 返回值返回指定时间区间内的cdn收到的请求次数之和 + */ + @SerializedName("CdnRequest") + private Double cdnRequest; + + + public Integer getTime() { + return time; + } + + public void setTime(Integer time) { + this.time = time; + } + + public Double getCdnRequest() { + return cdnRequest; + } + + public void setCdnRequest(Double cdnRequest) { + this.cdnRequest = cdnRequest; + } + + } +} + + - public static class RequestInfoV2 extends Response { - /** 带宽获取的时间点。格式:时间戳 */ - @SerializedName("Time") - private Integer time; - /** 返回值返回指定时间区间内的cdn收到的请求次数之和 */ - @SerializedName("CdnRequest") - private Double cdnRequest; - public Integer getTime() { - return time; - } - public void setTime(Integer time) { - this.time = time; - } - public Double getCdnRequest() { - return cdnRequest; - } - public void setCdnRequest(Double cdnRequest) { - this.cdnRequest = cdnRequest; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainPrefetchEnableRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainPrefetchEnableRequest.java index dca75235..06c84fe6 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainPrefetchEnableRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainPrefetchEnableRequest.java @@ -1,37 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUcdnDomainPrefetchEnableRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 域名ID,创建加速域名时生成。 */ + + + + /** + * 域名ID,创建加速域名时生成。 + */ @NotEmpty @UCloudParam("DomainId") private String domainId; - + + public String getProjectId() { return projectId; } @@ -39,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDomainId() { return domainId; } @@ -47,4 +58,14 @@ public String getDomainId() { public void setDomainId(String domainId) { this.domainId = domainId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainPrefetchEnableResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainPrefetchEnableResponse.java index ba697d62..4ddc92c7 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainPrefetchEnableResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainPrefetchEnableResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUcdnDomainPrefetchEnableResponse extends Response { - /** 0表示该域名未开启预取,1表示该域名已开启预取 */ + + + /** + * 0表示该域名未开启预取,1表示该域名已开启预取 + */ @SerializedName("Enable") private Integer enable; - + + public Integer getEnable() { return enable; } @@ -31,4 +41,14 @@ public Integer getEnable() { public void setEnable(Integer enable) { this.enable = enable; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainRequestNumV3Request.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainRequestNumV3Request.java index 53115b19..e6a462ac 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainRequestNumV3Request.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainRequestNumV3Request.java @@ -1,68 +1,100 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUcdnDomainRequestNumV3Request extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度, 3=按1分钟) */ + + + + /** + * 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度, 3=按1分钟) + */ @NotEmpty @UCloudParam("Type") private Integer type; - - /** 查询的起始时间,格式为Unix Timestamp */ + + + + /** + * 查询的起始时间,格式为Unix Timestamp + */ @NotEmpty @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束时间,格式为Unix Timestamp */ + + + + /** + * 查询的结束时间,格式为Unix Timestamp + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 域名id,创建域名时生成的id。默认全部域名 */ + + + + /** + * 域名id,创建域名时生成的id。默认全部域名 + */ @UCloudParam("DomainId") private List domainId; - - /** 查询区域 cn代表国内 abroad代表海外,只支持国内 */ + + + + /** + * 查询区域 cn代表国内 abroad代表海外,只支持国内 + */ @UCloudParam("Areacode") private String areacode; - + + + /** * 协议,IsDcdn=false时,可传http、https不传则查所有协议的带宽。 - * 如果IsDcdn=true,这里可传http_dynamic、http_static、https_dynamic、https_static、quic_dynamic、quic_static、websocket - * 并支持同时查询多个协议用逗号隔开 +如果IsDcdn=true,这里可传http_dynamic、http_static、https_dynamic、https_static、quic_dynamic、quic_static、websocket 并支持同时查询多个协议用逗号隔开 + */ @UCloudParam("Protocol") private String protocol; - - /** 是否全站加速,默认false */ + + + + /** + * 是否全站加速,默认false + */ @UCloudParam("IsDcdn") private Boolean isDcdn; - + + public String getProjectId() { return projectId; } @@ -70,7 +102,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getType() { return type; } @@ -78,7 +110,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public Integer getBeginTime() { return beginTime; } @@ -86,7 +118,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -94,7 +126,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public List getDomainId() { return domainId; } @@ -102,7 +134,7 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } - + public String getAreacode() { return areacode; } @@ -110,7 +142,7 @@ public String getAreacode() { public void setAreacode(String areacode) { this.areacode = areacode; } - + public String getProtocol() { return protocol; } @@ -118,7 +150,7 @@ public String getProtocol() { public void setProtocol(String protocol) { this.protocol = protocol; } - + public Boolean getIsDcdn() { return isDcdn; } @@ -126,4 +158,14 @@ public Boolean getIsDcdn() { public void setIsDcdn(Boolean isDcdn) { this.isDcdn = isDcdn; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainRequestNumV3Response.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainRequestNumV3Response.java index 28100700..073a073c 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainRequestNumV3Response.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainRequestNumV3Response.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnDomainRequestNumV3Response extends Response { - /** 请求数实例表。 */ + + + /** + * 请求数实例表。 + */ @SerializedName("RequestList") private List requestList; - + + public List getRequestList() { return requestList; } @@ -32,31 +41,49 @@ public List getRequestList() { public void setRequestList(List requestList) { this.requestList = requestList; } + + public static class RequestInfoV2 extends Response { + + + /** + * 带宽获取的时间点。格式:时间戳 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 返回值返回指定时间区间内的cdn收到的请求次数之和 + */ + @SerializedName("CdnRequest") + private Double cdnRequest; + + + public Integer getTime() { + return time; + } + + public void setTime(Integer time) { + this.time = time; + } + + public Double getCdnRequest() { + return cdnRequest; + } + + public void setCdnRequest(Double cdnRequest) { + this.cdnRequest = cdnRequest; + } + + } +} + + - public static class RequestInfoV2 extends Response { - /** 带宽获取的时间点。格式:时间戳 */ - @SerializedName("Time") - private Integer time; - /** 返回值返回指定时间区间内的cdn收到的请求次数之和 */ - @SerializedName("CdnRequest") - private Double cdnRequest; - public Integer getTime() { - return time; - } - public void setTime(Integer time) { - this.time = time; - } - public Double getCdnRequest() { - return cdnRequest; - } - public void setCdnRequest(Double cdnRequest) { - this.cdnRequest = cdnRequest; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnPassBandwidthV2Request.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnPassBandwidthV2Request.java index 321acfea..931aceeb 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnPassBandwidthV2Request.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnPassBandwidthV2Request.java @@ -1,61 +1,88 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUcdnPassBandwidthV2Request extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示按照1分钟粒度) */ + + + + /** + * 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示按照1分钟粒度) + */ @NotEmpty @UCloudParam("Type") private Integer type; - - /** 域名id,创建域名时生成的id。默认全部域名 */ + + + + /** + * 域名id,创建域名时生成的id。默认全部域名 + */ @UCloudParam("DomainId") private List domainId; - - /** 查询带宽区域 cn代表国内 abroad代表海外,只支持国内 */ + + + + /** + * 查询带宽区域 cn代表国内 abroad代表海外,只支持国内 + */ @UCloudParam("Areacode") private String areacode; - + + + /** - * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 - * 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 + * 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 */ + + + + /** + * 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 + */ @UCloudParam("EndTime") private Integer endTime; - - /** 是否全站加速 默认false */ + + + + /** + * 是否全站加速 默认false + */ @UCloudParam("IsDcdn") private Boolean isDcdn; - + + public String getProjectId() { return projectId; } @@ -63,7 +90,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getType() { return type; } @@ -71,7 +98,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public List getDomainId() { return domainId; } @@ -79,7 +106,7 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } - + public String getAreacode() { return areacode; } @@ -87,7 +114,7 @@ public String getAreacode() { public void setAreacode(String areacode) { this.areacode = areacode; } - + public Integer getBeginTime() { return beginTime; } @@ -95,7 +122,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -103,7 +130,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public Boolean getIsDcdn() { return isDcdn; } @@ -111,4 +138,14 @@ public Boolean getIsDcdn() { public void setIsDcdn(Boolean isDcdn) { this.isDcdn = isDcdn; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnPassBandwidthV2Response.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnPassBandwidthV2Response.java index dd3f8c76..2ef3fe9f 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnPassBandwidthV2Response.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnPassBandwidthV2Response.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnPassBandwidthV2Response extends Response { - /** 回源带宽数据 */ + + + /** + * 回源带宽数据 + */ @SerializedName("BandwidthList") private List bandwidthList; - + + public List getBandwidthList() { return bandwidthList; } @@ -32,31 +41,49 @@ public List getBandwidthList() { public void setBandwidthList(List bandwidthList) { this.bandwidthList = bandwidthList; } + + public static class BandwidthInfoDetail extends Response { + + + /** + * 宽获取的时间点。格式:时间戳 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 返回值带宽值数据。 + */ + @SerializedName("Bandwidth") + private Double bandwidth; + + + public Integer getTime() { + return time; + } + + public void setTime(Integer time) { + this.time = time; + } + + public Double getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Double bandwidth) { + this.bandwidth = bandwidth; + } + + } +} + + - public static class BandwidthInfoDetail extends Response { - /** 宽获取的时间点。格式:时间戳 */ - @SerializedName("Time") - private Integer time; - /** 返回值带宽值数据。 */ - @SerializedName("Bandwidth") - private Double bandwidth; - public Integer getTime() { - return time; - } - public void setTime(Integer time) { - this.time = time; - } - public Double getBandwidth() { - return bandwidth; - } - public void setBandwidth(Double bandwidth) { - this.bandwidth = bandwidth; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspBandwidthV2Request.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspBandwidthV2Request.java index 0107e715..75befcf7 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspBandwidthV2Request.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspBandwidthV2Request.java @@ -1,60 +1,94 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUcdnProIspBandwidthV2Request extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 查询的起始日期,格式为Unix Timestamp */ + + + + /** + * 查询的起始日期,格式为Unix Timestamp + */ @NotEmpty @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束日期,格式为Unix Timestamp */ + + + + /** + * 查询的结束日期,格式为Unix Timestamp + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 时间粒度 0 (按5分钟粒度) 1 (按小时粒度) 2(按天粒度) 3(按分钟粒度) */ + + + + /** + * 时间粒度 +0 (按5分钟粒度) +1 (按小时粒度) +2(按天粒度) +3(按分钟粒度) + */ @NotEmpty @UCloudParam("Type") private Integer type; - - /** 域名id,创建域名时生成的id。默认全部域名 */ + + + + /** + * 域名id,创建域名时生成的id。默认全部域名 + */ @UCloudParam("DomainId") private List domainId; - - /** 省份代码(省份拼音),可以传多个,不传则查询所有省份 */ + + + + /** + * 省份代码(省份拼音),可以传多个,不传则查询所有省份 + */ @UCloudParam("Province") private List province; - - /** 运营商代码(运营商拼音),一次只能查询一个运营商,不传递默认取所有运营商 */ + + + + /** + * 运营商代码(运营商拼音),一次只能查询一个运营商,不传递默认取所有运营商 + */ @UCloudParam("Isp") private String isp; - + + public String getProjectId() { return projectId; } @@ -62,7 +96,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getBeginTime() { return beginTime; } @@ -70,7 +104,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -78,7 +112,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public Integer getType() { return type; } @@ -86,7 +120,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public List getDomainId() { return domainId; } @@ -94,7 +128,7 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } - + public List getProvince() { return province; } @@ -102,7 +136,7 @@ public List getProvince() { public void setProvince(List province) { this.province = province; } - + public String getIsp() { return isp; } @@ -110,4 +144,14 @@ public String getIsp() { public void setIsp(String isp) { this.isp = isp; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspBandwidthV2Response.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspBandwidthV2Response.java index b74143ad..481b2c66 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspBandwidthV2Response.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspBandwidthV2Response.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnProIspBandwidthV2Response extends Response { - /** 按省份的带宽流量实例表。具体参考下面BandwidthSet */ + + + /** + * 按省份的带宽流量实例表。具体参考下面BandwidthSet + */ @SerializedName("BandwidthSet") private List bandwidthSet; - + + public List getBandwidthSet() { return bandwidthSet; } @@ -32,70 +41,100 @@ public List getBandwidthSet() { public void setBandwidthSet(List bandwidthSet) { this.bandwidthSet = bandwidthSet; } + + public static class ProIspBandwidthList extends Response { + + + /** + * 带宽获取的时间点。格式:时间戳 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 返回值返回指定时间区间内CDN的带宽峰值,单位Mbps + */ + @SerializedName("CdnBandwidth") + private Double cdnBandwidth; + + + + /** + * 对应时间粒度的流量,单位字节 + */ + @SerializedName("Traffic") + private Double traffic; + + + public Integer getTime() { + return time; + } - public static class ProIspBandwidthList extends Response { - - /** 带宽获取的时间点。格式:时间戳 */ - @SerializedName("Time") - private Integer time; - - /** 返回值返回指定时间区间内CDN的带宽峰值,单位Mbps */ - @SerializedName("CdnBandwidth") - private Double cdnBandwidth; - - /** 对应时间粒度的流量,单位字节 */ - @SerializedName("Traffic") - private Double traffic; + public void setTime(Integer time) { + this.time = time; + } + + public Double getCdnBandwidth() { + return cdnBandwidth; + } - public Integer getTime() { - return time; - } + public void setCdnBandwidth(Double cdnBandwidth) { + this.cdnBandwidth = cdnBandwidth; + } + + public Double getTraffic() { + return traffic; + } - public void setTime(Integer time) { - this.time = time; + public void setTraffic(Double traffic) { + this.traffic = traffic; + } + } + public static class ProIspBandwidthSet extends Response { + + + /** + * 省份代码 + */ + @SerializedName("Province") + private String province; + + + + /** + * 省份带宽流量实例表 + */ + @SerializedName("BandwidthTrafficList") + private List bandwidthTrafficList; + + + public String getProvince() { + return province; + } - public Double getCdnBandwidth() { - return cdnBandwidth; - } + public void setProvince(String province) { + this.province = province; + } + + public List getBandwidthTrafficList() { + return bandwidthTrafficList; + } - public void setCdnBandwidth(Double cdnBandwidth) { - this.cdnBandwidth = cdnBandwidth; + public void setBandwidthTrafficList(List bandwidthTrafficList) { + this.bandwidthTrafficList = bandwidthTrafficList; + } + } +} - public Double getTraffic() { - return traffic; - } - public void setTraffic(Double traffic) { - this.traffic = traffic; - } - } - public static class ProIspBandwidthSet extends Response { - /** 省份代码 */ - @SerializedName("Province") - private String province; - /** 省份带宽流量实例表 */ - @SerializedName("BandwidthTrafficList") - private List bandwidthTrafficList; - public String getProvince() { - return province; - } - public void setProvince(String province) { - this.province = province; - } - public List getBandwidthTrafficList() { - return bandwidthTrafficList; - } - public void setBandwidthTrafficList(List bandwidthTrafficList) { - this.bandwidthTrafficList = bandwidthTrafficList; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspRequestNumV2Request.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspRequestNumV2Request.java index a799794d..b9fe2025 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspRequestNumV2Request.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspRequestNumV2Request.java @@ -1,59 +1,89 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUcdnProIspRequestNumV2Request extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 查询的起始日期,格式为Unix Timestamp 忽略时间部分 */ + + + + /** + * 查询的起始日期,格式为Unix Timestamp 忽略时间部分 + */ @NotEmpty @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询的结束日期,格式为Unix Timestamp 忽略时间部分 */ + + + + /** + * 查询的结束日期,格式为Unix Timestamp 忽略时间部分 + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 域名id,创建域名时生成的id。默认全部域名 */ + + + + /** + * 域名id,创建域名时生成的id。默认全部域名 + */ @UCloudParam("DomainId") private List domainId; - - /** 省份代码,可以传多个,不传则查询所有省份 */ + + + + /** + * 省份代码,可以传多个,不传则查询所有省份 + */ @UCloudParam("Province") private List province; - - /** 运营商代码,一次只能查询一个运营商,不传递默认取所有运营商 */ + + + + /** + * 运营商代码,一次只能查询一个运营商,不传递默认取所有运营商 + */ @UCloudParam("Isp") private String isp; - - /** 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天粒度,3表示按照一分钟粒度) */ + + + + /** + * 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天粒度,3表示按照一分钟粒度) + */ @UCloudParam("Type") private Integer type; - + + public String getProjectId() { return projectId; } @@ -61,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getBeginTime() { return beginTime; } @@ -69,7 +99,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -77,7 +107,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public List getDomainId() { return domainId; } @@ -85,7 +115,7 @@ public List getDomainId() { public void setDomainId(List domainId) { this.domainId = domainId; } - + public List getProvince() { return province; } @@ -93,7 +123,7 @@ public List getProvince() { public void setProvince(List province) { this.province = province; } - + public String getIsp() { return isp; } @@ -101,7 +131,7 @@ public String getIsp() { public void setIsp(String isp) { this.isp = isp; } - + public Integer getType() { return type; } @@ -109,4 +139,14 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspRequestNumV2Response.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspRequestNumV2Response.java index c15891d1..cba73003 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspRequestNumV2Response.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnProIspRequestNumV2Response.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnProIspRequestNumV2Response extends Response { - /** 按省份的请求数实例表。具体参考下面RequestList */ + + + /** + * 按省份的请求数实例表。具体参考下面RequestList + */ @SerializedName("RequestNumSet") private List requestNumSet; - + + public List getRequestNumSet() { return requestNumSet; } @@ -32,58 +41,84 @@ public List getRequestNumSet() { public void setRequestNumSet(List requestNumSet) { this.requestNumSet = requestNumSet; } + + public static class ProIspRequestListV2 extends Response { + + + /** + * 带宽获取的时间点。格式:时间戳 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 返回值返回指定时间区间内的请求数 + */ + @SerializedName("CdnRequest") + private Double cdnRequest; + + + public Integer getTime() { + return time; + } - public static class ProIspRequestListV2 extends Response { - - /** 带宽获取的时间点。格式:时间戳 */ - @SerializedName("Time") - private Integer time; - - /** 返回值返回指定时间区间内的请求数 */ - @SerializedName("CdnRequest") - private Double cdnRequest; + public void setTime(Integer time) { + this.time = time; + } + + public Double getCdnRequest() { + return cdnRequest; + } - public Integer getTime() { - return time; + public void setCdnRequest(Double cdnRequest) { + this.cdnRequest = cdnRequest; + } + } + public static class ProIspRequestNumSetV2 extends Response { + + + /** + * 省份代码 + */ + @SerializedName("Province") + private String province; + + + + /** + * 省份请求数实例表 ProIspRequestListV2 + */ + @SerializedName("RequestList") + private List requestList; + + + public String getProvince() { + return province; + } - public void setTime(Integer time) { - this.time = time; - } + public void setProvince(String province) { + this.province = province; + } + + public List getRequestList() { + return requestList; + } - public Double getCdnRequest() { - return cdnRequest; + public void setRequestList(List requestList) { + this.requestList = requestList; + } + } +} + - public void setCdnRequest(Double cdnRequest) { - this.cdnRequest = cdnRequest; - } - } - public static class ProIspRequestNumSetV2 extends Response { - /** 省份代码 */ - @SerializedName("Province") - private String province; - /** 省份请求数实例表 ProIspRequestListV2 */ - @SerializedName("RequestList") - private List requestList; - public String getProvince() { - return province; - } - public void setProvince(String province) { - this.province = province; - } - public List getRequestList() { - return requestList; - } - public void setRequestList(List requestList) { - this.requestList = requestList; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnTrafficV2Request.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnTrafficV2Request.java index dca89b8a..f7d9a945 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnTrafficV2Request.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnTrafficV2Request.java @@ -1,35 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class GetUcdnTrafficV2Request extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 是否dcdn域名 */ + + + + /** + * 是否dcdn域名 + */ @UCloudParam("IsDcdn") private Boolean isDcdn; - + + public String getProjectId() { return projectId; } @@ -37,7 +49,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Boolean getIsDcdn() { return isDcdn; } @@ -45,4 +57,14 @@ public Boolean getIsDcdn() { public void setIsDcdn(Boolean isDcdn) { this.isDcdn = isDcdn; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnTrafficV2Response.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnTrafficV2Response.java index 0f308459..abd45675 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnTrafficV2Response.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnTrafficV2Response.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUcdnTrafficV2Response extends Response { - /** 用户不同区域的流量信息, 具体结构参见TrafficSet部分 */ + + + /** + * 用户不同区域的流量信息, 具体结构参见TrafficSet部分 + */ @SerializedName("TrafficSet") private List trafficSet; - + + public List getTrafficSet() { return trafficSet; } @@ -32,55 +41,81 @@ public List getTrafficSet() { public void setTrafficSet(List trafficSet) { this.trafficSet = trafficSet; } + + public static class TrafficSet extends Response { + + + /** + * 购买流量的区域, cn: 国内; abroad: 国外 + */ + @SerializedName("Areacode") + private String areacode; + + + + /** + * Areacode区域内总购买流量, 单位GB + */ + @SerializedName("TrafficTotal") + private Double trafficTotal; + + + + /** + * Areacode区域内总剩余流量, 单位GB + */ + @SerializedName("TrafficLeft") + private Double trafficLeft; + + + + /** + * Areacode区域内总使用流量, 单位GB + */ + @SerializedName("TrafficUsed") + private Double trafficUsed; + + + public String getAreacode() { + return areacode; + } - public static class TrafficSet extends Response { + public void setAreacode(String areacode) { + this.areacode = areacode; + } + + public Double getTrafficTotal() { + return trafficTotal; + } - /** 购买流量的区域, cn: 国内; abroad: 国外 */ - @SerializedName("Areacode") - private String areacode; + public void setTrafficTotal(Double trafficTotal) { + this.trafficTotal = trafficTotal; + } + + public Double getTrafficLeft() { + return trafficLeft; + } - /** Areacode区域内总购买流量, 单位GB */ - @SerializedName("TrafficTotal") - private Double trafficTotal; + public void setTrafficLeft(Double trafficLeft) { + this.trafficLeft = trafficLeft; + } + + public Double getTrafficUsed() { + return trafficUsed; + } - /** Areacode区域内总剩余流量, 单位GB */ - @SerializedName("TrafficLeft") - private Double trafficLeft; + public void setTrafficUsed(Double trafficUsed) { + this.trafficUsed = trafficUsed; + } + + } +} - /** Areacode区域内总使用流量, 单位GB */ - @SerializedName("TrafficUsed") - private Double trafficUsed; - public String getAreacode() { - return areacode; - } - public void setAreacode(String areacode) { - this.areacode = areacode; - } - public Double getTrafficTotal() { - return trafficTotal; - } - public void setTrafficTotal(Double trafficTotal) { - this.trafficTotal = trafficTotal; - } - public Double getTrafficLeft() { - return trafficLeft; - } - public void setTrafficLeft(Double trafficLeft) { - this.trafficLeft = trafficLeft; - } - public Double getTrafficUsed() { - return trafficUsed; - } - public void setTrafficUsed(Double trafficUsed) { - this.trafficUsed = trafficUsed; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/PrefetchNewUcdnDomainCacheRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/PrefetchNewUcdnDomainCacheRequest.java index d5226eef..c09cf24a 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/PrefetchNewUcdnDomainCacheRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/PrefetchNewUcdnDomainCacheRequest.java @@ -1,41 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class PrefetchNewUcdnDomainCacheRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** - * 预热URL列表,n从自然数0开始。UrlList.n字段必须以”http://域名/”开始。如刷新文件目录a下面img.png文件, - * 格式为http://abc.ucloud.cn/a/img.png。请正确提交需要刷新的域名 + * 预热URL列表,n从自然数0开始。UrlList.n字段必须以”http://域名/”开始。如刷新文件目录a下面img.png文件, 格式为http://abc.ucloud.cn/a/img.png。请正确提交需要刷新的域名 */ @NotEmpty @UCloudParam("UrlList") private List urlList; - + + public String getProjectId() { return projectId; } @@ -43,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUrlList() { return urlList; } @@ -51,4 +58,14 @@ public List getUrlList() { public void setUrlList(List urlList) { this.urlList = urlList; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/PrefetchNewUcdnDomainCacheResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/PrefetchNewUcdnDomainCacheResponse.java index e2fac1cd..a8cb2796 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/PrefetchNewUcdnDomainCacheResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/PrefetchNewUcdnDomainCacheResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class PrefetchNewUcdnDomainCacheResponse extends Response { - /** 本次提交url对应的任务id */ + + + /** + * 本次提交url对应的任务id + */ @SerializedName("TaskId") private String taskId; - + + public String getTaskId() { return taskId; } @@ -31,4 +41,14 @@ public String getTaskId() { public void setTaskId(String taskId) { this.taskId = taskId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/QueryIpLocationRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/QueryIpLocationRequest.java index 57dc9d1a..c8e5449f 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/QueryIpLocationRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/QueryIpLocationRequest.java @@ -1,31 +1,40 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class QueryIpLocationRequest extends Request { - /** ip列表 */ + + + /** + * ip列表 + */ @NotEmpty @UCloudParam("Ip") private List ip; - + + public List getIp() { return ip; } @@ -33,4 +42,14 @@ public List getIp() { public void setIp(List ip) { this.ip = ip; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/QueryIpLocationResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/QueryIpLocationResponse.java index 5f4b506a..7c2f09f5 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/QueryIpLocationResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/QueryIpLocationResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class QueryIpLocationResponse extends Response { - /** IP信息列表 */ + + + /** + * IP信息列表 + */ @SerializedName("Data") private List data; - + + public List getData() { return data; } @@ -32,67 +41,97 @@ public List getData() { public void setData(List data) { this.data = data; } + + public static class IpLocationInfo extends Response { + + + /** + * 客户端请求的ip + */ + @SerializedName("Ip") + private String ip; + + + + /** + * 地区 + */ + @SerializedName("Area") + private String area; + + + + /** + * 运营商 + */ + @SerializedName("Isp") + private String isp; + + + + /** + * 城市 + */ + @SerializedName("City") + private String city; + + + + /** + * ip是否存在 + */ + @SerializedName("Exist") + private Boolean exist; + + + public String getIp() { + return ip; + } - public static class IpLocationInfo extends Response { - - /** 客户端请求的ip */ - @SerializedName("Ip") - private String ip; - - /** 地区 */ - @SerializedName("Area") - private String area; + public void setIp(String ip) { + this.ip = ip; + } + + public String getArea() { + return area; + } - /** 运营商 */ - @SerializedName("Isp") - private String isp; + public void setArea(String area) { + this.area = area; + } + + public String getIsp() { + return isp; + } - /** 城市 */ - @SerializedName("City") - private String city; + public void setIsp(String isp) { + this.isp = isp; + } + + public String getCity() { + return city; + } - /** ip是否存在 */ - @SerializedName("Exist") - private Boolean exist; + public void setCity(String city) { + this.city = city; + } + + public Boolean getExist() { + return exist; + } - public String getIp() { - return ip; + public void setExist(Boolean exist) { + this.exist = exist; + } + } +} - public void setIp(String ip) { - this.ip = ip; - } - public String getArea() { - return area; - } - public void setArea(String area) { - this.area = area; - } - public String getIsp() { - return isp; - } - public void setIsp(String isp) { - this.isp = isp; - } - public String getCity() { - return city; - } - public void setCity(String city) { - this.city = city; - } - public Boolean getExist() { - return exist; - } - public void setExist(Boolean exist) { - this.exist = exist; - } - } -} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/RefreshNewUcdnDomainCacheRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/RefreshNewUcdnDomainCacheRequest.java index 4c7c0a61..fd7d4e1f 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/RefreshNewUcdnDomainCacheRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/RefreshNewUcdnDomainCacheRequest.java @@ -1,47 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class RefreshNewUcdnDomainCacheRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 刷新类型,file代表文件刷新,dir 代表路径刷新,m3u8带表m3u8刷新 */ + + + + /** + * 刷新类型,file代表文件刷新,dir 代表路径刷新,m3u8带表m3u8刷新 + */ @NotEmpty @UCloudParam("Type") private String type; - + + + /** - * 需要刷新的URL,n 从自然数0开始,刷新多个URL列表时,一次最多提交100个。必须以”http://域名/”开始。目录要以”/”结尾, - * 如刷新目录a下所有文件,格式为:http://abc.ucloud.cn/a/;如刷新文件目录a下面img.png文件, - * 格式为http://abc.ucloud.cn/a/img.png。请正确提交需要刷新的域名 + * 需要刷新的URL,n 从自然数0开始,刷新多个URL列表时,一次最多提交100个。必须以”http://域名/”开始。目录要以”/”结尾, 如刷新目录a下所有文件,格式为:http://abc.ucloud.cn/a/;如刷新文件目录a下面img.png文件, 格式为http://abc.ucloud.cn/a/img.png。请正确提交需要刷新的域名 */ @NotEmpty @UCloudParam("UrlList") private List urlList; - + + public String getProjectId() { return projectId; } @@ -49,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getType() { return type; } @@ -57,7 +67,7 @@ public String getType() { public void setType(String type) { this.type = type; } - + public List getUrlList() { return urlList; } @@ -65,4 +75,14 @@ public List getUrlList() { public void setUrlList(List urlList) { this.urlList = urlList; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/RefreshNewUcdnDomainCacheResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/RefreshNewUcdnDomainCacheResponse.java index b59b2206..5e766dcf 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/RefreshNewUcdnDomainCacheResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/RefreshNewUcdnDomainCacheResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class RefreshNewUcdnDomainCacheResponse extends Response { - /** 本次提交url对应的任务id */ + + + /** + * 本次提交url对应的任务id + */ @SerializedName("TaskId") private String taskId; - + + public String getTaskId() { return taskId; } @@ -31,4 +41,14 @@ public String getTaskId() { public void setTaskId(String taskId) { this.taskId = taskId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/SwitchUcdnChargeTypeRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/SwitchUcdnChargeTypeRequest.java index cb40eca0..8e74097e 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/SwitchUcdnChargeTypeRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/SwitchUcdnChargeTypeRequest.java @@ -1,34 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class SwitchUcdnChargeTypeRequest extends Request { - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 计费方式。traffic代表按流量包计费,bandwidth按带宽付费 */ + + + + /** + * 计费方式。traffic代表按流量包计费,bandwidth按带宽付费 + */ @NotEmpty @UCloudParam("ChargeType") private String chargeType; - + + public String getProjectId() { return projectId; } @@ -36,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getChargeType() { return chargeType; } @@ -44,4 +58,14 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/SwitchUcdnChargeTypeResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/SwitchUcdnChargeTypeResponse.java index 45cf26ef..0d462478 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/SwitchUcdnChargeTypeResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/SwitchUcdnChargeTypeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class SwitchUcdnChargeTypeResponse extends Response {} +public class SwitchUcdnChargeTypeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainStatusRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainStatusRequest.java index e63dfbe0..a218269d 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainStatusRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainStatusRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUcdnDomainStatusRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 域名ID,创建加速域名时生成。 */ + + + + /** + * 域名ID,创建加速域名时生成。 + */ @NotEmpty @UCloudParam("DomainId") private String domainId; - - /** 域名状态,enable代表加速中,disable代表停止加速,delete代表删除。 */ + + + + /** + * 域名状态,enable代表加速中,disable代表停止加速,delete代表删除。 + */ @NotEmpty @UCloudParam("Status") private String status; - - /** 是否全站加速,默认false */ + + + + /** + * 是否全站加速,默认false + */ @UCloudParam("IsDcdn") private Boolean isDcdn; - + + public String getProjectId() { return projectId; } @@ -48,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDomainId() { return domainId; } @@ -56,7 +75,7 @@ public String getDomainId() { public void setDomainId(String domainId) { this.domainId = domainId; } - + public String getStatus() { return status; } @@ -64,7 +83,7 @@ public String getStatus() { public void setStatus(String status) { this.status = status; } - + public Boolean getIsDcdn() { return isDcdn; } @@ -72,4 +91,14 @@ public Boolean getIsDcdn() { public void setIsDcdn(Boolean isDcdn) { this.isDcdn = isDcdn; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainStatusResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainStatusResponse.java index fc795ef4..69050458 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainStatusResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainStatusResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ucdn.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUcdnDomainStatusResponse extends Response {} +public class UpdateUcdnDomainStatusResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index c781d221..58feeaef 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-udb - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java index ee8fbc59..3b68041f 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.udb.client; @@ -17,865 +19,1230 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + +import cn.ucloud.udb.models.BackupUDBInstanceRequest; +import cn.ucloud.udb.models.BackupUDBInstanceResponse; + + + import cn.ucloud.udb.models.BackupUDBInstanceBinlogRequest; import cn.ucloud.udb.models.BackupUDBInstanceBinlogResponse; + + + import cn.ucloud.udb.models.BackupUDBInstanceErrorLogRequest; import cn.ucloud.udb.models.BackupUDBInstanceErrorLogResponse; -import cn.ucloud.udb.models.BackupUDBInstanceRequest; -import cn.ucloud.udb.models.BackupUDBInstanceResponse; + + + import cn.ucloud.udb.models.BackupUDBInstanceSlowLogRequest; import cn.ucloud.udb.models.BackupUDBInstanceSlowLogResponse; + + + import cn.ucloud.udb.models.ChangeUDBParamGroupRequest; import cn.ucloud.udb.models.ChangeUDBParamGroupResponse; + + + import cn.ucloud.udb.models.CheckRecoverUDBInstanceRequest; import cn.ucloud.udb.models.CheckRecoverUDBInstanceResponse; + + + import cn.ucloud.udb.models.CheckUDBInstanceToHAAllowanceRequest; import cn.ucloud.udb.models.CheckUDBInstanceToHAAllowanceResponse; + + + import cn.ucloud.udb.models.ClearUDBLogRequest; import cn.ucloud.udb.models.ClearUDBLogResponse; + + + import cn.ucloud.udb.models.CreateMongoDBReplicaSetRequest; import cn.ucloud.udb.models.CreateMongoDBReplicaSetResponse; -import cn.ucloud.udb.models.CreateUDBInstanceByRecoveryRequest; -import cn.ucloud.udb.models.CreateUDBInstanceByRecoveryResponse; + + + import cn.ucloud.udb.models.CreateUDBInstanceRequest; import cn.ucloud.udb.models.CreateUDBInstanceResponse; + + + +import cn.ucloud.udb.models.CreateUDBInstanceByRecoveryRequest; +import cn.ucloud.udb.models.CreateUDBInstanceByRecoveryResponse; + + + import cn.ucloud.udb.models.CreateUDBParamGroupRequest; import cn.ucloud.udb.models.CreateUDBParamGroupResponse; + + + import cn.ucloud.udb.models.CreateUDBReplicationInstanceRequest; import cn.ucloud.udb.models.CreateUDBReplicationInstanceResponse; + + + import cn.ucloud.udb.models.CreateUDBRouteInstanceRequest; import cn.ucloud.udb.models.CreateUDBRouteInstanceResponse; + + + import cn.ucloud.udb.models.CreateUDBSlaveRequest; import cn.ucloud.udb.models.CreateUDBSlaveResponse; + + + import cn.ucloud.udb.models.DeleteUDBInstanceRequest; import cn.ucloud.udb.models.DeleteUDBInstanceResponse; + + + import cn.ucloud.udb.models.DeleteUDBLogPackageRequest; import cn.ucloud.udb.models.DeleteUDBLogPackageResponse; + + + import cn.ucloud.udb.models.DeleteUDBParamGroupRequest; import cn.ucloud.udb.models.DeleteUDBParamGroupResponse; -import cn.ucloud.udb.models.DescribeUDBBackupBlacklistRequest; -import cn.ucloud.udb.models.DescribeUDBBackupBlacklistResponse; + + + import cn.ucloud.udb.models.DescribeUDBBackupRequest; import cn.ucloud.udb.models.DescribeUDBBackupResponse; + + + +import cn.ucloud.udb.models.DescribeUDBBackupBlacklistRequest; +import cn.ucloud.udb.models.DescribeUDBBackupBlacklistResponse; + + + import cn.ucloud.udb.models.DescribeUDBBinlogBackupURLRequest; import cn.ucloud.udb.models.DescribeUDBBinlogBackupURLResponse; + + + +import cn.ucloud.udb.models.DescribeUDBInstanceRequest; +import cn.ucloud.udb.models.DescribeUDBInstanceResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstanceBackupStateRequest; import cn.ucloud.udb.models.DescribeUDBInstanceBackupStateResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstanceBackupURLRequest; import cn.ucloud.udb.models.DescribeUDBInstanceBackupURLResponse; -import cn.ucloud.udb.models.DescribeUDBInstanceBinlogBackupStateRequest; -import cn.ucloud.udb.models.DescribeUDBInstanceBinlogBackupStateResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstanceBinlogRequest; import cn.ucloud.udb.models.DescribeUDBInstanceBinlogResponse; + + + +import cn.ucloud.udb.models.DescribeUDBInstanceBinlogBackupStateRequest; +import cn.ucloud.udb.models.DescribeUDBInstanceBinlogBackupStateResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstanceLogRequest; import cn.ucloud.udb.models.DescribeUDBInstanceLogResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstancePriceRequest; import cn.ucloud.udb.models.DescribeUDBInstancePriceResponse; -import cn.ucloud.udb.models.DescribeUDBInstanceRequest; -import cn.ucloud.udb.models.DescribeUDBInstanceResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstanceStateRequest; import cn.ucloud.udb.models.DescribeUDBInstanceStateResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstanceUpgradePriceRequest; import cn.ucloud.udb.models.DescribeUDBInstanceUpgradePriceResponse; + + + import cn.ucloud.udb.models.DescribeUDBLogBackupURLRequest; import cn.ucloud.udb.models.DescribeUDBLogBackupURLResponse; + + + import cn.ucloud.udb.models.DescribeUDBLogPackageRequest; import cn.ucloud.udb.models.DescribeUDBLogPackageResponse; + + + import cn.ucloud.udb.models.DescribeUDBParamGroupRequest; import cn.ucloud.udb.models.DescribeUDBParamGroupResponse; + + + import cn.ucloud.udb.models.DescribeUDBSplittingInfoRequest; import cn.ucloud.udb.models.DescribeUDBSplittingInfoResponse; + + + import cn.ucloud.udb.models.DescribeUDBTypeRequest; import cn.ucloud.udb.models.DescribeUDBTypeResponse; + + + import cn.ucloud.udb.models.DisableUDBRWSplittingRequest; import cn.ucloud.udb.models.DisableUDBRWSplittingResponse; + + + import cn.ucloud.udb.models.EditUDBBackupBlacklistRequest; import cn.ucloud.udb.models.EditUDBBackupBlacklistResponse; + + + import cn.ucloud.udb.models.EnableUDBRWSplittingRequest; import cn.ucloud.udb.models.EnableUDBRWSplittingResponse; + + + import cn.ucloud.udb.models.ExtractUDBParamGroupRequest; import cn.ucloud.udb.models.ExtractUDBParamGroupResponse; + + + import cn.ucloud.udb.models.FetchUDBInstanceEarliestRecoverTimeRequest; import cn.ucloud.udb.models.FetchUDBInstanceEarliestRecoverTimeResponse; + + + import cn.ucloud.udb.models.GetUDBClientConnNumRequest; import cn.ucloud.udb.models.GetUDBClientConnNumResponse; + + + import cn.ucloud.udb.models.ModifyUDBInstanceNameRequest; import cn.ucloud.udb.models.ModifyUDBInstanceNameResponse; + + + import cn.ucloud.udb.models.ModifyUDBInstancePasswordRequest; import cn.ucloud.udb.models.ModifyUDBInstancePasswordResponse; + + + import cn.ucloud.udb.models.PromoteUDBInstanceToHARequest; import cn.ucloud.udb.models.PromoteUDBInstanceToHAResponse; + + + import cn.ucloud.udb.models.PromoteUDBSlaveRequest; import cn.ucloud.udb.models.PromoteUDBSlaveResponse; + + + import cn.ucloud.udb.models.ResizeUDBInstanceRequest; import cn.ucloud.udb.models.ResizeUDBInstanceResponse; + + + import cn.ucloud.udb.models.RestartRWSplittingRequest; import cn.ucloud.udb.models.RestartRWSplittingResponse; + + + import cn.ucloud.udb.models.RestartUDBInstanceRequest; import cn.ucloud.udb.models.RestartUDBInstanceResponse; + + + import cn.ucloud.udb.models.SetUDBRWSplittingRequest; import cn.ucloud.udb.models.SetUDBRWSplittingResponse; + + + import cn.ucloud.udb.models.StartUDBInstanceRequest; import cn.ucloud.udb.models.StartUDBInstanceResponse; + + + import cn.ucloud.udb.models.StopUDBInstanceRequest; import cn.ucloud.udb.models.StopUDBInstanceResponse; + + + import cn.ucloud.udb.models.SwitchUDBHAToSentinelRequest; import cn.ucloud.udb.models.SwitchUDBHAToSentinelResponse; + + + import cn.ucloud.udb.models.SwitchUDBInstanceToHARequest; import cn.ucloud.udb.models.SwitchUDBInstanceToHAResponse; + + + import cn.ucloud.udb.models.UpdateUDBInstanceBackupStrategyRequest; import cn.ucloud.udb.models.UpdateUDBInstanceBackupStrategyResponse; + + + import cn.ucloud.udb.models.UpdateUDBInstanceSlaveBackupSwitchRequest; import cn.ucloud.udb.models.UpdateUDBInstanceSlaveBackupSwitchResponse; + + + import cn.ucloud.udb.models.UpdateUDBParamGroupRequest; import cn.ucloud.udb.models.UpdateUDBParamGroupResponse; + + + import cn.ucloud.udb.models.UpgradeUDBInstanceToHARequest; import cn.ucloud.udb.models.UpgradeUDBInstanceToHAResponse; + + + import cn.ucloud.udb.models.UploadUDBParamGroupRequest; import cn.ucloud.udb.models.UploadUDBParamGroupResponse; -/** This client is used to call actions of **UDB** service */ +/** + * This client is used to call actions of **UDB** service + */ public class UDBClient extends DefaultClient implements UDBClientInterface { public UDBClient(Config config, Credential credential) { super(config, credential); } - - /** - * BackupUDBInstance - 备份云数据库 - * - * @param request Request object - * @throws UCloudException Exception - */ - public BackupUDBInstanceResponse backupUDBInstance(BackupUDBInstanceRequest request) - throws UCloudException { - request.setAction("BackupUDBInstance"); - return (BackupUDBInstanceResponse) this.invoke(request, BackupUDBInstanceResponse.class); - } - - /** - * BackupUDBInstanceBinlog - 备份UDB指定时间段的binlog列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public BackupUDBInstanceBinlogResponse backupUDBInstanceBinlog( - BackupUDBInstanceBinlogRequest request) throws UCloudException { - request.setAction("BackupUDBInstanceBinlog"); - return (BackupUDBInstanceBinlogResponse) - this.invoke(request, BackupUDBInstanceBinlogResponse.class); - } - - /** - * BackupUDBInstanceErrorLog - 备份UDB指定时间段的errorlog - * - * @param request Request object - * @throws UCloudException Exception - */ - public BackupUDBInstanceErrorLogResponse backupUDBInstanceErrorLog( - BackupUDBInstanceErrorLogRequest request) throws UCloudException { - request.setAction("BackupUDBInstanceErrorLog"); - return (BackupUDBInstanceErrorLogResponse) - this.invoke(request, BackupUDBInstanceErrorLogResponse.class); - } - - /** - * BackupUDBInstanceSlowLog - 备份UDB指定时间段的slowlog分析结果 - * - * @param request Request object - * @throws UCloudException Exception - */ - public BackupUDBInstanceSlowLogResponse backupUDBInstanceSlowLog( - BackupUDBInstanceSlowLogRequest request) throws UCloudException { - request.setAction("BackupUDBInstanceSlowLog"); - return (BackupUDBInstanceSlowLogResponse) - this.invoke(request, BackupUDBInstanceSlowLogResponse.class); - } - - /** - * ChangeUDBParamGroup - 修改配置文件 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ChangeUDBParamGroupResponse changeUDBParamGroup(ChangeUDBParamGroupRequest request) - throws UCloudException { - request.setAction("ChangeUDBParamGroup"); - return (ChangeUDBParamGroupResponse) - this.invoke(request, ChangeUDBParamGroupResponse.class); - } - - /** - * CheckRecoverUDBInstance - 核查db是否可以使用回档功能 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CheckRecoverUDBInstanceResponse checkRecoverUDBInstance( - CheckRecoverUDBInstanceRequest request) throws UCloudException { - request.setAction("CheckRecoverUDBInstance"); - return (CheckRecoverUDBInstanceResponse) - this.invoke(request, CheckRecoverUDBInstanceResponse.class); - } - - /** - * CheckUDBInstanceToHAAllowance - 核查db是否可以升级为高可用 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CheckUDBInstanceToHAAllowanceResponse checkUDBInstanceToHAAllowance( - CheckUDBInstanceToHAAllowanceRequest request) throws UCloudException { - request.setAction("CheckUDBInstanceToHAAllowance"); - return (CheckUDBInstanceToHAAllowanceResponse) - this.invoke(request, CheckUDBInstanceToHAAllowanceResponse.class); - } - - /** - * ClearUDBLog - 清除日志 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ClearUDBLogResponse clearUDBLog(ClearUDBLogRequest request) throws UCloudException { - request.setAction("ClearUDBLog"); - return (ClearUDBLogResponse) this.invoke(request, ClearUDBLogResponse.class); - } - - /** - * CreateMongoDBReplicaSet - 创建DB副本集 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateMongoDBReplicaSetResponse createMongoDBReplicaSet( - CreateMongoDBReplicaSetRequest request) throws UCloudException { - request.setAction("CreateMongoDBReplicaSet"); - return (CreateMongoDBReplicaSetResponse) - this.invoke(request, CreateMongoDBReplicaSetResponse.class); - } - - /** - * CreateUDBInstance - 创建数据库 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUDBInstanceResponse createUDBInstance(CreateUDBInstanceRequest request) - throws UCloudException { - request.setAction("CreateUDBInstance"); - return (CreateUDBInstanceResponse) this.invoke(request, CreateUDBInstanceResponse.class); - } - - /** - * CreateUDBInstanceByRecovery - 将新建的db恢复到指定db某个指定时间点 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUDBInstanceByRecoveryResponse createUDBInstanceByRecovery( - CreateUDBInstanceByRecoveryRequest request) throws UCloudException { - request.setAction("CreateUDBInstanceByRecovery"); - return (CreateUDBInstanceByRecoveryResponse) - this.invoke(request, CreateUDBInstanceByRecoveryResponse.class); - } - - /** - * CreateUDBParamGroup - 创建配置文件 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUDBParamGroupResponse createUDBParamGroup(CreateUDBParamGroupRequest request) - throws UCloudException { - request.setAction("CreateUDBParamGroup"); - return (CreateUDBParamGroupResponse) - this.invoke(request, CreateUDBParamGroupResponse.class); - } - - /** - * CreateUDBReplicationInstance - 创建副本 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUDBReplicationInstanceResponse createUDBReplicationInstance( - CreateUDBReplicationInstanceRequest request) throws UCloudException { - request.setAction("CreateUDBReplicationInstance"); - return (CreateUDBReplicationInstanceResponse) - this.invoke(request, CreateUDBReplicationInstanceResponse.class); - } - - /** - * CreateUDBRouteInstance - 创建mongos实例 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUDBRouteInstanceResponse createUDBRouteInstance( - CreateUDBRouteInstanceRequest request) throws UCloudException { - request.setAction("CreateUDBRouteInstance"); - return (CreateUDBRouteInstanceResponse) - this.invoke(request, CreateUDBRouteInstanceResponse.class); - } - - /** - * CreateUDBSlave - 创建从库 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUDBSlaveResponse createUDBSlave(CreateUDBSlaveRequest request) - throws UCloudException { - request.setAction("CreateUDBSlave"); - return (CreateUDBSlaveResponse) this.invoke(request, CreateUDBSlaveResponse.class); - } - - /** - * DeleteUDBInstance - 删除云数据库 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUDBInstanceResponse deleteUDBInstance(DeleteUDBInstanceRequest request) - throws UCloudException { - request.setAction("DeleteUDBInstance"); - return (DeleteUDBInstanceResponse) this.invoke(request, DeleteUDBInstanceResponse.class); - } - - /** - * DeleteUDBLogPackage - 删除UDB日志包 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUDBLogPackageResponse deleteUDBLogPackage(DeleteUDBLogPackageRequest request) - throws UCloudException { - request.setAction("DeleteUDBLogPackage"); - return (DeleteUDBLogPackageResponse) - this.invoke(request, DeleteUDBLogPackageResponse.class); - } - - /** - * DeleteUDBParamGroup - 删除配置 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUDBParamGroupResponse deleteUDBParamGroup(DeleteUDBParamGroupRequest request) - throws UCloudException { - request.setAction("DeleteUDBParamGroup"); - return (DeleteUDBParamGroupResponse) - this.invoke(request, DeleteUDBParamGroupResponse.class); - } - - /** - * DescribeUDBBackup - 获取备份列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBBackupResponse describeUDBBackup(DescribeUDBBackupRequest request) - throws UCloudException { - request.setAction("DescribeUDBBackup"); - return (DescribeUDBBackupResponse) this.invoke(request, DescribeUDBBackupResponse.class); - } - - /** - * DescribeUDBBackupBlacklist - 获取备份黑名单 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBBackupBlacklistResponse describeUDBBackupBlacklist( - DescribeUDBBackupBlacklistRequest request) throws UCloudException { - request.setAction("DescribeUDBBackupBlacklist"); - return (DescribeUDBBackupBlacklistResponse) - this.invoke(request, DescribeUDBBackupBlacklistResponse.class); - } - - /** - * DescribeUDBBinlogBackupURL - (新)获取UDB的日志备份地址 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBBinlogBackupURLResponse describeUDBBinlogBackupURL( - DescribeUDBBinlogBackupURLRequest request) throws UCloudException { - request.setAction("DescribeUDBBinlogBackupURL"); - return (DescribeUDBBinlogBackupURLResponse) - this.invoke(request, DescribeUDBBinlogBackupURLResponse.class); - } - - /** - * DescribeUDBInstance - 获取云数据库信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBInstanceResponse describeUDBInstance(DescribeUDBInstanceRequest request) - throws UCloudException { - request.setAction("DescribeUDBInstance"); - return (DescribeUDBInstanceResponse) - this.invoke(request, DescribeUDBInstanceResponse.class); - } - - /** - * DescribeUDBInstanceBackupState - 获取实例备份状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBInstanceBackupStateResponse describeUDBInstanceBackupState( - DescribeUDBInstanceBackupStateRequest request) throws UCloudException { - request.setAction("DescribeUDBInstanceBackupState"); - return (DescribeUDBInstanceBackupStateResponse) - this.invoke(request, DescribeUDBInstanceBackupStateResponse.class); - } - - /** - * DescribeUDBInstanceBackupURL - 获取UDB备份下载地址 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBInstanceBackupURLResponse describeUDBInstanceBackupURL( - DescribeUDBInstanceBackupURLRequest request) throws UCloudException { - request.setAction("DescribeUDBInstanceBackupURL"); - return (DescribeUDBInstanceBackupURLResponse) - this.invoke(request, DescribeUDBInstanceBackupURLResponse.class); - } - - /** - * DescribeUDBInstanceBinlog - 获取UDBbinlog列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBInstanceBinlogResponse describeUDBInstanceBinlog( - DescribeUDBInstanceBinlogRequest request) throws UCloudException { - request.setAction("DescribeUDBInstanceBinlog"); - return (DescribeUDBInstanceBinlogResponse) - this.invoke(request, DescribeUDBInstanceBinlogResponse.class); - } - - /** - * DescribeUDBInstanceBinlogBackupState - 获取udb实例备份状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBInstanceBinlogBackupStateResponse describeUDBInstanceBinlogBackupState( - DescribeUDBInstanceBinlogBackupStateRequest request) throws UCloudException { - request.setAction("DescribeUDBInstanceBinlogBackupState"); - return (DescribeUDBInstanceBinlogBackupStateResponse) - this.invoke(request, DescribeUDBInstanceBinlogBackupStateResponse.class); - } - - /** - * DescribeUDBInstanceLog - 获取UDB错误日志或慢查询日志 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBInstanceLogResponse describeUDBInstanceLog( - DescribeUDBInstanceLogRequest request) throws UCloudException { - request.setAction("DescribeUDBInstanceLog"); - return (DescribeUDBInstanceLogResponse) - this.invoke(request, DescribeUDBInstanceLogResponse.class); - } - - /** - * DescribeUDBInstancePrice - 获取云数据库价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBInstancePriceResponse describeUDBInstancePrice( - DescribeUDBInstancePriceRequest request) throws UCloudException { - request.setAction("DescribeUDBInstancePrice"); - return (DescribeUDBInstancePriceResponse) - this.invoke(request, DescribeUDBInstancePriceResponse.class); - } - - /** - * DescribeUDBInstanceState - 获取云数据库状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBInstanceStateResponse describeUDBInstanceState( - DescribeUDBInstanceStateRequest request) throws UCloudException { - request.setAction("DescribeUDBInstanceState"); - return (DescribeUDBInstanceStateResponse) - this.invoke(request, DescribeUDBInstanceStateResponse.class); - } - - /** - * DescribeUDBInstanceUpgradePrice - 获取UDB实例升降级价格信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBInstanceUpgradePriceResponse describeUDBInstanceUpgradePrice( - DescribeUDBInstanceUpgradePriceRequest request) throws UCloudException { - request.setAction("DescribeUDBInstanceUpgradePrice"); - return (DescribeUDBInstanceUpgradePriceResponse) - this.invoke(request, DescribeUDBInstanceUpgradePriceResponse.class); - } - - /** - * DescribeUDBLogBackupURL - 获取UDB的日志备份地址 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBLogBackupURLResponse describeUDBLogBackupURL( - DescribeUDBLogBackupURLRequest request) throws UCloudException { - request.setAction("DescribeUDBLogBackupURL"); - return (DescribeUDBLogBackupURLResponse) - this.invoke(request, DescribeUDBLogBackupURLResponse.class); - } - - /** - * DescribeUDBLogPackage - 列表UDB实例日志备份信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBLogPackageResponse describeUDBLogPackage(DescribeUDBLogPackageRequest request) - throws UCloudException { - request.setAction("DescribeUDBLogPackage"); - return (DescribeUDBLogPackageResponse) - this.invoke(request, DescribeUDBLogPackageResponse.class); - } - - /** - * DescribeUDBParamGroup - 获取参数信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBParamGroupResponse describeUDBParamGroup(DescribeUDBParamGroupRequest request) - throws UCloudException { - request.setAction("DescribeUDBParamGroup"); - return (DescribeUDBParamGroupResponse) - this.invoke(request, DescribeUDBParamGroupResponse.class); - } - - /** - * DescribeUDBSplittingInfo - 描述读写分离功能 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBSplittingInfoResponse describeUDBSplittingInfo( - DescribeUDBSplittingInfoRequest request) throws UCloudException { - request.setAction("DescribeUDBSplittingInfo"); - return (DescribeUDBSplittingInfoResponse) - this.invoke(request, DescribeUDBSplittingInfoResponse.class); - } - - /** - * DescribeUDBType - 获取云数据库支持类型 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDBTypeResponse describeUDBType(DescribeUDBTypeRequest request) - throws UCloudException { - request.setAction("DescribeUDBType"); - return (DescribeUDBTypeResponse) this.invoke(request, DescribeUDBTypeResponse.class); - } - - /** - * DisableUDBRWSplitting - 关闭读写分离功能 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DisableUDBRWSplittingResponse disableUDBRWSplitting(DisableUDBRWSplittingRequest request) - throws UCloudException { - request.setAction("DisableUDBRWSplitting"); - return (DisableUDBRWSplittingResponse) - this.invoke(request, DisableUDBRWSplittingResponse.class); - } - - /** - * EditUDBBackupBlacklist - 编辑备份黑名单 - * - * @param request Request object - * @throws UCloudException Exception - */ - public EditUDBBackupBlacklistResponse editUDBBackupBlacklist( - EditUDBBackupBlacklistRequest request) throws UCloudException { - request.setAction("EditUDBBackupBlacklist"); - return (EditUDBBackupBlacklistResponse) - this.invoke(request, EditUDBBackupBlacklistResponse.class); - } - - /** - * EnableUDBRWSplitting - 启用读写分离功能 - * - * @param request Request object - * @throws UCloudException Exception - */ - public EnableUDBRWSplittingResponse enableUDBRWSplitting(EnableUDBRWSplittingRequest request) - throws UCloudException { - request.setAction("EnableUDBRWSplitting"); - return (EnableUDBRWSplittingResponse) - this.invoke(request, EnableUDBRWSplittingResponse.class); - } - - /** - * ExtractUDBParamGroup - 获取配置文件内容 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ExtractUDBParamGroupResponse extractUDBParamGroup(ExtractUDBParamGroupRequest request) - throws UCloudException { - request.setAction("ExtractUDBParamGroup"); - return (ExtractUDBParamGroupResponse) - this.invoke(request, ExtractUDBParamGroupResponse.class); - } - - /** - * FetchUDBInstanceEarliestRecoverTime - 获取最早可回档时间 - * - * @param request Request object - * @throws UCloudException Exception - */ - public FetchUDBInstanceEarliestRecoverTimeResponse fetchUDBInstanceEarliestRecoverTime( - FetchUDBInstanceEarliestRecoverTimeRequest request) throws UCloudException { - request.setAction("FetchUDBInstanceEarliestRecoverTime"); - return (FetchUDBInstanceEarliestRecoverTimeResponse) - this.invoke(request, FetchUDBInstanceEarliestRecoverTimeResponse.class); - } - - /** - * GetUDBClientConnNum - 获取连接实例客户端Ip和连接数 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUDBClientConnNumResponse getUDBClientConnNum(GetUDBClientConnNumRequest request) - throws UCloudException { - request.setAction("GetUDBClientConnNum"); - return (GetUDBClientConnNumResponse) - this.invoke(request, GetUDBClientConnNumResponse.class); - } - - /** - * ModifyUDBInstanceName - 修改云数据库名称 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUDBInstanceNameResponse modifyUDBInstanceName(ModifyUDBInstanceNameRequest request) - throws UCloudException { - request.setAction("ModifyUDBInstanceName"); - return (ModifyUDBInstanceNameResponse) - this.invoke(request, ModifyUDBInstanceNameResponse.class); - } - - /** - * ModifyUDBInstancePassword - 修改DB实例的管理员密码 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUDBInstancePasswordResponse modifyUDBInstancePassword( - ModifyUDBInstancePasswordRequest request) throws UCloudException { - request.setAction("ModifyUDBInstancePassword"); - return (ModifyUDBInstancePasswordResponse) - this.invoke(request, ModifyUDBInstancePasswordResponse.class); - } - - /** - * PromoteUDBInstanceToHA - 普通db升级为高可用 - * - * @param request Request object - * @throws UCloudException Exception - */ - public PromoteUDBInstanceToHAResponse promoteUDBInstanceToHA( - PromoteUDBInstanceToHARequest request) throws UCloudException { - request.setAction("PromoteUDBInstanceToHA"); - return (PromoteUDBInstanceToHAResponse) - this.invoke(request, PromoteUDBInstanceToHAResponse.class); - } - - /** - * PromoteUDBSlave - 提升从库 - * - * @param request Request object - * @throws UCloudException Exception - */ - public PromoteUDBSlaveResponse promoteUDBSlave(PromoteUDBSlaveRequest request) - throws UCloudException { - request.setAction("PromoteUDBSlave"); - return (PromoteUDBSlaveResponse) this.invoke(request, PromoteUDBSlaveResponse.class); - } - - /** - * ResizeUDBInstance - 修改UDB实例的配置 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ResizeUDBInstanceResponse resizeUDBInstance(ResizeUDBInstanceRequest request) - throws UCloudException { - request.setAction("ResizeUDBInstance"); - return (ResizeUDBInstanceResponse) this.invoke(request, ResizeUDBInstanceResponse.class); - } - - /** - * RestartRWSplitting - 读写分离中间件重启 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RestartRWSplittingResponse restartRWSplitting(RestartRWSplittingRequest request) - throws UCloudException { - request.setAction("RestartRWSplitting"); - return (RestartRWSplittingResponse) this.invoke(request, RestartRWSplittingResponse.class); - } - - /** - * RestartUDBInstance - 重启云数据库 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RestartUDBInstanceResponse restartUDBInstance(RestartUDBInstanceRequest request) - throws UCloudException { - request.setAction("RestartUDBInstance"); - return (RestartUDBInstanceResponse) this.invoke(request, RestartUDBInstanceResponse.class); - } - - /** - * SetUDBRWSplitting - 设置读写分离 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SetUDBRWSplittingResponse setUDBRWSplitting(SetUDBRWSplittingRequest request) - throws UCloudException { - request.setAction("SetUDBRWSplitting"); - return (SetUDBRWSplittingResponse) this.invoke(request, SetUDBRWSplittingResponse.class); - } - - /** - * StartUDBInstance - 启动云数据库 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StartUDBInstanceResponse startUDBInstance(StartUDBInstanceRequest request) - throws UCloudException { - request.setAction("StartUDBInstance"); - return (StartUDBInstanceResponse) this.invoke(request, StartUDBInstanceResponse.class); - } - - /** - * StopUDBInstance - 关闭云数据库 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StopUDBInstanceResponse stopUDBInstance(StopUDBInstanceRequest request) - throws UCloudException { - request.setAction("StopUDBInstance"); - return (StopUDBInstanceResponse) this.invoke(request, StopUDBInstanceResponse.class); - } - - /** - * SwitchUDBHAToSentinel - UDB高可用实例升级为Sentinel版本(不带HAProxy)升级耗时5-10秒 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SwitchUDBHAToSentinelResponse switchUDBHAToSentinel(SwitchUDBHAToSentinelRequest request) - throws UCloudException { - request.setAction("SwitchUDBHAToSentinel"); - return (SwitchUDBHAToSentinelResponse) - this.invoke(request, SwitchUDBHAToSentinelResponse.class); - } - - /** - * SwitchUDBInstanceToHA - 普通UDB切换为高可用 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SwitchUDBInstanceToHAResponse switchUDBInstanceToHA(SwitchUDBInstanceToHARequest request) - throws UCloudException { - request.setAction("SwitchUDBInstanceToHA"); - return (SwitchUDBInstanceToHAResponse) - this.invoke(request, SwitchUDBInstanceToHAResponse.class); - } - - /** - * UpdateUDBInstanceBackupStrategy - 修改UDB自动备份策略 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUDBInstanceBackupStrategyResponse updateUDBInstanceBackupStrategy( - UpdateUDBInstanceBackupStrategyRequest request) throws UCloudException { - request.setAction("UpdateUDBInstanceBackupStrategy"); - return (UpdateUDBInstanceBackupStrategyResponse) - this.invoke(request, UpdateUDBInstanceBackupStrategyResponse.class); - } - - /** - * UpdateUDBInstanceSlaveBackupSwitch - 开启或者关闭UDB从库备份 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUDBInstanceSlaveBackupSwitchResponse updateUDBInstanceSlaveBackupSwitch( - UpdateUDBInstanceSlaveBackupSwitchRequest request) throws UCloudException { - request.setAction("UpdateUDBInstanceSlaveBackupSwitch"); - return (UpdateUDBInstanceSlaveBackupSwitchResponse) - this.invoke(request, UpdateUDBInstanceSlaveBackupSwitchResponse.class); - } - - /** - * UpdateUDBParamGroup - 更新配置 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUDBParamGroupResponse updateUDBParamGroup(UpdateUDBParamGroupRequest request) - throws UCloudException { - request.setAction("UpdateUDBParamGroup"); - return (UpdateUDBParamGroupResponse) - this.invoke(request, UpdateUDBParamGroupResponse.class); - } - - /** - * UpgradeUDBInstanceToHA - 快杰普通db升级为高可用 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpgradeUDBInstanceToHAResponse upgradeUDBInstanceToHA( - UpgradeUDBInstanceToHARequest request) throws UCloudException { - request.setAction("UpgradeUDBInstanceToHA"); - return (UpgradeUDBInstanceToHAResponse) - this.invoke(request, UpgradeUDBInstanceToHAResponse.class); - } - - /** - * UploadUDBParamGroup - 导入配置 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UploadUDBParamGroupResponse uploadUDBParamGroup(UploadUDBParamGroupRequest request) - throws UCloudException { - request.setAction("UploadUDBParamGroup"); - return (UploadUDBParamGroupResponse) - this.invoke(request, UploadUDBParamGroupResponse.class); - } + + + + + + + /** + * BackupUDBInstance - 备份云数据库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUDBInstanceResponse backupUDBInstance(BackupUDBInstanceRequest request) throws UCloudException { + request.setAction("BackupUDBInstance"); + return (BackupUDBInstanceResponse) this.invoke(request, BackupUDBInstanceResponse.class); + } + + + + + + + /** + * BackupUDBInstanceBinlog - 备份UDB指定时间段的binlog列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUDBInstanceBinlogResponse backupUDBInstanceBinlog(BackupUDBInstanceBinlogRequest request) throws UCloudException { + request.setAction("BackupUDBInstanceBinlog"); + return (BackupUDBInstanceBinlogResponse) this.invoke(request, BackupUDBInstanceBinlogResponse.class); + } + + + + + + + /** + * BackupUDBInstanceErrorLog - 备份UDB指定时间段的errorlog + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUDBInstanceErrorLogResponse backupUDBInstanceErrorLog(BackupUDBInstanceErrorLogRequest request) throws UCloudException { + request.setAction("BackupUDBInstanceErrorLog"); + return (BackupUDBInstanceErrorLogResponse) this.invoke(request, BackupUDBInstanceErrorLogResponse.class); + } + + + + + + + /** + * BackupUDBInstanceSlowLog - 备份UDB指定时间段的slowlog分析结果 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUDBInstanceSlowLogResponse backupUDBInstanceSlowLog(BackupUDBInstanceSlowLogRequest request) throws UCloudException { + request.setAction("BackupUDBInstanceSlowLog"); + return (BackupUDBInstanceSlowLogResponse) this.invoke(request, BackupUDBInstanceSlowLogResponse.class); + } + + + + + + + /** + * ChangeUDBParamGroup - 修改配置文件 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ChangeUDBParamGroupResponse changeUDBParamGroup(ChangeUDBParamGroupRequest request) throws UCloudException { + request.setAction("ChangeUDBParamGroup"); + return (ChangeUDBParamGroupResponse) this.invoke(request, ChangeUDBParamGroupResponse.class); + } + + + + + + + /** + * CheckRecoverUDBInstance - 核查db是否可以使用回档功能 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckRecoverUDBInstanceResponse checkRecoverUDBInstance(CheckRecoverUDBInstanceRequest request) throws UCloudException { + request.setAction("CheckRecoverUDBInstance"); + return (CheckRecoverUDBInstanceResponse) this.invoke(request, CheckRecoverUDBInstanceResponse.class); + } + + + + + + + /** + * CheckUDBInstanceToHAAllowance - 核查db是否可以升级为高可用 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckUDBInstanceToHAAllowanceResponse checkUDBInstanceToHAAllowance(CheckUDBInstanceToHAAllowanceRequest request) throws UCloudException { + request.setAction("CheckUDBInstanceToHAAllowance"); + return (CheckUDBInstanceToHAAllowanceResponse) this.invoke(request, CheckUDBInstanceToHAAllowanceResponse.class); + } + + + + + + + /** + * ClearUDBLog - 清除日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ClearUDBLogResponse clearUDBLog(ClearUDBLogRequest request) throws UCloudException { + request.setAction("ClearUDBLog"); + return (ClearUDBLogResponse) this.invoke(request, ClearUDBLogResponse.class); + } + + + + + + + /** + * CreateMongoDBReplicaSet - 创建DB副本集 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateMongoDBReplicaSetResponse createMongoDBReplicaSet(CreateMongoDBReplicaSetRequest request) throws UCloudException { + request.setAction("CreateMongoDBReplicaSet"); + return (CreateMongoDBReplicaSetResponse) this.invoke(request, CreateMongoDBReplicaSetResponse.class); + } + + + + + + + /** + * CreateUDBInstance - 创建数据库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUDBInstanceResponse createUDBInstance(CreateUDBInstanceRequest request) throws UCloudException { + request.setAction("CreateUDBInstance"); + return (CreateUDBInstanceResponse) this.invoke(request, CreateUDBInstanceResponse.class); + } + + + + + + + /** + * CreateUDBInstanceByRecovery - 将新建的db恢复到指定db某个指定时间点 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUDBInstanceByRecoveryResponse createUDBInstanceByRecovery(CreateUDBInstanceByRecoveryRequest request) throws UCloudException { + request.setAction("CreateUDBInstanceByRecovery"); + return (CreateUDBInstanceByRecoveryResponse) this.invoke(request, CreateUDBInstanceByRecoveryResponse.class); + } + + + + + + + /** + * CreateUDBParamGroup - 创建配置文件 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUDBParamGroupResponse createUDBParamGroup(CreateUDBParamGroupRequest request) throws UCloudException { + request.setAction("CreateUDBParamGroup"); + return (CreateUDBParamGroupResponse) this.invoke(request, CreateUDBParamGroupResponse.class); + } + + + + + + + /** + * CreateUDBReplicationInstance - 创建副本 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUDBReplicationInstanceResponse createUDBReplicationInstance(CreateUDBReplicationInstanceRequest request) throws UCloudException { + request.setAction("CreateUDBReplicationInstance"); + return (CreateUDBReplicationInstanceResponse) this.invoke(request, CreateUDBReplicationInstanceResponse.class); + } + + + + + + + /** + * CreateUDBRouteInstance - 创建mongos实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUDBRouteInstanceResponse createUDBRouteInstance(CreateUDBRouteInstanceRequest request) throws UCloudException { + request.setAction("CreateUDBRouteInstance"); + return (CreateUDBRouteInstanceResponse) this.invoke(request, CreateUDBRouteInstanceResponse.class); + } + + + + + + + /** + * CreateUDBSlave - 创建从库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUDBSlaveResponse createUDBSlave(CreateUDBSlaveRequest request) throws UCloudException { + request.setAction("CreateUDBSlave"); + return (CreateUDBSlaveResponse) this.invoke(request, CreateUDBSlaveResponse.class); + } + + + + + + + /** + * DeleteUDBInstance - 删除云数据库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUDBInstanceResponse deleteUDBInstance(DeleteUDBInstanceRequest request) throws UCloudException { + request.setAction("DeleteUDBInstance"); + return (DeleteUDBInstanceResponse) this.invoke(request, DeleteUDBInstanceResponse.class); + } + + + + + + + /** + * DeleteUDBLogPackage - 删除UDB日志包 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUDBLogPackageResponse deleteUDBLogPackage(DeleteUDBLogPackageRequest request) throws UCloudException { + request.setAction("DeleteUDBLogPackage"); + return (DeleteUDBLogPackageResponse) this.invoke(request, DeleteUDBLogPackageResponse.class); + } + + + + + + + /** + * DeleteUDBParamGroup - 删除配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUDBParamGroupResponse deleteUDBParamGroup(DeleteUDBParamGroupRequest request) throws UCloudException { + request.setAction("DeleteUDBParamGroup"); + return (DeleteUDBParamGroupResponse) this.invoke(request, DeleteUDBParamGroupResponse.class); + } + + + + + + + /** + * DescribeUDBBackup - 获取备份列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBBackupResponse describeUDBBackup(DescribeUDBBackupRequest request) throws UCloudException { + request.setAction("DescribeUDBBackup"); + return (DescribeUDBBackupResponse) this.invoke(request, DescribeUDBBackupResponse.class); + } + + + + + + + /** + * DescribeUDBBackupBlacklist - 获取备份黑名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBBackupBlacklistResponse describeUDBBackupBlacklist(DescribeUDBBackupBlacklistRequest request) throws UCloudException { + request.setAction("DescribeUDBBackupBlacklist"); + return (DescribeUDBBackupBlacklistResponse) this.invoke(request, DescribeUDBBackupBlacklistResponse.class); + } + + + + + + + /** + * DescribeUDBBinlogBackupURL - (新)获取UDB的日志备份地址 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBBinlogBackupURLResponse describeUDBBinlogBackupURL(DescribeUDBBinlogBackupURLRequest request) throws UCloudException { + request.setAction("DescribeUDBBinlogBackupURL"); + return (DescribeUDBBinlogBackupURLResponse) this.invoke(request, DescribeUDBBinlogBackupURLResponse.class); + } + + + + + + + /** + * DescribeUDBInstance - 获取云数据库信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBInstanceResponse describeUDBInstance(DescribeUDBInstanceRequest request) throws UCloudException { + request.setAction("DescribeUDBInstance"); + return (DescribeUDBInstanceResponse) this.invoke(request, DescribeUDBInstanceResponse.class); + } + + + + + + + /** + * DescribeUDBInstanceBackupState - 获取实例备份状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBInstanceBackupStateResponse describeUDBInstanceBackupState(DescribeUDBInstanceBackupStateRequest request) throws UCloudException { + request.setAction("DescribeUDBInstanceBackupState"); + return (DescribeUDBInstanceBackupStateResponse) this.invoke(request, DescribeUDBInstanceBackupStateResponse.class); + } + + + + + + + /** + * DescribeUDBInstanceBackupURL - 获取UDB备份下载地址 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBInstanceBackupURLResponse describeUDBInstanceBackupURL(DescribeUDBInstanceBackupURLRequest request) throws UCloudException { + request.setAction("DescribeUDBInstanceBackupURL"); + return (DescribeUDBInstanceBackupURLResponse) this.invoke(request, DescribeUDBInstanceBackupURLResponse.class); + } + + + + + + + /** + * DescribeUDBInstanceBinlog - 获取UDBbinlog列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBInstanceBinlogResponse describeUDBInstanceBinlog(DescribeUDBInstanceBinlogRequest request) throws UCloudException { + request.setAction("DescribeUDBInstanceBinlog"); + return (DescribeUDBInstanceBinlogResponse) this.invoke(request, DescribeUDBInstanceBinlogResponse.class); + } + + + + + + + /** + * DescribeUDBInstanceBinlogBackupState - 获取udb实例备份状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBInstanceBinlogBackupStateResponse describeUDBInstanceBinlogBackupState(DescribeUDBInstanceBinlogBackupStateRequest request) throws UCloudException { + request.setAction("DescribeUDBInstanceBinlogBackupState"); + return (DescribeUDBInstanceBinlogBackupStateResponse) this.invoke(request, DescribeUDBInstanceBinlogBackupStateResponse.class); + } + + + + + + + /** + * DescribeUDBInstanceLog - 获取UDB错误日志或慢查询日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBInstanceLogResponse describeUDBInstanceLog(DescribeUDBInstanceLogRequest request) throws UCloudException { + request.setAction("DescribeUDBInstanceLog"); + return (DescribeUDBInstanceLogResponse) this.invoke(request, DescribeUDBInstanceLogResponse.class); + } + + + + + + + /** + * DescribeUDBInstancePrice - 获取云数据库价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBInstancePriceResponse describeUDBInstancePrice(DescribeUDBInstancePriceRequest request) throws UCloudException { + request.setAction("DescribeUDBInstancePrice"); + return (DescribeUDBInstancePriceResponse) this.invoke(request, DescribeUDBInstancePriceResponse.class); + } + + + + + + + /** + * DescribeUDBInstanceState - 获取云数据库状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBInstanceStateResponse describeUDBInstanceState(DescribeUDBInstanceStateRequest request) throws UCloudException { + request.setAction("DescribeUDBInstanceState"); + return (DescribeUDBInstanceStateResponse) this.invoke(request, DescribeUDBInstanceStateResponse.class); + } + + + + + + + /** + * DescribeUDBInstanceUpgradePrice - 获取UDB实例升降级价格信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBInstanceUpgradePriceResponse describeUDBInstanceUpgradePrice(DescribeUDBInstanceUpgradePriceRequest request) throws UCloudException { + request.setAction("DescribeUDBInstanceUpgradePrice"); + return (DescribeUDBInstanceUpgradePriceResponse) this.invoke(request, DescribeUDBInstanceUpgradePriceResponse.class); + } + + + + + + + /** + * DescribeUDBLogBackupURL - 获取UDB的日志备份地址 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBLogBackupURLResponse describeUDBLogBackupURL(DescribeUDBLogBackupURLRequest request) throws UCloudException { + request.setAction("DescribeUDBLogBackupURL"); + return (DescribeUDBLogBackupURLResponse) this.invoke(request, DescribeUDBLogBackupURLResponse.class); + } + + + + + + + /** + * DescribeUDBLogPackage - 列表UDB实例日志备份信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBLogPackageResponse describeUDBLogPackage(DescribeUDBLogPackageRequest request) throws UCloudException { + request.setAction("DescribeUDBLogPackage"); + return (DescribeUDBLogPackageResponse) this.invoke(request, DescribeUDBLogPackageResponse.class); + } + + + + + + + /** + * DescribeUDBParamGroup - 获取参数信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBParamGroupResponse describeUDBParamGroup(DescribeUDBParamGroupRequest request) throws UCloudException { + request.setAction("DescribeUDBParamGroup"); + return (DescribeUDBParamGroupResponse) this.invoke(request, DescribeUDBParamGroupResponse.class); + } + + + + + + + /** + * DescribeUDBSplittingInfo - 描述读写分离功能 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBSplittingInfoResponse describeUDBSplittingInfo(DescribeUDBSplittingInfoRequest request) throws UCloudException { + request.setAction("DescribeUDBSplittingInfo"); + return (DescribeUDBSplittingInfoResponse) this.invoke(request, DescribeUDBSplittingInfoResponse.class); + } + + + + + + + /** + * DescribeUDBType - 获取云数据库支持类型 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDBTypeResponse describeUDBType(DescribeUDBTypeRequest request) throws UCloudException { + request.setAction("DescribeUDBType"); + return (DescribeUDBTypeResponse) this.invoke(request, DescribeUDBTypeResponse.class); + } + + + + + + + /** + * DisableUDBRWSplitting - 关闭读写分离功能 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DisableUDBRWSplittingResponse disableUDBRWSplitting(DisableUDBRWSplittingRequest request) throws UCloudException { + request.setAction("DisableUDBRWSplitting"); + return (DisableUDBRWSplittingResponse) this.invoke(request, DisableUDBRWSplittingResponse.class); + } + + + + + + + /** + * EditUDBBackupBlacklist - 编辑备份黑名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public EditUDBBackupBlacklistResponse editUDBBackupBlacklist(EditUDBBackupBlacklistRequest request) throws UCloudException { + request.setAction("EditUDBBackupBlacklist"); + return (EditUDBBackupBlacklistResponse) this.invoke(request, EditUDBBackupBlacklistResponse.class); + } + + + + + + + /** + * EnableUDBRWSplitting - 启用读写分离功能 + * + * @param request Request object + * @throws UCloudException Exception + */ + public EnableUDBRWSplittingResponse enableUDBRWSplitting(EnableUDBRWSplittingRequest request) throws UCloudException { + request.setAction("EnableUDBRWSplitting"); + return (EnableUDBRWSplittingResponse) this.invoke(request, EnableUDBRWSplittingResponse.class); + } + + + + + + + /** + * ExtractUDBParamGroup - 获取配置文件内容 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ExtractUDBParamGroupResponse extractUDBParamGroup(ExtractUDBParamGroupRequest request) throws UCloudException { + request.setAction("ExtractUDBParamGroup"); + return (ExtractUDBParamGroupResponse) this.invoke(request, ExtractUDBParamGroupResponse.class); + } + + + + + + + /** + * FetchUDBInstanceEarliestRecoverTime - 获取最早可回档时间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public FetchUDBInstanceEarliestRecoverTimeResponse fetchUDBInstanceEarliestRecoverTime(FetchUDBInstanceEarliestRecoverTimeRequest request) throws UCloudException { + request.setAction("FetchUDBInstanceEarliestRecoverTime"); + return (FetchUDBInstanceEarliestRecoverTimeResponse) this.invoke(request, FetchUDBInstanceEarliestRecoverTimeResponse.class); + } + + + + + + + /** + * GetUDBClientConnNum - 获取连接实例客户端Ip和连接数 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUDBClientConnNumResponse getUDBClientConnNum(GetUDBClientConnNumRequest request) throws UCloudException { + request.setAction("GetUDBClientConnNum"); + return (GetUDBClientConnNumResponse) this.invoke(request, GetUDBClientConnNumResponse.class); + } + + + + + + + /** + * ModifyUDBInstanceName - 修改云数据库名称 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDBInstanceNameResponse modifyUDBInstanceName(ModifyUDBInstanceNameRequest request) throws UCloudException { + request.setAction("ModifyUDBInstanceName"); + return (ModifyUDBInstanceNameResponse) this.invoke(request, ModifyUDBInstanceNameResponse.class); + } + + + + + + + /** + * ModifyUDBInstancePassword - 修改DB实例的管理员密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDBInstancePasswordResponse modifyUDBInstancePassword(ModifyUDBInstancePasswordRequest request) throws UCloudException { + request.setAction("ModifyUDBInstancePassword"); + return (ModifyUDBInstancePasswordResponse) this.invoke(request, ModifyUDBInstancePasswordResponse.class); + } + + + + + + + /** + * PromoteUDBInstanceToHA - 普通db升级为高可用 + * + * @param request Request object + * @throws UCloudException Exception + */ + public PromoteUDBInstanceToHAResponse promoteUDBInstanceToHA(PromoteUDBInstanceToHARequest request) throws UCloudException { + request.setAction("PromoteUDBInstanceToHA"); + return (PromoteUDBInstanceToHAResponse) this.invoke(request, PromoteUDBInstanceToHAResponse.class); + } + + + + + + + /** + * PromoteUDBSlave - 提升从库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public PromoteUDBSlaveResponse promoteUDBSlave(PromoteUDBSlaveRequest request) throws UCloudException { + request.setAction("PromoteUDBSlave"); + return (PromoteUDBSlaveResponse) this.invoke(request, PromoteUDBSlaveResponse.class); + } + + + + + + + /** + * ResizeUDBInstance - 修改UDB实例的配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResizeUDBInstanceResponse resizeUDBInstance(ResizeUDBInstanceRequest request) throws UCloudException { + request.setAction("ResizeUDBInstance"); + return (ResizeUDBInstanceResponse) this.invoke(request, ResizeUDBInstanceResponse.class); + } + + + + + + + /** + * RestartRWSplitting - 读写分离中间件重启 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestartRWSplittingResponse restartRWSplitting(RestartRWSplittingRequest request) throws UCloudException { + request.setAction("RestartRWSplitting"); + return (RestartRWSplittingResponse) this.invoke(request, RestartRWSplittingResponse.class); + } + + + + + + + /** + * RestartUDBInstance - 重启云数据库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestartUDBInstanceResponse restartUDBInstance(RestartUDBInstanceRequest request) throws UCloudException { + request.setAction("RestartUDBInstance"); + return (RestartUDBInstanceResponse) this.invoke(request, RestartUDBInstanceResponse.class); + } + + + + + + + /** + * SetUDBRWSplitting - 设置读写分离 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SetUDBRWSplittingResponse setUDBRWSplitting(SetUDBRWSplittingRequest request) throws UCloudException { + request.setAction("SetUDBRWSplitting"); + return (SetUDBRWSplittingResponse) this.invoke(request, SetUDBRWSplittingResponse.class); + } + + + + + + + /** + * StartUDBInstance - 启动云数据库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartUDBInstanceResponse startUDBInstance(StartUDBInstanceRequest request) throws UCloudException { + request.setAction("StartUDBInstance"); + return (StartUDBInstanceResponse) this.invoke(request, StartUDBInstanceResponse.class); + } + + + + + + + /** + * StopUDBInstance - 关闭云数据库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUDBInstanceResponse stopUDBInstance(StopUDBInstanceRequest request) throws UCloudException { + request.setAction("StopUDBInstance"); + return (StopUDBInstanceResponse) this.invoke(request, StopUDBInstanceResponse.class); + } + + + + + + + /** + * SwitchUDBHAToSentinel - UDB高可用实例升级为Sentinel版本(不带HAProxy)升级耗时5-10秒 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SwitchUDBHAToSentinelResponse switchUDBHAToSentinel(SwitchUDBHAToSentinelRequest request) throws UCloudException { + request.setAction("SwitchUDBHAToSentinel"); + return (SwitchUDBHAToSentinelResponse) this.invoke(request, SwitchUDBHAToSentinelResponse.class); + } + + + + + + + /** + * SwitchUDBInstanceToHA - 普通UDB切换为高可用 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SwitchUDBInstanceToHAResponse switchUDBInstanceToHA(SwitchUDBInstanceToHARequest request) throws UCloudException { + request.setAction("SwitchUDBInstanceToHA"); + return (SwitchUDBInstanceToHAResponse) this.invoke(request, SwitchUDBInstanceToHAResponse.class); + } + + + + + + + /** + * UpdateUDBInstanceBackupStrategy - 修改UDB自动备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUDBInstanceBackupStrategyResponse updateUDBInstanceBackupStrategy(UpdateUDBInstanceBackupStrategyRequest request) throws UCloudException { + request.setAction("UpdateUDBInstanceBackupStrategy"); + return (UpdateUDBInstanceBackupStrategyResponse) this.invoke(request, UpdateUDBInstanceBackupStrategyResponse.class); + } + + + + + + + /** + * UpdateUDBInstanceSlaveBackupSwitch - 开启或者关闭UDB从库备份 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUDBInstanceSlaveBackupSwitchResponse updateUDBInstanceSlaveBackupSwitch(UpdateUDBInstanceSlaveBackupSwitchRequest request) throws UCloudException { + request.setAction("UpdateUDBInstanceSlaveBackupSwitch"); + return (UpdateUDBInstanceSlaveBackupSwitchResponse) this.invoke(request, UpdateUDBInstanceSlaveBackupSwitchResponse.class); + } + + + + + + + /** + * UpdateUDBParamGroup - 更新配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUDBParamGroupResponse updateUDBParamGroup(UpdateUDBParamGroupRequest request) throws UCloudException { + request.setAction("UpdateUDBParamGroup"); + return (UpdateUDBParamGroupResponse) this.invoke(request, UpdateUDBParamGroupResponse.class); + } + + + + + + + /** + * UpgradeUDBInstanceToHA - 快杰普通db升级为高可用 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpgradeUDBInstanceToHAResponse upgradeUDBInstanceToHA(UpgradeUDBInstanceToHARequest request) throws UCloudException { + request.setAction("UpgradeUDBInstanceToHA"); + return (UpgradeUDBInstanceToHAResponse) this.invoke(request, UpgradeUDBInstanceToHAResponse.class); + } + + + + + + + /** + * UploadUDBParamGroup - 导入配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UploadUDBParamGroupResponse uploadUDBParamGroup(UploadUDBParamGroupRequest request) throws UCloudException { + request.setAction("UploadUDBParamGroup"); + return (UploadUDBParamGroupResponse) this.invoke(request, UploadUDBParamGroupResponse.class); + } } diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java index 1bcf10e4..5dbecf6a 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java @@ -1,203 +1,414 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.udb.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + +import cn.ucloud.udb.models.BackupUDBInstanceRequest; +import cn.ucloud.udb.models.BackupUDBInstanceResponse; + + + import cn.ucloud.udb.models.BackupUDBInstanceBinlogRequest; import cn.ucloud.udb.models.BackupUDBInstanceBinlogResponse; + + + import cn.ucloud.udb.models.BackupUDBInstanceErrorLogRequest; import cn.ucloud.udb.models.BackupUDBInstanceErrorLogResponse; -import cn.ucloud.udb.models.BackupUDBInstanceRequest; -import cn.ucloud.udb.models.BackupUDBInstanceResponse; + + + import cn.ucloud.udb.models.BackupUDBInstanceSlowLogRequest; import cn.ucloud.udb.models.BackupUDBInstanceSlowLogResponse; + + + import cn.ucloud.udb.models.ChangeUDBParamGroupRequest; import cn.ucloud.udb.models.ChangeUDBParamGroupResponse; + + + import cn.ucloud.udb.models.CheckRecoverUDBInstanceRequest; import cn.ucloud.udb.models.CheckRecoverUDBInstanceResponse; + + + import cn.ucloud.udb.models.CheckUDBInstanceToHAAllowanceRequest; import cn.ucloud.udb.models.CheckUDBInstanceToHAAllowanceResponse; + + + import cn.ucloud.udb.models.ClearUDBLogRequest; import cn.ucloud.udb.models.ClearUDBLogResponse; + + + import cn.ucloud.udb.models.CreateMongoDBReplicaSetRequest; import cn.ucloud.udb.models.CreateMongoDBReplicaSetResponse; -import cn.ucloud.udb.models.CreateUDBInstanceByRecoveryRequest; -import cn.ucloud.udb.models.CreateUDBInstanceByRecoveryResponse; + + + import cn.ucloud.udb.models.CreateUDBInstanceRequest; import cn.ucloud.udb.models.CreateUDBInstanceResponse; + + + +import cn.ucloud.udb.models.CreateUDBInstanceByRecoveryRequest; +import cn.ucloud.udb.models.CreateUDBInstanceByRecoveryResponse; + + + import cn.ucloud.udb.models.CreateUDBParamGroupRequest; import cn.ucloud.udb.models.CreateUDBParamGroupResponse; + + + import cn.ucloud.udb.models.CreateUDBReplicationInstanceRequest; import cn.ucloud.udb.models.CreateUDBReplicationInstanceResponse; + + + import cn.ucloud.udb.models.CreateUDBRouteInstanceRequest; import cn.ucloud.udb.models.CreateUDBRouteInstanceResponse; + + + import cn.ucloud.udb.models.CreateUDBSlaveRequest; import cn.ucloud.udb.models.CreateUDBSlaveResponse; + + + import cn.ucloud.udb.models.DeleteUDBInstanceRequest; import cn.ucloud.udb.models.DeleteUDBInstanceResponse; + + + import cn.ucloud.udb.models.DeleteUDBLogPackageRequest; import cn.ucloud.udb.models.DeleteUDBLogPackageResponse; + + + import cn.ucloud.udb.models.DeleteUDBParamGroupRequest; import cn.ucloud.udb.models.DeleteUDBParamGroupResponse; -import cn.ucloud.udb.models.DescribeUDBBackupBlacklistRequest; -import cn.ucloud.udb.models.DescribeUDBBackupBlacklistResponse; + + + import cn.ucloud.udb.models.DescribeUDBBackupRequest; import cn.ucloud.udb.models.DescribeUDBBackupResponse; + + + +import cn.ucloud.udb.models.DescribeUDBBackupBlacklistRequest; +import cn.ucloud.udb.models.DescribeUDBBackupBlacklistResponse; + + + import cn.ucloud.udb.models.DescribeUDBBinlogBackupURLRequest; import cn.ucloud.udb.models.DescribeUDBBinlogBackupURLResponse; + + + +import cn.ucloud.udb.models.DescribeUDBInstanceRequest; +import cn.ucloud.udb.models.DescribeUDBInstanceResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstanceBackupStateRequest; import cn.ucloud.udb.models.DescribeUDBInstanceBackupStateResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstanceBackupURLRequest; import cn.ucloud.udb.models.DescribeUDBInstanceBackupURLResponse; -import cn.ucloud.udb.models.DescribeUDBInstanceBinlogBackupStateRequest; -import cn.ucloud.udb.models.DescribeUDBInstanceBinlogBackupStateResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstanceBinlogRequest; import cn.ucloud.udb.models.DescribeUDBInstanceBinlogResponse; + + + +import cn.ucloud.udb.models.DescribeUDBInstanceBinlogBackupStateRequest; +import cn.ucloud.udb.models.DescribeUDBInstanceBinlogBackupStateResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstanceLogRequest; import cn.ucloud.udb.models.DescribeUDBInstanceLogResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstancePriceRequest; import cn.ucloud.udb.models.DescribeUDBInstancePriceResponse; -import cn.ucloud.udb.models.DescribeUDBInstanceRequest; -import cn.ucloud.udb.models.DescribeUDBInstanceResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstanceStateRequest; import cn.ucloud.udb.models.DescribeUDBInstanceStateResponse; + + + import cn.ucloud.udb.models.DescribeUDBInstanceUpgradePriceRequest; import cn.ucloud.udb.models.DescribeUDBInstanceUpgradePriceResponse; + + + import cn.ucloud.udb.models.DescribeUDBLogBackupURLRequest; import cn.ucloud.udb.models.DescribeUDBLogBackupURLResponse; + + + import cn.ucloud.udb.models.DescribeUDBLogPackageRequest; import cn.ucloud.udb.models.DescribeUDBLogPackageResponse; + + + import cn.ucloud.udb.models.DescribeUDBParamGroupRequest; import cn.ucloud.udb.models.DescribeUDBParamGroupResponse; + + + import cn.ucloud.udb.models.DescribeUDBSplittingInfoRequest; import cn.ucloud.udb.models.DescribeUDBSplittingInfoResponse; + + + import cn.ucloud.udb.models.DescribeUDBTypeRequest; import cn.ucloud.udb.models.DescribeUDBTypeResponse; + + + import cn.ucloud.udb.models.DisableUDBRWSplittingRequest; import cn.ucloud.udb.models.DisableUDBRWSplittingResponse; + + + import cn.ucloud.udb.models.EditUDBBackupBlacklistRequest; import cn.ucloud.udb.models.EditUDBBackupBlacklistResponse; + + + import cn.ucloud.udb.models.EnableUDBRWSplittingRequest; import cn.ucloud.udb.models.EnableUDBRWSplittingResponse; + + + import cn.ucloud.udb.models.ExtractUDBParamGroupRequest; import cn.ucloud.udb.models.ExtractUDBParamGroupResponse; + + + import cn.ucloud.udb.models.FetchUDBInstanceEarliestRecoverTimeRequest; import cn.ucloud.udb.models.FetchUDBInstanceEarliestRecoverTimeResponse; + + + import cn.ucloud.udb.models.GetUDBClientConnNumRequest; import cn.ucloud.udb.models.GetUDBClientConnNumResponse; + + + import cn.ucloud.udb.models.ModifyUDBInstanceNameRequest; import cn.ucloud.udb.models.ModifyUDBInstanceNameResponse; + + + import cn.ucloud.udb.models.ModifyUDBInstancePasswordRequest; import cn.ucloud.udb.models.ModifyUDBInstancePasswordResponse; + + + import cn.ucloud.udb.models.PromoteUDBInstanceToHARequest; import cn.ucloud.udb.models.PromoteUDBInstanceToHAResponse; + + + import cn.ucloud.udb.models.PromoteUDBSlaveRequest; import cn.ucloud.udb.models.PromoteUDBSlaveResponse; + + + import cn.ucloud.udb.models.ResizeUDBInstanceRequest; import cn.ucloud.udb.models.ResizeUDBInstanceResponse; + + + import cn.ucloud.udb.models.RestartRWSplittingRequest; import cn.ucloud.udb.models.RestartRWSplittingResponse; + + + import cn.ucloud.udb.models.RestartUDBInstanceRequest; import cn.ucloud.udb.models.RestartUDBInstanceResponse; + + + import cn.ucloud.udb.models.SetUDBRWSplittingRequest; import cn.ucloud.udb.models.SetUDBRWSplittingResponse; + + + import cn.ucloud.udb.models.StartUDBInstanceRequest; import cn.ucloud.udb.models.StartUDBInstanceResponse; + + + import cn.ucloud.udb.models.StopUDBInstanceRequest; import cn.ucloud.udb.models.StopUDBInstanceResponse; + + + import cn.ucloud.udb.models.SwitchUDBHAToSentinelRequest; import cn.ucloud.udb.models.SwitchUDBHAToSentinelResponse; + + + import cn.ucloud.udb.models.SwitchUDBInstanceToHARequest; import cn.ucloud.udb.models.SwitchUDBInstanceToHAResponse; + + + import cn.ucloud.udb.models.UpdateUDBInstanceBackupStrategyRequest; import cn.ucloud.udb.models.UpdateUDBInstanceBackupStrategyResponse; + + + import cn.ucloud.udb.models.UpdateUDBInstanceSlaveBackupSwitchRequest; import cn.ucloud.udb.models.UpdateUDBInstanceSlaveBackupSwitchResponse; + + + import cn.ucloud.udb.models.UpdateUDBParamGroupRequest; import cn.ucloud.udb.models.UpdateUDBParamGroupResponse; + + + import cn.ucloud.udb.models.UpgradeUDBInstanceToHARequest; import cn.ucloud.udb.models.UpgradeUDBInstanceToHAResponse; + + + import cn.ucloud.udb.models.UploadUDBParamGroupRequest; import cn.ucloud.udb.models.UploadUDBParamGroupResponse; -/** This client is used to call actions of **UDB** service */ +/** + * This client is used to call actions of **UDB** service + */ public interface UDBClientInterface extends Client { - + + + + + + /** * BackupUDBInstance - 备份云数据库 * * @param request Request object * @throws UCloudException Exception */ - public BackupUDBInstanceResponse backupUDBInstance(BackupUDBInstanceRequest request) - throws UCloudException; - + public BackupUDBInstanceResponse backupUDBInstance(BackupUDBInstanceRequest request) throws UCloudException; + + + + + + /** * BackupUDBInstanceBinlog - 备份UDB指定时间段的binlog列表 * * @param request Request object * @throws UCloudException Exception */ - public BackupUDBInstanceBinlogResponse backupUDBInstanceBinlog( - BackupUDBInstanceBinlogRequest request) throws UCloudException; - + public BackupUDBInstanceBinlogResponse backupUDBInstanceBinlog(BackupUDBInstanceBinlogRequest request) throws UCloudException; + + + + + + /** * BackupUDBInstanceErrorLog - 备份UDB指定时间段的errorlog * * @param request Request object * @throws UCloudException Exception */ - public BackupUDBInstanceErrorLogResponse backupUDBInstanceErrorLog( - BackupUDBInstanceErrorLogRequest request) throws UCloudException; - + public BackupUDBInstanceErrorLogResponse backupUDBInstanceErrorLog(BackupUDBInstanceErrorLogRequest request) throws UCloudException; + + + + + + /** * BackupUDBInstanceSlowLog - 备份UDB指定时间段的slowlog分析结果 * * @param request Request object * @throws UCloudException Exception */ - public BackupUDBInstanceSlowLogResponse backupUDBInstanceSlowLog( - BackupUDBInstanceSlowLogRequest request) throws UCloudException; - + public BackupUDBInstanceSlowLogResponse backupUDBInstanceSlowLog(BackupUDBInstanceSlowLogRequest request) throws UCloudException; + + + + + + /** * ChangeUDBParamGroup - 修改配置文件 * * @param request Request object * @throws UCloudException Exception */ - public ChangeUDBParamGroupResponse changeUDBParamGroup(ChangeUDBParamGroupRequest request) - throws UCloudException; - + public ChangeUDBParamGroupResponse changeUDBParamGroup(ChangeUDBParamGroupRequest request) throws UCloudException; + + + + + + /** * CheckRecoverUDBInstance - 核查db是否可以使用回档功能 * * @param request Request object * @throws UCloudException Exception */ - public CheckRecoverUDBInstanceResponse checkRecoverUDBInstance( - CheckRecoverUDBInstanceRequest request) throws UCloudException; - + public CheckRecoverUDBInstanceResponse checkRecoverUDBInstance(CheckRecoverUDBInstanceRequest request) throws UCloudException; + + + + + + /** * CheckUDBInstanceToHAAllowance - 核查db是否可以升级为高可用 * * @param request Request object * @throws UCloudException Exception */ - public CheckUDBInstanceToHAAllowanceResponse checkUDBInstanceToHAAllowance( - CheckUDBInstanceToHAAllowanceRequest request) throws UCloudException; - + public CheckUDBInstanceToHAAllowanceResponse checkUDBInstanceToHAAllowance(CheckUDBInstanceToHAAllowanceRequest request) throws UCloudException; + + + + + + /** * ClearUDBLog - 清除日志 * @@ -205,454 +416,654 @@ public CheckUDBInstanceToHAAllowanceResponse checkUDBInstanceToHAAllowance( * @throws UCloudException Exception */ public ClearUDBLogResponse clearUDBLog(ClearUDBLogRequest request) throws UCloudException; - + + + + + + /** * CreateMongoDBReplicaSet - 创建DB副本集 * * @param request Request object * @throws UCloudException Exception */ - public CreateMongoDBReplicaSetResponse createMongoDBReplicaSet( - CreateMongoDBReplicaSetRequest request) throws UCloudException; - + public CreateMongoDBReplicaSetResponse createMongoDBReplicaSet(CreateMongoDBReplicaSetRequest request) throws UCloudException; + + + + + + /** * CreateUDBInstance - 创建数据库 * * @param request Request object * @throws UCloudException Exception */ - public CreateUDBInstanceResponse createUDBInstance(CreateUDBInstanceRequest request) - throws UCloudException; - + public CreateUDBInstanceResponse createUDBInstance(CreateUDBInstanceRequest request) throws UCloudException; + + + + + + /** * CreateUDBInstanceByRecovery - 将新建的db恢复到指定db某个指定时间点 * * @param request Request object * @throws UCloudException Exception */ - public CreateUDBInstanceByRecoveryResponse createUDBInstanceByRecovery( - CreateUDBInstanceByRecoveryRequest request) throws UCloudException; - + public CreateUDBInstanceByRecoveryResponse createUDBInstanceByRecovery(CreateUDBInstanceByRecoveryRequest request) throws UCloudException; + + + + + + /** * CreateUDBParamGroup - 创建配置文件 * * @param request Request object * @throws UCloudException Exception */ - public CreateUDBParamGroupResponse createUDBParamGroup(CreateUDBParamGroupRequest request) - throws UCloudException; - + public CreateUDBParamGroupResponse createUDBParamGroup(CreateUDBParamGroupRequest request) throws UCloudException; + + + + + + /** * CreateUDBReplicationInstance - 创建副本 * * @param request Request object * @throws UCloudException Exception */ - public CreateUDBReplicationInstanceResponse createUDBReplicationInstance( - CreateUDBReplicationInstanceRequest request) throws UCloudException; - + public CreateUDBReplicationInstanceResponse createUDBReplicationInstance(CreateUDBReplicationInstanceRequest request) throws UCloudException; + + + + + + /** * CreateUDBRouteInstance - 创建mongos实例 * * @param request Request object * @throws UCloudException Exception */ - public CreateUDBRouteInstanceResponse createUDBRouteInstance( - CreateUDBRouteInstanceRequest request) throws UCloudException; - + public CreateUDBRouteInstanceResponse createUDBRouteInstance(CreateUDBRouteInstanceRequest request) throws UCloudException; + + + + + + /** * CreateUDBSlave - 创建从库 * * @param request Request object * @throws UCloudException Exception */ - public CreateUDBSlaveResponse createUDBSlave(CreateUDBSlaveRequest request) - throws UCloudException; - + public CreateUDBSlaveResponse createUDBSlave(CreateUDBSlaveRequest request) throws UCloudException; + + + + + + /** * DeleteUDBInstance - 删除云数据库 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUDBInstanceResponse deleteUDBInstance(DeleteUDBInstanceRequest request) - throws UCloudException; - + public DeleteUDBInstanceResponse deleteUDBInstance(DeleteUDBInstanceRequest request) throws UCloudException; + + + + + + /** * DeleteUDBLogPackage - 删除UDB日志包 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUDBLogPackageResponse deleteUDBLogPackage(DeleteUDBLogPackageRequest request) - throws UCloudException; - + public DeleteUDBLogPackageResponse deleteUDBLogPackage(DeleteUDBLogPackageRequest request) throws UCloudException; + + + + + + /** * DeleteUDBParamGroup - 删除配置 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUDBParamGroupResponse deleteUDBParamGroup(DeleteUDBParamGroupRequest request) - throws UCloudException; - + public DeleteUDBParamGroupResponse deleteUDBParamGroup(DeleteUDBParamGroupRequest request) throws UCloudException; + + + + + + /** * DescribeUDBBackup - 获取备份列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBBackupResponse describeUDBBackup(DescribeUDBBackupRequest request) - throws UCloudException; - + public DescribeUDBBackupResponse describeUDBBackup(DescribeUDBBackupRequest request) throws UCloudException; + + + + + + /** * DescribeUDBBackupBlacklist - 获取备份黑名单 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBBackupBlacklistResponse describeUDBBackupBlacklist( - DescribeUDBBackupBlacklistRequest request) throws UCloudException; - + public DescribeUDBBackupBlacklistResponse describeUDBBackupBlacklist(DescribeUDBBackupBlacklistRequest request) throws UCloudException; + + + + + + /** * DescribeUDBBinlogBackupURL - (新)获取UDB的日志备份地址 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBBinlogBackupURLResponse describeUDBBinlogBackupURL( - DescribeUDBBinlogBackupURLRequest request) throws UCloudException; - + public DescribeUDBBinlogBackupURLResponse describeUDBBinlogBackupURL(DescribeUDBBinlogBackupURLRequest request) throws UCloudException; + + + + + + /** * DescribeUDBInstance - 获取云数据库信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBInstanceResponse describeUDBInstance(DescribeUDBInstanceRequest request) - throws UCloudException; - + public DescribeUDBInstanceResponse describeUDBInstance(DescribeUDBInstanceRequest request) throws UCloudException; + + + + + + /** * DescribeUDBInstanceBackupState - 获取实例备份状态 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBInstanceBackupStateResponse describeUDBInstanceBackupState( - DescribeUDBInstanceBackupStateRequest request) throws UCloudException; - + public DescribeUDBInstanceBackupStateResponse describeUDBInstanceBackupState(DescribeUDBInstanceBackupStateRequest request) throws UCloudException; + + + + + + /** * DescribeUDBInstanceBackupURL - 获取UDB备份下载地址 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBInstanceBackupURLResponse describeUDBInstanceBackupURL( - DescribeUDBInstanceBackupURLRequest request) throws UCloudException; - + public DescribeUDBInstanceBackupURLResponse describeUDBInstanceBackupURL(DescribeUDBInstanceBackupURLRequest request) throws UCloudException; + + + + + + /** * DescribeUDBInstanceBinlog - 获取UDBbinlog列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBInstanceBinlogResponse describeUDBInstanceBinlog( - DescribeUDBInstanceBinlogRequest request) throws UCloudException; - + public DescribeUDBInstanceBinlogResponse describeUDBInstanceBinlog(DescribeUDBInstanceBinlogRequest request) throws UCloudException; + + + + + + /** * DescribeUDBInstanceBinlogBackupState - 获取udb实例备份状态 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBInstanceBinlogBackupStateResponse describeUDBInstanceBinlogBackupState( - DescribeUDBInstanceBinlogBackupStateRequest request) throws UCloudException; - + public DescribeUDBInstanceBinlogBackupStateResponse describeUDBInstanceBinlogBackupState(DescribeUDBInstanceBinlogBackupStateRequest request) throws UCloudException; + + + + + + /** * DescribeUDBInstanceLog - 获取UDB错误日志或慢查询日志 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBInstanceLogResponse describeUDBInstanceLog( - DescribeUDBInstanceLogRequest request) throws UCloudException; - + public DescribeUDBInstanceLogResponse describeUDBInstanceLog(DescribeUDBInstanceLogRequest request) throws UCloudException; + + + + + + /** * DescribeUDBInstancePrice - 获取云数据库价格 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBInstancePriceResponse describeUDBInstancePrice( - DescribeUDBInstancePriceRequest request) throws UCloudException; - + public DescribeUDBInstancePriceResponse describeUDBInstancePrice(DescribeUDBInstancePriceRequest request) throws UCloudException; + + + + + + /** * DescribeUDBInstanceState - 获取云数据库状态 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBInstanceStateResponse describeUDBInstanceState( - DescribeUDBInstanceStateRequest request) throws UCloudException; - + public DescribeUDBInstanceStateResponse describeUDBInstanceState(DescribeUDBInstanceStateRequest request) throws UCloudException; + + + + + + /** * DescribeUDBInstanceUpgradePrice - 获取UDB实例升降级价格信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBInstanceUpgradePriceResponse describeUDBInstanceUpgradePrice( - DescribeUDBInstanceUpgradePriceRequest request) throws UCloudException; - + public DescribeUDBInstanceUpgradePriceResponse describeUDBInstanceUpgradePrice(DescribeUDBInstanceUpgradePriceRequest request) throws UCloudException; + + + + + + /** * DescribeUDBLogBackupURL - 获取UDB的日志备份地址 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBLogBackupURLResponse describeUDBLogBackupURL( - DescribeUDBLogBackupURLRequest request) throws UCloudException; - + public DescribeUDBLogBackupURLResponse describeUDBLogBackupURL(DescribeUDBLogBackupURLRequest request) throws UCloudException; + + + + + + /** * DescribeUDBLogPackage - 列表UDB实例日志备份信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBLogPackageResponse describeUDBLogPackage(DescribeUDBLogPackageRequest request) - throws UCloudException; - + public DescribeUDBLogPackageResponse describeUDBLogPackage(DescribeUDBLogPackageRequest request) throws UCloudException; + + + + + + /** * DescribeUDBParamGroup - 获取参数信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBParamGroupResponse describeUDBParamGroup(DescribeUDBParamGroupRequest request) - throws UCloudException; - + public DescribeUDBParamGroupResponse describeUDBParamGroup(DescribeUDBParamGroupRequest request) throws UCloudException; + + + + + + /** * DescribeUDBSplittingInfo - 描述读写分离功能 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBSplittingInfoResponse describeUDBSplittingInfo( - DescribeUDBSplittingInfoRequest request) throws UCloudException; - + public DescribeUDBSplittingInfoResponse describeUDBSplittingInfo(DescribeUDBSplittingInfoRequest request) throws UCloudException; + + + + + + /** * DescribeUDBType - 获取云数据库支持类型 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDBTypeResponse describeUDBType(DescribeUDBTypeRequest request) - throws UCloudException; - + public DescribeUDBTypeResponse describeUDBType(DescribeUDBTypeRequest request) throws UCloudException; + + + + + + /** * DisableUDBRWSplitting - 关闭读写分离功能 * * @param request Request object * @throws UCloudException Exception */ - public DisableUDBRWSplittingResponse disableUDBRWSplitting(DisableUDBRWSplittingRequest request) - throws UCloudException; - + public DisableUDBRWSplittingResponse disableUDBRWSplitting(DisableUDBRWSplittingRequest request) throws UCloudException; + + + + + + /** * EditUDBBackupBlacklist - 编辑备份黑名单 * * @param request Request object * @throws UCloudException Exception */ - public EditUDBBackupBlacklistResponse editUDBBackupBlacklist( - EditUDBBackupBlacklistRequest request) throws UCloudException; - + public EditUDBBackupBlacklistResponse editUDBBackupBlacklist(EditUDBBackupBlacklistRequest request) throws UCloudException; + + + + + + /** * EnableUDBRWSplitting - 启用读写分离功能 * * @param request Request object * @throws UCloudException Exception */ - public EnableUDBRWSplittingResponse enableUDBRWSplitting(EnableUDBRWSplittingRequest request) - throws UCloudException; - + public EnableUDBRWSplittingResponse enableUDBRWSplitting(EnableUDBRWSplittingRequest request) throws UCloudException; + + + + + + /** * ExtractUDBParamGroup - 获取配置文件内容 * * @param request Request object * @throws UCloudException Exception */ - public ExtractUDBParamGroupResponse extractUDBParamGroup(ExtractUDBParamGroupRequest request) - throws UCloudException; - + public ExtractUDBParamGroupResponse extractUDBParamGroup(ExtractUDBParamGroupRequest request) throws UCloudException; + + + + + + /** * FetchUDBInstanceEarliestRecoverTime - 获取最早可回档时间 * * @param request Request object * @throws UCloudException Exception */ - public FetchUDBInstanceEarliestRecoverTimeResponse fetchUDBInstanceEarliestRecoverTime( - FetchUDBInstanceEarliestRecoverTimeRequest request) throws UCloudException; - + public FetchUDBInstanceEarliestRecoverTimeResponse fetchUDBInstanceEarliestRecoverTime(FetchUDBInstanceEarliestRecoverTimeRequest request) throws UCloudException; + + + + + + /** * GetUDBClientConnNum - 获取连接实例客户端Ip和连接数 * * @param request Request object * @throws UCloudException Exception */ - public GetUDBClientConnNumResponse getUDBClientConnNum(GetUDBClientConnNumRequest request) - throws UCloudException; - + public GetUDBClientConnNumResponse getUDBClientConnNum(GetUDBClientConnNumRequest request) throws UCloudException; + + + + + + /** * ModifyUDBInstanceName - 修改云数据库名称 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUDBInstanceNameResponse modifyUDBInstanceName(ModifyUDBInstanceNameRequest request) - throws UCloudException; - + public ModifyUDBInstanceNameResponse modifyUDBInstanceName(ModifyUDBInstanceNameRequest request) throws UCloudException; + + + + + + /** * ModifyUDBInstancePassword - 修改DB实例的管理员密码 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUDBInstancePasswordResponse modifyUDBInstancePassword( - ModifyUDBInstancePasswordRequest request) throws UCloudException; - + public ModifyUDBInstancePasswordResponse modifyUDBInstancePassword(ModifyUDBInstancePasswordRequest request) throws UCloudException; + + + + + + /** * PromoteUDBInstanceToHA - 普通db升级为高可用 * * @param request Request object * @throws UCloudException Exception */ - public PromoteUDBInstanceToHAResponse promoteUDBInstanceToHA( - PromoteUDBInstanceToHARequest request) throws UCloudException; - + public PromoteUDBInstanceToHAResponse promoteUDBInstanceToHA(PromoteUDBInstanceToHARequest request) throws UCloudException; + + + + + + /** * PromoteUDBSlave - 提升从库 * * @param request Request object * @throws UCloudException Exception */ - public PromoteUDBSlaveResponse promoteUDBSlave(PromoteUDBSlaveRequest request) - throws UCloudException; - + public PromoteUDBSlaveResponse promoteUDBSlave(PromoteUDBSlaveRequest request) throws UCloudException; + + + + + + /** * ResizeUDBInstance - 修改UDB实例的配置 * * @param request Request object * @throws UCloudException Exception */ - public ResizeUDBInstanceResponse resizeUDBInstance(ResizeUDBInstanceRequest request) - throws UCloudException; - + public ResizeUDBInstanceResponse resizeUDBInstance(ResizeUDBInstanceRequest request) throws UCloudException; + + + + + + /** * RestartRWSplitting - 读写分离中间件重启 * * @param request Request object * @throws UCloudException Exception */ - public RestartRWSplittingResponse restartRWSplitting(RestartRWSplittingRequest request) - throws UCloudException; - + public RestartRWSplittingResponse restartRWSplitting(RestartRWSplittingRequest request) throws UCloudException; + + + + + + /** * RestartUDBInstance - 重启云数据库 * * @param request Request object * @throws UCloudException Exception */ - public RestartUDBInstanceResponse restartUDBInstance(RestartUDBInstanceRequest request) - throws UCloudException; - + public RestartUDBInstanceResponse restartUDBInstance(RestartUDBInstanceRequest request) throws UCloudException; + + + + + + /** * SetUDBRWSplitting - 设置读写分离 * * @param request Request object * @throws UCloudException Exception */ - public SetUDBRWSplittingResponse setUDBRWSplitting(SetUDBRWSplittingRequest request) - throws UCloudException; - + public SetUDBRWSplittingResponse setUDBRWSplitting(SetUDBRWSplittingRequest request) throws UCloudException; + + + + + + /** * StartUDBInstance - 启动云数据库 * * @param request Request object * @throws UCloudException Exception */ - public StartUDBInstanceResponse startUDBInstance(StartUDBInstanceRequest request) - throws UCloudException; - + public StartUDBInstanceResponse startUDBInstance(StartUDBInstanceRequest request) throws UCloudException; + + + + + + /** * StopUDBInstance - 关闭云数据库 * * @param request Request object * @throws UCloudException Exception */ - public StopUDBInstanceResponse stopUDBInstance(StopUDBInstanceRequest request) - throws UCloudException; - + public StopUDBInstanceResponse stopUDBInstance(StopUDBInstanceRequest request) throws UCloudException; + + + + + + /** * SwitchUDBHAToSentinel - UDB高可用实例升级为Sentinel版本(不带HAProxy)升级耗时5-10秒 * * @param request Request object * @throws UCloudException Exception */ - public SwitchUDBHAToSentinelResponse switchUDBHAToSentinel(SwitchUDBHAToSentinelRequest request) - throws UCloudException; - + public SwitchUDBHAToSentinelResponse switchUDBHAToSentinel(SwitchUDBHAToSentinelRequest request) throws UCloudException; + + + + + + /** * SwitchUDBInstanceToHA - 普通UDB切换为高可用 * * @param request Request object * @throws UCloudException Exception */ - public SwitchUDBInstanceToHAResponse switchUDBInstanceToHA(SwitchUDBInstanceToHARequest request) - throws UCloudException; - + public SwitchUDBInstanceToHAResponse switchUDBInstanceToHA(SwitchUDBInstanceToHARequest request) throws UCloudException; + + + + + + /** * UpdateUDBInstanceBackupStrategy - 修改UDB自动备份策略 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUDBInstanceBackupStrategyResponse updateUDBInstanceBackupStrategy( - UpdateUDBInstanceBackupStrategyRequest request) throws UCloudException; - + public UpdateUDBInstanceBackupStrategyResponse updateUDBInstanceBackupStrategy(UpdateUDBInstanceBackupStrategyRequest request) throws UCloudException; + + + + + + /** * UpdateUDBInstanceSlaveBackupSwitch - 开启或者关闭UDB从库备份 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUDBInstanceSlaveBackupSwitchResponse updateUDBInstanceSlaveBackupSwitch( - UpdateUDBInstanceSlaveBackupSwitchRequest request) throws UCloudException; - + public UpdateUDBInstanceSlaveBackupSwitchResponse updateUDBInstanceSlaveBackupSwitch(UpdateUDBInstanceSlaveBackupSwitchRequest request) throws UCloudException; + + + + + + /** * UpdateUDBParamGroup - 更新配置 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUDBParamGroupResponse updateUDBParamGroup(UpdateUDBParamGroupRequest request) - throws UCloudException; - + public UpdateUDBParamGroupResponse updateUDBParamGroup(UpdateUDBParamGroupRequest request) throws UCloudException; + + + + + + /** * UpgradeUDBInstanceToHA - 快杰普通db升级为高可用 * * @param request Request object * @throws UCloudException Exception */ - public UpgradeUDBInstanceToHAResponse upgradeUDBInstanceToHA( - UpgradeUDBInstanceToHARequest request) throws UCloudException; - + public UpgradeUDBInstanceToHAResponse upgradeUDBInstanceToHA(UpgradeUDBInstanceToHARequest request) throws UCloudException; + + + + + + /** * UploadUDBParamGroup - 导入配置 * * @param request Request object * @throws UCloudException Exception */ - public UploadUDBParamGroupResponse uploadUDBParamGroup(UploadUDBParamGroupRequest request) - throws UCloudException; + public UploadUDBParamGroupResponse uploadUDBParamGroup(UploadUDBParamGroupRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceBinlogRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceBinlogRequest.java index 971be40d..fc434952 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceBinlogRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceBinlogRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class BackupUDBInstanceBinlogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * DB实例Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 需要备份文件,可通过DescribeUDBInstanceBinlog获得 如果要传入多个文件名,以空格键分割,用单引号包含. */ + + + + /** + * 需要备份文件,可通过DescribeUDBInstanceBinlog获得 如果要传入多个文件名,以空格键分割,用单引号包含. + */ @NotEmpty @UCloudParam("BackupFile") private String backupFile; - - /** DB备份文件名称 */ + + + + /** + * DB备份文件名称 + */ @UCloudParam("BackupName") private String backupName; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -62,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -70,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -78,7 +108,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public String getBackupFile() { return backupFile; } @@ -86,7 +116,7 @@ public String getBackupFile() { public void setBackupFile(String backupFile) { this.backupFile = backupFile; } - + public String getBackupName() { return backupName; } @@ -94,4 +124,14 @@ public String getBackupName() { public void setBackupName(String backupName) { this.backupName = backupName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceBinlogResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceBinlogResponse.java index 78eba2c6..d7ee4a30 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceBinlogResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceBinlogResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class BackupUDBInstanceBinlogResponse extends Response {} +public class BackupUDBInstanceBinlogResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceErrorLogRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceErrorLogRequest.java index 6774e8f6..1d146da4 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceErrorLogRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceErrorLogRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class BackupUDBInstanceErrorLogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * DB实例Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 备份名称 */ + + + + /** + * 备份名称 + */ @NotEmpty @UCloudParam("BackupName") private String backupName; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -74,7 +100,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public String getBackupName() { return backupName; } @@ -82,4 +108,14 @@ public String getBackupName() { public void setBackupName(String backupName) { this.backupName = backupName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceErrorLogResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceErrorLogResponse.java index ec9e99bb..3aa8e5c5 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceErrorLogResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceErrorLogResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class BackupUDBInstanceErrorLogResponse extends Response {} +public class BackupUDBInstanceErrorLogResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceRequest.java index 6fd7183c..2a9ea208 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceRequest.java @@ -1,64 +1,106 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class BackupUDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * DB实例Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 备份名称 */ + + + + /** + * 备份名称 + */ @NotEmpty @UCloudParam("BackupName") private String backupName; - - /** 是否使用黑名单备份,默认false */ + + + + /** + * 是否使用黑名单备份,默认false + */ @UCloudParam("UseBlacklist") private Boolean useBlacklist; - - /** 使用的备份方式。(快照备份即物理备份。注意只有SSD版本的mysql实例支持设置为snapshot) */ + + + + /** + * 使用的备份方式。(快照备份即物理备份。注意只有SSD版本的mysql实例支持设置为snapshot) + */ @UCloudParam("BackupMethod") private String backupMethod; - - /** 备份黑名单列表,以 ; 分隔。注意:只有逻辑备份下备份黑名单才生效,快照备份备份黑名单下无效 */ + + + + /** + * 备份黑名单列表,以 ; 分隔。注意:只有逻辑备份下备份黑名单才生效,快照备份备份黑名单下无效 + */ @UCloudParam("Blacklist") private String blacklist; - - /** true表示逻辑备份时是使用 --force 参数,false表示不使用 --force 参数。物理备份此参数无效。 */ + + + + /** + * true表示逻辑备份时是使用 --force 参数,false表示不使用 --force 参数。物理备份此参数无效。 + */ @UCloudParam("ForceBackup") private Boolean forceBackup; - + + public String getRegion() { return region; } @@ -66,7 +108,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -74,7 +116,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -82,7 +124,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -90,7 +132,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public String getBackupName() { return backupName; } @@ -98,7 +140,7 @@ public String getBackupName() { public void setBackupName(String backupName) { this.backupName = backupName; } - + public Boolean getUseBlacklist() { return useBlacklist; } @@ -106,7 +148,7 @@ public Boolean getUseBlacklist() { public void setUseBlacklist(Boolean useBlacklist) { this.useBlacklist = useBlacklist; } - + public String getBackupMethod() { return backupMethod; } @@ -114,7 +156,7 @@ public String getBackupMethod() { public void setBackupMethod(String backupMethod) { this.backupMethod = backupMethod; } - + public String getBlacklist() { return blacklist; } @@ -122,7 +164,7 @@ public String getBlacklist() { public void setBlacklist(String blacklist) { this.blacklist = blacklist; } - + public Boolean getForceBackup() { return forceBackup; } @@ -130,4 +172,14 @@ public Boolean getForceBackup() { public void setForceBackup(Boolean forceBackup) { this.forceBackup = forceBackup; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceResponse.java index 7b6f5d4c..a81d85dd 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class BackupUDBInstanceResponse extends Response {} +public class BackupUDBInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceSlowLogRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceSlowLogRequest.java index b8e58568..04ed9355 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceSlowLogRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceSlowLogRequest.java @@ -1,54 +1,84 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class BackupUDBInstanceSlowLogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * DB实例Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 过滤条件:起始时间(时间戳) */ + + + + /** + * 过滤条件:起始时间(时间戳) + */ @NotEmpty @UCloudParam("BeginTime") private Integer beginTime; - - /** 过滤条件:结束时间(时间戳) */ + + + + /** + * 过滤条件:结束时间(时间戳) + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 备份文件名称 */ + + + + /** + * 备份文件名称 + */ @NotEmpty @UCloudParam("BackupName") private String backupName; - + + public String getRegion() { return region; } @@ -56,7 +86,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -64,7 +94,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -72,7 +102,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Integer getBeginTime() { return beginTime; } @@ -80,7 +110,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -88,7 +118,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public String getBackupName() { return backupName; } @@ -96,4 +126,14 @@ public String getBackupName() { public void setBackupName(String backupName) { this.backupName = backupName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceSlowLogResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceSlowLogResponse.java index 8a3a1af7..22bcbbb3 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceSlowLogResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceSlowLogResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class BackupUDBInstanceSlowLogResponse extends Response {} +public class BackupUDBInstanceSlowLogResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ChangeUDBParamGroupRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ChangeUDBParamGroupRequest.java index 6daa8726..e943dbc9 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ChangeUDBParamGroupRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ChangeUDBParamGroupRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ChangeUDBParamGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id */ + + + + /** + * DB实例Id + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 参数组Id */ + + + + /** + * 参数组Id + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -74,7 +100,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public String getGroupId() { return groupId; } @@ -82,4 +108,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ChangeUDBParamGroupResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ChangeUDBParamGroupResponse.java index 3a386ca1..57d1bfaf 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ChangeUDBParamGroupResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ChangeUDBParamGroupResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ChangeUDBParamGroupResponse extends Response {} +public class ChangeUDBParamGroupResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckRecoverUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckRecoverUDBInstanceRequest.java index d4196c6a..1442bd5c 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckRecoverUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckRecoverUDBInstanceRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CheckRecoverUDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 源实例的Id */ + + + + /** + * 源实例的Id + */ @NotEmpty @UCloudParam("SrcDBId") private String srcDBId; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -53,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -61,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSrcDBId() { return srcDBId; } @@ -69,4 +91,14 @@ public String getSrcDBId() { public void setSrcDBId(String srcDBId) { this.srcDBId = srcDBId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckRecoverUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckRecoverUDBInstanceResponse.java index 81433e0f..9d4ced58 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckRecoverUDBInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckRecoverUDBInstanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CheckRecoverUDBInstanceResponse extends Response { - /** 核查成功返回值为可以回档到的最近时刻,核查失败不返回 */ + + + /** + * 核查成功返回值为可以回档到的最近时刻,核查失败不返回 + */ @SerializedName("LastestTime") private Integer lastestTime; - + + public Integer getLastestTime() { return lastestTime; } @@ -31,4 +41,14 @@ public Integer getLastestTime() { public void setLastestTime(Integer lastestTime) { this.lastestTime = lastestTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckUDBInstanceToHAAllowanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckUDBInstanceToHAAllowanceRequest.java index 69b25b24..4acfe475 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckUDBInstanceToHAAllowanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckUDBInstanceToHAAllowanceRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CheckUDBInstanceToHAAllowanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * 实例的Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -57,4 +75,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckUDBInstanceToHAAllowanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckUDBInstanceToHAAllowanceResponse.java index b3ca2fe3..f7d4f6f0 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckUDBInstanceToHAAllowanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CheckUDBInstanceToHAAllowanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CheckUDBInstanceToHAAllowanceResponse extends Response { - /** Yes ,No ,Yes即可以升级,No为不可以升级 */ + + + /** + * Yes ,No ,Yes即可以升级,No为不可以升级 + */ @SerializedName("Allowance") private String allowance; - + + public String getAllowance() { return allowance; } @@ -31,4 +41,14 @@ public String getAllowance() { public void setAllowance(String allowance) { this.allowance = allowance; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ClearUDBLogRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ClearUDBLogRequest.java index af212f44..dd87c453 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ClearUDBLogRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ClearUDBLogRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ClearUDBLogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例的id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * DB实例的id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 日志类型,10-error(暂不支持)、20-slow(暂不支持 )、30-binlog */ + + + + /** + * 日志类型,10-error(暂不支持)、20-slow(暂不支持 )、30-binlog + */ @NotEmpty @UCloudParam("LogType") private Integer logType; - - /** 删除时间点(至少前一天)之前log,采用时间戳(秒),默认当 前时间点前一天 */ + + + + /** + * 删除时间点(至少前一天)之前log,采用时间戳(秒),默认当 前时间点前一天 + */ @UCloudParam("BeforeTime") private Integer beforeTime; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -62,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -70,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -78,7 +108,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Integer getLogType() { return logType; } @@ -86,7 +116,7 @@ public Integer getLogType() { public void setLogType(Integer logType) { this.logType = logType; } - + public Integer getBeforeTime() { return beforeTime; } @@ -94,4 +124,14 @@ public Integer getBeforeTime() { public void setBeforeTime(Integer beforeTime) { this.beforeTime = beforeTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ClearUDBLogResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ClearUDBLogResponse.java index 63fdc568..5fff65f1 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ClearUDBLogResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ClearUDBLogResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ClearUDBLogResponse extends Response {} +public class ClearUDBLogResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateMongoDBReplicaSetRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateMongoDBReplicaSetRequest.java index 21b2f09d..671e6940 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateMongoDBReplicaSetRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateMongoDBReplicaSetRequest.java @@ -1,124 +1,210 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateMongoDBReplicaSetRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** PrimaryDB实例名称,至少6位 */ + + + + /** + * PrimaryDB实例名称,至少6位 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 管理员密码 */ + + + + /** + * 管理员密码 + */ @NotEmpty @UCloudParam("AdminPassword") private String adminPassword; - - /** DB类型id对应的字符串形式 mongodb-3.4,mongodb-3.6,mongodb-4.0 */ + + + + /** + * DB类型id对应的字符串形式 mongodb-3.4,mongodb-3.6,mongodb-4.0 + */ @NotEmpty @UCloudParam("DBTypeId") private String dbTypeId; - - /** 磁盘空间(GB), 暂时支持20G - 3000G */ + + + + /** + * 磁盘空间(GB), 暂时支持20G - 3000G + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; - - /** DB实例使用的配置参数组id */ + + + + /** + * DB实例使用的配置参数组id + */ @NotEmpty @UCloudParam("ParamGroupId") private Integer paramGroupId; - + + + /** * 内存限制(MB),目前支持以下几档 2000M/4000M/ 6000M/8000M/12000M/16000M/ 24000M/32000M/48000M/ 64000M/96000M */ @NotEmpty @UCloudParam("MemoryLimit") private Integer memoryLimit; - - /** 端口号 */ + + + + /** + * 端口号 + */ @NotEmpty @UCloudParam("Port") private Integer port; - - /** Year, Month, Dynamic,Trial,默认: Month */ + + + + /** + * Year, Month, Dynamic,Trial,默认: Month + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长(N个月),默认值1个月。如果为0,代表购买到月底。 */ + + + + /** + * 购买时长(N个月),默认值1个月。如果为0,代表购买到月底。 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 管理员帐户名,默认root */ + + + + /** + * 管理员帐户名,默认root + */ @UCloudParam("AdminUser") private String adminUser; - - /** 备份策略,每周备份数量,默认7次 */ + + + + /** + * 备份策略,每周备份数量,默认7次 + */ @UCloudParam("BackupCount") private Integer backupCount; - - /** 备份策略,备份开始时间,单位小时计,默认1点 */ + + + + /** + * 备份策略,备份开始时间,单位小时计,默认1点 + */ @UCloudParam("BackupTime") private Integer backupTime; - - /** 备份策略,备份时间间隔,单位小时计,默认24小时 */ + + + + /** + * 备份策略,备份时间间隔,单位小时计,默认24小时 + */ @UCloudParam("BackupDuration") private Integer backupDuration; - - /** cpu核数 */ + + + + /** + * cpu核数 + */ @UCloudParam("CPU") private Integer cpu; - - /** 子网ID */ + + + + + + /** + * 子网ID + */ @UCloudParam("SubnetId") private String subnetId; - - /** VPC的ID */ + + + + /** + * VPC的ID + */ @UCloudParam("VPCId") private String vpcId; - - /** 所属分片集群的ID */ + + + + /** + * 所属分片集群的ID + */ @UCloudParam("ClusterId") private String clusterId; - - /** CouponId.0 代表第一个代金券id,对于传入多个代金券id,后面为 CouponId.1, CouponId.2 以此类推 */ + + + + /** + * CouponId.0 代表第一个代金券id,对于传入多个代金券id,后面为 CouponId.1, CouponId.2 以此类推 + */ @UCloudParam("CouponId") private List couponId; - + + public String getRegion() { return region; } @@ -126,7 +212,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -134,7 +220,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -142,7 +228,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -150,7 +236,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getAdminPassword() { return adminPassword; } @@ -158,7 +244,7 @@ public String getAdminPassword() { public void setAdminPassword(String adminPassword) { this.adminPassword = adminPassword; } - + public String getDBTypeId() { return dbTypeId; } @@ -166,7 +252,7 @@ public String getDBTypeId() { public void setDBTypeId(String dbTypeId) { this.dbTypeId = dbTypeId; } - + public Integer getDiskSpace() { return diskSpace; } @@ -174,7 +260,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public Integer getParamGroupId() { return paramGroupId; } @@ -182,7 +268,7 @@ public Integer getParamGroupId() { public void setParamGroupId(Integer paramGroupId) { this.paramGroupId = paramGroupId; } - + public Integer getMemoryLimit() { return memoryLimit; } @@ -190,7 +276,7 @@ public Integer getMemoryLimit() { public void setMemoryLimit(Integer memoryLimit) { this.memoryLimit = memoryLimit; } - + public Integer getPort() { return port; } @@ -198,7 +284,7 @@ public Integer getPort() { public void setPort(Integer port) { this.port = port; } - + public String getChargeType() { return chargeType; } @@ -206,7 +292,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -214,7 +300,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getAdminUser() { return adminUser; } @@ -222,7 +308,7 @@ public String getAdminUser() { public void setAdminUser(String adminUser) { this.adminUser = adminUser; } - + public Integer getBackupCount() { return backupCount; } @@ -230,7 +316,7 @@ public Integer getBackupCount() { public void setBackupCount(Integer backupCount) { this.backupCount = backupCount; } - + public Integer getBackupTime() { return backupTime; } @@ -238,7 +324,7 @@ public Integer getBackupTime() { public void setBackupTime(Integer backupTime) { this.backupTime = backupTime; } - + public Integer getBackupDuration() { return backupDuration; } @@ -246,7 +332,7 @@ public Integer getBackupDuration() { public void setBackupDuration(Integer backupDuration) { this.backupDuration = backupDuration; } - + public Integer getCPU() { return cpu; } @@ -254,7 +340,8 @@ public Integer getCPU() { public void setCPU(Integer cpu) { this.cpu = cpu; } - + + public String getSubnetId() { return subnetId; } @@ -262,7 +349,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getVPCId() { return vpcId; } @@ -270,7 +357,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getClusterId() { return clusterId; } @@ -278,7 +365,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public List getCouponId() { return couponId; } @@ -286,4 +373,14 @@ public List getCouponId() { public void setCouponId(List couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateMongoDBReplicaSetResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateMongoDBReplicaSetResponse.java index fd2b645a..d2d4a2f7 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateMongoDBReplicaSetResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateMongoDBReplicaSetResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class CreateMongoDBReplicaSetResponse extends Response { - /** 返回所有副本集成员的Id */ + + + /** + * 返回所有副本集成员的Id + */ @SerializedName("DBIds") private List dbIds; - + + public List getDBIds() { return dbIds; } @@ -32,4 +41,14 @@ public List getDBIds() { public void setDBIds(List dbIds) { this.dbIds = dbIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryRequest.java index 02db378d..813cf6d6 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryRequest.java @@ -1,85 +1,148 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUDBInstanceByRecoveryRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 实例名称,至少6位 */ + + + + /** + * 实例名称,至少6位 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 源实例的Id */ + + + + /** + * 源实例的Id + */ @NotEmpty @UCloudParam("SrcDBId") private String srcDBId; - - /** 恢复到某个时间点的时间戳(UTC时间格式,默认单位秒) */ + + + + /** + * 恢复到某个时间点的时间戳(UTC时间格式,默认单位秒) + */ @NotEmpty @UCloudParam("RecoveryTime") private Integer recoveryTime; - - /** Year, Month, Dynamic,Trial,默认: Dynamic */ + + + + /** + * Year, Month, Dynamic,Trial,默认: Dynamic + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长,默认值1 */ + + + + /** + * 购买时长,默认值1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 指定是否是否使用SSD,默认使用主库的配置 */ + + + + /** + * 指定是否是否使用SSD,默认使用主库的配置 + */ @UCloudParam("UseSSD") private Boolean useSSD; - - /** 专区的Id */ + + + + /** + * 专区的Id + */ @UCloudParam("UDBCId") private String udbcId; + + + + /** + * 子网ID - /** 子网ID */ + */ @UCloudParam("SubnetId") private String subnetId; - - /** VPC的ID */ + + + + /** + * VPC的ID + */ @UCloudParam("VPCId") private String vpcId; - - /** 是否创建使用ipv6 资源, 默认为false, 或者不填, 创建ipv6为true */ + + + + /** + * 是否创建使用ipv6 资源, 默认为false, 或者不填, 创建ipv6为true + */ @UCloudParam("EnableIpV6") private Boolean enableIpV6; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -87,7 +150,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -95,7 +158,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -103,7 +166,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -111,7 +174,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getSrcDBId() { return srcDBId; } @@ -119,7 +182,7 @@ public String getSrcDBId() { public void setSrcDBId(String srcDBId) { this.srcDBId = srcDBId; } - + public Integer getRecoveryTime() { return recoveryTime; } @@ -127,7 +190,7 @@ public Integer getRecoveryTime() { public void setRecoveryTime(Integer recoveryTime) { this.recoveryTime = recoveryTime; } - + public String getChargeType() { return chargeType; } @@ -135,7 +198,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -143,7 +206,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public Boolean getUseSSD() { return useSSD; } @@ -151,7 +214,7 @@ public Boolean getUseSSD() { public void setUseSSD(Boolean useSSD) { this.useSSD = useSSD; } - + public String getUDBCId() { return udbcId; } @@ -159,7 +222,7 @@ public String getUDBCId() { public void setUDBCId(String udbcId) { this.udbcId = udbcId; } - + public String getSubnetId() { return subnetId; } @@ -167,7 +230,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getVPCId() { return vpcId; } @@ -175,7 +238,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public Boolean getEnableIpV6() { return enableIpV6; } @@ -183,7 +246,7 @@ public Boolean getEnableIpV6() { public void setEnableIpV6(Boolean enableIpV6) { this.enableIpV6 = enableIpV6; } - + public String getCouponId() { return couponId; } @@ -191,4 +254,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryResponse.java index 49927028..3b60e58f 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUDBInstanceByRecoveryResponse extends Response { - /** db实例id */ + + + /** + * db实例id + */ @SerializedName("DBId") private String dbId; - + + public String getDBId() { return dbId; } @@ -31,4 +41,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceRequest.java index 9c30d068..26ca2f3e 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceRequest.java @@ -1,157 +1,267 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例名称,至少6位 */ + + + + /** + * 实例名称,至少6位 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 管理员密码 */ + + + + /** + * 管理员密码 + */ @NotEmpty @UCloudParam("AdminPassword") private String adminPassword; - + + + /** - * DB类型,mysql/mongodb/postgesql/sqlserver按版本细分 mysql-8.0, mysql-5.5, percona-5.5, mysql-5.6, - * percona-5.6, mysql-5.7, percona-5.7, mariadb-10.0, postgresql-9.6, postgresql-10.4, - * postgresql-12.8, postgresql-13.4,mongodb-2.6, mongodb-3.0, mongodb-3.6, mongodb-4.0, - * sqlserver-2017 + * DB类型,mysql/mongodb/postgesql/sqlserver按版本细分 mysql-8.0, mysql-5.5, percona-5.5, mysql-5.6, percona-5.6, mysql-5.7, percona-5.7, mariadb-10.0, postgresql-9.6, postgresql-10.4, postgresql-12.8, postgresql-13.4,mongodb-2.6, mongodb-3.0, mongodb-3.6, mongodb-4.0, sqlserver-2017 */ @NotEmpty @UCloudParam("DBTypeId") private String dbTypeId; - - /** 端口号,mysql默认3306,mongodb默认27017,postgresql默认5432 */ + + + + /** + * 端口号,mysql默认3306,mongodb默认27017,postgresql默认5432 + */ @NotEmpty @UCloudParam("Port") private Integer port; - - /** 磁盘空间(GB), 暂时支持20G - 32T */ + + + + /** + * 磁盘空间(GB), 暂时支持20G - 32T + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; - - /** DB实例使用的配置参数组id */ + + + + /** + * DB实例使用的配置参数组id + */ @NotEmpty @UCloudParam("ParamGroupId") private Integer paramGroupId; - + + + /** - * 内存限制(MB),目前支持以下几档 2000M/4000M/ 6000M/8000M/12000M/16000M/ 24000M/32000M/48000M/ - * 64000M/96000M/128000M/192000M/256000M/320000M + * 内存限制(MB),目前支持以下几档 2000M/4000M/ 6000M/8000M/12000M/16000M/ 24000M/32000M/48000M/ 64000M/96000M/128000M/192000M/256000M/320000M */ @NotEmpty @UCloudParam("MemoryLimit") private Integer memoryLimit; - - /** Year, Month, Dynamic,Trial,默认: Month */ + + + + /** + * Year, Month, Dynamic,Trial,默认: Month + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长,默认值1 */ + + + + /** + * 购买时长,默认值1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 管理员帐户名,默认root */ + + + + /** + * 管理员帐户名,默认root + */ @UCloudParam("AdminUser") private String adminUser; - - /** 备份策略,每周备份数量,默认7次 */ + + + + /** + * 备份策略,每周备份数量,默认7次 + */ @UCloudParam("BackupCount") private Integer backupCount; - - /** 备份策略,备份开始时间,单位小时计,默认1点 */ + + + + /** + * 备份策略,备份开始时间,单位小时计,默认1点 + */ @UCloudParam("BackupTime") private Integer backupTime; - - /** 备份策略,备份时间间隔,单位小时计,默认24小时 */ + + + + /** + * 备份策略,备份时间间隔,单位小时计,默认24小时 + */ @UCloudParam("BackupDuration") private Integer backupDuration; - - /** 备份id,如果指定,则表明从备份恢复实例 */ + + + + /** + * 备份id,如果指定,则表明从备份恢复实例 + */ @UCloudParam("BackupId") private Integer backupId; - - /** SSD类型,可选值为"SATA"、“NVMe”,默认为“SATA” */ + + + + + + /** + * SSD类型,可选值为"SATA"、“NVMe”,默认为“SATA” + */ @UCloudParam("SSDType") private String ssdType; - - /** UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 默认是"Normal" */ + + + + /** + * UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 默认是"Normal" + */ @UCloudParam("InstanceMode") private String instanceMode; - - /** cpu核数,如果db类型为sqlserver,必传参数 */ + + + + /** + * cpu核数,如果db类型为sqlserver,必传参数 + */ @UCloudParam("CPU") private Integer cpu; - - /** 跨可用区高可用备库所在可用区,参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 跨可用区高可用备库所在可用区,参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("BackupZone") private String backupZone; - - /** 子网ID */ + + + + /** + * 子网ID + */ @UCloudParam("SubnetId") private String subnetId; - - /** VPC的ID */ + + + + /** + * VPC的ID + */ @UCloudParam("VPCId") private String vpcId; - - /** 是否开启异步高可用,默认不填,可置为true */ + + + + /** + * 是否开启异步高可用,默认不填,可置为true + */ @UCloudParam("DisableSemisync") private Boolean disableSemisync; - - /** 当DB类型(DBTypeId)为mongodb时,需要指定mongo的角色,可选值为 configsrv (配置节点),shardsrv (数据节点) */ + + + + /** + * 当DB类型(DBTypeId)为mongodb时,需要指定mongo的角色,可选值为 +configsrv (配置节点),shardsrv (数据节点) + */ @UCloudParam("ClusterRole") private String clusterRole; - - /** 实例所在的业务组名称 */ + + + + /** + * 实例所在的业务组名称 + */ @UCloudParam("Tag") private String tag; - - /** 是否创建使用ipv6 资源, 默认为false, 或者不填, 创建ipv6为true */ + + + + /** + * 是否创建使用ipv6 资源, 默认为false, 或者不填, 创建ipv6为true + */ @UCloudParam("EnableIpV6") private Boolean enableIpV6; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -159,7 +269,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -167,7 +277,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -175,7 +285,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -183,7 +293,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getAdminPassword() { return adminPassword; } @@ -191,7 +301,7 @@ public String getAdminPassword() { public void setAdminPassword(String adminPassword) { this.adminPassword = adminPassword; } - + public String getDBTypeId() { return dbTypeId; } @@ -199,7 +309,7 @@ public String getDBTypeId() { public void setDBTypeId(String dbTypeId) { this.dbTypeId = dbTypeId; } - + public Integer getPort() { return port; } @@ -207,7 +317,7 @@ public Integer getPort() { public void setPort(Integer port) { this.port = port; } - + public Integer getDiskSpace() { return diskSpace; } @@ -215,7 +325,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public Integer getParamGroupId() { return paramGroupId; } @@ -223,7 +333,7 @@ public Integer getParamGroupId() { public void setParamGroupId(Integer paramGroupId) { this.paramGroupId = paramGroupId; } - + public Integer getMemoryLimit() { return memoryLimit; } @@ -231,7 +341,7 @@ public Integer getMemoryLimit() { public void setMemoryLimit(Integer memoryLimit) { this.memoryLimit = memoryLimit; } - + public String getChargeType() { return chargeType; } @@ -239,7 +349,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -247,7 +357,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getAdminUser() { return adminUser; } @@ -255,7 +365,7 @@ public String getAdminUser() { public void setAdminUser(String adminUser) { this.adminUser = adminUser; } - + public Integer getBackupCount() { return backupCount; } @@ -263,7 +373,7 @@ public Integer getBackupCount() { public void setBackupCount(Integer backupCount) { this.backupCount = backupCount; } - + public Integer getBackupTime() { return backupTime; } @@ -271,7 +381,7 @@ public Integer getBackupTime() { public void setBackupTime(Integer backupTime) { this.backupTime = backupTime; } - + public Integer getBackupDuration() { return backupDuration; } @@ -279,7 +389,7 @@ public Integer getBackupDuration() { public void setBackupDuration(Integer backupDuration) { this.backupDuration = backupDuration; } - + public Integer getBackupId() { return backupId; } @@ -287,7 +397,8 @@ public Integer getBackupId() { public void setBackupId(Integer backupId) { this.backupId = backupId; } - + + public String getSSDType() { return ssdType; } @@ -295,7 +406,7 @@ public String getSSDType() { public void setSSDType(String ssdType) { this.ssdType = ssdType; } - + public String getInstanceMode() { return instanceMode; } @@ -303,7 +414,7 @@ public String getInstanceMode() { public void setInstanceMode(String instanceMode) { this.instanceMode = instanceMode; } - + public Integer getCPU() { return cpu; } @@ -311,7 +422,7 @@ public Integer getCPU() { public void setCPU(Integer cpu) { this.cpu = cpu; } - + public String getBackupZone() { return backupZone; } @@ -319,7 +430,7 @@ public String getBackupZone() { public void setBackupZone(String backupZone) { this.backupZone = backupZone; } - + public String getSubnetId() { return subnetId; } @@ -327,7 +438,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getVPCId() { return vpcId; } @@ -335,7 +446,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public Boolean getDisableSemisync() { return disableSemisync; } @@ -343,7 +454,7 @@ public Boolean getDisableSemisync() { public void setDisableSemisync(Boolean disableSemisync) { this.disableSemisync = disableSemisync; } - + public String getClusterRole() { return clusterRole; } @@ -351,7 +462,7 @@ public String getClusterRole() { public void setClusterRole(String clusterRole) { this.clusterRole = clusterRole; } - + public String getTag() { return tag; } @@ -359,7 +470,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public Boolean getEnableIpV6() { return enableIpV6; } @@ -367,7 +478,7 @@ public Boolean getEnableIpV6() { public void setEnableIpV6(Boolean enableIpV6) { this.enableIpV6 = enableIpV6; } - + public String getCouponId() { return couponId; } @@ -375,4 +486,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceResponse.java index ca98825a..f1b9d53e 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUDBInstanceResponse extends Response { - /** BD实例id */ + + + /** + * BD实例id + */ @SerializedName("DBId") private String dbId; - + + public String getDBId() { return dbId; } @@ -31,4 +41,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBParamGroupRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBParamGroupRequest.java index 4c63d4c1..9b9bced1 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBParamGroupRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBParamGroupRequest.java @@ -1,66 +1,101 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUDBParamGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 新配置参数组名称 */ + + + + /** + * 新配置参数组名称 + */ @NotEmpty @UCloudParam("GroupName") private String groupName; - - /** 参数组描述 */ + + + + /** + * 参数组描述 + */ @NotEmpty @UCloudParam("Description") private String description; - - /** 源参数组id */ + + + + /** + * 源参数组id + */ @NotEmpty @UCloudParam("SrcGroupId") private Integer srcGroupId; - + + + /** - * DB类型id,mysql/mongodb/postgesql按版本细分 - * 1:mysql-5.1,2:mysql-5.5,3:percona-5.5,4:mysql-5.6,5:percona-5.6,6:mysql-5.7,7:percona-5.7,8:mariadb-10.0,9:mongodb-2.4,10:mongodb-2.6,11:mongodb-3.0,12:mongodb-3.2,13:postgresql-9.4,14:postgresql-9.6 + * DB类型id,mysql/mongodb/postgesql按版本细分 1:mysql-5.1,2:mysql-5.5,3:percona-5.5,4:mysql-5.6,5:percona-5.6,6:mysql-5.7,7:percona-5.7,8:mariadb-10.0,9:mongodb-2.4,10:mongodb-2.6,11:mongodb-3.0,12:mongodb-3.2,13:postgresql-9.4,14:postgresql-9.6 */ @NotEmpty @UCloudParam("DBTypeId") private String dbTypeId; - - /** 是否是地域级别的配置文件,默认是false */ + + + + /** + * 是否是地域级别的配置文件,默认是false + */ @UCloudParam("RegionFlag") private Boolean regionFlag; - + + public String getRegion() { return region; } @@ -68,7 +103,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -76,7 +111,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -84,7 +119,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupName() { return groupName; } @@ -92,7 +127,7 @@ public String getGroupName() { public void setGroupName(String groupName) { this.groupName = groupName; } - + public String getDescription() { return description; } @@ -100,7 +135,7 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } - + public Integer getSrcGroupId() { return srcGroupId; } @@ -108,7 +143,7 @@ public Integer getSrcGroupId() { public void setSrcGroupId(Integer srcGroupId) { this.srcGroupId = srcGroupId; } - + public String getDBTypeId() { return dbTypeId; } @@ -116,7 +151,7 @@ public String getDBTypeId() { public void setDBTypeId(String dbTypeId) { this.dbTypeId = dbTypeId; } - + public Boolean getRegionFlag() { return regionFlag; } @@ -124,4 +159,14 @@ public Boolean getRegionFlag() { public void setRegionFlag(Boolean regionFlag) { this.regionFlag = regionFlag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBParamGroupResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBParamGroupResponse.java index 7215b77e..471cdb7a 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBParamGroupResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBParamGroupResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUDBParamGroupResponse extends Response { - /** 新配置参数组id */ + + + /** + * 新配置参数组id + */ @SerializedName("GroupId") private Integer groupId; - + + public Integer getGroupId() { return groupId; } @@ -31,4 +41,14 @@ public Integer getGroupId() { public void setGroupId(Integer groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBReplicationInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBReplicationInstanceRequest.java index b5f44665..7199bcc8 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBReplicationInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBReplicationInstanceRequest.java @@ -1,64 +1,106 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUDBReplicationInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** primary节点的DBId,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * primary节点的DBId,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("SrcId") private String srcId; - - /** 实例名称,至少6位 */ + + + + /** + * 实例名称,至少6位 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 端口号,默认27017,取值范围3306至65535。 */ + + + + /** + * 端口号,默认27017,取值范围3306至65535。 + */ @UCloudParam("Port") private Integer port; - - /** 是否是仲裁节点,默认false,仲裁节点按最小机型创建 */ + + + + /** + * 是否是仲裁节点,默认false,仲裁节点按最小机型创建 + */ @UCloudParam("IsArbiter") private Boolean isArbiter; - - /** 是否使用SSD,默认 为 true */ + + + + /** + * 是否使用SSD,默认 为 true + */ @UCloudParam("UseSSD") private Boolean useSSD; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -66,7 +108,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -74,7 +116,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -82,7 +124,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSrcId() { return srcId; } @@ -90,7 +132,7 @@ public String getSrcId() { public void setSrcId(String srcId) { this.srcId = srcId; } - + public String getName() { return name; } @@ -98,7 +140,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public Integer getPort() { return port; } @@ -106,7 +148,7 @@ public Integer getPort() { public void setPort(Integer port) { this.port = port; } - + public Boolean getIsArbiter() { return isArbiter; } @@ -114,7 +156,7 @@ public Boolean getIsArbiter() { public void setIsArbiter(Boolean isArbiter) { this.isArbiter = isArbiter; } - + public Boolean getUseSSD() { return useSSD; } @@ -122,7 +164,7 @@ public Boolean getUseSSD() { public void setUseSSD(Boolean useSSD) { this.useSSD = useSSD; } - + public String getCouponId() { return couponId; } @@ -130,4 +172,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBReplicationInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBReplicationInstanceResponse.java index 7a204bd6..08b6aa1f 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBReplicationInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBReplicationInstanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUDBReplicationInstanceResponse extends Response { - /** 创建从节点的DBId */ + + + /** + * 创建从节点的DBId + */ @SerializedName("DBId") private String dbId; - + + public String getDBId() { return dbId; } @@ -31,4 +41,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBRouteInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBRouteInstanceRequest.java index 6cbf5e05..1069b101 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBRouteInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBRouteInstanceRequest.java @@ -1,90 +1,151 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateUDBRouteInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB类型id,mongodb按版本细分有1:mongodb-2.4,2:mongodb-2.6,3:mongodb-3.0,4:mongodb-3.2 */ + + + + /** + * DB类型id,mongodb按版本细分有1:mongodb-2.4,2:mongodb-2.6,3:mongodb-3.0,4:mongodb-3.2 + */ @NotEmpty @UCloudParam("DBTypeId") private String dbTypeId; - - /** 实例名称,至少6位 */ + + + + /** + * 实例名称,至少6位 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 端口号,mongodb默认27017 */ + + + + /** + * 端口号,mongodb默认27017 + */ @NotEmpty @UCloudParam("Port") private Integer port; - - /** DB实例使用的配置参数组id */ + + + + /** + * DB实例使用的配置参数组id + */ @NotEmpty @UCloudParam("ParamGroupId") private Integer paramGroupId; - - /** 内存限制(MB),目前支持以下几档 600M/1500M/3000M /6000M/15000M/30000M */ + + + + /** + * 内存限制(MB),目前支持以下几档 600M/1500M/3000M /6000M/15000M/30000M + */ @NotEmpty @UCloudParam("MemoryLimit") private Integer memoryLimit; - - /** 磁盘空间(GB), 暂时支持20G - 500G */ + + + + /** + * 磁盘空间(GB), 暂时支持20G - 500G + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; - - /** 配置服务器的dbid,允许一个或者三个。 */ + + + + /** + * 配置服务器的dbid,允许一个或者三个。 + */ @NotEmpty @UCloudParam("ConfigsvrId") private List configsvrId; - - /** Year, Month, Dynamic,Trial,默认: Month */ + + + + /** + * Year, Month, Dynamic,Trial,默认: Month + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长,默认值1 */ + + + + /** + * 购买时长,默认值1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 是否使用SSD,默认为ture */ + + + + /** + * 是否使用SSD,默认为ture + */ @UCloudParam("UseSSD") private Boolean useSSD; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -92,7 +153,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -100,7 +161,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -108,7 +169,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBTypeId() { return dbTypeId; } @@ -116,7 +177,7 @@ public String getDBTypeId() { public void setDBTypeId(String dbTypeId) { this.dbTypeId = dbTypeId; } - + public String getName() { return name; } @@ -124,7 +185,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public Integer getPort() { return port; } @@ -132,7 +193,7 @@ public Integer getPort() { public void setPort(Integer port) { this.port = port; } - + public Integer getParamGroupId() { return paramGroupId; } @@ -140,7 +201,7 @@ public Integer getParamGroupId() { public void setParamGroupId(Integer paramGroupId) { this.paramGroupId = paramGroupId; } - + public Integer getMemoryLimit() { return memoryLimit; } @@ -148,7 +209,7 @@ public Integer getMemoryLimit() { public void setMemoryLimit(Integer memoryLimit) { this.memoryLimit = memoryLimit; } - + public Integer getDiskSpace() { return diskSpace; } @@ -156,7 +217,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public List getConfigsvrId() { return configsvrId; } @@ -164,7 +225,7 @@ public List getConfigsvrId() { public void setConfigsvrId(List configsvrId) { this.configsvrId = configsvrId; } - + public String getChargeType() { return chargeType; } @@ -172,7 +233,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -180,7 +241,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public Boolean getUseSSD() { return useSSD; } @@ -188,7 +249,7 @@ public Boolean getUseSSD() { public void setUseSSD(Boolean useSSD) { this.useSSD = useSSD; } - + public String getCouponId() { return couponId; } @@ -196,4 +257,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBRouteInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBRouteInstanceResponse.java index 097a87d0..eb80aef0 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBRouteInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBRouteInstanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUDBRouteInstanceResponse extends Response { - /** db实例id */ + + + /** + * db实例id + */ @SerializedName("DBId") private String dbId; - + + public String getDBId() { return dbId; } @@ -31,4 +41,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBSlaveRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBSlaveRequest.java index 323964dd..16d4d66b 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBSlaveRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBSlaveRequest.java @@ -1,106 +1,178 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUDBSlaveRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** master实例的DBId,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * master实例的DBId,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("SrcId") private String srcId; - - /** 实例名称,至少6位 */ + + + + /** + * 实例名称,至少6位 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 端口号 */ + + + + /** + * 端口号 + */ @UCloudParam("Port") private Integer port; - - /** 仅对主为SSD型实例有效。 可选值"SATA","NVMe" */ + + + + /** + * 仅对主为SSD型实例有效。 可选值"SATA","NVMe" + */ @UCloudParam("SSDType") private String ssdType; - - /** 是否锁主库,默认为true */ + + + + /** + * 是否锁主库,默认为true + */ @UCloudParam("IsLock") private Boolean isLock; - + + + /** - * 内存限制(MB),目前支持以下几档 2000M/4000M/ 6000M/8000M/12000M/16000M/ 24000M/32000M/48000M/ - * 64000M/96000M/128000M/192000M/256000M/320000M + * 内存限制(MB),目前支持以下几档 2000M/4000M/ 6000M/8000M/12000M/16000M/ 24000M/32000M/48000M/ 64000M/96000M/128000M/192000M/256000M/320000M */ @UCloudParam("MemoryLimit") private Integer memoryLimit; - - /** 磁盘空间(GB), 暂时支持20G - 3000G(API支持,前端暂时只开放内存定制) */ + + + + /** + * 磁盘空间(GB), 暂时支持20G - 3000G(API支持,前端暂时只开放内存定制) + */ @UCloudParam("DiskSpace") private Integer diskSpace; - - /** 子网ID(如果不传用默认子网) */ + + + + /** + * 子网ID(如果不传用默认子网) + */ @UCloudParam("SubnetId") private String subnetId; - - /** VPCID(如果不传用默认的VPC) */ + + + + /** + * VPCID(如果不传用默认的VPC) + */ @UCloudParam("VPCId") private String vpcId; - - /** Year, Month, Dynamic,Trial,默认和主库保持一致 */ + + + + /** + * Year, Month, Dynamic,Trial,默认和主库保持一致 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长,默认默认和主库保持一致 */ + + + + /** + * 购买时长,默认默认和主库保持一致 + */ @UCloudParam("Quantity") private Integer quantity; - - /** DB实例使用的配置参数组id,默认和主库保持一致 */ + + + + /** + * DB实例使用的配置参数组id,默认和主库保持一致 + */ @UCloudParam("ParamGroupId") private Integer paramGroupId; - - /** 使用物理方式创建从库,目前仅限创建快杰从库,默认为false */ + + + + /** + * 使用物理方式创建从库,目前仅限创建快杰从库,默认为false + */ @UCloudParam("IsCreatePhysically") private Boolean isCreatePhysically; - - /** 设置从库的延时复制时长(单位秒) */ + + + + /** + * 设置从库的延时复制时长(单位秒) + */ @UCloudParam("DelaySeconds") private Integer delaySeconds; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -108,7 +180,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -116,7 +188,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -124,7 +196,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSrcId() { return srcId; } @@ -132,7 +204,7 @@ public String getSrcId() { public void setSrcId(String srcId) { this.srcId = srcId; } - + public String getName() { return name; } @@ -140,7 +212,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public Integer getPort() { return port; } @@ -148,7 +220,7 @@ public Integer getPort() { public void setPort(Integer port) { this.port = port; } - + public String getSSDType() { return ssdType; } @@ -156,7 +228,7 @@ public String getSSDType() { public void setSSDType(String ssdType) { this.ssdType = ssdType; } - + public Boolean getIsLock() { return isLock; } @@ -164,7 +236,7 @@ public Boolean getIsLock() { public void setIsLock(Boolean isLock) { this.isLock = isLock; } - + public Integer getMemoryLimit() { return memoryLimit; } @@ -172,7 +244,7 @@ public Integer getMemoryLimit() { public void setMemoryLimit(Integer memoryLimit) { this.memoryLimit = memoryLimit; } - + public Integer getDiskSpace() { return diskSpace; } @@ -180,7 +252,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public String getSubnetId() { return subnetId; } @@ -188,7 +260,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getVPCId() { return vpcId; } @@ -196,7 +268,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getChargeType() { return chargeType; } @@ -204,7 +276,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -212,7 +284,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public Integer getParamGroupId() { return paramGroupId; } @@ -220,7 +292,7 @@ public Integer getParamGroupId() { public void setParamGroupId(Integer paramGroupId) { this.paramGroupId = paramGroupId; } - + public Boolean getIsCreatePhysically() { return isCreatePhysically; } @@ -228,7 +300,7 @@ public Boolean getIsCreatePhysically() { public void setIsCreatePhysically(Boolean isCreatePhysically) { this.isCreatePhysically = isCreatePhysically; } - + public Integer getDelaySeconds() { return delaySeconds; } @@ -236,7 +308,7 @@ public Integer getDelaySeconds() { public void setDelaySeconds(Integer delaySeconds) { this.delaySeconds = delaySeconds; } - + public String getCouponId() { return couponId; } @@ -244,4 +316,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBSlaveResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBSlaveResponse.java index e845ada6..28a44f35 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBSlaveResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBSlaveResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUDBSlaveResponse extends Response { - /** 创建slave的DBId */ + + + /** + * 创建slave的DBId + */ @SerializedName("DBId") private String dbId; - + + public String getDBId() { return dbId; } @@ -31,4 +41,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBInstanceRequest.java index d60d012f..8a1c165d 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBInstanceRequest.java @@ -1,47 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例的id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * DB实例的id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 专区ID */ + + + + /** + * 专区ID + */ @UCloudParam("UDBCId") private String udbcId; - + + public String getRegion() { return region; } @@ -49,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +83,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -73,7 +99,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public String getUDBCId() { return udbcId; } @@ -81,4 +107,14 @@ public String getUDBCId() { public void setUDBCId(String udbcId) { this.udbcId = udbcId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBInstanceResponse.java index c50537ea..9a0b8a7f 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUDBInstanceResponse extends Response {} +public class DeleteUDBInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBLogPackageRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBLogPackageRequest.java index fbe3f7e8..586692e0 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBLogPackageRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBLogPackageRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUDBLogPackageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 日志包id,可通过DescribeUDBLogPackage获得 */ + + + + /** + * 日志包id,可通过DescribeUDBLogPackage获得 + */ @NotEmpty @UCloudParam("BackupId") private Integer backupId; - - /** 跨可用区高可用备库所在可用区 */ + + + + /** + * 跨可用区高可用备库所在可用区 + */ @UCloudParam("BackupZone") private String backupZone; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getBackupId() { return backupId; } @@ -74,7 +100,7 @@ public Integer getBackupId() { public void setBackupId(Integer backupId) { this.backupId = backupId; } - + public String getBackupZone() { return backupZone; } @@ -82,4 +108,14 @@ public String getBackupZone() { public void setBackupZone(String backupZone) { this.backupZone = backupZone; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBLogPackageResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBLogPackageResponse.java index 153bedf6..f3b2bb8e 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBLogPackageResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBLogPackageResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUDBLogPackageResponse extends Response {} +public class DeleteUDBLogPackageResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBParamGroupRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBParamGroupRequest.java index 5ace1d13..6399157f 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBParamGroupRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBParamGroupRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUDBParamGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 参数组id,可通过DescribeUDBParamGroup获取 */ + + + + /** + * 参数组id,可通过DescribeUDBParamGroup获取 + */ @NotEmpty @UCloudParam("GroupId") private Integer groupId; - - /** 是否属于地域级别 */ + + + + /** + * 是否属于地域级别 + */ @UCloudParam("RegionFlag") private Boolean regionFlag; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getGroupId() { return groupId; } @@ -74,7 +100,7 @@ public Integer getGroupId() { public void setGroupId(Integer groupId) { this.groupId = groupId; } - + public Boolean getRegionFlag() { return regionFlag; } @@ -82,4 +108,14 @@ public Boolean getRegionFlag() { public void setRegionFlag(Boolean regionFlag) { this.regionFlag = regionFlag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBParamGroupResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBParamGroupResponse.java index 901443e9..5cccebe7 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBParamGroupResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBParamGroupResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUDBParamGroupResponse extends Response {} +public class DeleteUDBParamGroupResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupBlacklistRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupBlacklistRequest.java index 985b8f4e..18a1695d 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupBlacklistRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupBlacklistRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBBackupBlacklistRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * DB实例Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -53,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -61,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -69,4 +91,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupBlacklistResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupBlacklistResponse.java index 8fa10ed2..edb04cbe 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupBlacklistResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupBlacklistResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUDBBackupBlacklistResponse extends Response { - /** DB的黑名单列表, db.%为指定库 dbname.tablename为指定表 */ + + + /** + * DB的黑名单列表, db.%为指定库 dbname.tablename为指定表 + */ @SerializedName("Blacklist") private String blacklist; - + + public String getBlacklist() { return blacklist; } @@ -31,4 +41,14 @@ public String getBlacklist() { public void setBlacklist(String blacklist) { this.blacklist = blacklist; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupRequest.java index 4c70ac43..7f89cd9e 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupRequest.java @@ -1,71 +1,116 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBBackupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 分页显示的起始偏移,列表操作则指定 */ + + + + /** + * 分页显示的起始偏移,列表操作则指定 + */ @NotEmpty @UCloudParam("Offset") private Integer offset; - - /** 分页显示的条目数,列表操作则指定 */ + + + + /** + * 分页显示的条目数,列表操作则指定 + */ @NotEmpty @UCloudParam("Limit") private Integer limit; - - /** DB实例Id,如果指定,则只获取该db的备份信息 该值可以通过DescribeUDBInstance获取 */ + + + + /** + * DB实例Id,如果指定,则只获取该db的备份信息 该值可以通过DescribeUDBInstance获取 + */ @UCloudParam("DBId") private String dbId; - - /** 备份类型,取值为0或1,0表示自动,1表示手动 */ + + + + /** + * 备份类型,取值为0或1,0表示自动,1表示手动 + */ @UCloudParam("BackupType") private Integer backupType; - - /** 过滤条件:起始时间(Unix时间戳) */ + + + + /** + * 过滤条件:起始时间(Unix时间戳) + */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 过滤条件:结束时间(Unix时间戳) */ + + + + /** + * 过滤条件:结束时间(Unix时间戳) + */ @UCloudParam("EndTime") private Integer endTime; - - /** 如果未指定GroupId,则可选是否选取特定DB类型的配置(sql, nosql, postgresql, sqlserver) */ + + + + /** + * 如果未指定GroupId,则可选是否选取特定DB类型的配置(sql, nosql, postgresql, sqlserver) + */ @UCloudParam("ClassType") private String classType; - + + + + public String getRegion() { return region; } @@ -73,7 +118,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -81,7 +126,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -89,7 +134,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getOffset() { return offset; } @@ -97,7 +142,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -105,7 +150,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getDBId() { return dbId; } @@ -113,7 +158,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Integer getBackupType() { return backupType; } @@ -121,7 +166,7 @@ public Integer getBackupType() { public void setBackupType(Integer backupType) { this.backupType = backupType; } - + public Integer getBeginTime() { return beginTime; } @@ -129,7 +174,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -137,7 +182,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public String getClassType() { return classType; } @@ -145,4 +190,15 @@ public String getClassType() { public void setClassType(String classType) { this.classType = classType; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupResponse.java index d3f6005a..19f00385 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBackupResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDBBackupResponse extends Response { - /** 备份信息 参照UDBBackupSet */ + + + /** + * 备份信息 参照UDBBackupSet + */ @SerializedName("DataSet") private List dataSet; - - /** 满足条件备份总数,如果指定dbid,则是该db备份总数 */ + + + + /** + * 满足条件备份总数,如果指定dbid,则是该db备份总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,163 +57,225 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class UDBBackupSet extends Response { + + + /** + * 备份所在可用区 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 备份id + */ + @SerializedName("BackupId") + private Integer backupId; + + + + /** + * 备份名称 + */ + @SerializedName("BackupName") + private String backupName; + + + + /** + * 备份时间(Unix时间戳) + */ + @SerializedName("BackupTime") + private Integer backupTime; + + + + /** + * 备份文件大小(字节) + */ + @SerializedName("BackupSize") + private Integer backupSize; + + + + /** + * 备份类型,取值为0或1,0表示自动,1表示手动 + */ + @SerializedName("BackupType") + private Integer backupType; + + + + /** + * 备份状态 Backuping // 备份中 Success // 备份成功 Failed // 备份失败 Expired // 备份过期 + */ + @SerializedName("State") + private String state; + + + + /** + * 备份错误信息 + */ + @SerializedName("ErrorInfo") + private String errorInfo; + + + + /** + * dbid + */ + @SerializedName("DBId") + private String dbId; + + + + /** + * 对应的db名称 + */ + @SerializedName("DBName") + private String dbName; + + + + /** + * 跨机房高可用备库所在可用区 + */ + @SerializedName("BackupZone") + private String backupZone; + + + + /** + * 备份完成时间(Unix时间戳) + */ + @SerializedName("BackupEndTime") + private Integer backupEndTime; + + + + /** + * 备份文件的MD5值,备份完成后显示,备份中或备份失败时为空,目前只支持Mysql NVMe机型与Mongo + */ + @SerializedName("MD5") + private String md5; + + + public String getZone() { + return zone; + } - public static class UDBBackupSet extends Response { - - /** 备份所在可用区 */ - @SerializedName("Zone") - private String zone; - - /** 备份id */ - @SerializedName("BackupId") - private Integer backupId; - - /** 备份名称 */ - @SerializedName("BackupName") - private String backupName; - - /** 备份时间(Unix时间戳) */ - @SerializedName("BackupTime") - private Integer backupTime; - - /** 备份文件大小(字节) */ - @SerializedName("BackupSize") - private Integer backupSize; - - /** 备份类型,取值为0或1,0表示自动,1表示手动 */ - @SerializedName("BackupType") - private Integer backupType; - - /** 备份状态 Backuping // 备份中 Success // 备份成功 Failed // 备份失败 Expired // 备份过期 */ - @SerializedName("State") - private String state; - - /** 备份错误信息 */ - @SerializedName("ErrorInfo") - private String errorInfo; - - /** dbid */ - @SerializedName("DBId") - private String dbId; - - /** 对应的db名称 */ - @SerializedName("DBName") - private String dbName; - - /** 跨机房高可用备库所在可用区 */ - @SerializedName("BackupZone") - private String backupZone; - - /** 备份完成时间(Unix时间戳) */ - @SerializedName("BackupEndTime") - private Integer backupEndTime; - - /** 备份文件的MD5值,备份完成后显示,备份中或备份失败时为空,目前只支持Mysql NVMe机型与Mongo */ - @SerializedName("MD5") - private String md5; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public Integer getBackupId() { - return backupId; - } - - public void setBackupId(Integer backupId) { - this.backupId = backupId; - } - - public String getBackupName() { - return backupName; - } + public void setZone(String zone) { + this.zone = zone; + } + + public Integer getBackupId() { + return backupId; + } - public void setBackupName(String backupName) { - this.backupName = backupName; - } + public void setBackupId(Integer backupId) { + this.backupId = backupId; + } + + public String getBackupName() { + return backupName; + } - public Integer getBackupTime() { - return backupTime; - } + public void setBackupName(String backupName) { + this.backupName = backupName; + } + + public Integer getBackupTime() { + return backupTime; + } - public void setBackupTime(Integer backupTime) { - this.backupTime = backupTime; - } + public void setBackupTime(Integer backupTime) { + this.backupTime = backupTime; + } + + public Integer getBackupSize() { + return backupSize; + } - public Integer getBackupSize() { - return backupSize; - } + public void setBackupSize(Integer backupSize) { + this.backupSize = backupSize; + } + + public Integer getBackupType() { + return backupType; + } - public void setBackupSize(Integer backupSize) { - this.backupSize = backupSize; - } + public void setBackupType(Integer backupType) { + this.backupType = backupType; + } + + public String getState() { + return state; + } - public Integer getBackupType() { - return backupType; - } + public void setState(String state) { + this.state = state; + } + + public String getErrorInfo() { + return errorInfo; + } - public void setBackupType(Integer backupType) { - this.backupType = backupType; - } + public void setErrorInfo(String errorInfo) { + this.errorInfo = errorInfo; + } + + public String getDBId() { + return dbId; + } - public String getState() { - return state; - } + public void setDBId(String dbId) { + this.dbId = dbId; + } + + public String getDBName() { + return dbName; + } - public void setState(String state) { - this.state = state; - } + public void setDBName(String dbName) { + this.dbName = dbName; + } + + public String getBackupZone() { + return backupZone; + } - public String getErrorInfo() { - return errorInfo; - } + public void setBackupZone(String backupZone) { + this.backupZone = backupZone; + } + + public Integer getBackupEndTime() { + return backupEndTime; + } - public void setErrorInfo(String errorInfo) { - this.errorInfo = errorInfo; - } + public void setBackupEndTime(Integer backupEndTime) { + this.backupEndTime = backupEndTime; + } + + public String getMD5() { + return md5; + } - public String getDBId() { - return dbId; + public void setMD5(String md5) { + this.md5 = md5; + } + } +} - public void setDBId(String dbId) { - this.dbId = dbId; - } - public String getDBName() { - return dbName; - } - public void setDBName(String dbName) { - this.dbName = dbName; - } - public String getBackupZone() { - return backupZone; - } - public void setBackupZone(String backupZone) { - this.backupZone = backupZone; - } - public Integer getBackupEndTime() { - return backupEndTime; - } - public void setBackupEndTime(Integer backupEndTime) { - this.backupEndTime = backupEndTime; - } - public String getMD5() { - return md5; - } - public void setMD5(String md5) { - this.md5 = md5; - } - } -} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBinlogBackupURLRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBinlogBackupURLRequest.java index f8654857..704abac7 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBinlogBackupURLRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBinlogBackupURLRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBBinlogBackupURLRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - - /** DB实例Id */ + + + + /** + * DB实例Id + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** DB实例日志备份ID,可以从DescribeUDBLogPackage结果当中获得 */ + + + + /** + * DB实例日志备份ID,可以从DescribeUDBLogPackage结果当中获得 + */ @NotEmpty @UCloudParam("BackupId") private Integer backupId; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -54,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getDBId() { return dbId; } @@ -62,7 +84,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Integer getBackupId() { return backupId; } @@ -70,4 +92,14 @@ public Integer getBackupId() { public void setBackupId(Integer backupId) { this.backupId = backupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBinlogBackupURLResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBinlogBackupURLResponse.java index 9a2836cb..b8aeb7ce 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBinlogBackupURLResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBBinlogBackupURLResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUDBBinlogBackupURLResponse extends Response { - /** DB实例备份文件的公网地址 */ + + + /** + * DB实例备份文件的公网地址 + */ @SerializedName("BackupPath") private String backupPath; - - /** DB实例备份文件的内网地址 */ + + + + /** + * DB实例备份文件的内网地址 + */ @SerializedName("InnerBackupPath") private String innerBackupPath; - + + public String getBackupPath() { return backupPath; } @@ -35,7 +49,7 @@ public String getBackupPath() { public void setBackupPath(String backupPath) { this.backupPath = backupPath; } - + public String getInnerBackupPath() { return innerBackupPath; } @@ -43,4 +57,14 @@ public String getInnerBackupPath() { public void setInnerBackupPath(String innerBackupPath) { this.innerBackupPath = innerBackupPath; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupStateRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupStateRequest.java index 1f5d8ae9..53e54525 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupStateRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupStateRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBInstanceBackupStateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 备份记录ID */ + + + + /** + * 备份记录ID + */ @NotEmpty @UCloudParam("BackupId") private Integer backupId; - - /** 跨可用区高可用备库所在可用区,参见[可用区列表] */ + + + + /** + * 跨可用区高可用备库所在可用区,参见[可用区列表] + */ @UCloudParam("BackupZone") private String backupZone; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getBackupId() { return backupId; } @@ -74,7 +100,7 @@ public Integer getBackupId() { public void setBackupId(Integer backupId) { this.backupId = backupId; } - + public String getBackupZone() { return backupZone; } @@ -82,4 +108,14 @@ public String getBackupZone() { public void setBackupZone(String backupZone) { this.backupZone = backupZone; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupStateResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupStateResponse.java index eee8eb7b..754af73b 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupStateResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupStateResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUDBInstanceBackupStateResponse extends Response { - /** 备份状态 0 Backuping // 备份中 1 Success // 备份成功 2 Failed // 备份失败 3 Expired // 备份过期 */ + + + /** + * 备份状态 0 Backuping // 备份中 1 Success // 备份成功 2 Failed // 备份失败 3 Expired // 备份过期 + */ @SerializedName("State") private String state; - + + public String getState() { return state; } @@ -31,4 +41,14 @@ public String getState() { public void setState(String state) { this.state = state; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupURLRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupURLRequest.java index 340d3273..9060fde0 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupURLRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupURLRequest.java @@ -1,55 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBInstanceBackupURLRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id,该值可通过DescribeUDBInstance获取 */ + + + + /** + * DB实例Id,该值可通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** DB实例备份ID,该值可以通过DescribeUDBBackup获取 */ + + + + /** + * DB实例备份ID,该值可以通过DescribeUDBBackup获取 + */ @NotEmpty @UCloudParam("BackupId") private Integer backupId; - - /** DB响应中URL的过期时间,该值最小默认4小时,最大7天。不填默认为四小时。(单位/秒) */ + + + + /** + * DB响应中URL的过期时间,该值最小默认4小时,最大7天。不填默认为四小时。(单位/秒) + */ @UCloudParam("ValidTime") private Integer validTime; - + + public String getRegion() { return region; } @@ -57,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -73,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -81,7 +108,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Integer getBackupId() { return backupId; } @@ -89,7 +116,7 @@ public Integer getBackupId() { public void setBackupId(Integer backupId) { this.backupId = backupId; } - + public Integer getValidTime() { return validTime; } @@ -97,4 +124,14 @@ public Integer getValidTime() { public void setValidTime(Integer validTime) { this.validTime = validTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupURLResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupURLResponse.java index 7480dd82..a846e016 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupURLResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBackupURLResponse.java @@ -1,37 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUDBInstanceBackupURLResponse extends Response { - /** DB实例备份文件公网的地址 */ + + + /** + * DB实例备份文件公网的地址 + */ @SerializedName("BackupPath") private String backupPath; - - /** DB实例备份文件内网的地址 */ + + + + /** + * DB实例备份文件内网的地址 + */ @SerializedName("InnerBackupPath") private String innerBackupPath; - - /** 备份文件的md5值 */ + + + + /** + * 备份文件的md5值 + */ @SerializedName("MD5") private String md5; - + + public String getBackupPath() { return backupPath; } @@ -39,7 +57,7 @@ public String getBackupPath() { public void setBackupPath(String backupPath) { this.backupPath = backupPath; } - + public String getInnerBackupPath() { return innerBackupPath; } @@ -47,7 +65,7 @@ public String getInnerBackupPath() { public void setInnerBackupPath(String innerBackupPath) { this.innerBackupPath = innerBackupPath; } - + public String getMD5() { return md5; } @@ -55,4 +73,14 @@ public String getMD5() { public void setMD5(String md5) { this.md5 = md5; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogBackupStateRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogBackupStateRequest.java index a76124cc..27489443 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogBackupStateRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogBackupStateRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBInstanceBinlogBackupStateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 备份记录ID */ + + + + /** + * 备份记录ID + */ @NotEmpty @UCloudParam("BackupId") private Integer backupId; - - /** 跨可用区高可用备库所在可用区 */ + + + + /** + * 跨可用区高可用备库所在可用区 + */ @UCloudParam("BackupZone") private String backupZone; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getBackupId() { return backupId; } @@ -74,7 +100,7 @@ public Integer getBackupId() { public void setBackupId(Integer backupId) { this.backupId = backupId; } - + public String getBackupZone() { return backupZone; } @@ -82,4 +108,14 @@ public String getBackupZone() { public void setBackupZone(String backupZone) { this.backupZone = backupZone; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogBackupStateResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogBackupStateResponse.java index 293f63f7..6a9ad116 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogBackupStateResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogBackupStateResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUDBInstanceBinlogBackupStateResponse extends Response { - /** 备份状态 0 Backuping // 备份中 1 Success // 备份成功 2 Failed // 备份失败 3 Expired // 备份过期 */ + + + /** + * 备份状态 0 Backuping // 备份中 1 Success // 备份成功 2 Failed // 备份失败 3 Expired // 备份过期 + */ @SerializedName("State") private String state; - + + public String getState() { return state; } @@ -31,4 +41,14 @@ public String getState() { public void setState(String state) { this.state = state; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogRequest.java index a109a3fa..6e4c7fb7 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogRequest.java @@ -1,53 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBInstanceBinlogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id */ + + + + /** + * DB实例Id + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 过滤条件:起始时间(时间戳) */ + + + + /** + * 过滤条件:起始时间(时间戳) + */ @NotEmpty @UCloudParam("BeginTime") private Integer beginTime; - - /** 过滤条件:结束时间(时间戳) */ + + + + /** + * 过滤条件:结束时间(时间戳) + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - + + public String getRegion() { return region; } @@ -55,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -63,7 +93,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -71,7 +101,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -79,7 +109,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Integer getBeginTime() { return beginTime; } @@ -87,7 +117,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -95,4 +125,14 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogResponse.java index b1fe59f6..4ff53066 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceBinlogResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDBInstanceBinlogResponse extends Response { - /** 获取的Binlog信息列表 UDBInstanceBinlogSet */ + + + /** + * 获取的Binlog信息列表 UDBInstanceBinlogSet + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,55 +41,81 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UDBInstanceBinlogSet extends Response { + + + /** + * Binlog文件名 + */ + @SerializedName("Name") + private String name; + + + + /** + * Binlog文件大小 + */ + @SerializedName("Size") + private Integer size; + + + + /** + * Binlog文件生成时间(时间戳) + */ + @SerializedName("BeginTime") + private Integer beginTime; + + + + /** + * Binlog文件结束时间(时间戳) + */ + @SerializedName("EndTime") + private Integer endTime; + + + public String getName() { + return name; + } - public static class UDBInstanceBinlogSet extends Response { + public void setName(String name) { + this.name = name; + } + + public Integer getSize() { + return size; + } - /** Binlog文件名 */ - @SerializedName("Name") - private String name; + public void setSize(Integer size) { + this.size = size; + } + + public Integer getBeginTime() { + return beginTime; + } - /** Binlog文件大小 */ - @SerializedName("Size") - private Integer size; + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } - /** Binlog文件生成时间(时间戳) */ - @SerializedName("BeginTime") - private Integer beginTime; + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + } +} - /** Binlog文件结束时间(时间戳) */ - @SerializedName("EndTime") - private Integer endTime; - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public Integer getSize() { - return size; - } - public void setSize(Integer size) { - this.size = size; - } - public Integer getBeginTime() { - return beginTime; - } - public void setBeginTime(Integer beginTime) { - this.beginTime = beginTime; - } - public Integer getEndTime() { - return endTime; - } - public void setEndTime(Integer endTime) { - this.endTime = endTime; - } - } -} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceLogRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceLogRequest.java index db9756ad..dada6d9b 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceLogRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceLogRequest.java @@ -1,61 +1,93 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBInstanceLogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例ID */ + + + + /** + * 实例ID + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 查询的日志开始的时间戳(Unix Timestamp)。对于实时查询,这个参数应该是上次轮询请求时的时间戳,后台会返回从该值到当前时间的日志内容。 */ + + + + /** + * 查询的日志开始的时间戳(Unix Timestamp)。对于实时查询,这个参数应该是上次轮询请求时的时间戳,后台会返回从该值到当前时间的日志内容。 + */ @NotEmpty @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询日志的结束时间戳(Unix Timestamp),对于实时查询不传该值,与BeginTime的差值不超过24小时:(EndTime-BeginTime) < 24*60*60 */ + + + + /** + * 查询日志的结束时间戳(Unix Timestamp),对于实时查询不传该值,与BeginTime的差值不超过24小时:(EndTime-BeginTime) < 24*60*60 + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 查询日志的类型 error:错误日志;slow:慢日志 */ + + + + /** + * 查询日志的类型 +error:错误日志;slow:慢日志 + */ @NotEmpty @UCloudParam("LogType") private String logType; - + + public String getRegion() { return region; } @@ -63,7 +95,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -71,7 +103,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -79,7 +111,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -87,7 +119,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Integer getBeginTime() { return beginTime; } @@ -95,7 +127,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -103,7 +135,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public String getLogType() { return logType; } @@ -111,4 +143,14 @@ public String getLogType() { public void setLogType(String logType) { this.logType = logType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceLogResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceLogResponse.java index 428a0c4c..48343964 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceLogResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceLogResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUDBInstanceLogResponse extends Response { - /** 查询到的日志内容,一段纯文本 */ + + + /** + * 查询到的日志内容,一段纯文本 + */ @SerializedName("Log") private String log; - - /** 此次查询到的日志的下一个时间,用于下一次轮询时的BeginTime参数;如果日志查询结束则返回为空,前端结束查询 */ + + + + /** + * 此次查询到的日志的下一个时间,用于下一次轮询时的BeginTime参数;如果日志查询结束则返回为空,前端结束查询 + */ @SerializedName("NextTime") private String nextTime; - + + public String getLog() { return log; } @@ -35,7 +49,7 @@ public String getLog() { public void setLog(String log) { this.log = log; } - + public String getNextTime() { return nextTime; } @@ -43,4 +57,14 @@ public String getNextTime() { public void setNextTime(String nextTime) { this.nextTime = nextTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstancePriceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstancePriceRequest.java index d633d702..f8f018e1 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstancePriceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstancePriceRequest.java @@ -1,74 +1,128 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBInstancePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 内存限制(MB),单位为MB.目前支持:2000-96000 */ + + + + /** + * 内存限制(MB),单位为MB.目前支持:2000-96000 + */ @NotEmpty @UCloudParam("MemoryLimit") private Integer memoryLimit; - - /** 磁盘空间(GB),暂时支持20(GB) - 3000(GB), 输入不带单位 */ + + + + /** + * 磁盘空间(GB),暂时支持20(GB) - 3000(GB), 输入不带单位 + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; - - /** UDB实例的DB版本字符串 */ + + + + /** + * UDB实例的DB版本字符串 + */ @NotEmpty @UCloudParam("DBTypeId") private String dbTypeId; - - /** 购买DB实例数量,最大数量为10台, 默认为1台 */ + + + + /** + * 购买DB实例数量,最大数量为10台, 默认为1台 + */ @UCloudParam("Count") private Integer count; - - /** Year,按年付费; Month,按月付费 Dynamic,按需付费(需开启权限) Trial,试用(需开启权限) 默认为月付 */ + + + + /** + * Year,按年付费; +Month,按月付费 +Dynamic,按需付费(需开启权限) +Trial,试用(需开启权限) +默认为月付 + */ @UCloudParam("ChargeType") private String chargeType; - - /** DB购买多少个"计费时间单位",默认值为1。比如:买2个月,Quantity就是2。如果计费单位是“按月”,并且Quantity为0,表示“购买到月底” */ + + + + /** + * DB购买多少个"计费时间单位",默认值为1。比如:买2个月,Quantity就是2。如果计费单位是“按月”,并且Quantity为0,表示“购买到月底” + */ @UCloudParam("Quantity") private Integer quantity; - - /** SSD类型,可选值为"SATA"、“NVMe”. 默认为“SATA” */ + + + + /** + * SSD类型,可选值为"SATA"、“NVMe”. 默认为“SATA” + */ @UCloudParam("SSDType") private String ssdType; - - /** 实例的部署类型。可选值为:Normal: 普通单点实例,Slave: 从库实例,HA: 高可用部署实例,默认是Normal */ + + + + /** + * 实例的部署类型。可选值为:Normal: 普通单点实例,Slave: 从库实例,HA: 高可用部署实例,默认是Normal + */ @UCloudParam("InstanceMode") private String instanceMode; - - /** CPU个数,如果db类型为sqlserver,则为必填参数 */ + + + + /** + * CPU个数,如果db类型为sqlserver,则为必填参数 + */ @UCloudParam("CPU") private Integer cpu; - + + public String getRegion() { return region; } @@ -76,7 +130,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -84,7 +138,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public Integer getMemoryLimit() { return memoryLimit; } @@ -92,7 +146,7 @@ public Integer getMemoryLimit() { public void setMemoryLimit(Integer memoryLimit) { this.memoryLimit = memoryLimit; } - + public Integer getDiskSpace() { return diskSpace; } @@ -100,7 +154,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public String getDBTypeId() { return dbTypeId; } @@ -108,7 +162,7 @@ public String getDBTypeId() { public void setDBTypeId(String dbTypeId) { this.dbTypeId = dbTypeId; } - + public Integer getCount() { return count; } @@ -116,7 +170,7 @@ public Integer getCount() { public void setCount(Integer count) { this.count = count; } - + public String getChargeType() { return chargeType; } @@ -124,7 +178,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -132,7 +186,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getSSDType() { return ssdType; } @@ -140,7 +194,7 @@ public String getSSDType() { public void setSSDType(String ssdType) { this.ssdType = ssdType; } - + public String getInstanceMode() { return instanceMode; } @@ -148,7 +202,7 @@ public String getInstanceMode() { public void setInstanceMode(String instanceMode) { this.instanceMode = instanceMode; } - + public Integer getCPU() { return cpu; } @@ -156,4 +210,14 @@ public Integer getCPU() { public void setCPU(Integer cpu) { this.cpu = cpu; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstancePriceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstancePriceResponse.java index 96466d20..4f6a10dc 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstancePriceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstancePriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDBInstancePriceResponse extends Response { - /** 价格 参照UDBInstancePriceSet */ + + + /** + * 价格 参照UDBInstancePriceSet + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,31 +41,49 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UDBInstancePriceSet extends Response { + + + /** + * Year, Month, Dynamic,Trial + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 价格,单位为分 + */ + @SerializedName("Price") + private Integer price; + + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getPrice() { + return price; + } + + public void setPrice(Integer price) { + this.price = price; + } + + } +} + + - public static class UDBInstancePriceSet extends Response { - /** Year, Month, Dynamic,Trial */ - @SerializedName("ChargeType") - private String chargeType; - /** 价格,单位为分 */ - @SerializedName("Price") - private Integer price; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Integer getPrice() { - return price; - } - public void setPrice(Integer price) { - this.price = price; - } - } -} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceRequest.java index 259f7a6e..db438af0 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceRequest.java @@ -1,66 +1,112 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区,不填时默认全部可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区,不填时默认全部可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB种类,如果是列表操作,则需要指定,不区分大小写,其取值如下:mysql: SQL;mongo: NOSQL;postgresql: postgresql */ + + + + /** + * DB种类,如果是列表操作,则需要指定,不区分大小写,其取值如下:mysql: SQL;mongo: NOSQL;postgresql: postgresql + */ @UCloudParam("ClassType") private String classType; - - /** 分页显示起始偏移位置,列表操作时必填 */ + + + + /** + * 分页显示起始偏移位置,列表操作时必填 + */ @UCloudParam("Offset") private Integer offset; - - /** 分页显示数量,列表操作时必填 */ + + + + /** + * 分页显示数量,列表操作时必填 + */ @UCloudParam("Limit") private Integer limit; - - /** DB实例id,如果指定则获取单个db实例的描述,否则为列表操作。 指定DBId时无需填写ClassType、Offset、Limit */ + + + + /** + * DB实例id,如果指定则获取单个db实例的描述,否则为列表操作。 指定DBId时无需填写ClassType、Offset、Limit + */ @UCloudParam("DBId") private String dbId; - - /** 是否查看专区里面DB */ + + + + /** + * 是否查看专区里面DB + */ @UCloudParam("IsInUDBC") private Boolean isInUDBC; - - /** IsInUDBC为True,UDBCId为空,说明查看整个可用区的专区的db,如果UDBId不为空则只查看此专区下面的db */ + + + + /** + * IsInUDBC为True,UDBCId为空,说明查看整个可用区的专区的db,如果UDBId不为空则只查看此专区下面的db + */ @UCloudParam("UDBCId") private String udbcId; - - /** 当只获取这个特定DBId的信息时,如果有该选项,那么把这个DBId实例的所有从库信息一起拉取并返回 */ + + + + /** + * 当只获取这个特定DBId的信息时,如果有该选项,那么把这个DBId实例的所有从库信息一起拉取并返回 + */ @UCloudParam("IncludeSlaves") private Boolean includeSlaves; - + + public String getRegion() { return region; } @@ -68,7 +114,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -76,7 +122,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -84,7 +130,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClassType() { return classType; } @@ -92,7 +138,7 @@ public String getClassType() { public void setClassType(String classType) { this.classType = classType; } - + public Integer getOffset() { return offset; } @@ -100,7 +146,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -108,7 +154,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getDBId() { return dbId; } @@ -116,7 +162,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Boolean getIsInUDBC() { return isInUDBC; } @@ -124,7 +170,7 @@ public Boolean getIsInUDBC() { public void setIsInUDBC(Boolean isInUDBC) { this.isInUDBC = isInUDBC; } - + public String getUDBCId() { return udbcId; } @@ -132,7 +178,7 @@ public String getUDBCId() { public void setUDBCId(String udbcId) { this.udbcId = udbcId; } - + public Boolean getIncludeSlaves() { return includeSlaves; } @@ -140,4 +186,14 @@ public Boolean getIncludeSlaves() { public void setIncludeSlaves(Boolean includeSlaves) { this.includeSlaves = includeSlaves; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java index a2d6d7a6..eac04351 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDBInstanceResponse extends Response { - /** DB实例信息列表 UDBInstanceSet */ + + + /** + * DB实例信息列表 UDBInstanceSet + */ @SerializedName("DataSet") private List dataSet; - - /** 用户db组的数量,对于 mysql: 主从结对数量,没有slave,则只有master mongodb: 副本集数量 */ + + + + /** + * 用户db组的数量,对于 mysql: 主从结对数量,没有slave,则只有master mongodb: 副本集数量 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,1002 +57,1303 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - - public static class UDBInstanceSet extends Response { - - /** DB实例所在可用区 */ - @SerializedName("Zone") - private String zone; - - /** - * 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式 - */ - @SerializedName("ClusterRole") - private String clusterRole; - - /** DB实例id */ - @SerializedName("DBId") - private String dbId; - - /** 实例名称,至少6位 */ - @SerializedName("Name") - private String name; - - /** - * DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下: - * 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, - * 7:percona-5.6 - */ - @SerializedName("DBTypeId") - private String dbTypeId; - - /** DB实例使用的配置参数组id */ - @SerializedName("ParamGroupId") - private Integer paramGroupId; - - /** 管理员帐户名,默认root */ - @SerializedName("AdminUser") - private String adminUser; - - /** DB实例虚ip */ - @SerializedName("VirtualIP") - private String virtualIP; - - /** DB实例虚ip的mac地址 */ - @SerializedName("VirtualIPMac") - private String virtualIPMac; - - /** VPC的ID */ - @SerializedName("VPCId") - private String vpcId; - - /** 子网ID */ - @SerializedName("SubnetId") - private String subnetId; - - /** UDB数据库机型 */ - @SerializedName("InstanceType") - private String instanceType; - - /** UDB数据库机型ID (已弃用) */ - @SerializedName("InstanceTypeId") - private Integer instanceTypeId; - - /** 获取资源其他信息 */ - @SerializedName("Tag") - private String tag; - - /** 端口号,mysql默认3306,mongodb默认27017 */ - @SerializedName("Port") - private Integer port; - - /** 对mysql的slave而言是master的DBId,对master则为空, 对mongodb则是副本集id */ - @SerializedName("SrcDBId") - private String srcDBId; - - /** 备份策略,不可修改,备份文件保留的数量,默认7次 */ - @SerializedName("BackupCount") - private Integer backupCount; - - /** 备份策略,不可修改,开始时间,单位小时计,默认3点 */ - @SerializedName("BackupBeginTime") - private Integer backupBeginTime; - - /** 备份策略,一天内备份时间间隔,单位小时,默认24小时 */ - @SerializedName("BackupDuration") - private Integer backupDuration; - - /** 备份策略,备份黑名单,mongodb则不适用 */ - @SerializedName("BackupBlacklist") - private String backupBlacklist; - - /** - * DB状态标记 - * Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover - * fail:恢复失败 - */ - @SerializedName("State") - private String state; - - /** DB实例创建时间,采用UTC计时时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** DB实例修改时间,采用UTC计时时间戳 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** DB实例过期时间,采用UTC计时时间戳 */ - @SerializedName("ExpiredTime") - private Integer expiredTime; - - /** Year, Month, Dynamic,Trial,默认: Dynamic */ - @SerializedName("ChargeType") - private String chargeType; - - /** 内存限制(MB),默认根据配置机型 */ - @SerializedName("MemoryLimit") - private Integer memoryLimit; - - /** 磁盘空间(GB), 默认根据配置机型 */ - @SerializedName("DiskSpace") - private Integer diskSpace; - - /** 是否使用SSD */ - @SerializedName("UseSSD") - private Boolean useSSD; - - /** SSD类型,SATA/PCI-E/NVMe */ - @SerializedName("SSDType") - private String ssdType; - - /** DB实例角色,mysql区分master/slave,mongodb多种角色 */ - @SerializedName("Role") - private String role; - - /** DB实例磁盘已使用空间,单位GB */ - @SerializedName("DiskUsedSize") - private Double diskUsedSize; - - /** DB实例数据文件大小,单位GB */ - @SerializedName("DataFileSize") - private Double dataFileSize; - - /** DB实例系统文件大小,单位GB */ - @SerializedName("SystemFileSize") - private Double systemFileSize; - - /** DB实例日志文件大小,单位GB */ - @SerializedName("LogFileSize") - private Double logFileSize; - - /** - * 备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 - * 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能 - */ - @SerializedName("BackupDate") - private String backupDate; - - /** UDB实例模式类型, 可选值如下: “Normal”: 普通版UDB实例 “HA”: 高可用版UDB实例 */ - @SerializedName("InstanceMode") - private String instanceMode; - - /** - * 如果在需要返回从库的场景下,返回该DB实例的所有从库DB实例信息列表。列表中每一个元素的内容同UDBSlaveInstanceSet - * 。如果这个DB实例没有从库的情况下,此时返回一个空的列表 - */ - @SerializedName("DataSet") - private List dataSet; - - /** 跨可用区高可用备库所在可用区 */ - @SerializedName("BackupZone") - private String backupZone; - - /** 该实例的ipv6地址 */ - @SerializedName("IPv6Address") - private String iPv6Address; - - /** 用户转存备份到自己的UFILE配置, 结构参考UFileDataSet */ - @SerializedName("UserUFileData") - private UFileDataSet userUFileData; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getClusterRole() { - return clusterRole; - } - - public void setClusterRole(String clusterRole) { - this.clusterRole = clusterRole; - } - - public String getDBId() { - return dbId; - } - - public void setDBId(String dbId) { - this.dbId = dbId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getDBTypeId() { - return dbTypeId; - } - - public void setDBTypeId(String dbTypeId) { - this.dbTypeId = dbTypeId; - } - - public Integer getParamGroupId() { - return paramGroupId; - } - - public void setParamGroupId(Integer paramGroupId) { - this.paramGroupId = paramGroupId; - } - - public String getAdminUser() { - return adminUser; - } - - public void setAdminUser(String adminUser) { - this.adminUser = adminUser; - } - - public String getVirtualIP() { - return virtualIP; - } - - public void setVirtualIP(String virtualIP) { - this.virtualIP = virtualIP; - } - - public String getVirtualIPMac() { - return virtualIPMac; - } - - public void setVirtualIPMac(String virtualIPMac) { - this.virtualIPMac = virtualIPMac; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public String getInstanceType() { - return instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public Integer getInstanceTypeId() { - return instanceTypeId; - } - - public void setInstanceTypeId(Integer instanceTypeId) { - this.instanceTypeId = instanceTypeId; - } - - public String getTag() { - return tag; - } - - public void setTag(String tag) { - this.tag = tag; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public String getSrcDBId() { - return srcDBId; - } - - public void setSrcDBId(String srcDBId) { - this.srcDBId = srcDBId; - } - - public Integer getBackupCount() { - return backupCount; - } - - public void setBackupCount(Integer backupCount) { - this.backupCount = backupCount; - } - - public Integer getBackupBeginTime() { - return backupBeginTime; - } - - public void setBackupBeginTime(Integer backupBeginTime) { - this.backupBeginTime = backupBeginTime; - } - - public Integer getBackupDuration() { - return backupDuration; - } - - public void setBackupDuration(Integer backupDuration) { - this.backupDuration = backupDuration; - } - - public String getBackupBlacklist() { - return backupBlacklist; - } - - public void setBackupBlacklist(String backupBlacklist) { - this.backupBlacklist = backupBlacklist; - } - - public String getState() { - return state; - } - - public void setState(String state) { - this.state = state; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public Integer getModifyTime() { - return modifyTime; - } - - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - - public Integer getExpiredTime() { - return expiredTime; - } - - public void setExpiredTime(Integer expiredTime) { - this.expiredTime = expiredTime; - } - - public String getChargeType() { - return chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - - public Integer getMemoryLimit() { - return memoryLimit; - } - - public void setMemoryLimit(Integer memoryLimit) { - this.memoryLimit = memoryLimit; - } - - public Integer getDiskSpace() { - return diskSpace; - } - - public void setDiskSpace(Integer diskSpace) { - this.diskSpace = diskSpace; - } - - public Boolean getUseSSD() { - return useSSD; - } - - public void setUseSSD(Boolean useSSD) { - this.useSSD = useSSD; - } - - public String getSSDType() { - return ssdType; - } - - public void setSSDType(String ssdType) { - this.ssdType = ssdType; - } - - public String getRole() { - return role; - } - - public void setRole(String role) { - this.role = role; - } - - public Double getDiskUsedSize() { - return diskUsedSize; - } - - public void setDiskUsedSize(Double diskUsedSize) { - this.diskUsedSize = diskUsedSize; - } - - public Double getDataFileSize() { - return dataFileSize; - } - - public void setDataFileSize(Double dataFileSize) { - this.dataFileSize = dataFileSize; - } - - public Double getSystemFileSize() { - return systemFileSize; - } - - public void setSystemFileSize(Double systemFileSize) { - this.systemFileSize = systemFileSize; - } - - public Double getLogFileSize() { - return logFileSize; - } - - public void setLogFileSize(Double logFileSize) { - this.logFileSize = logFileSize; - } - - public String getBackupDate() { - return backupDate; - } - - public void setBackupDate(String backupDate) { - this.backupDate = backupDate; - } - - public String getInstanceMode() { - return instanceMode; - } - - public void setInstanceMode(String instanceMode) { - this.instanceMode = instanceMode; - } - - public List getDataSet() { - return dataSet; - } - - public void setDataSet(List dataSet) { - this.dataSet = dataSet; - } - - public String getBackupZone() { - return backupZone; - } - - public void setBackupZone(String backupZone) { - this.backupZone = backupZone; - } - - public String getIPv6Address() { - return iPv6Address; - } - - public void setIPv6Address(String iPv6Address) { - this.iPv6Address = iPv6Address; - } - - public UFileDataSet getUserUFileData() { - return userUFileData; - } - - public void setUserUFileData(UFileDataSet userUFileData) { - this.userUFileData = userUFileData; - } + + public static class UDBInstanceSet extends Response { + + + /** + * DB实例所在可用区 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式 + */ + @SerializedName("ClusterRole") + private String clusterRole; + + + + /** + * DB实例id + */ + @SerializedName("DBId") + private String dbId; + + + + /** + * 实例名称,至少6位 + */ + @SerializedName("Name") + private String name; + + + + /** + * DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下: 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, 7:percona-5.6 + */ + @SerializedName("DBTypeId") + private String dbTypeId; + + + + /** + * DB实例使用的配置参数组id + */ + @SerializedName("ParamGroupId") + private Integer paramGroupId; + + + + /** + * 管理员帐户名,默认root + */ + @SerializedName("AdminUser") + private String adminUser; + + + + /** + * DB实例虚ip + */ + @SerializedName("VirtualIP") + private String virtualIP; + + + + /** + * DB实例虚ip的mac地址 + */ + @SerializedName("VirtualIPMac") + private String virtualIPMac; + + + + /** + * VPC的ID + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 子网ID + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * UDB数据库机型 + */ + @SerializedName("InstanceType") + private String instanceType; + + + + /** + * UDB数据库机型ID (已弃用) + */ + @SerializedName("InstanceTypeId") + private Integer instanceTypeId; + + + + /** + * 获取资源其他信息 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 端口号,mysql默认3306,mongodb默认27017 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * 对mysql的slave而言是master的DBId,对master则为空, 对mongodb则是副本集id + */ + @SerializedName("SrcDBId") + private String srcDBId; + + + + /** + * 备份策略,不可修改,备份文件保留的数量,默认7次 + */ + @SerializedName("BackupCount") + private Integer backupCount; + + + + /** + * 备份策略,不可修改,开始时间,单位小时计,默认3点 + */ + @SerializedName("BackupBeginTime") + private Integer backupBeginTime; + + + + /** + * 备份策略,一天内备份时间间隔,单位小时,默认24小时 + */ + @SerializedName("BackupDuration") + private Integer backupDuration; + + + + /** + * 备份策略,备份黑名单,mongodb则不适用 + */ + @SerializedName("BackupBlacklist") + private String backupBlacklist; + + + + /** + * DB状态标记 Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover fail:恢复失败 + */ + @SerializedName("State") + private String state; + + + + /** + * DB实例创建时间,采用UTC计时时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * DB实例修改时间,采用UTC计时时间戳 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * DB实例过期时间,采用UTC计时时间戳 + */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + + + /** + * Year, Month, Dynamic,Trial,默认: Dynamic + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 内存限制(MB),默认根据配置机型 + */ + @SerializedName("MemoryLimit") + private Integer memoryLimit; + + + + /** + * 磁盘空间(GB), 默认根据配置机型 + */ + @SerializedName("DiskSpace") + private Integer diskSpace; + + + + /** + * 是否使用SSD + */ + @SerializedName("UseSSD") + private Boolean useSSD; + + + + /** + * SSD类型,SATA/PCI-E/NVMe + */ + @SerializedName("SSDType") + private String ssdType; + + + + /** + * DB实例角色,mysql区分master/slave,mongodb多种角色 + */ + @SerializedName("Role") + private String role; + + + + /** + * DB实例磁盘已使用空间,单位GB + */ + @SerializedName("DiskUsedSize") + private Double diskUsedSize; + + + + /** + * DB实例数据文件大小,单位GB + */ + @SerializedName("DataFileSize") + private Double dataFileSize; + + + + /** + * DB实例系统文件大小,单位GB + */ + @SerializedName("SystemFileSize") + private Double systemFileSize; + + + + /** + * DB实例日志文件大小,单位GB + */ + @SerializedName("LogFileSize") + private Double logFileSize; + + + + /** + * 备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能 + */ + @SerializedName("BackupDate") + private String backupDate; + + + + /** + * UDB实例模式类型, 可选值如下: “Normal”: 普通版UDB实例 “HA”: 高可用版UDB实例 + */ + @SerializedName("InstanceMode") + private String instanceMode; + + + + /** + * 如果在需要返回从库的场景下,返回该DB实例的所有从库DB实例信息列表。列表中每一个元素的内容同UDBSlaveInstanceSet 。如果这个DB实例没有从库的情况下,此时返回一个空的列表 + */ + @SerializedName("DataSet") + private List dataSet; + + + + /** + * 跨可用区高可用备库所在可用区 + */ + @SerializedName("BackupZone") + private String backupZone; + + + + /** + * 该实例的ipv6地址 + */ + @SerializedName("IPv6Address") + private String iPv6Address; + + + + /** + * 用户转存备份到自己的UFILE配置, 结构参考UFileDataSet + */ + @SerializedName("UserUFileData") + private UFileDataSet userUFileData; + + + public String getZone() { + return zone; } - public static class UDBSlaveInstanceSet extends Response { + public void setZone(String zone) { + this.zone = zone; + } + + public String getClusterRole() { + return clusterRole; + } - /** 可用区 */ - @SerializedName("Zone") - private String zone; + public void setClusterRole(String clusterRole) { + this.clusterRole = clusterRole; + } + + public String getDBId() { + return dbId; + } - /** 延时从库时长 */ - @SerializedName("ReplicationDelaySeconds") - private Integer replicationDelaySeconds; + public void setDBId(String dbId) { + this.dbId = dbId; + } + + public String getName() { + return name; + } - /** DB实例id */ - @SerializedName("DBId") - private String dbId; + public void setName(String name) { + this.name = name; + } + + public String getDBTypeId() { + return dbTypeId; + } - /** 实例名称,至少6位 */ - @SerializedName("Name") - private String name; + public void setDBTypeId(String dbTypeId) { + this.dbTypeId = dbTypeId; + } + + public Integer getParamGroupId() { + return paramGroupId; + } - /** - * DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下: - * 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, - * 7:percona-5.6 - */ - @SerializedName("DBTypeId") - private String dbTypeId; + public void setParamGroupId(Integer paramGroupId) { + this.paramGroupId = paramGroupId; + } + + public String getAdminUser() { + return adminUser; + } - /** DB实例使用的配置参数组id */ - @SerializedName("ParamGroupId") - private Integer paramGroupId; - - /** 管理员帐户名,默认root */ - @SerializedName("AdminUser") - private String adminUser; - - /** DB实例虚ip */ - @SerializedName("VirtualIP") - private String virtualIP; - - /** DB实例虚ip的mac地址 */ - @SerializedName("VirtualIPMac") - private String virtualIPMac; - - /** 端口号,mysql默认3306,mongodb默认27017 */ - @SerializedName("Port") - private Integer port; - - /** 对mysql的slave而言是master的DBId,对master则为空, 对mongodb则是副本集id */ - @SerializedName("SrcDBId") - private String srcDBId; - - /** 备份策略,不可修改,备份文件保留的数量,默认7次 */ - @SerializedName("BackupCount") - private Integer backupCount; - - /** 备份策略,不可修改,开始时间,单位小时计,默认3点 */ - @SerializedName("BackupBeginTime") - private Integer backupBeginTime; - - /** 备份策略,一天内备份时间间隔,单位小时,默认24小时 */ - @SerializedName("BackupDuration") - private Integer backupDuration; - - /** 备份策略,备份黑名单,mongodb则不适用 */ - @SerializedName("BackupBlacklist") - private String backupBlacklist; - - /** - * DB状态标记 - * Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover - * fail:恢复失败 - */ - @SerializedName("State") - private String state; - - /** DB实例创建时间,采用UTC计时时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** DB实例修改时间,采用UTC计时时间戳 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** DB实例过期时间,采用UTC计时时间戳 */ - @SerializedName("ExpiredTime") - private Integer expiredTime; - - /** Year, Month, Dynamic,Trial,默认: Dynamic */ - @SerializedName("ChargeType") - private String chargeType; - - /** 内存限制(MB),默认根据配置机型 */ - @SerializedName("MemoryLimit") - private Integer memoryLimit; - - /** 磁盘空间(GB), 默认根据配置机型 */ - @SerializedName("DiskSpace") - private Integer diskSpace; - - /** 是否使用SSD */ - @SerializedName("UseSSD") - private Boolean useSSD; - - /** SSD类型,SATA/PCI-E */ - @SerializedName("SSDType") - private String ssdType; - - /** DB实例角色,mysql区分master/slave,mongodb多种角色 */ - @SerializedName("Role") - private String role; - - /** DB实例磁盘已使用空间,单位GB */ - @SerializedName("DiskUsedSize") - private Double diskUsedSize; - - /** DB实例数据文件大小,单位GB */ - @SerializedName("DataFileSize") - private Double dataFileSize; - - /** DB实例系统文件大小,单位GB */ - @SerializedName("SystemFileSize") - private Double systemFileSize; - - /** DB实例日志文件大小,单位GB */ - @SerializedName("LogFileSize") - private Double logFileSize; - - /** - * 备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 - * 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能 - */ - @SerializedName("BackupDate") - private String backupDate; - - /** UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例;"HA": 高可用版UDB实例 */ - @SerializedName("InstanceMode") - private String instanceMode; - - /** - * 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式 - */ - @SerializedName("ClusterRole") - private String clusterRole; - - /** 子网ID */ - @SerializedName("SubnetId") - private String subnetId; - - /** VPC的ID */ - @SerializedName("VPCId") - private String vpcId; - - /** UDB数据库机型 */ - @SerializedName("InstanceType") - private String instanceType; - - /** UDB数据库机型ID */ - @SerializedName("InstanceTypeId") - private Integer instanceTypeId; - - /** 获取资源其他信息 */ - @SerializedName("Tag") - private String tag; - - /** 获取该实例的IPv6地址 */ - @SerializedName("IPv6Address") - private String iPv6Address; - - public String getZone() { - return zone; - } + public void setAdminUser(String adminUser) { + this.adminUser = adminUser; + } + + public String getVirtualIP() { + return virtualIP; + } - public void setZone(String zone) { - this.zone = zone; - } + public void setVirtualIP(String virtualIP) { + this.virtualIP = virtualIP; + } + + public String getVirtualIPMac() { + return virtualIPMac; + } - public Integer getReplicationDelaySeconds() { - return replicationDelaySeconds; - } + public void setVirtualIPMac(String virtualIPMac) { + this.virtualIPMac = virtualIPMac; + } + + public String getVPCId() { + return vpcId; + } - public void setReplicationDelaySeconds(Integer replicationDelaySeconds) { - this.replicationDelaySeconds = replicationDelaySeconds; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } - public String getDBId() { - return dbId; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getInstanceType() { + return instanceType; + } - public void setDBId(String dbId) { - this.dbId = dbId; - } + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Integer getInstanceTypeId() { + return instanceTypeId; + } - public String getName() { - return name; - } + public void setInstanceTypeId(Integer instanceTypeId) { + this.instanceTypeId = instanceTypeId; + } + + public String getTag() { + return tag; + } - public void setName(String name) { - this.name = name; - } + public void setTag(String tag) { + this.tag = tag; + } + + public Integer getPort() { + return port; + } - public String getDBTypeId() { - return dbTypeId; - } + public void setPort(Integer port) { + this.port = port; + } + + public String getSrcDBId() { + return srcDBId; + } - public void setDBTypeId(String dbTypeId) { - this.dbTypeId = dbTypeId; - } + public void setSrcDBId(String srcDBId) { + this.srcDBId = srcDBId; + } + + public Integer getBackupCount() { + return backupCount; + } - public Integer getParamGroupId() { - return paramGroupId; - } + public void setBackupCount(Integer backupCount) { + this.backupCount = backupCount; + } + + public Integer getBackupBeginTime() { + return backupBeginTime; + } - public void setParamGroupId(Integer paramGroupId) { - this.paramGroupId = paramGroupId; - } + public void setBackupBeginTime(Integer backupBeginTime) { + this.backupBeginTime = backupBeginTime; + } + + public Integer getBackupDuration() { + return backupDuration; + } - public String getAdminUser() { - return adminUser; - } + public void setBackupDuration(Integer backupDuration) { + this.backupDuration = backupDuration; + } + + public String getBackupBlacklist() { + return backupBlacklist; + } - public void setAdminUser(String adminUser) { - this.adminUser = adminUser; - } + public void setBackupBlacklist(String backupBlacklist) { + this.backupBlacklist = backupBlacklist; + } + + public String getState() { + return state; + } - public String getVirtualIP() { - return virtualIP; - } + public void setState(String state) { + this.state = state; + } + + public Integer getCreateTime() { + return createTime; + } - public void setVirtualIP(String virtualIP) { - this.virtualIP = virtualIP; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public String getVirtualIPMac() { - return virtualIPMac; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } - public void setVirtualIPMac(String virtualIPMac) { - this.virtualIPMac = virtualIPMac; - } + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public String getChargeType() { + return chargeType; + } - public Integer getPort() { - return port; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getMemoryLimit() { + return memoryLimit; + } - public void setPort(Integer port) { - this.port = port; - } + public void setMemoryLimit(Integer memoryLimit) { + this.memoryLimit = memoryLimit; + } + + public Integer getDiskSpace() { + return diskSpace; + } - public String getSrcDBId() { - return srcDBId; - } + public void setDiskSpace(Integer diskSpace) { + this.diskSpace = diskSpace; + } + + public Boolean getUseSSD() { + return useSSD; + } - public void setSrcDBId(String srcDBId) { - this.srcDBId = srcDBId; - } + public void setUseSSD(Boolean useSSD) { + this.useSSD = useSSD; + } + + public String getSSDType() { + return ssdType; + } - public Integer getBackupCount() { - return backupCount; - } + public void setSSDType(String ssdType) { + this.ssdType = ssdType; + } + + public String getRole() { + return role; + } - public void setBackupCount(Integer backupCount) { - this.backupCount = backupCount; - } + public void setRole(String role) { + this.role = role; + } + + public Double getDiskUsedSize() { + return diskUsedSize; + } - public Integer getBackupBeginTime() { - return backupBeginTime; - } + public void setDiskUsedSize(Double diskUsedSize) { + this.diskUsedSize = diskUsedSize; + } + + public Double getDataFileSize() { + return dataFileSize; + } - public void setBackupBeginTime(Integer backupBeginTime) { - this.backupBeginTime = backupBeginTime; - } + public void setDataFileSize(Double dataFileSize) { + this.dataFileSize = dataFileSize; + } + + public Double getSystemFileSize() { + return systemFileSize; + } - public Integer getBackupDuration() { - return backupDuration; - } + public void setSystemFileSize(Double systemFileSize) { + this.systemFileSize = systemFileSize; + } + + public Double getLogFileSize() { + return logFileSize; + } - public void setBackupDuration(Integer backupDuration) { - this.backupDuration = backupDuration; - } + public void setLogFileSize(Double logFileSize) { + this.logFileSize = logFileSize; + } + + public String getBackupDate() { + return backupDate; + } - public String getBackupBlacklist() { - return backupBlacklist; - } + public void setBackupDate(String backupDate) { + this.backupDate = backupDate; + } + + public String getInstanceMode() { + return instanceMode; + } - public void setBackupBlacklist(String backupBlacklist) { - this.backupBlacklist = backupBlacklist; - } + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } + + public List getDataSet() { + return dataSet; + } - public String getState() { - return state; - } + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public String getBackupZone() { + return backupZone; + } - public void setState(String state) { - this.state = state; - } + public void setBackupZone(String backupZone) { + this.backupZone = backupZone; + } + + public String getIPv6Address() { + return iPv6Address; + } - public Integer getCreateTime() { - return createTime; - } + public void setIPv6Address(String iPv6Address) { + this.iPv6Address = iPv6Address; + } + + public UFileDataSet getUserUFileData() { + return userUFileData; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setUserUFileData(UFileDataSet userUFileData) { + this.userUFileData = userUFileData; + } + + } + public static class UDBSlaveInstanceSet extends Response { + + + /** + * 可用区 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 延时从库时长 + */ + @SerializedName("ReplicationDelaySeconds") + private Integer replicationDelaySeconds; + + + + /** + * DB实例id + */ + @SerializedName("DBId") + private String dbId; + + + + /** + * 实例名称,至少6位 + */ + @SerializedName("Name") + private String name; + + + + /** + * DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下: 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, 7:percona-5.6 + */ + @SerializedName("DBTypeId") + private String dbTypeId; + + + + /** + * DB实例使用的配置参数组id + */ + @SerializedName("ParamGroupId") + private Integer paramGroupId; + + + + /** + * 管理员帐户名,默认root + */ + @SerializedName("AdminUser") + private String adminUser; + + + + /** + * DB实例虚ip + */ + @SerializedName("VirtualIP") + private String virtualIP; + + + + /** + * DB实例虚ip的mac地址 + */ + @SerializedName("VirtualIPMac") + private String virtualIPMac; + + + + /** + * 端口号,mysql默认3306,mongodb默认27017 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * 对mysql的slave而言是master的DBId,对master则为空, 对mongodb则是副本集id + */ + @SerializedName("SrcDBId") + private String srcDBId; + + + + /** + * 备份策略,不可修改,备份文件保留的数量,默认7次 + */ + @SerializedName("BackupCount") + private Integer backupCount; + + + + /** + * 备份策略,不可修改,开始时间,单位小时计,默认3点 + */ + @SerializedName("BackupBeginTime") + private Integer backupBeginTime; + + + + /** + * 备份策略,一天内备份时间间隔,单位小时,默认24小时 + */ + @SerializedName("BackupDuration") + private Integer backupDuration; + + + + /** + * 备份策略,备份黑名单,mongodb则不适用 + */ + @SerializedName("BackupBlacklist") + private String backupBlacklist; + + + + /** + * DB状态标记 Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover fail:恢复失败 + */ + @SerializedName("State") + private String state; + + + + /** + * DB实例创建时间,采用UTC计时时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * DB实例修改时间,采用UTC计时时间戳 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * DB实例过期时间,采用UTC计时时间戳 + */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + + + /** + * Year, Month, Dynamic,Trial,默认: Dynamic + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 内存限制(MB),默认根据配置机型 + */ + @SerializedName("MemoryLimit") + private Integer memoryLimit; + + + + /** + * 磁盘空间(GB), 默认根据配置机型 + */ + @SerializedName("DiskSpace") + private Integer diskSpace; + + + + /** + * 是否使用SSD + */ + @SerializedName("UseSSD") + private Boolean useSSD; + + + + /** + * SSD类型,SATA/PCI-E + */ + @SerializedName("SSDType") + private String ssdType; + + + + /** + * DB实例角色,mysql区分master/slave,mongodb多种角色 + */ + @SerializedName("Role") + private String role; + + + + /** + * DB实例磁盘已使用空间,单位GB + */ + @SerializedName("DiskUsedSize") + private Double diskUsedSize; + + + + /** + * DB实例数据文件大小,单位GB + */ + @SerializedName("DataFileSize") + private Double dataFileSize; + + + + /** + * DB实例系统文件大小,单位GB + */ + @SerializedName("SystemFileSize") + private Double systemFileSize; + + + + /** + * DB实例日志文件大小,单位GB + */ + @SerializedName("LogFileSize") + private Double logFileSize; + + + + /** + * 备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能 + */ + @SerializedName("BackupDate") + private String backupDate; + + + + /** + * UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例;"HA": 高可用版UDB实例 + */ + @SerializedName("InstanceMode") + private String instanceMode; + + + + /** + * 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式 + */ + @SerializedName("ClusterRole") + private String clusterRole; + + + + /** + * 子网ID + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * VPC的ID + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * UDB数据库机型 + */ + @SerializedName("InstanceType") + private String instanceType; + + + + /** + * UDB数据库机型ID + */ + @SerializedName("InstanceTypeId") + private Integer instanceTypeId; + + + + /** + * 获取资源其他信息 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 获取该实例的IPv6地址 + */ + @SerializedName("IPv6Address") + private String iPv6Address; + + + public String getZone() { + return zone; + } - public Integer getModifyTime() { - return modifyTime; - } + public void setZone(String zone) { + this.zone = zone; + } + + public Integer getReplicationDelaySeconds() { + return replicationDelaySeconds; + } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } + public void setReplicationDelaySeconds(Integer replicationDelaySeconds) { + this.replicationDelaySeconds = replicationDelaySeconds; + } + + public String getDBId() { + return dbId; + } - public Integer getExpiredTime() { - return expiredTime; - } + public void setDBId(String dbId) { + this.dbId = dbId; + } + + public String getName() { + return name; + } - public void setExpiredTime(Integer expiredTime) { - this.expiredTime = expiredTime; - } + public void setName(String name) { + this.name = name; + } + + public String getDBTypeId() { + return dbTypeId; + } - public String getChargeType() { - return chargeType; - } + public void setDBTypeId(String dbTypeId) { + this.dbTypeId = dbTypeId; + } + + public Integer getParamGroupId() { + return paramGroupId; + } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } + public void setParamGroupId(Integer paramGroupId) { + this.paramGroupId = paramGroupId; + } + + public String getAdminUser() { + return adminUser; + } - public Integer getMemoryLimit() { - return memoryLimit; - } + public void setAdminUser(String adminUser) { + this.adminUser = adminUser; + } + + public String getVirtualIP() { + return virtualIP; + } - public void setMemoryLimit(Integer memoryLimit) { - this.memoryLimit = memoryLimit; - } + public void setVirtualIP(String virtualIP) { + this.virtualIP = virtualIP; + } + + public String getVirtualIPMac() { + return virtualIPMac; + } - public Integer getDiskSpace() { - return diskSpace; - } + public void setVirtualIPMac(String virtualIPMac) { + this.virtualIPMac = virtualIPMac; + } + + public Integer getPort() { + return port; + } - public void setDiskSpace(Integer diskSpace) { - this.diskSpace = diskSpace; - } + public void setPort(Integer port) { + this.port = port; + } + + public String getSrcDBId() { + return srcDBId; + } - public Boolean getUseSSD() { - return useSSD; - } + public void setSrcDBId(String srcDBId) { + this.srcDBId = srcDBId; + } + + public Integer getBackupCount() { + return backupCount; + } - public void setUseSSD(Boolean useSSD) { - this.useSSD = useSSD; - } + public void setBackupCount(Integer backupCount) { + this.backupCount = backupCount; + } + + public Integer getBackupBeginTime() { + return backupBeginTime; + } - public String getSSDType() { - return ssdType; - } + public void setBackupBeginTime(Integer backupBeginTime) { + this.backupBeginTime = backupBeginTime; + } + + public Integer getBackupDuration() { + return backupDuration; + } - public void setSSDType(String ssdType) { - this.ssdType = ssdType; - } + public void setBackupDuration(Integer backupDuration) { + this.backupDuration = backupDuration; + } + + public String getBackupBlacklist() { + return backupBlacklist; + } - public String getRole() { - return role; - } + public void setBackupBlacklist(String backupBlacklist) { + this.backupBlacklist = backupBlacklist; + } + + public String getState() { + return state; + } - public void setRole(String role) { - this.role = role; - } + public void setState(String state) { + this.state = state; + } + + public Integer getCreateTime() { + return createTime; + } - public Double getDiskUsedSize() { - return diskUsedSize; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public void setDiskUsedSize(Double diskUsedSize) { - this.diskUsedSize = diskUsedSize; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } - public Double getDataFileSize() { - return dataFileSize; - } + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public String getChargeType() { + return chargeType; + } - public void setDataFileSize(Double dataFileSize) { - this.dataFileSize = dataFileSize; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getMemoryLimit() { + return memoryLimit; + } - public Double getSystemFileSize() { - return systemFileSize; - } + public void setMemoryLimit(Integer memoryLimit) { + this.memoryLimit = memoryLimit; + } + + public Integer getDiskSpace() { + return diskSpace; + } - public void setSystemFileSize(Double systemFileSize) { - this.systemFileSize = systemFileSize; - } + public void setDiskSpace(Integer diskSpace) { + this.diskSpace = diskSpace; + } + + public Boolean getUseSSD() { + return useSSD; + } - public Double getLogFileSize() { - return logFileSize; - } + public void setUseSSD(Boolean useSSD) { + this.useSSD = useSSD; + } + + public String getSSDType() { + return ssdType; + } - public void setLogFileSize(Double logFileSize) { - this.logFileSize = logFileSize; - } + public void setSSDType(String ssdType) { + this.ssdType = ssdType; + } + + public String getRole() { + return role; + } - public String getBackupDate() { - return backupDate; - } + public void setRole(String role) { + this.role = role; + } + + public Double getDiskUsedSize() { + return diskUsedSize; + } - public void setBackupDate(String backupDate) { - this.backupDate = backupDate; - } + public void setDiskUsedSize(Double diskUsedSize) { + this.diskUsedSize = diskUsedSize; + } + + public Double getDataFileSize() { + return dataFileSize; + } - public String getInstanceMode() { - return instanceMode; - } + public void setDataFileSize(Double dataFileSize) { + this.dataFileSize = dataFileSize; + } + + public Double getSystemFileSize() { + return systemFileSize; + } - public void setInstanceMode(String instanceMode) { - this.instanceMode = instanceMode; - } + public void setSystemFileSize(Double systemFileSize) { + this.systemFileSize = systemFileSize; + } + + public Double getLogFileSize() { + return logFileSize; + } - public String getClusterRole() { - return clusterRole; - } + public void setLogFileSize(Double logFileSize) { + this.logFileSize = logFileSize; + } + + public String getBackupDate() { + return backupDate; + } - public void setClusterRole(String clusterRole) { - this.clusterRole = clusterRole; - } + public void setBackupDate(String backupDate) { + this.backupDate = backupDate; + } + + public String getInstanceMode() { + return instanceMode; + } - public String getSubnetId() { - return subnetId; - } + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } + + public String getClusterRole() { + return clusterRole; + } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } + public void setClusterRole(String clusterRole) { + this.clusterRole = clusterRole; + } + + public String getSubnetId() { + return subnetId; + } - public String getVPCId() { - return vpcId; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getVPCId() { + return vpcId; + } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getInstanceType() { + return instanceType; + } - public String getInstanceType() { - return instanceType; - } + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Integer getInstanceTypeId() { + return instanceTypeId; + } - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } + public void setInstanceTypeId(Integer instanceTypeId) { + this.instanceTypeId = instanceTypeId; + } + + public String getTag() { + return tag; + } - public Integer getInstanceTypeId() { - return instanceTypeId; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getIPv6Address() { + return iPv6Address; + } - public void setInstanceTypeId(Integer instanceTypeId) { - this.instanceTypeId = instanceTypeId; - } + public void setIPv6Address(String iPv6Address) { + this.iPv6Address = iPv6Address; + } + + } + public static class UFileDataSet extends Response { + + + /** + * Ufile的令牌tokenid + */ + @SerializedName("TokenID") + private String tokenID; + + + + /** + * bucket名称 + */ + @SerializedName("Bucket") + private String bucket; + + + public String getTokenID() { + return tokenID; + } - public String getTag() { - return tag; - } + public void setTokenID(String tokenID) { + this.tokenID = tokenID; + } + + public String getBucket() { + return bucket; + } - public void setTag(String tag) { - this.tag = tag; + public void setBucket(String bucket) { + this.bucket = bucket; + } + } +} - public String getIPv6Address() { - return iPv6Address; - } - public void setIPv6Address(String iPv6Address) { - this.iPv6Address = iPv6Address; - } - } - public static class UFileDataSet extends Response { - /** Ufile的令牌tokenid */ - @SerializedName("TokenID") - private String tokenID; - /** bucket名称 */ - @SerializedName("Bucket") - private String bucket; - public String getTokenID() { - return tokenID; - } - public void setTokenID(String tokenID) { - this.tokenID = tokenID; - } - public String getBucket() { - return bucket; - } - public void setBucket(String bucket) { - this.bucket = bucket; - } - } -} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceStateRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceStateRequest.java index 3bc27f15..167a8449 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceStateRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceStateRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBInstanceStateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * 实例的Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -53,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -61,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -69,4 +91,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceStateResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceStateResponse.java index a16a0fe3..ca715965 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceStateResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceStateResponse.java @@ -1,32 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUDBInstanceStateResponse extends Response { + + /** - * DB状态标记 Init:初始化中;Fail:安装失败; Starting:启动中; Running : 运行 ;Shutdown:关闭中; Shutoff :已关闭; - * Delete:已删除; Upgrading:升级中; Promoting: 提升为独库进行中; Recovering: 恢复中; Recover fail:恢复失败。 + * DB状态标记 Init:初始化中;Fail:安装失败; Starting:启动中; Running : 运行 ;Shutdown:关闭中; Shutoff :已关闭; Delete:已删除; Upgrading:升级中; Promoting: 提升为独库进行中; Recovering: 恢复中; Recover fail:恢复失败。 */ @SerializedName("State") private String state; - + + public String getState() { return state; } @@ -34,4 +41,14 @@ public String getState() { public void setState(String state) { this.state = state; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceRequest.java index 8a5401a0..a80837c1 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceRequest.java @@ -1,64 +1,99 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBInstanceUpgradePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的Id */ + + + + /** + * 实例的Id + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 内存限制(MB) */ + + + + /** + * 内存限制(MB) + */ @NotEmpty @UCloudParam("MemoryLimit") private Integer memoryLimit; - - /** 磁盘空间(GB), 暂时支持20G - 500G */ + + + + /** + * 磁盘空间(GB), 暂时支持20G - 500G + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; - - /** "SATA", "NVMe" */ + + + + /** + * "SATA", "NVMe" + */ @UCloudParam("SSDType") private String ssdType; - - /** 获取指定时间开始后面的升级价格, 不填的话 是默认当前时间 */ + + + + /** + * 获取指定时间开始后面的升级价格, 不填的话 是默认当前时间 + */ @UCloudParam("OrderStartTime") private Integer orderStartTime; - + + public String getRegion() { return region; } @@ -66,7 +101,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -74,7 +109,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -82,7 +117,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -90,7 +125,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Integer getMemoryLimit() { return memoryLimit; } @@ -98,7 +133,7 @@ public Integer getMemoryLimit() { public void setMemoryLimit(Integer memoryLimit) { this.memoryLimit = memoryLimit; } - + public Integer getDiskSpace() { return diskSpace; } @@ -106,7 +141,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public String getSSDType() { return ssdType; } @@ -114,7 +149,7 @@ public String getSSDType() { public void setSSDType(String ssdType) { this.ssdType = ssdType; } - + public Integer getOrderStartTime() { return orderStartTime; } @@ -122,4 +157,14 @@ public Integer getOrderStartTime() { public void setOrderStartTime(Integer orderStartTime) { this.orderStartTime = orderStartTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceResponse.java index 032387ef..a6a66fce 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUDBInstanceUpgradePriceResponse extends Response { - /** 价格,单位为分 */ + + + /** + * 价格,单位为分 + */ @SerializedName("Price") private Integer price; - + + public Integer getPrice() { return price; } @@ -31,4 +41,14 @@ public Integer getPrice() { public void setPrice(Integer price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogBackupURLRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogBackupURLRequest.java index fc102ae3..9ca3754b 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogBackupURLRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogBackupURLRequest.java @@ -1,51 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBLogBackupURLRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id */ + + + + /** + * DB实例Id + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** DB实例日志备份ID, 可以从DescribeUDBLogPackage结果当中获得。 */ + + + + /** + * DB实例日志备份ID, 可以从DescribeUDBLogPackage结果当中获得。 + */ @NotEmpty @UCloudParam("BackupId") private Integer backupId; - + + public String getRegion() { return region; } @@ -53,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -61,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -69,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -77,7 +100,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Integer getBackupId() { return backupId; } @@ -85,4 +108,14 @@ public Integer getBackupId() { public void setBackupId(Integer backupId) { this.backupId = backupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogBackupURLResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogBackupURLResponse.java index 5384a656..2b28d5b2 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogBackupURLResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogBackupURLResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUDBLogBackupURLResponse extends Response { - /** 备份外网URL */ + + + /** + * 备份外网URL + */ @SerializedName("BackupPath") private String backupPath; - - /** 备份用户网URL */ + + + + /** + * 备份用户网URL + */ @SerializedName("UsernetPath") private String usernetPath; - + + public String getBackupPath() { return backupPath; } @@ -35,7 +49,7 @@ public String getBackupPath() { public void setBackupPath(String backupPath) { this.backupPath = backupPath; } - + public String getUsernetPath() { return usernetPath; } @@ -43,4 +57,14 @@ public String getUsernetPath() { public void setUsernetPath(String usernetPath) { this.usernetPath = usernetPath; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogPackageRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogPackageRequest.java index 28f97c17..cdb6153e 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogPackageRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogPackageRequest.java @@ -1,72 +1,114 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeUDBLogPackageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 分页显示的起始偏移,列表操作则指定 */ + + + + /** + * 分页显示的起始偏移,列表操作则指定 + */ @NotEmpty @UCloudParam("Offset") private Integer offset; - - /** 分页显示的条目数,列表操作则指定 */ + + + + /** + * 分页显示的条目数,列表操作则指定 + */ @NotEmpty @UCloudParam("Limit") private Integer limit; - - /** 需要列出的备份文件类型,每种类型的值如下: 2 代表 BINLOG_BACKUP; 3 代表 SLOW_QUERY_BACKUP; 4 代表 ERRORLOG_BACKUP。 */ + + + + /** + * 需要列出的备份文件类型,每种类型的值如下: 2 代表 BINLOG_BACKUP; 3 代表 SLOW_QUERY_BACKUP; 4 代表 ERRORLOG_BACKUP。 + */ @UCloudParam("Type") private Integer type; - - /** Types作为Type的补充,支持多值传入,可以获取多个类型的日志记录,如:Types.0=2&Types.1=3 */ + + + + /** + * Types作为Type的补充,支持多值传入,可以获取多个类型的日志记录,如:Types.0=2&Types.1=3 + */ @UCloudParam("Types") private List types; - - /** DB实例Id,如果指定,则只获取该db的备份信息; 当Type为2时必填 */ + + + + /** + * DB实例Id,如果指定,则只获取该db的备份信息; 当Type为2时必填 + */ @UCloudParam("DBId") private String dbId; - - /** 过滤条件:起始时间(时间戳) */ + + + + /** + * 过滤条件:起始时间(时间戳) + */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 过滤条件:结束时间(时间戳) */ + + + + /** + * 过滤条件:结束时间(时间戳) + */ @UCloudParam("EndTime") private Integer endTime; - + + public String getRegion() { return region; } @@ -74,7 +116,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -82,7 +124,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -90,7 +132,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getOffset() { return offset; } @@ -98,7 +140,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -106,7 +148,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getType() { return type; } @@ -114,7 +156,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public List getTypes() { return types; } @@ -122,7 +164,7 @@ public List getTypes() { public void setTypes(List types) { this.types = types; } - + public String getDBId() { return dbId; } @@ -130,7 +172,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Integer getBeginTime() { return beginTime; } @@ -138,7 +180,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -146,4 +188,14 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogPackageResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogPackageResponse.java index 858e8975..2ed71482 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogPackageResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogPackageResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDBLogPackageResponse extends Response { - /** 备份信息 参见LogPackageDataSet */ + + + /** + * 备份信息 参见LogPackageDataSet + */ @SerializedName("DataSet") private List dataSet; - - /** 备份总数,如果指定dbid,则是该db备份总数 */ + + + + /** + * 备份总数,如果指定dbid,则是该db备份总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,139 +57,193 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class LogPackageDataSet extends Response { + + + /** + * 所在可用区 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 备份id + */ + @SerializedName("BackupId") + private Integer backupId; + + + + /** + * 备份名称 + */ + @SerializedName("BackupName") + private String backupName; + + + + /** + * 备份时间 + */ + @SerializedName("BackupTime") + private Integer backupTime; + + + + /** + * 备份文件大小 + */ + @SerializedName("BackupSize") + private Integer backupSize; + + + + /** + * 备份类型,包括2-binlog备份,3-slowlog备份 + */ + @SerializedName("BackupType") + private Integer backupType; + + + + /** + * binlog备份类型 Manual //手动备份 Auto //自动备份 + */ + @SerializedName("BinlogType") + private String binlogType; + + + + /** + * 备份状态 Backuping // 备份中 Success // 备份成功 Failed // 备份失败 Expired // 备份过期 + */ + @SerializedName("State") + private String state; + + + + /** + * dbid + */ + @SerializedName("DBId") + private String dbId; + + + + /** + * 对应的db名称 + */ + @SerializedName("DBName") + private String dbName; + + + + /** + * 跨可用区高可用备库所在可用区 + */ + @SerializedName("BackupZone") + private String backupZone; + + + public String getZone() { + return zone; + } - public static class LogPackageDataSet extends Response { - - /** 所在可用区 */ - @SerializedName("Zone") - private String zone; - - /** 备份id */ - @SerializedName("BackupId") - private Integer backupId; - - /** 备份名称 */ - @SerializedName("BackupName") - private String backupName; - - /** 备份时间 */ - @SerializedName("BackupTime") - private Integer backupTime; - - /** 备份文件大小 */ - @SerializedName("BackupSize") - private Integer backupSize; - - /** 备份类型,包括2-binlog备份,3-slowlog备份 */ - @SerializedName("BackupType") - private Integer backupType; - - /** binlog备份类型 Manual //手动备份 Auto //自动备份 */ - @SerializedName("BinlogType") - private String binlogType; - - /** 备份状态 Backuping // 备份中 Success // 备份成功 Failed // 备份失败 Expired // 备份过期 */ - @SerializedName("State") - private String state; - - /** dbid */ - @SerializedName("DBId") - private String dbId; - - /** 对应的db名称 */ - @SerializedName("DBName") - private String dbName; - - /** 跨可用区高可用备库所在可用区 */ - @SerializedName("BackupZone") - private String backupZone; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public Integer getBackupId() { - return backupId; - } + public void setZone(String zone) { + this.zone = zone; + } + + public Integer getBackupId() { + return backupId; + } - public void setBackupId(Integer backupId) { - this.backupId = backupId; - } + public void setBackupId(Integer backupId) { + this.backupId = backupId; + } + + public String getBackupName() { + return backupName; + } - public String getBackupName() { - return backupName; - } + public void setBackupName(String backupName) { + this.backupName = backupName; + } + + public Integer getBackupTime() { + return backupTime; + } - public void setBackupName(String backupName) { - this.backupName = backupName; - } + public void setBackupTime(Integer backupTime) { + this.backupTime = backupTime; + } + + public Integer getBackupSize() { + return backupSize; + } - public Integer getBackupTime() { - return backupTime; - } + public void setBackupSize(Integer backupSize) { + this.backupSize = backupSize; + } + + public Integer getBackupType() { + return backupType; + } - public void setBackupTime(Integer backupTime) { - this.backupTime = backupTime; - } + public void setBackupType(Integer backupType) { + this.backupType = backupType; + } + + public String getBinlogType() { + return binlogType; + } - public Integer getBackupSize() { - return backupSize; - } + public void setBinlogType(String binlogType) { + this.binlogType = binlogType; + } + + public String getState() { + return state; + } - public void setBackupSize(Integer backupSize) { - this.backupSize = backupSize; - } + public void setState(String state) { + this.state = state; + } + + public String getDBId() { + return dbId; + } - public Integer getBackupType() { - return backupType; - } + public void setDBId(String dbId) { + this.dbId = dbId; + } + + public String getDBName() { + return dbName; + } - public void setBackupType(Integer backupType) { - this.backupType = backupType; - } + public void setDBName(String dbName) { + this.dbName = dbName; + } + + public String getBackupZone() { + return backupZone; + } - public String getBinlogType() { - return binlogType; + public void setBackupZone(String backupZone) { + this.backupZone = backupZone; + } + } +} - public void setBinlogType(String binlogType) { - this.binlogType = binlogType; - } - public String getState() { - return state; - } - public void setState(String state) { - this.state = state; - } - public String getDBId() { - return dbId; - } - public void setDBId(String dbId) { - this.dbId = dbId; - } - public String getDBName() { - return dbName; - } - public void setDBName(String dbName) { - this.dbName = dbName; - } - public String getBackupZone() { - return backupZone; - } - public void setBackupZone(String backupZone) { - this.backupZone = backupZone; - } - } -} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupRequest.java index 03b8958b..e7361905 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupRequest.java @@ -1,67 +1,106 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBParamGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 分页显示的起始偏移,列表操作则指定 */ + + + + /** + * 分页显示的起始偏移,列表操作则指定 + */ @NotEmpty @UCloudParam("Offset") private Integer offset; - - /** 分页显示的条目数,列表操作则指定 */ + + + + /** + * 分页显示的条目数,列表操作则指定 + */ @NotEmpty @UCloudParam("Limit") private Integer limit; - - /** 参数组id,如果指定则获取描述,否则是列表操作,需要 指定Offset/Limit */ + + + + /** + * 参数组id,如果指定则获取描述,否则是列表操作,需要 指定Offset/Limit + */ @UCloudParam("GroupId") private Integer groupId; - - /** 是否选取专区中配置 */ + + + + /** + * 是否选取专区中配置 + */ @UCloudParam("IsInUDBC") private Boolean isInUDBC; - - /** 当请求没有填写Zone时,如果指定为true,表示只拉取跨可用区的相关配置文件,否则,拉取所有机房的配置文件(包括每个单可用区和跨可用区) */ + + + + /** + * 当请求没有填写Zone时,如果指定为true,表示只拉取跨可用区的相关配置文件,否则,拉取所有机房的配置文件(包括每个单可用区和跨可用区) + */ @UCloudParam("RegionFlag") private Boolean regionFlag; - - /** 如果未指定GroupId,则可选是否选取特定DB类型的配置(sql, nosql, postgresql, sqlserver) */ + + + + /** + * 如果未指定GroupId,则可选是否选取特定DB类型的配置(sql, nosql, postgresql, sqlserver) + */ @UCloudParam("ClassType") private String classType; - + + public String getRegion() { return region; } @@ -69,7 +108,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -77,7 +116,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -85,7 +124,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getOffset() { return offset; } @@ -93,7 +132,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -101,7 +140,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getGroupId() { return groupId; } @@ -109,7 +148,7 @@ public Integer getGroupId() { public void setGroupId(Integer groupId) { this.groupId = groupId; } - + public Boolean getIsInUDBC() { return isInUDBC; } @@ -117,7 +156,7 @@ public Boolean getIsInUDBC() { public void setIsInUDBC(Boolean isInUDBC) { this.isInUDBC = isInUDBC; } - + public Boolean getRegionFlag() { return regionFlag; } @@ -125,7 +164,7 @@ public Boolean getRegionFlag() { public void setRegionFlag(Boolean regionFlag) { this.regionFlag = regionFlag; } - + public String getClassType() { return classType; } @@ -133,4 +172,14 @@ public String getClassType() { public void setClassType(String classType) { this.classType = classType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupResponse.java index 4dc63696..c11fd622 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDBParamGroupResponse extends Response { - /** 参数组列表 参照UDBParamGroupSet */ + + + /** + * 参数组列表 参照UDBParamGroupSet + */ @SerializedName("DataSet") private List dataSet; - - /** 参数组总数,列表操作时才会有该参数 */ + + + + /** + * 参数组总数,列表操作时才会有该参数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,170 +57,228 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class UDBParamGroupSet extends Response { + + + /** + * 参数组id + */ + @SerializedName("GroupId") + private Integer groupId; + + + + /** + * 参数组名称 + */ + @SerializedName("GroupName") + private String groupName; + + + + /** + * DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6 7:percona-5.6 + */ + @SerializedName("DBTypeId") + private String dbTypeId; + + + + /** + * 参数组描述 + */ + @SerializedName("Description") + private String description; + + + + /** + * 参数组是否可修改 + */ + @SerializedName("Modifiable") + private Boolean modifiable; + + + + /** + * 参数的键值对表 UDBParamMemberSet + */ + @SerializedName("ParamMember") + private List paramMember; + + + public Integer getGroupId() { + return groupId; + } - public static class UDBParamGroupSet extends Response { - - /** 参数组id */ - @SerializedName("GroupId") - private Integer groupId; - - /** 参数组名称 */ - @SerializedName("GroupName") - private String groupName; - - /** - * DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下 - * 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6 - * 7:percona-5.6 - */ - @SerializedName("DBTypeId") - private String dbTypeId; - - /** 参数组描述 */ - @SerializedName("Description") - private String description; - - /** 参数组是否可修改 */ - @SerializedName("Modifiable") - private Boolean modifiable; - - /** 参数的键值对表 UDBParamMemberSet */ - @SerializedName("ParamMember") - private List paramMember; - - public Integer getGroupId() { - return groupId; - } - - public void setGroupId(Integer groupId) { - this.groupId = groupId; - } - - public String getGroupName() { - return groupName; - } - - public void setGroupName(String groupName) { - this.groupName = groupName; - } - - public String getDBTypeId() { - return dbTypeId; - } - - public void setDBTypeId(String dbTypeId) { - this.dbTypeId = dbTypeId; - } - - public String getDescription() { - return description; - } + public void setGroupId(Integer groupId) { + this.groupId = groupId; + } + + public String getGroupName() { + return groupName; + } - public void setDescription(String description) { - this.description = description; - } + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public String getDBTypeId() { + return dbTypeId; + } - public Boolean getModifiable() { - return modifiable; - } + public void setDBTypeId(String dbTypeId) { + this.dbTypeId = dbTypeId; + } + + public String getDescription() { + return description; + } - public void setModifiable(Boolean modifiable) { - this.modifiable = modifiable; - } + public void setDescription(String description) { + this.description = description; + } + + public Boolean getModifiable() { + return modifiable; + } - public List getParamMember() { - return paramMember; - } + public void setModifiable(Boolean modifiable) { + this.modifiable = modifiable; + } + + public List getParamMember() { + return paramMember; + } - public void setParamMember(List paramMember) { - this.paramMember = paramMember; + public void setParamMember(List paramMember) { + this.paramMember = paramMember; + } + } + public static class UDBParamMemberSet extends Response { + + + /** + * 参数名称 + */ + @SerializedName("Key") + private String key; + + + + /** + * 参数值 + */ + @SerializedName("Value") + private String value; + + + + /** + * 参数值应用类型,取值范围为{0,10,20,30},各值 代表意义为 0-unknown、10-int、20-string、 30-bool + */ + @SerializedName("ValueType") + private Integer valueType; + + + + /** + * 允许的值(根据参数类型,用分隔符表示) + */ + @SerializedName("AllowedVal") + private String allowedVal; + + + + /** + * 参数值应用类型,取值范围为{0,10,20},各值代表 意义为0-unknown、10-static、20-dynamic + */ + @SerializedName("ApplyType") + private Integer applyType; + + + + /** + * 是否可更改,默认为false + */ + @SerializedName("Modifiable") + private Boolean modifiable; + + + + /** + * 允许值的格式类型,取值范围为{0,10,20},意义分 别为PVFT_UNKOWN=0,PVFT_RANGE=10, PVFT_ENUM=20 + */ + @SerializedName("FormatType") + private Integer formatType; + + + public String getKey() { + return key; } - public static class UDBParamMemberSet extends Response { - - /** 参数名称 */ - @SerializedName("Key") - private String key; - - /** 参数值 */ - @SerializedName("Value") - private String value; - - /** 参数值应用类型,取值范围为{0,10,20,30},各值 代表意义为 0-unknown、10-int、20-string、 30-bool */ - @SerializedName("ValueType") - private Integer valueType; - - /** 允许的值(根据参数类型,用分隔符表示) */ - @SerializedName("AllowedVal") - private String allowedVal; - - /** 参数值应用类型,取值范围为{0,10,20},各值代表 意义为0-unknown、10-static、20-dynamic */ - @SerializedName("ApplyType") - private Integer applyType; - - /** 是否可更改,默认为false */ - @SerializedName("Modifiable") - private Boolean modifiable; + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } - /** 允许值的格式类型,取值范围为{0,10,20},意义分 别为PVFT_UNKOWN=0,PVFT_RANGE=10, PVFT_ENUM=20 */ - @SerializedName("FormatType") - private Integer formatType; + public void setValue(String value) { + this.value = value; + } + + public Integer getValueType() { + return valueType; + } - public String getKey() { - return key; - } + public void setValueType(Integer valueType) { + this.valueType = valueType; + } + + public String getAllowedVal() { + return allowedVal; + } - public void setKey(String key) { - this.key = key; - } + public void setAllowedVal(String allowedVal) { + this.allowedVal = allowedVal; + } + + public Integer getApplyType() { + return applyType; + } - public String getValue() { - return value; - } + public void setApplyType(Integer applyType) { + this.applyType = applyType; + } + + public Boolean getModifiable() { + return modifiable; + } - public void setValue(String value) { - this.value = value; - } + public void setModifiable(Boolean modifiable) { + this.modifiable = modifiable; + } + + public Integer getFormatType() { + return formatType; + } - public Integer getValueType() { - return valueType; + public void setFormatType(Integer formatType) { + this.formatType = formatType; + } + } +} - public void setValueType(Integer valueType) { - this.valueType = valueType; - } - public String getAllowedVal() { - return allowedVal; - } - public void setAllowedVal(String allowedVal) { - this.allowedVal = allowedVal; - } - public Integer getApplyType() { - return applyType; - } - public void setApplyType(Integer applyType) { - this.applyType = applyType; - } - public Boolean getModifiable() { - return modifiable; - } - public void setModifiable(Boolean modifiable) { - this.modifiable = modifiable; - } - public Integer getFormatType() { - return formatType; - } - public void setFormatType(Integer formatType) { - this.formatType = formatType; - } - } -} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBSplittingInfoRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBSplittingInfoRequest.java index 89bd89b1..692ff42f 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBSplittingInfoRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBSplittingInfoRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBSplittingInfoRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** DB实例ID */ + + + + /** + * DB实例ID + */ @NotEmpty @UCloudParam("MasterDBId") private String masterDBId; - + + public String getRegion() { return region; } @@ -42,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -50,7 +68,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getMasterDBId() { return masterDBId; } @@ -58,4 +76,14 @@ public String getMasterDBId() { public void setMasterDBId(String masterDBId) { this.masterDBId = masterDBId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBSplittingInfoResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBSplittingInfoResponse.java index 4730f27f..ca4feac1 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBSplittingInfoResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBSplittingInfoResponse.java @@ -1,62 +1,110 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDBSplittingInfoResponse extends Response { - /** 可用区 */ + + + + + /** + * 可用区 + */ @SerializedName("Zone") private String zone; - - /** DB实例ID */ + + + + /** + * DB实例ID + */ @SerializedName("MasterDBId") private String masterDBId; - - /** 读写分离IP */ + + + + /** + * 读写分离IP + */ @SerializedName("RWIP") private String rwip; - - /** 时间阈值 */ + + + + /** + * 时间阈值 + */ @SerializedName("DelayThreshold") private Integer delayThreshold; - - /** 端口号 */ + + + + /** + * 端口号 + */ @SerializedName("Port") private Integer port; - - /** 读写分离策略 */ + + + + /** + * 读写分离策略 + */ @SerializedName("ReadModel") private String readModel; - - /** 数据库版本 */ + + + + /** + * 数据库版本 + */ @SerializedName("DBTypeId") private String dbTypeId; - - /** 读写分离状态 */ + + + + /** + * 读写分离状态 + */ @SerializedName("RWState") private String rwState; - - /** 读写分离从库信息 */ + + + + /** + * 读写分离从库信息 + */ @SerializedName("DataSet") private List dataSet; - + + + + + + + public String getZone() { return zone; } @@ -64,7 +112,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getMasterDBId() { return masterDBId; } @@ -72,7 +120,7 @@ public String getMasterDBId() { public void setMasterDBId(String masterDBId) { this.masterDBId = masterDBId; } - + public String getRWIP() { return rwip; } @@ -80,7 +128,7 @@ public String getRWIP() { public void setRWIP(String rwip) { this.rwip = rwip; } - + public Integer getDelayThreshold() { return delayThreshold; } @@ -88,7 +136,7 @@ public Integer getDelayThreshold() { public void setDelayThreshold(Integer delayThreshold) { this.delayThreshold = delayThreshold; } - + public Integer getPort() { return port; } @@ -96,7 +144,7 @@ public Integer getPort() { public void setPort(Integer port) { this.port = port; } - + public String getReadModel() { return readModel; } @@ -104,7 +152,7 @@ public String getReadModel() { public void setReadModel(String readModel) { this.readModel = readModel; } - + public String getDBTypeId() { return dbTypeId; } @@ -112,7 +160,7 @@ public String getDBTypeId() { public void setDBTypeId(String dbTypeId) { this.dbTypeId = dbTypeId; } - + public String getRWState() { return rwState; } @@ -120,7 +168,7 @@ public String getRWState() { public void setRWState(String rwState) { this.rwState = rwState; } - + public List getDataSet() { return dataSet; } @@ -128,67 +176,99 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + + + public static class UDBRWSplittingSet extends Response { + + + /** + * DB实例ID + */ + @SerializedName("DBId") + private String dbId; + + + + /** + * 主库/从库 + */ + @SerializedName("Role") + private String role; + + + + /** + * DBIP + */ + @SerializedName("VirtualIP") + private String virtualIP; + + + + /** + * 读写分离比重 + */ + @SerializedName("ReadWeight") + private Integer readWeight; + + + + /** + * DB状态 + */ + @SerializedName("State") + private String state; + + + public String getDBId() { + return dbId; + } - public static class UDBRWSplittingSet extends Response { - - /** DB实例ID */ - @SerializedName("DBId") - private String dbId; - - /** 主库/从库 */ - @SerializedName("Role") - private String role; + public void setDBId(String dbId) { + this.dbId = dbId; + } + + public String getRole() { + return role; + } - /** DBIP */ - @SerializedName("VirtualIP") - private String virtualIP; + public void setRole(String role) { + this.role = role; + } + + public String getVirtualIP() { + return virtualIP; + } - /** 读写分离比重 */ - @SerializedName("ReadWeight") - private Integer readWeight; + public void setVirtualIP(String virtualIP) { + this.virtualIP = virtualIP; + } + + public Integer getReadWeight() { + return readWeight; + } - /** DB状态 */ - @SerializedName("State") - private String state; + public void setReadWeight(Integer readWeight) { + this.readWeight = readWeight; + } + + public String getState() { + return state; + } - public String getDBId() { - return dbId; + public void setState(String state) { + this.state = state; + } + } +} - public void setDBId(String dbId) { - this.dbId = dbId; - } - public String getRole() { - return role; - } - public void setRole(String role) { - this.role = role; - } - public String getVirtualIP() { - return virtualIP; - } - public void setVirtualIP(String virtualIP) { - this.virtualIP = virtualIP; - } - public Integer getReadWeight() { - return readWeight; - } - public void setReadWeight(Integer readWeight) { - this.readWeight = readWeight; - } - public String getState() { - return state; - } - public void setState(String state) { - this.state = state; - } - } -} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBTypeRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBTypeRequest.java index efb0f9ee..c27140b5 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBTypeRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBTypeRequest.java @@ -1,55 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDBTypeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 跨可用区高可用DB的备库所在区域,仅当该可用区支持跨可用区高可用时填入。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 跨可用区高可用DB的备库所在区域,仅当该可用区支持跨可用区高可用时填入。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("BackupZone") private String backupZone; - - /** DB实例类型,如mysql,sqlserver,mongo,postgresql */ + + + + /** + * DB实例类型,如mysql,sqlserver,mongo,postgresql + */ @UCloudParam("DBClusterType") private String dbClusterType; - - /** 返回支持某种实例类型的DB类型。如果没传,则表示任何实例类型均可。 normal:单点,ha:高可用,sharded_cluster:分片集群 */ + + + + /** + * 返回支持某种实例类型的DB类型。如果没传,则表示任何实例类型均可。 +normal:单点,ha:高可用,sharded_cluster:分片集群 + */ @UCloudParam("InstanceMode") private String instanceMode; - - /** 返回支持某种磁盘类型的DB类型,如Normal、SSD、NVMe_SSD。如果没传,则表示任何磁盘类型均可。 */ + + + + /** + * 返回支持某种磁盘类型的DB类型,如Normal、SSD、NVMe_SSD。如果没传,则表示任何磁盘类型均可。 + */ @UCloudParam("DiskType") private String diskType; - - /** 返回从备份创建实例时,该版本号所支持的备份创建版本。如果没传,则表示不是从备份创建。 */ + + + + /** + * 返回从备份创建实例时,该版本号所支持的备份创建版本。如果没传,则表示不是从备份创建。 + */ @UCloudParam("CompatibleWithDBType") private String compatibleWithDBType; - + + public String getRegion() { return region; } @@ -57,7 +92,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +100,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getBackupZone() { return backupZone; } @@ -73,7 +108,7 @@ public String getBackupZone() { public void setBackupZone(String backupZone) { this.backupZone = backupZone; } - + public String getDBClusterType() { return dbClusterType; } @@ -81,7 +116,7 @@ public String getDBClusterType() { public void setDBClusterType(String dbClusterType) { this.dbClusterType = dbClusterType; } - + public String getInstanceMode() { return instanceMode; } @@ -89,7 +124,7 @@ public String getInstanceMode() { public void setInstanceMode(String instanceMode) { this.instanceMode = instanceMode; } - + public String getDiskType() { return diskType; } @@ -97,7 +132,7 @@ public String getDiskType() { public void setDiskType(String diskType) { this.diskType = diskType; } - + public String getCompatibleWithDBType() { return compatibleWithDBType; } @@ -105,4 +140,14 @@ public String getCompatibleWithDBType() { public void setCompatibleWithDBType(String compatibleWithDBType) { this.compatibleWithDBType = compatibleWithDBType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBTypeResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBTypeResponse.java index 0ad461a6..f5ce9e8e 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBTypeResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBTypeResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDBTypeResponse extends Response { - /** DB类型列表 参数见 UDBTypeSet */ + + + /** + * DB类型列表 参数见 UDBTypeSet + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,23 +41,33 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UDBTypeSet extends Response { + + + /** + * DB类型id,mysql/mongodb按版本细分各有一个id, 目前id的取值范围为[1,7],数值对应的版本如下: 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, 7:percona-5.6 + */ + @SerializedName("DBTypeId") + private String dbTypeId; + + + public String getDBTypeId() { + return dbTypeId; + } + + public void setDBTypeId(String dbTypeId) { + this.dbTypeId = dbTypeId; + } + + } +} + + + + + - public static class UDBTypeSet extends Response { - /** - * DB类型id,mysql/mongodb按版本细分各有一个id, 目前id的取值范围为[1,7],数值对应的版本如下: - * 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, - * 7:percona-5.6 - */ - @SerializedName("DBTypeId") - private String dbTypeId; - public String getDBTypeId() { - return dbTypeId; - } - public void setDBTypeId(String dbTypeId) { - this.dbTypeId = dbTypeId; - } - } -} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DisableUDBRWSplittingRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DisableUDBRWSplittingRequest.java index 2ae528b0..d4f3feaa 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DisableUDBRWSplittingRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DisableUDBRWSplittingRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DisableUDBRWSplittingRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** DB实例ID(master) */ + + + + /** + * DB实例ID(master) + */ @NotEmpty @UCloudParam("MasterDBId") private String masterDBId; - + + public String getRegion() { return region; } @@ -42,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -50,7 +68,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getMasterDBId() { return masterDBId; } @@ -58,4 +76,14 @@ public String getMasterDBId() { public void setMasterDBId(String masterDBId) { this.masterDBId = masterDBId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DisableUDBRWSplittingResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DisableUDBRWSplittingResponse.java index 9f777da9..60fe7828 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DisableUDBRWSplittingResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DisableUDBRWSplittingResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DisableUDBRWSplittingResponse extends Response {} +public class DisableUDBRWSplittingResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EditUDBBackupBlacklistRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EditUDBBackupBlacklistRequest.java index 87b64f29..ff877083 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EditUDBBackupBlacklistRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EditUDBBackupBlacklistRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class EditUDBBackupBlacklistRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * DB实例Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 黑名单,规范示例,指定库mysql.%;test.%; 指定表city.address; */ + + + + /** + * 黑名单,规范示例,指定库mysql.%;test.%; 指定表city.address; + */ @NotEmpty @UCloudParam("Blacklist") private String blacklist; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -74,7 +100,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public String getBlacklist() { return blacklist; } @@ -82,4 +108,14 @@ public String getBlacklist() { public void setBlacklist(String blacklist) { this.blacklist = blacklist; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EditUDBBackupBlacklistResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EditUDBBackupBlacklistResponse.java index 8bd94f4b..b20ce158 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EditUDBBackupBlacklistResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EditUDBBackupBlacklistResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class EditUDBBackupBlacklistResponse extends Response {} +public class EditUDBBackupBlacklistResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EnableUDBRWSplittingRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EnableUDBRWSplittingRequest.java index 7ef1ce00..b28b3901 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EnableUDBRWSplittingRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EnableUDBRWSplittingRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class EnableUDBRWSplittingRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** DB实例ID(主库) */ + + + + /** + * DB实例ID(主库) + */ @NotEmpty @UCloudParam("MasterDBId") private String masterDBId; - - /** 备份的可用区。用于创建跨可用区读写分离的一个节点,跨机房的读写分离必须有这个参数 */ + + + + /** + * 备份的可用区。用于创建跨可用区读写分离的一个节点,跨机房的读写分离必须有这个参数 + */ @UCloudParam("BackupZone") private String backupZone; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -54,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getMasterDBId() { return masterDBId; } @@ -62,7 +84,7 @@ public String getMasterDBId() { public void setMasterDBId(String masterDBId) { this.masterDBId = masterDBId; } - + public String getBackupZone() { return backupZone; } @@ -70,4 +92,14 @@ public String getBackupZone() { public void setBackupZone(String backupZone) { this.backupZone = backupZone; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EnableUDBRWSplittingResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EnableUDBRWSplittingResponse.java index e8cb1678..6e759450 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EnableUDBRWSplittingResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/EnableUDBRWSplittingResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class EnableUDBRWSplittingResponse extends Response { - /** DB实例ID(主库) */ + + + /** + * DB实例ID(主库) + */ @SerializedName("MasterDBId") private String masterDBId; - - /** 读写分离访问IP */ + + + + /** + * 读写分离访问IP + */ @SerializedName("RWIp") private String rwIp; - + + public String getMasterDBId() { return masterDBId; } @@ -35,7 +49,7 @@ public String getMasterDBId() { public void setMasterDBId(String masterDBId) { this.masterDBId = masterDBId; } - + public String getRWIp() { return rwIp; } @@ -43,4 +57,14 @@ public String getRWIp() { public void setRWIp(String rwIp) { this.rwIp = rwIp; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ExtractUDBParamGroupRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ExtractUDBParamGroupRequest.java index 15095806..6b169ea0 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ExtractUDBParamGroupRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ExtractUDBParamGroupRequest.java @@ -1,45 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ExtractUDBParamGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** * 可用区。如果RegionFlag=false,必须传,反之,可不传。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - - /** 配置id */ + + + + /** + * 配置id + */ @NotEmpty @UCloudParam("GroupId") private Integer groupId; - - /** 是否跨可用区,RegionFlag为true时表示跨可用区配置文件。如果RegionFlag=true,Zone可以不传,否则Zone必须传。 */ + + + + /** + * 是否跨可用区,RegionFlag为true时表示跨可用区配置文件。如果RegionFlag=true,Zone可以不传,否则Zone必须传。 + */ @UCloudParam("RegionFlag") private Boolean regionFlag; - + + public String getRegion() { return region; } @@ -47,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -55,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public Integer getGroupId() { return groupId; } @@ -63,7 +83,7 @@ public Integer getGroupId() { public void setGroupId(Integer groupId) { this.groupId = groupId; } - + public Boolean getRegionFlag() { return regionFlag; } @@ -71,4 +91,14 @@ public Boolean getRegionFlag() { public void setRegionFlag(Boolean regionFlag) { this.regionFlag = regionFlag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ExtractUDBParamGroupResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ExtractUDBParamGroupResponse.java index 7c95dbaf..75d5502d 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ExtractUDBParamGroupResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ExtractUDBParamGroupResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ExtractUDBParamGroupResponse extends Response { - /** 配置文件内容 */ + + + /** + * 配置文件内容 + */ @SerializedName("Content") private String content; - + + public String getContent() { return content; } @@ -31,4 +41,14 @@ public String getContent() { public void setContent(String content) { this.content = content; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/FetchUDBInstanceEarliestRecoverTimeRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/FetchUDBInstanceEarliestRecoverTimeRequest.java index c78d0c62..ab004d96 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/FetchUDBInstanceEarliestRecoverTimeRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/FetchUDBInstanceEarliestRecoverTimeRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class FetchUDBInstanceEarliestRecoverTimeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id */ + + + + /** + * DB实例Id + */ @NotEmpty @UCloudParam("DBId") private String dbId; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -53,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -61,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -69,4 +91,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/FetchUDBInstanceEarliestRecoverTimeResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/FetchUDBInstanceEarliestRecoverTimeResponse.java index d767b3f7..d47474b2 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/FetchUDBInstanceEarliestRecoverTimeResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/FetchUDBInstanceEarliestRecoverTimeResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class FetchUDBInstanceEarliestRecoverTimeResponse extends Response { - /** 获取最早可回档时间点 */ + + + /** + * 获取最早可回档时间点 + */ @SerializedName("EarliestTime") private Integer earliestTime; - + + public Integer getEarliestTime() { return earliestTime; } @@ -31,4 +41,14 @@ public Integer getEarliestTime() { public void setEarliestTime(Integer earliestTime) { this.earliestTime = earliestTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBClientConnNumRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBClientConnNumRequest.java index 843551e3..f03dc0a6 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBClientConnNumRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBClientConnNumRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUDBClientConnNumRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例id */ + + + + /** + * DB实例id + */ @NotEmpty @UCloudParam("DBId") private String dbId; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -73,4 +92,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBClientConnNumResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBClientConnNumResponse.java index 3be21e23..f0cb0954 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBClientConnNumResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBClientConnNumResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUDBClientConnNumResponse extends Response { - /** db实例ip和连接数信息 */ + + + /** + * db实例ip和连接数信息 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,31 +41,49 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class ConnNumMap extends Response { + + + /** + * 客户端IP + */ + @SerializedName("Ip") + private String ip; + + + + /** + * 该Ip连接数 + */ + @SerializedName("Num") + private Integer num; + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public Integer getNum() { + return num; + } + + public void setNum(Integer num) { + this.num = num; + } + + } +} + + - public static class ConnNumMap extends Response { - /** 客户端IP */ - @SerializedName("Ip") - private String ip; - /** 该Ip连接数 */ - @SerializedName("Num") - private Integer num; - public String getIp() { - return ip; - } - public void setIp(String ip) { - this.ip = ip; - } - public Integer getNum() { - return num; - } - public void setNum(Integer num) { - this.num = num; - } - } -} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceNameRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceNameRequest.java index 96074c04..1fcb9e55 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceNameRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceNameRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUDBInstanceNameRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * 实例的Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 实例的新名字, 长度要求为6~63位 */ + + + + /** + * 实例的新名字, 长度要求为6~63位 + */ @NotEmpty @UCloudParam("Name") private String name; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -74,7 +100,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public String getName() { return name; } @@ -82,4 +108,14 @@ public String getName() { public void setName(String name) { this.name = name; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceNameResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceNameResponse.java index 13458f98..2f6dc738 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceNameResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceNameResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUDBInstanceNameResponse extends Response {} +public class ModifyUDBInstanceNameResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstancePasswordRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstancePasswordRequest.java index 02776ca9..c5a8cc98 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstancePasswordRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstancePasswordRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUDBInstancePasswordRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的ID,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * 实例的ID,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 实例的新密码 */ + + + + /** + * 实例的新密码 + */ @NotEmpty @UCloudParam("Password") private String password; - - /** sqlserver帐号,仅在sqlserver的情况下填该参数 */ + + + + /** + * sqlserver帐号,仅在sqlserver的情况下填该参数 + */ @UCloudParam("AccountName") private String accountName; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -62,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -70,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -78,7 +108,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public String getPassword() { return password; } @@ -86,7 +116,7 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } - + public String getAccountName() { return accountName; } @@ -94,4 +124,14 @@ public String getAccountName() { public void setAccountName(String accountName) { this.accountName = accountName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstancePasswordResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstancePasswordResponse.java index 85320136..2769328a 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstancePasswordResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstancePasswordResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUDBInstancePasswordResponse extends Response {} +public class ModifyUDBInstancePasswordResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBInstanceToHARequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBInstanceToHARequest.java index 4461d9c7..fb26afa1 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBInstanceToHARequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBInstanceToHARequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class PromoteUDBInstanceToHARequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * 实例的Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - + + public String getRegion() { return region; } @@ -44,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -52,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -60,4 +75,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBInstanceToHAResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBInstanceToHAResponse.java index 5475ac44..09167494 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBInstanceToHAResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBInstanceToHAResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class PromoteUDBInstanceToHAResponse extends Response {} +public class PromoteUDBInstanceToHAResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBSlaveRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBSlaveRequest.java index 2f59ef93..9e977394 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBSlaveRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBSlaveRequest.java @@ -1,47 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class PromoteUDBSlaveRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * 实例的Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 是否强制(如果从库落后可能会禁止提升),默认false 如果落后情况下,强制提升丢失数据 */ + + + + /** + * 是否强制(如果从库落后可能会禁止提升),默认false 如果落后情况下,强制提升丢失数据 + */ @UCloudParam("IsForce") private Boolean isForce; - + + public String getRegion() { return region; } @@ -49,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +83,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -73,7 +99,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Boolean getIsForce() { return isForce; } @@ -81,4 +107,14 @@ public Boolean getIsForce() { public void setIsForce(Boolean isForce) { this.isForce = isForce; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBSlaveResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBSlaveResponse.java index f843cd75..f2300b0e 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBSlaveResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBSlaveResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class PromoteUDBSlaveResponse extends Response {} +public class PromoteUDBSlaveResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ResizeUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ResizeUDBInstanceRequest.java index f7956944..393d6bda 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ResizeUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ResizeUDBInstanceRequest.java @@ -1,82 +1,125 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ResizeUDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的Id */ + + + + /** + * 实例的Id + */ @NotEmpty @UCloudParam("DBId") private String dbId; - + + + /** - * 内存限制(MB),目前支持以下几档 2000M/4000M/ 6000M/8000M/ 12000M/16000M/ 24000M/32000M/ - * 48000M/64000M/96000M/128000M/192000M/256000M/320000M。 + * 内存限制(MB),目前支持以下几档 2000M/4000M/ 6000M/8000M/ 12000M/16000M/ 24000M/32000M/ 48000M/64000M/96000M/128000M/192000M/256000M/320000M。 */ @NotEmpty @UCloudParam("MemoryLimit") private Integer memoryLimit; - - /** 磁盘空间(GB), 暂时支持20G-32T */ + + + + /** + * 磁盘空间(GB), 暂时支持20G-32T + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; - - /** SSD类型,可选值为"SATA"、“NVMe” */ + + + + /** + * SSD类型,可选值为"SATA"、“NVMe” + */ @UCloudParam("SSDType") private String ssdType; - + + + + + /** - * UDB数据库机型: "Normal": "标准机型" , "SATA_SSD": "SSD机型" , "PCIE_SSD": "SSD高性能机型" , "Normal_Volume": - * "标准大容量机型", "SATA_SSD_Volume": "SSD大容量机型" , "PCIE_SSD_Volume": "SSD高性能大容量机型",“NVMe_SSD”:“快杰机型” + * UDB数据库机型: "Normal": "标准机型" , "SATA_SSD": "SSD机型" , "PCIE_SSD": "SSD高性能机型" , "Normal_Volume": "标准大容量机型", "SATA_SSD_Volume": "SSD大容量机型" , "PCIE_SSD_Volume": "SSD高性能大容量机型",“NVMe_SSD”:“快杰机型” */ @UCloudParam("InstanceType") private String instanceType; - - /** UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 默认是"Normal" */ + + + + /** + * UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 默认是"Normal" + */ @UCloudParam("InstanceMode") private String instanceMode; - - /** DB关闭状态下升降级,升降级后是否启动DB,默认为false */ + + + + /** + * DB关闭状态下升降级,升降级后是否启动DB,默认为false + */ @UCloudParam("StartAfterUpgrade") private Boolean startAfterUpgrade; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -84,7 +127,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -92,7 +135,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -100,7 +143,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -108,7 +151,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Integer getMemoryLimit() { return memoryLimit; } @@ -116,7 +159,7 @@ public Integer getMemoryLimit() { public void setMemoryLimit(Integer memoryLimit) { this.memoryLimit = memoryLimit; } - + public Integer getDiskSpace() { return diskSpace; } @@ -124,7 +167,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public String getSSDType() { return ssdType; } @@ -132,7 +175,8 @@ public String getSSDType() { public void setSSDType(String ssdType) { this.ssdType = ssdType; } - + + public String getInstanceType() { return instanceType; } @@ -140,7 +184,7 @@ public String getInstanceType() { public void setInstanceType(String instanceType) { this.instanceType = instanceType; } - + public String getInstanceMode() { return instanceMode; } @@ -148,7 +192,7 @@ public String getInstanceMode() { public void setInstanceMode(String instanceMode) { this.instanceMode = instanceMode; } - + public Boolean getStartAfterUpgrade() { return startAfterUpgrade; } @@ -156,7 +200,7 @@ public Boolean getStartAfterUpgrade() { public void setStartAfterUpgrade(Boolean startAfterUpgrade) { this.startAfterUpgrade = startAfterUpgrade; } - + public String getCouponId() { return couponId; } @@ -164,4 +208,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ResizeUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ResizeUDBInstanceResponse.java index 8dfb6187..e66ffdde 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ResizeUDBInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ResizeUDBInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ResizeUDBInstanceResponse extends Response {} +public class ResizeUDBInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartRWSplittingRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartRWSplittingRequest.java index 944880a4..78d998f4 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartRWSplittingRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartRWSplittingRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RestartRWSplittingRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 待关闭读写分离中间键ProxyId */ + + + + /** + * 待关闭读写分离中间键ProxyId + */ @NotEmpty @UCloudParam("MasterDBId") private String masterDBId; - + + public String getRegion() { return region; } @@ -42,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -50,7 +68,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getMasterDBId() { return masterDBId; } @@ -58,4 +76,14 @@ public String getMasterDBId() { public void setMasterDBId(String masterDBId) { this.masterDBId = masterDBId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartRWSplittingResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartRWSplittingResponse.java index 7c0ad192..7be525fe 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartRWSplittingResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartRWSplittingResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RestartRWSplittingResponse extends Response {} +public class RestartRWSplittingResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartUDBInstanceRequest.java index 7eab85fa..87bada23 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartUDBInstanceRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RestartUDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * 实例的Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -53,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -61,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -69,4 +91,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartUDBInstanceResponse.java index 33a19122..22fb1c90 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartUDBInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartUDBInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RestartUDBInstanceResponse extends Response {} +public class RestartUDBInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SetUDBRWSplittingRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SetUDBRWSplittingRequest.java index 938db667..397f30bf 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SetUDBRWSplittingRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SetUDBRWSplittingRequest.java @@ -1,59 +1,92 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class SetUDBRWSplittingRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** DB实例ID(master) */ + + + + /** + * DB实例ID(master) + */ @NotEmpty @UCloudParam("MasterDBId") private String masterDBId; - - /** 读写分离策略 */ + + + + /** + * 读写分离策略 + */ @NotEmpty @UCloudParam("ReadModel") private String readModel; - - /** DBIds.0 代表UDB主节点, DBIds.1 到DBIds.n 代表1到N个从节点 */ + + + + /** + * DBIds.0 代表UDB主节点, DBIds.1 到DBIds.n 代表1到N个从节点 + */ @NotEmpty @UCloudParam("DBIds") private List dbIds; - - /** udb主从节点的只读比例。ReadPercents.0代表主节点的只读比例,ReadPercents.1代表从节点1的读写比例, 以此类推 */ + + + + /** + * udb主从节点的只读比例。ReadPercents.0代表主节点的只读比例,ReadPercents.1代表从节点1的读写比例, 以此类推 + */ @UCloudParam("ReadPercents") private List readPercents; - - /** 时间阙值 */ + + + + /** + * 时间阙值 + */ @UCloudParam("DelayThreshold") private Integer delayThreshold; - + + public String getRegion() { return region; } @@ -61,7 +94,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -69,7 +102,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getMasterDBId() { return masterDBId; } @@ -77,7 +110,7 @@ public String getMasterDBId() { public void setMasterDBId(String masterDBId) { this.masterDBId = masterDBId; } - + public String getReadModel() { return readModel; } @@ -85,7 +118,7 @@ public String getReadModel() { public void setReadModel(String readModel) { this.readModel = readModel; } - + public List getDBIds() { return dbIds; } @@ -93,7 +126,7 @@ public List getDBIds() { public void setDBIds(List dbIds) { this.dbIds = dbIds; } - + public List getReadPercents() { return readPercents; } @@ -101,7 +134,7 @@ public List getReadPercents() { public void setReadPercents(List readPercents) { this.readPercents = readPercents; } - + public Integer getDelayThreshold() { return delayThreshold; } @@ -109,4 +142,14 @@ public Integer getDelayThreshold() { public void setDelayThreshold(Integer delayThreshold) { this.delayThreshold = delayThreshold; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SetUDBRWSplittingResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SetUDBRWSplittingResponse.java index 57a07a41..9720dba7 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SetUDBRWSplittingResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SetUDBRWSplittingResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class SetUDBRWSplittingResponse extends Response {} +public class SetUDBRWSplittingResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StartUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StartUDBInstanceRequest.java index bc14b704..99c872f6 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StartUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StartUDBInstanceRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class StartUDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * 实例的Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -53,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -61,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -69,4 +91,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StartUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StartUDBInstanceResponse.java index 421dd0f3..c8c58838 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StartUDBInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StartUDBInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class StartUDBInstanceResponse extends Response {} +public class StartUDBInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StopUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StopUDBInstanceRequest.java index 37b756b6..2e01b9c5 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StopUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StopUDBInstanceRequest.java @@ -1,47 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class StopUDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * 实例的Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 是否使用强制手段关闭DB,默认是false */ + + + + /** + * 是否使用强制手段关闭DB,默认是false + */ @UCloudParam("ForceToKill") private Boolean forceToKill; - + + public String getRegion() { return region; } @@ -49,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +83,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -73,7 +99,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Boolean getForceToKill() { return forceToKill; } @@ -81,4 +107,14 @@ public Boolean getForceToKill() { public void setForceToKill(Boolean forceToKill) { this.forceToKill = forceToKill; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StopUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StopUDBInstanceResponse.java index e2e69127..820d7a00 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StopUDBInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StopUDBInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class StopUDBInstanceResponse extends Response {} +public class StopUDBInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBHAToSentinelRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBHAToSentinelRequest.java index b4146d51..a4475538 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBHAToSentinelRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBHAToSentinelRequest.java @@ -1,51 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class SwitchUDBHAToSentinelRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UDB的实例ID */ + + + + /** + * UDB的实例ID + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 是否跳过预检查强制升级。 */ + + + + /** + * 是否跳过预检查强制升级。 + */ @UCloudParam("ForceSwitch") private Boolean forceSwitch; - + + public String getRegion() { return region; } @@ -53,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -61,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -69,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -77,7 +100,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Boolean getForceSwitch() { return forceSwitch; } @@ -85,4 +108,14 @@ public Boolean getForceSwitch() { public void setForceSwitch(Boolean forceSwitch) { this.forceSwitch = forceSwitch; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBHAToSentinelResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBHAToSentinelResponse.java index d6610a98..aa96dbf3 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBHAToSentinelResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBHAToSentinelResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class SwitchUDBHAToSentinelResponse extends Response {} +public class SwitchUDBHAToSentinelResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBInstanceToHARequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBInstanceToHARequest.java index fa7135eb..bcf60452 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBInstanceToHARequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBInstanceToHARequest.java @@ -1,54 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class SwitchUDBInstanceToHARequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * 实例的Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; + + + + /** + * Year, Month, Dynamic,Trial,不填则按现在单点计费执行 - /** Year, Month, Dynamic,Trial,不填则按现在单点计费执行 */ + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长,需要和 ChargeType 搭配使用,否则使用单点计费策略的值 */ + + + + /** + * 购买时长,需要和 ChargeType 搭配使用,否则使用单点计费策略的值 + */ @UCloudParam("Quantity") private String quantity; - - /** 业务组 */ + + + + /** + * 业务组 + */ @UCloudParam("Tag") private String tag; - + + public String getRegion() { return region; } @@ -56,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -64,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -72,7 +100,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public String getChargeType() { return chargeType; } @@ -80,7 +108,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getQuantity() { return quantity; } @@ -88,7 +116,7 @@ public String getQuantity() { public void setQuantity(String quantity) { this.quantity = quantity; } - + public String getTag() { return tag; } @@ -96,4 +124,14 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBInstanceToHAResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBInstanceToHAResponse.java index 9341d94b..29cd447a 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBInstanceToHAResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/SwitchUDBInstanceToHAResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class SwitchUDBInstanceToHAResponse extends Response { - /** 切换后高可用db实例的Id */ + + + /** + * 切换后高可用db实例的Id + */ @SerializedName("DBId") private String dbId; - + + public String getDBId() { return dbId; } @@ -31,4 +41,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceBackupStrategyRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceBackupStrategyRequest.java index 044b8a29..c7d16ad3 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceBackupStrategyRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceBackupStrategyRequest.java @@ -1,64 +1,99 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUDBInstanceBackupStrategyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 主节点的Id */ + + + + /** + * 主节点的Id + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 备份的整点时间,范围[0,23] */ + + + + /** + * 备份的整点时间,范围[0,23] + */ @UCloudParam("BackupTime") private Integer backupTime; - + + + /** * 备份时期标记位。共7位,每一位为一周中一天的备份情况,0表示关闭当天备份,1表示打开当天备份。最右边的一位为星期天的备份开关,其余从右到左依次为星期一到星期六的备份配置开关,每周必须至少设置两天备份。例如:1100000表示打开星期六和星期五的备份功能 */ @UCloudParam("BackupDate") private String backupDate; - - /** 当导出某些数据遇到问题后,是否强制导出其他剩余数据 默认是false 需要同时设置BackupDate字段 */ + + + + /** + * 当导出某些数据遇到问题后,是否强制导出其他剩余数据 +默认是false +需要同时设置BackupDate字段 + */ @UCloudParam("ForceDump") private Boolean forceDump; - + + + /** - * 选择默认的备份方式,可选 snapshot 表示使用快照/物理备份,不填或者其它任何值为默认的逻辑备份。需要同时设置BackupDate字段。(注意现在只有SSD 版本的 - * MySQL实例支持物理备份) + * 选择默认的备份方式,可选 snapshot 表示使用快照/物理备份,不填或者其它任何值为默认的逻辑备份。需要同时设置BackupDate字段。(注意现在只有SSD 版本的 MySQL实例支持物理备份) */ @UCloudParam("BackupMethod") private String backupMethod; - + + public String getRegion() { return region; } @@ -66,7 +101,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -74,7 +109,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -82,7 +117,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -90,7 +125,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public Integer getBackupTime() { return backupTime; } @@ -98,7 +133,7 @@ public Integer getBackupTime() { public void setBackupTime(Integer backupTime) { this.backupTime = backupTime; } - + public String getBackupDate() { return backupDate; } @@ -106,7 +141,7 @@ public String getBackupDate() { public void setBackupDate(String backupDate) { this.backupDate = backupDate; } - + public Boolean getForceDump() { return forceDump; } @@ -114,7 +149,7 @@ public Boolean getForceDump() { public void setForceDump(Boolean forceDump) { this.forceDump = forceDump; } - + public String getBackupMethod() { return backupMethod; } @@ -122,4 +157,14 @@ public String getBackupMethod() { public void setBackupMethod(String backupMethod) { this.backupMethod = backupMethod; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceBackupStrategyResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceBackupStrategyResponse.java index 76e27f01..189bfb7b 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceBackupStrategyResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceBackupStrategyResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUDBInstanceBackupStrategyResponse extends Response {} +public class UpdateUDBInstanceBackupStrategyResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceSlaveBackupSwitchRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceSlaveBackupSwitchRequest.java index bc17fd43..870a6e88 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceSlaveBackupSwitchRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceSlaveBackupSwitchRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUDBInstanceSlaveBackupSwitchRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 主库的Id */ + + + + /** + * 主库的Id + */ @NotEmpty @UCloudParam("MasterDBId") private String masterDBId; - - /** 从库的备份开关,范围[0,1],0表示从库备份功能关闭,1 表示从库备份开关打开。 */ + + + + /** + * 从库的备份开关,范围[0,1],0表示从库备份功能关闭,1 表示从库备份开关打开。 + */ @NotEmpty @UCloudParam("BackupSwitch") private Integer backupSwitch; - - /** 从库的Id,如果从库备份开关设定为打开,则必须赋值。 */ + + + + /** + * 从库的Id,如果从库备份开关设定为打开,则必须赋值。 + */ @UCloudParam("SlaveDBId") private String slaveDBId; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -62,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -70,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getMasterDBId() { return masterDBId; } @@ -78,7 +108,7 @@ public String getMasterDBId() { public void setMasterDBId(String masterDBId) { this.masterDBId = masterDBId; } - + public Integer getBackupSwitch() { return backupSwitch; } @@ -86,7 +116,7 @@ public Integer getBackupSwitch() { public void setBackupSwitch(Integer backupSwitch) { this.backupSwitch = backupSwitch; } - + public String getSlaveDBId() { return slaveDBId; } @@ -94,4 +124,14 @@ public String getSlaveDBId() { public void setSlaveDBId(String slaveDBId) { this.slaveDBId = slaveDBId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceSlaveBackupSwitchResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceSlaveBackupSwitchResponse.java index 04c52d53..f50955a2 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceSlaveBackupSwitchResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceSlaveBackupSwitchResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUDBInstanceSlaveBackupSwitchResponse extends Response {} +public class UpdateUDBInstanceSlaveBackupSwitchResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBParamGroupRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBParamGroupRequest.java index 25c2015e..349db183 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBParamGroupRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBParamGroupRequest.java @@ -1,64 +1,107 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUDBParamGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 配置参数组id,使用DescribeUDBParamGroup获得 */ + + + + /** + * 配置参数组id,使用DescribeUDBParamGroup获得 + */ @NotEmpty @UCloudParam("GroupId") private Integer groupId; - - /** 参数名称(与Value配合使用) */ + + + + /** + * 参数名称(与Value配合使用) + */ @UCloudParam("Key") private String key; - - /** 参数值(与Key配合使用) */ + + + + /** + * 参数值(与Key配合使用) + */ @UCloudParam("Value") private String value; - - /** 配置文件的名字,不传时认为不修改名字,传了则不能为空 */ + + + + /** + * 配置文件的名字,不传时认为不修改名字,传了则不能为空 + */ @UCloudParam("Name") private String name; - - /** 配置文件的描述,不传时认为不修改 */ + + + + /** + * 配置文件的描述,不传时认为不修改 + */ @UCloudParam("Description") private String description; - - /** 该配置文件是否是地域级别配置文件, 默认是false */ + + + + /** + * 该配置文件是否是地域级别配置文件, +默认是false + */ @UCloudParam("RegionFlag") private Boolean regionFlag; - + + public String getRegion() { return region; } @@ -66,7 +109,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -74,7 +117,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -82,7 +125,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getGroupId() { return groupId; } @@ -90,7 +133,7 @@ public Integer getGroupId() { public void setGroupId(Integer groupId) { this.groupId = groupId; } - + public String getKey() { return key; } @@ -98,7 +141,7 @@ public String getKey() { public void setKey(String key) { this.key = key; } - + public String getValue() { return value; } @@ -106,7 +149,7 @@ public String getValue() { public void setValue(String value) { this.value = value; } - + public String getName() { return name; } @@ -114,7 +157,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getDescription() { return description; } @@ -122,7 +165,7 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } - + public Boolean getRegionFlag() { return regionFlag; } @@ -130,4 +173,14 @@ public Boolean getRegionFlag() { public void setRegionFlag(Boolean regionFlag) { this.regionFlag = regionFlag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBParamGroupResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBParamGroupResponse.java index 6fc7dce1..e24f4f97 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBParamGroupResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBParamGroupResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUDBParamGroupResponse extends Response {} +public class UpdateUDBParamGroupResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBInstanceToHARequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBInstanceToHARequest.java index f6cc1f46..fc6a604f 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBInstanceToHARequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBInstanceToHARequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpgradeUDBInstanceToHARequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例的Id,该值可以通过DescribeUDBInstance获取 */ + + + + /** + * 实例的Id,该值可以通过DescribeUDBInstance获取 + */ @NotEmpty @UCloudParam("DBId") private String dbId; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBId() { return dbId; } @@ -73,4 +92,14 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBInstanceToHAResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBInstanceToHAResponse.java index e51ad956..0b86e686 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBInstanceToHAResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBInstanceToHAResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpgradeUDBInstanceToHAResponse extends Response {} +public class UpgradeUDBInstanceToHAResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UploadUDBParamGroupRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UploadUDBParamGroupRequest.java index 4cbc48cf..d83d0190 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UploadUDBParamGroupRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UploadUDBParamGroupRequest.java @@ -1,66 +1,102 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UploadUDBParamGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - + + + /** - * DB类型id,DB类型id,mysql/mongodb/postgesql按版本细分 - * 1:mysql-5.1,2:mysql-5.5,3:percona-5.5,4:mysql-5.6,5:percona-5.6,6:mysql-5.7,7:percona-5.7,8:mariadb-10.0,9:mongodb-2.4,10:mongodb-2.6,11:mongodb-3.0,12:mongodb-3.2,13:postgresql-9.4,14:postgresql-9.6 + * DB类型id,DB类型id,mysql/mongodb/postgesql按版本细分 1:mysql-5.1,2:mysql-5.5,3:percona-5.5,4:mysql-5.6,5:percona-5.6,6:mysql-5.7,7:percona-5.7,8:mariadb-10.0,9:mongodb-2.4,10:mongodb-2.6,11:mongodb-3.0,12:mongodb-3.2,13:postgresql-9.4,14:postgresql-9.6 */ @NotEmpty @UCloudParam("DBTypeId") private String dbTypeId; - - /** 配置参数组名称 */ + + + + /** + * 配置参数组名称 + */ @NotEmpty @UCloudParam("GroupName") private String groupName; - - /** 参数组描述 */ + + + + /** + * 参数组描述 + */ @NotEmpty @UCloudParam("Description") private String description; - - /** 配置内容,导入的配置内容采用base64编码 */ + + + + /** + * 配置内容,导入的配置内容采用base64编码 + */ @NotEmpty @UCloudParam("Content") private String content; - - /** 该配置文件是否是地域级别配置文件, 默认是false */ + + + + /** + * 该配置文件是否是地域级别配置文件, +默认是false + */ @UCloudParam("RegionFlag") private Boolean regionFlag; - + + public String getRegion() { return region; } @@ -68,7 +104,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -76,7 +112,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -84,7 +120,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getDBTypeId() { return dbTypeId; } @@ -92,7 +128,7 @@ public String getDBTypeId() { public void setDBTypeId(String dbTypeId) { this.dbTypeId = dbTypeId; } - + public String getGroupName() { return groupName; } @@ -100,7 +136,7 @@ public String getGroupName() { public void setGroupName(String groupName) { this.groupName = groupName; } - + public String getDescription() { return description; } @@ -108,7 +144,7 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } - + public String getContent() { return content; } @@ -116,7 +152,7 @@ public String getContent() { public void setContent(String content) { this.content = content; } - + public Boolean getRegionFlag() { return regionFlag; } @@ -124,4 +160,14 @@ public Boolean getRegionFlag() { public void setRegionFlag(Boolean regionFlag) { this.regionFlag = regionFlag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UploadUDBParamGroupResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UploadUDBParamGroupResponse.java index 36a38480..7ead03b3 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UploadUDBParamGroupResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UploadUDBParamGroupResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class UploadUDBParamGroupResponse extends Response { - /** 配置参数组id */ + + + /** + * 配置参数组id + */ @SerializedName("GroupId") private Integer groupId; - + + public Integer getGroupId() { return groupId; } @@ -31,4 +41,14 @@ public Integer getGroupId() { public void setGroupId(Integer groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index 5a5d4b7a..6d763e7c 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-udbproxy - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/client/UDBProxyClient.java b/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/client/UDBProxyClient.java index 478d6cb9..1a2d93b3 100644 --- a/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/client/UDBProxyClient.java +++ b/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/client/UDBProxyClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.udbproxy.client; @@ -17,24 +19,33 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.udbproxy.models.ListUDBProxyClientRequest; import cn.ucloud.udbproxy.models.ListUDBProxyClientResponse; -/** This client is used to call actions of **UDBProxy** service */ +/** + * This client is used to call actions of **UDBProxy** service + */ public class UDBProxyClient extends DefaultClient implements UDBProxyClientInterface { public UDBProxyClient(Config config, Credential credential) { super(config, credential); } - - /** - * ListUDBProxyClient - 查询代理客户端连接IP信息(实时) - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUDBProxyClientResponse listUDBProxyClient(ListUDBProxyClientRequest request) - throws UCloudException { - request.setAction("ListUDBProxyClient"); - return (ListUDBProxyClientResponse) this.invoke(request, ListUDBProxyClientResponse.class); - } + + + + + + + /** + * ListUDBProxyClient - 查询代理客户端连接IP信息(实时) + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUDBProxyClientResponse listUDBProxyClient(ListUDBProxyClientRequest request) throws UCloudException { + request.setAction("ListUDBProxyClient"); + return (ListUDBProxyClientResponse) this.invoke(request, ListUDBProxyClientResponse.class); + } } diff --git a/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/client/UDBProxyClientInterface.java b/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/client/UDBProxyClientInterface.java index dff985ef..2c235b8b 100644 --- a/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/client/UDBProxyClientInterface.java +++ b/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/client/UDBProxyClientInterface.java @@ -1,32 +1,43 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.udbproxy.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.udbproxy.models.ListUDBProxyClientRequest; import cn.ucloud.udbproxy.models.ListUDBProxyClientResponse; -/** This client is used to call actions of **UDBProxy** service */ +/** + * This client is used to call actions of **UDBProxy** service + */ public interface UDBProxyClientInterface extends Client { - + + + + + + /** * ListUDBProxyClient - 查询代理客户端连接IP信息(实时) * * @param request Request object * @throws UCloudException Exception */ - public ListUDBProxyClientResponse listUDBProxyClient(ListUDBProxyClientRequest request) - throws UCloudException; + public ListUDBProxyClientResponse listUDBProxyClient(ListUDBProxyClientRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/models/ListUDBProxyClientRequest.java b/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/models/ListUDBProxyClientRequest.java index 9a8521bb..824b54db 100644 --- a/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/models/ListUDBProxyClientRequest.java +++ b/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/models/ListUDBProxyClientRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udbproxy.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUDBProxyClientRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 代理ID */ + + + + /** + * 代理ID + */ @NotEmpty @UCloudParam("UDBProxyID") private String udbProxyID; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDBProxyID() { return udbProxyID; } @@ -73,4 +92,14 @@ public String getUDBProxyID() { public void setUDBProxyID(String udbProxyID) { this.udbProxyID = udbProxyID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/models/ListUDBProxyClientResponse.java b/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/models/ListUDBProxyClientResponse.java index 7bd182c2..21f7a02c 100644 --- a/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/models/ListUDBProxyClientResponse.java +++ b/ucloud-sdk-java-udbproxy/src/main/java/cn/ucloud/udbproxy/models/ListUDBProxyClientResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udbproxy.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUDBProxyClientResponse extends Response { - /** 代理ID */ + + + /** + * 代理ID + */ @SerializedName("UDBProxyID") private String udbProxyID; - - /** 代理节点客户端IP连接信息 */ + + + + /** + * 代理节点客户端IP连接信息 + */ @SerializedName("NodeClientInfos") private List nodeClientInfos; - + + public String getUDBProxyID() { return udbProxyID; } @@ -36,7 +49,7 @@ public String getUDBProxyID() { public void setUDBProxyID(String udbProxyID) { this.udbProxyID = udbProxyID; } - + public List getNodeClientInfos() { return nodeClientInfos; } @@ -44,178 +57,244 @@ public List getNodeClientInfos() { public void setNodeClientInfos(List nodeClientInfos) { this.nodeClientInfos = nodeClientInfos; } - - public static class NodeClientInfo extends Response { - - /** 客户端IP连接信息 */ - @SerializedName("Records") - private List records; - - /** 代理节点ID */ - @SerializedName("ID") - private String id; - - /** 代理节点IP */ - @SerializedName("IP") - private String ip; - - public List getRecords() { - return records; - } - - public void setRecords(List records) { - this.records = records; - } - - public String getID() { - return id; - } - - public void setID(String id) { - this.id = id; - } - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } + + public static class NodeClientInfo extends Response { + + + /** + * 客户端IP连接信息 + */ + @SerializedName("Records") + private List records; + + + + /** + * 代理节点ID + */ + @SerializedName("ID") + private String id; + + + + /** + * 代理节点IP + */ + @SerializedName("IP") + private String ip; + + + public List getRecords() { + return records; } - public static class ProxyProcesslist extends Response { - - /** 当前连接DB进程ID */ - @SerializedName("ID") - private Integer id; - - /** 启动这个线程的用户 */ - @SerializedName("User") - private String user; - - /** 代理连接DB地址 */ - @SerializedName("Host") - private String host; - - /** 当前执行的命令是在哪一个数据库上。如果没有指定数据库,则该值为 NULL */ - @SerializedName("DB") - private String db; - - /** 显示当前连接的执行的命令 */ - @SerializedName("Command") - private String command; - - /** 表示该线程处于当前状态的时间 */ - @SerializedName("Time") - private Integer time; - - /** 线程的状态,和 Command 对应 */ - @SerializedName("State") - private String state; - - /** 一般记录的是线程执行的语句 */ - @SerializedName("Info") - private String info; - - /** 代理连接DB地址 */ - @SerializedName("ClientHost") - private String clientHost; - - /** 数据库资源ID */ - @SerializedName("DBID") - private String dbid; - - /** 数据库角色(主库/从库) */ - @SerializedName("Role") - private String role; + public void setRecords(List records) { + this.records = records; + } + + public String getID() { + return id; + } - public Integer getID() { - return id; - } + public void setID(String id) { + this.id = id; + } + + public String getIP() { + return ip; + } - public void setID(Integer id) { - this.id = id; + public void setIP(String ip) { + this.ip = ip; + } + } + public static class ProxyProcesslist extends Response { + + + /** + * 当前连接DB进程ID + */ + @SerializedName("ID") + private Integer id; + + + + /** + * 启动这个线程的用户 + */ + @SerializedName("User") + private String user; + + + + /** + * 代理连接DB地址 + */ + @SerializedName("Host") + private String host; + + + + /** + * 当前执行的命令是在哪一个数据库上。如果没有指定数据库,则该值为 NULL + */ + @SerializedName("DB") + private String db; + + + + /** + * 显示当前连接的执行的命令 + */ + @SerializedName("Command") + private String command; + + + + /** + * 表示该线程处于当前状态的时间 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 线程的状态,和 Command 对应 + */ + @SerializedName("State") + private String state; + + + + /** + * 一般记录的是线程执行的语句 + */ + @SerializedName("Info") + private String info; + + + + /** + * 代理连接DB地址 + */ + @SerializedName("ClientHost") + private String clientHost; + + + + /** + * 数据库资源ID + */ + @SerializedName("DBID") + private String dbid; + + + + /** + * 数据库角色(主库/从库) + */ + @SerializedName("Role") + private String role; + + + public Integer getID() { + return id; + } - public String getUser() { - return user; - } + public void setID(Integer id) { + this.id = id; + } + + public String getUser() { + return user; + } - public void setUser(String user) { - this.user = user; - } + public void setUser(String user) { + this.user = user; + } + + public String getHost() { + return host; + } - public String getHost() { - return host; - } + public void setHost(String host) { + this.host = host; + } + + public String getDB() { + return db; + } - public void setHost(String host) { - this.host = host; - } + public void setDB(String db) { + this.db = db; + } + + public String getCommand() { + return command; + } - public String getDB() { - return db; - } + public void setCommand(String command) { + this.command = command; + } + + public Integer getTime() { + return time; + } - public void setDB(String db) { - this.db = db; - } + public void setTime(Integer time) { + this.time = time; + } + + public String getState() { + return state; + } - public String getCommand() { - return command; - } + public void setState(String state) { + this.state = state; + } + + public String getInfo() { + return info; + } - public void setCommand(String command) { - this.command = command; - } + public void setInfo(String info) { + this.info = info; + } + + public String getClientHost() { + return clientHost; + } - public Integer getTime() { - return time; - } + public void setClientHost(String clientHost) { + this.clientHost = clientHost; + } + + public String getDBID() { + return dbid; + } - public void setTime(Integer time) { - this.time = time; - } + public void setDBID(String dbid) { + this.dbid = dbid; + } + + public String getRole() { + return role; + } - public String getState() { - return state; + public void setRole(String role) { + this.role = role; + } + } +} - public void setState(String state) { - this.state = state; - } - public String getInfo() { - return info; - } - public void setInfo(String info) { - this.info = info; - } - public String getClientHost() { - return clientHost; - } - public void setClientHost(String clientHost) { - this.clientHost = clientHost; - } - public String getDBID() { - return dbid; - } - public void setDBID(String dbid) { - this.dbid = dbid; - } - public String getRole() { - return role; - } - public void setRole(String role) { - this.role = role; - } - } -} diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index 8fbfe922..1c3fe265 100644 --- a/ucloud-sdk-java-udi/pom.xml +++ b/ucloud-sdk-java-udi/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-udi - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/client/UDIClient.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/client/UDIClient.java index c0530021..ae306cb4 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/client/UDIClient.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/client/UDIClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.udi.client; @@ -17,98 +19,138 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.udi.models.CreateFunctionTemplateRequest; import cn.ucloud.udi.models.CreateFunctionTemplateResponse; + + + import cn.ucloud.udi.models.CreateMediaTaskRequest; import cn.ucloud.udi.models.CreateMediaTaskResponse; + + + import cn.ucloud.udi.models.DeleteFunctionTemplateRequest; import cn.ucloud.udi.models.DeleteFunctionTemplateResponse; + + + import cn.ucloud.udi.models.DescribeFunctionTemplateRequest; import cn.ucloud.udi.models.DescribeFunctionTemplateResponse; + + + import cn.ucloud.udi.models.DescribeMediaFunctionsRequest; import cn.ucloud.udi.models.DescribeMediaFunctionsResponse; + + + import cn.ucloud.udi.models.DescribeMediaTaskRequest; import cn.ucloud.udi.models.DescribeMediaTaskResponse; -/** This client is used to call actions of **UDI** service */ +/** + * This client is used to call actions of **UDI** service + */ public class UDIClient extends DefaultClient implements UDIClientInterface { public UDIClient(Config config, Credential credential) { super(config, credential); } - - /** - * CreateFunctionTemplate - 创建功能模板 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateFunctionTemplateResponse createFunctionTemplate( - CreateFunctionTemplateRequest request) throws UCloudException { - request.setAction("CreateFunctionTemplate"); - return (CreateFunctionTemplateResponse) - this.invoke(request, CreateFunctionTemplateResponse.class); - } - - /** - * CreateMediaTask - 创建媒体任务 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateMediaTaskResponse createMediaTask(CreateMediaTaskRequest request) - throws UCloudException { - request.setAction("CreateMediaTask"); - return (CreateMediaTaskResponse) this.invoke(request, CreateMediaTaskResponse.class); - } - - /** - * DeleteFunctionTemplate - 删除功能模板 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteFunctionTemplateResponse deleteFunctionTemplate( - DeleteFunctionTemplateRequest request) throws UCloudException { - request.setAction("DeleteFunctionTemplate"); - return (DeleteFunctionTemplateResponse) - this.invoke(request, DeleteFunctionTemplateResponse.class); - } - - /** - * DescribeFunctionTemplate - 获取功能模板 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeFunctionTemplateResponse describeFunctionTemplate( - DescribeFunctionTemplateRequest request) throws UCloudException { - request.setAction("DescribeFunctionTemplate"); - return (DescribeFunctionTemplateResponse) - this.invoke(request, DescribeFunctionTemplateResponse.class); - } - - /** - * DescribeMediaFunctions - 获取多媒体功能 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeMediaFunctionsResponse describeMediaFunctions( - DescribeMediaFunctionsRequest request) throws UCloudException { - request.setAction("DescribeMediaFunctions"); - return (DescribeMediaFunctionsResponse) - this.invoke(request, DescribeMediaFunctionsResponse.class); - } - - /** - * DescribeMediaTask - 描述媒体任务 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeMediaTaskResponse describeMediaTask(DescribeMediaTaskRequest request) - throws UCloudException { - request.setAction("DescribeMediaTask"); - return (DescribeMediaTaskResponse) this.invoke(request, DescribeMediaTaskResponse.class); - } + + + + + + + /** + * CreateFunctionTemplate - 创建功能模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateFunctionTemplateResponse createFunctionTemplate(CreateFunctionTemplateRequest request) throws UCloudException { + request.setAction("CreateFunctionTemplate"); + return (CreateFunctionTemplateResponse) this.invoke(request, CreateFunctionTemplateResponse.class); + } + + + + + + + /** + * CreateMediaTask - 创建媒体任务 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateMediaTaskResponse createMediaTask(CreateMediaTaskRequest request) throws UCloudException { + request.setAction("CreateMediaTask"); + return (CreateMediaTaskResponse) this.invoke(request, CreateMediaTaskResponse.class); + } + + + + + + + /** + * DeleteFunctionTemplate - 删除功能模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteFunctionTemplateResponse deleteFunctionTemplate(DeleteFunctionTemplateRequest request) throws UCloudException { + request.setAction("DeleteFunctionTemplate"); + return (DeleteFunctionTemplateResponse) this.invoke(request, DeleteFunctionTemplateResponse.class); + } + + + + + + + /** + * DescribeFunctionTemplate - 获取功能模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeFunctionTemplateResponse describeFunctionTemplate(DescribeFunctionTemplateRequest request) throws UCloudException { + request.setAction("DescribeFunctionTemplate"); + return (DescribeFunctionTemplateResponse) this.invoke(request, DescribeFunctionTemplateResponse.class); + } + + + + + + + /** + * DescribeMediaFunctions - 获取多媒体功能 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeMediaFunctionsResponse describeMediaFunctions(DescribeMediaFunctionsRequest request) throws UCloudException { + request.setAction("DescribeMediaFunctions"); + return (DescribeMediaFunctionsResponse) this.invoke(request, DescribeMediaFunctionsResponse.class); + } + + + + + + + /** + * DescribeMediaTask - 描述媒体任务 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeMediaTaskResponse describeMediaTask(DescribeMediaTaskRequest request) throws UCloudException { + request.setAction("DescribeMediaTask"); + return (DescribeMediaTaskResponse) this.invoke(request, DescribeMediaTaskResponse.class); + } } diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/client/UDIClientInterface.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/client/UDIClientInterface.java index 12d60974..7f2a2a0e 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/client/UDIClientInterface.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/client/UDIClientInterface.java @@ -1,87 +1,133 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.udi.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.udi.models.CreateFunctionTemplateRequest; import cn.ucloud.udi.models.CreateFunctionTemplateResponse; + + + import cn.ucloud.udi.models.CreateMediaTaskRequest; import cn.ucloud.udi.models.CreateMediaTaskResponse; + + + import cn.ucloud.udi.models.DeleteFunctionTemplateRequest; import cn.ucloud.udi.models.DeleteFunctionTemplateResponse; + + + import cn.ucloud.udi.models.DescribeFunctionTemplateRequest; import cn.ucloud.udi.models.DescribeFunctionTemplateResponse; + + + import cn.ucloud.udi.models.DescribeMediaFunctionsRequest; import cn.ucloud.udi.models.DescribeMediaFunctionsResponse; + + + import cn.ucloud.udi.models.DescribeMediaTaskRequest; import cn.ucloud.udi.models.DescribeMediaTaskResponse; -/** This client is used to call actions of **UDI** service */ +/** + * This client is used to call actions of **UDI** service + */ public interface UDIClientInterface extends Client { - + + + + + + /** * CreateFunctionTemplate - 创建功能模板 * * @param request Request object * @throws UCloudException Exception */ - public CreateFunctionTemplateResponse createFunctionTemplate( - CreateFunctionTemplateRequest request) throws UCloudException; - + public CreateFunctionTemplateResponse createFunctionTemplate(CreateFunctionTemplateRequest request) throws UCloudException; + + + + + + /** * CreateMediaTask - 创建媒体任务 * * @param request Request object * @throws UCloudException Exception */ - public CreateMediaTaskResponse createMediaTask(CreateMediaTaskRequest request) - throws UCloudException; - + public CreateMediaTaskResponse createMediaTask(CreateMediaTaskRequest request) throws UCloudException; + + + + + + /** * DeleteFunctionTemplate - 删除功能模板 * * @param request Request object * @throws UCloudException Exception */ - public DeleteFunctionTemplateResponse deleteFunctionTemplate( - DeleteFunctionTemplateRequest request) throws UCloudException; - + public DeleteFunctionTemplateResponse deleteFunctionTemplate(DeleteFunctionTemplateRequest request) throws UCloudException; + + + + + + /** * DescribeFunctionTemplate - 获取功能模板 * * @param request Request object * @throws UCloudException Exception */ - public DescribeFunctionTemplateResponse describeFunctionTemplate( - DescribeFunctionTemplateRequest request) throws UCloudException; - + public DescribeFunctionTemplateResponse describeFunctionTemplate(DescribeFunctionTemplateRequest request) throws UCloudException; + + + + + + /** * DescribeMediaFunctions - 获取多媒体功能 * * @param request Request object * @throws UCloudException Exception */ - public DescribeMediaFunctionsResponse describeMediaFunctions( - DescribeMediaFunctionsRequest request) throws UCloudException; - + public DescribeMediaFunctionsResponse describeMediaFunctions(DescribeMediaFunctionsRequest request) throws UCloudException; + + + + + + /** * DescribeMediaTask - 描述媒体任务 * * @param request Request object * @throws UCloudException Exception */ - public DescribeMediaTaskResponse describeMediaTask(DescribeMediaTaskRequest request) - throws UCloudException; + public DescribeMediaTaskResponse describeMediaTask(DescribeMediaTaskRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateFunctionTemplateRequest.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateFunctionTemplateRequest.java index 0faf0f80..f4b33010 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateFunctionTemplateRequest.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateFunctionTemplateRequest.java @@ -1,119 +1,206 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udi.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateFunctionTemplateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 项目名称 */ + + + + /** + * 项目名称 + */ @NotEmpty @UCloudParam("ProjectName") private String projectName; - - /** 模板名称 */ + + + + /** + * 模板名称 + */ @NotEmpty @UCloudParam("TemplateName") private String templateName; - - /** 功能名称 */ + + + + /** + * 功能名称 + */ @NotEmpty @UCloudParam("Function") private String function; - - /** 文件输出格式 */ + + + + /** + * 文件输出格式 + */ @NotEmpty @UCloudParam("ContainerFormat") private String containerFormat; - - /** 编码格式 */ + + + + /** + * 编码格式 + */ @NotEmpty @UCloudParam("EncodeFormat") private String encodeFormat; - - /** 视频比特率 */ + + + + /** + * 视频比特率 + */ @UCloudParam("VideoBitRate") private String videoBitRate; - - /** 自定义视频比特率 */ + + + + /** + * 自定义视频比特率 + */ @UCloudParam("VideoBitRateCustom") private String videoBitRateCustom; - - /** 分辨率 */ + + + + /** + * 分辨率 + */ @UCloudParam("Resolution") private String resolution; - - /** 分辨率宽 */ + + + + /** + * 分辨率宽 + */ @UCloudParam("ResolutionWidth") private String resolutionWidth; - - /** 分辨率高 */ + + + + /** + * 分辨率高 + */ @UCloudParam("ResolutionHeight") private String resolutionHeight; - - /** 音频比特率 */ + + + + /** + * 音频比特率 + */ @UCloudParam("AudioBitRate") private String audioBitRate; - - /** 自定义音频比特率 */ + + + + /** + * 自定义音频比特率 + */ @UCloudParam("AudioBitRateCustom") private String audioBitRateCustom; - - /** 音频采样率 */ + + + + /** + * 音频采样率 + */ @UCloudParam("AudioSampleRate") private String audioSampleRate; - - /** 音频声道 */ + + + + /** + * 音频声道 + */ @UCloudParam("AudioChannel") private String audioChannel; - - /** CRF压缩率 */ + + + + /** + * CRF压缩率 + */ @UCloudParam("CRF") private String crf; - - /** 自定义CRF压缩率 */ + + + + /** + * 自定义CRF压缩率 + */ @UCloudParam("CRFCustom") private String crfCustom; - - /** 帧率 */ + + + + /** + * 帧率 + */ @UCloudParam("FrameRate") private String frameRate; - - /** 自定义帧率 */ + + + + /** + * 自定义帧率 + */ @UCloudParam("FrameRateCustom") private String frameRateCustom; - + + public String getRegion() { return region; } @@ -121,7 +208,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -129,7 +216,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -137,7 +224,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getProjectName() { return projectName; } @@ -145,7 +232,7 @@ public String getProjectName() { public void setProjectName(String projectName) { this.projectName = projectName; } - + public String getTemplateName() { return templateName; } @@ -153,7 +240,7 @@ public String getTemplateName() { public void setTemplateName(String templateName) { this.templateName = templateName; } - + public String getFunction() { return function; } @@ -161,7 +248,7 @@ public String getFunction() { public void setFunction(String function) { this.function = function; } - + public String getContainerFormat() { return containerFormat; } @@ -169,7 +256,7 @@ public String getContainerFormat() { public void setContainerFormat(String containerFormat) { this.containerFormat = containerFormat; } - + public String getEncodeFormat() { return encodeFormat; } @@ -177,7 +264,7 @@ public String getEncodeFormat() { public void setEncodeFormat(String encodeFormat) { this.encodeFormat = encodeFormat; } - + public String getVideoBitRate() { return videoBitRate; } @@ -185,7 +272,7 @@ public String getVideoBitRate() { public void setVideoBitRate(String videoBitRate) { this.videoBitRate = videoBitRate; } - + public String getVideoBitRateCustom() { return videoBitRateCustom; } @@ -193,7 +280,7 @@ public String getVideoBitRateCustom() { public void setVideoBitRateCustom(String videoBitRateCustom) { this.videoBitRateCustom = videoBitRateCustom; } - + public String getResolution() { return resolution; } @@ -201,7 +288,7 @@ public String getResolution() { public void setResolution(String resolution) { this.resolution = resolution; } - + public String getResolutionWidth() { return resolutionWidth; } @@ -209,7 +296,7 @@ public String getResolutionWidth() { public void setResolutionWidth(String resolutionWidth) { this.resolutionWidth = resolutionWidth; } - + public String getResolutionHeight() { return resolutionHeight; } @@ -217,7 +304,7 @@ public String getResolutionHeight() { public void setResolutionHeight(String resolutionHeight) { this.resolutionHeight = resolutionHeight; } - + public String getAudioBitRate() { return audioBitRate; } @@ -225,7 +312,7 @@ public String getAudioBitRate() { public void setAudioBitRate(String audioBitRate) { this.audioBitRate = audioBitRate; } - + public String getAudioBitRateCustom() { return audioBitRateCustom; } @@ -233,7 +320,7 @@ public String getAudioBitRateCustom() { public void setAudioBitRateCustom(String audioBitRateCustom) { this.audioBitRateCustom = audioBitRateCustom; } - + public String getAudioSampleRate() { return audioSampleRate; } @@ -241,7 +328,7 @@ public String getAudioSampleRate() { public void setAudioSampleRate(String audioSampleRate) { this.audioSampleRate = audioSampleRate; } - + public String getAudioChannel() { return audioChannel; } @@ -249,7 +336,7 @@ public String getAudioChannel() { public void setAudioChannel(String audioChannel) { this.audioChannel = audioChannel; } - + public String getCRF() { return crf; } @@ -257,7 +344,7 @@ public String getCRF() { public void setCRF(String crf) { this.crf = crf; } - + public String getCRFCustom() { return crfCustom; } @@ -265,7 +352,7 @@ public String getCRFCustom() { public void setCRFCustom(String crfCustom) { this.crfCustom = crfCustom; } - + public String getFrameRate() { return frameRate; } @@ -273,7 +360,7 @@ public String getFrameRate() { public void setFrameRate(String frameRate) { this.frameRate = frameRate; } - + public String getFrameRateCustom() { return frameRateCustom; } @@ -281,4 +368,14 @@ public String getFrameRateCustom() { public void setFrameRateCustom(String frameRateCustom) { this.frameRateCustom = frameRateCustom; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateFunctionTemplateResponse.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateFunctionTemplateResponse.java index 9c5e2fbe..5f6b20d4 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateFunctionTemplateResponse.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateFunctionTemplateResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udi.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateFunctionTemplateResponse extends Response { - /** 创建的模板ID */ + + + /** + * 创建的模板ID + */ @SerializedName("TemplateId") private String templateId; - + + public String getTemplateId() { return templateId; } @@ -31,4 +41,14 @@ public String getTemplateId() { public void setTemplateId(String templateId) { this.templateId = templateId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateMediaTaskRequest.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateMediaTaskRequest.java index 3a563c10..2617a8e0 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateMediaTaskRequest.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateMediaTaskRequest.java @@ -1,72 +1,111 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udi.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateMediaTaskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 存储源 */ + + + + /** + * 存储源 + */ @NotEmpty @UCloudParam("StorageBackend") private String storageBackend; - - /** Bucket名称 */ + + + + /** + * Bucket名称 + */ @NotEmpty @UCloudParam("Bucket") private String bucket; - - /** 源文件 */ + + + + /** + * 源文件 + */ @NotEmpty @UCloudParam("SrcKey") private String srcKey; - - /** 目标生成文件 */ + + + + /** + * 目标生成文件 + */ @NotEmpty @UCloudParam("DstKey") private String dstKey; - - /** 功能名称:例VideoTranscode */ + + + + /** + * 功能名称:例VideoTranscode + */ @NotEmpty @UCloudParam("Function") private String function; - - /** 功能的参数模板ID,需要事先创建模板才可用,也可以使用预设模板,详细可通过DescribeFunctionTemplate接口查询 */ + + + + /** + * 功能的参数模板ID,需要事先创建模板才可用,也可以使用预设模板,详细可通过DescribeFunctionTemplate接口查询 + */ @NotEmpty @UCloudParam("FunctionParamTemplateId") private String functionParamTemplateId; - + + public String getRegion() { return region; } @@ -74,7 +113,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -82,7 +121,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -90,7 +129,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getStorageBackend() { return storageBackend; } @@ -98,7 +137,7 @@ public String getStorageBackend() { public void setStorageBackend(String storageBackend) { this.storageBackend = storageBackend; } - + public String getBucket() { return bucket; } @@ -106,7 +145,7 @@ public String getBucket() { public void setBucket(String bucket) { this.bucket = bucket; } - + public String getSrcKey() { return srcKey; } @@ -114,7 +153,7 @@ public String getSrcKey() { public void setSrcKey(String srcKey) { this.srcKey = srcKey; } - + public String getDstKey() { return dstKey; } @@ -122,7 +161,7 @@ public String getDstKey() { public void setDstKey(String dstKey) { this.dstKey = dstKey; } - + public String getFunction() { return function; } @@ -130,7 +169,7 @@ public String getFunction() { public void setFunction(String function) { this.function = function; } - + public String getFunctionParamTemplateId() { return functionParamTemplateId; } @@ -138,4 +177,14 @@ public String getFunctionParamTemplateId() { public void setFunctionParamTemplateId(String functionParamTemplateId) { this.functionParamTemplateId = functionParamTemplateId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateMediaTaskResponse.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateMediaTaskResponse.java index bfb255e2..8b42ea98 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateMediaTaskResponse.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/CreateMediaTaskResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udi.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateMediaTaskResponse extends Response { - /** 任务ID */ + + + /** + * 任务ID + */ @SerializedName("TaskId") private String taskId; - + + public String getTaskId() { return taskId; } @@ -31,4 +41,14 @@ public String getTaskId() { public void setTaskId(String taskId) { this.taskId = taskId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DeleteFunctionTemplateRequest.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DeleteFunctionTemplateRequest.java index 00d166b3..d2fac433 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DeleteFunctionTemplateRequest.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DeleteFunctionTemplateRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udi.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteFunctionTemplateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 要删除的模板ID */ + + + + /** + * 要删除的模板ID + */ @NotEmpty @UCloudParam("TemplateId") private String templateId; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getTemplateId() { return templateId; } @@ -73,4 +92,14 @@ public String getTemplateId() { public void setTemplateId(String templateId) { this.templateId = templateId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DeleteFunctionTemplateResponse.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DeleteFunctionTemplateResponse.java index 64141602..29c6d596 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DeleteFunctionTemplateResponse.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DeleteFunctionTemplateResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udi.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteFunctionTemplateResponse extends Response {} +public class DeleteFunctionTemplateResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeFunctionTemplateRequest.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeFunctionTemplateRequest.java index 7ff99be2..3ddf31c3 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeFunctionTemplateRequest.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeFunctionTemplateRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udi.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeFunctionTemplateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 功能模板类型:预设(preset)自定义(custom),为空则获取两种类型 */ + + + + /** + * 功能模板类型:预设(preset)自定义(custom),为空则获取两种类型 + */ @UCloudParam("Type") private String type; - + + public String getRegion() { return region; } @@ -48,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -56,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -64,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getType() { return type; } @@ -72,4 +91,14 @@ public String getType() { public void setType(String type) { this.type = type; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeFunctionTemplateResponse.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeFunctionTemplateResponse.java index 102e28ec..b6135424 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeFunctionTemplateResponse.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeFunctionTemplateResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udi.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeFunctionTemplateResponse extends Response { - /** 功能模板 */ + + + /** + * 功能模板 + */ @SerializedName("Templates") private List templates; - + + public List getTemplates() { return templates; } @@ -32,43 +41,65 @@ public List getTemplates() { public void setTemplates(List templates) { this.templates = templates; } + + public static class FunctionTemplate extends Response { + + + /** + * + */ + @SerializedName("Name") + private String name; + + + + /** + * + */ + @SerializedName("FunctionName") + private String functionName; + + + + /** + * + */ + @SerializedName("Id") + private String id; + + + public String getName() { + return name; + } - public static class FunctionTemplate extends Response { + public void setName(String name) { + this.name = name; + } + + public String getFunctionName() { + return functionName; + } + + public void setFunctionName(String functionName) { + this.functionName = functionName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + } +} - /** */ - @SerializedName("Name") - private String name; - /** */ - @SerializedName("FunctionName") - private String functionName; - /** */ - @SerializedName("Id") - private String id; - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public String getFunctionName() { - return functionName; - } - public void setFunctionName(String functionName) { - this.functionName = functionName; - } - public String getId() { - return id; - } - public void setId(String id) { - this.id = id; - } - } -} diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaFunctionsRequest.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaFunctionsRequest.java index 5daee2f6..c479ad9d 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaFunctionsRequest.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaFunctionsRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udi.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeMediaFunctionsRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 要查询的Function名称,为空则返回所有支持的Function */ + + + + /** + * 要查询的Function名称,为空则返回所有支持的Function + */ @UCloudParam("Function") private String function; - + + public String getRegion() { return region; } @@ -48,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -56,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -64,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFunction() { return function; } @@ -72,4 +91,14 @@ public String getFunction() { public void setFunction(String function) { this.function = function; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaFunctionsResponse.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaFunctionsResponse.java index d1988ab3..b1f97d71 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaFunctionsResponse.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaFunctionsResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udi.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeMediaFunctionsResponse extends Response { - /** 功能列表 */ + + + /** + * 功能列表 + */ @SerializedName("Functions") private List functions; - + + public List getFunctions() { return functions; } @@ -32,181 +41,247 @@ public List getFunctions() { public void setFunctions(List functions) { this.functions = functions; } - - public static class Function extends Response { - - /** */ - @SerializedName("FunctionName") - private String functionName; - - /** */ - @SerializedName("DisplayName") - private String displayName; - - /** */ - @SerializedName("InputType") - private String inputType; - - /** */ - @SerializedName("OutputType") - private String outputType; - - /** */ - @SerializedName("SupportParams") - private List supportParams; - - public String getFunctionName() { - return functionName; - } - - public void setFunctionName(String functionName) { - this.functionName = functionName; - } - - public String getDisplayName() { - return displayName; - } - - public void setDisplayName(String displayName) { - this.displayName = displayName; - } - - public String getInputType() { - return inputType; - } - - public void setInputType(String inputType) { - this.inputType = inputType; - } - - public String getOutputType() { - return outputType; - } - - public void setOutputType(String outputType) { - this.outputType = outputType; - } - - public List getSupportParams() { - return supportParams; - } - - public void setSupportParams(List supportParams) { - this.supportParams = supportParams; - } + + public static class Function extends Response { + + + /** + * + */ + @SerializedName("FunctionName") + private String functionName; + + + + /** + * + */ + @SerializedName("DisplayName") + private String displayName; + + + + /** + * + */ + @SerializedName("InputType") + private String inputType; + + + + /** + * + */ + @SerializedName("OutputType") + private String outputType; + + + + /** + * + */ + @SerializedName("SupportParams") + private List supportParams; + + + public String getFunctionName() { + return functionName; } - public static class ParamCustom extends Response { - - /** */ - @SerializedName("ParamName") - private String paramName; - - /** */ - @SerializedName("ParamType") - private String paramType; - - /** */ - @SerializedName("Max") - private Integer max; - - /** */ - @SerializedName("Min") - private Integer min; + public void setFunctionName(String functionName) { + this.functionName = functionName; + } + + public String getDisplayName() { + return displayName; + } - public String getParamName() { - return paramName; - } + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public String getInputType() { + return inputType; + } - public void setParamName(String paramName) { - this.paramName = paramName; - } + public void setInputType(String inputType) { + this.inputType = inputType; + } + + public String getOutputType() { + return outputType; + } - public String getParamType() { - return paramType; - } + public void setOutputType(String outputType) { + this.outputType = outputType; + } + + public List getSupportParams() { + return supportParams; + } - public void setParamType(String paramType) { - this.paramType = paramType; + public void setSupportParams(List supportParams) { + this.supportParams = supportParams; + } + } + public static class ParamCustom extends Response { + + + /** + * + */ + @SerializedName("ParamName") + private String paramName; + + + + /** + * + */ + @SerializedName("ParamType") + private String paramType; + + + + /** + * + */ + @SerializedName("Max") + private Integer max; + + + + /** + * + */ + @SerializedName("Min") + private Integer min; + + + public String getParamName() { + return paramName; + } - public Integer getMax() { - return max; - } + public void setParamName(String paramName) { + this.paramName = paramName; + } + + public String getParamType() { + return paramType; + } - public void setMax(Integer max) { - this.max = max; - } + public void setParamType(String paramType) { + this.paramType = paramType; + } + + public Integer getMax() { + return max; + } - public Integer getMin() { - return min; - } + public void setMax(Integer max) { + this.max = max; + } + + public Integer getMin() { + return min; + } - public void setMin(Integer min) { - this.min = min; + public void setMin(Integer min) { + this.min = min; + } + } + public static class ParamOption extends Response { + + + /** + * + */ + @SerializedName("DisplayName") + private String displayName; + + + + /** + * + */ + @SerializedName("ParamName") + private String paramName; + + + + /** + * + */ + @SerializedName("OptionalValues") + private List optionalValues; + + + + /** + * + */ + @SerializedName("Required") + private Boolean required; + + + + /** + * + */ + @SerializedName("WhenValueCustom") + private List whenValueCustom; + + + public String getDisplayName() { + return displayName; } - public static class ParamOption extends Response { - - /** */ - @SerializedName("DisplayName") - private String displayName; - - /** */ - @SerializedName("ParamName") - private String paramName; + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public String getParamName() { + return paramName; + } - /** */ - @SerializedName("OptionalValues") - private List optionalValues; + public void setParamName(String paramName) { + this.paramName = paramName; + } + + public List getOptionalValues() { + return optionalValues; + } - /** */ - @SerializedName("Required") - private Boolean required; + public void setOptionalValues(List optionalValues) { + this.optionalValues = optionalValues; + } + + public Boolean getRequired() { + return required; + } - /** */ - @SerializedName("WhenValueCustom") - private List whenValueCustom; + public void setRequired(Boolean required) { + this.required = required; + } + + public List getWhenValueCustom() { + return whenValueCustom; + } - public String getDisplayName() { - return displayName; + public void setWhenValueCustom(List whenValueCustom) { + this.whenValueCustom = whenValueCustom; + } + } +} - public void setDisplayName(String displayName) { - this.displayName = displayName; - } - public String getParamName() { - return paramName; - } - public void setParamName(String paramName) { - this.paramName = paramName; - } - public List getOptionalValues() { - return optionalValues; - } - public void setOptionalValues(List optionalValues) { - this.optionalValues = optionalValues; - } - public Boolean getRequired() { - return required; - } - public void setRequired(Boolean required) { - this.required = required; - } - public List getWhenValueCustom() { - return whenValueCustom; - } - public void setWhenValueCustom(List whenValueCustom) { - this.whenValueCustom = whenValueCustom; - } - } -} diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaTaskRequest.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaTaskRequest.java index d708389a..67fb8aab 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaTaskRequest.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaTaskRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udi.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeMediaTaskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 要查询的任务ID,为空则查询所有 */ + + + + /** + * 要查询的任务ID,为空则查询所有 + */ @UCloudParam("TaskId") private String taskId; - + + public String getRegion() { return region; } @@ -48,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -56,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -64,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getTaskId() { return taskId; } @@ -72,4 +91,14 @@ public String getTaskId() { public void setTaskId(String taskId) { this.taskId = taskId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaTaskResponse.java b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaTaskResponse.java index 3f6c3017..3cf9e89e 100644 --- a/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaTaskResponse.java +++ b/ucloud-sdk-java-udi/src/main/java/cn/ucloud/udi/models/DescribeMediaTaskResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udi.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeMediaTaskResponse extends Response { - /** 任务 */ + + + /** + * 任务 + */ @SerializedName("Tasks") private List tasks; - + + public List getTasks() { return tasks; } @@ -32,43 +41,65 @@ public List getTasks() { public void setTasks(List tasks) { this.tasks = tasks; } + + public static class MediaTask extends Response { + + + /** + * + */ + @SerializedName("Function") + private String function; + + + + /** + * + */ + @SerializedName("Status") + private String status; + + + + /** + * + */ + @SerializedName("Id") + private String id; + + + public String getFunction() { + return function; + } - public static class MediaTask extends Response { + public void setFunction(String function) { + this.function = function; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + } +} - /** */ - @SerializedName("Function") - private String function; - /** */ - @SerializedName("Status") - private String status; - /** */ - @SerializedName("Id") - private String id; - public String getFunction() { - return function; - } - public void setFunction(String function) { - this.function = function; - } - public String getStatus() { - return status; - } - public void setStatus(String status) { - this.status = status; - } - public String getId() { - return id; - } - public void setId(String id) { - this.id = id; - } - } -} diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index 4a76faa1..006139a3 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-udisk - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClient.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClient.java index b827d4f9..3afb2e81 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClient.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.udisk.client; @@ -17,287 +19,432 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.udisk.models.AttachUDiskRequest; import cn.ucloud.udisk.models.AttachUDiskResponse; + + + import cn.ucloud.udisk.models.CloneUDiskRequest; import cn.ucloud.udisk.models.CloneUDiskResponse; + + + import cn.ucloud.udisk.models.CloneUDiskSnapshotRequest; import cn.ucloud.udisk.models.CloneUDiskSnapshotResponse; + + + import cn.ucloud.udisk.models.CloneUDiskUDataArkRequest; import cn.ucloud.udisk.models.CloneUDiskUDataArkResponse; + + + import cn.ucloud.udisk.models.CreateAttachUDiskRequest; import cn.ucloud.udisk.models.CreateAttachUDiskResponse; + + + import cn.ucloud.udisk.models.CreateUDiskRequest; import cn.ucloud.udisk.models.CreateUDiskResponse; + + + import cn.ucloud.udisk.models.CreateUDiskSnapshotRequest; import cn.ucloud.udisk.models.CreateUDiskSnapshotResponse; + + + import cn.ucloud.udisk.models.DeleteUDiskRequest; import cn.ucloud.udisk.models.DeleteUDiskResponse; + + + import cn.ucloud.udisk.models.DeleteUDiskSnapshotRequest; import cn.ucloud.udisk.models.DeleteUDiskSnapshotResponse; + + + import cn.ucloud.udisk.models.DescribeRecycleUDiskRequest; import cn.ucloud.udisk.models.DescribeRecycleUDiskResponse; -import cn.ucloud.udisk.models.DescribeUDiskPriceRequest; -import cn.ucloud.udisk.models.DescribeUDiskPriceResponse; + + + import cn.ucloud.udisk.models.DescribeUDiskRequest; import cn.ucloud.udisk.models.DescribeUDiskResponse; + + + +import cn.ucloud.udisk.models.DescribeUDiskPriceRequest; +import cn.ucloud.udisk.models.DescribeUDiskPriceResponse; + + + import cn.ucloud.udisk.models.DescribeUDiskSnapshotRequest; import cn.ucloud.udisk.models.DescribeUDiskSnapshotResponse; + + + import cn.ucloud.udisk.models.DescribeUDiskUpgradePriceRequest; import cn.ucloud.udisk.models.DescribeUDiskUpgradePriceResponse; + + + import cn.ucloud.udisk.models.DetachUDiskRequest; import cn.ucloud.udisk.models.DetachUDiskResponse; + + + import cn.ucloud.udisk.models.RecoverUDiskRequest; import cn.ucloud.udisk.models.RecoverUDiskResponse; + + + import cn.ucloud.udisk.models.RenameUDiskRequest; import cn.ucloud.udisk.models.RenameUDiskResponse; + + + import cn.ucloud.udisk.models.ResizeUDiskRequest; import cn.ucloud.udisk.models.ResizeUDiskResponse; + + + import cn.ucloud.udisk.models.RestoreUDiskRequest; import cn.ucloud.udisk.models.RestoreUDiskResponse; + + + import cn.ucloud.udisk.models.SetUDiskUDataArkModeRequest; import cn.ucloud.udisk.models.SetUDiskUDataArkModeResponse; -/** This client is used to call actions of **UDisk** service */ +/** + * This client is used to call actions of **UDisk** service + */ public class UDiskClient extends DefaultClient implements UDiskClientInterface { public UDiskClient(Config config, Credential credential) { super(config, credential); } - - /** - * AttachUDisk - 挂载云硬盘 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AttachUDiskResponse attachUDisk(AttachUDiskRequest request) throws UCloudException { - request.setAction("AttachUDisk"); - return (AttachUDiskResponse) this.invoke(request, AttachUDiskResponse.class); - } - - /** - * CloneUDisk - 克隆云硬盘 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CloneUDiskResponse cloneUDisk(CloneUDiskRequest request) throws UCloudException { - request.setAction("CloneUDisk"); - return (CloneUDiskResponse) this.invoke(request, CloneUDiskResponse.class); - } - - /** - * CloneUDiskSnapshot - 克隆快照 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CloneUDiskSnapshotResponse cloneUDiskSnapshot(CloneUDiskSnapshotRequest request) - throws UCloudException { - request.setAction("CloneUDiskSnapshot"); - return (CloneUDiskSnapshotResponse) this.invoke(request, CloneUDiskSnapshotResponse.class); - } - - /** - * CloneUDiskUDataArk - 从数据方舟的备份创建UDisk - * - * @param request Request object - * @throws UCloudException Exception - */ - public CloneUDiskUDataArkResponse cloneUDiskUDataArk(CloneUDiskUDataArkRequest request) - throws UCloudException { - request.setAction("CloneUDiskUDataArk"); - return (CloneUDiskUDataArkResponse) this.invoke(request, CloneUDiskUDataArkResponse.class); - } - - /** - * CreateAttachUDisk - 创建并挂载云硬盘 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateAttachUDiskResponse createAttachUDisk(CreateAttachUDiskRequest request) - throws UCloudException { - request.setAction("CreateAttachUDisk"); - return (CreateAttachUDiskResponse) this.invoke(request, CreateAttachUDiskResponse.class); - } - - /** - * CreateUDisk - 创建云硬盘 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUDiskResponse createUDisk(CreateUDiskRequest request) throws UCloudException { - request.setAction("CreateUDisk"); - return (CreateUDiskResponse) this.invoke(request, CreateUDiskResponse.class); - } - - /** - * CreateUDiskSnapshot - 创建快照 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUDiskSnapshotResponse createUDiskSnapshot(CreateUDiskSnapshotRequest request) - throws UCloudException { - request.setAction("CreateUDiskSnapshot"); - return (CreateUDiskSnapshotResponse) - this.invoke(request, CreateUDiskSnapshotResponse.class); - } - - /** - * DeleteUDisk - 删除云硬盘 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUDiskResponse deleteUDisk(DeleteUDiskRequest request) throws UCloudException { - request.setAction("DeleteUDisk"); - return (DeleteUDiskResponse) this.invoke(request, DeleteUDiskResponse.class); - } - - /** - * DeleteUDiskSnapshot - 删除快照 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUDiskSnapshotResponse deleteUDiskSnapshot(DeleteUDiskSnapshotRequest request) - throws UCloudException { - request.setAction("DeleteUDiskSnapshot"); - return (DeleteUDiskSnapshotResponse) - this.invoke(request, DeleteUDiskSnapshotResponse.class); - } - - /** - * DescribeRecycleUDisk - 【已废弃】拉取回收站中云硬盘列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeRecycleUDiskResponse describeRecycleUDisk(DescribeRecycleUDiskRequest request) - throws UCloudException { - request.setAction("DescribeRecycleUDisk"); - return (DescribeRecycleUDiskResponse) - this.invoke(request, DescribeRecycleUDiskResponse.class); - } - - /** - * DescribeUDisk - 获取云硬盘列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDiskResponse describeUDisk(DescribeUDiskRequest request) - throws UCloudException { - request.setAction("DescribeUDisk"); - return (DescribeUDiskResponse) this.invoke(request, DescribeUDiskResponse.class); - } - - /** - * DescribeUDiskPrice - 获取云硬盘价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDiskPriceResponse describeUDiskPrice(DescribeUDiskPriceRequest request) - throws UCloudException { - request.setAction("DescribeUDiskPrice"); - return (DescribeUDiskPriceResponse) this.invoke(request, DescribeUDiskPriceResponse.class); - } - - /** - * DescribeUDiskSnapshot - 获取快照列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDiskSnapshotResponse describeUDiskSnapshot(DescribeUDiskSnapshotRequest request) - throws UCloudException { - request.setAction("DescribeUDiskSnapshot"); - return (DescribeUDiskSnapshotResponse) - this.invoke(request, DescribeUDiskSnapshotResponse.class); - } - - /** - * DescribeUDiskUpgradePrice - 获取云硬盘升级价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDiskUpgradePriceResponse describeUDiskUpgradePrice( - DescribeUDiskUpgradePriceRequest request) throws UCloudException { - request.setAction("DescribeUDiskUpgradePrice"); - return (DescribeUDiskUpgradePriceResponse) - this.invoke(request, DescribeUDiskUpgradePriceResponse.class); - } - - /** - * DetachUDisk - 卸载云硬盘 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DetachUDiskResponse detachUDisk(DetachUDiskRequest request) throws UCloudException { - request.setAction("DetachUDisk"); - return (DetachUDiskResponse) this.invoke(request, DetachUDiskResponse.class); - } - - /** - * RecoverUDisk - 【已废弃】恢复云硬盘 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RecoverUDiskResponse recoverUDisk(RecoverUDiskRequest request) throws UCloudException { - request.setAction("RecoverUDisk"); - return (RecoverUDiskResponse) this.invoke(request, RecoverUDiskResponse.class); - } - - /** - * RenameUDisk - 重命名云硬盘 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RenameUDiskResponse renameUDisk(RenameUDiskRequest request) throws UCloudException { - request.setAction("RenameUDisk"); - return (RenameUDiskResponse) this.invoke(request, RenameUDiskResponse.class); - } - - /** - * ResizeUDisk - 调整云硬盘 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ResizeUDiskResponse resizeUDisk(ResizeUDiskRequest request) throws UCloudException { - request.setAction("ResizeUDisk"); - return (ResizeUDiskResponse) this.invoke(request, ResizeUDiskResponse.class); - } - - /** - * RestoreUDisk - 从备份恢复数据至UDisk - * - * @param request Request object - * @throws UCloudException Exception - */ - public RestoreUDiskResponse restoreUDisk(RestoreUDiskRequest request) throws UCloudException { - request.setAction("RestoreUDisk"); - return (RestoreUDiskResponse) this.invoke(request, RestoreUDiskResponse.class); - } - - /** - * SetUDiskUDataArkMode - 设置UDisk数据方舟的状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SetUDiskUDataArkModeResponse setUDiskUDataArkMode(SetUDiskUDataArkModeRequest request) - throws UCloudException { - request.setAction("SetUDiskUDataArkMode"); - return (SetUDiskUDataArkModeResponse) - this.invoke(request, SetUDiskUDataArkModeResponse.class); - } + + + + + + + /** + * AttachUDisk - 挂载云硬盘 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AttachUDiskResponse attachUDisk(AttachUDiskRequest request) throws UCloudException { + request.setAction("AttachUDisk"); + return (AttachUDiskResponse) this.invoke(request, AttachUDiskResponse.class); + } + + + + + + + /** + * CloneUDisk - 克隆云硬盘 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CloneUDiskResponse cloneUDisk(CloneUDiskRequest request) throws UCloudException { + request.setAction("CloneUDisk"); + return (CloneUDiskResponse) this.invoke(request, CloneUDiskResponse.class); + } + + + + + + + /** + * CloneUDiskSnapshot - 克隆快照 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CloneUDiskSnapshotResponse cloneUDiskSnapshot(CloneUDiskSnapshotRequest request) throws UCloudException { + request.setAction("CloneUDiskSnapshot"); + return (CloneUDiskSnapshotResponse) this.invoke(request, CloneUDiskSnapshotResponse.class); + } + + + + + + + /** + * CloneUDiskUDataArk - 从数据方舟的备份创建UDisk + * + * @param request Request object + * @throws UCloudException Exception + */ + public CloneUDiskUDataArkResponse cloneUDiskUDataArk(CloneUDiskUDataArkRequest request) throws UCloudException { + request.setAction("CloneUDiskUDataArk"); + return (CloneUDiskUDataArkResponse) this.invoke(request, CloneUDiskUDataArkResponse.class); + } + + + + + + + /** + * CreateAttachUDisk - 创建并挂载云硬盘 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateAttachUDiskResponse createAttachUDisk(CreateAttachUDiskRequest request) throws UCloudException { + request.setAction("CreateAttachUDisk"); + return (CreateAttachUDiskResponse) this.invoke(request, CreateAttachUDiskResponse.class); + } + + + + + + + /** + * CreateUDisk - 创建云硬盘 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUDiskResponse createUDisk(CreateUDiskRequest request) throws UCloudException { + request.setAction("CreateUDisk"); + return (CreateUDiskResponse) this.invoke(request, CreateUDiskResponse.class); + } + + + + + + + /** + * CreateUDiskSnapshot - 创建快照 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUDiskSnapshotResponse createUDiskSnapshot(CreateUDiskSnapshotRequest request) throws UCloudException { + request.setAction("CreateUDiskSnapshot"); + return (CreateUDiskSnapshotResponse) this.invoke(request, CreateUDiskSnapshotResponse.class); + } + + + + + + + /** + * DeleteUDisk - 删除云硬盘 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUDiskResponse deleteUDisk(DeleteUDiskRequest request) throws UCloudException { + request.setAction("DeleteUDisk"); + return (DeleteUDiskResponse) this.invoke(request, DeleteUDiskResponse.class); + } + + + + + + + /** + * DeleteUDiskSnapshot - 删除快照 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUDiskSnapshotResponse deleteUDiskSnapshot(DeleteUDiskSnapshotRequest request) throws UCloudException { + request.setAction("DeleteUDiskSnapshot"); + return (DeleteUDiskSnapshotResponse) this.invoke(request, DeleteUDiskSnapshotResponse.class); + } + + + + + + + /** + * DescribeRecycleUDisk - 【已废弃】拉取回收站中云硬盘列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeRecycleUDiskResponse describeRecycleUDisk(DescribeRecycleUDiskRequest request) throws UCloudException { + request.setAction("DescribeRecycleUDisk"); + return (DescribeRecycleUDiskResponse) this.invoke(request, DescribeRecycleUDiskResponse.class); + } + + + + + + + /** + * DescribeUDisk - 获取云硬盘列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDiskResponse describeUDisk(DescribeUDiskRequest request) throws UCloudException { + request.setAction("DescribeUDisk"); + return (DescribeUDiskResponse) this.invoke(request, DescribeUDiskResponse.class); + } + + + + + + + /** + * DescribeUDiskPrice - 获取云硬盘价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDiskPriceResponse describeUDiskPrice(DescribeUDiskPriceRequest request) throws UCloudException { + request.setAction("DescribeUDiskPrice"); + return (DescribeUDiskPriceResponse) this.invoke(request, DescribeUDiskPriceResponse.class); + } + + + + + + + /** + * DescribeUDiskSnapshot - 获取快照列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDiskSnapshotResponse describeUDiskSnapshot(DescribeUDiskSnapshotRequest request) throws UCloudException { + request.setAction("DescribeUDiskSnapshot"); + return (DescribeUDiskSnapshotResponse) this.invoke(request, DescribeUDiskSnapshotResponse.class); + } + + + + + + + /** + * DescribeUDiskUpgradePrice - 获取云硬盘升级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDiskUpgradePriceResponse describeUDiskUpgradePrice(DescribeUDiskUpgradePriceRequest request) throws UCloudException { + request.setAction("DescribeUDiskUpgradePrice"); + return (DescribeUDiskUpgradePriceResponse) this.invoke(request, DescribeUDiskUpgradePriceResponse.class); + } + + + + + + + /** + * DetachUDisk - 卸载云硬盘 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DetachUDiskResponse detachUDisk(DetachUDiskRequest request) throws UCloudException { + request.setAction("DetachUDisk"); + return (DetachUDiskResponse) this.invoke(request, DetachUDiskResponse.class); + } + + + + + + + /** + * RecoverUDisk - 【已废弃】恢复云硬盘 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RecoverUDiskResponse recoverUDisk(RecoverUDiskRequest request) throws UCloudException { + request.setAction("RecoverUDisk"); + return (RecoverUDiskResponse) this.invoke(request, RecoverUDiskResponse.class); + } + + + + + + + /** + * RenameUDisk - 重命名云硬盘 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RenameUDiskResponse renameUDisk(RenameUDiskRequest request) throws UCloudException { + request.setAction("RenameUDisk"); + return (RenameUDiskResponse) this.invoke(request, RenameUDiskResponse.class); + } + + + + + + + /** + * ResizeUDisk - 调整云硬盘 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResizeUDiskResponse resizeUDisk(ResizeUDiskRequest request) throws UCloudException { + request.setAction("ResizeUDisk"); + return (ResizeUDiskResponse) this.invoke(request, ResizeUDiskResponse.class); + } + + + + + + + /** + * RestoreUDisk - 从备份恢复数据至UDisk + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestoreUDiskResponse restoreUDisk(RestoreUDiskRequest request) throws UCloudException { + request.setAction("RestoreUDisk"); + return (RestoreUDiskResponse) this.invoke(request, RestoreUDiskResponse.class); + } + + + + + + + /** + * SetUDiskUDataArkMode - 设置UDisk数据方舟的状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SetUDiskUDataArkModeResponse setUDiskUDataArkMode(SetUDiskUDataArkModeRequest request) throws UCloudException { + request.setAction("SetUDiskUDataArkMode"); + return (SetUDiskUDataArkModeResponse) this.invoke(request, SetUDiskUDataArkModeResponse.class); + } } diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClientInterface.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClientInterface.java index 48e03184..fe4d765e 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClientInterface.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClientInterface.java @@ -1,64 +1,133 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.udisk.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.udisk.models.AttachUDiskRequest; import cn.ucloud.udisk.models.AttachUDiskResponse; + + + import cn.ucloud.udisk.models.CloneUDiskRequest; import cn.ucloud.udisk.models.CloneUDiskResponse; + + + import cn.ucloud.udisk.models.CloneUDiskSnapshotRequest; import cn.ucloud.udisk.models.CloneUDiskSnapshotResponse; + + + import cn.ucloud.udisk.models.CloneUDiskUDataArkRequest; import cn.ucloud.udisk.models.CloneUDiskUDataArkResponse; + + + import cn.ucloud.udisk.models.CreateAttachUDiskRequest; import cn.ucloud.udisk.models.CreateAttachUDiskResponse; + + + import cn.ucloud.udisk.models.CreateUDiskRequest; import cn.ucloud.udisk.models.CreateUDiskResponse; + + + import cn.ucloud.udisk.models.CreateUDiskSnapshotRequest; import cn.ucloud.udisk.models.CreateUDiskSnapshotResponse; + + + import cn.ucloud.udisk.models.DeleteUDiskRequest; import cn.ucloud.udisk.models.DeleteUDiskResponse; + + + import cn.ucloud.udisk.models.DeleteUDiskSnapshotRequest; import cn.ucloud.udisk.models.DeleteUDiskSnapshotResponse; + + + import cn.ucloud.udisk.models.DescribeRecycleUDiskRequest; import cn.ucloud.udisk.models.DescribeRecycleUDiskResponse; -import cn.ucloud.udisk.models.DescribeUDiskPriceRequest; -import cn.ucloud.udisk.models.DescribeUDiskPriceResponse; + + + import cn.ucloud.udisk.models.DescribeUDiskRequest; import cn.ucloud.udisk.models.DescribeUDiskResponse; + + + +import cn.ucloud.udisk.models.DescribeUDiskPriceRequest; +import cn.ucloud.udisk.models.DescribeUDiskPriceResponse; + + + import cn.ucloud.udisk.models.DescribeUDiskSnapshotRequest; import cn.ucloud.udisk.models.DescribeUDiskSnapshotResponse; + + + import cn.ucloud.udisk.models.DescribeUDiskUpgradePriceRequest; import cn.ucloud.udisk.models.DescribeUDiskUpgradePriceResponse; + + + import cn.ucloud.udisk.models.DetachUDiskRequest; import cn.ucloud.udisk.models.DetachUDiskResponse; + + + import cn.ucloud.udisk.models.RecoverUDiskRequest; import cn.ucloud.udisk.models.RecoverUDiskResponse; + + + import cn.ucloud.udisk.models.RenameUDiskRequest; import cn.ucloud.udisk.models.RenameUDiskResponse; + + + import cn.ucloud.udisk.models.ResizeUDiskRequest; import cn.ucloud.udisk.models.ResizeUDiskResponse; + + + import cn.ucloud.udisk.models.RestoreUDiskRequest; import cn.ucloud.udisk.models.RestoreUDiskResponse; + + + import cn.ucloud.udisk.models.SetUDiskUDataArkModeRequest; import cn.ucloud.udisk.models.SetUDiskUDataArkModeResponse; -/** This client is used to call actions of **UDisk** service */ +/** + * This client is used to call actions of **UDisk** service + */ public interface UDiskClientInterface extends Client { - + + + + + + /** * AttachUDisk - 挂载云硬盘 * @@ -66,7 +135,12 @@ public interface UDiskClientInterface extends Client { * @throws UCloudException Exception */ public AttachUDiskResponse attachUDisk(AttachUDiskRequest request) throws UCloudException; - + + + + + + /** * CloneUDisk - 克隆云硬盘 * @@ -74,34 +148,51 @@ public interface UDiskClientInterface extends Client { * @throws UCloudException Exception */ public CloneUDiskResponse cloneUDisk(CloneUDiskRequest request) throws UCloudException; - + + + + + + /** * CloneUDiskSnapshot - 克隆快照 * * @param request Request object * @throws UCloudException Exception */ - public CloneUDiskSnapshotResponse cloneUDiskSnapshot(CloneUDiskSnapshotRequest request) - throws UCloudException; - + public CloneUDiskSnapshotResponse cloneUDiskSnapshot(CloneUDiskSnapshotRequest request) throws UCloudException; + + + + + + /** * CloneUDiskUDataArk - 从数据方舟的备份创建UDisk * * @param request Request object * @throws UCloudException Exception */ - public CloneUDiskUDataArkResponse cloneUDiskUDataArk(CloneUDiskUDataArkRequest request) - throws UCloudException; - + public CloneUDiskUDataArkResponse cloneUDiskUDataArk(CloneUDiskUDataArkRequest request) throws UCloudException; + + + + + + /** * CreateAttachUDisk - 创建并挂载云硬盘 * * @param request Request object * @throws UCloudException Exception */ - public CreateAttachUDiskResponse createAttachUDisk(CreateAttachUDiskRequest request) - throws UCloudException; - + public CreateAttachUDiskResponse createAttachUDisk(CreateAttachUDiskRequest request) throws UCloudException; + + + + + + /** * CreateUDisk - 创建云硬盘 * @@ -109,16 +200,25 @@ public CreateAttachUDiskResponse createAttachUDisk(CreateAttachUDiskRequest requ * @throws UCloudException Exception */ public CreateUDiskResponse createUDisk(CreateUDiskRequest request) throws UCloudException; - + + + + + + /** * CreateUDiskSnapshot - 创建快照 * * @param request Request object * @throws UCloudException Exception */ - public CreateUDiskSnapshotResponse createUDiskSnapshot(CreateUDiskSnapshotRequest request) - throws UCloudException; - + public CreateUDiskSnapshotResponse createUDiskSnapshot(CreateUDiskSnapshotRequest request) throws UCloudException; + + + + + + /** * DeleteUDisk - 删除云硬盘 * @@ -126,25 +226,38 @@ public CreateUDiskSnapshotResponse createUDiskSnapshot(CreateUDiskSnapshotReques * @throws UCloudException Exception */ public DeleteUDiskResponse deleteUDisk(DeleteUDiskRequest request) throws UCloudException; - + + + + + + /** * DeleteUDiskSnapshot - 删除快照 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUDiskSnapshotResponse deleteUDiskSnapshot(DeleteUDiskSnapshotRequest request) - throws UCloudException; - + public DeleteUDiskSnapshotResponse deleteUDiskSnapshot(DeleteUDiskSnapshotRequest request) throws UCloudException; + + + + + + /** * DescribeRecycleUDisk - 【已废弃】拉取回收站中云硬盘列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeRecycleUDiskResponse describeRecycleUDisk(DescribeRecycleUDiskRequest request) - throws UCloudException; - + public DescribeRecycleUDiskResponse describeRecycleUDisk(DescribeRecycleUDiskRequest request) throws UCloudException; + + + + + + /** * DescribeUDisk - 获取云硬盘列表 * @@ -152,34 +265,51 @@ public DescribeRecycleUDiskResponse describeRecycleUDisk(DescribeRecycleUDiskReq * @throws UCloudException Exception */ public DescribeUDiskResponse describeUDisk(DescribeUDiskRequest request) throws UCloudException; - + + + + + + /** * DescribeUDiskPrice - 获取云硬盘价格 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDiskPriceResponse describeUDiskPrice(DescribeUDiskPriceRequest request) - throws UCloudException; - + public DescribeUDiskPriceResponse describeUDiskPrice(DescribeUDiskPriceRequest request) throws UCloudException; + + + + + + /** * DescribeUDiskSnapshot - 获取快照列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDiskSnapshotResponse describeUDiskSnapshot(DescribeUDiskSnapshotRequest request) - throws UCloudException; - + public DescribeUDiskSnapshotResponse describeUDiskSnapshot(DescribeUDiskSnapshotRequest request) throws UCloudException; + + + + + + /** * DescribeUDiskUpgradePrice - 获取云硬盘升级价格 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDiskUpgradePriceResponse describeUDiskUpgradePrice( - DescribeUDiskUpgradePriceRequest request) throws UCloudException; - + public DescribeUDiskUpgradePriceResponse describeUDiskUpgradePrice(DescribeUDiskUpgradePriceRequest request) throws UCloudException; + + + + + + /** * DetachUDisk - 卸载云硬盘 * @@ -187,7 +317,12 @@ public DescribeUDiskUpgradePriceResponse describeUDiskUpgradePrice( * @throws UCloudException Exception */ public DetachUDiskResponse detachUDisk(DetachUDiskRequest request) throws UCloudException; - + + + + + + /** * RecoverUDisk - 【已废弃】恢复云硬盘 * @@ -195,7 +330,12 @@ public DescribeUDiskUpgradePriceResponse describeUDiskUpgradePrice( * @throws UCloudException Exception */ public RecoverUDiskResponse recoverUDisk(RecoverUDiskRequest request) throws UCloudException; - + + + + + + /** * RenameUDisk - 重命名云硬盘 * @@ -203,7 +343,12 @@ public DescribeUDiskUpgradePriceResponse describeUDiskUpgradePrice( * @throws UCloudException Exception */ public RenameUDiskResponse renameUDisk(RenameUDiskRequest request) throws UCloudException; - + + + + + + /** * ResizeUDisk - 调整云硬盘 * @@ -211,7 +356,12 @@ public DescribeUDiskUpgradePriceResponse describeUDiskUpgradePrice( * @throws UCloudException Exception */ public ResizeUDiskResponse resizeUDisk(ResizeUDiskRequest request) throws UCloudException; - + + + + + + /** * RestoreUDisk - 从备份恢复数据至UDisk * @@ -219,13 +369,17 @@ public DescribeUDiskUpgradePriceResponse describeUDiskUpgradePrice( * @throws UCloudException Exception */ public RestoreUDiskResponse restoreUDisk(RestoreUDiskRequest request) throws UCloudException; - + + + + + + /** * SetUDiskUDataArkMode - 设置UDisk数据方舟的状态 * * @param request Request object * @throws UCloudException Exception */ - public SetUDiskUDataArkModeResponse setUDiskUDataArkMode(SetUDiskUDataArkModeRequest request) - throws UCloudException; + public SetUDiskUDataArkModeResponse setUDiskUDataArkMode(SetUDiskUDataArkModeRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/AttachUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/AttachUDiskRequest.java index 0bead1cd..f726a162 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/AttachUDiskRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/AttachUDiskRequest.java @@ -1,55 +1,89 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AttachUDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 需要挂载的UDisk实例ID. */ + + + + /** + * 需要挂载的UDisk实例ID. + */ @NotEmpty @UCloudParam("UDiskId") private String uDiskId; - - /** UHost实例ID。【UHostId和HostId必须选填一个,本字段即将废弃,建议使用HostId】 */ + + + + /** + * UHost实例ID。【UHostId和HostId必须选填一个,本字段即将废弃,建议使用HostId】 + */ @UCloudParam("UHostId") private String uHostId; - - /** 是否允许多点挂载(Yes: 允许多点挂载, No: 不允许多点挂载, 不填默认Yes ) */ + + + + /** + * 是否允许多点挂载(Yes: 允许多点挂载, No: 不允许多点挂载, 不填默认Yes ) + */ @UCloudParam("MultiAttach") private String multiAttach; - - /** Host实例ID */ + + + + /** + * Host实例ID + */ @UCloudParam("HostId") private String hostId; - + + public String getRegion() { return region; } @@ -57,7 +91,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +99,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -73,7 +107,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDiskId() { return uDiskId; } @@ -81,7 +115,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public String getUHostId() { return uHostId; } @@ -89,7 +123,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getMultiAttach() { return multiAttach; } @@ -97,7 +131,7 @@ public String getMultiAttach() { public void setMultiAttach(String multiAttach) { this.multiAttach = multiAttach; } - + public String getHostId() { return hostId; } @@ -105,4 +139,14 @@ public String getHostId() { public void setHostId(String hostId) { this.hostId = hostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/AttachUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/AttachUDiskResponse.java index 99682647..6d406517 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/AttachUDiskResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/AttachUDiskResponse.java @@ -1,41 +1,63 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class AttachUDiskResponse extends Response { - /** 挂载的UHost实例ID。【即将废弃,建议使用HostId】 */ + + + /** + * 挂载的UHost实例ID。【即将废弃,建议使用HostId】 + */ @SerializedName("UHostId") private String uHostId; - - /** 挂载的UDisk实例ID */ + + + + /** + * 挂载的UDisk实例ID + */ @SerializedName("UDiskId") private String uDiskId; - - /** 挂载的设备名称 */ + + + + /** + * 挂载的设备名称 + */ @SerializedName("DeviceName") private String deviceName; - - /** 挂载的Host实例ID */ + + + + /** + * 挂载的Host实例ID + */ @SerializedName("HostId") private String hostId; - + + public String getUHostId() { return uHostId; } @@ -43,7 +65,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getUDiskId() { return uDiskId; } @@ -51,7 +73,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public String getDeviceName() { return deviceName; } @@ -59,7 +81,7 @@ public String getDeviceName() { public void setDeviceName(String deviceName) { this.deviceName = deviceName; } - + public String getHostId() { return hostId; } @@ -67,4 +89,14 @@ public String getHostId() { public void setHostId(String hostId) { this.hostId = hostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskRequest.java index 6c95d395..fa3795e7 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskRequest.java @@ -1,110 +1,187 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CloneUDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例名称 */ + + + + /** + * 实例名称 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 克隆父Disk的Id */ + + + + /** + * 克隆父Disk的Id + */ @NotEmpty @UCloudParam("SourceId") private String sourceId; - - /** 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("UDataArkMode") private String uDataArkMode; - - /** 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("SnapshotService") private String snapshotService; - - /** 购买时长 默认: 1 */ + + + + /** + * 购买时长 默认: 1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** Disk注释 */ + + + + /** + * Disk注释 + */ @UCloudParam("Comment") private String comment; - - /** Year , Month, Dynamic,Postpay,Trial 默认: Month */ + + + + /** + * Year , Month, Dynamic,Postpay,Trial 默认: Month + */ @UCloudParam("ChargeType") private String chargeType; - - /** 业务组 默认:Default */ + + + + /** + * 业务组 默认:Default + */ @UCloudParam("Tag") private String tag; - - /** RDMA集群id。指定RSSD云盘克隆到对应的RDMA集群。 */ + + + + /** + * RDMA集群id。指定RSSD云盘克隆到对应的RDMA集群。 + */ @UCloudParam("RdmaClusterId") private String rdmaClusterId; - - /** Host实例ID。克隆出的云盘可直接挂载到该主机上。 */ + + + + /** + * Host实例ID。克隆出的云盘可直接挂载到该主机上。 + */ @UCloudParam("HostId") private String hostId; - + + + /** * 新克隆UDisk的大小,单位:GB。指定Size须大于等于源盘Size,小于源盘Size或者不指定该参数均按源盘Size克隆新盘。普通数据盘:范围[1~8000];SSD数据盘:范围[1~8000];RSSD数据盘:范围[1~32000];高效数据盘:范围[1~32000]。 */ @UCloudParam("Size") private Integer size; - - /** 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 */ + + + + /** + * 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 + */ @UCloudParam("BackupMode") private String backupMode; - - /** BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 */ + + + + /** + * BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 + */ @UCloudParam("Journal") private Integer journal; - - /** BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 */ + + + + /** + * BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 + */ @UCloudParam("Hour") private Integer hour; - - /** BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 */ + + + + /** + * BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 + */ @UCloudParam("Day") private Integer day; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -112,7 +189,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -120,7 +197,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -128,7 +205,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -136,7 +213,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getSourceId() { return sourceId; } @@ -144,7 +221,7 @@ public String getSourceId() { public void setSourceId(String sourceId) { this.sourceId = sourceId; } - + public String getUDataArkMode() { return uDataArkMode; } @@ -152,7 +229,7 @@ public String getUDataArkMode() { public void setUDataArkMode(String uDataArkMode) { this.uDataArkMode = uDataArkMode; } - + public String getSnapshotService() { return snapshotService; } @@ -160,7 +237,7 @@ public String getSnapshotService() { public void setSnapshotService(String snapshotService) { this.snapshotService = snapshotService; } - + public Integer getQuantity() { return quantity; } @@ -168,7 +245,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getComment() { return comment; } @@ -176,7 +253,7 @@ public String getComment() { public void setComment(String comment) { this.comment = comment; } - + public String getChargeType() { return chargeType; } @@ -184,7 +261,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getTag() { return tag; } @@ -192,7 +269,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRdmaClusterId() { return rdmaClusterId; } @@ -200,7 +277,7 @@ public String getRdmaClusterId() { public void setRdmaClusterId(String rdmaClusterId) { this.rdmaClusterId = rdmaClusterId; } - + public String getHostId() { return hostId; } @@ -208,7 +285,7 @@ public String getHostId() { public void setHostId(String hostId) { this.hostId = hostId; } - + public Integer getSize() { return size; } @@ -216,7 +293,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getBackupMode() { return backupMode; } @@ -224,7 +301,7 @@ public String getBackupMode() { public void setBackupMode(String backupMode) { this.backupMode = backupMode; } - + public Integer getJournal() { return journal; } @@ -232,7 +309,7 @@ public Integer getJournal() { public void setJournal(Integer journal) { this.journal = journal; } - + public Integer getHour() { return hour; } @@ -240,7 +317,7 @@ public Integer getHour() { public void setHour(Integer hour) { this.hour = hour; } - + public Integer getDay() { return day; } @@ -248,7 +325,7 @@ public Integer getDay() { public void setDay(Integer day) { this.day = day; } - + public String getCouponId() { return couponId; } @@ -256,4 +333,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskResponse.java index c4e2bcdf..ccbc1467 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class CloneUDiskResponse extends Response { - /** 创建UDisk Id */ + + + /** + * 创建UDisk Id + */ @SerializedName("UDiskId") private List uDiskId; - + + public List getUDiskId() { return uDiskId; } @@ -32,4 +41,14 @@ public List getUDiskId() { public void setUDiskId(List uDiskId) { this.uDiskId = uDiskId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskSnapshotRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskSnapshotRequest.java index c90fc41a..42729f23 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskSnapshotRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskSnapshotRequest.java @@ -1,110 +1,187 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CloneUDiskSnapshotRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例名称 */ + + + + /** + * 实例名称 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 克隆父Snapshot的Id */ + + + + /** + * 克隆父Snapshot的Id + */ @NotEmpty @UCloudParam("SourceId") private String sourceId; - + + + /** * 新克隆UDisk的大小,单位:GB。指定Size须大于等于源盘Size,小于源盘Size或者不指定该参数均按源盘Size克隆新盘。普通数据盘:范围[1~8000];SSD数据盘:范围[1~8000];RSSD数据盘:范围[1~32000];高效数据盘:范围[1~32000]。 */ @UCloudParam("Size") private Integer size; - - /** Disk注释 */ + + + + /** + * Disk注释 + */ @UCloudParam("Comment") private String comment; - - /** Year , Month, Dynamic,Postpay 默认: Dynamic */ + + + + /** + * Year , Month, Dynamic,Postpay 默认: Dynamic + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长 默认: 1 */ + + + + /** + * 购买时长 默认: 1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("UDataArkMode") private String uDataArkMode; - - /** 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("SnapshotService") private String snapshotService; - - /** 业务组 默认:Default */ + + + + /** + * 业务组 默认:Default + */ @UCloudParam("Tag") private String tag; - - /** RDMA集群id。指定RSSD云盘克隆到对应的RDMA集群。 */ + + + + /** + * RDMA集群id。指定RSSD云盘克隆到对应的RDMA集群。 + */ @UCloudParam("RdmaClusterId") private String rdmaClusterId; - - /** Host实例ID。克隆出的云盘可直接挂载到该主机上。 */ + + + + /** + * Host实例ID。克隆出的云盘可直接挂载到该主机上。 + */ @UCloudParam("HostId") private String hostId; - - /** 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 */ + + + + /** + * 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 + */ @UCloudParam("BackupMode") private String backupMode; - - /** BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 */ + + + + /** + * BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 + */ @UCloudParam("Journal") private Integer journal; - - /** BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 */ + + + + /** + * BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 + */ @UCloudParam("Hour") private Integer hour; - - /** BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 */ + + + + /** + * BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 + */ @UCloudParam("Day") private Integer day; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -112,7 +189,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -120,7 +197,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -128,7 +205,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -136,7 +213,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getSourceId() { return sourceId; } @@ -144,7 +221,7 @@ public String getSourceId() { public void setSourceId(String sourceId) { this.sourceId = sourceId; } - + public Integer getSize() { return size; } @@ -152,7 +229,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getComment() { return comment; } @@ -160,7 +237,7 @@ public String getComment() { public void setComment(String comment) { this.comment = comment; } - + public String getChargeType() { return chargeType; } @@ -168,7 +245,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -176,7 +253,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getUDataArkMode() { return uDataArkMode; } @@ -184,7 +261,7 @@ public String getUDataArkMode() { public void setUDataArkMode(String uDataArkMode) { this.uDataArkMode = uDataArkMode; } - + public String getSnapshotService() { return snapshotService; } @@ -192,7 +269,7 @@ public String getSnapshotService() { public void setSnapshotService(String snapshotService) { this.snapshotService = snapshotService; } - + public String getTag() { return tag; } @@ -200,7 +277,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRdmaClusterId() { return rdmaClusterId; } @@ -208,7 +285,7 @@ public String getRdmaClusterId() { public void setRdmaClusterId(String rdmaClusterId) { this.rdmaClusterId = rdmaClusterId; } - + public String getHostId() { return hostId; } @@ -216,7 +293,7 @@ public String getHostId() { public void setHostId(String hostId) { this.hostId = hostId; } - + public String getBackupMode() { return backupMode; } @@ -224,7 +301,7 @@ public String getBackupMode() { public void setBackupMode(String backupMode) { this.backupMode = backupMode; } - + public Integer getJournal() { return journal; } @@ -232,7 +309,7 @@ public Integer getJournal() { public void setJournal(Integer journal) { this.journal = journal; } - + public Integer getHour() { return hour; } @@ -240,7 +317,7 @@ public Integer getHour() { public void setHour(Integer hour) { this.hour = hour; } - + public Integer getDay() { return day; } @@ -248,7 +325,7 @@ public Integer getDay() { public void setDay(Integer day) { this.day = day; } - + public String getCouponId() { return couponId; } @@ -256,4 +333,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskSnapshotResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskSnapshotResponse.java index 0837c144..573fd8c6 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskSnapshotResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskSnapshotResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class CloneUDiskSnapshotResponse extends Response { - /** 创建UDisk Id */ + + + /** + * 创建UDisk Id + */ @SerializedName("UDiskId") private List uDiskId; - + + public List getUDiskId() { return uDiskId; } @@ -32,4 +41,14 @@ public List getUDiskId() { public void setUDiskId(List uDiskId) { this.uDiskId = uDiskId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskUDataArkRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskUDataArkRequest.java index a5c2b1ca..1f1d7ccc 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskUDataArkRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskUDataArkRequest.java @@ -1,115 +1,196 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CloneUDiskUDataArkRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例名称 */ + + + + /** + * 实例名称 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 需要克隆的源盘id */ + + + + /** + * 需要克隆的源盘id + */ @NotEmpty @UCloudParam("UDiskId") private String uDiskId; - - /** 指定从方舟克隆的备份时间点 */ + + + + /** + * 指定从方舟克隆的备份时间点 + */ @NotEmpty @UCloudParam("SnapshotTime") private Integer snapshotTime; - - /** Disk注释 */ + + + + /** + * Disk注释 + */ @UCloudParam("Comment") private String comment; - - /** Year , Month, Dynamic,Postpay 默认: Dynamic */ + + + + /** + * Year , Month, Dynamic,Postpay 默认: Dynamic + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长 默认: 1 */ + + + + /** + * 购买时长 默认: 1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("UDataArkMode") private String uDataArkMode; - - /** 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("SnapshotService") private String snapshotService; - + + + /** * 新克隆UDisk的大小,单位:GB。指定Size须大于等于源盘Size,小于源盘Size或者不指定该参数均按源盘Size克隆新盘。普通数据盘:范围[1~8000];SSD数据盘:范围[1~8000];RSSD数据盘:范围[1~32000];高效数据盘:范围[1~32000]。 */ @UCloudParam("Size") private Integer size; - - /** 业务组 默认:Default */ + + + + /** + * 业务组 默认:Default + */ @UCloudParam("Tag") private String tag; - - /** RDMA集群id。指定RSSD云盘克隆到对应的RDMA集群。 */ + + + + /** + * RDMA集群id。指定RSSD云盘克隆到对应的RDMA集群。 + */ @UCloudParam("RdmaClusterId") private String rdmaClusterId; - - /** Host实例ID。克隆出的云盘可直接挂载到该主机上。 */ + + + + /** + * Host实例ID。克隆出的云盘可直接挂载到该主机上。 + */ @UCloudParam("HostId") private String hostId; - - /** 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 */ + + + + /** + * 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 + */ @UCloudParam("BackupMode") private String backupMode; - - /** BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 */ + + + + /** + * BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 + */ @UCloudParam("Journal") private Integer journal; - - /** BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 */ + + + + /** + * BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 + */ @UCloudParam("Hour") private Integer hour; - - /** BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 */ + + + + /** + * BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 + */ @UCloudParam("Day") private Integer day; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -117,7 +198,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -125,7 +206,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -133,7 +214,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -141,7 +222,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getUDiskId() { return uDiskId; } @@ -149,7 +230,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public Integer getSnapshotTime() { return snapshotTime; } @@ -157,7 +238,7 @@ public Integer getSnapshotTime() { public void setSnapshotTime(Integer snapshotTime) { this.snapshotTime = snapshotTime; } - + public String getComment() { return comment; } @@ -165,7 +246,7 @@ public String getComment() { public void setComment(String comment) { this.comment = comment; } - + public String getChargeType() { return chargeType; } @@ -173,7 +254,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -181,7 +262,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getUDataArkMode() { return uDataArkMode; } @@ -189,7 +270,7 @@ public String getUDataArkMode() { public void setUDataArkMode(String uDataArkMode) { this.uDataArkMode = uDataArkMode; } - + public String getSnapshotService() { return snapshotService; } @@ -197,7 +278,7 @@ public String getSnapshotService() { public void setSnapshotService(String snapshotService) { this.snapshotService = snapshotService; } - + public Integer getSize() { return size; } @@ -205,7 +286,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getTag() { return tag; } @@ -213,7 +294,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRdmaClusterId() { return rdmaClusterId; } @@ -221,7 +302,7 @@ public String getRdmaClusterId() { public void setRdmaClusterId(String rdmaClusterId) { this.rdmaClusterId = rdmaClusterId; } - + public String getHostId() { return hostId; } @@ -229,7 +310,7 @@ public String getHostId() { public void setHostId(String hostId) { this.hostId = hostId; } - + public String getBackupMode() { return backupMode; } @@ -237,7 +318,7 @@ public String getBackupMode() { public void setBackupMode(String backupMode) { this.backupMode = backupMode; } - + public Integer getJournal() { return journal; } @@ -245,7 +326,7 @@ public Integer getJournal() { public void setJournal(Integer journal) { this.journal = journal; } - + public Integer getHour() { return hour; } @@ -253,7 +334,7 @@ public Integer getHour() { public void setHour(Integer hour) { this.hour = hour; } - + public Integer getDay() { return day; } @@ -261,7 +342,7 @@ public Integer getDay() { public void setDay(Integer day) { this.day = day; } - + public String getCouponId() { return couponId; } @@ -269,4 +350,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskUDataArkResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskUDataArkResponse.java index 2ca7a89e..35f99438 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskUDataArkResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CloneUDiskUDataArkResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class CloneUDiskUDataArkResponse extends Response { - /** 创建UDisk Id */ + + + /** + * 创建UDisk Id + */ @SerializedName("UDiskId") private List uDiskId; - + + public List getUDiskId() { return uDiskId; } @@ -32,4 +41,14 @@ public List getUDiskId() { public void setUDiskId(List uDiskId) { this.uDiskId = uDiskId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateAttachUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateAttachUDiskRequest.java index ffc526e1..cc4f6493 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateAttachUDiskRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateAttachUDiskRequest.java @@ -1,121 +1,203 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateAttachUDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 购买UDisk大小,单位:GB,普通数据盘:范围[1~8000];SSD数据盘:范围[1~8000];RSSD数据盘:范围[1~32000];高效数据盘:范围[1~32000]。 */ + + + + /** + * 购买UDisk大小,单位:GB,普通数据盘:范围[1~8000];SSD数据盘:范围[1~8000];RSSD数据盘:范围[1~32000];高效数据盘:范围[1~32000]。 + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 实例名称 */ + + + + /** + * 实例名称 + */ @NotEmpty @UCloudParam("Name") private String name; - + + + /** * UHost实例ID。当创建云盘类型为RSSDDataDisk时,根据传入的UHostId,创建与虚机在同一PodId下的云盘。【UHostId和HostId必须选填一个,本字段即将废弃,建议使用HostId】 */ @UCloudParam("UHostId") private String uHostId; - - /** Year , Month, Dynamic, Postpay, Trial 。 Size小于等于2000时,默认为Dynamic;Size大于2000时,默认为Month。 */ + + + + /** + * Year , Month, Dynamic, Postpay, Trial 。 Size小于等于2000时,默认为Dynamic;Size大于2000时,默认为Month。 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长 默认: 1 */ + + + + /** + * 购买时长 默认: 1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("UDataArkMode") private String uDataArkMode; - - /** 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("SnapshotService") private String snapshotService; - - /** 业务组 默认:Default */ + + + + /** + * 业务组 默认:Default + */ @UCloudParam("Tag") private String tag; - + + + /** - * UDisk 类型: - * DataDisk(普通数据盘),SSDDataDisk(SSD数据盘),RSSDDataDisk(RSSD数据盘),EfficiencyDataDisk(高效数据盘),默认值(DataDisk) + * UDisk 类型: DataDisk(普通数据盘),SSDDataDisk(SSD数据盘),RSSDDataDisk(RSSD数据盘),EfficiencyDataDisk(高效数据盘),默认值(DataDisk) */ @UCloudParam("DiskType") private String diskType; - - /** 是否加密。Yes:加密,No:不加密,默认值(No) */ + + + + /** + * 是否加密。Yes:加密,No:不加密,默认值(No) + */ @UCloudParam("UKmsMode") private String uKmsMode; - - /** 加密需要的cmk id,UKmsMode为Yes时,必填 */ + + + + /** + * 加密需要的cmk id,UKmsMode为Yes时,必填 + */ @UCloudParam("CmkId") private String cmkId; - - /** 是否允许多点挂载(Yes: 允许多点挂载, No: 不允许多点挂载, 不填默认Yes ) */ + + + + /** + * 是否允许多点挂载(Yes: 允许多点挂载, No: 不允许多点挂载, 不填默认Yes ) + */ @UCloudParam("MultiAttach") private String multiAttach; - - /** Host实例ID。当创建云盘类型为RSSDDataDisk时,根据传入的HostId,创建与虚机在同一PodId下的云盘。 */ + + + + /** + * Host实例ID。当创建云盘类型为RSSDDataDisk时,根据传入的HostId,创建与虚机在同一PodId下的云盘。 + */ @UCloudParam("HostId") private String hostId; - - /** 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 */ + + + + /** + * 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 + */ @UCloudParam("BackupMode") private String backupMode; - - /** BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 */ + + + + /** + * BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 + */ @UCloudParam("Journal") private Integer journal; - - /** BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 */ + + + + /** + * BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 + */ @UCloudParam("Hour") private Integer hour; - - /** BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 */ + + + + /** + * BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 + */ @UCloudParam("Day") private Integer day; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -123,7 +205,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -131,7 +213,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -139,7 +221,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getSize() { return size; } @@ -147,7 +229,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getName() { return name; } @@ -155,7 +237,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getUHostId() { return uHostId; } @@ -163,7 +245,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getChargeType() { return chargeType; } @@ -171,7 +253,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -179,7 +261,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getUDataArkMode() { return uDataArkMode; } @@ -187,7 +269,7 @@ public String getUDataArkMode() { public void setUDataArkMode(String uDataArkMode) { this.uDataArkMode = uDataArkMode; } - + public String getSnapshotService() { return snapshotService; } @@ -195,7 +277,7 @@ public String getSnapshotService() { public void setSnapshotService(String snapshotService) { this.snapshotService = snapshotService; } - + public String getTag() { return tag; } @@ -203,7 +285,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getDiskType() { return diskType; } @@ -211,7 +293,7 @@ public String getDiskType() { public void setDiskType(String diskType) { this.diskType = diskType; } - + public String getUKmsMode() { return uKmsMode; } @@ -219,7 +301,7 @@ public String getUKmsMode() { public void setUKmsMode(String uKmsMode) { this.uKmsMode = uKmsMode; } - + public String getCmkId() { return cmkId; } @@ -227,7 +309,7 @@ public String getCmkId() { public void setCmkId(String cmkId) { this.cmkId = cmkId; } - + public String getMultiAttach() { return multiAttach; } @@ -235,7 +317,7 @@ public String getMultiAttach() { public void setMultiAttach(String multiAttach) { this.multiAttach = multiAttach; } - + public String getHostId() { return hostId; } @@ -243,7 +325,7 @@ public String getHostId() { public void setHostId(String hostId) { this.hostId = hostId; } - + public String getBackupMode() { return backupMode; } @@ -251,7 +333,7 @@ public String getBackupMode() { public void setBackupMode(String backupMode) { this.backupMode = backupMode; } - + public Integer getJournal() { return journal; } @@ -259,7 +341,7 @@ public Integer getJournal() { public void setJournal(Integer journal) { this.journal = journal; } - + public Integer getHour() { return hour; } @@ -267,7 +349,7 @@ public Integer getHour() { public void setHour(Integer hour) { this.hour = hour; } - + public Integer getDay() { return day; } @@ -275,7 +357,7 @@ public Integer getDay() { public void setDay(Integer day) { this.day = day; } - + public String getCouponId() { return couponId; } @@ -283,4 +365,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateAttachUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateAttachUDiskResponse.java index 07f4571f..eea2625b 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateAttachUDiskResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateAttachUDiskResponse.java @@ -1,41 +1,63 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateAttachUDiskResponse extends Response { - /** 挂载的UDisk实例ID */ + + + /** + * 挂载的UDisk实例ID + */ @SerializedName("UDiskId") private String uDiskId; - - /** 挂载的UHost实例ID。【即将废弃,建议使用HostId】 */ + + + + /** + * 挂载的UHost实例ID。【即将废弃,建议使用HostId】 + */ @SerializedName("UHostId") private String uHostId; - - /** 挂载的Host实例ID */ + + + + /** + * 挂载的Host实例ID + */ @SerializedName("HostId") private String hostId; - - /** 挂载设备名称 */ + + + + /** + * 挂载设备名称 + */ @SerializedName("DeviceName") private String deviceName; - + + public String getUDiskId() { return uDiskId; } @@ -43,7 +65,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public String getUHostId() { return uHostId; } @@ -51,7 +73,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getHostId() { return hostId; } @@ -59,7 +81,7 @@ public String getHostId() { public void setHostId(String hostId) { this.hostId = hostId; } - + public String getDeviceName() { return deviceName; } @@ -67,4 +89,14 @@ public String getDeviceName() { public void setDeviceName(String deviceName) { this.deviceName = deviceName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskRequest.java index c07f5778..a1e772d3 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskRequest.java @@ -1,111 +1,187 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 购买UDisk大小,单位:GB,普通数据盘:范围[1~8000];SSD数据盘:范围[1~8000];RSSD数据盘:范围[1~32000];高效数据盘:范围[1~32000]。 */ + + + + /** + * 购买UDisk大小,单位:GB,普通数据盘:范围[1~8000];SSD数据盘:范围[1~8000];RSSD数据盘:范围[1~32000];高效数据盘:范围[1~32000]。 + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 实例名称 */ + + + + /** + * 实例名称 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** Year , Month, Dynamic, Postpay, Trial 。默认为Dynamic。 */ + + + + /** + * Year , Month, Dynamic, Postpay, Trial 。默认为Dynamic。 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长 默认: 1 */ + + + + /** + * 购买时长 默认: 1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("UDataArkMode") private String uDataArkMode; - - /** 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("SnapshotService") private String snapshotService; - - /** 业务组 默认:Default */ + + + + /** + * 业务组 默认:Default + */ @UCloudParam("Tag") private String tag; - + + + /** - * UDisk 类型: - * DataDisk(普通数据盘),SSDDataDisk(SSD数据盘),RSSDDataDisk(RSSD数据盘),EfficiencyDataDisk(高效数据盘),默认值(DataDisk) + * UDisk 类型: DataDisk(普通数据盘),SSDDataDisk(SSD数据盘),RSSDDataDisk(RSSD数据盘),EfficiencyDataDisk(高效数据盘),默认值(DataDisk) */ @UCloudParam("DiskType") private String diskType; - - /** 是否加密。Yes:加密,No:不加密,默认值(No) */ + + + + /** + * 是否加密。Yes:加密,No:不加密,默认值(No) + */ @UCloudParam("UKmsMode") private String uKmsMode; - - /** 加密需要的cmk id,UKmsMode为Yes时,必填 */ + + + + /** + * 加密需要的cmk id,UKmsMode为Yes时,必填 + */ @UCloudParam("CmkId") private String cmkId; - - /** RDMA集群id。DiskType为RSSDDataDisk可填,指定云盘创建到对应的RDMA集群。 */ + + + + /** + * RDMA集群id。DiskType为RSSDDataDisk可填,指定云盘创建到对应的RDMA集群。 + */ @UCloudParam("RdmaClusterId") private String rdmaClusterId; - - /** 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 */ + + + + /** + * 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 + */ @UCloudParam("BackupMode") private String backupMode; - - /** BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 */ + + + + /** + * BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 + */ @UCloudParam("Journal") private Integer journal; - - /** BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 */ + + + + /** + * BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 + */ @UCloudParam("Hour") private Integer hour; - - /** BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 */ + + + + /** + * BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 + */ @UCloudParam("Day") private Integer day; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -113,7 +189,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -121,7 +197,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -129,7 +205,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getSize() { return size; } @@ -137,7 +213,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getName() { return name; } @@ -145,7 +221,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getChargeType() { return chargeType; } @@ -153,7 +229,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -161,7 +237,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getUDataArkMode() { return uDataArkMode; } @@ -169,7 +245,7 @@ public String getUDataArkMode() { public void setUDataArkMode(String uDataArkMode) { this.uDataArkMode = uDataArkMode; } - + public String getSnapshotService() { return snapshotService; } @@ -177,7 +253,7 @@ public String getSnapshotService() { public void setSnapshotService(String snapshotService) { this.snapshotService = snapshotService; } - + public String getTag() { return tag; } @@ -185,7 +261,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getDiskType() { return diskType; } @@ -193,7 +269,7 @@ public String getDiskType() { public void setDiskType(String diskType) { this.diskType = diskType; } - + public String getUKmsMode() { return uKmsMode; } @@ -201,7 +277,7 @@ public String getUKmsMode() { public void setUKmsMode(String uKmsMode) { this.uKmsMode = uKmsMode; } - + public String getCmkId() { return cmkId; } @@ -209,7 +285,7 @@ public String getCmkId() { public void setCmkId(String cmkId) { this.cmkId = cmkId; } - + public String getRdmaClusterId() { return rdmaClusterId; } @@ -217,7 +293,7 @@ public String getRdmaClusterId() { public void setRdmaClusterId(String rdmaClusterId) { this.rdmaClusterId = rdmaClusterId; } - + public String getBackupMode() { return backupMode; } @@ -225,7 +301,7 @@ public String getBackupMode() { public void setBackupMode(String backupMode) { this.backupMode = backupMode; } - + public Integer getJournal() { return journal; } @@ -233,7 +309,7 @@ public Integer getJournal() { public void setJournal(Integer journal) { this.journal = journal; } - + public Integer getHour() { return hour; } @@ -241,7 +317,7 @@ public Integer getHour() { public void setHour(Integer hour) { this.hour = hour; } - + public Integer getDay() { return day; } @@ -249,7 +325,7 @@ public Integer getDay() { public void setDay(Integer day) { this.day = day; } - + public String getCouponId() { return couponId; } @@ -257,4 +333,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskResponse.java index 329a24c6..2e1952eb 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class CreateUDiskResponse extends Response { - /** UDisk实例Id */ + + + /** + * UDisk实例Id + */ @SerializedName("UDiskId") private List uDiskId; - + + public List getUDiskId() { return uDiskId; } @@ -32,4 +41,14 @@ public List getUDiskId() { public void setUDiskId(List uDiskId) { this.uDiskId = uDiskId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskSnapshotRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskSnapshotRequest.java index 61659e19..b8e0aaca 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskSnapshotRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskSnapshotRequest.java @@ -1,61 +1,99 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUDiskSnapshotRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 快照的UDisk的Id */ + + + + /** + * 快照的UDisk的Id + */ @NotEmpty @UCloudParam("UDiskId") private String uDiskId; - - /** 快照名称 */ + + + + /** + * 快照名称 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 购买时长 默认: 1 (已废弃) */ + + + + /** + * 购买时长 默认: 1 (已废弃) + */ @UCloudParam("Quantity") private Integer quantity; - - /** Year , Month, Dynamic 默认: Dynamic (已废弃) */ + + + + /** + * Year , Month, Dynamic 默认: Dynamic (已废弃) + */ @UCloudParam("ChargeType") private String chargeType; - - /** 快照描述 */ + + + + /** + * 快照描述 + */ @UCloudParam("Comment") private String comment; - + + public String getRegion() { return region; } @@ -63,7 +101,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -71,7 +109,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -79,7 +117,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDiskId() { return uDiskId; } @@ -87,7 +125,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public String getName() { return name; } @@ -95,7 +133,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public Integer getQuantity() { return quantity; } @@ -103,7 +141,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getChargeType() { return chargeType; } @@ -111,7 +149,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getComment() { return comment; } @@ -119,4 +157,14 @@ public String getComment() { public void setComment(String comment) { this.comment = comment; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskSnapshotResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskSnapshotResponse.java index 862beea0..8e61d78f 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskSnapshotResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/CreateUDiskSnapshotResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class CreateUDiskSnapshotResponse extends Response { - /** 快照Id */ + + + /** + * 快照Id + */ @SerializedName("SnapshotId") private List snapshotId; - + + public List getSnapshotId() { return snapshotId; } @@ -32,4 +41,14 @@ public List getSnapshotId() { public void setSnapshotId(List snapshotId) { this.snapshotId = snapshotId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskRequest.java index 9de39e2a..fc43493b 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 要删除的UDisk的Id */ + + + + /** + * 要删除的UDisk的Id + */ @NotEmpty @UCloudParam("UDiskId") private String uDiskId; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -54,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -62,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDiskId() { return uDiskId; } @@ -70,4 +92,14 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskResponse.java index 0f0501a0..a983586a 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUDiskResponse extends Response {} +public class DeleteUDiskResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskSnapshotRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskSnapshotRequest.java index 0b375368..1002ed15 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskSnapshotRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskSnapshotRequest.java @@ -1,47 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUDiskSnapshotRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 快照Id(填写后不能填写UDisk Id) */ + + + + /** + * 快照Id(填写后不能填写UDisk Id) + */ @UCloudParam("SnapshotId") private String snapshotId; - - /** UDisk Id,删除该盘所创建出来的所有快照(填写后不能填写SnapshotId) */ + + + + /** + * UDisk Id,删除该盘所创建出来的所有快照(填写后不能填写SnapshotId) + */ @UCloudParam("UDiskId") private String uDiskId; - + + public String getRegion() { return region; } @@ -49,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +83,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSnapshotId() { return snapshotId; } @@ -73,7 +99,7 @@ public String getSnapshotId() { public void setSnapshotId(String snapshotId) { this.snapshotId = snapshotId; } - + public String getUDiskId() { return uDiskId; } @@ -81,4 +107,14 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskSnapshotResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskSnapshotResponse.java index b216fa57..9e20d3b7 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskSnapshotResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DeleteUDiskSnapshotResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUDiskSnapshotResponse extends Response {} +public class DeleteUDiskSnapshotResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeRecycleUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeRecycleUDiskRequest.java index 376ef5a0..c87a0a74 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeRecycleUDiskRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeRecycleUDiskRequest.java @@ -1,47 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeRecycleUDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 返回数据长度, 默认为20 */ + + + + /** + * 返回数据长度, 默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 数据偏移量, 默认为0 */ + + + + /** + * 数据偏移量, 默认为0 + */ @UCloudParam("Offset") private Integer offset; - + + public String getRegion() { return region; } @@ -49,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +83,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getLimit() { return limit; } @@ -73,7 +99,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -81,4 +107,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeRecycleUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeRecycleUDiskResponse.java index ddcef51f..1dfcd10a 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeRecycleUDiskResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeRecycleUDiskResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeRecycleUDiskResponse extends Response { - /** 磁盘数量 */ + + + /** + * 磁盘数量 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 回收站磁盘列表 */ + + + + /** + * 回收站磁盘列表 + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,103 +57,145 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class RecycleUDiskSet extends Response { + + + /** + * 磁盘id + */ + @SerializedName("UDiskId") + private String uDiskId; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 过期时间 + */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + + + /** + * 销毁倒计时 + */ + @SerializedName("CountdownTime") + private Integer countdownTime; + + + + /** + * 磁盘名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 磁盘容量 + */ + @SerializedName("Size") + private Integer size; + + + + /** + * 业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 可用区 + */ + @SerializedName("Zone") + private String zone; + + + public String getUDiskId() { + return uDiskId; + } - public static class RecycleUDiskSet extends Response { - - /** 磁盘id */ - @SerializedName("UDiskId") - private String uDiskId; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 过期时间 */ - @SerializedName("ExpiredTime") - private Integer expiredTime; - - /** 销毁倒计时 */ - @SerializedName("CountdownTime") - private Integer countdownTime; - - /** 磁盘名称 */ - @SerializedName("Name") - private String name; - - /** 磁盘容量 */ - @SerializedName("Size") - private Integer size; - - /** 业务组 */ - @SerializedName("Tag") - private String tag; - - /** 可用区 */ - @SerializedName("Zone") - private String zone; + public void setUDiskId(String uDiskId) { + this.uDiskId = uDiskId; + } + + public Integer getCreateTime() { + return createTime; + } - public String getUDiskId() { - return uDiskId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } - public void setUDiskId(String uDiskId) { - this.uDiskId = uDiskId; - } + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public Integer getCountdownTime() { + return countdownTime; + } - public Integer getCreateTime() { - return createTime; - } + public void setCountdownTime(Integer countdownTime) { + this.countdownTime = countdownTime; + } + + public String getName() { + return name; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setName(String name) { + this.name = name; + } + + public Integer getSize() { + return size; + } - public Integer getExpiredTime() { - return expiredTime; - } + public void setSize(Integer size) { + this.size = size; + } + + public String getTag() { + return tag; + } - public void setExpiredTime(Integer expiredTime) { - this.expiredTime = expiredTime; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getZone() { + return zone; + } - public Integer getCountdownTime() { - return countdownTime; + public void setZone(String zone) { + this.zone = zone; + } + } +} - public void setCountdownTime(Integer countdownTime) { - this.countdownTime = countdownTime; - } - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public Integer getSize() { - return size; - } - public void setSize(Integer size) { - this.size = size; - } - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - public String getZone() { - return zone; - } - public void setZone(String zone) { - this.zone = zone; - } - } -} diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskPriceRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskPriceRequest.java index 743533c8..08f1d56c 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskPriceRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskPriceRequest.java @@ -1,96 +1,154 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDiskPriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** * 购买UDisk大小,单位:GB,普通数据盘:范围[1~8000];SSD数据盘:范围[1~8000];普通系统盘:范围[1~8000];SSD系统盘:范围[1~4000];RSSD数据盘:范围[1~32000];RSSD系统盘:范围[1~4000];高效数据盘:范围[1~32000];高效系统盘:范围[1~500]。 */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** Year , Month, Dynamic,Postpay,Trial 默认: Month */ + + + + /** + * Year , Month, Dynamic,Postpay,Trial 默认: Month + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买UDisk的时长,默认值为1 */ + + + + /** + * 购买UDisk的时长,默认值为1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("UDataArkMode") private String uDataArkMode; - - /** 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("SnapshotService") private String snapshotService; - + + + /** - * UDisk 类型: - * DataDisk(普通数据盘),SSDDataDisk(SSD数据盘),RSSDDataDisk(RSSD数据盘),EfficiencyDataDisk(高效数据盘),SystemDisk(普通系统盘),SSDSystemDisk(SSD系统盘),RSSDSystemDisk(RSSD系统盘),EfficiencySystemDisk(高效系统盘),默认值(DataDisk) + * UDisk 类型: DataDisk(普通数据盘),SSDDataDisk(SSD数据盘),RSSDDataDisk(RSSD数据盘),EfficiencyDataDisk(高效数据盘),SystemDisk(普通系统盘),SSDSystemDisk(SSD系统盘),RSSDSystemDisk(RSSD系统盘),EfficiencySystemDisk(高效系统盘),默认值(DataDisk) */ @UCloudParam("DiskType") private String diskType; - - /** 是否将快照服务(数据方舟),云硬盘放入一张订单, 是:"Yes",否:"No",默认是"No" */ + + + + /** + * 是否将快照服务(数据方舟),云硬盘放入一张订单, 是:"Yes",否:"No",默认是"No" + */ @UCloudParam("IsTotalPrice") private String isTotalPrice; - - /** 云主机机型(V2.0),枚举值["N", "C", "G", "O", "OM"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 */ + + + + /** + * 云主机机型(V2.0),枚举值["N", "C", "G", "O", "OM"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + */ @UCloudParam("MachineType") private String machineType; - - /** 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 */ + + + + /** + * 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 + */ @UCloudParam("BackupMode") private String backupMode; - - /** BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 */ + + + + /** + * BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 + */ @UCloudParam("Journal") private Integer journal; - - /** BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 */ + + + + /** + * BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 + */ @UCloudParam("Hour") private Integer hour; - - /** BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 */ + + + + /** + * BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 + */ @UCloudParam("Day") private Integer day; - + + public String getRegion() { return region; } @@ -98,7 +156,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -106,7 +164,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -114,7 +172,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getSize() { return size; } @@ -122,7 +180,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getChargeType() { return chargeType; } @@ -130,7 +188,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -138,7 +196,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getUDataArkMode() { return uDataArkMode; } @@ -146,7 +204,7 @@ public String getUDataArkMode() { public void setUDataArkMode(String uDataArkMode) { this.uDataArkMode = uDataArkMode; } - + public String getSnapshotService() { return snapshotService; } @@ -154,7 +212,7 @@ public String getSnapshotService() { public void setSnapshotService(String snapshotService) { this.snapshotService = snapshotService; } - + public String getDiskType() { return diskType; } @@ -162,7 +220,7 @@ public String getDiskType() { public void setDiskType(String diskType) { this.diskType = diskType; } - + public String getIsTotalPrice() { return isTotalPrice; } @@ -170,7 +228,7 @@ public String getIsTotalPrice() { public void setIsTotalPrice(String isTotalPrice) { this.isTotalPrice = isTotalPrice; } - + public String getMachineType() { return machineType; } @@ -178,7 +236,7 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } - + public String getBackupMode() { return backupMode; } @@ -186,7 +244,7 @@ public String getBackupMode() { public void setBackupMode(String backupMode) { this.backupMode = backupMode; } - + public Integer getJournal() { return journal; } @@ -194,7 +252,7 @@ public Integer getJournal() { public void setJournal(Integer journal) { this.journal = journal; } - + public Integer getHour() { return hour; } @@ -202,7 +260,7 @@ public Integer getHour() { public void setHour(Integer hour) { this.hour = hour; } - + public Integer getDay() { return day; } @@ -210,4 +268,14 @@ public Integer getDay() { public void setDay(Integer day) { this.day = day; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskPriceResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskPriceResponse.java index 7cf9215c..b6c8b7dd 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskPriceResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskPriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDiskPriceResponse extends Response { - /** 价格参数列表,具体说明见 UDiskPriceDataSet */ + + + /** + * 价格参数列表,具体说明见 UDiskPriceDataSet + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,67 +41,97 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UDiskPriceDataSet extends Response { + + + /** + * Year, Month, Dynamic,Trial + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 实际价格 (单位: 分) + */ + @SerializedName("Price") + private Integer price; + + + + /** + * "UDataArk","SnapshotService","UDisk","Total" + */ + @SerializedName("ChargeName") + private String chargeName; + + + + /** + * 用户折后价(对应计费CustomPrice) + */ + @SerializedName("OriginalPrice") + private Integer originalPrice; + + + + /** + * 原价(对应计费OriginalPrice) + */ + @SerializedName("ListPrice") + private Integer listPrice; + + + public String getChargeType() { + return chargeType; + } - public static class UDiskPriceDataSet extends Response { - - /** Year, Month, Dynamic,Trial */ - @SerializedName("ChargeType") - private String chargeType; - - /** 实际价格 (单位: 分) */ - @SerializedName("Price") - private Integer price; + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getPrice() { + return price; + } - /** "UDataArk","SnapshotService","UDisk","Total" */ - @SerializedName("ChargeName") - private String chargeName; + public void setPrice(Integer price) { + this.price = price; + } + + public String getChargeName() { + return chargeName; + } - /** 用户折后价(对应计费CustomPrice) */ - @SerializedName("OriginalPrice") - private Integer originalPrice; + public void setChargeName(String chargeName) { + this.chargeName = chargeName; + } + + public Integer getOriginalPrice() { + return originalPrice; + } - /** 原价(对应计费OriginalPrice) */ - @SerializedName("ListPrice") - private Integer listPrice; + public void setOriginalPrice(Integer originalPrice) { + this.originalPrice = originalPrice; + } + + public Integer getListPrice() { + return listPrice; + } - public String getChargeType() { - return chargeType; + public void setListPrice(Integer listPrice) { + this.listPrice = listPrice; + } + } +} - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Integer getPrice() { - return price; - } - public void setPrice(Integer price) { - this.price = price; - } - public String getChargeName() { - return chargeName; - } - public void setChargeName(String chargeName) { - this.chargeName = chargeName; - } - public Integer getOriginalPrice() { - return originalPrice; - } - public void setOriginalPrice(Integer originalPrice) { - this.originalPrice = originalPrice; - } - public Integer getListPrice() { - return listPrice; - } - public void setListPrice(Integer listPrice) { - this.listPrice = listPrice; - } - } -} diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskRequest.java index adc8e397..4593244d 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskRequest.java @@ -1,107 +1,168 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UDisk Id(留空返回全部) */ + + + + /** + * UDisk Id(留空返回全部) + */ @UCloudParam("UDiskId") private String uDiskId; - - /** 数据偏移量, 默认为0 */ + + + + /** + * 数据偏移量, 默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度, 默认为20 */ + + + + /** + * 返回数据长度, 默认为20 + */ @UCloudParam("Limit") private Integer limit; - + + + /** * ProtocolVersion字段为1时,需结合IsBoot确定具体磁盘类型:普通数据盘:DiskType:"CLOUD_NORMAL",IsBoot:"False";普通系统盘:DiskType:"CLOUD_NORMAL",IsBoot:"True";SSD数据盘:DiskType:"CLOUD_SSD",IsBoot:"False";SSD系统盘:DiskType:"CLOUD_SSD",IsBoot:"True";RSSD数据盘:DiskType:"CLOUD_RSSD",IsBoot:"False";RSSD系统盘:DiskType:"CLOUD_RSSD",IsBoot:"True";高效数据盘:DiskType:"CLOUD_EFFICIENCY",IsBoot:"False";高效系统盘:DiskType:"CLOUD_EFFICIENCY",IsBoot:"True";为空拉取所有。ProtocolVersion字段为0或没有该字段时,可设为以下几个值:普通数据盘:DataDisk;普通系统盘:SystemDisk;SSD数据盘:SSDDataDisk;SSD系统盘:SSDSystemDisk;RSSD数据盘:RSSDDataDisk;RSSD系统盘:RSSDSystemDisk:高效数据盘:EfficiencyDataDisk;高效系统盘:EfficiencySystemDisk;为空拉取所有。 */ @UCloudParam("DiskType") private String diskType; - - /** 请求协议版本,建议升级为1,为1时DiskType与UHost磁盘类型定义一致;默认为0 */ + + + + /** + * 请求协议版本,建议升级为1,为1时DiskType与UHost磁盘类型定义一致;默认为0 + */ @UCloudParam("ProtocolVersion") private Integer protocolVersion; - + + + /** * ProtocolVersion字段为1且DiskType不为空时,必须设置,设置规则请参照DiskType;ProtocolVersion字段为1且DiskType为空时,该字段无效。ProtocolVersion字段为0或没有该字段时,该字段无效。 */ @UCloudParam("IsBoot") private String isBoot; - - /** 是否忽略计费信息。Yes:忽略,No:不忽略,默认值(No)。(如不关心账单信息,建议选填“Yes”,可降低请求延时) */ + + + + /** + * 是否忽略计费信息。Yes:忽略,No:不忽略,默认值(No)。(如不关心账单信息,建议选填“Yes”,可降低请求延时) + */ @UCloudParam("IgnoreUBillInfo") private String ignoreUBillInfo; - - /** 是否忽略快照服务信息。Yes:忽略,No:不忽略,默认值(No)。(如不关心快照服务信息,建议选填“Yes”,可降低请求延时) */ + + + + /** + * 是否忽略快照服务信息。Yes:忽略,No:不忽略,默认值(No)。(如不关心快照服务信息,建议选填“Yes”,可降低请求延时) + */ @UCloudParam("IgnoreBackupMode") private String ignoreBackupMode; - - /** 是否只返回云盘基础信息(只包含云盘及关联主机的资源信息)。Yes:是,No:否,默认值(No)。(如仅需要基础信息,建议选填“Yes”,可降低请求延时) */ + + + + /** + * 是否只返回云盘基础信息(只包含云盘及关联主机的资源信息)。Yes:是,No:否,默认值(No)。(如仅需要基础信息,建议选填“Yes”,可降低请求延时) + */ @UCloudParam("UDiskBasicInfo") private String uDiskBasicInfo; - - /** 根据传入的UHostIdForAttachment,筛选出能被挂载在该主机上的云盘【本字段即将废弃,建议使用HostIdForAttachment】 */ + + + + /** + * 根据传入的UHostIdForAttachment,筛选出能被挂载在该主机上的云盘【本字段即将废弃,建议使用HostIdForAttachment】 + */ @UCloudParam("UHostIdForAttachment") private String uHostIdForAttachment; - - /** 根据传入的HostIdForAttachment,筛选出能被挂载在该主机上的云盘。目前主要针对RSSD云盘。 */ + + + + /** + * 根据传入的HostIdForAttachment,筛选出能被挂载在该主机上的云盘。目前主要针对RSSD云盘。 + */ @UCloudParam("HostIdForAttachment") private String hostIdForAttachment; - - /** 根据传入的HostId,返回与该主机关联的云盘信息。 */ + + + + /** + * 根据传入的HostId,返回与该主机关联的云盘信息。 + */ @UCloudParam("HostId") private String hostId; - + + + /** - * 宿主产品类型,可筛选挂载在该类型宿主上的云盘。可选值:uhost, - * uphost。为空拉取所有。(当HostIdForAttachment字段不为空时,该字段可以不填,若HostIdForAttachment与该字段宿主类型冲突,则以HostIdForAttachment字段为准。) + * 宿主产品类型,可筛选挂载在该类型宿主上的云盘。可选值:uhost, uphost。为空拉取所有。(当HostIdForAttachment字段不为空时,该字段可以不填,若HostIdForAttachment与该字段宿主类型冲突,则以HostIdForAttachment字段为准。) */ @UCloudParam("HostProduct") private String hostProduct; - + + + /** - * 云盘状态。All(所有状态),Available(可用),Attaching(挂载中),InUse(已挂载), Detaching(卸载中), - * Initializating(分配中),Failed(创建失败),Cloning(克隆中),Restoring(恢复中),RestoreFailed(恢复失败)。默认值:All + * 云盘状态。All(所有状态),Available(可用),Attaching(挂载中),InUse(已挂载), Detaching(卸载中), Initializating(分配中),Failed(创建失败),Cloning(克隆中),Restoring(恢复中),RestoreFailed(恢复失败)。默认值:All */ @UCloudParam("Status") private String status; - + + public String getRegion() { return region; } @@ -109,7 +170,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -117,7 +178,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -125,7 +186,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDiskId() { return uDiskId; } @@ -133,7 +194,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public Integer getOffset() { return offset; } @@ -141,7 +202,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -149,7 +210,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getDiskType() { return diskType; } @@ -157,7 +218,7 @@ public String getDiskType() { public void setDiskType(String diskType) { this.diskType = diskType; } - + public Integer getProtocolVersion() { return protocolVersion; } @@ -165,7 +226,7 @@ public Integer getProtocolVersion() { public void setProtocolVersion(Integer protocolVersion) { this.protocolVersion = protocolVersion; } - + public String getIsBoot() { return isBoot; } @@ -173,7 +234,7 @@ public String getIsBoot() { public void setIsBoot(String isBoot) { this.isBoot = isBoot; } - + public String getIgnoreUBillInfo() { return ignoreUBillInfo; } @@ -181,7 +242,7 @@ public String getIgnoreUBillInfo() { public void setIgnoreUBillInfo(String ignoreUBillInfo) { this.ignoreUBillInfo = ignoreUBillInfo; } - + public String getIgnoreBackupMode() { return ignoreBackupMode; } @@ -189,7 +250,7 @@ public String getIgnoreBackupMode() { public void setIgnoreBackupMode(String ignoreBackupMode) { this.ignoreBackupMode = ignoreBackupMode; } - + public String getUDiskBasicInfo() { return uDiskBasicInfo; } @@ -197,7 +258,7 @@ public String getUDiskBasicInfo() { public void setUDiskBasicInfo(String uDiskBasicInfo) { this.uDiskBasicInfo = uDiskBasicInfo; } - + public String getUHostIdForAttachment() { return uHostIdForAttachment; } @@ -205,7 +266,7 @@ public String getUHostIdForAttachment() { public void setUHostIdForAttachment(String uHostIdForAttachment) { this.uHostIdForAttachment = uHostIdForAttachment; } - + public String getHostIdForAttachment() { return hostIdForAttachment; } @@ -213,7 +274,7 @@ public String getHostIdForAttachment() { public void setHostIdForAttachment(String hostIdForAttachment) { this.hostIdForAttachment = hostIdForAttachment; } - + public String getHostId() { return hostId; } @@ -221,7 +282,7 @@ public String getHostId() { public void setHostId(String hostId) { this.hostId = hostId; } - + public String getHostProduct() { return hostProduct; } @@ -229,7 +290,7 @@ public String getHostProduct() { public void setHostProduct(String hostProduct) { this.hostProduct = hostProduct; } - + public String getStatus() { return status; } @@ -237,4 +298,14 @@ public String getStatus() { public void setStatus(String status) { this.status = status; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskResponse.java index b27c4074..551b6422 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDiskResponse extends Response { - /** JSON 格式的UDisk数据列表, 每项参数可见下面 UDiskDataSet */ + + + /** + * JSON 格式的UDisk数据列表, 每项参数可见下面 UDiskDataSet + */ @SerializedName("DataSet") private List dataSet; - - /** 根据过滤条件得到的总数 */ + + + + /** + * 根据过滤条件得到的总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,409 +57,545 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class UDiskDataSet extends Response { + + + /** + * 可用区 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * UDisk实例Id + */ + @SerializedName("UDiskId") + private String uDiskId; + + + + /** + * 实例名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 容量单位GB + */ + @SerializedName("Size") + private Integer size; + + + + /** + * 状态:Available(可用),Attaching(挂载中), InUse(已挂载), Detaching(卸载中), Initializating(分配中), Failed(创建失败),Cloning(克隆中),Restoring(恢复中),RestoreFailed(恢复失败) + */ + @SerializedName("Status") + private String status; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 过期时间 + */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + + + /** + * 挂载的UHost的Id。【即将废弃,建议使用HostId】 + */ + @SerializedName("UHostId") + private String uHostId; + + + + /** + * 挂载的UHost的Name。【即将废弃,建议使用HostName】 + */ + @SerializedName("UHostName") + private String uHostName; + + + + /** + * 挂载的UHost的IP。【即将废弃,建议使用HostIP】 + */ + @SerializedName("UHostIP") + private String uHostIP; + + + + /** + * 挂载的Host的Id + */ + @SerializedName("HostId") + private String hostId; + + + + /** + * 挂载的Host的Name + */ + @SerializedName("HostName") + private String hostName; + + + + /** + * 挂载的Host的IP + */ + @SerializedName("HostIP") + private String hostIP; + + + + /** + * 挂载的设备名称 + */ + @SerializedName("DeviceName") + private String deviceName; + + + + /** + * Year,Month,Dynamic,Trial,Postpay + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 业务组名称 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 资源是否过期,过期:"Yes", 未过期:"No" + */ + @SerializedName("IsExpire") + private String isExpire; + + + + /** + * 是否支持数据方舟,支持:"2.0", 不支持:"1.0" + */ + @SerializedName("Version") + private String version; + + + + /** + * 是否开启数据方舟,开启:"Yes", 不支持:"No" + */ + @SerializedName("UDataArkMode") + private String uDataArkMode; + + + + /** + * 该盘快照个数 + */ + @SerializedName("SnapshotCount") + private Integer snapshotCount; + + + + /** + * 该盘快照上限 + */ + @SerializedName("SnapshotLimit") + private Integer snapshotLimit; + + + + /** + * 请求中的ProtocolVersion字段为1时,需结合IsBoot确定具体磁盘类型:普通数据盘:DiskType:"CLOUD_NORMAL",IsBoot:"False"; 普通系统盘:DiskType:"CLOUD_NORMAL",IsBoot:"True";SSD数据盘:DiskType:"CLOUD_SSD",IsBoot:"False";SSD系统盘:DiskType:"CLOUD_SSD",IsBoot:"True";RSSD数据盘:DiskType:"CLOUD_RSSD",IsBoot:"False";RSSD系统盘:DiskType:"CLOUD_RSSD",IsBoot:"True";高效数据盘:DiskType:"CLOUD_EFFICIENCY",IsBoot:"False";高效系统盘:DiskType:"CLOUD_EFFICIENCY",IsBoot:"True"。请求中的ProtocolVersion字段为0或没有该字段时,云硬盘类型参照如下:普通数据盘:DataDisk;普通系统盘:SystemDisk;SSD数据盘:SSDDataDisk;SSD系统盘:SSDSystemDisk;RSSD数据盘:RSSDDataDisk;RSSD系统盘:RSSDSystemDisk;高效数据盘:EfficiencyDataDisk;高效系统盘:EfficiencySystemDisk。 + */ + @SerializedName("DiskType") + private String diskType; + + + + /** + * 是否支持克隆,1支持 ,0不支持 + */ + @SerializedName("CloneEnable") + private Integer cloneEnable; + + + + /** + * 是否支持快照,1支持 ,0不支持 + */ + @SerializedName("SnapEnable") + private Integer snapEnable; + + + + /** + * 是否支持开启方舟,1支持 ,0不支持 + */ + @SerializedName("ArkSwitchEnable") + private Integer arkSwitchEnable; + + + + /** + * 是否是加密盘,是:"Yes", 否:"No" + */ + @SerializedName("UKmsMode") + private String uKmsMode; + + + + /** + * 该盘的cmk id + */ + @SerializedName("CmkId") + private String cmkId; + + + + /** + * 该盘的密文密钥 + */ + @SerializedName("DataKey") + private String dataKey; + + + + /** + * 该盘cmk的状态, Enabled(正常),Disabled(失效),Deleted(删除),NoCmkId(非加密盘) + */ + @SerializedName("CmkIdStatus") + private String cmkIdStatus; + + + + /** + * cmk id 别名 + */ + @SerializedName("CmkIdAlias") + private String cmkIdAlias; + + + + /** + * 是否是系统盘,是:"True", 否:"False" + */ + @SerializedName("IsBoot") + private String isBoot; + + + + /** + * 该盘的备份方式。快照服务:"SnapshotService";数据方舟:"UDataArk";无备份方式:"" + */ + @SerializedName("BackupMode") + private String backupMode; + + + + /** + * RDMA集群id,仅RSSD返回该值;其他类型云盘返回""。当云盘的此值与快杰云主机的RdmaClusterId相同时,RSSD可以挂载到这台云主机。 + */ + @SerializedName("RdmaClusterId") + private String rdmaClusterId; + + + public String getZone() { + return zone; + } - public static class UDiskDataSet extends Response { - - /** 可用区 */ - @SerializedName("Zone") - private String zone; - - /** UDisk实例Id */ - @SerializedName("UDiskId") - private String uDiskId; - - /** 实例名称 */ - @SerializedName("Name") - private String name; - - /** 容量单位GB */ - @SerializedName("Size") - private Integer size; - - /** - * 状态:Available(可用),Attaching(挂载中), InUse(已挂载), Detaching(卸载中), Initializating(分配中), - * Failed(创建失败),Cloning(克隆中),Restoring(恢复中),RestoreFailed(恢复失败) - */ - @SerializedName("Status") - private String status; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 过期时间 */ - @SerializedName("ExpiredTime") - private Integer expiredTime; - - /** 挂载的UHost的Id。【即将废弃,建议使用HostId】 */ - @SerializedName("UHostId") - private String uHostId; - - /** 挂载的UHost的Name。【即将废弃,建议使用HostName】 */ - @SerializedName("UHostName") - private String uHostName; - - /** 挂载的UHost的IP。【即将废弃,建议使用HostIP】 */ - @SerializedName("UHostIP") - private String uHostIP; - - /** 挂载的Host的Id */ - @SerializedName("HostId") - private String hostId; - - /** 挂载的Host的Name */ - @SerializedName("HostName") - private String hostName; - - /** 挂载的Host的IP */ - @SerializedName("HostIP") - private String hostIP; - - /** 挂载的设备名称 */ - @SerializedName("DeviceName") - private String deviceName; - - /** Year,Month,Dynamic,Trial,Postpay */ - @SerializedName("ChargeType") - private String chargeType; - - /** 业务组名称 */ - @SerializedName("Tag") - private String tag; - - /** 资源是否过期,过期:"Yes", 未过期:"No" */ - @SerializedName("IsExpire") - private String isExpire; - - /** 是否支持数据方舟,支持:"2.0", 不支持:"1.0" */ - @SerializedName("Version") - private String version; - - /** 是否开启数据方舟,开启:"Yes", 不支持:"No" */ - @SerializedName("UDataArkMode") - private String uDataArkMode; - - /** 该盘快照个数 */ - @SerializedName("SnapshotCount") - private Integer snapshotCount; - - /** 该盘快照上限 */ - @SerializedName("SnapshotLimit") - private Integer snapshotLimit; - - /** - * 请求中的ProtocolVersion字段为1时,需结合IsBoot确定具体磁盘类型:普通数据盘:DiskType:"CLOUD_NORMAL",IsBoot:"False"; - * 普通系统盘:DiskType:"CLOUD_NORMAL",IsBoot:"True";SSD数据盘:DiskType:"CLOUD_SSD",IsBoot:"False";SSD系统盘:DiskType:"CLOUD_SSD",IsBoot:"True";RSSD数据盘:DiskType:"CLOUD_RSSD",IsBoot:"False";RSSD系统盘:DiskType:"CLOUD_RSSD",IsBoot:"True";高效数据盘:DiskType:"CLOUD_EFFICIENCY",IsBoot:"False";高效系统盘:DiskType:"CLOUD_EFFICIENCY",IsBoot:"True"。请求中的ProtocolVersion字段为0或没有该字段时,云硬盘类型参照如下:普通数据盘:DataDisk;普通系统盘:SystemDisk;SSD数据盘:SSDDataDisk;SSD系统盘:SSDSystemDisk;RSSD数据盘:RSSDDataDisk;RSSD系统盘:RSSDSystemDisk;高效数据盘:EfficiencyDataDisk;高效系统盘:EfficiencySystemDisk。 - */ - @SerializedName("DiskType") - private String diskType; - - /** 是否支持克隆,1支持 ,0不支持 */ - @SerializedName("CloneEnable") - private Integer cloneEnable; - - /** 是否支持快照,1支持 ,0不支持 */ - @SerializedName("SnapEnable") - private Integer snapEnable; - - /** 是否支持开启方舟,1支持 ,0不支持 */ - @SerializedName("ArkSwitchEnable") - private Integer arkSwitchEnable; - - /** 是否是加密盘,是:"Yes", 否:"No" */ - @SerializedName("UKmsMode") - private String uKmsMode; - - /** 该盘的cmk id */ - @SerializedName("CmkId") - private String cmkId; - - /** 该盘的密文密钥 */ - @SerializedName("DataKey") - private String dataKey; - - /** 该盘cmk的状态, Enabled(正常),Disabled(失效),Deleted(删除),NoCmkId(非加密盘) */ - @SerializedName("CmkIdStatus") - private String cmkIdStatus; - - /** cmk id 别名 */ - @SerializedName("CmkIdAlias") - private String cmkIdAlias; - - /** 是否是系统盘,是:"True", 否:"False" */ - @SerializedName("IsBoot") - private String isBoot; - - /** 该盘的备份方式。快照服务:"SnapshotService";数据方舟:"UDataArk";无备份方式:"" */ - @SerializedName("BackupMode") - private String backupMode; - - /** RDMA集群id,仅RSSD返回该值;其他类型云盘返回""。当云盘的此值与快杰云主机的RdmaClusterId相同时,RSSD可以挂载到这台云主机。 */ - @SerializedName("RdmaClusterId") - private String rdmaClusterId; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getUDiskId() { - return uDiskId; - } - - public void setUDiskId(String uDiskId) { - this.uDiskId = uDiskId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getSize() { - return size; - } - - public void setSize(Integer size) { - this.size = size; - } - - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public Integer getExpiredTime() { - return expiredTime; - } - - public void setExpiredTime(Integer expiredTime) { - this.expiredTime = expiredTime; - } - - public String getUHostId() { - return uHostId; - } - - public void setUHostId(String uHostId) { - this.uHostId = uHostId; - } - - public String getUHostName() { - return uHostName; - } - - public void setUHostName(String uHostName) { - this.uHostName = uHostName; - } - - public String getUHostIP() { - return uHostIP; - } - - public void setUHostIP(String uHostIP) { - this.uHostIP = uHostIP; - } - - public String getHostId() { - return hostId; - } - - public void setHostId(String hostId) { - this.hostId = hostId; - } - - public String getHostName() { - return hostName; - } - - public void setHostName(String hostName) { - this.hostName = hostName; - } - - public String getHostIP() { - return hostIP; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getUDiskId() { + return uDiskId; + } - public void setHostIP(String hostIP) { - this.hostIP = hostIP; - } + public void setUDiskId(String uDiskId) { + this.uDiskId = uDiskId; + } + + public String getName() { + return name; + } - public String getDeviceName() { - return deviceName; - } + public void setName(String name) { + this.name = name; + } + + public Integer getSize() { + return size; + } - public void setDeviceName(String deviceName) { - this.deviceName = deviceName; - } + public void setSize(Integer size) { + this.size = size; + } + + public String getStatus() { + return status; + } - public String getChargeType() { - return chargeType; - } + public void setStatus(String status) { + this.status = status; + } + + public Integer getCreateTime() { + return createTime; + } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } - public String getTag() { - return tag; - } + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public String getUHostId() { + return uHostId; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setUHostId(String uHostId) { + this.uHostId = uHostId; + } + + public String getUHostName() { + return uHostName; + } - public String getIsExpire() { - return isExpire; - } + public void setUHostName(String uHostName) { + this.uHostName = uHostName; + } + + public String getUHostIP() { + return uHostIP; + } - public void setIsExpire(String isExpire) { - this.isExpire = isExpire; - } + public void setUHostIP(String uHostIP) { + this.uHostIP = uHostIP; + } + + public String getHostId() { + return hostId; + } - public String getVersion() { - return version; - } + public void setHostId(String hostId) { + this.hostId = hostId; + } + + public String getHostName() { + return hostName; + } - public void setVersion(String version) { - this.version = version; - } + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public String getHostIP() { + return hostIP; + } - public String getUDataArkMode() { - return uDataArkMode; - } + public void setHostIP(String hostIP) { + this.hostIP = hostIP; + } + + public String getDeviceName() { + return deviceName; + } - public void setUDataArkMode(String uDataArkMode) { - this.uDataArkMode = uDataArkMode; - } + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public String getChargeType() { + return chargeType; + } - public Integer getSnapshotCount() { - return snapshotCount; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getTag() { + return tag; + } - public void setSnapshotCount(Integer snapshotCount) { - this.snapshotCount = snapshotCount; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getIsExpire() { + return isExpire; + } - public Integer getSnapshotLimit() { - return snapshotLimit; - } + public void setIsExpire(String isExpire) { + this.isExpire = isExpire; + } + + public String getVersion() { + return version; + } - public void setSnapshotLimit(Integer snapshotLimit) { - this.snapshotLimit = snapshotLimit; - } + public void setVersion(String version) { + this.version = version; + } + + public String getUDataArkMode() { + return uDataArkMode; + } - public String getDiskType() { - return diskType; - } + public void setUDataArkMode(String uDataArkMode) { + this.uDataArkMode = uDataArkMode; + } + + public Integer getSnapshotCount() { + return snapshotCount; + } - public void setDiskType(String diskType) { - this.diskType = diskType; - } + public void setSnapshotCount(Integer snapshotCount) { + this.snapshotCount = snapshotCount; + } + + public Integer getSnapshotLimit() { + return snapshotLimit; + } - public Integer getCloneEnable() { - return cloneEnable; - } + public void setSnapshotLimit(Integer snapshotLimit) { + this.snapshotLimit = snapshotLimit; + } + + public String getDiskType() { + return diskType; + } - public void setCloneEnable(Integer cloneEnable) { - this.cloneEnable = cloneEnable; - } + public void setDiskType(String diskType) { + this.diskType = diskType; + } + + public Integer getCloneEnable() { + return cloneEnable; + } - public Integer getSnapEnable() { - return snapEnable; - } + public void setCloneEnable(Integer cloneEnable) { + this.cloneEnable = cloneEnable; + } + + public Integer getSnapEnable() { + return snapEnable; + } - public void setSnapEnable(Integer snapEnable) { - this.snapEnable = snapEnable; - } + public void setSnapEnable(Integer snapEnable) { + this.snapEnable = snapEnable; + } + + public Integer getArkSwitchEnable() { + return arkSwitchEnable; + } - public Integer getArkSwitchEnable() { - return arkSwitchEnable; - } + public void setArkSwitchEnable(Integer arkSwitchEnable) { + this.arkSwitchEnable = arkSwitchEnable; + } + + public String getUKmsMode() { + return uKmsMode; + } - public void setArkSwitchEnable(Integer arkSwitchEnable) { - this.arkSwitchEnable = arkSwitchEnable; - } + public void setUKmsMode(String uKmsMode) { + this.uKmsMode = uKmsMode; + } + + public String getCmkId() { + return cmkId; + } - public String getUKmsMode() { - return uKmsMode; - } + public void setCmkId(String cmkId) { + this.cmkId = cmkId; + } + + public String getDataKey() { + return dataKey; + } - public void setUKmsMode(String uKmsMode) { - this.uKmsMode = uKmsMode; - } + public void setDataKey(String dataKey) { + this.dataKey = dataKey; + } + + public String getCmkIdStatus() { + return cmkIdStatus; + } - public String getCmkId() { - return cmkId; - } + public void setCmkIdStatus(String cmkIdStatus) { + this.cmkIdStatus = cmkIdStatus; + } + + public String getCmkIdAlias() { + return cmkIdAlias; + } - public void setCmkId(String cmkId) { - this.cmkId = cmkId; - } + public void setCmkIdAlias(String cmkIdAlias) { + this.cmkIdAlias = cmkIdAlias; + } + + public String getIsBoot() { + return isBoot; + } - public String getDataKey() { - return dataKey; - } + public void setIsBoot(String isBoot) { + this.isBoot = isBoot; + } + + public String getBackupMode() { + return backupMode; + } - public void setDataKey(String dataKey) { - this.dataKey = dataKey; - } + public void setBackupMode(String backupMode) { + this.backupMode = backupMode; + } + + public String getRdmaClusterId() { + return rdmaClusterId; + } - public String getCmkIdStatus() { - return cmkIdStatus; + public void setRdmaClusterId(String rdmaClusterId) { + this.rdmaClusterId = rdmaClusterId; + } + } +} - public void setCmkIdStatus(String cmkIdStatus) { - this.cmkIdStatus = cmkIdStatus; - } - public String getCmkIdAlias() { - return cmkIdAlias; - } - public void setCmkIdAlias(String cmkIdAlias) { - this.cmkIdAlias = cmkIdAlias; - } - public String getIsBoot() { - return isBoot; - } - public void setIsBoot(String isBoot) { - this.isBoot = isBoot; - } - public String getBackupMode() { - return backupMode; - } - public void setBackupMode(String backupMode) { - this.backupMode = backupMode; - } - public String getRdmaClusterId() { - return rdmaClusterId; - } - public void setRdmaClusterId(String rdmaClusterId) { - this.rdmaClusterId = rdmaClusterId; - } - } -} diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskSnapshotRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskSnapshotRequest.java index 0d28c56b..cda4416f 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskSnapshotRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskSnapshotRequest.java @@ -1,57 +1,88 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDiskSnapshotRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 数据偏移量, 默认为0 */ + + + + /** + * 数据偏移量, 默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度, 默认为20 */ + + + + /** + * 返回数据长度, 默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** UDiskId,返回该盘所做快照.(必须同时传Zone) */ + + + + /** + * UDiskId,返回该盘所做快照.(必须同时传Zone) + */ @UCloudParam("UDiskId") private String uDiskId; - - /** 快照id,SnapshotId , UDiskId 同时传SnapshotId优先 */ + + + + /** + * 快照id,SnapshotId , UDiskId 同时传SnapshotId优先 + */ @UCloudParam("SnapshotId") private String snapshotId; - + + public String getRegion() { return region; } @@ -59,7 +90,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -67,7 +98,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -75,7 +106,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getOffset() { return offset; } @@ -83,7 +114,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -91,7 +122,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getUDiskId() { return uDiskId; } @@ -99,7 +130,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public String getSnapshotId() { return snapshotId; } @@ -107,4 +138,14 @@ public String getSnapshotId() { public void setSnapshotId(String snapshotId) { this.snapshotId = snapshotId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskSnapshotResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskSnapshotResponse.java index b16d3538..d5c69acb 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskSnapshotResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskSnapshotResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDiskSnapshotResponse extends Response { - /** JSON 格式的Snapshot列表, 详细参见 UDiskSnapshotSet */ + + + /** + * JSON 格式的Snapshot列表, 详细参见 UDiskSnapshotSet + */ @SerializedName("DataSet") private List dataSet; - - /** 根据过滤条件得到的总数 */ + + + + /** + * 根据过滤条件得到的总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,235 +57,321 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class UDiskSnapshotSet extends Response { + + + /** + * 可用区 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 快照Id + */ + @SerializedName("SnapshotId") + private String snapshotId; + + + + /** + * 快照名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 快照的源UDisk的Id + */ + @SerializedName("UDiskId") + private String uDiskId; + + + + /** + * 快照的源UDisk的Name + */ + @SerializedName("UDiskName") + private String uDiskName; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 容量单位GB + */ + @SerializedName("Size") + private Integer size; + + + + /** + * 快照状态,Normal:正常,Failed:失败,Creating:制作中 + */ + @SerializedName("Status") + private String status; + + + + /** + * 磁盘类型,0:普通数据盘;1:普通系统盘;2:SSD数据盘;3:SSD系统盘;4:RSSD数据盘;5:RSSD系统盘。 + */ + @SerializedName("DiskType") + private Integer diskType; + + + + /** + * 【已废弃】过期时间 + */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + + + /** + * 快照描述 + */ + @SerializedName("Comment") + private String comment; + + + + /** + * 对应磁盘是否处于可用状态 + */ + @SerializedName("IsUDiskAvailable") + private Boolean isUDiskAvailable; + + + + /** + * 快照版本 + */ + @SerializedName("Version") + private String version; + + + + /** + * 对应磁盘制作快照时所挂载的主机 + */ + @SerializedName("UHostId") + private String uHostId; + + + + /** + * 【已废弃】是否是加密盘快照,是:"Yes", 否:"No" + */ + @SerializedName("UKmsMode") + private String uKmsMode; + + + + /** + * 【已废弃】该快照的cmk id + */ + @SerializedName("CmkId") + private String cmkId; + + + + /** + * 【已废弃】该快照的密文密钥 + */ + @SerializedName("DataKey") + private String dataKey; + + + + /** + * 【已废弃】该快照cmk的状态, Enabled(正常),Disabled(失效),Deleted(删除),NoCmkId(非加密盘) + */ + @SerializedName("CmkIdStatus") + private String cmkIdStatus; + + + + /** + * 【已废弃】cmk id 别名 + */ + @SerializedName("CmkIdAlias") + private String cmkIdAlias; + + + public String getZone() { + return zone; + } - public static class UDiskSnapshotSet extends Response { - - /** 可用区 */ - @SerializedName("Zone") - private String zone; - - /** 快照Id */ - @SerializedName("SnapshotId") - private String snapshotId; - - /** 快照名称 */ - @SerializedName("Name") - private String name; - - /** 快照的源UDisk的Id */ - @SerializedName("UDiskId") - private String uDiskId; - - /** 快照的源UDisk的Name */ - @SerializedName("UDiskName") - private String uDiskName; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 容量单位GB */ - @SerializedName("Size") - private Integer size; - - /** 快照状态,Normal:正常,Failed:失败,Creating:制作中 */ - @SerializedName("Status") - private String status; - - /** 磁盘类型,0:普通数据盘;1:普通系统盘;2:SSD数据盘;3:SSD系统盘;4:RSSD数据盘;5:RSSD系统盘。 */ - @SerializedName("DiskType") - private Integer diskType; - - /** 【已废弃】过期时间 */ - @SerializedName("ExpiredTime") - private Integer expiredTime; - - /** 快照描述 */ - @SerializedName("Comment") - private String comment; - - /** 对应磁盘是否处于可用状态 */ - @SerializedName("IsUDiskAvailable") - private Boolean isUDiskAvailable; - - /** 快照版本 */ - @SerializedName("Version") - private String version; - - /** 对应磁盘制作快照时所挂载的主机 */ - @SerializedName("UHostId") - private String uHostId; - - /** 【已废弃】是否是加密盘快照,是:"Yes", 否:"No" */ - @SerializedName("UKmsMode") - private String uKmsMode; - - /** 【已废弃】该快照的cmk id */ - @SerializedName("CmkId") - private String cmkId; - - /** 【已废弃】该快照的密文密钥 */ - @SerializedName("DataKey") - private String dataKey; - - /** 【已废弃】该快照cmk的状态, Enabled(正常),Disabled(失效),Deleted(删除),NoCmkId(非加密盘) */ - @SerializedName("CmkIdStatus") - private String cmkIdStatus; - - /** 【已废弃】cmk id 别名 */ - @SerializedName("CmkIdAlias") - private String cmkIdAlias; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getSnapshotId() { - return snapshotId; - } - - public void setSnapshotId(String snapshotId) { - this.snapshotId = snapshotId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getUDiskId() { - return uDiskId; - } - - public void setUDiskId(String uDiskId) { - this.uDiskId = uDiskId; - } - - public String getUDiskName() { - return uDiskName; - } - - public void setUDiskName(String uDiskName) { - this.uDiskName = uDiskName; - } - - public Integer getCreateTime() { - return createTime; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getSnapshotId() { + return snapshotId; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public String getName() { + return name; + } - public Integer getSize() { - return size; - } + public void setName(String name) { + this.name = name; + } + + public String getUDiskId() { + return uDiskId; + } - public void setSize(Integer size) { - this.size = size; - } + public void setUDiskId(String uDiskId) { + this.uDiskId = uDiskId; + } + + public String getUDiskName() { + return uDiskName; + } - public String getStatus() { - return status; - } + public void setUDiskName(String uDiskName) { + this.uDiskName = uDiskName; + } + + public Integer getCreateTime() { + return createTime; + } - public void setStatus(String status) { - this.status = status; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getSize() { + return size; + } - public Integer getDiskType() { - return diskType; - } + public void setSize(Integer size) { + this.size = size; + } + + public String getStatus() { + return status; + } - public void setDiskType(Integer diskType) { - this.diskType = diskType; - } + public void setStatus(String status) { + this.status = status; + } + + public Integer getDiskType() { + return diskType; + } - public Integer getExpiredTime() { - return expiredTime; - } + public void setDiskType(Integer diskType) { + this.diskType = diskType; + } + + public Integer getExpiredTime() { + return expiredTime; + } - public void setExpiredTime(Integer expiredTime) { - this.expiredTime = expiredTime; - } + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public String getComment() { + return comment; + } - public String getComment() { - return comment; - } + public void setComment(String comment) { + this.comment = comment; + } + + public Boolean getIsUDiskAvailable() { + return isUDiskAvailable; + } - public void setComment(String comment) { - this.comment = comment; - } + public void setIsUDiskAvailable(Boolean isUDiskAvailable) { + this.isUDiskAvailable = isUDiskAvailable; + } + + public String getVersion() { + return version; + } - public Boolean getIsUDiskAvailable() { - return isUDiskAvailable; - } + public void setVersion(String version) { + this.version = version; + } + + public String getUHostId() { + return uHostId; + } - public void setIsUDiskAvailable(Boolean isUDiskAvailable) { - this.isUDiskAvailable = isUDiskAvailable; - } + public void setUHostId(String uHostId) { + this.uHostId = uHostId; + } + + public String getUKmsMode() { + return uKmsMode; + } - public String getVersion() { - return version; - } + public void setUKmsMode(String uKmsMode) { + this.uKmsMode = uKmsMode; + } + + public String getCmkId() { + return cmkId; + } - public void setVersion(String version) { - this.version = version; - } + public void setCmkId(String cmkId) { + this.cmkId = cmkId; + } + + public String getDataKey() { + return dataKey; + } - public String getUHostId() { - return uHostId; - } + public void setDataKey(String dataKey) { + this.dataKey = dataKey; + } + + public String getCmkIdStatus() { + return cmkIdStatus; + } - public void setUHostId(String uHostId) { - this.uHostId = uHostId; - } + public void setCmkIdStatus(String cmkIdStatus) { + this.cmkIdStatus = cmkIdStatus; + } + + public String getCmkIdAlias() { + return cmkIdAlias; + } - public String getUKmsMode() { - return uKmsMode; + public void setCmkIdAlias(String cmkIdAlias) { + this.cmkIdAlias = cmkIdAlias; + } + } +} - public void setUKmsMode(String uKmsMode) { - this.uKmsMode = uKmsMode; - } - public String getCmkId() { - return cmkId; - } - public void setCmkId(String cmkId) { - this.cmkId = cmkId; - } - public String getDataKey() { - return dataKey; - } - public void setDataKey(String dataKey) { - this.dataKey = dataKey; - } - public String getCmkIdStatus() { - return cmkIdStatus; - } - public void setCmkIdStatus(String cmkIdStatus) { - this.cmkIdStatus = cmkIdStatus; - } - public String getCmkIdAlias() { - return cmkIdAlias; - } - public void setCmkIdAlias(String cmkIdAlias) { - this.cmkIdAlias = cmkIdAlias; - } - } -} diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskUpgradePriceRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskUpgradePriceRequest.java index 7a983a49..7af2155f 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskUpgradePriceRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskUpgradePriceRequest.java @@ -1,89 +1,139 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDiskUpgradePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** * 购买UDisk大小,单位:GB,普通数据盘:范围[1~8000];SSD数据盘:范围[1~8000];普通系统盘:范围[1~8000];SSD系统盘:范围[1~4000];RSSD数据盘:范围[1~32000];RSSD系统盘:范围[1~4000];高效数据盘:范围[1~32000];高效系统盘:范围[1~500]。 */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 升级目标UDisk ID */ + + + + /** + * 升级目标UDisk ID + */ @NotEmpty @UCloudParam("SourceId") private String sourceId; - - /** 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("UDataArkMode") private String uDataArkMode; - - /** 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No。仅支持查询开启快照服务的价格。 */ + + + + /** + * 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No。仅支持查询开启快照服务的价格。 + */ @UCloudParam("SnapshotService") private String snapshotService; - + + + /** - * 【已废弃】UDisk 类型: - * DataDisk(普通数据盘),SSDDataDisk(SSD数据盘),RSSDDataDisk(RSSD数据盘),EfficiencyDataDisk(高效数据盘),SystemDisk(普通系统盘),SSDSystemDisk(SSD系统盘),RSSDSystemDisk(RSSD系统盘),EfficiencySystemDisk(高效系统盘),默认值(DataDisk) + * 【已废弃】UDisk 类型: DataDisk(普通数据盘),SSDDataDisk(SSD数据盘),RSSDDataDisk(RSSD数据盘),EfficiencyDataDisk(高效数据盘),SystemDisk(普通系统盘),SSDSystemDisk(SSD系统盘),RSSDSystemDisk(RSSD系统盘),EfficiencySystemDisk(高效系统盘),默认值(DataDisk) */ @UCloudParam("DiskType") private String diskType; - - /** 【已废弃】云主机机型(V2.0),枚举值["N", "C", "G", "O", "OM"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 */ + + + + /** + * 【已废弃】云主机机型(V2.0),枚举值["N", "C", "G", "O", "OM"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + */ @UCloudParam("MachineType") private String machineType; - - /** 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 */ + + + + /** + * 快照服务备份策略。默认采用基础版套餐开通,“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链 + */ @UCloudParam("BackupMode") private String backupMode; - - /** BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 */ + + + + /** + * BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48 + */ @UCloudParam("Journal") private Integer journal; - - /** BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 */ + + + + /** + * BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96 + */ @UCloudParam("Hour") private Integer hour; - - /** BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 */ + + + + /** + * BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30 + */ @UCloudParam("Day") private Integer day; - + + public String getRegion() { return region; } @@ -91,7 +141,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -99,7 +149,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -107,7 +157,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getSize() { return size; } @@ -115,7 +165,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getSourceId() { return sourceId; } @@ -123,7 +173,7 @@ public String getSourceId() { public void setSourceId(String sourceId) { this.sourceId = sourceId; } - + public String getUDataArkMode() { return uDataArkMode; } @@ -131,7 +181,7 @@ public String getUDataArkMode() { public void setUDataArkMode(String uDataArkMode) { this.uDataArkMode = uDataArkMode; } - + public String getSnapshotService() { return snapshotService; } @@ -139,7 +189,7 @@ public String getSnapshotService() { public void setSnapshotService(String snapshotService) { this.snapshotService = snapshotService; } - + public String getDiskType() { return diskType; } @@ -147,7 +197,7 @@ public String getDiskType() { public void setDiskType(String diskType) { this.diskType = diskType; } - + public String getMachineType() { return machineType; } @@ -155,7 +205,7 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } - + public String getBackupMode() { return backupMode; } @@ -163,7 +213,7 @@ public String getBackupMode() { public void setBackupMode(String backupMode) { this.backupMode = backupMode; } - + public Integer getJournal() { return journal; } @@ -171,7 +221,7 @@ public Integer getJournal() { public void setJournal(Integer journal) { this.journal = journal; } - + public Integer getHour() { return hour; } @@ -179,7 +229,7 @@ public Integer getHour() { public void setHour(Integer hour) { this.hour = hour; } - + public Integer getDay() { return day; } @@ -187,4 +237,14 @@ public Integer getDay() { public void setDay(Integer day) { this.day = day; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskUpgradePriceResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskUpgradePriceResponse.java index 202dddb8..d2ef99d1 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskUpgradePriceResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DescribeUDiskUpgradePriceResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUDiskUpgradePriceResponse extends Response { - /** 价格 */ + + + /** + * 价格 + */ @SerializedName("Price") private Integer price; - - /** 用户折后价 (对应计费CustomPrice) */ + + + + /** + * 用户折后价 (对应计费CustomPrice) + */ @SerializedName("OriginalPrice") private Integer originalPrice; - + + public Integer getPrice() { return price; } @@ -35,7 +49,7 @@ public Integer getPrice() { public void setPrice(Integer price) { this.price = price; } - + public Integer getOriginalPrice() { return originalPrice; } @@ -43,4 +57,14 @@ public Integer getOriginalPrice() { public void setOriginalPrice(Integer originalPrice) { this.originalPrice = originalPrice; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachUDiskRequest.java index 39231c88..33663afc 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachUDiskRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachUDiskRequest.java @@ -1,51 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DetachUDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 需要卸载的UDisk实例ID */ + + + + /** + * 需要卸载的UDisk实例ID + */ @NotEmpty @UCloudParam("UDiskId") private String uDiskId; - - /** UHost实例ID。【UHostId和HostId必须选填一个,本字段即将废弃,建议使用HostId】 */ + + + + /** + * UHost实例ID。【UHostId和HostId必须选填一个,本字段即将废弃,建议使用HostId】 + */ @UCloudParam("UHostId") private String uHostId; - - /** Host实例ID */ + + + + /** + * Host实例ID + */ @UCloudParam("HostId") private String hostId; - + + public String getRegion() { return region; } @@ -53,7 +83,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -61,7 +91,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -69,7 +99,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDiskId() { return uDiskId; } @@ -77,7 +107,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public String getUHostId() { return uHostId; } @@ -85,7 +115,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getHostId() { return hostId; } @@ -93,4 +123,14 @@ public String getHostId() { public void setHostId(String hostId) { this.hostId = hostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachUDiskResponse.java index 8e9ac456..0a44a7b0 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachUDiskResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachUDiskResponse.java @@ -1,37 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DetachUDiskResponse extends Response { - /** 卸载的UHost实例ID。【即将废弃,建议使用HostId】 */ + + + /** + * 卸载的UHost实例ID。【即将废弃,建议使用HostId】 + */ @SerializedName("UHostId") private String uHostId; - - /** 卸载的UDisk实例ID */ + + + + /** + * 卸载的UDisk实例ID + */ @SerializedName("UDiskId") private String uDiskId; - - /** 卸载的Host实例ID */ + + + + /** + * 卸载的Host实例ID + */ @SerializedName("HostId") private String hostId; - + + public String getUHostId() { return uHostId; } @@ -39,7 +57,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getUDiskId() { return uDiskId; } @@ -47,7 +65,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public String getHostId() { return hostId; } @@ -55,4 +73,14 @@ public String getHostId() { public void setHostId(String hostId) { this.hostId = hostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RecoverUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RecoverUDiskRequest.java index e63d4dcb..dbaccbdb 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RecoverUDiskRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RecoverUDiskRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RecoverUDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 云硬盘资源ID */ + + + + /** + * 云硬盘资源ID + */ @NotEmpty @UCloudParam("UDiskId") private String uDiskId; - - /** Year , Month, Dynamic 默认: Dynamic */ + + + + /** + * Year , Month, Dynamic 默认: Dynamic + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长 默认: 1 */ + + + + /** + * 购买时长 默认: 1 + */ @UCloudParam("Quantity") private Integer quantity; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -62,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -70,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDiskId() { return uDiskId; } @@ -78,7 +108,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public String getChargeType() { return chargeType; } @@ -86,7 +116,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -94,4 +124,14 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RecoverUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RecoverUDiskResponse.java index 507f78fd..44276029 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RecoverUDiskResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RecoverUDiskResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RecoverUDiskResponse extends Response {} +public class RecoverUDiskResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RenameUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RenameUDiskRequest.java index 477a2c27..31f6e399 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RenameUDiskRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RenameUDiskRequest.java @@ -1,49 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RenameUDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 重命名的UDisk的Id */ + + + + /** + * 重命名的UDisk的Id + */ @NotEmpty @UCloudParam("UDiskId") private String uDiskId; - - /** 重命名UDisk的name */ + + + + /** + * 重命名UDisk的name + */ @NotEmpty @UCloudParam("UDiskName") private String uDiskName; - + + public String getRegion() { return region; } @@ -51,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -59,7 +85,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -67,7 +93,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDiskId() { return uDiskId; } @@ -75,7 +101,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public String getUDiskName() { return uDiskName; } @@ -83,4 +109,14 @@ public String getUDiskName() { public void setUDiskName(String uDiskName) { this.uDiskName = uDiskName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RenameUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RenameUDiskResponse.java index 9e7a1d63..535c75b1 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RenameUDiskResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RenameUDiskResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RenameUDiskResponse extends Response {} +public class RenameUDiskResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/ResizeUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/ResizeUDiskRequest.java index d3087596..2a1f9502 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/ResizeUDiskRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/ResizeUDiskRequest.java @@ -1,57 +1,91 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ResizeUDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** UDisk Id */ + + + + /** + * UDisk Id + */ @NotEmpty @UCloudParam("UDiskId") private String uDiskId; - - /** 调整后大小, 单位:GB,普通数据盘:范围[1~8000];SSD数据盘:范围[1~8000];RSSD数据盘:范围[1~32000]。 */ + + + + /** + * 调整后大小, 单位:GB,普通数据盘:范围[1~8000];SSD数据盘:范围[1~8000];RSSD数据盘:范围[1~32000]。 + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 云主机机型(V2.0),枚举值["N", "C", "G", "O", "OM"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 */ + + + + /** + * 云主机机型(V2.0),枚举值["N", "C", "G", "O", "OM"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + */ @UCloudParam("MachineType") private String machineType; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -59,7 +93,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -67,7 +101,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -75,7 +109,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDiskId() { return uDiskId; } @@ -83,7 +117,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public Integer getSize() { return size; } @@ -91,7 +125,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getMachineType() { return machineType; } @@ -99,7 +133,7 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } - + public String getCouponId() { return couponId; } @@ -107,4 +141,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/ResizeUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/ResizeUDiskResponse.java index 467911d0..28f7ffa7 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/ResizeUDiskResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/ResizeUDiskResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ResizeUDiskResponse extends Response {} +public class ResizeUDiskResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RestoreUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RestoreUDiskRequest.java index 01f6a413..6d5ce5cb 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RestoreUDiskRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RestoreUDiskRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RestoreUDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 需要恢复的盘ID */ + + + + /** + * 需要恢复的盘ID + */ @NotEmpty @UCloudParam("UDiskId") private String uDiskId; - - /** 从指定的快照恢复 */ + + + + /** + * 从指定的快照恢复 + */ @UCloudParam("SnapshotId") private String snapshotId; - - /** 指定从方舟恢复的备份时间点 */ + + + + /** + * 指定从方舟恢复的备份时间点 + */ @UCloudParam("SnapshotTime") private Integer snapshotTime; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -62,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -70,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDiskId() { return uDiskId; } @@ -78,7 +108,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public String getSnapshotId() { return snapshotId; } @@ -86,7 +116,7 @@ public String getSnapshotId() { public void setSnapshotId(String snapshotId) { this.snapshotId = snapshotId; } - + public Integer getSnapshotTime() { return snapshotTime; } @@ -94,4 +124,14 @@ public Integer getSnapshotTime() { public void setSnapshotTime(Integer snapshotTime) { this.snapshotTime = snapshotTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RestoreUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RestoreUDiskResponse.java index 321b209d..c3133545 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RestoreUDiskResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/RestoreUDiskResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RestoreUDiskResponse extends Response {} +public class RestoreUDiskResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/SetUDiskUDataArkModeRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/SetUDiskUDataArkModeRequest.java index 00495a3d..75155bd8 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/SetUDiskUDataArkModeRequest.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/SetUDiskUDataArkModeRequest.java @@ -1,55 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class SetUDiskUDataArkModeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 需要设置数据方舟的UDisk的Id */ + + + + /** + * 需要设置数据方舟的UDisk的Id + */ @NotEmpty @UCloudParam("UDiskId") private String uDiskId; - - /** 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No */ + + + + /** + * 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No + */ @UCloudParam("UDataArkMode") private String uDataArkMode; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -57,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -73,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDiskId() { return uDiskId; } @@ -81,7 +108,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public String getUDataArkMode() { return uDataArkMode; } @@ -89,7 +116,7 @@ public String getUDataArkMode() { public void setUDataArkMode(String uDataArkMode) { this.uDataArkMode = uDataArkMode; } - + public String getCouponId() { return couponId; } @@ -97,4 +124,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/SetUDiskUDataArkModeResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/SetUDiskUDataArkModeResponse.java index 572f93d6..ee72f78c 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/SetUDiskUDataArkModeResponse.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/SetUDiskUDataArkModeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udisk.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class SetUDiskUDataArkModeResponse extends Response {} +public class SetUDiskUDataArkModeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index 6d3b3361..c6ed5b28 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-udpn - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClient.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClient.java index 35618ec2..bd4a7779 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClient.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.udpn.client; @@ -17,106 +19,159 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.udpn.models.AllocateUDPNRequest; import cn.ucloud.udpn.models.AllocateUDPNResponse; + + + import cn.ucloud.udpn.models.DescribeUDPNRequest; import cn.ucloud.udpn.models.DescribeUDPNResponse; + + + import cn.ucloud.udpn.models.GetUDPNLineListRequest; import cn.ucloud.udpn.models.GetUDPNLineListResponse; + + + import cn.ucloud.udpn.models.GetUDPNPriceRequest; import cn.ucloud.udpn.models.GetUDPNPriceResponse; + + + import cn.ucloud.udpn.models.GetUDPNUpgradePriceRequest; import cn.ucloud.udpn.models.GetUDPNUpgradePriceResponse; + + + import cn.ucloud.udpn.models.ModifyUDPNBandwidthRequest; import cn.ucloud.udpn.models.ModifyUDPNBandwidthResponse; + + + import cn.ucloud.udpn.models.ReleaseUDPNRequest; import cn.ucloud.udpn.models.ReleaseUDPNResponse; -/** This client is used to call actions of **UDPN** service */ +/** + * This client is used to call actions of **UDPN** service + */ public class UDPNClient extends DefaultClient implements UDPNClientInterface { public UDPNClient(Config config, Credential credential) { super(config, credential); } - - /** - * AllocateUDPN - 分配 UDPN 专线 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AllocateUDPNResponse allocateUDPN(AllocateUDPNRequest request) throws UCloudException { - request.setAction("AllocateUDPN"); - return (AllocateUDPNResponse) this.invoke(request, AllocateUDPNResponse.class); - } - - /** - * DescribeUDPN - 描述 UDPN - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDPNResponse describeUDPN(DescribeUDPNRequest request) throws UCloudException { - request.setAction("DescribeUDPN"); - return (DescribeUDPNResponse) this.invoke(request, DescribeUDPNResponse.class); - } - - /** - * GetUDPNLineList - 获取专线线路列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUDPNLineListResponse getUDPNLineList(GetUDPNLineListRequest request) - throws UCloudException { - request.setAction("GetUDPNLineList"); - return (GetUDPNLineListResponse) this.invoke(request, GetUDPNLineListResponse.class); - } - - /** - * GetUDPNPrice - 获取 UDPN 价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUDPNPriceResponse getUDPNPrice(GetUDPNPriceRequest request) throws UCloudException { - request.setAction("GetUDPNPrice"); - return (GetUDPNPriceResponse) this.invoke(request, GetUDPNPriceResponse.class); - } - - /** - * GetUDPNUpgradePrice - 获取升级价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUDPNUpgradePriceResponse getUDPNUpgradePrice(GetUDPNUpgradePriceRequest request) - throws UCloudException { - request.setAction("GetUDPNUpgradePrice"); - return (GetUDPNUpgradePriceResponse) - this.invoke(request, GetUDPNUpgradePriceResponse.class); - } - - /** - * ModifyUDPNBandwidth - 修改带宽 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUDPNBandwidthResponse modifyUDPNBandwidth(ModifyUDPNBandwidthRequest request) - throws UCloudException { - request.setAction("ModifyUDPNBandwidth"); - return (ModifyUDPNBandwidthResponse) - this.invoke(request, ModifyUDPNBandwidthResponse.class); - } - - /** - * ReleaseUDPN - 释放 UDPN - * - * @param request Request object - * @throws UCloudException Exception - */ - public ReleaseUDPNResponse releaseUDPN(ReleaseUDPNRequest request) throws UCloudException { - request.setAction("ReleaseUDPN"); - return (ReleaseUDPNResponse) this.invoke(request, ReleaseUDPNResponse.class); - } + + + + + + + /** + * AllocateUDPN - 分配 UDPN 专线 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AllocateUDPNResponse allocateUDPN(AllocateUDPNRequest request) throws UCloudException { + request.setAction("AllocateUDPN"); + return (AllocateUDPNResponse) this.invoke(request, AllocateUDPNResponse.class); + } + + + + + + + /** + * DescribeUDPN - 描述 UDPN + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDPNResponse describeUDPN(DescribeUDPNRequest request) throws UCloudException { + request.setAction("DescribeUDPN"); + return (DescribeUDPNResponse) this.invoke(request, DescribeUDPNResponse.class); + } + + + + + + + /** + * GetUDPNLineList - 获取专线线路列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUDPNLineListResponse getUDPNLineList(GetUDPNLineListRequest request) throws UCloudException { + request.setAction("GetUDPNLineList"); + return (GetUDPNLineListResponse) this.invoke(request, GetUDPNLineListResponse.class); + } + + + + + + + /** + * GetUDPNPrice - 获取 UDPN 价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUDPNPriceResponse getUDPNPrice(GetUDPNPriceRequest request) throws UCloudException { + request.setAction("GetUDPNPrice"); + return (GetUDPNPriceResponse) this.invoke(request, GetUDPNPriceResponse.class); + } + + + + + + + /** + * GetUDPNUpgradePrice - 获取升级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUDPNUpgradePriceResponse getUDPNUpgradePrice(GetUDPNUpgradePriceRequest request) throws UCloudException { + request.setAction("GetUDPNUpgradePrice"); + return (GetUDPNUpgradePriceResponse) this.invoke(request, GetUDPNUpgradePriceResponse.class); + } + + + + + + + /** + * ModifyUDPNBandwidth - 修改带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDPNBandwidthResponse modifyUDPNBandwidth(ModifyUDPNBandwidthRequest request) throws UCloudException { + request.setAction("ModifyUDPNBandwidth"); + return (ModifyUDPNBandwidthResponse) this.invoke(request, ModifyUDPNBandwidthResponse.class); + } + + + + + + + /** + * ReleaseUDPN - 释放 UDPN + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReleaseUDPNResponse releaseUDPN(ReleaseUDPNRequest request) throws UCloudException { + request.setAction("ReleaseUDPN"); + return (ReleaseUDPNResponse) this.invoke(request, ReleaseUDPNResponse.class); + } } diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClientInterface.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClientInterface.java index 9b132ff8..6160452f 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClientInterface.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClientInterface.java @@ -1,38 +1,68 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.udpn.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.udpn.models.AllocateUDPNRequest; import cn.ucloud.udpn.models.AllocateUDPNResponse; + + + import cn.ucloud.udpn.models.DescribeUDPNRequest; import cn.ucloud.udpn.models.DescribeUDPNResponse; + + + import cn.ucloud.udpn.models.GetUDPNLineListRequest; import cn.ucloud.udpn.models.GetUDPNLineListResponse; + + + import cn.ucloud.udpn.models.GetUDPNPriceRequest; import cn.ucloud.udpn.models.GetUDPNPriceResponse; + + + import cn.ucloud.udpn.models.GetUDPNUpgradePriceRequest; import cn.ucloud.udpn.models.GetUDPNUpgradePriceResponse; + + + import cn.ucloud.udpn.models.ModifyUDPNBandwidthRequest; import cn.ucloud.udpn.models.ModifyUDPNBandwidthResponse; + + + import cn.ucloud.udpn.models.ReleaseUDPNRequest; import cn.ucloud.udpn.models.ReleaseUDPNResponse; -/** This client is used to call actions of **UDPN** service */ +/** + * This client is used to call actions of **UDPN** service + */ public interface UDPNClientInterface extends Client { - + + + + + + /** * AllocateUDPN - 分配 UDPN 专线 * @@ -40,7 +70,12 @@ public interface UDPNClientInterface extends Client { * @throws UCloudException Exception */ public AllocateUDPNResponse allocateUDPN(AllocateUDPNRequest request) throws UCloudException; - + + + + + + /** * DescribeUDPN - 描述 UDPN * @@ -48,16 +83,25 @@ public interface UDPNClientInterface extends Client { * @throws UCloudException Exception */ public DescribeUDPNResponse describeUDPN(DescribeUDPNRequest request) throws UCloudException; - + + + + + + /** * GetUDPNLineList - 获取专线线路列表 * * @param request Request object * @throws UCloudException Exception */ - public GetUDPNLineListResponse getUDPNLineList(GetUDPNLineListRequest request) - throws UCloudException; - + public GetUDPNLineListResponse getUDPNLineList(GetUDPNLineListRequest request) throws UCloudException; + + + + + + /** * GetUDPNPrice - 获取 UDPN 价格 * @@ -65,25 +109,38 @@ public GetUDPNLineListResponse getUDPNLineList(GetUDPNLineListRequest request) * @throws UCloudException Exception */ public GetUDPNPriceResponse getUDPNPrice(GetUDPNPriceRequest request) throws UCloudException; - + + + + + + /** * GetUDPNUpgradePrice - 获取升级价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUDPNUpgradePriceResponse getUDPNUpgradePrice(GetUDPNUpgradePriceRequest request) - throws UCloudException; - + public GetUDPNUpgradePriceResponse getUDPNUpgradePrice(GetUDPNUpgradePriceRequest request) throws UCloudException; + + + + + + /** * ModifyUDPNBandwidth - 修改带宽 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUDPNBandwidthResponse modifyUDPNBandwidth(ModifyUDPNBandwidthRequest request) - throws UCloudException; - + public ModifyUDPNBandwidthResponse modifyUDPNBandwidth(ModifyUDPNBandwidthRequest request) throws UCloudException; + + + + + + /** * ReleaseUDPN - 释放 UDPN * diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNRequest.java index 2b15721a..d31eaa8c 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNRequest.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNRequest.java @@ -1,73 +1,106 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AllocateUDPNRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** - * 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, - * 洛杉矶:us-ca, 华盛顿:us-ws, 东京:jpn-tky + * 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-ca, 华盛顿:us-ws, 东京:jpn-tky */ @NotEmpty @UCloudParam("Peer1") private String peer1; - + + + /** - * 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, - * 洛杉矶:us-ca, 华盛顿:us-ws, 东京:jpn-tky + * 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-ca, 华盛顿:us-ws, 东京:jpn-tky */ @NotEmpty @UCloudParam("Peer2") private String peer2; - - /** 带宽 */ + + + + /** + * 带宽 + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - - /** 计费类型,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费 */ + + + + /** + * 计费类型,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 计费时长,默认 1 */ + + + + /** + * 计费时长,默认 1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 计费模式. 枚举值:"Traffic", 流量计费模式; 否则 带宽计费模式; */ + + + + /** + * 计费模式. 枚举值:"Traffic", 流量计费模式; 否则 带宽计费模式; + */ @UCloudParam("PayMode") private String payMode; - - /** 代金劵 */ + + + + /** + * 代金劵 + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -75,7 +108,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -83,7 +116,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPeer1() { return peer1; } @@ -91,7 +124,7 @@ public String getPeer1() { public void setPeer1(String peer1) { this.peer1 = peer1; } - + public String getPeer2() { return peer2; } @@ -99,7 +132,7 @@ public String getPeer2() { public void setPeer2(String peer2) { this.peer2 = peer2; } - + public Integer getBandwidth() { return bandwidth; } @@ -107,7 +140,7 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } - + public String getChargeType() { return chargeType; } @@ -115,7 +148,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -123,7 +156,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getPayMode() { return payMode; } @@ -131,7 +164,7 @@ public String getPayMode() { public void setPayMode(String payMode) { this.payMode = payMode; } - + public String getCouponId() { return couponId; } @@ -139,4 +172,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNResponse.java index c9640087..fc3b10f2 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNResponse.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class AllocateUDPNResponse extends Response { - /** 资源名称 */ + + + /** + * 资源名称 + */ @SerializedName("UDPNId") private String udpnId; - + + public String getUDPNId() { return udpnId; } @@ -31,4 +41,14 @@ public String getUDPNId() { public void setUDPNId(String udpnId) { this.udpnId = udpnId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNRequest.java index 646dbf37..5c7b736a 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNRequest.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNRequest.java @@ -1,47 +1,71 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class DescribeUDPNRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 申请到的 UDPN 资源 ID。若为空,则查询该用户在机房所有的专线信息。非默认项目资源,需填写ProjectId */ + + + + /** + * 申请到的 UDPN 资源 ID。若为空,则查询该用户在机房所有的专线信息。非默认项目资源,需填写ProjectId + */ @UCloudParam("UDPNId") private String udpnId; - - /** 列表起始位置偏移量,默认为 0 */ + + + + /** + * 列表起始位置偏移量,默认为 0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为 20 */ + + + + /** + * 返回数据长度,默认为 20 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -49,7 +73,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +81,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDPNId() { return udpnId; } @@ -65,7 +89,7 @@ public String getUDPNId() { public void setUDPNId(String udpnId) { this.udpnId = udpnId; } - + public Integer getOffset() { return offset; } @@ -73,7 +97,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -81,4 +105,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNResponse.java index 718ab403..5ad4836c 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNResponse.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDPNResponse extends Response { - /** 查询到的总数量 */ + + + /** + * 查询到的总数量 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** UDPN详情 */ + + + + /** + * UDPN详情 + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,91 +57,129 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UDPNData extends Response { + + + /** + * UDPN 资源短 ID + */ + @SerializedName("UDPNId") + private String udpnId; + + + + /** + * 可用区域 1 + */ + @SerializedName("Peer1") + private String peer1; + + + + /** + * 可用区域 2 + */ + @SerializedName("Peer2") + private String peer2; + + + + /** + * 计费类型 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 带宽 + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * unix 时间戳 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * unix 时间戳 到期时间 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + public String getUDPNId() { + return udpnId; + } - public static class UDPNData extends Response { - - /** UDPN 资源短 ID */ - @SerializedName("UDPNId") - private String udpnId; - - /** 可用区域 1 */ - @SerializedName("Peer1") - private String peer1; - - /** 可用区域 2 */ - @SerializedName("Peer2") - private String peer2; - - /** 计费类型 */ - @SerializedName("ChargeType") - private String chargeType; - - /** 带宽 */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - /** unix 时间戳 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; + public void setUDPNId(String udpnId) { + this.udpnId = udpnId; + } + + public String getPeer1() { + return peer1; + } - /** unix 时间戳 到期时间 */ - @SerializedName("ExpireTime") - private Integer expireTime; + public void setPeer1(String peer1) { + this.peer1 = peer1; + } + + public String getPeer2() { + return peer2; + } - public String getUDPNId() { - return udpnId; - } + public void setPeer2(String peer2) { + this.peer2 = peer2; + } + + public String getChargeType() { + return chargeType; + } - public void setUDPNId(String udpnId) { - this.udpnId = udpnId; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getBandwidth() { + return bandwidth; + } - public String getPeer1() { - return peer1; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public Integer getCreateTime() { + return createTime; + } - public void setPeer1(String peer1) { - this.peer1 = peer1; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public String getPeer2() { - return peer2; + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + } +} - public void setPeer2(String peer2) { - this.peer2 = peer2; - } - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Integer getBandwidth() { - return bandwidth; - } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getExpireTime() { - return expireTime; - } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } - } -} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListRequest.java index 7c8c86ef..bf0a9616 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListRequest.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListRequest.java @@ -1,32 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class GetUDPNLineListRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @UCloudParam("Region") private String region; - - /** */ + + + + /** + * + */ @UCloudParam("ProjectId") private String projectId; - + + public String getRegion() { return region; } @@ -34,7 +49,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -42,4 +57,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListResponse.java index b61c1095..451284a2 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListResponse.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUDPNLineListResponse extends Response { - /** DataSet中的元素个数 */ + + + /** + * DataSet中的元素个数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 当前支持的专线线路详细信息,详见UDPNLineSet */ + + + + /** + * 当前支持的专线线路详细信息,详见UDPNLineSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,49 +57,65 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UDPNLineSet extends Response { + + + /** + * 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky + */ + @SerializedName("LocalRegion") + private String localRegion; + + + + /** + * 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky + */ + @SerializedName("RemoteRegion") + private String remoteRegion; + + + + /** + * 线路带宽上限,单位 M + */ + @SerializedName("BandwidthUpperLimit") + private Integer bandwidthUpperLimit; + + + public String getLocalRegion() { + return localRegion; + } - public static class UDPNLineSet extends Response { + public void setLocalRegion(String localRegion) { + this.localRegion = localRegion; + } + + public String getRemoteRegion() { + return remoteRegion; + } + + public void setRemoteRegion(String remoteRegion) { + this.remoteRegion = remoteRegion; + } + + public Integer getBandwidthUpperLimit() { + return bandwidthUpperLimit; + } + + public void setBandwidthUpperLimit(Integer bandwidthUpperLimit) { + this.bandwidthUpperLimit = bandwidthUpperLimit; + } + + } +} - /** - * 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, - * 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky - */ - @SerializedName("LocalRegion") - private String localRegion; - /** - * 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, - * 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky - */ - @SerializedName("RemoteRegion") - private String remoteRegion; - /** 线路带宽上限,单位 M */ - @SerializedName("BandwidthUpperLimit") - private Integer bandwidthUpperLimit; - public String getLocalRegion() { - return localRegion; - } - public void setLocalRegion(String localRegion) { - this.localRegion = localRegion; - } - public String getRemoteRegion() { - return remoteRegion; - } - public void setRemoteRegion(String remoteRegion) { - this.remoteRegion = remoteRegion; - } - public Integer getBandwidthUpperLimit() { - return bandwidthUpperLimit; - } - public void setBandwidthUpperLimit(Integer bandwidthUpperLimit) { - this.bandwidthUpperLimit = bandwidthUpperLimit; - } - } -} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceRequest.java index d1c0b396..3c09d7c5 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceRequest.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceRequest.java @@ -1,62 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUDPNPriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @UCloudParam("Region") private String region; - + + + /** - * 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, - * 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky + * 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky */ @NotEmpty @UCloudParam("Peer1") private String peer1; - + + + /** - * 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, - * 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky + * 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky */ @NotEmpty @UCloudParam("Peer2") private String peer2; - - /** 带宽信息 */ + + + + /** + * 带宽信息 + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - - /** 计费类型 */ + + + + /** + * 计费类型 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长 */ + + + + /** + * 购买时长 + */ @UCloudParam("Quantity") private Integer quantity; - - /** PayMode,枚举值,Bandwidth:带宽;Traffic:流量 默认不填写:带宽 */ + + + + /** + * PayMode,枚举值,Bandwidth:带宽;Traffic:流量 默认不填写:带宽 + */ @UCloudParam("PayMode") private String payMode; - + + public String getRegion() { return region; } @@ -64,7 +92,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getPeer1() { return peer1; } @@ -72,7 +100,7 @@ public String getPeer1() { public void setPeer1(String peer1) { this.peer1 = peer1; } - + public String getPeer2() { return peer2; } @@ -80,7 +108,7 @@ public String getPeer2() { public void setPeer2(String peer2) { this.peer2 = peer2; } - + public Integer getBandwidth() { return bandwidth; } @@ -88,7 +116,7 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } - + public String getChargeType() { return chargeType; } @@ -96,7 +124,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -104,7 +132,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getPayMode() { return payMode; } @@ -112,4 +140,14 @@ public String getPayMode() { public void setPayMode(String payMode) { this.payMode = payMode; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceResponse.java index 9f16de18..ff80125e 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceResponse.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUDPNPriceResponse extends Response { - /** 资源有效期 unix 时间戳 */ + + + /** + * 资源有效期 unix 时间戳 + */ @SerializedName("PurchaseValue") private Integer purchaseValue; - - /** 专线价格 */ + + + + /** + * 专线价格 + */ @SerializedName("Price") private Double price; - + + public Integer getPurchaseValue() { return purchaseValue; } @@ -35,7 +49,7 @@ public Integer getPurchaseValue() { public void setPurchaseValue(Integer purchaseValue) { this.purchaseValue = purchaseValue; } - + public Double getPrice() { return price; } @@ -43,4 +57,14 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceRequest.java index f375d435..9d6502c3 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceRequest.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUDPNUpgradePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 专线带宽资源 Id */ + + + + /** + * 专线带宽资源 Id + */ @NotEmpty @UCloudParam("UDPNId") private String udpnId; - - /** 带宽 */ + + + + /** + * 带宽 + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -53,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDPNId() { return udpnId; } @@ -61,7 +83,7 @@ public String getUDPNId() { public void setUDPNId(String udpnId) { this.udpnId = udpnId; } - + public Integer getBandwidth() { return bandwidth; } @@ -69,4 +91,14 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceResponse.java index 025e6004..b6c98fc3 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceResponse.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUDPNUpgradePriceResponse extends Response { - /** 升级后的价格 */ + + + /** + * 升级后的价格 + */ @SerializedName("Price") private Double price; - + + public Double getPrice() { return price; } @@ -31,4 +41,14 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthRequest.java index e43dd8aa..9325dcd6 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthRequest.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUDPNBandwidthRequest extends Request { - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** UDPN Id */ + + + + /** + * UDPN Id + */ @NotEmpty @UCloudParam("UDPNId") private String udpnId; - - /** 调整后专线带宽, 单位为Mbps,取值范围为大于等于2且小于等于1000([2-1000])的整数 */ + + + + /** + * 调整后专线带宽, 单位为Mbps,取值范围为大于等于2且小于等于1000([2-1000])的整数 + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - - /** 代金劵 ID */ + + + + /** + * 代金劵 ID + */ @UCloudParam("CouponId") private String couponId; - + + public String getProjectId() { return projectId; } @@ -45,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDPNId() { return udpnId; } @@ -53,7 +75,7 @@ public String getUDPNId() { public void setUDPNId(String udpnId) { this.udpnId = udpnId; } - + public Integer getBandwidth() { return bandwidth; } @@ -61,7 +83,7 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } - + public String getCouponId() { return couponId; } @@ -69,4 +91,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthResponse.java index d269cd0f..10091e79 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthResponse.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUDPNBandwidthResponse extends Response {} +public class ModifyUDPNBandwidthResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNRequest.java index a3a019f2..4217967f 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNRequest.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNRequest.java @@ -1,38 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ReleaseUDPNRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** UDPN 资源 Id */ + + + + /** + * UDPN 资源 Id + */ @NotEmpty @UCloudParam("UDPNId") private String udpnId; - + + public String getRegion() { return region; } @@ -40,7 +58,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -48,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUDPNId() { return udpnId; } @@ -56,4 +74,14 @@ public String getUDPNId() { public void setUDPNId(String udpnId) { this.udpnId = udpnId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNResponse.java index ea925104..94536279 100644 --- a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNResponse.java +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.udpn.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ReleaseUDPNResponse extends Response {} +public class ReleaseUDPNResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index 54f4558c..69ec41ee 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-uec - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/client/UECClient.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/client/UECClient.java index db20ecc7..b0edc429 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/client/UECClient.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/client/UECClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uec.client; @@ -17,606 +19,894 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.uec.models.BindUEcFirewallRequest; import cn.ucloud.uec.models.BindUEcFirewallResponse; + + + import cn.ucloud.uec.models.CreateUEcCustomImageRequest; import cn.ucloud.uec.models.CreateUEcCustomImageResponse; + + + import cn.ucloud.uec.models.CreateUEcFirewallRequest; import cn.ucloud.uec.models.CreateUEcFirewallResponse; + + + import cn.ucloud.uec.models.CreateUEcHolderRequest; import cn.ucloud.uec.models.CreateUEcHolderResponse; + + + import cn.ucloud.uec.models.CreateUEcSubnetRequest; import cn.ucloud.uec.models.CreateUEcSubnetResponse; + + + import cn.ucloud.uec.models.CreateUEcVHostRequest; import cn.ucloud.uec.models.CreateUEcVHostResponse; + + + import cn.ucloud.uec.models.DeleteUEcCustomImageRequest; import cn.ucloud.uec.models.DeleteUEcCustomImageResponse; + + + import cn.ucloud.uec.models.DeleteUEcHolderRequest; import cn.ucloud.uec.models.DeleteUEcHolderResponse; + + + import cn.ucloud.uec.models.DeleteUEcSubnetRequest; import cn.ucloud.uec.models.DeleteUEcSubnetResponse; + + + import cn.ucloud.uec.models.DeleteUEcVHostRequest; import cn.ucloud.uec.models.DeleteUEcVHostResponse; + + + import cn.ucloud.uec.models.DescribeUEcFirewallRequest; +import cn.ucloud.uec.models.DescribeUEcFirewallResponse; + + + import cn.ucloud.uec.models.DescribeUEcFirewallResourceRequest; import cn.ucloud.uec.models.DescribeUEcFirewallResourceResponse; -import cn.ucloud.uec.models.DescribeUEcFirewallResponse; -import cn.ucloud.uec.models.DescribeUEcHolderIDCRequest; -import cn.ucloud.uec.models.DescribeUEcHolderIDCResponse; + + + import cn.ucloud.uec.models.DescribeUEcHolderRequest; import cn.ucloud.uec.models.DescribeUEcHolderResponse; + + + +import cn.ucloud.uec.models.DescribeUEcHolderIDCRequest; +import cn.ucloud.uec.models.DescribeUEcHolderIDCResponse; + + + import cn.ucloud.uec.models.DescribeUEcIDCRequest; import cn.ucloud.uec.models.DescribeUEcIDCResponse; + + + import cn.ucloud.uec.models.DescribeUEcSubnetRequest; import cn.ucloud.uec.models.DescribeUEcSubnetResponse; -import cn.ucloud.uec.models.DescribeUEcVHostISPRequest; -import cn.ucloud.uec.models.DescribeUEcVHostISPResponse; + + + import cn.ucloud.uec.models.DescribeUEcVHostRequest; import cn.ucloud.uec.models.DescribeUEcVHostResponse; + + + +import cn.ucloud.uec.models.DescribeUEcVHostISPRequest; +import cn.ucloud.uec.models.DescribeUEcVHostISPResponse; + + + import cn.ucloud.uec.models.GetUEcHolderLogRequest; import cn.ucloud.uec.models.GetUEcHolderLogResponse; + + + import cn.ucloud.uec.models.GetUEcHolderMetricsRequest; import cn.ucloud.uec.models.GetUEcHolderMetricsResponse; + + + import cn.ucloud.uec.models.GetUEcIDCCutInfoRequest; import cn.ucloud.uec.models.GetUEcIDCCutInfoResponse; + + + import cn.ucloud.uec.models.GetUEcIDCVHostDataRequest; import cn.ucloud.uec.models.GetUEcIDCVHostDataResponse; + + + import cn.ucloud.uec.models.GetUEcImageRequest; import cn.ucloud.uec.models.GetUEcImageResponse; + + + import cn.ucloud.uec.models.GetUEcPodPriceRequest; import cn.ucloud.uec.models.GetUEcPodPriceResponse; + + + import cn.ucloud.uec.models.GetUEcUpgradePriceRequest; import cn.ucloud.uec.models.GetUEcUpgradePriceResponse; + + + import cn.ucloud.uec.models.GetUEcVHostDataRequest; import cn.ucloud.uec.models.GetUEcVHostDataResponse; + + + import cn.ucloud.uec.models.GetUEcVHostPriceRequest; import cn.ucloud.uec.models.GetUEcVHostPriceResponse; + + + import cn.ucloud.uec.models.ImportUEcCustomImageRequest; import cn.ucloud.uec.models.ImportUEcCustomImageResponse; + + + import cn.ucloud.uec.models.LoginUEcDockerRequest; import cn.ucloud.uec.models.LoginUEcDockerResponse; + + + import cn.ucloud.uec.models.ModifyUEcBandwidthRequest; import cn.ucloud.uec.models.ModifyUEcBandwidthResponse; + + + import cn.ucloud.uec.models.ModifyUEcHolderNameRequest; import cn.ucloud.uec.models.ModifyUEcHolderNameResponse; + + + import cn.ucloud.uec.models.ModifyUEcImageNameRequest; import cn.ucloud.uec.models.ModifyUEcImageNameResponse; + + + import cn.ucloud.uec.models.PoweroffUEcVHostRequest; import cn.ucloud.uec.models.PoweroffUEcVHostResponse; + + + import cn.ucloud.uec.models.ReinstallUEcVHostRequest; import cn.ucloud.uec.models.ReinstallUEcVHostResponse; + + + import cn.ucloud.uec.models.RestartUEcHolderRequest; import cn.ucloud.uec.models.RestartUEcHolderResponse; + + + import cn.ucloud.uec.models.RestartUEcVHostRequest; import cn.ucloud.uec.models.RestartUEcVHostResponse; + + + import cn.ucloud.uec.models.StartUEcVHostRequest; import cn.ucloud.uec.models.StartUEcVHostResponse; + + + import cn.ucloud.uec.models.StopUEcVHostRequest; import cn.ucloud.uec.models.StopUEcVHostResponse; + + + import cn.ucloud.uec.models.UnBindUEcFirewallRequest; import cn.ucloud.uec.models.UnBindUEcFirewallResponse; -import cn.ucloud.uec.models.UpdateUEcFirewallAttributeRequest; -import cn.ucloud.uec.models.UpdateUEcFirewallAttributeResponse; + + + import cn.ucloud.uec.models.UpdateUEcFirewallRequest; import cn.ucloud.uec.models.UpdateUEcFirewallResponse; + + + +import cn.ucloud.uec.models.UpdateUEcFirewallAttributeRequest; +import cn.ucloud.uec.models.UpdateUEcFirewallAttributeResponse; + + + import cn.ucloud.uec.models.UpdateUEcSubnetRequest; import cn.ucloud.uec.models.UpdateUEcSubnetResponse; -/** This client is used to call actions of **UEC** service */ +/** + * This client is used to call actions of **UEC** service + */ public class UECClient extends DefaultClient implements UECClientInterface { public UECClient(Config config, Credential credential) { super(config, credential); } - - /** - * BindUEcFirewall - 绑定防火墙 - * - * @param request Request object - * @throws UCloudException Exception - */ - public BindUEcFirewallResponse bindUEcFirewall(BindUEcFirewallRequest request) - throws UCloudException { - request.setAction("BindUEcFirewall"); - return (BindUEcFirewallResponse) this.invoke(request, BindUEcFirewallResponse.class); - } - - /** - * CreateUEcCustomImage - 创建自制镜像 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUEcCustomImageResponse createUEcCustomImage(CreateUEcCustomImageRequest request) - throws UCloudException { - request.setAction("CreateUEcCustomImage"); - return (CreateUEcCustomImageResponse) - this.invoke(request, CreateUEcCustomImageResponse.class); - } - - /** - * CreateUEcFirewall - 创建外网防火墙 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUEcFirewallResponse createUEcFirewall(CreateUEcFirewallRequest request) - throws UCloudException { - request.setAction("CreateUEcFirewall"); - return (CreateUEcFirewallResponse) this.invoke(request, CreateUEcFirewallResponse.class); - } - - /** - * CreateUEcHolder - 创建容器组 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUEcHolderResponse createUEcHolder(CreateUEcHolderRequest request) - throws UCloudException { - request.setAction("CreateUEcHolder"); - return (CreateUEcHolderResponse) this.invoke(request, CreateUEcHolderResponse.class); - } - - /** - * CreateUEcSubnet - 创建子网 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUEcSubnetResponse createUEcSubnet(CreateUEcSubnetRequest request) - throws UCloudException { - request.setAction("CreateUEcSubnet"); - return (CreateUEcSubnetResponse) this.invoke(request, CreateUEcSubnetResponse.class); - } - - /** - * CreateUEcVHost - 创建虚拟机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUEcVHostResponse createUEcVHost(CreateUEcVHostRequest request) - throws UCloudException { - request.setAction("CreateUEcVHost"); - return (CreateUEcVHostResponse) this.invoke(request, CreateUEcVHostResponse.class); - } - - /** - * DeleteUEcCustomImage - 删除UEC客户自定义镜像 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUEcCustomImageResponse deleteUEcCustomImage(DeleteUEcCustomImageRequest request) - throws UCloudException { - request.setAction("DeleteUEcCustomImage"); - return (DeleteUEcCustomImageResponse) - this.invoke(request, DeleteUEcCustomImageResponse.class); - } - - /** - * DeleteUEcHolder - 删除容器组 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUEcHolderResponse deleteUEcHolder(DeleteUEcHolderRequest request) - throws UCloudException { - request.setAction("DeleteUEcHolder"); - return (DeleteUEcHolderResponse) this.invoke(request, DeleteUEcHolderResponse.class); - } - - /** - * DeleteUEcSubnet - 删除子网 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUEcSubnetResponse deleteUEcSubnet(DeleteUEcSubnetRequest request) - throws UCloudException { - request.setAction("DeleteUEcSubnet"); - return (DeleteUEcSubnetResponse) this.invoke(request, DeleteUEcSubnetResponse.class); - } - - /** - * DeleteUEcVHost - 删除vhost虚拟机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUEcVHostResponse deleteUEcVHost(DeleteUEcVHostRequest request) - throws UCloudException { - request.setAction("DeleteUEcVHost"); - return (DeleteUEcVHostResponse) this.invoke(request, DeleteUEcVHostResponse.class); - } - - /** - * DescribeUEcFirewall - 获取防火墙信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUEcFirewallResponse describeUEcFirewall(DescribeUEcFirewallRequest request) - throws UCloudException { - request.setAction("DescribeUEcFirewall"); - return (DescribeUEcFirewallResponse) - this.invoke(request, DescribeUEcFirewallResponse.class); - } - - /** - * DescribeUEcFirewallResource - 防火墙绑定的资源列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUEcFirewallResourceResponse describeUEcFirewallResource( - DescribeUEcFirewallResourceRequest request) throws UCloudException { - request.setAction("DescribeUEcFirewallResource"); - return (DescribeUEcFirewallResourceResponse) - this.invoke(request, DescribeUEcFirewallResourceResponse.class); - } - - /** - * DescribeUEcHolder - 获得容器组信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUEcHolderResponse describeUEcHolder(DescribeUEcHolderRequest request) - throws UCloudException { - request.setAction("DescribeUEcHolder"); - return (DescribeUEcHolderResponse) this.invoke(request, DescribeUEcHolderResponse.class); - } - - /** - * DescribeUEcHolderIDC - 获取容器组机房信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUEcHolderIDCResponse describeUEcHolderIDC(DescribeUEcHolderIDCRequest request) - throws UCloudException { - request.setAction("DescribeUEcHolderIDC"); - return (DescribeUEcHolderIDCResponse) - this.invoke(request, DescribeUEcHolderIDCResponse.class); - } - - /** - * DescribeUEcIDC - 获取IDC机房列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUEcIDCResponse describeUEcIDC(DescribeUEcIDCRequest request) - throws UCloudException { - request.setAction("DescribeUEcIDC"); - return (DescribeUEcIDCResponse) this.invoke(request, DescribeUEcIDCResponse.class); - } - - /** - * DescribeUEcSubnet - 获取子网列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUEcSubnetResponse describeUEcSubnet(DescribeUEcSubnetRequest request) - throws UCloudException { - request.setAction("DescribeUEcSubnet"); - return (DescribeUEcSubnetResponse) this.invoke(request, DescribeUEcSubnetResponse.class); - } - - /** - * DescribeUEcVHost - 获取虚拟机列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUEcVHostResponse describeUEcVHost(DescribeUEcVHostRequest request) - throws UCloudException { - request.setAction("DescribeUEcVHost"); - return (DescribeUEcVHostResponse) this.invoke(request, DescribeUEcVHostResponse.class); - } - - /** - * DescribeUEcVHostISP - 获取虚拟机运营商信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUEcVHostISPResponse describeUEcVHostISP(DescribeUEcVHostISPRequest request) - throws UCloudException { - request.setAction("DescribeUEcVHostISP"); - return (DescribeUEcVHostISPResponse) - this.invoke(request, DescribeUEcVHostISPResponse.class); - } - - /** - * GetUEcHolderLog - 获取容器日志 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUEcHolderLogResponse getUEcHolderLog(GetUEcHolderLogRequest request) - throws UCloudException { - request.setAction("GetUEcHolderLog"); - return (GetUEcHolderLogResponse) this.invoke(request, GetUEcHolderLogResponse.class); - } - - /** - * GetUEcHolderMetrics - 获取容器监控数据 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUEcHolderMetricsResponse getUEcHolderMetrics(GetUEcHolderMetricsRequest request) - throws UCloudException { - request.setAction("GetUEcHolderMetrics"); - return (GetUEcHolderMetricsResponse) - this.invoke(request, GetUEcHolderMetricsResponse.class); - } - - /** - * GetUEcIDCCutInfo - 获得机房割接信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUEcIDCCutInfoResponse getUEcIDCCutInfo(GetUEcIDCCutInfoRequest request) - throws UCloudException { - request.setAction("GetUEcIDCCutInfo"); - return (GetUEcIDCCutInfoResponse) this.invoke(request, GetUEcIDCCutInfoResponse.class); - } - - /** - * GetUEcIDCVHostData - 获取机房虚拟机监控数据 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUEcIDCVHostDataResponse getUEcIDCVHostData(GetUEcIDCVHostDataRequest request) - throws UCloudException { - request.setAction("GetUEcIDCVHostData"); - return (GetUEcIDCVHostDataResponse) this.invoke(request, GetUEcIDCVHostDataResponse.class); - } - - /** - * GetUEcImage - 获取镜像列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUEcImageResponse getUEcImage(GetUEcImageRequest request) throws UCloudException { - request.setAction("GetUEcImage"); - return (GetUEcImageResponse) this.invoke(request, GetUEcImageResponse.class); - } - - /** - * GetUEcPodPrice - 获得容器组价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUEcPodPriceResponse getUEcPodPrice(GetUEcPodPriceRequest request) - throws UCloudException { - request.setAction("GetUEcPodPrice"); - return (GetUEcPodPriceResponse) this.invoke(request, GetUEcPodPriceResponse.class); - } - - /** - * GetUEcUpgradePrice - 获取虚拟机调整差价 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUEcUpgradePriceResponse getUEcUpgradePrice(GetUEcUpgradePriceRequest request) - throws UCloudException { - request.setAction("GetUEcUpgradePrice"); - return (GetUEcUpgradePriceResponse) this.invoke(request, GetUEcUpgradePriceResponse.class); - } - - /** - * GetUEcVHostData - 获取虚拟机监控数据 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUEcVHostDataResponse getUEcVHostData(GetUEcVHostDataRequest request) - throws UCloudException { - request.setAction("GetUEcVHostData"); - return (GetUEcVHostDataResponse) this.invoke(request, GetUEcVHostDataResponse.class); - } - - /** - * GetUEcVHostPrice - 获取虚拟机价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUEcVHostPriceResponse getUEcVHostPrice(GetUEcVHostPriceRequest request) - throws UCloudException { - request.setAction("GetUEcVHostPrice"); - return (GetUEcVHostPriceResponse) this.invoke(request, GetUEcVHostPriceResponse.class); - } - - /** - * ImportUEcCustomImage - 导入自定义镜像 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ImportUEcCustomImageResponse importUEcCustomImage(ImportUEcCustomImageRequest request) - throws UCloudException { - request.setAction("ImportUEcCustomImage"); - return (ImportUEcCustomImageResponse) - this.invoke(request, ImportUEcCustomImageResponse.class); - } - - /** - * LoginUEcDocker - 登录容器 - * - * @param request Request object - * @throws UCloudException Exception - */ - public LoginUEcDockerResponse loginUEcDocker(LoginUEcDockerRequest request) - throws UCloudException { - request.setAction("LoginUEcDocker"); - return (LoginUEcDockerResponse) this.invoke(request, LoginUEcDockerResponse.class); - } - - /** - * ModifyUEcBandwidth - 修改节点带宽限制 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUEcBandwidthResponse modifyUEcBandwidth(ModifyUEcBandwidthRequest request) - throws UCloudException { - request.setAction("ModifyUEcBandwidth"); - return (ModifyUEcBandwidthResponse) this.invoke(request, ModifyUEcBandwidthResponse.class); - } - - /** - * ModifyUEcHolderName - 修改容器组名称 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUEcHolderNameResponse modifyUEcHolderName(ModifyUEcHolderNameRequest request) - throws UCloudException { - request.setAction("ModifyUEcHolderName"); - return (ModifyUEcHolderNameResponse) - this.invoke(request, ModifyUEcHolderNameResponse.class); - } - - /** - * ModifyUEcImageName - 修改镜像名称 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUEcImageNameResponse modifyUEcImageName(ModifyUEcImageNameRequest request) - throws UCloudException { - request.setAction("ModifyUEcImageName"); - return (ModifyUEcImageNameResponse) this.invoke(request, ModifyUEcImageNameResponse.class); - } - - /** - * PoweroffUEcVHost - 虚拟机断电 - * - * @param request Request object - * @throws UCloudException Exception - */ - public PoweroffUEcVHostResponse poweroffUEcVHost(PoweroffUEcVHostRequest request) - throws UCloudException { - request.setAction("PoweroffUEcVHost"); - return (PoweroffUEcVHostResponse) this.invoke(request, PoweroffUEcVHostResponse.class); - } - - /** - * ReinstallUEcVHost - 虚拟机重装系统 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ReinstallUEcVHostResponse reinstallUEcVHost(ReinstallUEcVHostRequest request) - throws UCloudException { - request.setAction("ReinstallUEcVHost"); - return (ReinstallUEcVHostResponse) this.invoke(request, ReinstallUEcVHostResponse.class); - } - - /** - * RestartUEcHolder - 重启容器组 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RestartUEcHolderResponse restartUEcHolder(RestartUEcHolderRequest request) - throws UCloudException { - request.setAction("RestartUEcHolder"); - return (RestartUEcHolderResponse) this.invoke(request, RestartUEcHolderResponse.class); - } - - /** - * RestartUEcVHost - 重启虚拟机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RestartUEcVHostResponse restartUEcVHost(RestartUEcVHostRequest request) - throws UCloudException { - request.setAction("RestartUEcVHost"); - return (RestartUEcVHostResponse) this.invoke(request, RestartUEcVHostResponse.class); - } - - /** - * StartUEcVHost - 启动UEC虚拟机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StartUEcVHostResponse startUEcVHost(StartUEcVHostRequest request) - throws UCloudException { - request.setAction("StartUEcVHost"); - return (StartUEcVHostResponse) this.invoke(request, StartUEcVHostResponse.class); - } - - /** - * StopUEcVHost - 停止UEC虚拟机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StopUEcVHostResponse stopUEcVHost(StopUEcVHostRequest request) throws UCloudException { - request.setAction("StopUEcVHost"); - return (StopUEcVHostResponse) this.invoke(request, StopUEcVHostResponse.class); - } - - /** - * UnBindUEcFirewall - 解绑防火墙 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UnBindUEcFirewallResponse unBindUEcFirewall(UnBindUEcFirewallRequest request) - throws UCloudException { - request.setAction("UnBindUEcFirewall"); - return (UnBindUEcFirewallResponse) this.invoke(request, UnBindUEcFirewallResponse.class); - } - - /** - * UpdateUEcFirewall - 更新防火墙信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUEcFirewallResponse updateUEcFirewall(UpdateUEcFirewallRequest request) - throws UCloudException { - request.setAction("UpdateUEcFirewall"); - return (UpdateUEcFirewallResponse) this.invoke(request, UpdateUEcFirewallResponse.class); - } - - /** - * UpdateUEcFirewallAttribute - 更新防火墙属性 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUEcFirewallAttributeResponse updateUEcFirewallAttribute( - UpdateUEcFirewallAttributeRequest request) throws UCloudException { - request.setAction("UpdateUEcFirewallAttribute"); - return (UpdateUEcFirewallAttributeResponse) - this.invoke(request, UpdateUEcFirewallAttributeResponse.class); - } - - /** - * UpdateUEcSubnet - 更新子网信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUEcSubnetResponse updateUEcSubnet(UpdateUEcSubnetRequest request) - throws UCloudException { - request.setAction("UpdateUEcSubnet"); - return (UpdateUEcSubnetResponse) this.invoke(request, UpdateUEcSubnetResponse.class); - } + + + + + + + /** + * BindUEcFirewall - 绑定防火墙 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BindUEcFirewallResponse bindUEcFirewall(BindUEcFirewallRequest request) throws UCloudException { + request.setAction("BindUEcFirewall"); + return (BindUEcFirewallResponse) this.invoke(request, BindUEcFirewallResponse.class); + } + + + + + + + /** + * CreateUEcCustomImage - 创建自制镜像 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUEcCustomImageResponse createUEcCustomImage(CreateUEcCustomImageRequest request) throws UCloudException { + request.setAction("CreateUEcCustomImage"); + return (CreateUEcCustomImageResponse) this.invoke(request, CreateUEcCustomImageResponse.class); + } + + + + + + + /** + * CreateUEcFirewall - 创建外网防火墙 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUEcFirewallResponse createUEcFirewall(CreateUEcFirewallRequest request) throws UCloudException { + request.setAction("CreateUEcFirewall"); + return (CreateUEcFirewallResponse) this.invoke(request, CreateUEcFirewallResponse.class); + } + + + + + + + /** + * CreateUEcHolder - 创建容器组 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUEcHolderResponse createUEcHolder(CreateUEcHolderRequest request) throws UCloudException { + request.setAction("CreateUEcHolder"); + return (CreateUEcHolderResponse) this.invoke(request, CreateUEcHolderResponse.class); + } + + + + + + + /** + * CreateUEcSubnet - 创建子网 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUEcSubnetResponse createUEcSubnet(CreateUEcSubnetRequest request) throws UCloudException { + request.setAction("CreateUEcSubnet"); + return (CreateUEcSubnetResponse) this.invoke(request, CreateUEcSubnetResponse.class); + } + + + + + + + /** + * CreateUEcVHost - 创建虚拟机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUEcVHostResponse createUEcVHost(CreateUEcVHostRequest request) throws UCloudException { + request.setAction("CreateUEcVHost"); + return (CreateUEcVHostResponse) this.invoke(request, CreateUEcVHostResponse.class); + } + + + + + + + /** + * DeleteUEcCustomImage - 删除UEC客户自定义镜像 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUEcCustomImageResponse deleteUEcCustomImage(DeleteUEcCustomImageRequest request) throws UCloudException { + request.setAction("DeleteUEcCustomImage"); + return (DeleteUEcCustomImageResponse) this.invoke(request, DeleteUEcCustomImageResponse.class); + } + + + + + + + /** + * DeleteUEcHolder - 删除容器组 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUEcHolderResponse deleteUEcHolder(DeleteUEcHolderRequest request) throws UCloudException { + request.setAction("DeleteUEcHolder"); + return (DeleteUEcHolderResponse) this.invoke(request, DeleteUEcHolderResponse.class); + } + + + + + + + /** + * DeleteUEcSubnet - 删除子网 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUEcSubnetResponse deleteUEcSubnet(DeleteUEcSubnetRequest request) throws UCloudException { + request.setAction("DeleteUEcSubnet"); + return (DeleteUEcSubnetResponse) this.invoke(request, DeleteUEcSubnetResponse.class); + } + + + + + + + /** + * DeleteUEcVHost - 删除vhost虚拟机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUEcVHostResponse deleteUEcVHost(DeleteUEcVHostRequest request) throws UCloudException { + request.setAction("DeleteUEcVHost"); + return (DeleteUEcVHostResponse) this.invoke(request, DeleteUEcVHostResponse.class); + } + + + + + + + /** + * DescribeUEcFirewall - 获取防火墙信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUEcFirewallResponse describeUEcFirewall(DescribeUEcFirewallRequest request) throws UCloudException { + request.setAction("DescribeUEcFirewall"); + return (DescribeUEcFirewallResponse) this.invoke(request, DescribeUEcFirewallResponse.class); + } + + + + + + + /** + * DescribeUEcFirewallResource - 防火墙绑定的资源列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUEcFirewallResourceResponse describeUEcFirewallResource(DescribeUEcFirewallResourceRequest request) throws UCloudException { + request.setAction("DescribeUEcFirewallResource"); + return (DescribeUEcFirewallResourceResponse) this.invoke(request, DescribeUEcFirewallResourceResponse.class); + } + + + + + + + /** + * DescribeUEcHolder - 获得容器组信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUEcHolderResponse describeUEcHolder(DescribeUEcHolderRequest request) throws UCloudException { + request.setAction("DescribeUEcHolder"); + return (DescribeUEcHolderResponse) this.invoke(request, DescribeUEcHolderResponse.class); + } + + + + + + + /** + * DescribeUEcHolderIDC - 获取容器组机房信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUEcHolderIDCResponse describeUEcHolderIDC(DescribeUEcHolderIDCRequest request) throws UCloudException { + request.setAction("DescribeUEcHolderIDC"); + return (DescribeUEcHolderIDCResponse) this.invoke(request, DescribeUEcHolderIDCResponse.class); + } + + + + + + + /** + * DescribeUEcIDC - 获取IDC机房列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUEcIDCResponse describeUEcIDC(DescribeUEcIDCRequest request) throws UCloudException { + request.setAction("DescribeUEcIDC"); + return (DescribeUEcIDCResponse) this.invoke(request, DescribeUEcIDCResponse.class); + } + + + + + + + /** + * DescribeUEcSubnet - 获取子网列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUEcSubnetResponse describeUEcSubnet(DescribeUEcSubnetRequest request) throws UCloudException { + request.setAction("DescribeUEcSubnet"); + return (DescribeUEcSubnetResponse) this.invoke(request, DescribeUEcSubnetResponse.class); + } + + + + + + + /** + * DescribeUEcVHost - 获取虚拟机列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUEcVHostResponse describeUEcVHost(DescribeUEcVHostRequest request) throws UCloudException { + request.setAction("DescribeUEcVHost"); + return (DescribeUEcVHostResponse) this.invoke(request, DescribeUEcVHostResponse.class); + } + + + + + + + /** + * DescribeUEcVHostISP - 获取虚拟机运营商信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUEcVHostISPResponse describeUEcVHostISP(DescribeUEcVHostISPRequest request) throws UCloudException { + request.setAction("DescribeUEcVHostISP"); + return (DescribeUEcVHostISPResponse) this.invoke(request, DescribeUEcVHostISPResponse.class); + } + + + + + + + /** + * GetUEcHolderLog - 获取容器日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUEcHolderLogResponse getUEcHolderLog(GetUEcHolderLogRequest request) throws UCloudException { + request.setAction("GetUEcHolderLog"); + return (GetUEcHolderLogResponse) this.invoke(request, GetUEcHolderLogResponse.class); + } + + + + + + + /** + * GetUEcHolderMetrics - 获取容器监控数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUEcHolderMetricsResponse getUEcHolderMetrics(GetUEcHolderMetricsRequest request) throws UCloudException { + request.setAction("GetUEcHolderMetrics"); + return (GetUEcHolderMetricsResponse) this.invoke(request, GetUEcHolderMetricsResponse.class); + } + + + + + + + /** + * GetUEcIDCCutInfo - 获得机房割接信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUEcIDCCutInfoResponse getUEcIDCCutInfo(GetUEcIDCCutInfoRequest request) throws UCloudException { + request.setAction("GetUEcIDCCutInfo"); + return (GetUEcIDCCutInfoResponse) this.invoke(request, GetUEcIDCCutInfoResponse.class); + } + + + + + + + /** + * GetUEcIDCVHostData - 获取机房虚拟机监控数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUEcIDCVHostDataResponse getUEcIDCVHostData(GetUEcIDCVHostDataRequest request) throws UCloudException { + request.setAction("GetUEcIDCVHostData"); + return (GetUEcIDCVHostDataResponse) this.invoke(request, GetUEcIDCVHostDataResponse.class); + } + + + + + + + /** + * GetUEcImage - 获取镜像列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUEcImageResponse getUEcImage(GetUEcImageRequest request) throws UCloudException { + request.setAction("GetUEcImage"); + return (GetUEcImageResponse) this.invoke(request, GetUEcImageResponse.class); + } + + + + + + + /** + * GetUEcPodPrice - 获得容器组价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUEcPodPriceResponse getUEcPodPrice(GetUEcPodPriceRequest request) throws UCloudException { + request.setAction("GetUEcPodPrice"); + return (GetUEcPodPriceResponse) this.invoke(request, GetUEcPodPriceResponse.class); + } + + + + + + + /** + * GetUEcUpgradePrice - 获取虚拟机调整差价 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUEcUpgradePriceResponse getUEcUpgradePrice(GetUEcUpgradePriceRequest request) throws UCloudException { + request.setAction("GetUEcUpgradePrice"); + return (GetUEcUpgradePriceResponse) this.invoke(request, GetUEcUpgradePriceResponse.class); + } + + + + + + + /** + * GetUEcVHostData - 获取虚拟机监控数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUEcVHostDataResponse getUEcVHostData(GetUEcVHostDataRequest request) throws UCloudException { + request.setAction("GetUEcVHostData"); + return (GetUEcVHostDataResponse) this.invoke(request, GetUEcVHostDataResponse.class); + } + + + + + + + /** + * GetUEcVHostPrice - 获取虚拟机价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUEcVHostPriceResponse getUEcVHostPrice(GetUEcVHostPriceRequest request) throws UCloudException { + request.setAction("GetUEcVHostPrice"); + return (GetUEcVHostPriceResponse) this.invoke(request, GetUEcVHostPriceResponse.class); + } + + + + + + + /** + * ImportUEcCustomImage - 导入自定义镜像 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ImportUEcCustomImageResponse importUEcCustomImage(ImportUEcCustomImageRequest request) throws UCloudException { + request.setAction("ImportUEcCustomImage"); + return (ImportUEcCustomImageResponse) this.invoke(request, ImportUEcCustomImageResponse.class); + } + + + + + + + /** + * LoginUEcDocker - 登录容器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public LoginUEcDockerResponse loginUEcDocker(LoginUEcDockerRequest request) throws UCloudException { + request.setAction("LoginUEcDocker"); + return (LoginUEcDockerResponse) this.invoke(request, LoginUEcDockerResponse.class); + } + + + + + + + /** + * ModifyUEcBandwidth - 修改节点带宽限制 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUEcBandwidthResponse modifyUEcBandwidth(ModifyUEcBandwidthRequest request) throws UCloudException { + request.setAction("ModifyUEcBandwidth"); + return (ModifyUEcBandwidthResponse) this.invoke(request, ModifyUEcBandwidthResponse.class); + } + + + + + + + /** + * ModifyUEcHolderName - 修改容器组名称 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUEcHolderNameResponse modifyUEcHolderName(ModifyUEcHolderNameRequest request) throws UCloudException { + request.setAction("ModifyUEcHolderName"); + return (ModifyUEcHolderNameResponse) this.invoke(request, ModifyUEcHolderNameResponse.class); + } + + + + + + + /** + * ModifyUEcImageName - 修改镜像名称 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUEcImageNameResponse modifyUEcImageName(ModifyUEcImageNameRequest request) throws UCloudException { + request.setAction("ModifyUEcImageName"); + return (ModifyUEcImageNameResponse) this.invoke(request, ModifyUEcImageNameResponse.class); + } + + + + + + + /** + * PoweroffUEcVHost - 虚拟机断电 + * + * @param request Request object + * @throws UCloudException Exception + */ + public PoweroffUEcVHostResponse poweroffUEcVHost(PoweroffUEcVHostRequest request) throws UCloudException { + request.setAction("PoweroffUEcVHost"); + return (PoweroffUEcVHostResponse) this.invoke(request, PoweroffUEcVHostResponse.class); + } + + + + + + + /** + * ReinstallUEcVHost - 虚拟机重装系统 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReinstallUEcVHostResponse reinstallUEcVHost(ReinstallUEcVHostRequest request) throws UCloudException { + request.setAction("ReinstallUEcVHost"); + return (ReinstallUEcVHostResponse) this.invoke(request, ReinstallUEcVHostResponse.class); + } + + + + + + + /** + * RestartUEcHolder - 重启容器组 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestartUEcHolderResponse restartUEcHolder(RestartUEcHolderRequest request) throws UCloudException { + request.setAction("RestartUEcHolder"); + return (RestartUEcHolderResponse) this.invoke(request, RestartUEcHolderResponse.class); + } + + + + + + + /** + * RestartUEcVHost - 重启虚拟机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestartUEcVHostResponse restartUEcVHost(RestartUEcVHostRequest request) throws UCloudException { + request.setAction("RestartUEcVHost"); + return (RestartUEcVHostResponse) this.invoke(request, RestartUEcVHostResponse.class); + } + + + + + + + /** + * StartUEcVHost - 启动UEC虚拟机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartUEcVHostResponse startUEcVHost(StartUEcVHostRequest request) throws UCloudException { + request.setAction("StartUEcVHost"); + return (StartUEcVHostResponse) this.invoke(request, StartUEcVHostResponse.class); + } + + + + + + + /** + * StopUEcVHost - 停止UEC虚拟机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUEcVHostResponse stopUEcVHost(StopUEcVHostRequest request) throws UCloudException { + request.setAction("StopUEcVHost"); + return (StopUEcVHostResponse) this.invoke(request, StopUEcVHostResponse.class); + } + + + + + + + /** + * UnBindUEcFirewall - 解绑防火墙 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UnBindUEcFirewallResponse unBindUEcFirewall(UnBindUEcFirewallRequest request) throws UCloudException { + request.setAction("UnBindUEcFirewall"); + return (UnBindUEcFirewallResponse) this.invoke(request, UnBindUEcFirewallResponse.class); + } + + + + + + + /** + * UpdateUEcFirewall - 更新防火墙信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUEcFirewallResponse updateUEcFirewall(UpdateUEcFirewallRequest request) throws UCloudException { + request.setAction("UpdateUEcFirewall"); + return (UpdateUEcFirewallResponse) this.invoke(request, UpdateUEcFirewallResponse.class); + } + + + + + + + /** + * UpdateUEcFirewallAttribute - 更新防火墙属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUEcFirewallAttributeResponse updateUEcFirewallAttribute(UpdateUEcFirewallAttributeRequest request) throws UCloudException { + request.setAction("UpdateUEcFirewallAttribute"); + return (UpdateUEcFirewallAttributeResponse) this.invoke(request, UpdateUEcFirewallAttributeResponse.class); + } + + + + + + + /** + * UpdateUEcSubnet - 更新子网信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUEcSubnetResponse updateUEcSubnet(UpdateUEcSubnetRequest request) throws UCloudException { + request.setAction("UpdateUEcSubnet"); + return (UpdateUEcSubnetResponse) this.invoke(request, UpdateUEcSubnetResponse.class); + } } diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/client/UECClientInterface.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/client/UECClientInterface.java index 7eeb83ec..b3796bd0 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/client/UECClientInterface.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/client/UECClientInterface.java @@ -1,306 +1,529 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uec.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.uec.models.BindUEcFirewallRequest; import cn.ucloud.uec.models.BindUEcFirewallResponse; + + + import cn.ucloud.uec.models.CreateUEcCustomImageRequest; import cn.ucloud.uec.models.CreateUEcCustomImageResponse; + + + import cn.ucloud.uec.models.CreateUEcFirewallRequest; import cn.ucloud.uec.models.CreateUEcFirewallResponse; + + + import cn.ucloud.uec.models.CreateUEcHolderRequest; import cn.ucloud.uec.models.CreateUEcHolderResponse; + + + import cn.ucloud.uec.models.CreateUEcSubnetRequest; import cn.ucloud.uec.models.CreateUEcSubnetResponse; + + + import cn.ucloud.uec.models.CreateUEcVHostRequest; import cn.ucloud.uec.models.CreateUEcVHostResponse; + + + import cn.ucloud.uec.models.DeleteUEcCustomImageRequest; import cn.ucloud.uec.models.DeleteUEcCustomImageResponse; + + + import cn.ucloud.uec.models.DeleteUEcHolderRequest; import cn.ucloud.uec.models.DeleteUEcHolderResponse; + + + import cn.ucloud.uec.models.DeleteUEcSubnetRequest; import cn.ucloud.uec.models.DeleteUEcSubnetResponse; + + + import cn.ucloud.uec.models.DeleteUEcVHostRequest; import cn.ucloud.uec.models.DeleteUEcVHostResponse; + + + import cn.ucloud.uec.models.DescribeUEcFirewallRequest; +import cn.ucloud.uec.models.DescribeUEcFirewallResponse; + + + import cn.ucloud.uec.models.DescribeUEcFirewallResourceRequest; import cn.ucloud.uec.models.DescribeUEcFirewallResourceResponse; -import cn.ucloud.uec.models.DescribeUEcFirewallResponse; -import cn.ucloud.uec.models.DescribeUEcHolderIDCRequest; -import cn.ucloud.uec.models.DescribeUEcHolderIDCResponse; + + + import cn.ucloud.uec.models.DescribeUEcHolderRequest; import cn.ucloud.uec.models.DescribeUEcHolderResponse; + + + +import cn.ucloud.uec.models.DescribeUEcHolderIDCRequest; +import cn.ucloud.uec.models.DescribeUEcHolderIDCResponse; + + + import cn.ucloud.uec.models.DescribeUEcIDCRequest; import cn.ucloud.uec.models.DescribeUEcIDCResponse; + + + import cn.ucloud.uec.models.DescribeUEcSubnetRequest; import cn.ucloud.uec.models.DescribeUEcSubnetResponse; -import cn.ucloud.uec.models.DescribeUEcVHostISPRequest; -import cn.ucloud.uec.models.DescribeUEcVHostISPResponse; + + + import cn.ucloud.uec.models.DescribeUEcVHostRequest; import cn.ucloud.uec.models.DescribeUEcVHostResponse; + + + +import cn.ucloud.uec.models.DescribeUEcVHostISPRequest; +import cn.ucloud.uec.models.DescribeUEcVHostISPResponse; + + + import cn.ucloud.uec.models.GetUEcHolderLogRequest; import cn.ucloud.uec.models.GetUEcHolderLogResponse; + + + import cn.ucloud.uec.models.GetUEcHolderMetricsRequest; import cn.ucloud.uec.models.GetUEcHolderMetricsResponse; + + + import cn.ucloud.uec.models.GetUEcIDCCutInfoRequest; import cn.ucloud.uec.models.GetUEcIDCCutInfoResponse; + + + import cn.ucloud.uec.models.GetUEcIDCVHostDataRequest; import cn.ucloud.uec.models.GetUEcIDCVHostDataResponse; + + + import cn.ucloud.uec.models.GetUEcImageRequest; import cn.ucloud.uec.models.GetUEcImageResponse; + + + import cn.ucloud.uec.models.GetUEcPodPriceRequest; import cn.ucloud.uec.models.GetUEcPodPriceResponse; + + + import cn.ucloud.uec.models.GetUEcUpgradePriceRequest; import cn.ucloud.uec.models.GetUEcUpgradePriceResponse; + + + import cn.ucloud.uec.models.GetUEcVHostDataRequest; import cn.ucloud.uec.models.GetUEcVHostDataResponse; + + + import cn.ucloud.uec.models.GetUEcVHostPriceRequest; import cn.ucloud.uec.models.GetUEcVHostPriceResponse; + + + import cn.ucloud.uec.models.ImportUEcCustomImageRequest; import cn.ucloud.uec.models.ImportUEcCustomImageResponse; + + + import cn.ucloud.uec.models.LoginUEcDockerRequest; import cn.ucloud.uec.models.LoginUEcDockerResponse; + + + import cn.ucloud.uec.models.ModifyUEcBandwidthRequest; import cn.ucloud.uec.models.ModifyUEcBandwidthResponse; + + + import cn.ucloud.uec.models.ModifyUEcHolderNameRequest; import cn.ucloud.uec.models.ModifyUEcHolderNameResponse; + + + import cn.ucloud.uec.models.ModifyUEcImageNameRequest; import cn.ucloud.uec.models.ModifyUEcImageNameResponse; + + + import cn.ucloud.uec.models.PoweroffUEcVHostRequest; import cn.ucloud.uec.models.PoweroffUEcVHostResponse; + + + import cn.ucloud.uec.models.ReinstallUEcVHostRequest; import cn.ucloud.uec.models.ReinstallUEcVHostResponse; + + + import cn.ucloud.uec.models.RestartUEcHolderRequest; import cn.ucloud.uec.models.RestartUEcHolderResponse; + + + import cn.ucloud.uec.models.RestartUEcVHostRequest; import cn.ucloud.uec.models.RestartUEcVHostResponse; + + + import cn.ucloud.uec.models.StartUEcVHostRequest; import cn.ucloud.uec.models.StartUEcVHostResponse; + + + import cn.ucloud.uec.models.StopUEcVHostRequest; import cn.ucloud.uec.models.StopUEcVHostResponse; + + + import cn.ucloud.uec.models.UnBindUEcFirewallRequest; import cn.ucloud.uec.models.UnBindUEcFirewallResponse; -import cn.ucloud.uec.models.UpdateUEcFirewallAttributeRequest; -import cn.ucloud.uec.models.UpdateUEcFirewallAttributeResponse; + + + import cn.ucloud.uec.models.UpdateUEcFirewallRequest; import cn.ucloud.uec.models.UpdateUEcFirewallResponse; + + + +import cn.ucloud.uec.models.UpdateUEcFirewallAttributeRequest; +import cn.ucloud.uec.models.UpdateUEcFirewallAttributeResponse; + + + import cn.ucloud.uec.models.UpdateUEcSubnetRequest; import cn.ucloud.uec.models.UpdateUEcSubnetResponse; -/** This client is used to call actions of **UEC** service */ +/** + * This client is used to call actions of **UEC** service + */ public interface UECClientInterface extends Client { - + + + + + + /** * BindUEcFirewall - 绑定防火墙 * * @param request Request object * @throws UCloudException Exception */ - public BindUEcFirewallResponse bindUEcFirewall(BindUEcFirewallRequest request) - throws UCloudException; - + public BindUEcFirewallResponse bindUEcFirewall(BindUEcFirewallRequest request) throws UCloudException; + + + + + + /** * CreateUEcCustomImage - 创建自制镜像 * * @param request Request object * @throws UCloudException Exception */ - public CreateUEcCustomImageResponse createUEcCustomImage(CreateUEcCustomImageRequest request) - throws UCloudException; - + public CreateUEcCustomImageResponse createUEcCustomImage(CreateUEcCustomImageRequest request) throws UCloudException; + + + + + + /** * CreateUEcFirewall - 创建外网防火墙 * * @param request Request object * @throws UCloudException Exception */ - public CreateUEcFirewallResponse createUEcFirewall(CreateUEcFirewallRequest request) - throws UCloudException; - + public CreateUEcFirewallResponse createUEcFirewall(CreateUEcFirewallRequest request) throws UCloudException; + + + + + + /** * CreateUEcHolder - 创建容器组 * * @param request Request object * @throws UCloudException Exception */ - public CreateUEcHolderResponse createUEcHolder(CreateUEcHolderRequest request) - throws UCloudException; - + public CreateUEcHolderResponse createUEcHolder(CreateUEcHolderRequest request) throws UCloudException; + + + + + + /** * CreateUEcSubnet - 创建子网 * * @param request Request object * @throws UCloudException Exception */ - public CreateUEcSubnetResponse createUEcSubnet(CreateUEcSubnetRequest request) - throws UCloudException; - + public CreateUEcSubnetResponse createUEcSubnet(CreateUEcSubnetRequest request) throws UCloudException; + + + + + + /** * CreateUEcVHost - 创建虚拟机 * * @param request Request object * @throws UCloudException Exception */ - public CreateUEcVHostResponse createUEcVHost(CreateUEcVHostRequest request) - throws UCloudException; - + public CreateUEcVHostResponse createUEcVHost(CreateUEcVHostRequest request) throws UCloudException; + + + + + + /** * DeleteUEcCustomImage - 删除UEC客户自定义镜像 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUEcCustomImageResponse deleteUEcCustomImage(DeleteUEcCustomImageRequest request) - throws UCloudException; - + public DeleteUEcCustomImageResponse deleteUEcCustomImage(DeleteUEcCustomImageRequest request) throws UCloudException; + + + + + + /** * DeleteUEcHolder - 删除容器组 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUEcHolderResponse deleteUEcHolder(DeleteUEcHolderRequest request) - throws UCloudException; - + public DeleteUEcHolderResponse deleteUEcHolder(DeleteUEcHolderRequest request) throws UCloudException; + + + + + + /** * DeleteUEcSubnet - 删除子网 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUEcSubnetResponse deleteUEcSubnet(DeleteUEcSubnetRequest request) - throws UCloudException; - + public DeleteUEcSubnetResponse deleteUEcSubnet(DeleteUEcSubnetRequest request) throws UCloudException; + + + + + + /** * DeleteUEcVHost - 删除vhost虚拟机 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUEcVHostResponse deleteUEcVHost(DeleteUEcVHostRequest request) - throws UCloudException; - + public DeleteUEcVHostResponse deleteUEcVHost(DeleteUEcVHostRequest request) throws UCloudException; + + + + + + /** * DescribeUEcFirewall - 获取防火墙信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUEcFirewallResponse describeUEcFirewall(DescribeUEcFirewallRequest request) - throws UCloudException; - + public DescribeUEcFirewallResponse describeUEcFirewall(DescribeUEcFirewallRequest request) throws UCloudException; + + + + + + /** * DescribeUEcFirewallResource - 防火墙绑定的资源列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUEcFirewallResourceResponse describeUEcFirewallResource( - DescribeUEcFirewallResourceRequest request) throws UCloudException; - + public DescribeUEcFirewallResourceResponse describeUEcFirewallResource(DescribeUEcFirewallResourceRequest request) throws UCloudException; + + + + + + /** * DescribeUEcHolder - 获得容器组信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUEcHolderResponse describeUEcHolder(DescribeUEcHolderRequest request) - throws UCloudException; - + public DescribeUEcHolderResponse describeUEcHolder(DescribeUEcHolderRequest request) throws UCloudException; + + + + + + /** * DescribeUEcHolderIDC - 获取容器组机房信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUEcHolderIDCResponse describeUEcHolderIDC(DescribeUEcHolderIDCRequest request) - throws UCloudException; - + public DescribeUEcHolderIDCResponse describeUEcHolderIDC(DescribeUEcHolderIDCRequest request) throws UCloudException; + + + + + + /** * DescribeUEcIDC - 获取IDC机房列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUEcIDCResponse describeUEcIDC(DescribeUEcIDCRequest request) - throws UCloudException; - + public DescribeUEcIDCResponse describeUEcIDC(DescribeUEcIDCRequest request) throws UCloudException; + + + + + + /** * DescribeUEcSubnet - 获取子网列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUEcSubnetResponse describeUEcSubnet(DescribeUEcSubnetRequest request) - throws UCloudException; - + public DescribeUEcSubnetResponse describeUEcSubnet(DescribeUEcSubnetRequest request) throws UCloudException; + + + + + + /** * DescribeUEcVHost - 获取虚拟机列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUEcVHostResponse describeUEcVHost(DescribeUEcVHostRequest request) - throws UCloudException; - + public DescribeUEcVHostResponse describeUEcVHost(DescribeUEcVHostRequest request) throws UCloudException; + + + + + + /** * DescribeUEcVHostISP - 获取虚拟机运营商信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUEcVHostISPResponse describeUEcVHostISP(DescribeUEcVHostISPRequest request) - throws UCloudException; - + public DescribeUEcVHostISPResponse describeUEcVHostISP(DescribeUEcVHostISPRequest request) throws UCloudException; + + + + + + /** * GetUEcHolderLog - 获取容器日志 * * @param request Request object * @throws UCloudException Exception */ - public GetUEcHolderLogResponse getUEcHolderLog(GetUEcHolderLogRequest request) - throws UCloudException; - + public GetUEcHolderLogResponse getUEcHolderLog(GetUEcHolderLogRequest request) throws UCloudException; + + + + + + /** * GetUEcHolderMetrics - 获取容器监控数据 * * @param request Request object * @throws UCloudException Exception */ - public GetUEcHolderMetricsResponse getUEcHolderMetrics(GetUEcHolderMetricsRequest request) - throws UCloudException; - + public GetUEcHolderMetricsResponse getUEcHolderMetrics(GetUEcHolderMetricsRequest request) throws UCloudException; + + + + + + /** * GetUEcIDCCutInfo - 获得机房割接信息 * * @param request Request object * @throws UCloudException Exception */ - public GetUEcIDCCutInfoResponse getUEcIDCCutInfo(GetUEcIDCCutInfoRequest request) - throws UCloudException; - + public GetUEcIDCCutInfoResponse getUEcIDCCutInfo(GetUEcIDCCutInfoRequest request) throws UCloudException; + + + + + + /** * GetUEcIDCVHostData - 获取机房虚拟机监控数据 * * @param request Request object * @throws UCloudException Exception */ - public GetUEcIDCVHostDataResponse getUEcIDCVHostData(GetUEcIDCVHostDataRequest request) - throws UCloudException; - + public GetUEcIDCVHostDataResponse getUEcIDCVHostData(GetUEcIDCVHostDataRequest request) throws UCloudException; + + + + + + /** * GetUEcImage - 获取镜像列表 * @@ -308,124 +531,181 @@ public GetUEcIDCVHostDataResponse getUEcIDCVHostData(GetUEcIDCVHostDataRequest r * @throws UCloudException Exception */ public GetUEcImageResponse getUEcImage(GetUEcImageRequest request) throws UCloudException; - + + + + + + /** * GetUEcPodPrice - 获得容器组价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUEcPodPriceResponse getUEcPodPrice(GetUEcPodPriceRequest request) - throws UCloudException; - + public GetUEcPodPriceResponse getUEcPodPrice(GetUEcPodPriceRequest request) throws UCloudException; + + + + + + /** * GetUEcUpgradePrice - 获取虚拟机调整差价 * * @param request Request object * @throws UCloudException Exception */ - public GetUEcUpgradePriceResponse getUEcUpgradePrice(GetUEcUpgradePriceRequest request) - throws UCloudException; - + public GetUEcUpgradePriceResponse getUEcUpgradePrice(GetUEcUpgradePriceRequest request) throws UCloudException; + + + + + + /** * GetUEcVHostData - 获取虚拟机监控数据 * * @param request Request object * @throws UCloudException Exception */ - public GetUEcVHostDataResponse getUEcVHostData(GetUEcVHostDataRequest request) - throws UCloudException; - + public GetUEcVHostDataResponse getUEcVHostData(GetUEcVHostDataRequest request) throws UCloudException; + + + + + + /** * GetUEcVHostPrice - 获取虚拟机价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUEcVHostPriceResponse getUEcVHostPrice(GetUEcVHostPriceRequest request) - throws UCloudException; - + public GetUEcVHostPriceResponse getUEcVHostPrice(GetUEcVHostPriceRequest request) throws UCloudException; + + + + + + /** * ImportUEcCustomImage - 导入自定义镜像 * * @param request Request object * @throws UCloudException Exception */ - public ImportUEcCustomImageResponse importUEcCustomImage(ImportUEcCustomImageRequest request) - throws UCloudException; - + public ImportUEcCustomImageResponse importUEcCustomImage(ImportUEcCustomImageRequest request) throws UCloudException; + + + + + + /** * LoginUEcDocker - 登录容器 * * @param request Request object * @throws UCloudException Exception */ - public LoginUEcDockerResponse loginUEcDocker(LoginUEcDockerRequest request) - throws UCloudException; - + public LoginUEcDockerResponse loginUEcDocker(LoginUEcDockerRequest request) throws UCloudException; + + + + + + /** * ModifyUEcBandwidth - 修改节点带宽限制 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUEcBandwidthResponse modifyUEcBandwidth(ModifyUEcBandwidthRequest request) - throws UCloudException; - + public ModifyUEcBandwidthResponse modifyUEcBandwidth(ModifyUEcBandwidthRequest request) throws UCloudException; + + + + + + /** * ModifyUEcHolderName - 修改容器组名称 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUEcHolderNameResponse modifyUEcHolderName(ModifyUEcHolderNameRequest request) - throws UCloudException; - + public ModifyUEcHolderNameResponse modifyUEcHolderName(ModifyUEcHolderNameRequest request) throws UCloudException; + + + + + + /** * ModifyUEcImageName - 修改镜像名称 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUEcImageNameResponse modifyUEcImageName(ModifyUEcImageNameRequest request) - throws UCloudException; - + public ModifyUEcImageNameResponse modifyUEcImageName(ModifyUEcImageNameRequest request) throws UCloudException; + + + + + + /** * PoweroffUEcVHost - 虚拟机断电 * * @param request Request object * @throws UCloudException Exception */ - public PoweroffUEcVHostResponse poweroffUEcVHost(PoweroffUEcVHostRequest request) - throws UCloudException; - + public PoweroffUEcVHostResponse poweroffUEcVHost(PoweroffUEcVHostRequest request) throws UCloudException; + + + + + + /** * ReinstallUEcVHost - 虚拟机重装系统 * * @param request Request object * @throws UCloudException Exception */ - public ReinstallUEcVHostResponse reinstallUEcVHost(ReinstallUEcVHostRequest request) - throws UCloudException; - + public ReinstallUEcVHostResponse reinstallUEcVHost(ReinstallUEcVHostRequest request) throws UCloudException; + + + + + + /** * RestartUEcHolder - 重启容器组 * * @param request Request object * @throws UCloudException Exception */ - public RestartUEcHolderResponse restartUEcHolder(RestartUEcHolderRequest request) - throws UCloudException; - + public RestartUEcHolderResponse restartUEcHolder(RestartUEcHolderRequest request) throws UCloudException; + + + + + + /** * RestartUEcVHost - 重启虚拟机 * * @param request Request object * @throws UCloudException Exception */ - public RestartUEcVHostResponse restartUEcVHost(RestartUEcVHostRequest request) - throws UCloudException; - + public RestartUEcVHostResponse restartUEcVHost(RestartUEcVHostRequest request) throws UCloudException; + + + + + + /** * StartUEcVHost - 启动UEC虚拟机 * @@ -433,7 +713,12 @@ public RestartUEcVHostResponse restartUEcVHost(RestartUEcVHostRequest request) * @throws UCloudException Exception */ public StartUEcVHostResponse startUEcVHost(StartUEcVHostRequest request) throws UCloudException; - + + + + + + /** * StopUEcVHost - 停止UEC虚拟机 * @@ -441,40 +726,56 @@ public RestartUEcVHostResponse restartUEcVHost(RestartUEcVHostRequest request) * @throws UCloudException Exception */ public StopUEcVHostResponse stopUEcVHost(StopUEcVHostRequest request) throws UCloudException; - + + + + + + /** * UnBindUEcFirewall - 解绑防火墙 * * @param request Request object * @throws UCloudException Exception */ - public UnBindUEcFirewallResponse unBindUEcFirewall(UnBindUEcFirewallRequest request) - throws UCloudException; - + public UnBindUEcFirewallResponse unBindUEcFirewall(UnBindUEcFirewallRequest request) throws UCloudException; + + + + + + /** * UpdateUEcFirewall - 更新防火墙信息 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUEcFirewallResponse updateUEcFirewall(UpdateUEcFirewallRequest request) - throws UCloudException; - + public UpdateUEcFirewallResponse updateUEcFirewall(UpdateUEcFirewallRequest request) throws UCloudException; + + + + + + /** * UpdateUEcFirewallAttribute - 更新防火墙属性 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUEcFirewallAttributeResponse updateUEcFirewallAttribute( - UpdateUEcFirewallAttributeRequest request) throws UCloudException; - + public UpdateUEcFirewallAttributeResponse updateUEcFirewallAttribute(UpdateUEcFirewallAttributeRequest request) throws UCloudException; + + + + + + /** * UpdateUEcSubnet - 更新子网信息 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUEcSubnetResponse updateUEcSubnet(UpdateUEcSubnetRequest request) - throws UCloudException; + public UpdateUEcSubnetResponse updateUEcSubnet(UpdateUEcSubnetRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/BindUEcFirewallRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/BindUEcFirewallRequest.java index dadbd51e..f2f3e27e 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/BindUEcFirewallRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/BindUEcFirewallRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class BindUEcFirewallRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙Id */ + + + + /** + * 防火墙Id + */ @NotEmpty @UCloudParam("FirewallId") private String firewallId; - - /** 虚拟机资源Id或容器组资源id */ + + + + /** + * 虚拟机资源Id或容器组资源id + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - + + public String getProjectId() { return projectId; } @@ -44,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFirewallId() { return firewallId; } @@ -52,7 +67,7 @@ public String getFirewallId() { public void setFirewallId(String firewallId) { this.firewallId = firewallId; } - + public String getResourceId() { return resourceId; } @@ -60,4 +75,14 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/BindUEcFirewallResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/BindUEcFirewallResponse.java index 9c0512ed..7ba87628 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/BindUEcFirewallResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/BindUEcFirewallResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class BindUEcFirewallResponse extends Response {} +public class BindUEcFirewallResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcCustomImageRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcCustomImageRequest.java index 64043b6a..3d80b760 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcCustomImageRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcCustomImageRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUEcCustomImageRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 虚拟机实例ID */ + + + + /** + * 虚拟机实例ID + */ @NotEmpty @UCloudParam("NodeId") private String nodeId; - - /** 镜像名称 */ + + + + /** + * 镜像名称 + */ @NotEmpty @UCloudParam("ImageName") private String imageName; - - /** 镜像描述 */ + + + + /** + * 镜像描述 + */ @UCloudParam("ImageDescription") private String imageDescription; - + + public String getProjectId() { return projectId; } @@ -48,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNodeId() { return nodeId; } @@ -56,7 +75,7 @@ public String getNodeId() { public void setNodeId(String nodeId) { this.nodeId = nodeId; } - + public String getImageName() { return imageName; } @@ -64,7 +83,7 @@ public String getImageName() { public void setImageName(String imageName) { this.imageName = imageName; } - + public String getImageDescription() { return imageDescription; } @@ -72,4 +91,14 @@ public String getImageDescription() { public void setImageDescription(String imageDescription) { this.imageDescription = imageDescription; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcCustomImageResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcCustomImageResponse.java index 1beecb9f..9f9e853c 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcCustomImageResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcCustomImageResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUEcCustomImageResponse extends Response { - /** 镜像ID */ + + + /** + * 镜像ID + */ @SerializedName("ImageId") private String imageId; - + + public String getImageId() { return imageId; } @@ -31,4 +41,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcFirewallRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcFirewallRequest.java index d9784ccb..5753cb03 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcFirewallRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcFirewallRequest.java @@ -1,46 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateUEcFirewallRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙名称 */ + + + + /** + * 防火墙名称 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** */ + + + + /** + * + */ @UCloudParam("Rule") private List rule; - - /** 描述 */ + + + + /** + * 描述 + */ @UCloudParam("Remark") private String remark; - + + public String getProjectId() { return projectId; } @@ -48,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -56,7 +74,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public List getRule() { return rule; } @@ -64,7 +82,7 @@ public List getRule() { public void setRule(List rule) { this.rule = rule; } - + public String getRemark() { return remark; } @@ -72,84 +90,118 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + + public static class Rule extends Request { + + + /** + * 协议,可选值:TCP,UDP,ICMP + */ + @NotEmpty + @UCloudParam("ProtocolType") + private String protocolType; + + + + /** + * 端口,范围用"-"符号分隔,如:1-65535 + */ + @NotEmpty + @UCloudParam("Port") + private String port; + + + + /** + * 源ip + */ + @NotEmpty + @UCloudParam("SrcIp") + private String srcIp; + + + + /** + * ACCEPT(接受)和DROP(拒绝) + */ + @NotEmpty + @UCloudParam("Action") + private String action; + + + + /** + * 优先级:HIGH(高),MEDIUM(中),LOW(低) + */ + @NotEmpty + @UCloudParam("Priority") + private String priority; + + + + /** + * 备注 + */ + @UCloudParam("Remark") + private String remark; + + + public String getProtocolType() { + return protocolType; + } - public static class Rule extends Request { - - /** 协议,可选值:TCP,UDP,ICMP */ - @NotEmpty - @UCloudParam("ProtocolType") - private String protocolType; - - /** 端口,范围用"-"符号分隔,如:1-65535 */ - @NotEmpty - @UCloudParam("Port") - private String port; - - /** 源ip */ - @NotEmpty - @UCloudParam("SrcIp") - private String srcIp; - - /** ACCEPT(接受)和DROP(拒绝) */ - @NotEmpty - @UCloudParam("Action") - private String action; + public void setProtocolType(String protocolType) { + this.protocolType = protocolType; + } + + public String getPort() { + return port; + } - /** 优先级:HIGH(高),MEDIUM(中),LOW(低) */ - @NotEmpty - @UCloudParam("Priority") - private String priority; + public void setPort(String port) { + this.port = port; + } + + public String getSrcIp() { + return srcIp; + } - /** 备注 */ - @UCloudParam("Remark") - private String remark; + public void setSrcIp(String srcIp) { + this.srcIp = srcIp; + } + + public String getAction() { + return action; + } - public String getProtocolType() { - return protocolType; - } + public void setAction(String action) { + this.action = action; + } + + public String getPriority() { + return priority; + } - public void setProtocolType(String protocolType) { - this.protocolType = protocolType; - } + public void setPriority(String priority) { + this.priority = priority; + } + + public String getRemark() { + return remark; + } - public String getPort() { - return port; + public void setRemark(String remark) { + this.remark = remark; + } + } +} - public void setPort(String port) { - this.port = port; - } - public String getSrcIp() { - return srcIp; - } - public void setSrcIp(String srcIp) { - this.srcIp = srcIp; - } - public String getAction() { - return action; - } - public void setAction(String action) { - this.action = action; - } - public String getPriority() { - return priority; - } - public void setPriority(String priority) { - this.priority = priority; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcFirewallResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcFirewallResponse.java index b6681cd3..d02dc595 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcFirewallResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcFirewallResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUEcFirewallResponse extends Response { - /** 防火墙Id */ + + + /** + * 防火墙Id + */ @SerializedName("FirewallId") private String firewallId; - + + public String getFirewallId() { return firewallId; } @@ -31,4 +41,14 @@ public String getFirewallId() { public void setFirewallId(String firewallId) { this.firewallId = firewallId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcHolderRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcHolderRequest.java index fe7cb0ac..8b4cac76 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcHolderRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcHolderRequest.java @@ -1,97 +1,163 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateUEcHolderRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 机房id */ + + + + /** + * 机房id + */ @NotEmpty @UCloudParam("IdcId") private String idcId; - - /** 容器组Cpu总核数 */ + + + + /** + * 容器组Cpu总核数 + */ @NotEmpty @UCloudParam("CpuCore") private Double cpuCore; - - /** 容器组总内存,单位MB */ + + + + /** + * 容器组总内存,单位MB + */ @NotEmpty @UCloudParam("MemSize") private Integer memSize; - - /** 子网ID */ + + + + /** + * 子网ID + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - - /** 容器组名称(默认default) */ + + + + /** + * 容器组名称(默认default) + */ @UCloudParam("Name") private String name; - - /** 机型(normal-经济型,hf-标准型,默认normal) */ + + + + /** + * 机型(normal-经济型,hf-标准型,默认normal) + */ @UCloudParam("ProductType") private String productType; - - /** 重启策略(0总是,1失败是,2永不,默认0) */ + + + + /** + * 重启策略(0总是,1失败是,2永不,默认0) + */ @UCloudParam("RestartStrategy") private Integer restartStrategy; - - /** 绑定外网ip(yes-绑定,no-不绑定,默认no) */ + + + + /** + * 绑定外网ip(yes-绑定,no-不绑定,默认no) + */ @UCloudParam("ElasticIp") private String elasticIp; - - /** 外网绑定的带宽(单位M,默认0,只有当ElasticIp为yes时,默认1) */ + + + + /** + * 外网绑定的带宽(单位M,默认0,只有当ElasticIp为yes时,默认1) + */ @UCloudParam("Bandwidth") private Integer bandwidth; - - /** 防火墙ID */ + + + + /** + * 防火墙ID + */ @UCloudParam("FirewallId") private String firewallId; - - /** 付费方式(2按月、3按年。默认2,默认月付) */ + + + + /** + * 付费方式(2按月、3按年。默认2,默认月付) + */ @UCloudParam("ChargeType") private Integer chargeType; - - /** 月数或者年数(默认值:1,当为按月计费时,0表示计费到月底,默认值为0) */ + + + + /** + * 月数或者年数(默认值:1,当为按月计费时,0表示计费到月底,默认值为0) + */ @UCloudParam("ChargeQuantity") private Integer chargeQuantity; - - /** */ + + + + /** + * + */ @UCloudParam("Pack") private List pack; - - /** */ + + + + /** + * + */ @UCloudParam("Image") private List image; - - /** */ + + + + /** + * + */ @UCloudParam("Storage") private List storage; - + + public String getProjectId() { return projectId; } @@ -99,7 +165,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getIdcId() { return idcId; } @@ -107,7 +173,7 @@ public String getIdcId() { public void setIdcId(String idcId) { this.idcId = idcId; } - + public Double getCpuCore() { return cpuCore; } @@ -115,7 +181,7 @@ public Double getCpuCore() { public void setCpuCore(Double cpuCore) { this.cpuCore = cpuCore; } - + public Integer getMemSize() { return memSize; } @@ -123,7 +189,7 @@ public Integer getMemSize() { public void setMemSize(Integer memSize) { this.memSize = memSize; } - + public String getSubnetId() { return subnetId; } @@ -131,7 +197,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getName() { return name; } @@ -139,7 +205,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getProductType() { return productType; } @@ -147,7 +213,7 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } - + public Integer getRestartStrategy() { return restartStrategy; } @@ -155,7 +221,7 @@ public Integer getRestartStrategy() { public void setRestartStrategy(Integer restartStrategy) { this.restartStrategy = restartStrategy; } - + public String getElasticIp() { return elasticIp; } @@ -163,7 +229,7 @@ public String getElasticIp() { public void setElasticIp(String elasticIp) { this.elasticIp = elasticIp; } - + public Integer getBandwidth() { return bandwidth; } @@ -171,7 +237,7 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } - + public String getFirewallId() { return firewallId; } @@ -179,7 +245,7 @@ public String getFirewallId() { public void setFirewallId(String firewallId) { this.firewallId = firewallId; } - + public Integer getChargeType() { return chargeType; } @@ -187,7 +253,7 @@ public Integer getChargeType() { public void setChargeType(Integer chargeType) { this.chargeType = chargeType; } - + public Integer getChargeQuantity() { return chargeQuantity; } @@ -195,7 +261,7 @@ public Integer getChargeQuantity() { public void setChargeQuantity(Integer chargeQuantity) { this.chargeQuantity = chargeQuantity; } - + public List getPack() { return pack; } @@ -203,7 +269,7 @@ public List getPack() { public void setPack(List pack) { this.pack = pack; } - + public List getImage() { return image; } @@ -211,7 +277,7 @@ public List getImage() { public void setImage(List image) { this.image = image; } - + public List getStorage() { return storage; } @@ -219,169 +285,231 @@ public List getStorage() { public void setStorage(List storage) { this.storage = storage; } - - public static class Image extends Request { - - /** 镜像用户名和密码(如镜像名:密码) */ - @UCloudParam("Message") - private String message; - - /** 镜像仓库地址 */ - @UCloudParam("StoreAddress") - private String storeAddress; - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public String getStoreAddress() { - return storeAddress; - } - - public void setStoreAddress(String storeAddress) { - this.storeAddress = storeAddress; - } + + public static class Image extends Request { + + + /** + * 镜像用户名和密码(如镜像名:密码) + */ + @UCloudParam("Message") + private String message; + + + + /** + * 镜像仓库地址 + */ + @UCloudParam("StoreAddress") + private String storeAddress; + + + public String getMessage() { + return message; } - public static class Pack extends Request { - - /** 容器名称 */ - @UCloudParam("Name") - private String name; - - /** 容器Cpu核数 */ - @UCloudParam("CpuCore") - private Double cpuCore; - - /** 容器内存,单位MB */ - @UCloudParam("MemSize") - private Integer memSize; - - /** 容器镜像名称 */ - @UCloudParam("ImageName") - private String imageName; - - /** 容器工作目录 */ - @UCloudParam("WorkDir") - private String workDir; - - /** 开启容器的命令 */ - @UCloudParam("Cmd") - private String cmd; - - /** 容器参数(多个用;隔开) */ - @UCloudParam("Args") - private String args; - - /** 容器环境变量(多个用;隔开,如:key1:value1;key2:value2) */ - @UCloudParam("Environment") - private String environment; - - /** 容器配置字典(多个用;隔开,如:/data1:resId1;/data2:resId2) */ - @UCloudParam("ConfigDict") - private String configDict; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Double getCpuCore() { - return cpuCore; - } - - public void setCpuCore(Double cpuCore) { - this.cpuCore = cpuCore; - } + public void setMessage(String message) { + this.message = message; + } + + public String getStoreAddress() { + return storeAddress; + } - public Integer getMemSize() { - return memSize; + public void setStoreAddress(String storeAddress) { + this.storeAddress = storeAddress; + } + } + public static class Pack extends Request { + + + /** + * 容器名称 + */ + @UCloudParam("Name") + private String name; + + + + /** + * 容器Cpu核数 + */ + @UCloudParam("CpuCore") + private Double cpuCore; + + + + /** + * 容器内存,单位MB + */ + @UCloudParam("MemSize") + private Integer memSize; + + + + /** + * 容器镜像名称 + */ + @UCloudParam("ImageName") + private String imageName; + + + + /** + * 容器工作目录 + */ + @UCloudParam("WorkDir") + private String workDir; + + + + /** + * 开启容器的命令 + */ + @UCloudParam("Cmd") + private String cmd; + + + + /** + * 容器参数(多个用;隔开) + */ + @UCloudParam("Args") + private String args; + + + + /** + * 容器环境变量(多个用;隔开,如:key1:value1;key2:value2) + */ + @UCloudParam("Environment") + private String environment; + + + + /** + * 容器配置字典(多个用;隔开,如:/data1:resId1;/data2:resId2) + */ + @UCloudParam("ConfigDict") + private String configDict; + + + public String getName() { + return name; + } - public void setMemSize(Integer memSize) { - this.memSize = memSize; - } + public void setName(String name) { + this.name = name; + } + + public Double getCpuCore() { + return cpuCore; + } - public String getImageName() { - return imageName; - } + public void setCpuCore(Double cpuCore) { + this.cpuCore = cpuCore; + } + + public Integer getMemSize() { + return memSize; + } - public void setImageName(String imageName) { - this.imageName = imageName; - } + public void setMemSize(Integer memSize) { + this.memSize = memSize; + } + + public String getImageName() { + return imageName; + } - public String getWorkDir() { - return workDir; - } + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public String getWorkDir() { + return workDir; + } - public void setWorkDir(String workDir) { - this.workDir = workDir; - } + public void setWorkDir(String workDir) { + this.workDir = workDir; + } + + public String getCmd() { + return cmd; + } - public String getCmd() { - return cmd; - } + public void setCmd(String cmd) { + this.cmd = cmd; + } + + public String getArgs() { + return args; + } - public void setCmd(String cmd) { - this.cmd = cmd; - } + public void setArgs(String args) { + this.args = args; + } + + public String getEnvironment() { + return environment; + } - public String getArgs() { - return args; - } + public void setEnvironment(String environment) { + this.environment = environment; + } + + public String getConfigDict() { + return configDict; + } - public void setArgs(String args) { - this.args = args; + public void setConfigDict(String configDict) { + this.configDict = configDict; + } + } + public static class Storage extends Request { + + + /** + * 存储卷挂载路径 + */ + @UCloudParam("Path") + private String path; + + + + /** + * 存储卷资源id + */ + @UCloudParam("ResourceId") + private String resourceId; + + + public String getPath() { + return path; + } - public String getEnvironment() { - return environment; - } + public void setPath(String path) { + this.path = path; + } + + public String getResourceId() { + return resourceId; + } - public void setEnvironment(String environment) { - this.environment = environment; + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + } +} - public String getConfigDict() { - return configDict; - } - public void setConfigDict(String configDict) { - this.configDict = configDict; - } - } - public static class Storage extends Request { - /** 存储卷挂载路径 */ - @UCloudParam("Path") - private String path; - /** 存储卷资源id */ - @UCloudParam("ResourceId") - private String resourceId; - public String getPath() { - return path; - } - public void setPath(String path) { - this.path = path; - } - public String getResourceId() { - return resourceId; - } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcHolderResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcHolderResponse.java index aa35da24..181ef8e1 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcHolderResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcHolderResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUEcHolderResponse extends Response { - /** 容器组资源id */ + + + /** + * 容器组资源id + */ @SerializedName("ResourceId") private String resourceId; - + + public String getResourceId() { return resourceId; } @@ -31,4 +41,14 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcSubnetRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcSubnetRequest.java index c132a910..0194ba10 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcSubnetRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcSubnetRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUEcSubnetRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 机房ID */ + + + + /** + * 机房ID + */ @NotEmpty @UCloudParam("IdcId") private String idcId; - - /** 子网cidr */ + + + + /** + * 子网cidr + */ @NotEmpty @UCloudParam("CIDR") private String cidr; - - /** 子网名称 */ + + + + /** + * 子网名称 + */ @UCloudParam("SubnetName") private String subnetName; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Comment") private String comment; - + + public String getProjectId() { return projectId; } @@ -52,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getIdcId() { return idcId; } @@ -60,7 +83,7 @@ public String getIdcId() { public void setIdcId(String idcId) { this.idcId = idcId; } - + public String getCIDR() { return cidr; } @@ -68,7 +91,7 @@ public String getCIDR() { public void setCIDR(String cidr) { this.cidr = cidr; } - + public String getSubnetName() { return subnetName; } @@ -76,7 +99,7 @@ public String getSubnetName() { public void setSubnetName(String subnetName) { this.subnetName = subnetName; } - + public String getComment() { return comment; } @@ -84,4 +107,14 @@ public String getComment() { public void setComment(String comment) { this.comment = comment; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcSubnetResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcSubnetResponse.java index 7c07d37c..fe549426 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcSubnetResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcSubnetResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUEcSubnetResponse extends Response { - /** 子网ID */ + + + /** + * 子网ID + */ @SerializedName("SubnetId") private String subnetId; - + + public String getSubnetId() { return subnetId; } @@ -31,4 +41,14 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcVHostRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcVHostRequest.java index 630f3fcb..d6b79ece 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcVHostRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcVHostRequest.java @@ -1,119 +1,205 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateUEcVHostRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 机房id */ + + + + /** + * 机房id + */ @NotEmpty @UCloudParam("IdcId") private String idcId; - - /** cpu核心数 */ + + + + /** + * cpu核心数 + */ @NotEmpty @UCloudParam("CpuCore") private Integer cpuCore; - - /** 内存大小,单位GB */ + + + + /** + * 内存大小,单位GB + */ @NotEmpty @UCloudParam("MemSize") private Integer memSize; - - /** 数据盘大小,单位GB */ + + + + /** + * 数据盘大小,单位GB + */ @NotEmpty @UCloudParam("DiskSize") private Integer diskSize; - - /** 镜像ID */ + + + + /** + * 镜像ID + */ @NotEmpty @UCloudParam("ImageId") private String imageId; - - /** 节点带宽限制,单位Mbs */ + + + + /** + * 节点带宽限制,单位Mbs + */ @NotEmpty @UCloudParam("NetLimit") private Integer netLimit; - - /** 节点名称 */ + + + + /** + * 节点名称 + */ @UCloudParam("NodeName") private String nodeName; - - /** 系统盘大小,单位GB, 默认20GB */ + + + + /** + * 系统盘大小,单位GB, 默认20GB + */ @UCloudParam("SysDiskSize") private Integer sysDiskSize; - - /** 账户名,默认root */ + + + + /** + * 账户名,默认root + */ @UCloudParam("AccountName") private String accountName; - - /** 密码 */ + + + + /** + * 密码 + */ @UCloudParam("PassWord") private String passWord; - - /** 创建节点数量,默认1 */ + + + + /** + * 创建节点数量,默认1 + */ @UCloudParam("NodeCount") private Integer nodeCount; - - /** 付费方式,1按时,2按月,3按年,默认2 */ + + + + /** + * 付费方式,1按时,2按月,3按年,默认2 + */ @UCloudParam("ChargeType") private Integer chargeType; - - /** 月数或者年数,0计费到月底, 默认0 */ + + + + /** + * 月数或者年数,0计费到月底, 默认0 + */ @UCloudParam("ChargeQuantity") private Integer chargeQuantity; - - /** 子网ID */ + + + + /** + * 子网ID + */ @UCloudParam("SubnetId") private String subnetId; - - /** 产品类型:normal(经济型),hf(标准型),g(Gpu型) */ + + + + /** + * 产品类型:normal(经济型),hf(标准型),g(Gpu型) + */ @UCloudParam("ProductType") private String productType; - - /** 外网防护墙规则组,默认 */ + + + + /** + * 外网防护墙规则组,默认 + */ @UCloudParam("FirewallId") private String firewallId; - - /** 运营商(1-电信,2-联通,4移动) */ + + + + /** + * 运营商(1-电信,2-联通,4移动) + */ @UCloudParam("Isp") private List isp; - - /** 是否需要外网ip(no-否) */ + + + + /** + * 是否需要外网ip(no-否) + */ @UCloudParam("IsNeedOuterIp") private String isNeedOuterIp; - - /** Gpu卡核心数。仅Gpu机型支持此字段 */ + + + + /** + * Gpu卡核心数。仅Gpu机型支持此字段 + */ @UCloudParam("Gpu") private Integer gpu; - - /** Gpu类型,枚举值["T4S"],ProductType为G时必填 */ + + + + /** + * Gpu类型,枚举值["T4S"],ProductType为G时必填 + */ @UCloudParam("GpuType") private String gpuType; - + + public String getProjectId() { return projectId; } @@ -121,7 +207,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getIdcId() { return idcId; } @@ -129,7 +215,7 @@ public String getIdcId() { public void setIdcId(String idcId) { this.idcId = idcId; } - + public Integer getCpuCore() { return cpuCore; } @@ -137,7 +223,7 @@ public Integer getCpuCore() { public void setCpuCore(Integer cpuCore) { this.cpuCore = cpuCore; } - + public Integer getMemSize() { return memSize; } @@ -145,7 +231,7 @@ public Integer getMemSize() { public void setMemSize(Integer memSize) { this.memSize = memSize; } - + public Integer getDiskSize() { return diskSize; } @@ -153,7 +239,7 @@ public Integer getDiskSize() { public void setDiskSize(Integer diskSize) { this.diskSize = diskSize; } - + public String getImageId() { return imageId; } @@ -161,7 +247,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public Integer getNetLimit() { return netLimit; } @@ -169,7 +255,7 @@ public Integer getNetLimit() { public void setNetLimit(Integer netLimit) { this.netLimit = netLimit; } - + public String getNodeName() { return nodeName; } @@ -177,7 +263,7 @@ public String getNodeName() { public void setNodeName(String nodeName) { this.nodeName = nodeName; } - + public Integer getSysDiskSize() { return sysDiskSize; } @@ -185,7 +271,7 @@ public Integer getSysDiskSize() { public void setSysDiskSize(Integer sysDiskSize) { this.sysDiskSize = sysDiskSize; } - + public String getAccountName() { return accountName; } @@ -193,7 +279,7 @@ public String getAccountName() { public void setAccountName(String accountName) { this.accountName = accountName; } - + public String getPassWord() { return passWord; } @@ -201,7 +287,7 @@ public String getPassWord() { public void setPassWord(String passWord) { this.passWord = passWord; } - + public Integer getNodeCount() { return nodeCount; } @@ -209,7 +295,7 @@ public Integer getNodeCount() { public void setNodeCount(Integer nodeCount) { this.nodeCount = nodeCount; } - + public Integer getChargeType() { return chargeType; } @@ -217,7 +303,7 @@ public Integer getChargeType() { public void setChargeType(Integer chargeType) { this.chargeType = chargeType; } - + public Integer getChargeQuantity() { return chargeQuantity; } @@ -225,7 +311,7 @@ public Integer getChargeQuantity() { public void setChargeQuantity(Integer chargeQuantity) { this.chargeQuantity = chargeQuantity; } - + public String getSubnetId() { return subnetId; } @@ -233,7 +319,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getProductType() { return productType; } @@ -241,7 +327,7 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } - + public String getFirewallId() { return firewallId; } @@ -249,7 +335,7 @@ public String getFirewallId() { public void setFirewallId(String firewallId) { this.firewallId = firewallId; } - + public List getIsp() { return isp; } @@ -257,7 +343,7 @@ public List getIsp() { public void setIsp(List isp) { this.isp = isp; } - + public String getIsNeedOuterIp() { return isNeedOuterIp; } @@ -265,7 +351,7 @@ public String getIsNeedOuterIp() { public void setIsNeedOuterIp(String isNeedOuterIp) { this.isNeedOuterIp = isNeedOuterIp; } - + public Integer getGpu() { return gpu; } @@ -273,7 +359,7 @@ public Integer getGpu() { public void setGpu(Integer gpu) { this.gpu = gpu; } - + public String getGpuType() { return gpuType; } @@ -281,4 +367,14 @@ public String getGpuType() { public void setGpuType(String gpuType) { this.gpuType = gpuType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcVHostResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcVHostResponse.java index 4e2b3411..36287bd9 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcVHostResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcVHostResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class CreateUEcVHostResponse extends Response { - /** 节点id(详情参考NodeList) */ + + + /** + * 节点id(详情参考NodeList) + */ @SerializedName("NodeList") private List nodeList; - + + public List getNodeList() { return nodeList; } @@ -32,19 +41,33 @@ public List getNodeList() { public void setNodeList(List nodeList) { this.nodeList = nodeList; } + + public static class NodeList extends Response { + + + /** + * 虚拟机资源id + */ + @SerializedName("NodeId") + private String nodeId; + + + public String getNodeId() { + return nodeId; + } + + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + } +} + + + + + - public static class NodeList extends Response { - /** 虚拟机资源id */ - @SerializedName("NodeId") - private String nodeId; - public String getNodeId() { - return nodeId; - } - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcCustomImageRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcCustomImageRequest.java index b126edd1..f68044be 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcCustomImageRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcCustomImageRequest.java @@ -1,41 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUEcCustomImageRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 镜像ID */ + + + + /** + * 镜像ID + */ @NotEmpty @UCloudParam("ImageId") private String imageId; - - /** 机房ID,带机房ID表示只删除指定机房镜像 */ + + + + /** + * 机房ID,带机房ID表示只删除指定机房镜像 + */ @UCloudParam("IdcId") private String idcId; - + + public String getProjectId() { return projectId; } @@ -43,7 +58,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageId() { return imageId; } @@ -51,7 +66,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getIdcId() { return idcId; } @@ -59,4 +74,14 @@ public String getIdcId() { public void setIdcId(String idcId) { this.idcId = idcId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcCustomImageResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcCustomImageResponse.java index 966bff56..19fb2c2b 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcCustomImageResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcCustomImageResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DeleteUEcCustomImageResponse extends Response { - /** 镜像ID */ + + + /** + * 镜像ID + */ @SerializedName("ImageId") private Integer imageId; - + + public Integer getImageId() { return imageId; } @@ -31,4 +41,14 @@ public Integer getImageId() { public void setImageId(Integer imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcHolderRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcHolderRequest.java index 71e56d2a..8e6de341 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcHolderRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcHolderRequest.java @@ -1,38 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DeleteUEcHolderRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; + + + + /** + * 容器组资源id,n为0,1,2... - /** 容器组资源id,n为0,1,2... */ + */ @NotEmpty @UCloudParam("HolderId") private List holderId; - + + public String getProjectId() { return projectId; } @@ -40,7 +51,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getHolderId() { return holderId; } @@ -48,4 +59,14 @@ public List getHolderId() { public void setHolderId(List holderId) { this.holderId = holderId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcHolderResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcHolderResponse.java index 41295823..c94fac8d 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcHolderResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcHolderResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUEcHolderResponse extends Response {} +public class DeleteUEcHolderResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcSubnetRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcSubnetRequest.java index caf4dde6..d85636e7 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcSubnetRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcSubnetRequest.java @@ -1,37 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUEcSubnetRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 子网ID */ + + + + /** + * 子网ID + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - + + public String getProjectId() { return projectId; } @@ -39,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSubnetId() { return subnetId; } @@ -47,4 +58,14 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcSubnetResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcSubnetResponse.java index 0567d662..8376d21b 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcSubnetResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcSubnetResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUEcSubnetResponse extends Response {} +public class DeleteUEcSubnetResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcVHostRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcVHostRequest.java index e4549c1f..af03d7e5 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcVHostRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcVHostRequest.java @@ -1,38 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DeleteUEcVHostRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 节点id */ + + + + /** + * 节点id + */ @NotEmpty @UCloudParam("NodeId") private List nodeId; - + + public String getProjectId() { return projectId; } @@ -40,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getNodeId() { return nodeId; } @@ -48,4 +58,14 @@ public List getNodeId() { public void setNodeId(List nodeId) { this.nodeId = nodeId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcVHostResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcVHostResponse.java index fd019fd4..38302712 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcVHostResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DeleteUEcVHostResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUEcVHostResponse extends Response {} +public class DeleteUEcVHostResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallRequest.java index 36c037f3..bb2863b9 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallRequest.java @@ -1,47 +1,71 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class DescribeUEcFirewallRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙ID,默认为返回所有防火墙 */ + + + + /** + * 防火墙ID,默认为返回所有防火墙 + */ @UCloudParam("FirewallId") private String firewallId; - - /** 绑定防火墙组的虚拟机资源ID */ + + + + /** + * 绑定防火墙组的虚拟机资源ID + */ @UCloudParam("ResourceId") private String resourceId; - - /** 返回数据长度,默认为20 */ + + + + /** + * 返回数据长度,默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - + + public String getProjectId() { return projectId; } @@ -49,7 +73,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFirewallId() { return firewallId; } @@ -57,7 +81,7 @@ public String getFirewallId() { public void setFirewallId(String firewallId) { this.firewallId = firewallId; } - + public String getResourceId() { return resourceId; } @@ -65,7 +89,7 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } - + public Integer getLimit() { return limit; } @@ -73,7 +97,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -81,4 +105,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallResourceRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallResourceRequest.java index 194d436b..b9093ebc 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallResourceRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallResourceRequest.java @@ -1,37 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUEcFirewallResourceRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙Id */ + + + + /** + * 防火墙Id + */ @NotEmpty @UCloudParam("FirewallId") private String firewallId; - + + public String getProjectId() { return projectId; } @@ -39,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFirewallId() { return firewallId; } @@ -47,4 +58,14 @@ public String getFirewallId() { public void setFirewallId(String firewallId) { this.firewallId = firewallId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallResourceResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallResourceResponse.java index eea4f6a6..c19d5edc 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallResourceResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallResourceResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUEcFirewallResourceResponse extends Response { - /** 资源列表,详情参见ResourceInfo */ + + + /** + * 资源列表,详情参见ResourceInfo + */ @SerializedName("ResourceSet") private List resourceSet; - - /** 资源总数 */ + + + + /** + * 资源总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getResourceSet() { return resourceSet; } @@ -36,7 +49,7 @@ public List getResourceSet() { public void setResourceSet(List resourceSet) { this.resourceSet = resourceSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,67 +57,97 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class ResourceInfo extends Response { + + + /** + * 资源Id + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 节点公网Ip列表 + */ + @SerializedName("PublicIpList") + private List publicIpList; + + + + /** + * 节点名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 节点状态,1部署中,2待启动,3启动中,4运行中,5正在停止,6已停止,7正在更新,8正在重启,9正在删除, 10已经删除,11异常 + */ + @SerializedName("State") + private Integer state; + + + + /** + * 节点备注 + */ + @SerializedName("Remark") + private String remark; + + + public String getResourceId() { + return resourceId; + } - public static class ResourceInfo extends Response { - - /** 资源Id */ - @SerializedName("ResourceId") - private String resourceId; - - /** 节点公网Ip列表 */ - @SerializedName("PublicIpList") - private List publicIpList; + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public List getPublicIpList() { + return publicIpList; + } - /** 节点名称 */ - @SerializedName("Name") - private String name; + public void setPublicIpList(List publicIpList) { + this.publicIpList = publicIpList; + } + + public String getName() { + return name; + } - /** 节点状态,1部署中,2待启动,3启动中,4运行中,5正在停止,6已停止,7正在更新,8正在重启,9正在删除, 10已经删除,11异常 */ - @SerializedName("State") - private Integer state; + public void setName(String name) { + this.name = name; + } + + public Integer getState() { + return state; + } - /** 节点备注 */ - @SerializedName("Remark") - private String remark; + public void setState(Integer state) { + this.state = state; + } + + public String getRemark() { + return remark; + } - public String getResourceId() { - return resourceId; + public void setRemark(String remark) { + this.remark = remark; + } + } +} - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - public List getPublicIpList() { - return publicIpList; - } - public void setPublicIpList(List publicIpList) { - this.publicIpList = publicIpList; - } - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public Integer getState() { - return state; - } - public void setState(Integer state) { - this.state = state; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallResponse.java index 342cf40a..884f9377 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcFirewallResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUEcFirewallResponse extends Response { - /** 防火墙组详细信息,参见 FirewallInfo */ + + + /** + * 防火墙组详细信息,参见 FirewallInfo + */ @SerializedName("FirewallSet") private List firewallSet; - - /** 满足条件的节点总数 */ + + + + /** + * 满足条件的节点总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getFirewallSet() { return firewallSet; } @@ -36,7 +49,7 @@ public List getFirewallSet() { public void setFirewallSet(List firewallSet) { this.firewallSet = firewallSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,169 +57,228 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class FirewallInfo extends Response { + + + /** + * 防火墙Id + */ + @SerializedName("FirewallId") + private String firewallId; + + + + /** + * 防火墙名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 防火墙规则组,详情参见RuleInfo + */ + @SerializedName("Rule") + private List rule; + + + + /** + * 防火墙绑定资源数量 + */ + @SerializedName("ResourceCount") + private Integer resourceCount; + + + + /** + * 防火墙组类型,枚举值为: "user defined", 用户自定义防火墙; "recommend web", 默认Web防火墙; "recommend non web", 默认非Web防火墙 + */ + @SerializedName("Type") + private String type; + + + + /** + * 描述 + */ + @SerializedName("Remark") + private String remark; + + + public String getFirewallId() { + return firewallId; + } - public static class FirewallInfo extends Response { - - /** 防火墙Id */ - @SerializedName("FirewallId") - private String firewallId; - - /** 防火墙名称 */ - @SerializedName("Name") - private String name; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 防火墙规则组,详情参见RuleInfo */ - @SerializedName("Rule") - private List rule; - - /** 防火墙绑定资源数量 */ - @SerializedName("ResourceCount") - private Integer resourceCount; - - /** - * 防火墙组类型,枚举值为: "user defined", 用户自定义防火墙; "recommend web", 默认Web防火墙; "recommend non web", - * 默认非Web防火墙 - */ - @SerializedName("Type") - private String type; - - /** 描述 */ - @SerializedName("Remark") - private String remark; - - public String getFirewallId() { - return firewallId; - } - - public void setFirewallId(String firewallId) { - this.firewallId = firewallId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public List getRule() { - return rule; - } - - public void setRule(List rule) { - this.rule = rule; - } + public void setFirewallId(String firewallId) { + this.firewallId = firewallId; + } + + public String getName() { + return name; + } - public Integer getResourceCount() { - return resourceCount; - } + public void setName(String name) { + this.name = name; + } + + public Integer getCreateTime() { + return createTime; + } - public void setResourceCount(Integer resourceCount) { - this.resourceCount = resourceCount; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public List getRule() { + return rule; + } - public String getType() { - return type; - } + public void setRule(List rule) { + this.rule = rule; + } + + public Integer getResourceCount() { + return resourceCount; + } - public void setType(String type) { - this.type = type; - } + public void setResourceCount(Integer resourceCount) { + this.resourceCount = resourceCount; + } + + public String getType() { + return type; + } - public String getRemark() { - return remark; - } + public void setType(String type) { + this.type = type; + } + + public String getRemark() { + return remark; + } - public void setRemark(String remark) { - this.remark = remark; + public void setRemark(String remark) { + this.remark = remark; + } + } + public static class RuleInfo extends Response { + + + /** + * 协议,可选值:TCP,UDP,ICMP + */ + @SerializedName("ProtocolType") + private String protocolType; + + + + /** + * 端口,范围用"-"符号分隔,如:1-65535 + */ + @SerializedName("Port") + private String port; + + + + /** + * 源ip + */ + @SerializedName("SrcIp") + private String srcIp; + + + + /** + * ACCEPT(接受)和DROP(拒绝) + */ + @SerializedName("Action") + private String action; + + + + /** + * 优先级:HIGH(高),MEDIUM(中),LOW(低) + */ + @SerializedName("Priority") + private String priority; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + public String getProtocolType() { + return protocolType; } - public static class RuleInfo extends Response { - - /** 协议,可选值:TCP,UDP,ICMP */ - @SerializedName("ProtocolType") - private String protocolType; - - /** 端口,范围用"-"符号分隔,如:1-65535 */ - @SerializedName("Port") - private String port; - - /** 源ip */ - @SerializedName("SrcIp") - private String srcIp; - - /** ACCEPT(接受)和DROP(拒绝) */ - @SerializedName("Action") - private String action; + public void setProtocolType(String protocolType) { + this.protocolType = protocolType; + } + + public String getPort() { + return port; + } - /** 优先级:HIGH(高),MEDIUM(中),LOW(低) */ - @SerializedName("Priority") - private String priority; + public void setPort(String port) { + this.port = port; + } + + public String getSrcIp() { + return srcIp; + } - /** 备注 */ - @SerializedName("Remark") - private String remark; + public void setSrcIp(String srcIp) { + this.srcIp = srcIp; + } + + public String getAction() { + return action; + } - public String getProtocolType() { - return protocolType; - } + public void setAction(String action) { + this.action = action; + } + + public String getPriority() { + return priority; + } - public void setProtocolType(String protocolType) { - this.protocolType = protocolType; - } + public void setPriority(String priority) { + this.priority = priority; + } + + public String getRemark() { + return remark; + } - public String getPort() { - return port; + public void setRemark(String remark) { + this.remark = remark; + } + } +} - public void setPort(String port) { - this.port = port; - } - public String getSrcIp() { - return srcIp; - } - public void setSrcIp(String srcIp) { - this.srcIp = srcIp; - } - public String getAction() { - return action; - } - public void setAction(String action) { - this.action = action; - } - public String getPriority() { - return priority; - } - public void setPriority(String priority) { - this.priority = priority; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderIDCRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderIDCRequest.java index 3ee53727..77ced9bd 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderIDCRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderIDCRequest.java @@ -1,55 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeUEcHolderIDCRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 容器组Cpu核数 */ + + + + /** + * 容器组Cpu核数 + */ @NotEmpty @UCloudParam("Cpu") private Double cpu; - - /** 容器组内存大小(单位MB) */ + + + + /** + * 容器组内存大小(单位MB) + */ @NotEmpty @UCloudParam("Memory") private Integer memory; - - /** Idc机房id。默认全部机房 */ + + + + /** + * Idc机房id。默认全部机房 + */ @UCloudParam("IdcId") private List idcId; - - /** 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 */ + + + + /** + * 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 + */ @UCloudParam("Type") private Integer type; - - /** 产品类型,normal标准型,hf高性能型 */ + + + + /** + * 产品类型,normal标准型,hf高性能型 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -57,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Double getCpu() { return cpu; } @@ -65,7 +91,7 @@ public Double getCpu() { public void setCpu(Double cpu) { this.cpu = cpu; } - + public Integer getMemory() { return memory; } @@ -73,7 +99,7 @@ public Integer getMemory() { public void setMemory(Integer memory) { this.memory = memory; } - + public List getIdcId() { return idcId; } @@ -81,7 +107,7 @@ public List getIdcId() { public void setIdcId(List idcId) { this.idcId = idcId; } - + public Integer getType() { return type; } @@ -89,7 +115,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public String getProductType() { return productType; } @@ -97,4 +123,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderIDCResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderIDCResponse.java index b2a5182d..9517c028 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderIDCResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderIDCResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUEcHolderIDCResponse extends Response { - /** 机房列表,具体参考下面IdcInfo */ + + + /** + * 机房列表,具体参考下面IdcInfo + */ @SerializedName("IdcList") private List idcList; - + + public List getIdcList() { return idcList; } @@ -32,91 +41,129 @@ public List getIdcList() { public void setIdcList(List idcList) { this.idcList = idcList; } + + public static class IdcInfo extends Response { + + + /** + * 机房ID + */ + @SerializedName("IdcId") + private String idcId; + + + + /** + * 机房名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 运营商 + */ + @SerializedName("Isp") + private String isp; + + + + /** + * 省份 + */ + @SerializedName("Province") + private String province; + + + + /** + * 城市 + */ + @SerializedName("City") + private String city; + + + + /** + * 运营商类型:0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 + */ + @SerializedName("Type") + private Integer type; + + + + /** + * 机房可创建节点最大数量 + */ + @SerializedName("MaxNodeCnt") + private Integer maxNodeCnt; + + + public String getIdcId() { + return idcId; + } - public static class IdcInfo extends Response { - - /** 机房ID */ - @SerializedName("IdcId") - private String idcId; - - /** 机房名称 */ - @SerializedName("Name") - private String name; - - /** 运营商 */ - @SerializedName("Isp") - private String isp; - - /** 省份 */ - @SerializedName("Province") - private String province; - - /** 城市 */ - @SerializedName("City") - private String city; - - /** 运营商类型:0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 */ - @SerializedName("Type") - private Integer type; + public void setIdcId(String idcId) { + this.idcId = idcId; + } + + public String getName() { + return name; + } - /** 机房可创建节点最大数量 */ - @SerializedName("MaxNodeCnt") - private Integer maxNodeCnt; + public void setName(String name) { + this.name = name; + } + + public String getIsp() { + return isp; + } - public String getIdcId() { - return idcId; - } + public void setIsp(String isp) { + this.isp = isp; + } + + public String getProvince() { + return province; + } - public void setIdcId(String idcId) { - this.idcId = idcId; - } + public void setProvince(String province) { + this.province = province; + } + + public String getCity() { + return city; + } - public String getName() { - return name; - } + public void setCity(String city) { + this.city = city; + } + + public Integer getType() { + return type; + } - public void setName(String name) { - this.name = name; - } + public void setType(Integer type) { + this.type = type; + } + + public Integer getMaxNodeCnt() { + return maxNodeCnt; + } - public String getIsp() { - return isp; + public void setMaxNodeCnt(Integer maxNodeCnt) { + this.maxNodeCnt = maxNodeCnt; + } + } +} - public void setIsp(String isp) { - this.isp = isp; - } - public String getProvince() { - return province; - } - public void setProvince(String province) { - this.province = province; - } - public String getCity() { - return city; - } - public void setCity(String city) { - this.city = city; - } - public Integer getType() { - return type; - } - public void setType(Integer type) { - this.type = type; - } - public Integer getMaxNodeCnt() { - return maxNodeCnt; - } - public void setMaxNodeCnt(Integer maxNodeCnt) { - this.maxNodeCnt = maxNodeCnt; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderRequest.java index 6b8aeaee..a17357c5 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderRequest.java @@ -1,44 +1,63 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.uec.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.uec.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class DescribeUEcHolderRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 容器组资源id */ + + + + /** + * 容器组资源id + */ @UCloudParam("HolderId") private List holderId; - - /** 返回数据长度,默认为20,非负整数 */ + + + + /** + * 返回数据长度,默认为20,非负整数 + */ @UCloudParam("Limit") private Integer limit; - - /** 列表起始位置偏移量,默认为0。非负整数 */ + + + + /** + * 列表起始位置偏移量,默认为0。非负整数 + */ @UCloudParam("Offset") private Integer offset; - + + public String getProjectId() { return projectId; } @@ -46,7 +65,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getHolderId() { return holderId; } @@ -54,7 +73,7 @@ public List getHolderId() { public void setHolderId(List holderId) { this.holderId = holderId; } - + public Integer getLimit() { return limit; } @@ -62,7 +81,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -70,4 +89,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderResponse.java index 28daca4c..46e105de 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUEcHolderResponse extends Response { - /** 容器组列表(详情参考HolderList) */ + + + /** + * 容器组列表(详情参考HolderList) + */ @SerializedName("HolderList") private List holderList; - - /** 满足条件的容器组总数 */ + + + + /** + * 满足条件的容器组总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getHolderList() { return holderList; } @@ -36,7 +49,7 @@ public List getHolderList() { public void setHolderList(List holderList) { this.holderList = holderList; } - + public Integer getTotalCount() { return totalCount; } @@ -44,577 +57,773 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - - public static class CfgDictList extends Response { - - /** 名称 */ - @SerializedName("Name") - private String name; - - /** 挂载路径 */ - @SerializedName("MountPath") - private String mountPath; - - /** 资源id */ - @SerializedName("ResourceId") - private String resourceId; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getMountPath() { - return mountPath; - } - - public void setMountPath(String mountPath) { - this.mountPath = mountPath; - } - - public String getResourceId() { - return resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } + + public static class CfgDictList extends Response { + + + /** + * 名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 挂载路径 + */ + @SerializedName("MountPath") + private String mountPath; + + + + /** + * 资源id + */ + @SerializedName("ResourceId") + private String resourceId; + + + public String getName() { + return name; } - public static class DockerInfo extends Response { - - /** CPU核数(/核)精度0.1核 */ - @SerializedName("CpuCores") - private Double cpuCores; - - /** 内存大小(Gi) */ - @SerializedName("MemSize") - private Double memSize; - - /** 容器名称 */ - @SerializedName("Name") - private String name; - - /** 容器状态,0:初始化;1:拉取镜像;2:拉取镜像失败;3:启动中;4:运行中;5:正在停止; 6:已停止;7:已删除;8:镜像拉取成功;9:启动失败;99:异常 */ - @SerializedName("State") - private Integer state; - - /** 镜像名称 */ - @SerializedName("ImageName") - private String imageName; - - /** 工作目录 */ - @SerializedName("WorkDir") - private String workDir; - - /** 命令 */ - @SerializedName("Command") - private String command; - - /** 参数 */ - @SerializedName("Args") - private String args; - - /** 环境变量(详情参考EnvList) */ - @SerializedName("EnvList") - private List envList; - - /** 容器配置字典(详情参考CfgDictList) */ - @SerializedName("CfgDictList") - private List cfgDictList; - - public Double getCpuCores() { - return cpuCores; - } - - public void setCpuCores(Double cpuCores) { - this.cpuCores = cpuCores; - } - - public Double getMemSize() { - return memSize; - } - - public void setMemSize(Double memSize) { - this.memSize = memSize; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getState() { - return state; - } - - public void setState(Integer state) { - this.state = state; - } - - public String getImageName() { - return imageName; - } - - public void setImageName(String imageName) { - this.imageName = imageName; - } - - public String getWorkDir() { - return workDir; - } - - public void setWorkDir(String workDir) { - this.workDir = workDir; - } - - public String getCommand() { - return command; - } - - public void setCommand(String command) { - this.command = command; - } - - public String getArgs() { - return args; - } - - public void setArgs(String args) { - this.args = args; - } - - public List getEnvList() { - return envList; - } - - public void setEnvList(List envList) { - this.envList = envList; - } - - public List getCfgDictList() { - return cfgDictList; - } - - public void setCfgDictList(List cfgDictList) { - this.cfgDictList = cfgDictList; - } + public void setName(String name) { + this.name = name; } - - public static class EnvList extends Response { - - /** 环境变量key值 */ - @SerializedName("Key") - private String key; - - /** 环境变量Value值 */ - @SerializedName("Value") - private String value; - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } + + public String getMountPath() { + return mountPath; } - public static class HolderList extends Response { - - /** 容器组资源id */ - @SerializedName("ResourceId") - private String resourceId; - - /** 容器组名称 */ - @SerializedName("HolderName") - private String holderName; - - /** 容器组子网id */ - @SerializedName("SubnetId") - private String subnetId; - - /** 容器组内网ip */ - @SerializedName("InnerIp") - private String innerIp; - - /** 容器组外网ip集合(详情参考IpList) */ - @SerializedName("IpList") - private List ipList; - - /** 容器组运行状态0:初始化;1:拉取镜像;2:启动中;3:运行中;4:错误;5:正在重启;6:正在删除;7:已经删除;8:容器运行错误;9:启动失败;99:异常 */ - @SerializedName("State") - private Integer state; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 过期时间 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 线路类型(运营商类型: 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通) */ - @SerializedName("Type") - private Integer type; - - /** 机房id */ - @SerializedName("IdcId") - private String idcId; - - /** 机房名称 */ - @SerializedName("OcName") - private String ocName; - - /** 省份名称 */ - @SerializedName("Province") - private String province; - - /** 城市名称 */ - @SerializedName("City") - private String city; - - /** 0:总是;1:失败是;2:永不 */ - @SerializedName("RestartStrategy") - private Integer restartStrategy; - - /** 容器数量 */ - @SerializedName("DockerCount") - private Integer dockerCount; - - /** 容器信息(详情参考DockerInfo) */ - @SerializedName("DockerInfo") - private List dockerInfo; - - /** 机器类型(normal经济型,hf标准型) */ - @SerializedName("ProductType") - private String productType; - - /** 外网绑定的带宽 */ - @SerializedName("NetLimit") - private Integer netLimit; - - /** 外网防火墙id */ - @SerializedName("FirewallId") - private String firewallId; - - /** 存储卷信息(详情参考StorVolumeInfo) */ - @SerializedName("StorVolumeInfo") - private List storVolumeInfo; - - /** 存储卷数量 */ - @SerializedName("StorVolumeCount") - private Integer storVolumeCount; - - /** 容器组镜像密钥列表(详情参考ImageList) */ - @SerializedName("ImageList") - private List imageList; - - public String getResourceId() { - return resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - public String getHolderName() { - return holderName; - } - - public void setHolderName(String holderName) { - this.holderName = holderName; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public String getInnerIp() { - return innerIp; - } - - public void setInnerIp(String innerIp) { - this.innerIp = innerIp; - } - - public List getIpList() { - return ipList; - } - - public void setIpList(List ipList) { - this.ipList = ipList; - } - - public Integer getState() { - return state; - } - - public void setState(Integer state) { - this.state = state; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public Integer getExpireTime() { - return expireTime; - } - - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } - - public Integer getType() { - return type; - } - - public void setType(Integer type) { - this.type = type; - } - - public String getIdcId() { - return idcId; - } - - public void setIdcId(String idcId) { - this.idcId = idcId; - } - - public String getOcName() { - return ocName; - } + public void setMountPath(String mountPath) { + this.mountPath = mountPath; + } + + public String getResourceId() { + return resourceId; + } - public void setOcName(String ocName) { - this.ocName = ocName; - } + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + } + public static class DockerInfo extends Response { + + + /** + * CPU核数(/核)精度0.1核 + */ + @SerializedName("CpuCores") + private Double cpuCores; + + + + /** + * 内存大小(Gi) + */ + @SerializedName("MemSize") + private Double memSize; + + + + /** + * 容器名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 容器状态,0:初始化;1:拉取镜像;2:拉取镜像失败;3:启动中;4:运行中;5:正在停止; +6:已停止;7:已删除;8:镜像拉取成功;9:启动失败;99:异常 + */ + @SerializedName("State") + private Integer state; + + + + /** + * 镜像名称 + */ + @SerializedName("ImageName") + private String imageName; + + + + /** + * 工作目录 + */ + @SerializedName("WorkDir") + private String workDir; + + + + /** + * 命令 + */ + @SerializedName("Command") + private String command; + + + + /** + * 参数 + */ + @SerializedName("Args") + private String args; + + + + /** + * 环境变量(详情参考EnvList) + */ + @SerializedName("EnvList") + private List envList; + + + + /** + * 容器配置字典(详情参考CfgDictList) + */ + @SerializedName("CfgDictList") + private List cfgDictList; + + + public Double getCpuCores() { + return cpuCores; + } - public String getProvince() { - return province; - } + public void setCpuCores(Double cpuCores) { + this.cpuCores = cpuCores; + } + + public Double getMemSize() { + return memSize; + } - public void setProvince(String province) { - this.province = province; - } + public void setMemSize(Double memSize) { + this.memSize = memSize; + } + + public String getName() { + return name; + } - public String getCity() { - return city; - } + public void setName(String name) { + this.name = name; + } + + public Integer getState() { + return state; + } - public void setCity(String city) { - this.city = city; - } + public void setState(Integer state) { + this.state = state; + } + + public String getImageName() { + return imageName; + } - public Integer getRestartStrategy() { - return restartStrategy; - } + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public String getWorkDir() { + return workDir; + } - public void setRestartStrategy(Integer restartStrategy) { - this.restartStrategy = restartStrategy; - } + public void setWorkDir(String workDir) { + this.workDir = workDir; + } + + public String getCommand() { + return command; + } - public Integer getDockerCount() { - return dockerCount; - } + public void setCommand(String command) { + this.command = command; + } + + public String getArgs() { + return args; + } - public void setDockerCount(Integer dockerCount) { - this.dockerCount = dockerCount; - } + public void setArgs(String args) { + this.args = args; + } + + public List getEnvList() { + return envList; + } - public List getDockerInfo() { - return dockerInfo; - } + public void setEnvList(List envList) { + this.envList = envList; + } + + public List getCfgDictList() { + return cfgDictList; + } - public void setDockerInfo(List dockerInfo) { - this.dockerInfo = dockerInfo; - } + public void setCfgDictList(List cfgDictList) { + this.cfgDictList = cfgDictList; + } + + } + public static class EnvList extends Response { + + + /** + * 环境变量key值 + */ + @SerializedName("Key") + private String key; + + + + /** + * 环境变量Value值 + */ + @SerializedName("Value") + private String value; + + + public String getKey() { + return key; + } - public String getProductType() { - return productType; - } + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } - public void setProductType(String productType) { - this.productType = productType; - } + public void setValue(String value) { + this.value = value; + } + + } + public static class HolderList extends Response { + + + /** + * 容器组资源id + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 容器组名称 + */ + @SerializedName("HolderName") + private String holderName; + + + + /** + * 容器组子网id + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * 容器组内网ip + */ + @SerializedName("InnerIp") + private String innerIp; + + + + /** + * 容器组外网ip集合(详情参考IpList) + */ + @SerializedName("IpList") + private List ipList; + + + + /** + * 容器组运行状态0:初始化;1:拉取镜像;2:启动中;3:运行中;4:错误;5:正在重启;6:正在删除;7:已经删除;8:容器运行错误;9:启动失败;99:异常 + + */ + @SerializedName("State") + private Integer state; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 过期时间 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 线路类型(运营商类型: 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通) + */ + @SerializedName("Type") + private Integer type; + + + + /** + * 机房id + */ + @SerializedName("IdcId") + private String idcId; + + + + /** + * 机房名称 + */ + @SerializedName("OcName") + private String ocName; + + + + /** + * 省份名称 + */ + @SerializedName("Province") + private String province; + + + + /** + * 城市名称 + */ + @SerializedName("City") + private String city; + + + + /** + * 0:总是;1:失败是;2:永不 + */ + @SerializedName("RestartStrategy") + private Integer restartStrategy; + + + + /** + * 容器数量 + */ + @SerializedName("DockerCount") + private Integer dockerCount; + + + + /** + * 容器信息(详情参考DockerInfo) + */ + @SerializedName("DockerInfo") + private List dockerInfo; + + + + /** + * 机器类型(normal经济型,hf标准型) + */ + @SerializedName("ProductType") + private String productType; + + + + /** + * 外网绑定的带宽 + */ + @SerializedName("NetLimit") + private Integer netLimit; + + + + /** + * 外网防火墙id + */ + @SerializedName("FirewallId") + private String firewallId; + + + + /** + * 存储卷信息(详情参考StorVolumeInfo) + */ + @SerializedName("StorVolumeInfo") + private List storVolumeInfo; + + + + /** + * 存储卷数量 + */ + @SerializedName("StorVolumeCount") + private Integer storVolumeCount; + + + + /** + * 容器组镜像密钥列表(详情参考ImageList) + */ + @SerializedName("ImageList") + private List imageList; + + + public String getResourceId() { + return resourceId; + } - public Integer getNetLimit() { - return netLimit; - } + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getHolderName() { + return holderName; + } - public void setNetLimit(Integer netLimit) { - this.netLimit = netLimit; - } + public void setHolderName(String holderName) { + this.holderName = holderName; + } + + public String getSubnetId() { + return subnetId; + } - public String getFirewallId() { - return firewallId; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getInnerIp() { + return innerIp; + } - public void setFirewallId(String firewallId) { - this.firewallId = firewallId; - } + public void setInnerIp(String innerIp) { + this.innerIp = innerIp; + } + + public List getIpList() { + return ipList; + } - public List getStorVolumeInfo() { - return storVolumeInfo; - } + public void setIpList(List ipList) { + this.ipList = ipList; + } + + public Integer getState() { + return state; + } - public void setStorVolumeInfo(List storVolumeInfo) { - this.storVolumeInfo = storVolumeInfo; - } + public void setState(Integer state) { + this.state = state; + } + + public Integer getCreateTime() { + return createTime; + } - public Integer getStorVolumeCount() { - return storVolumeCount; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public void setStorVolumeCount(Integer storVolumeCount) { - this.storVolumeCount = storVolumeCount; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getType() { + return type; + } - public List getImageList() { - return imageList; - } + public void setType(Integer type) { + this.type = type; + } + + public String getIdcId() { + return idcId; + } - public void setImageList(List imageList) { - this.imageList = imageList; - } + public void setIdcId(String idcId) { + this.idcId = idcId; + } + + public String getOcName() { + return ocName; } - public static class ImageList extends Response { + public void setOcName(String ocName) { + this.ocName = ocName; + } + + public String getProvince() { + return province; + } - /** 仓库地址 */ - @SerializedName("StoreAddr") - private String storeAddr; + public void setProvince(String province) { + this.province = province; + } + + public String getCity() { + return city; + } - /** 用户名称 */ - @SerializedName("UserName") - private String userName; + public void setCity(String city) { + this.city = city; + } + + public Integer getRestartStrategy() { + return restartStrategy; + } - /** 镜像密钥 */ - @SerializedName("ImageKey") - private String imageKey; + public void setRestartStrategy(Integer restartStrategy) { + this.restartStrategy = restartStrategy; + } + + public Integer getDockerCount() { + return dockerCount; + } - public String getStoreAddr() { - return storeAddr; - } + public void setDockerCount(Integer dockerCount) { + this.dockerCount = dockerCount; + } + + public List getDockerInfo() { + return dockerInfo; + } - public void setStoreAddr(String storeAddr) { - this.storeAddr = storeAddr; - } + public void setDockerInfo(List dockerInfo) { + this.dockerInfo = dockerInfo; + } + + public String getProductType() { + return productType; + } - public String getUserName() { - return userName; - } + public void setProductType(String productType) { + this.productType = productType; + } + + public Integer getNetLimit() { + return netLimit; + } - public void setUserName(String userName) { - this.userName = userName; - } + public void setNetLimit(Integer netLimit) { + this.netLimit = netLimit; + } + + public String getFirewallId() { + return firewallId; + } - public String getImageKey() { - return imageKey; - } + public void setFirewallId(String firewallId) { + this.firewallId = firewallId; + } + + public List getStorVolumeInfo() { + return storVolumeInfo; + } - public void setImageKey(String imageKey) { - this.imageKey = imageKey; - } + public void setStorVolumeInfo(List storVolumeInfo) { + this.storVolumeInfo = storVolumeInfo; + } + + public Integer getStorVolumeCount() { + return storVolumeCount; } - public static class IpList extends Response { + public void setStorVolumeCount(Integer storVolumeCount) { + this.storVolumeCount = storVolumeCount; + } + + public List getImageList() { + return imageList; + } - /** 外网ip */ - @SerializedName("Ip") - private String ip; + public void setImageList(List imageList) { + this.imageList = imageList; + } + + } + public static class ImageList extends Response { + + + /** + * 仓库地址 + */ + @SerializedName("StoreAddr") + private String storeAddr; + + + + /** + * 用户名称 + */ + @SerializedName("UserName") + private String userName; + + + + /** + * 镜像密钥 + */ + @SerializedName("ImageKey") + private String imageKey; + + + public String getStoreAddr() { + return storeAddr; + } - /** 运营商 */ - @SerializedName("Isp") - private String isp; + public void setStoreAddr(String storeAddr) { + this.storeAddr = storeAddr; + } + + public String getUserName() { + return userName; + } - public String getIp() { - return ip; - } + public void setUserName(String userName) { + this.userName = userName; + } + + public String getImageKey() { + return imageKey; + } - public void setIp(String ip) { - this.ip = ip; - } + public void setImageKey(String imageKey) { + this.imageKey = imageKey; + } + + } + public static class IpList extends Response { + + + /** + * 外网ip + */ + @SerializedName("Ip") + private String ip; + + + + /** + * 运营商 + */ + @SerializedName("Isp") + private String isp; + + + public String getIp() { + return ip; + } - public String getIsp() { - return isp; - } + public void setIp(String ip) { + this.ip = ip; + } + + public String getIsp() { + return isp; + } - public void setIsp(String isp) { - this.isp = isp; - } + public void setIsp(String isp) { + this.isp = isp; + } + + } + public static class StorVolumeInfo extends Response { + + + /** + * 名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 资源id + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 挂载点 + */ + @SerializedName("MountPoint") + private String mountPoint; + + + + /** + * 容量(单位GB) + */ + @SerializedName("DiskSize") + private Integer diskSize; + + + public String getName() { + return name; } - public static class StorVolumeInfo extends Response { + public void setName(String name) { + this.name = name; + } + + public String getResourceId() { + return resourceId; + } - /** 名称 */ - @SerializedName("Name") - private String name; + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getMountPoint() { + return mountPoint; + } - /** 资源id */ - @SerializedName("ResourceId") - private String resourceId; + public void setMountPoint(String mountPoint) { + this.mountPoint = mountPoint; + } + + public Integer getDiskSize() { + return diskSize; + } - /** 挂载点 */ - @SerializedName("MountPoint") - private String mountPoint; + public void setDiskSize(Integer diskSize) { + this.diskSize = diskSize; + } + + } +} - /** 容量(单位GB) */ - @SerializedName("DiskSize") - private Integer diskSize; - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public String getResourceId() { - return resourceId; - } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - public String getMountPoint() { - return mountPoint; - } - public void setMountPoint(String mountPoint) { - this.mountPoint = mountPoint; - } - public Integer getDiskSize() { - return diskSize; - } - public void setDiskSize(Integer diskSize) { - this.diskSize = diskSize; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcIDCRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcIDCRequest.java index ee5656b5..d16e37e8 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcIDCRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcIDCRequest.java @@ -1,59 +1,89 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeUEcIDCRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 节点cpu核数 */ + + + + /** + * 节点cpu核数 + */ @NotEmpty @UCloudParam("Cpu") private Integer cpu; - - /** 节点内存大小, 单位GB */ + + + + /** + * 节点内存大小, 单位GB + */ @NotEmpty @UCloudParam("Memory") private Integer memory; - - /** Idc机房id。默认全部机房 */ + + + + /** + * Idc机房id。默认全部机房 + */ @UCloudParam("IdcId") private List idcId; - - /** 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 */ + + + + /** + * 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 + */ @UCloudParam("Type") private Integer type; - - /** 产品类型:normal(经济型),hf(标准型),g(GPU型) */ + + + + /** + * 产品类型:normal(经济型),hf(标准型),g(GPU型) + */ @UCloudParam("ProductType") private String productType; - - /** Gpu卡核心数 */ + + + + /** + * Gpu卡核心数 + */ @UCloudParam("Gpu") private Integer gpu; - + + public String getProjectId() { return projectId; } @@ -61,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getCpu() { return cpu; } @@ -69,7 +99,7 @@ public Integer getCpu() { public void setCpu(Integer cpu) { this.cpu = cpu; } - + public Integer getMemory() { return memory; } @@ -77,7 +107,7 @@ public Integer getMemory() { public void setMemory(Integer memory) { this.memory = memory; } - + public List getIdcId() { return idcId; } @@ -85,7 +115,7 @@ public List getIdcId() { public void setIdcId(List idcId) { this.idcId = idcId; } - + public Integer getType() { return type; } @@ -93,7 +123,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public String getProductType() { return productType; } @@ -101,7 +131,7 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } - + public Integer getGpu() { return gpu; } @@ -109,4 +139,14 @@ public Integer getGpu() { public void setGpu(Integer gpu) { this.gpu = gpu; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcIDCResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcIDCResponse.java index 490998d5..21605853 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcIDCResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcIDCResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUEcIDCResponse extends Response { - /** 获取的机房信息,具体参考下面IdcInfo */ + + + /** + * 获取的机房信息,具体参考下面IdcInfo + */ @SerializedName("IdcList") private List idcList; - + + public List getIdcList() { return idcList; } @@ -32,91 +41,129 @@ public List getIdcList() { public void setIdcList(List idcList) { this.idcList = idcList; } + + public static class IdcInfo extends Response { + + + /** + * 机房ID + */ + @SerializedName("IdcId") + private String idcId; + + + + /** + * 机房名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 运营商 + */ + @SerializedName("Isp") + private String isp; + + + + /** + * 省份 + */ + @SerializedName("Province") + private String province; + + + + /** + * 城市 + */ + @SerializedName("City") + private String city; + + + + /** + * 运营商类型:0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 + */ + @SerializedName("Type") + private Integer type; + + + + /** + * 机房可创建节点最大数量 + */ + @SerializedName("MaxNodeCnt") + private Integer maxNodeCnt; + + + public String getIdcId() { + return idcId; + } - public static class IdcInfo extends Response { - - /** 机房ID */ - @SerializedName("IdcId") - private String idcId; - - /** 机房名称 */ - @SerializedName("Name") - private String name; - - /** 运营商 */ - @SerializedName("Isp") - private String isp; - - /** 省份 */ - @SerializedName("Province") - private String province; - - /** 城市 */ - @SerializedName("City") - private String city; - - /** 运营商类型:0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 */ - @SerializedName("Type") - private Integer type; + public void setIdcId(String idcId) { + this.idcId = idcId; + } + + public String getName() { + return name; + } - /** 机房可创建节点最大数量 */ - @SerializedName("MaxNodeCnt") - private Integer maxNodeCnt; + public void setName(String name) { + this.name = name; + } + + public String getIsp() { + return isp; + } - public String getIdcId() { - return idcId; - } + public void setIsp(String isp) { + this.isp = isp; + } + + public String getProvince() { + return province; + } - public void setIdcId(String idcId) { - this.idcId = idcId; - } + public void setProvince(String province) { + this.province = province; + } + + public String getCity() { + return city; + } - public String getName() { - return name; - } + public void setCity(String city) { + this.city = city; + } + + public Integer getType() { + return type; + } - public void setName(String name) { - this.name = name; - } + public void setType(Integer type) { + this.type = type; + } + + public Integer getMaxNodeCnt() { + return maxNodeCnt; + } - public String getIsp() { - return isp; + public void setMaxNodeCnt(Integer maxNodeCnt) { + this.maxNodeCnt = maxNodeCnt; + } + } +} - public void setIsp(String isp) { - this.isp = isp; - } - public String getProvince() { - return province; - } - public void setProvince(String province) { - this.province = province; - } - public String getCity() { - return city; - } - public void setCity(String city) { - this.city = city; - } - public Integer getType() { - return type; - } - public void setType(Integer type) { - this.type = type; - } - public Integer getMaxNodeCnt() { - return maxNodeCnt; - } - public void setMaxNodeCnt(Integer maxNodeCnt) { - this.maxNodeCnt = maxNodeCnt; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcSubnetRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcSubnetRequest.java index bf3ca9e0..560aa5fa 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcSubnetRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcSubnetRequest.java @@ -1,39 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class DescribeUEcSubnetRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 机房ID */ + + + + /** + * 机房ID + */ @UCloudParam("IdcId") private String idcId; - - /** 子网ID */ + + + + /** + * 子网ID + */ @UCloudParam("SubnetId") private String subnetId; - + + public String getProjectId() { return projectId; } @@ -41,7 +57,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getIdcId() { return idcId; } @@ -49,7 +65,7 @@ public String getIdcId() { public void setIdcId(String idcId) { this.idcId = idcId; } - + public String getSubnetId() { return subnetId; } @@ -57,4 +73,14 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcSubnetResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcSubnetResponse.java index 56141913..469d81a8 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcSubnetResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcSubnetResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUEcSubnetResponse extends Response { - /** 子网信息列表 */ + + + /** + * 子网信息列表 + */ @SerializedName("SubnetList") private List subnetList; - + + public List getSubnetList() { return subnetList; } @@ -32,103 +41,145 @@ public List getSubnetList() { public void setSubnetList(List subnetList) { this.subnetList = subnetList; } + + public static class SubnetInfo extends Response { + + + /** + * 子网ID + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * 子网名称 + */ + @SerializedName("SubnetName") + private String subnetName; + + + + /** + * 机房ID + */ + @SerializedName("IdcId") + private String idcId; + + + + /** + * 子网cidr + */ + @SerializedName("CIDR") + private String cidr; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 备注 + */ + @SerializedName("Comment") + private String comment; + + + + /** + * 总ip数 + */ + @SerializedName("TotalIpCnt") + private Integer totalIpCnt; + + + + /** + * 可用ip数 + */ + @SerializedName("AvailableIPCnt") + private Integer availableIPCnt; + + + public String getSubnetId() { + return subnetId; + } - public static class SubnetInfo extends Response { - - /** 子网ID */ - @SerializedName("SubnetId") - private String subnetId; - - /** 子网名称 */ - @SerializedName("SubnetName") - private String subnetName; - - /** 机房ID */ - @SerializedName("IdcId") - private String idcId; - - /** 子网cidr */ - @SerializedName("CIDR") - private String cidr; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 备注 */ - @SerializedName("Comment") - private String comment; - - /** 总ip数 */ - @SerializedName("TotalIpCnt") - private Integer totalIpCnt; - - /** 可用ip数 */ - @SerializedName("AvailableIPCnt") - private Integer availableIPCnt; + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getSubnetName() { + return subnetName; + } - public String getSubnetId() { - return subnetId; - } + public void setSubnetName(String subnetName) { + this.subnetName = subnetName; + } + + public String getIdcId() { + return idcId; + } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } + public void setIdcId(String idcId) { + this.idcId = idcId; + } + + public String getCIDR() { + return cidr; + } - public String getSubnetName() { - return subnetName; - } + public void setCIDR(String cidr) { + this.cidr = cidr; + } + + public Integer getCreateTime() { + return createTime; + } - public void setSubnetName(String subnetName) { - this.subnetName = subnetName; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getComment() { + return comment; + } - public String getIdcId() { - return idcId; - } + public void setComment(String comment) { + this.comment = comment; + } + + public Integer getTotalIpCnt() { + return totalIpCnt; + } - public void setIdcId(String idcId) { - this.idcId = idcId; - } + public void setTotalIpCnt(Integer totalIpCnt) { + this.totalIpCnt = totalIpCnt; + } + + public Integer getAvailableIPCnt() { + return availableIPCnt; + } - public String getCIDR() { - return cidr; + public void setAvailableIPCnt(Integer availableIPCnt) { + this.availableIPCnt = availableIPCnt; + } + } +} - public void setCIDR(String cidr) { - this.cidr = cidr; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public String getComment() { - return comment; - } - public void setComment(String comment) { - this.comment = comment; - } - public Integer getTotalIpCnt() { - return totalIpCnt; - } - public void setTotalIpCnt(Integer totalIpCnt) { - this.totalIpCnt = totalIpCnt; - } - public Integer getAvailableIPCnt() { - return availableIPCnt; - } - public void setAvailableIPCnt(Integer availableIPCnt) { - this.availableIPCnt = availableIPCnt; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostISPRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostISPRequest.java index 6a6dd348..ccb11872 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostISPRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostISPRequest.java @@ -1,36 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class DescribeUEcVHostISPRequest extends Request { - /** 运营商名称 */ + + + /** + * 运营商名称 + */ @UCloudParam("IspName") private String ispName; - - /** 省份 */ + + + + /** + * 省份 + */ @UCloudParam("Province") private String province; - - /** 城市 */ + + + + /** + * 城市 + */ @UCloudParam("City") private String city; - + + public String getIspName() { return ispName; } @@ -38,7 +57,7 @@ public String getIspName() { public void setIspName(String ispName) { this.ispName = ispName; } - + public String getProvince() { return province; } @@ -46,7 +65,7 @@ public String getProvince() { public void setProvince(String province) { this.province = province; } - + public String getCity() { return city; } @@ -54,4 +73,14 @@ public String getCity() { public void setCity(String city) { this.city = city; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostISPResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostISPResponse.java index 5c01980e..e519f800 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostISPResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostISPResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUEcVHostISPResponse extends Response { - /** 节点运营商列表 */ + + + /** + * 节点运营商列表 + */ @SerializedName("NodeIspList") private List nodeIspList; - + + public List getNodeIspList() { return nodeIspList; } @@ -32,67 +41,97 @@ public List getNodeIspList() { public void setNodeIspList(List nodeIspList) { this.nodeIspList = nodeIspList; } + + public static class NodeIspList extends Response { + + + /** + * 省份 + */ + @SerializedName("Province") + private String province; + + + + /** + * 城市 + */ + @SerializedName("City") + private String city; + + + + /** + * 线路类型 + */ + @SerializedName("LineType") + private String lineType; + + + + /** + * 机房运营商名称 + */ + @SerializedName("IspName") + private String ispName; + + + + /** + * 机房名称 + */ + @SerializedName("IdcName") + private String idcName; + + + public String getProvince() { + return province; + } - public static class NodeIspList extends Response { - - /** 省份 */ - @SerializedName("Province") - private String province; - - /** 城市 */ - @SerializedName("City") - private String city; + public void setProvince(String province) { + this.province = province; + } + + public String getCity() { + return city; + } - /** 线路类型 */ - @SerializedName("LineType") - private String lineType; + public void setCity(String city) { + this.city = city; + } + + public String getLineType() { + return lineType; + } - /** 机房运营商名称 */ - @SerializedName("IspName") - private String ispName; + public void setLineType(String lineType) { + this.lineType = lineType; + } + + public String getIspName() { + return ispName; + } - /** 机房名称 */ - @SerializedName("IdcName") - private String idcName; + public void setIspName(String ispName) { + this.ispName = ispName; + } + + public String getIdcName() { + return idcName; + } - public String getProvince() { - return province; + public void setIdcName(String idcName) { + this.idcName = idcName; + } + } +} - public void setProvince(String province) { - this.province = province; - } - public String getCity() { - return city; - } - public void setCity(String city) { - this.city = city; - } - public String getLineType() { - return lineType; - } - public void setLineType(String lineType) { - this.lineType = lineType; - } - public String getIspName() { - return ispName; - } - public void setIspName(String ispName) { - this.ispName = ispName; - } - public String getIdcName() { - return idcName; - } - public void setIdcName(String idcName) { - this.idcName = idcName; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostRequest.java index cc54defd..ae776cae 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostRequest.java @@ -1,48 +1,71 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.uec.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.uec.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class DescribeUEcVHostRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** Idc机房id。默认全部机房 */ + + + + /** + * Idc机房id。默认全部机房 + */ @UCloudParam("IdcId") private List idcId; - - /** 节点id,创建节点时生成的id。默认全部节点 */ + + + + /** + * 节点id,创建节点时生成的id。默认全部节点 + */ @UCloudParam("NodeId") private List nodeId; - - /** 数据偏移量,默认0,非负整数 */ + + + + /** + * 数据偏移量,默认0,非负整数 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度, 默认20,非负整数 */ + + + + /** + * 返回数据长度, 默认20,非负整数 + */ @UCloudParam("Limit") private Integer limit; - + + public String getProjectId() { return projectId; } @@ -50,7 +73,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getIdcId() { return idcId; } @@ -58,7 +81,7 @@ public List getIdcId() { public void setIdcId(List idcId) { this.idcId = idcId; } - + public List getNodeId() { return nodeId; } @@ -66,7 +89,7 @@ public List getNodeId() { public void setNodeId(List nodeId) { this.nodeId = nodeId; } - + public Integer getOffset() { return offset; } @@ -74,7 +97,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -82,4 +105,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostResponse.java index b797d9f6..fee798b8 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUEcVHostResponse extends Response { - /** 满足条件的节点总数 */ + + + /** + * 满足条件的节点总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 节点列表 */ + + + + /** + * 节点列表 + */ @SerializedName("NodeList") private List nodeList; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getNodeList() { return nodeList; } @@ -44,298 +57,404 @@ public List getNodeList() { public void setNodeList(List nodeList) { this.nodeList = nodeList; } + + public static class NodeInfo extends Response { + + + /** + * 节点名称 + */ + @SerializedName("NodeName") + private String nodeName; + + + + /** + * 节点ID + */ + @SerializedName("NodeId") + private String nodeId; + + + + /** + * Cpu核数 + */ + @SerializedName("CoreNum") + private Integer coreNum; + + + + /** + * 节点内存大小,单位GB + */ + @SerializedName("MemSize") + private Integer memSize; + + + + /** + * 系统盘大小, 单位GB + */ + @SerializedName("SysDiskSize") + private Integer sysDiskSize; + + + + /** + * 数据盘大小, 单位GB + */ + @SerializedName("DiskSize") + private Integer diskSize; + + + + /** + * 节点状态,1部署中,2待启动,3启动中,4运行中,5正在停止,6已停止,7正在更新,8正在重启,9正在删除, 10已经删除,11异常 + */ + @SerializedName("State") + private Integer state; + + + + /** + * 节点带宽限制, 单位Mbs + */ + @SerializedName("NetLimit") + private Integer netLimit; + + + + /** + * 机房ID + */ + @SerializedName("IdcId") + private String idcId; + + + + /** + * 机房名称 + */ + @SerializedName("OcName") + private String ocName; + + + + /** + * 省份 + */ + @SerializedName("Province") + private String province; + + + + /** + * 城市 + */ + @SerializedName("City") + private String city; + + + + /** + * 运营商类型: 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 + */ + @SerializedName("Type") + private Integer type; + + + + /** + * 付费类型:1按时, 2按月,3按年 + */ + @SerializedName("ChargeType") + private Integer chargeType; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 过期时间 + */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + + + /** + * 镜像名称 + */ + @SerializedName("ImageName") + private String imageName; + + + + /** + * 外网ip集合(详情参考NodeIpList) + */ + @SerializedName("NodeIpList") + private List nodeIpList; + + + + /** + * 防火墙Id + */ + @SerializedName("FirewallId") + private String firewallId; + + + + /** + * 机器类型(normal-经济型,hf-标准型,g-GPU型) + */ + @SerializedName("ProductType") + private String productType; + + + + /** + * 内网ip列表 + */ + @SerializedName("InnerIps") + private List innerIps; + + + public String getNodeName() { + return nodeName; + } - public static class NodeInfo extends Response { - - /** 节点名称 */ - @SerializedName("NodeName") - private String nodeName; - - /** 节点ID */ - @SerializedName("NodeId") - private String nodeId; - - /** Cpu核数 */ - @SerializedName("CoreNum") - private Integer coreNum; - - /** 节点内存大小,单位GB */ - @SerializedName("MemSize") - private Integer memSize; - - /** 系统盘大小, 单位GB */ - @SerializedName("SysDiskSize") - private Integer sysDiskSize; - - /** 数据盘大小, 单位GB */ - @SerializedName("DiskSize") - private Integer diskSize; - - /** 节点状态,1部署中,2待启动,3启动中,4运行中,5正在停止,6已停止,7正在更新,8正在重启,9正在删除, 10已经删除,11异常 */ - @SerializedName("State") - private Integer state; - - /** 节点带宽限制, 单位Mbs */ - @SerializedName("NetLimit") - private Integer netLimit; - - /** 机房ID */ - @SerializedName("IdcId") - private String idcId; - - /** 机房名称 */ - @SerializedName("OcName") - private String ocName; - - /** 省份 */ - @SerializedName("Province") - private String province; - - /** 城市 */ - @SerializedName("City") - private String city; - - /** 运营商类型: 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 */ - @SerializedName("Type") - private Integer type; - - /** 付费类型:1按时, 2按月,3按年 */ - @SerializedName("ChargeType") - private Integer chargeType; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 过期时间 */ - @SerializedName("ExpiredTime") - private Integer expiredTime; - - /** 镜像名称 */ - @SerializedName("ImageName") - private String imageName; - - /** 外网ip集合(详情参考NodeIpList) */ - @SerializedName("NodeIpList") - private List nodeIpList; - - /** 防火墙Id */ - @SerializedName("FirewallId") - private String firewallId; - - /** 机器类型(normal-经济型,hf-标准型,g-GPU型) */ - @SerializedName("ProductType") - private String productType; - - /** 内网ip列表 */ - @SerializedName("InnerIps") - private List innerIps; - - public String getNodeName() { - return nodeName; - } - - public void setNodeName(String nodeName) { - this.nodeName = nodeName; - } - - public String getNodeId() { - return nodeId; - } - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - public Integer getCoreNum() { - return coreNum; - } - - public void setCoreNum(Integer coreNum) { - this.coreNum = coreNum; - } - - public Integer getMemSize() { - return memSize; - } - - public void setMemSize(Integer memSize) { - this.memSize = memSize; - } - - public Integer getSysDiskSize() { - return sysDiskSize; - } - - public void setSysDiskSize(Integer sysDiskSize) { - this.sysDiskSize = sysDiskSize; - } - - public Integer getDiskSize() { - return diskSize; - } - - public void setDiskSize(Integer diskSize) { - this.diskSize = diskSize; - } - - public Integer getState() { - return state; - } - - public void setState(Integer state) { - this.state = state; - } - - public Integer getNetLimit() { - return netLimit; - } - - public void setNetLimit(Integer netLimit) { - this.netLimit = netLimit; - } - - public String getIdcId() { - return idcId; - } - - public void setIdcId(String idcId) { - this.idcId = idcId; - } - - public String getOcName() { - return ocName; - } - - public void setOcName(String ocName) { - this.ocName = ocName; - } + public void setNodeName(String nodeName) { + this.nodeName = nodeName; + } + + public String getNodeId() { + return nodeId; + } - public String getProvince() { - return province; - } + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public Integer getCoreNum() { + return coreNum; + } - public void setProvince(String province) { - this.province = province; - } + public void setCoreNum(Integer coreNum) { + this.coreNum = coreNum; + } + + public Integer getMemSize() { + return memSize; + } - public String getCity() { - return city; - } + public void setMemSize(Integer memSize) { + this.memSize = memSize; + } + + public Integer getSysDiskSize() { + return sysDiskSize; + } - public void setCity(String city) { - this.city = city; - } + public void setSysDiskSize(Integer sysDiskSize) { + this.sysDiskSize = sysDiskSize; + } + + public Integer getDiskSize() { + return diskSize; + } - public Integer getType() { - return type; - } + public void setDiskSize(Integer diskSize) { + this.diskSize = diskSize; + } + + public Integer getState() { + return state; + } - public void setType(Integer type) { - this.type = type; - } + public void setState(Integer state) { + this.state = state; + } + + public Integer getNetLimit() { + return netLimit; + } - public Integer getChargeType() { - return chargeType; - } + public void setNetLimit(Integer netLimit) { + this.netLimit = netLimit; + } + + public String getIdcId() { + return idcId; + } - public void setChargeType(Integer chargeType) { - this.chargeType = chargeType; - } + public void setIdcId(String idcId) { + this.idcId = idcId; + } + + public String getOcName() { + return ocName; + } - public Integer getCreateTime() { - return createTime; - } + public void setOcName(String ocName) { + this.ocName = ocName; + } + + public String getProvince() { + return province; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setProvince(String province) { + this.province = province; + } + + public String getCity() { + return city; + } - public Integer getExpiredTime() { - return expiredTime; - } + public void setCity(String city) { + this.city = city; + } + + public Integer getType() { + return type; + } - public void setExpiredTime(Integer expiredTime) { - this.expiredTime = expiredTime; - } + public void setType(Integer type) { + this.type = type; + } + + public Integer getChargeType() { + return chargeType; + } - public String getImageName() { - return imageName; - } + public void setChargeType(Integer chargeType) { + this.chargeType = chargeType; + } + + public Integer getCreateTime() { + return createTime; + } - public void setImageName(String imageName) { - this.imageName = imageName; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } - public List getNodeIpList() { - return nodeIpList; - } + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public String getImageName() { + return imageName; + } - public void setNodeIpList(List nodeIpList) { - this.nodeIpList = nodeIpList; - } + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public List getNodeIpList() { + return nodeIpList; + } - public String getFirewallId() { - return firewallId; - } + public void setNodeIpList(List nodeIpList) { + this.nodeIpList = nodeIpList; + } + + public String getFirewallId() { + return firewallId; + } - public void setFirewallId(String firewallId) { - this.firewallId = firewallId; - } + public void setFirewallId(String firewallId) { + this.firewallId = firewallId; + } + + public String getProductType() { + return productType; + } - public String getProductType() { - return productType; - } + public void setProductType(String productType) { + this.productType = productType; + } + + public List getInnerIps() { + return innerIps; + } - public void setProductType(String productType) { - this.productType = productType; - } + public void setInnerIps(List innerIps) { + this.innerIps = innerIps; + } + + } + public static class NodeIpList extends Response { + + + /** + * 外网ip + */ + @SerializedName("Ip") + private String ip; + + + + /** + * 运营商 + */ + @SerializedName("Isp") + private String isp; + + + + /** + * 运营商名称 + */ + @SerializedName("IspName") + private String ispName; + + + public String getIp() { + return ip; + } - public List getInnerIps() { - return innerIps; - } + public void setIp(String ip) { + this.ip = ip; + } + + public String getIsp() { + return isp; + } - public void setInnerIps(List innerIps) { - this.innerIps = innerIps; - } + public void setIsp(String isp) { + this.isp = isp; + } + + public String getIspName() { + return ispName; } - public static class NodeIpList extends Response { + public void setIspName(String ispName) { + this.ispName = ispName; + } + + } +} - /** 外网ip */ - @SerializedName("Ip") - private String ip; - /** 运营商 */ - @SerializedName("Isp") - private String isp; - /** 运营商名称 */ - @SerializedName("IspName") - private String ispName; - public String getIp() { - return ip; - } - public void setIp(String ip) { - this.ip = ip; - } - public String getIsp() { - return isp; - } - public void setIsp(String isp) { - this.isp = isp; - } - public String getIspName() { - return ispName; - } - public void setIspName(String ispName) { - this.ispName = ispName; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderLogRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderLogRequest.java index 1f5fa3f4..8f6a67d7 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderLogRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderLogRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUEcHolderLogRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 容器名称 */ + + + + /** + * 容器名称 + */ @NotEmpty @UCloudParam("PackName") private String packName; - - /** 容器组资源id */ + + + + /** + * 容器组资源id + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - + + public String getProjectId() { return projectId; } @@ -44,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPackName() { return packName; } @@ -52,7 +67,7 @@ public String getPackName() { public void setPackName(String packName) { this.packName = packName; } - + public String getResourceId() { return resourceId; } @@ -60,4 +75,14 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderLogResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderLogResponse.java index b67301df..a243e72b 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderLogResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderLogResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUEcHolderLogResponse extends Response { - /** 返回的日志数据 */ + + + /** + * 返回的日志数据 + */ @SerializedName("Data") private String data; - + + public String getData() { return data; } @@ -31,4 +41,14 @@ public String getData() { public void setData(String data) { this.data = data; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderMetricsRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderMetricsRequest.java index 47268301..75e717d5 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderMetricsRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderMetricsRequest.java @@ -1,56 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUEcHolderMetricsRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 容器名称 */ + + + + /** + * 容器名称 + */ @NotEmpty @UCloudParam("PackName") private String packName; - - /** n为0 CPU利用率, 1内存使用率, 2网卡出带宽, 3网卡入带宽, 4网卡出包数, 5网卡入包数 */ + + + + /** + * n为0 CPU利用率, 1内存使用率, 2网卡出带宽, 3网卡入带宽, 4网卡出包数, 5网卡入包数 + */ @NotEmpty @UCloudParam("Type") private List type; - - /** 容器组资源id */ + + + + /** + * 容器组资源id + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - - /** 开始时间 */ + + + + /** + * 开始时间 + */ @UCloudParam("StartTime") private Integer startTime; - - /** 结束时间 */ + + + + /** + * 结束时间 + */ @UCloudParam("EndTime") private Integer endTime; - + + public String getProjectId() { return projectId; } @@ -58,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPackName() { return packName; } @@ -66,7 +92,7 @@ public String getPackName() { public void setPackName(String packName) { this.packName = packName; } - + public List getType() { return type; } @@ -74,7 +100,7 @@ public List getType() { public void setType(List type) { this.type = type; } - + public String getResourceId() { return resourceId; } @@ -82,7 +108,7 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } - + public Integer getStartTime() { return startTime; } @@ -90,7 +116,7 @@ public Integer getStartTime() { public void setStartTime(Integer startTime) { this.startTime = startTime; } - + public Integer getEndTime() { return endTime; } @@ -98,4 +124,14 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderMetricsResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderMetricsResponse.java index 360c0ac3..879982ee 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderMetricsResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderMetricsResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUEcHolderMetricsResponse extends Response { - /** 获得的监控数据(详情参考MetricisDataSet) */ + + + /** + * 获得的监控数据(详情参考MetricisDataSet) + */ @SerializedName("DataSets") private MetricisDataSet dataSets; - + + public MetricisDataSet getDataSets() { return dataSets; } @@ -32,106 +41,148 @@ public MetricisDataSet getDataSets() { public void setDataSets(MetricisDataSet dataSets) { this.dataSets = dataSets; } + + public static class MetricisDataSet extends Response { + + + /** + * cpu利用率(详情参考MonitorInfo) + */ + @SerializedName("CPUUtilization") + private List cpuUtilization; + + + + /** + * 内存使用率(详情参考MonitorInfo) + */ + @SerializedName("MemUtilization") + private List memUtilization; + + + + /** + * 网卡出包数(详情参考MonitorInfo) + */ + @SerializedName("NetPacketOut") + private List netPacketOut; + + + + /** + * 网卡入包数(详情参考MonitorInfo) + */ + @SerializedName("NetPacketIn") + private List netPacketIn; + + + + /** + * 网卡出带宽(详情参考MonitorInfo) + */ + @SerializedName("NICOut") + private List nicOut; + + + + /** + * 网卡入带宽(详情参考MonitorInfo) + */ + @SerializedName("NICIn") + private List nicIn; + + + public List getCPUUtilization() { + return cpuUtilization; + } - public static class MetricisDataSet extends Response { - - /** cpu利用率(详情参考MonitorInfo) */ - @SerializedName("CPUUtilization") - private List cpuUtilization; - - /** 内存使用率(详情参考MonitorInfo) */ - @SerializedName("MemUtilization") - private List memUtilization; - - /** 网卡出包数(详情参考MonitorInfo) */ - @SerializedName("NetPacketOut") - private List netPacketOut; - - /** 网卡入包数(详情参考MonitorInfo) */ - @SerializedName("NetPacketIn") - private List netPacketIn; - - /** 网卡出带宽(详情参考MonitorInfo) */ - @SerializedName("NICOut") - private List nicOut; - - /** 网卡入带宽(详情参考MonitorInfo) */ - @SerializedName("NICIn") - private List nicIn; - - public List getCPUUtilization() { - return cpuUtilization; - } - - public void setCPUUtilization(List cpuUtilization) { - this.cpuUtilization = cpuUtilization; - } - - public List getMemUtilization() { - return memUtilization; - } + public void setCPUUtilization(List cpuUtilization) { + this.cpuUtilization = cpuUtilization; + } + + public List getMemUtilization() { + return memUtilization; + } - public void setMemUtilization(List memUtilization) { - this.memUtilization = memUtilization; - } + public void setMemUtilization(List memUtilization) { + this.memUtilization = memUtilization; + } + + public List getNetPacketOut() { + return netPacketOut; + } - public List getNetPacketOut() { - return netPacketOut; - } + public void setNetPacketOut(List netPacketOut) { + this.netPacketOut = netPacketOut; + } + + public List getNetPacketIn() { + return netPacketIn; + } - public void setNetPacketOut(List netPacketOut) { - this.netPacketOut = netPacketOut; - } + public void setNetPacketIn(List netPacketIn) { + this.netPacketIn = netPacketIn; + } + + public List getNICOut() { + return nicOut; + } - public List getNetPacketIn() { - return netPacketIn; - } + public void setNICOut(List nicOut) { + this.nicOut = nicOut; + } + + public List getNICIn() { + return nicIn; + } - public void setNetPacketIn(List netPacketIn) { - this.netPacketIn = netPacketIn; - } + public void setNICIn(List nicIn) { + this.nicIn = nicIn; + } + + } + public static class MonitorInfo extends Response { + + + /** + * 时间戳 + */ + @SerializedName("TimeStamp") + private Integer timeStamp; + + + + /** + * 值 + */ + @SerializedName("Value") + private Integer value; + + + public Integer getTimeStamp() { + return timeStamp; + } - public List getNICOut() { - return nicOut; - } + public void setTimeStamp(Integer timeStamp) { + this.timeStamp = timeStamp; + } + + public Integer getValue() { + return value; + } - public void setNICOut(List nicOut) { - this.nicOut = nicOut; + public void setValue(Integer value) { + this.value = value; + } + } +} - public List getNICIn() { - return nicIn; - } - public void setNICIn(List nicIn) { - this.nicIn = nicIn; - } - } - public static class MonitorInfo extends Response { - /** 时间戳 */ - @SerializedName("TimeStamp") - private Integer timeStamp; - /** 值 */ - @SerializedName("Value") - private Integer value; - public Integer getTimeStamp() { - return timeStamp; - } - public void setTimeStamp(Integer timeStamp) { - this.timeStamp = timeStamp; - } - public Integer getValue() { - return value; - } - public void setValue(Integer value) { - this.value = value; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCCutInfoRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCCutInfoRequest.java index 094ef173..890eb9cb 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCCutInfoRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCCutInfoRequest.java @@ -1,19 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class GetUEcIDCCutInfoRequest extends Request { + + +} + + + + + + + + -public class GetUEcIDCCutInfoRequest extends Request {} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCCutInfoResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCCutInfoResponse.java index 7e80d09f..68c862fd 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCCutInfoResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCCutInfoResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUEcIDCCutInfoResponse extends Response { - /** 机房割接信息 */ + + + /** + * 机房割接信息 + */ @SerializedName("IDCCutInfo") private List idcCutInfo; - - /** 满足条件的机房总数 */ + + + + /** + * 满足条件的机房总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getIDCCutInfo() { return idcCutInfo; } @@ -36,7 +49,7 @@ public List getIDCCutInfo() { public void setIDCCutInfo(List idcCutInfo) { this.idcCutInfo = idcCutInfo; } - + public Integer getTotalCount() { return totalCount; } @@ -44,118 +57,164 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class IDCCutInfo extends Response { + + + /** + * 机房名称 + */ + @SerializedName("IDCName") + private String idcName; + + + + /** + * 省份 + */ + @SerializedName("Province") + private String province; + + + + /** + * 城市 + */ + @SerializedName("City") + private String city; + + + + /** + * 割接开始时间 + */ + @SerializedName("StartTime") + private Integer startTime; + + + + /** + * 割接结束时间 + */ + @SerializedName("EndTime") + private Integer endTime; + + + + /** + * 割接类型(中断、抖动、断电) + */ + @SerializedName("CutType") + private String cutType; + + + + /** + * 受影响的资源信息列表 + */ + @SerializedName("ResourceSet") + private List resourceSet; + + + public String getIDCName() { + return idcName; + } - public static class IDCCutInfo extends Response { - - /** 机房名称 */ - @SerializedName("IDCName") - private String idcName; - - /** 省份 */ - @SerializedName("Province") - private String province; - - /** 城市 */ - @SerializedName("City") - private String city; - - /** 割接开始时间 */ - @SerializedName("StartTime") - private Integer startTime; - - /** 割接结束时间 */ - @SerializedName("EndTime") - private Integer endTime; - - /** 割接类型(中断、抖动、断电) */ - @SerializedName("CutType") - private String cutType; - - /** 受影响的资源信息列表 */ - @SerializedName("ResourceSet") - private List resourceSet; - - public String getIDCName() { - return idcName; - } - - public void setIDCName(String idcName) { - this.idcName = idcName; - } - - public String getProvince() { - return province; - } - - public void setProvince(String province) { - this.province = province; - } + public void setIDCName(String idcName) { + this.idcName = idcName; + } + + public String getProvince() { + return province; + } - public String getCity() { - return city; - } + public void setProvince(String province) { + this.province = province; + } + + public String getCity() { + return city; + } - public void setCity(String city) { - this.city = city; - } + public void setCity(String city) { + this.city = city; + } + + public Integer getStartTime() { + return startTime; + } - public Integer getStartTime() { - return startTime; - } + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } - public void setStartTime(Integer startTime) { - this.startTime = startTime; - } + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public String getCutType() { + return cutType; + } - public Integer getEndTime() { - return endTime; - } + public void setCutType(String cutType) { + this.cutType = cutType; + } + + public List getResourceSet() { + return resourceSet; + } - public void setEndTime(Integer endTime) { - this.endTime = endTime; - } + public void setResourceSet(List resourceSet) { + this.resourceSet = resourceSet; + } + + } + public static class ResourceSet extends Response { + + + /** + * 节点id + */ + @SerializedName("NodeId") + private String nodeId; + + + + /** + * 机器外网ip集合 + */ + @SerializedName("OuterIps") + private List outerIps; + + + public String getNodeId() { + return nodeId; + } - public String getCutType() { - return cutType; - } + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public List getOuterIps() { + return outerIps; + } - public void setCutType(String cutType) { - this.cutType = cutType; + public void setOuterIps(List outerIps) { + this.outerIps = outerIps; + } + } +} - public List getResourceSet() { - return resourceSet; - } - public void setResourceSet(List resourceSet) { - this.resourceSet = resourceSet; - } - } - public static class ResourceSet extends Response { - /** 节点id */ - @SerializedName("NodeId") - private String nodeId; - /** 机器外网ip集合 */ - @SerializedName("OuterIps") - private List outerIps; - public String getNodeId() { - return nodeId; - } - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - public List getOuterIps() { - return outerIps; - } - public void setOuterIps(List outerIps) { - this.outerIps = outerIps; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCVHostDataRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCVHostDataRequest.java index 4c3c0c01..4fed9440 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCVHostDataRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCVHostDataRequest.java @@ -1,51 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUEcIDCVHostDataRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 节点资源id;n为0,1,2... */ + + + + /** + * 节点资源id;n为0,1,2... + */ @NotEmpty @UCloudParam("NodeId") private List nodeId; - - /** 监控数据类型;n为0,1,2,3,4...,9 */ + + + + /** + * 监控数据类型;n为0,1,2,3,4...,9 + */ @NotEmpty @UCloudParam("Type") private List type; - - /** 开始时间戳 */ + + + + /** + * 开始时间戳 + */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 结束时间戳 */ + + + + /** + * 结束时间戳 + */ @UCloudParam("EndTime") private Integer endTime; - + + public String getProjectId() { return projectId; } @@ -53,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getNodeId() { return nodeId; } @@ -61,7 +83,7 @@ public List getNodeId() { public void setNodeId(List nodeId) { this.nodeId = nodeId; } - + public List getType() { return type; } @@ -69,7 +91,7 @@ public List getType() { public void setType(List type) { this.type = type; } - + public Integer getBeginTime() { return beginTime; } @@ -77,7 +99,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -85,4 +107,14 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCVHostDataResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCVHostDataResponse.java index 634376e7..60d46858 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCVHostDataResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCVHostDataResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUEcIDCVHostDataResponse extends Response { - /** 监控数据集合 */ + + + /** + * 监控数据集合 + */ @SerializedName("DataSets") private DataSet dataSets; - + + public DataSet getDataSets() { return dataSets; } @@ -32,154 +41,212 @@ public DataSet getDataSets() { public void setDataSets(DataSet dataSets) { this.dataSets = dataSets; } + + public static class DataSet extends Response { + + + /** + * cpu使用率 + */ + @SerializedName("CPUUtilization") + private List cpuUtilization; + + + + /** + * 内存使用率 + */ + @SerializedName("MemUtilization") + private List memUtilization; + + + + /** + * 网卡出带宽 + */ + @SerializedName("NICOut") + private List nicOut; + + + + /** + * 网卡入带宽 + */ + @SerializedName("NICIn") + private List nicIn; + + + + /** + * 网卡出包量 + */ + @SerializedName("NetPacketOut") + private List netPacketOut; + + + + /** + * 网卡入包量 + */ + @SerializedName("NetPacketIn") + private List netPacketIn; + + + + /** + * 磁盘读取量 + */ + @SerializedName("IORead") + private List ioRead; + + + + /** + * 磁盘写入量 + */ + @SerializedName("IOWrite") + private List ioWrite; + + + + /** + * 磁盘读取次数 + */ + @SerializedName("DiskReadOps") + private List diskReadOps; + + + + /** + * 磁盘写入次数 + */ + @SerializedName("DiskWriteOps") + private List diskWriteOps; + + + public List getCPUUtilization() { + return cpuUtilization; + } - public static class DataSet extends Response { - - /** cpu使用率 */ - @SerializedName("CPUUtilization") - private List cpuUtilization; - - /** 内存使用率 */ - @SerializedName("MemUtilization") - private List memUtilization; - - /** 网卡出带宽 */ - @SerializedName("NICOut") - private List nicOut; - - /** 网卡入带宽 */ - @SerializedName("NICIn") - private List nicIn; - - /** 网卡出包量 */ - @SerializedName("NetPacketOut") - private List netPacketOut; - - /** 网卡入包量 */ - @SerializedName("NetPacketIn") - private List netPacketIn; - - /** 磁盘读取量 */ - @SerializedName("IORead") - private List ioRead; - - /** 磁盘写入量 */ - @SerializedName("IOWrite") - private List ioWrite; - - /** 磁盘读取次数 */ - @SerializedName("DiskReadOps") - private List diskReadOps; - - /** 磁盘写入次数 */ - @SerializedName("DiskWriteOps") - private List diskWriteOps; - - public List getCPUUtilization() { - return cpuUtilization; - } - - public void setCPUUtilization(List cpuUtilization) { - this.cpuUtilization = cpuUtilization; - } - - public List getMemUtilization() { - return memUtilization; - } - - public void setMemUtilization(List memUtilization) { - this.memUtilization = memUtilization; - } - - public List getNICOut() { - return nicOut; - } - - public void setNICOut(List nicOut) { - this.nicOut = nicOut; - } - - public List getNICIn() { - return nicIn; - } + public void setCPUUtilization(List cpuUtilization) { + this.cpuUtilization = cpuUtilization; + } + + public List getMemUtilization() { + return memUtilization; + } - public void setNICIn(List nicIn) { - this.nicIn = nicIn; - } + public void setMemUtilization(List memUtilization) { + this.memUtilization = memUtilization; + } + + public List getNICOut() { + return nicOut; + } - public List getNetPacketOut() { - return netPacketOut; - } + public void setNICOut(List nicOut) { + this.nicOut = nicOut; + } + + public List getNICIn() { + return nicIn; + } - public void setNetPacketOut(List netPacketOut) { - this.netPacketOut = netPacketOut; - } + public void setNICIn(List nicIn) { + this.nicIn = nicIn; + } + + public List getNetPacketOut() { + return netPacketOut; + } - public List getNetPacketIn() { - return netPacketIn; - } + public void setNetPacketOut(List netPacketOut) { + this.netPacketOut = netPacketOut; + } + + public List getNetPacketIn() { + return netPacketIn; + } - public void setNetPacketIn(List netPacketIn) { - this.netPacketIn = netPacketIn; - } + public void setNetPacketIn(List netPacketIn) { + this.netPacketIn = netPacketIn; + } + + public List getIORead() { + return ioRead; + } - public List getIORead() { - return ioRead; - } + public void setIORead(List ioRead) { + this.ioRead = ioRead; + } + + public List getIOWrite() { + return ioWrite; + } - public void setIORead(List ioRead) { - this.ioRead = ioRead; - } + public void setIOWrite(List ioWrite) { + this.ioWrite = ioWrite; + } + + public List getDiskReadOps() { + return diskReadOps; + } - public List getIOWrite() { - return ioWrite; - } + public void setDiskReadOps(List diskReadOps) { + this.diskReadOps = diskReadOps; + } + + public List getDiskWriteOps() { + return diskWriteOps; + } - public void setIOWrite(List ioWrite) { - this.ioWrite = ioWrite; - } + public void setDiskWriteOps(List diskWriteOps) { + this.diskWriteOps = diskWriteOps; + } + + } + public static class MonitorInfo extends Response { + + + /** + * 时间戳 + */ + @SerializedName("TimeStamp") + private Integer timeStamp; + + + + /** + * 值 + */ + @SerializedName("Value") + private Integer value; + + + public Integer getTimeStamp() { + return timeStamp; + } - public List getDiskReadOps() { - return diskReadOps; - } + public void setTimeStamp(Integer timeStamp) { + this.timeStamp = timeStamp; + } + + public Integer getValue() { + return value; + } - public void setDiskReadOps(List diskReadOps) { - this.diskReadOps = diskReadOps; + public void setValue(Integer value) { + this.value = value; + } + } +} - public List getDiskWriteOps() { - return diskWriteOps; - } - public void setDiskWriteOps(List diskWriteOps) { - this.diskWriteOps = diskWriteOps; - } - } - public static class MonitorInfo extends Response { - /** 时间戳 */ - @SerializedName("TimeStamp") - private Integer timeStamp; - /** 值 */ - @SerializedName("Value") - private Integer value; - public Integer getTimeStamp() { - return timeStamp; - } - public void setTimeStamp(Integer timeStamp) { - this.timeStamp = timeStamp; - } - public Integer getValue() { - return value; - } - public void setValue(Integer value) { - this.value = value; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcImageRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcImageRequest.java index 6d493d71..1cd2f529 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcImageRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcImageRequest.java @@ -1,43 +1,63 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class GetUEcImageRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 镜像类型:1标准镜像,2行业镜像,3自定义镜像 */ + + + + /** + * 镜像类型:1标准镜像,2行业镜像,3自定义镜像 + */ @UCloudParam("ImageType") private String imageType; - - /** 数据偏移量,默认0,非负整数 */ + + + + /** + * 数据偏移量,默认0,非负整数 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度, 默认20,非负整数 */ + + + + /** + * 返回数据长度, 默认20,非负整数 + */ @UCloudParam("Limit") private Integer limit; - + + public String getProjectId() { return projectId; } @@ -45,7 +65,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageType() { return imageType; } @@ -53,7 +73,7 @@ public String getImageType() { public void setImageType(String imageType) { this.imageType = imageType; } - + public Integer getOffset() { return offset; } @@ -61,7 +81,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -69,4 +89,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcImageResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcImageResponse.java index 682c0943..ea35c66f 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcImageResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcImageResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUEcImageResponse extends Response { - /** 获取的镜像信息,具体参考下面ImageInfo */ + + + /** + * 获取的镜像信息,具体参考下面ImageInfo + */ @SerializedName("ImageList") private List imageList; - - /** 镜像总数 */ + + + + /** + * 镜像总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getImageList() { return imageList; } @@ -36,7 +49,7 @@ public List getImageList() { public void setImageList(List imageList) { this.imageList = imageList; } - + public Integer getTotalCount() { return totalCount; } @@ -44,154 +57,212 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - - public static class DeployImageInfo extends Response { - - /** 机房ID */ - @SerializedName("IdcId") - private String idcId; - - /** 镜像状态 1-可用, 2-不可用, 3-获取中, 4-转换中, 5-部署中 */ - @SerializedName("State") - private Integer state; - - public String getIdcId() { - return idcId; - } - - public void setIdcId(String idcId) { - this.idcId = idcId; - } - - public Integer getState() { - return state; - } - - public void setState(Integer state) { - this.state = state; - } + + public static class DeployImageInfo extends Response { + + + /** + * 机房ID + */ + @SerializedName("IdcId") + private String idcId; + + + + /** + * 镜像状态 1-可用, 2-不可用, 3-获取中, 4-转换中, 5-部署中 + */ + @SerializedName("State") + private Integer state; + + + public String getIdcId() { + return idcId; } - public static class ImageInfo extends Response { - - /** 镜像ID */ - @SerializedName("ImageId") - private String imageId; - - /** 镜像名称 */ - @SerializedName("ImageName") - private String imageName; - - /** 镜像类型:1标准镜像,2行业镜像,3自定义镜像 */ - @SerializedName("ImageType") - private Integer imageType; - - /** 系统类型:unix, windows */ - @SerializedName("OcType") - private String ocType; - - /** 镜像描述 */ - @SerializedName("ImageDesc") - private String imageDesc; - - /** 镜像状态:镜像状态 1可用,2不可用,3制作中 */ - @SerializedName("State") - private Integer state; - - /** 镜像大小,单位GB */ - @SerializedName("ImageSize") - private Integer imageSize; - - /** 镜像创建时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 部署详情列表 */ - @SerializedName("DeployInfoList") - private List deployInfoList; - - /** 是否支持Gpu(1-支持,0-不支持) */ - @SerializedName("Gpu") - private Integer gpu; + public void setIdcId(String idcId) { + this.idcId = idcId; + } + + public Integer getState() { + return state; + } - public String getImageId() { - return imageId; + public void setState(Integer state) { + this.state = state; + } + } + public static class ImageInfo extends Response { + + + /** + * 镜像ID + */ + @SerializedName("ImageId") + private String imageId; + + + + /** + * 镜像名称 + */ + @SerializedName("ImageName") + private String imageName; + + + + /** + * 镜像类型:1标准镜像,2行业镜像,3自定义镜像 + */ + @SerializedName("ImageType") + private Integer imageType; + + + + /** + * 系统类型:unix, windows + */ + @SerializedName("OcType") + private String ocType; + + + + /** + * 镜像描述 + */ + @SerializedName("ImageDesc") + private String imageDesc; + + + + /** + * 镜像状态:镜像状态 1可用,2不可用,3制作中 + */ + @SerializedName("State") + private Integer state; + + + + /** + * 镜像大小,单位GB + */ + @SerializedName("ImageSize") + private Integer imageSize; + + + + /** + * 镜像创建时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 部署详情列表 + */ + @SerializedName("DeployInfoList") + private List deployInfoList; + + + + /** + * 是否支持Gpu(1-支持,0-不支持) + */ + @SerializedName("Gpu") + private Integer gpu; + + + public String getImageId() { + return imageId; + } - public void setImageId(String imageId) { - this.imageId = imageId; - } + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getImageName() { + return imageName; + } - public String getImageName() { - return imageName; - } + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public Integer getImageType() { + return imageType; + } - public void setImageName(String imageName) { - this.imageName = imageName; - } + public void setImageType(Integer imageType) { + this.imageType = imageType; + } + + public String getOcType() { + return ocType; + } - public Integer getImageType() { - return imageType; - } + public void setOcType(String ocType) { + this.ocType = ocType; + } + + public String getImageDesc() { + return imageDesc; + } - public void setImageType(Integer imageType) { - this.imageType = imageType; - } + public void setImageDesc(String imageDesc) { + this.imageDesc = imageDesc; + } + + public Integer getState() { + return state; + } - public String getOcType() { - return ocType; - } + public void setState(Integer state) { + this.state = state; + } + + public Integer getImageSize() { + return imageSize; + } - public void setOcType(String ocType) { - this.ocType = ocType; - } + public void setImageSize(Integer imageSize) { + this.imageSize = imageSize; + } + + public Integer getCreateTime() { + return createTime; + } - public String getImageDesc() { - return imageDesc; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public List getDeployInfoList() { + return deployInfoList; + } - public void setImageDesc(String imageDesc) { - this.imageDesc = imageDesc; - } + public void setDeployInfoList(List deployInfoList) { + this.deployInfoList = deployInfoList; + } + + public Integer getGpu() { + return gpu; + } - public Integer getState() { - return state; + public void setGpu(Integer gpu) { + this.gpu = gpu; + } + } +} - public void setState(Integer state) { - this.state = state; - } - public Integer getImageSize() { - return imageSize; - } - public void setImageSize(Integer imageSize) { - this.imageSize = imageSize; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public List getDeployInfoList() { - return deployInfoList; - } - public void setDeployInfoList(List deployInfoList) { - this.deployInfoList = deployInfoList; - } - public Integer getGpu() { - return gpu; - } - public void setGpu(Integer gpu) { - this.gpu = gpu; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcPodPriceRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcPodPriceRequest.java index e0c8d4da..fe90bf1a 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcPodPriceRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcPodPriceRequest.java @@ -1,58 +1,96 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUEcPodPriceRequest extends Request { - /** 机房id */ + + + /** + * 机房id + */ @NotEmpty @UCloudParam("IdcId") private String idcId; - - /** 容器组总Cpu核心数 */ + + + + /** + * 容器组总Cpu核心数 + */ @UCloudParam("CpuCore") private Double cpuCore; - - /** 容器组总内存大小(单位M) */ + + + + /** + * 容器组总内存大小(单位M) + */ @UCloudParam("MemSize") private Integer memSize; - - /** 支付类型(2按月,3按年,默认2) */ + + + + /** + * 支付类型(2按月,3按年,默认2) + */ @UCloudParam("ChargeType") private Integer chargeType; - - /** 月数或年数(默认值:1,当支付类型为按月时,默认值为0) */ + + + + /** + * 月数或年数(默认值:1,当支付类型为按月时,默认值为0) + */ @UCloudParam("ChargeQuantity") private Integer chargeQuantity; - - /** 产品类型(normal:标准型,hf:高性能型,默认:normal) */ + + + + /** + * 产品类型(normal:标准型,hf:高性能型,默认:normal) + */ @UCloudParam("ProductType") private String productType; - - /** 是否绑定外网IP(yes:是,no:否,默认:no) */ + + + + /** + * 是否绑定外网IP(yes:是,no:否,默认:no) + */ @UCloudParam("ElasticIp") private String elasticIp; - - /** 绑定的带宽,默认0,当绑定外网IP时默认1(单位M) */ + + + + /** + * 绑定的带宽,默认0,当绑定外网IP时默认1(单位M) + */ @UCloudParam("Bandwidth") private Integer bandwidth; - + + public String getIdcId() { return idcId; } @@ -60,7 +98,7 @@ public String getIdcId() { public void setIdcId(String idcId) { this.idcId = idcId; } - + public Double getCpuCore() { return cpuCore; } @@ -68,7 +106,7 @@ public Double getCpuCore() { public void setCpuCore(Double cpuCore) { this.cpuCore = cpuCore; } - + public Integer getMemSize() { return memSize; } @@ -76,7 +114,7 @@ public Integer getMemSize() { public void setMemSize(Integer memSize) { this.memSize = memSize; } - + public Integer getChargeType() { return chargeType; } @@ -84,7 +122,7 @@ public Integer getChargeType() { public void setChargeType(Integer chargeType) { this.chargeType = chargeType; } - + public Integer getChargeQuantity() { return chargeQuantity; } @@ -92,7 +130,7 @@ public Integer getChargeQuantity() { public void setChargeQuantity(Integer chargeQuantity) { this.chargeQuantity = chargeQuantity; } - + public String getProductType() { return productType; } @@ -100,7 +138,7 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } - + public String getElasticIp() { return elasticIp; } @@ -108,7 +146,7 @@ public String getElasticIp() { public void setElasticIp(String elasticIp) { this.elasticIp = elasticIp; } - + public Integer getBandwidth() { return bandwidth; } @@ -116,4 +154,14 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcPodPriceResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcPodPriceResponse.java index 274218ce..c3cda6e0 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcPodPriceResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcPodPriceResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUEcPodPriceResponse extends Response { - /** 容器组价格 */ + + + /** + * 容器组价格 + */ @SerializedName("HolderPrice") private Double holderPrice; - - /** IP和带宽价格 */ + + + + /** + * IP和带宽价格 + */ @SerializedName("IpPrice") private Double ipPrice; - + + public Double getHolderPrice() { return holderPrice; } @@ -35,7 +49,7 @@ public Double getHolderPrice() { public void setHolderPrice(Double holderPrice) { this.holderPrice = holderPrice; } - + public Double getIpPrice() { return ipPrice; } @@ -43,4 +57,14 @@ public Double getIpPrice() { public void setIpPrice(Double ipPrice) { this.ipPrice = ipPrice; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcUpgradePriceRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcUpgradePriceRequest.java index d8c7ec04..695b3f99 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcUpgradePriceRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcUpgradePriceRequest.java @@ -1,57 +1,88 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUEcUpgradePriceRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 虚拟机资源ID */ + + + + /** + * 虚拟机资源ID + */ @NotEmpty @UCloudParam("NodeId") private String nodeId; - - /** cpu核心数 */ + + + + /** + * cpu核心数 + */ @UCloudParam("CpuCore") private Integer cpuCore; - - /** 内存大小,单位GB */ + + + + /** + * 内存大小,单位GB + */ @UCloudParam("MemSize") private Integer memSize; - - /** 系统盘大小,单位GB */ + + + + /** + * 系统盘大小,单位GB + */ @UCloudParam("SysDiskSize") private Integer sysDiskSize; - - /** 数据盘大小,单位GB */ + + + + /** + * 数据盘大小,单位GB + */ @UCloudParam("DiskSize") private Integer diskSize; - - /** 节点带宽限制,单位Mbs */ + + + + /** + * 节点带宽限制,单位Mbs + */ @UCloudParam("NetLimit") private Integer netLimit; - + + public String getProjectId() { return projectId; } @@ -59,7 +90,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNodeId() { return nodeId; } @@ -67,7 +98,7 @@ public String getNodeId() { public void setNodeId(String nodeId) { this.nodeId = nodeId; } - + public Integer getCpuCore() { return cpuCore; } @@ -75,7 +106,7 @@ public Integer getCpuCore() { public void setCpuCore(Integer cpuCore) { this.cpuCore = cpuCore; } - + public Integer getMemSize() { return memSize; } @@ -83,7 +114,7 @@ public Integer getMemSize() { public void setMemSize(Integer memSize) { this.memSize = memSize; } - + public Integer getSysDiskSize() { return sysDiskSize; } @@ -91,7 +122,7 @@ public Integer getSysDiskSize() { public void setSysDiskSize(Integer sysDiskSize) { this.sysDiskSize = sysDiskSize; } - + public Integer getDiskSize() { return diskSize; } @@ -99,7 +130,7 @@ public Integer getDiskSize() { public void setDiskSize(Integer diskSize) { this.diskSize = diskSize; } - + public Integer getNetLimit() { return netLimit; } @@ -107,4 +138,14 @@ public Integer getNetLimit() { public void setNetLimit(Integer netLimit) { this.netLimit = netLimit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcUpgradePriceResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcUpgradePriceResponse.java index 1b0bb726..9ab71507 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcUpgradePriceResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcUpgradePriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUEcUpgradePriceResponse extends Response { - /** 规格调整差价 */ + + + /** + * 规格调整差价 + */ @SerializedName("Price") private Integer price; - + + public Integer getPrice() { return price; } @@ -31,4 +41,14 @@ public Integer getPrice() { public void setPrice(Integer price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostDataRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostDataRequest.java index 3d04f5e8..0ee697f8 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostDataRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostDataRequest.java @@ -1,51 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUEcVHostDataRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 节点id */ + + + + /** + * 节点id + */ @NotEmpty @UCloudParam("NodeId") private String nodeId; - - /** 0CPU使用率, 1内存使用率, 2 网卡出流量, 3网卡入流量, 4网卡出包量, 5网卡入包量, 6磁盘读流量, 7磁盘写流量, 8磁盘读次数, 9磁盘写次数 */ + + + + /** + * 0CPU使用率, 1内存使用率, 2 网卡出流量, 3网卡入流量, 4网卡出包量, 5网卡入包量, 6磁盘读流量, 7磁盘写流量, 8磁盘读次数, 9磁盘写次数 + */ @NotEmpty @UCloudParam("Type") private List type; - - /** 查询起始时间 */ + + + + /** + * 查询起始时间 + */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询结束时间 */ + + + + /** + * 查询结束时间 + */ @UCloudParam("EndTime") private Integer endTime; - + + public String getProjectId() { return projectId; } @@ -53,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNodeId() { return nodeId; } @@ -61,7 +83,7 @@ public String getNodeId() { public void setNodeId(String nodeId) { this.nodeId = nodeId; } - + public List getType() { return type; } @@ -69,7 +91,7 @@ public List getType() { public void setType(List type) { this.type = type; } - + public Integer getBeginTime() { return beginTime; } @@ -77,7 +99,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -85,4 +107,14 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostDataResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostDataResponse.java index 83b43e0e..fac4b37f 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostDataResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostDataResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUEcVHostDataResponse extends Response { - /** 带宽数据实例集合 */ + + + /** + * 带宽数据实例集合 + */ @SerializedName("DataSets") private DataSet dataSets; - + + public DataSet getDataSets() { return dataSets; } @@ -32,154 +41,212 @@ public DataSet getDataSets() { public void setDataSets(DataSet dataSets) { this.dataSets = dataSets; } + + public static class DataSet extends Response { + + + /** + * cpu使用率 + */ + @SerializedName("CPUUtilization") + private List cpuUtilization; + + + + /** + * 内存使用率 + */ + @SerializedName("MemUtilization") + private List memUtilization; + + + + /** + * 网卡出带宽 + */ + @SerializedName("NICOut") + private List nicOut; + + + + /** + * 网卡入带宽 + */ + @SerializedName("NICIn") + private List nicIn; + + + + /** + * 网卡出包量 + */ + @SerializedName("NetPacketOut") + private List netPacketOut; + + + + /** + * 网卡入包量 + */ + @SerializedName("NetPacketIn") + private List netPacketIn; + + + + /** + * 磁盘读取量 + */ + @SerializedName("IORead") + private List ioRead; + + + + /** + * 磁盘写入量 + */ + @SerializedName("IOWrite") + private List ioWrite; + + + + /** + * 磁盘读取次数 + */ + @SerializedName("DiskReadOps") + private List diskReadOps; + + + + /** + * 磁盘写入次数 + */ + @SerializedName("DiskWriteOps") + private List diskWriteOps; + + + public List getCPUUtilization() { + return cpuUtilization; + } - public static class DataSet extends Response { - - /** cpu使用率 */ - @SerializedName("CPUUtilization") - private List cpuUtilization; - - /** 内存使用率 */ - @SerializedName("MemUtilization") - private List memUtilization; - - /** 网卡出带宽 */ - @SerializedName("NICOut") - private List nicOut; - - /** 网卡入带宽 */ - @SerializedName("NICIn") - private List nicIn; - - /** 网卡出包量 */ - @SerializedName("NetPacketOut") - private List netPacketOut; - - /** 网卡入包量 */ - @SerializedName("NetPacketIn") - private List netPacketIn; - - /** 磁盘读取量 */ - @SerializedName("IORead") - private List ioRead; - - /** 磁盘写入量 */ - @SerializedName("IOWrite") - private List ioWrite; - - /** 磁盘读取次数 */ - @SerializedName("DiskReadOps") - private List diskReadOps; - - /** 磁盘写入次数 */ - @SerializedName("DiskWriteOps") - private List diskWriteOps; - - public List getCPUUtilization() { - return cpuUtilization; - } - - public void setCPUUtilization(List cpuUtilization) { - this.cpuUtilization = cpuUtilization; - } - - public List getMemUtilization() { - return memUtilization; - } - - public void setMemUtilization(List memUtilization) { - this.memUtilization = memUtilization; - } - - public List getNICOut() { - return nicOut; - } - - public void setNICOut(List nicOut) { - this.nicOut = nicOut; - } - - public List getNICIn() { - return nicIn; - } + public void setCPUUtilization(List cpuUtilization) { + this.cpuUtilization = cpuUtilization; + } + + public List getMemUtilization() { + return memUtilization; + } - public void setNICIn(List nicIn) { - this.nicIn = nicIn; - } + public void setMemUtilization(List memUtilization) { + this.memUtilization = memUtilization; + } + + public List getNICOut() { + return nicOut; + } - public List getNetPacketOut() { - return netPacketOut; - } + public void setNICOut(List nicOut) { + this.nicOut = nicOut; + } + + public List getNICIn() { + return nicIn; + } - public void setNetPacketOut(List netPacketOut) { - this.netPacketOut = netPacketOut; - } + public void setNICIn(List nicIn) { + this.nicIn = nicIn; + } + + public List getNetPacketOut() { + return netPacketOut; + } - public List getNetPacketIn() { - return netPacketIn; - } + public void setNetPacketOut(List netPacketOut) { + this.netPacketOut = netPacketOut; + } + + public List getNetPacketIn() { + return netPacketIn; + } - public void setNetPacketIn(List netPacketIn) { - this.netPacketIn = netPacketIn; - } + public void setNetPacketIn(List netPacketIn) { + this.netPacketIn = netPacketIn; + } + + public List getIORead() { + return ioRead; + } - public List getIORead() { - return ioRead; - } + public void setIORead(List ioRead) { + this.ioRead = ioRead; + } + + public List getIOWrite() { + return ioWrite; + } - public void setIORead(List ioRead) { - this.ioRead = ioRead; - } + public void setIOWrite(List ioWrite) { + this.ioWrite = ioWrite; + } + + public List getDiskReadOps() { + return diskReadOps; + } - public List getIOWrite() { - return ioWrite; - } + public void setDiskReadOps(List diskReadOps) { + this.diskReadOps = diskReadOps; + } + + public List getDiskWriteOps() { + return diskWriteOps; + } - public void setIOWrite(List ioWrite) { - this.ioWrite = ioWrite; - } + public void setDiskWriteOps(List diskWriteOps) { + this.diskWriteOps = diskWriteOps; + } + + } + public static class MonitorInfo extends Response { + + + /** + * 时间戳 + */ + @SerializedName("TimeStamp") + private Integer timeStamp; + + + + /** + * 值 + */ + @SerializedName("Value") + private Integer value; + + + public Integer getTimeStamp() { + return timeStamp; + } - public List getDiskReadOps() { - return diskReadOps; - } + public void setTimeStamp(Integer timeStamp) { + this.timeStamp = timeStamp; + } + + public Integer getValue() { + return value; + } - public void setDiskReadOps(List diskReadOps) { - this.diskReadOps = diskReadOps; + public void setValue(Integer value) { + this.value = value; + } + } +} - public List getDiskWriteOps() { - return diskWriteOps; - } - public void setDiskWriteOps(List diskWriteOps) { - this.diskWriteOps = diskWriteOps; - } - } - public static class MonitorInfo extends Response { - /** 时间戳 */ - @SerializedName("TimeStamp") - private Integer timeStamp; - /** 值 */ - @SerializedName("Value") - private Integer value; - public Integer getTimeStamp() { - return timeStamp; - } - public void setTimeStamp(Integer timeStamp) { - this.timeStamp = timeStamp; - } - public Integer getValue() { - return value; - } - public void setValue(Integer value) { - this.value = value; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostPriceRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostPriceRequest.java index 6a8e1fa7..b0748789 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostPriceRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostPriceRequest.java @@ -1,78 +1,136 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUEcVHostPriceRequest extends Request { - /** 机房Id */ + + + /** + * 机房Id + */ @NotEmpty @UCloudParam("IdcId") private String idcId; - - /** 节点数量,默认1 */ + + + + /** + * 节点数量,默认1 + */ @UCloudParam("NodeCount") private Integer nodeCount; - - /** CPU核数 */ + + + + /** + * CPU核数 + */ @UCloudParam("CpuCore") private Integer cpuCore; - - /** 内存大小,单位GB */ + + + + /** + * 内存大小,单位GB + */ @UCloudParam("MemSize") private Integer memSize; - - /** 系统盘大小,单位GB */ + + + + /** + * 系统盘大小,单位GB + */ @UCloudParam("SysDiskSize") private Integer sysDiskSize; - - /** 数据盘大小,单位GB */ + + + + /** + * 数据盘大小,单位GB + */ @UCloudParam("DiskSize") private Integer diskSize; - - /** 网络带宽限速,单位Mbs */ + + + + /** + * 网络带宽限速,单位Mbs + */ @UCloudParam("NetLimit") private Integer netLimit; - - /** 付费方式,1按时,2按月,3按年,默认2 */ + + + + /** + * 付费方式,1按时,2按月,3按年,默认2 + */ @UCloudParam("ChargeType") private Integer chargeType; - - /** 月数或者年数,0计费到月底, 默认0 */ + + + + /** + * 月数或者年数,0计费到月底, 默认0 + */ @UCloudParam("ChargeQuantity") private Integer chargeQuantity; - - /** 产品类型:normal(经济型),hf(标准型),g(Gpu型),默认normal */ + + + + /** + * 产品类型:normal(经济型),hf(标准型),g(Gpu型),默认normal + */ @UCloudParam("ProductType") private String productType; - - /** 外网IP的数量,默认1 */ + + + + /** + * 外网IP的数量,默认1 + */ @UCloudParam("IpCount") private Integer ipCount; - - /** Gpu卡核心数。仅Gpu机型支持此字段 */ + + + + /** + * Gpu卡核心数。仅Gpu机型支持此字段 + */ @UCloudParam("Gpu") private Integer gpu; - - /** Gpu类型,枚举值["T4"],ProductType为g时必填 */ + + + + /** + * Gpu类型,枚举值["T4"],ProductType为g时必填 + */ @UCloudParam("GpuType") private String gpuType; - + + public String getIdcId() { return idcId; } @@ -80,7 +138,7 @@ public String getIdcId() { public void setIdcId(String idcId) { this.idcId = idcId; } - + public Integer getNodeCount() { return nodeCount; } @@ -88,7 +146,7 @@ public Integer getNodeCount() { public void setNodeCount(Integer nodeCount) { this.nodeCount = nodeCount; } - + public Integer getCpuCore() { return cpuCore; } @@ -96,7 +154,7 @@ public Integer getCpuCore() { public void setCpuCore(Integer cpuCore) { this.cpuCore = cpuCore; } - + public Integer getMemSize() { return memSize; } @@ -104,7 +162,7 @@ public Integer getMemSize() { public void setMemSize(Integer memSize) { this.memSize = memSize; } - + public Integer getSysDiskSize() { return sysDiskSize; } @@ -112,7 +170,7 @@ public Integer getSysDiskSize() { public void setSysDiskSize(Integer sysDiskSize) { this.sysDiskSize = sysDiskSize; } - + public Integer getDiskSize() { return diskSize; } @@ -120,7 +178,7 @@ public Integer getDiskSize() { public void setDiskSize(Integer diskSize) { this.diskSize = diskSize; } - + public Integer getNetLimit() { return netLimit; } @@ -128,7 +186,7 @@ public Integer getNetLimit() { public void setNetLimit(Integer netLimit) { this.netLimit = netLimit; } - + public Integer getChargeType() { return chargeType; } @@ -136,7 +194,7 @@ public Integer getChargeType() { public void setChargeType(Integer chargeType) { this.chargeType = chargeType; } - + public Integer getChargeQuantity() { return chargeQuantity; } @@ -144,7 +202,7 @@ public Integer getChargeQuantity() { public void setChargeQuantity(Integer chargeQuantity) { this.chargeQuantity = chargeQuantity; } - + public String getProductType() { return productType; } @@ -152,7 +210,7 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } - + public Integer getIpCount() { return ipCount; } @@ -160,7 +218,7 @@ public Integer getIpCount() { public void setIpCount(Integer ipCount) { this.ipCount = ipCount; } - + public Integer getGpu() { return gpu; } @@ -168,7 +226,7 @@ public Integer getGpu() { public void setGpu(Integer gpu) { this.gpu = gpu; } - + public String getGpuType() { return gpuType; } @@ -176,4 +234,14 @@ public String getGpuType() { public void setGpuType(String gpuType) { this.gpuType = gpuType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostPriceResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostPriceResponse.java index 4f01ed05..371b15af 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostPriceResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostPriceResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUEcVHostPriceResponse extends Response { - /** 节点价格 */ + + + /** + * 节点价格 + */ @SerializedName("NodePrice") private Double nodePrice; - - /** Ip和带宽价格 */ + + + + /** + * Ip和带宽价格 + */ @SerializedName("IpPrice") private Double ipPrice; - + + public Double getNodePrice() { return nodePrice; } @@ -35,7 +49,7 @@ public Double getNodePrice() { public void setNodePrice(Double nodePrice) { this.nodePrice = nodePrice; } - + public Double getIpPrice() { return ipPrice; } @@ -43,4 +57,14 @@ public Double getIpPrice() { public void setIpPrice(Double ipPrice) { this.ipPrice = ipPrice; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ImportUEcCustomImageRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ImportUEcCustomImageRequest.java index 1be333d5..788ddaa6 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ImportUEcCustomImageRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ImportUEcCustomImageRequest.java @@ -1,60 +1,95 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.uec.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.uec.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class ImportUEcCustomImageRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 镜像需要导入机房,默认分发到所有机房 */ + + + + /** + * 镜像需要导入机房,默认分发到所有机房 + */ @UCloudParam("IdcId") private List idcId; - - /** 镜像Id,不传参表示新导入镜像,传参表示已有镜像分发到指定机房 */ + + + + /** + * 镜像Id,不传参表示新导入镜像,传参表示已有镜像分发到指定机房 + */ @UCloudParam("ImageId") private String imageId; - - /** 镜像名称,不带镜像ID时必填 */ + + + + /** + * 镜像名称,不带镜像ID时必填 + */ @UCloudParam("ImageName") private String imageName; - - /** UFile镜像文件下载地址,不带镜像ID时必填 */ + + + + /** + * UFile镜像文件下载地址,不带镜像ID时必填 + */ @UCloudParam("UFileUrl") private String uFileUrl; - - /** 操作系统平台,linux、windows(当前版本暂不支持windows),不带镜像ID时必填 */ + + + + /** + * 操作系统平台,linux、windows(当前版本暂不支持windows),不带镜像ID时必填 + */ @UCloudParam("OsType") private String osType; - - /** 镜像格式,可选RAW、qcow2, 不带镜像ID时必填 */ + + + + /** + * 镜像格式,可选RAW、qcow2, 不带镜像ID时必填 + */ @UCloudParam("Format") private String format; - - /** 镜像描述 */ + + + + /** + * 镜像描述 + */ @UCloudParam("ImageDesc") private String imageDesc; - + + public String getProjectId() { return projectId; } @@ -62,7 +97,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getIdcId() { return idcId; } @@ -70,7 +105,7 @@ public List getIdcId() { public void setIdcId(List idcId) { this.idcId = idcId; } - + public String getImageId() { return imageId; } @@ -78,7 +113,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getImageName() { return imageName; } @@ -86,7 +121,7 @@ public String getImageName() { public void setImageName(String imageName) { this.imageName = imageName; } - + public String getUFileUrl() { return uFileUrl; } @@ -94,7 +129,7 @@ public String getUFileUrl() { public void setUFileUrl(String uFileUrl) { this.uFileUrl = uFileUrl; } - + public String getOsType() { return osType; } @@ -102,7 +137,7 @@ public String getOsType() { public void setOsType(String osType) { this.osType = osType; } - + public String getFormat() { return format; } @@ -110,7 +145,7 @@ public String getFormat() { public void setFormat(String format) { this.format = format; } - + public String getImageDesc() { return imageDesc; } @@ -118,4 +153,14 @@ public String getImageDesc() { public void setImageDesc(String imageDesc) { this.imageDesc = imageDesc; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ImportUEcCustomImageResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ImportUEcCustomImageResponse.java index 9dfc7083..d71638a4 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ImportUEcCustomImageResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ImportUEcCustomImageResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ImportUEcCustomImageResponse extends Response { - /** 镜像Id */ + + + /** + * 镜像Id + */ @SerializedName("ImageId") private String imageId; - + + public String getImageId() { return imageId; } @@ -31,4 +41,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/LoginUEcDockerRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/LoginUEcDockerRequest.java index d72e44a6..8e932259 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/LoginUEcDockerRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/LoginUEcDockerRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class LoginUEcDockerRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 容器组资源id */ + + + + /** + * 容器组资源id + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - - /** 容器名称 */ + + + + /** + * 容器名称 + */ @NotEmpty @UCloudParam("Name") private String name; - + + public String getProjectId() { return projectId; } @@ -44,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getResourceId() { return resourceId; } @@ -52,7 +67,7 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } - + public String getName() { return name; } @@ -60,4 +75,14 @@ public String getName() { public void setName(String name) { this.name = name; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/LoginUEcDockerResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/LoginUEcDockerResponse.java index ca08cd4e..65fec9a7 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/LoginUEcDockerResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/LoginUEcDockerResponse.java @@ -1,37 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class LoginUEcDockerResponse extends Response { - /** 返回的token */ + + + /** + * 返回的token + */ @SerializedName("SessionId") private String sessionId; - - /** 登录地址 */ + + + + /** + * 登录地址 + */ @SerializedName("Link") private String link; - - /** 登录端口 */ + + + + /** + * 登录端口 + */ @SerializedName("LinkPort") private Integer linkPort; - + + public String getSessionId() { return sessionId; } @@ -39,7 +57,7 @@ public String getSessionId() { public void setSessionId(String sessionId) { this.sessionId = sessionId; } - + public String getLink() { return link; } @@ -47,7 +65,7 @@ public String getLink() { public void setLink(String link) { this.link = link; } - + public Integer getLinkPort() { return linkPort; } @@ -55,4 +73,14 @@ public Integer getLinkPort() { public void setLinkPort(Integer linkPort) { this.linkPort = linkPort; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcBandwidthRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcBandwidthRequest.java index 6da4c77a..a22d3c88 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcBandwidthRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcBandwidthRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUEcBandwidthRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 节点Id */ + + + + /** + * 节点Id + */ @NotEmpty @UCloudParam("NodeId") private String nodeId; - - /** 节点带宽限制,单位Mbs */ + + + + /** + * 节点带宽限制,单位Mbs + */ @NotEmpty @UCloudParam("NetLimit") private String netLimit; - + + public String getProjectId() { return projectId; } @@ -44,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNodeId() { return nodeId; } @@ -52,7 +67,7 @@ public String getNodeId() { public void setNodeId(String nodeId) { this.nodeId = nodeId; } - + public String getNetLimit() { return netLimit; } @@ -60,4 +75,14 @@ public String getNetLimit() { public void setNetLimit(String netLimit) { this.netLimit = netLimit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcBandwidthResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcBandwidthResponse.java index 9c0e8600..448232e8 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcBandwidthResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcBandwidthResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUEcBandwidthResponse extends Response {} +public class ModifyUEcBandwidthResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcHolderNameRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcHolderNameRequest.java index ea805ad0..77d1ac1a 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcHolderNameRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcHolderNameRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUEcHolderNameRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 容器组资源id */ + + + + /** + * 容器组资源id + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - - /** 容器组名称 */ + + + + /** + * 容器组名称 + */ @NotEmpty @UCloudParam("Name") private String name; - + + public String getProjectId() { return projectId; } @@ -44,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getResourceId() { return resourceId; } @@ -52,7 +67,7 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } - + public String getName() { return name; } @@ -60,4 +75,14 @@ public String getName() { public void setName(String name) { this.name = name; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcHolderNameResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcHolderNameResponse.java index 7750d06c..602fb579 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcHolderNameResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcHolderNameResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUEcHolderNameResponse extends Response {} +public class ModifyUEcHolderNameResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcImageNameRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcImageNameRequest.java index 45da0863..f13c4ed9 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcImageNameRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcImageNameRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUEcImageNameRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 镜像ID */ + + + + /** + * 镜像ID + */ @NotEmpty @UCloudParam("ImageId") private String imageId; - - /** 镜像名称 */ + + + + /** + * 镜像名称 + */ @NotEmpty @UCloudParam("ImageName") private String imageName; - - /** 镜像描述 */ + + + + /** + * 镜像描述 + */ @UCloudParam("ImageDesc") private String imageDesc; - + + public String getProjectId() { return projectId; } @@ -48,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageId() { return imageId; } @@ -56,7 +75,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getImageName() { return imageName; } @@ -64,7 +83,7 @@ public String getImageName() { public void setImageName(String imageName) { this.imageName = imageName; } - + public String getImageDesc() { return imageDesc; } @@ -72,4 +91,14 @@ public String getImageDesc() { public void setImageDesc(String imageDesc) { this.imageDesc = imageDesc; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcImageNameResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcImageNameResponse.java index 15613e09..e4947edf 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcImageNameResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ModifyUEcImageNameResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUEcImageNameResponse extends Response {} +public class ModifyUEcImageNameResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/PoweroffUEcVHostRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/PoweroffUEcVHostRequest.java index 1eecfaf6..92966793 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/PoweroffUEcVHostRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/PoweroffUEcVHostRequest.java @@ -1,38 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class PoweroffUEcVHostRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 虚拟机资源ID */ + + + + /** + * 虚拟机资源ID + */ @NotEmpty @UCloudParam("NodeId") private List nodeId; - + + public String getProjectId() { return projectId; } @@ -40,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getNodeId() { return nodeId; } @@ -48,4 +58,14 @@ public List getNodeId() { public void setNodeId(List nodeId) { this.nodeId = nodeId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/PoweroffUEcVHostResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/PoweroffUEcVHostResponse.java index b485598e..6cb286f0 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/PoweroffUEcVHostResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/PoweroffUEcVHostResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class PoweroffUEcVHostResponse extends Response {} +public class PoweroffUEcVHostResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ReinstallUEcVHostRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ReinstallUEcVHostRequest.java index cdcbbf3f..e50df770 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ReinstallUEcVHostRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ReinstallUEcVHostRequest.java @@ -1,54 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ReinstallUEcVHostRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 虚拟机资源ID */ + + + + /** + * 虚拟机资源ID + */ @NotEmpty @UCloudParam("NodeId") private String nodeId; - - /** 镜像ID */ + + + + /** + * 镜像ID + */ @NotEmpty @UCloudParam("ImageId") private String imageId; - - /** 是否保留数据盘数据, 0-不保留,1-保留,默认为1 */ + + + + /** + * 是否保留数据盘数据, 0-不保留,1-保留,默认为1 + */ @UCloudParam("KeepData") private Integer keepData; - - /** 节点密码 */ + + + + /** + * 节点密码 + */ @UCloudParam("Password") private String password; - - /** 系统盘大小,单位GB */ + + + + /** + * 系统盘大小,单位GB + */ @UCloudParam("SysDiskSize") private Integer sysDiskSize; - + + public String getProjectId() { return projectId; } @@ -56,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNodeId() { return nodeId; } @@ -64,7 +91,7 @@ public String getNodeId() { public void setNodeId(String nodeId) { this.nodeId = nodeId; } - + public String getImageId() { return imageId; } @@ -72,7 +99,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public Integer getKeepData() { return keepData; } @@ -80,7 +107,7 @@ public Integer getKeepData() { public void setKeepData(Integer keepData) { this.keepData = keepData; } - + public String getPassword() { return password; } @@ -88,7 +115,7 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } - + public Integer getSysDiskSize() { return sysDiskSize; } @@ -96,4 +123,14 @@ public Integer getSysDiskSize() { public void setSysDiskSize(Integer sysDiskSize) { this.sysDiskSize = sysDiskSize; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ReinstallUEcVHostResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ReinstallUEcVHostResponse.java index 028a67f6..7b18ddca 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ReinstallUEcVHostResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/ReinstallUEcVHostResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ReinstallUEcVHostResponse extends Response {} +public class ReinstallUEcVHostResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcHolderRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcHolderRequest.java index 21b50b49..971fdaca 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcHolderRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcHolderRequest.java @@ -1,38 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class RestartUEcHolderRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 容器组资源id,n为0,1,2... */ + + + + /** + * 容器组资源id,n为0,1,2... + */ @NotEmpty @UCloudParam("ResourceId") private List resourceId; - + + public String getProjectId() { return projectId; } @@ -40,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getResourceId() { return resourceId; } @@ -48,4 +58,14 @@ public List getResourceId() { public void setResourceId(List resourceId) { this.resourceId = resourceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcHolderResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcHolderResponse.java index a7b5d193..64e4163d 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcHolderResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcHolderResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RestartUEcHolderResponse extends Response {} +public class RestartUEcHolderResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcVHostRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcVHostRequest.java index 6a1f88a9..0f946251 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcVHostRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcVHostRequest.java @@ -1,38 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class RestartUEcVHostRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 节点id */ + + + + /** + * 节点id + */ @NotEmpty @UCloudParam("NodeId") private List nodeId; - + + public String getProjectId() { return projectId; } @@ -40,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getNodeId() { return nodeId; } @@ -48,4 +58,14 @@ public List getNodeId() { public void setNodeId(List nodeId) { this.nodeId = nodeId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcVHostResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcVHostResponse.java index f9ec8d7f..7c299981 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcVHostResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/RestartUEcVHostResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RestartUEcVHostResponse extends Response {} +public class RestartUEcVHostResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StartUEcVHostRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StartUEcVHostRequest.java index c509ff82..fcd20c52 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StartUEcVHostRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StartUEcVHostRequest.java @@ -1,38 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class StartUEcVHostRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 虚拟机资源ID */ + + + + /** + * 虚拟机资源ID + */ @NotEmpty @UCloudParam("NodeId") private List nodeId; - + + public String getProjectId() { return projectId; } @@ -40,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getNodeId() { return nodeId; } @@ -48,4 +58,14 @@ public List getNodeId() { public void setNodeId(List nodeId) { this.nodeId = nodeId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StartUEcVHostResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StartUEcVHostResponse.java index c96261dc..ea582e25 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StartUEcVHostResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StartUEcVHostResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class StartUEcVHostResponse extends Response {} +public class StartUEcVHostResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StopUEcVHostRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StopUEcVHostRequest.java index 13583e2f..b8ddac51 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StopUEcVHostRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StopUEcVHostRequest.java @@ -1,38 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class StopUEcVHostRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 虚拟机资源ID */ + + + + /** + * 虚拟机资源ID + */ @NotEmpty @UCloudParam("NodeId") private List nodeId; - + + public String getProjectId() { return projectId; } @@ -40,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getNodeId() { return nodeId; } @@ -48,4 +58,14 @@ public List getNodeId() { public void setNodeId(List nodeId) { this.nodeId = nodeId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StopUEcVHostResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StopUEcVHostResponse.java index a4d235b7..ad64ce32 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StopUEcVHostResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/StopUEcVHostResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class StopUEcVHostResponse extends Response {} +public class StopUEcVHostResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UnBindUEcFirewallRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UnBindUEcFirewallRequest.java index fc66c692..b49580c7 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UnBindUEcFirewallRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UnBindUEcFirewallRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UnBindUEcFirewallRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙Id */ + + + + /** + * 防火墙Id + */ @NotEmpty @UCloudParam("FirewallId") private String firewallId; - - /** 节点Id或容器组资源id */ + + + + /** + * 节点Id或容器组资源id + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - + + public String getProjectId() { return projectId; } @@ -44,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFirewallId() { return firewallId; } @@ -52,7 +67,7 @@ public String getFirewallId() { public void setFirewallId(String firewallId) { this.firewallId = firewallId; } - + public String getResourceId() { return resourceId; } @@ -60,4 +75,14 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UnBindUEcFirewallResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UnBindUEcFirewallResponse.java index 445f34ee..95419572 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UnBindUEcFirewallResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UnBindUEcFirewallResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UnBindUEcFirewallResponse extends Response {} +public class UnBindUEcFirewallResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallAttributeRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallAttributeRequest.java index db84006e..a2bc1e7f 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallAttributeRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallAttributeRequest.java @@ -1,45 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUEcFirewallAttributeRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙Id */ + + + + /** + * 防火墙Id + */ @NotEmpty @UCloudParam("FirewallId") private String firewallId; - - /** 防火墙名称 */ + + + + /** + * 防火墙名称 + */ @UCloudParam("Name") private String name; - - /** 描述 */ + + + + /** + * 描述 + */ @UCloudParam("Remark") private String remark; - + + public String getProjectId() { return projectId; } @@ -47,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFirewallId() { return firewallId; } @@ -55,7 +74,7 @@ public String getFirewallId() { public void setFirewallId(String firewallId) { this.firewallId = firewallId; } - + public String getName() { return name; } @@ -63,7 +82,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getRemark() { return remark; } @@ -71,4 +90,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallAttributeResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallAttributeResponse.java index 945d4b22..fde48406 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallAttributeResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUEcFirewallAttributeResponse extends Response {} +public class UpdateUEcFirewallAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallRequest.java index 57bbb6cf..91b9d186 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallRequest.java @@ -1,42 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UpdateUEcFirewallRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙Id */ + + + + /** + * 防火墙Id + */ @NotEmpty @UCloudParam("FirewallId") private String firewallId; - - /** */ + + + + /** + * + */ @UCloudParam("Rule") private List rule; - + + public String getProjectId() { return projectId; } @@ -44,7 +58,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFirewallId() { return firewallId; } @@ -52,7 +66,7 @@ public String getFirewallId() { public void setFirewallId(String firewallId) { this.firewallId = firewallId; } - + public List getRule() { return rule; } @@ -60,85 +74,120 @@ public List getRule() { public void setRule(List rule) { this.rule = rule; } + + public static class Rule extends Request { + + + /** + * 协议,可选值:TCP,UDP,ICMP + */ + @NotEmpty + @UCloudParam("ProtocolType") + private String protocolType; + + + + /** + * 端口,范围用"-"符号分隔,如:1-65535 + */ + @NotEmpty + @UCloudParam("Port") + private String port; + + + + /** + * 源ip + */ + @NotEmpty + @UCloudParam("SrcIp") + private String srcIp; + + + + /** + * ACCEPT(接受)和DROP(拒绝) + */ + @NotEmpty + @UCloudParam("Action") + private String action; + + + + /** + * +优先级:HIGH(高),MEDIUM(中),LOW(低) + */ + @NotEmpty + @UCloudParam("Priority") + private String priority; + + + + /** + * 备注 + */ + @NotEmpty + @UCloudParam("Remark") + private String remark; + + + public String getProtocolType() { + return protocolType; + } - public static class Rule extends Request { - - /** 协议,可选值:TCP,UDP,ICMP */ - @NotEmpty - @UCloudParam("ProtocolType") - private String protocolType; - - /** 端口,范围用"-"符号分隔,如:1-65535 */ - @NotEmpty - @UCloudParam("Port") - private String port; - - /** 源ip */ - @NotEmpty - @UCloudParam("SrcIp") - private String srcIp; - - /** ACCEPT(接受)和DROP(拒绝) */ - @NotEmpty - @UCloudParam("Action") - private String action; + public void setProtocolType(String protocolType) { + this.protocolType = protocolType; + } + + public String getPort() { + return port; + } - /** 优先级:HIGH(高),MEDIUM(中),LOW(低) */ - @NotEmpty - @UCloudParam("Priority") - private String priority; + public void setPort(String port) { + this.port = port; + } + + public String getSrcIp() { + return srcIp; + } - /** 备注 */ - @NotEmpty - @UCloudParam("Remark") - private String remark; + public void setSrcIp(String srcIp) { + this.srcIp = srcIp; + } + + public String getAction() { + return action; + } - public String getProtocolType() { - return protocolType; - } + public void setAction(String action) { + this.action = action; + } + + public String getPriority() { + return priority; + } - public void setProtocolType(String protocolType) { - this.protocolType = protocolType; - } + public void setPriority(String priority) { + this.priority = priority; + } + + public String getRemark() { + return remark; + } - public String getPort() { - return port; + public void setRemark(String remark) { + this.remark = remark; + } + } +} - public void setPort(String port) { - this.port = port; - } - public String getSrcIp() { - return srcIp; - } - public void setSrcIp(String srcIp) { - this.srcIp = srcIp; - } - public String getAction() { - return action; - } - public void setAction(String action) { - this.action = action; - } - public String getPriority() { - return priority; - } - public void setPriority(String priority) { - this.priority = priority; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - } -} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallResponse.java index b2293aa6..9a45e398 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcFirewallResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUEcFirewallResponse extends Response {} +public class UpdateUEcFirewallResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcSubnetRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcSubnetRequest.java index 364db27c..5157f5d2 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcSubnetRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcSubnetRequest.java @@ -1,45 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUEcSubnetRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 子网ID */ + + + + /** + * 子网ID + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - - /** 子网名称 */ + + + + /** + * 子网名称 + */ @UCloudParam("SubnetName") private String subnetName; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Comment") private String comment; - + + public String getProjectId() { return projectId; } @@ -47,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSubnetId() { return subnetId; } @@ -55,7 +74,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getSubnetName() { return subnetName; } @@ -63,7 +82,7 @@ public String getSubnetName() { public void setSubnetName(String subnetName) { this.subnetName = subnetName; } - + public String getComment() { return comment; } @@ -71,4 +90,14 @@ public String getComment() { public void setComment(String comment) { this.comment = comment; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcSubnetResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcSubnetResponse.java index cfb16fb5..c593417d 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcSubnetResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/UpdateUEcSubnetResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uec.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUEcSubnetResponse extends Response {} +public class UpdateUEcSubnetResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 6e296a14..c002857d 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-ufile - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClient.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClient.java index 8bdebc4e..cfbc9c1e 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClient.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.ufile.client; @@ -17,278 +19,411 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.ufile.models.CreateBucketRequest; import cn.ucloud.ufile.models.CreateBucketResponse; + + + import cn.ucloud.ufile.models.CreateUFileLifeCycleRequest; import cn.ucloud.ufile.models.CreateUFileLifeCycleResponse; + + + import cn.ucloud.ufile.models.CreateUFileTokenRequest; import cn.ucloud.ufile.models.CreateUFileTokenResponse; + + + import cn.ucloud.ufile.models.DeleteBucketRequest; import cn.ucloud.ufile.models.DeleteBucketResponse; + + + import cn.ucloud.ufile.models.DeleteUFileLifeCycleRequest; import cn.ucloud.ufile.models.DeleteUFileLifeCycleResponse; + + + import cn.ucloud.ufile.models.DeleteUFileTokenRequest; import cn.ucloud.ufile.models.DeleteUFileTokenResponse; + + + import cn.ucloud.ufile.models.DescribeBucketRequest; import cn.ucloud.ufile.models.DescribeBucketResponse; + + + import cn.ucloud.ufile.models.DescribeUFileLifeCycleRequest; import cn.ucloud.ufile.models.DescribeUFileLifeCycleResponse; + + + import cn.ucloud.ufile.models.DescribeUFileTokenRequest; import cn.ucloud.ufile.models.DescribeUFileTokenResponse; + + + import cn.ucloud.ufile.models.GetUFileDailyReportRequest; import cn.ucloud.ufile.models.GetUFileDailyReportResponse; + + + +import cn.ucloud.ufile.models.GetUFileQuotaRequest; +import cn.ucloud.ufile.models.GetUFileQuotaResponse; + + + import cn.ucloud.ufile.models.GetUFileQuotaInfoRequest; import cn.ucloud.ufile.models.GetUFileQuotaInfoResponse; + + + import cn.ucloud.ufile.models.GetUFileQuotaPriceRequest; import cn.ucloud.ufile.models.GetUFileQuotaPriceResponse; -import cn.ucloud.ufile.models.GetUFileQuotaRequest; -import cn.ucloud.ufile.models.GetUFileQuotaResponse; + + + import cn.ucloud.ufile.models.GetUFileReportRequest; import cn.ucloud.ufile.models.GetUFileReportResponse; + + + import cn.ucloud.ufile.models.SetUFileRefererRequest; import cn.ucloud.ufile.models.SetUFileRefererResponse; + + + import cn.ucloud.ufile.models.UpdateBucketRequest; import cn.ucloud.ufile.models.UpdateBucketResponse; + + + import cn.ucloud.ufile.models.UpdateUFileLifeCycleRequest; import cn.ucloud.ufile.models.UpdateUFileLifeCycleResponse; + + + import cn.ucloud.ufile.models.UpdateUFileTokenRequest; import cn.ucloud.ufile.models.UpdateUFileTokenResponse; + + + import cn.ucloud.ufile.models.UpdateUdsRuleRequest; import cn.ucloud.ufile.models.UpdateUdsRuleResponse; -/** This client is used to call actions of **UFile** service */ +/** + * This client is used to call actions of **UFile** service + */ public class UFileClient extends DefaultClient implements UFileClientInterface { public UFileClient(Config config, Credential credential) { super(config, credential); } - - /** - * CreateBucket - 创建Bucket - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateBucketResponse createBucket(CreateBucketRequest request) throws UCloudException { - request.setAction("CreateBucket"); - return (CreateBucketResponse) this.invoke(request, CreateBucketResponse.class); - } - - /** - * CreateUFileLifeCycle - 创建生命周期管理 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUFileLifeCycleResponse createUFileLifeCycle(CreateUFileLifeCycleRequest request) - throws UCloudException { - request.setAction("CreateUFileLifeCycle"); - return (CreateUFileLifeCycleResponse) - this.invoke(request, CreateUFileLifeCycleResponse.class); - } - - /** - * CreateUFileToken - 创建US3令牌 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUFileTokenResponse createUFileToken(CreateUFileTokenRequest request) - throws UCloudException { - request.setAction("CreateUFileToken"); - return (CreateUFileTokenResponse) this.invoke(request, CreateUFileTokenResponse.class); - } - - /** - * DeleteBucket - 删除Bucket - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteBucketResponse deleteBucket(DeleteBucketRequest request) throws UCloudException { - request.setAction("DeleteBucket"); - return (DeleteBucketResponse) this.invoke(request, DeleteBucketResponse.class); - } - - /** - * DeleteUFileLifeCycle - 删除生命周期管理 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUFileLifeCycleResponse deleteUFileLifeCycle(DeleteUFileLifeCycleRequest request) - throws UCloudException { - request.setAction("DeleteUFileLifeCycle"); - return (DeleteUFileLifeCycleResponse) - this.invoke(request, DeleteUFileLifeCycleResponse.class); - } - - /** - * DeleteUFileToken - 删除令牌 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUFileTokenResponse deleteUFileToken(DeleteUFileTokenRequest request) - throws UCloudException { - request.setAction("DeleteUFileToken"); - return (DeleteUFileTokenResponse) this.invoke(request, DeleteUFileTokenResponse.class); - } - - /** - * DescribeBucket - 获取Bucket信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeBucketResponse describeBucket(DescribeBucketRequest request) - throws UCloudException { - request.setAction("DescribeBucket"); - return (DescribeBucketResponse) this.invoke(request, DescribeBucketResponse.class); - } - - /** - * DescribeUFileLifeCycle - 获取生命周期信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUFileLifeCycleResponse describeUFileLifeCycle( - DescribeUFileLifeCycleRequest request) throws UCloudException { - request.setAction("DescribeUFileLifeCycle"); - return (DescribeUFileLifeCycleResponse) - this.invoke(request, DescribeUFileLifeCycleResponse.class); - } - - /** - * DescribeUFileToken - 获取令牌信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUFileTokenResponse describeUFileToken(DescribeUFileTokenRequest request) - throws UCloudException { - request.setAction("DescribeUFileToken"); - return (DescribeUFileTokenResponse) this.invoke(request, DescribeUFileTokenResponse.class); - } - - /** - * GetUFileDailyReport - 查看日消费报表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUFileDailyReportResponse getUFileDailyReport(GetUFileDailyReportRequest request) - throws UCloudException { - request.setAction("GetUFileDailyReport"); - return (GetUFileDailyReportResponse) - this.invoke(request, GetUFileDailyReportResponse.class); - } - - /** - * GetUFileQuota - 查看配额状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUFileQuotaResponse getUFileQuota(GetUFileQuotaRequest request) - throws UCloudException { - request.setAction("GetUFileQuota"); - return (GetUFileQuotaResponse) this.invoke(request, GetUFileQuotaResponse.class); - } - - /** - * GetUFileQuotaInfo - 获取配额信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUFileQuotaInfoResponse getUFileQuotaInfo(GetUFileQuotaInfoRequest request) - throws UCloudException { - request.setAction("GetUFileQuotaInfo"); - return (GetUFileQuotaInfoResponse) this.invoke(request, GetUFileQuotaInfoResponse.class); - } - - /** - * GetUFileQuotaPrice - 查询配额支付价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUFileQuotaPriceResponse getUFileQuotaPrice(GetUFileQuotaPriceRequest request) - throws UCloudException { - request.setAction("GetUFileQuotaPrice"); - return (GetUFileQuotaPriceResponse) this.invoke(request, GetUFileQuotaPriceResponse.class); - } - - /** - * GetUFileReport - 查看配额使用报表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUFileReportResponse getUFileReport(GetUFileReportRequest request) - throws UCloudException { - request.setAction("GetUFileReport"); - return (GetUFileReportResponse) this.invoke(request, GetUFileReportResponse.class); - } - - /** - * SetUFileReferer - 设置对象存储防盗链 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SetUFileRefererResponse setUFileReferer(SetUFileRefererRequest request) - throws UCloudException { - request.setAction("SetUFileReferer"); - return (SetUFileRefererResponse) this.invoke(request, SetUFileRefererResponse.class); - } - - /** - * UpdateBucket - 更改Bucket属性 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateBucketResponse updateBucket(UpdateBucketRequest request) throws UCloudException { - request.setAction("UpdateBucket"); - return (UpdateBucketResponse) this.invoke(request, UpdateBucketResponse.class); - } - - /** - * UpdateUFileLifeCycle - 更新生命周期管理 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUFileLifeCycleResponse updateUFileLifeCycle(UpdateUFileLifeCycleRequest request) - throws UCloudException { - request.setAction("UpdateUFileLifeCycle"); - return (UpdateUFileLifeCycleResponse) - this.invoke(request, UpdateUFileLifeCycleResponse.class); - } - - /** - * UpdateUFileToken - 更新令牌 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUFileTokenResponse updateUFileToken(UpdateUFileTokenRequest request) - throws UCloudException { - request.setAction("UpdateUFileToken"); - return (UpdateUFileTokenResponse) this.invoke(request, UpdateUFileTokenResponse.class); - } - - /** - * UpdateUdsRule - 更新解压缩规则 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUdsRuleResponse updateUdsRule(UpdateUdsRuleRequest request) - throws UCloudException { - request.setAction("UpdateUdsRule"); - return (UpdateUdsRuleResponse) this.invoke(request, UpdateUdsRuleResponse.class); - } + + + + + + + /** + * CreateBucket - 创建Bucket + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateBucketResponse createBucket(CreateBucketRequest request) throws UCloudException { + request.setAction("CreateBucket"); + return (CreateBucketResponse) this.invoke(request, CreateBucketResponse.class); + } + + + + + + + /** + * CreateUFileLifeCycle - 创建生命周期管理 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUFileLifeCycleResponse createUFileLifeCycle(CreateUFileLifeCycleRequest request) throws UCloudException { + request.setAction("CreateUFileLifeCycle"); + return (CreateUFileLifeCycleResponse) this.invoke(request, CreateUFileLifeCycleResponse.class); + } + + + + + + + /** + * CreateUFileToken - 创建US3令牌 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUFileTokenResponse createUFileToken(CreateUFileTokenRequest request) throws UCloudException { + request.setAction("CreateUFileToken"); + return (CreateUFileTokenResponse) this.invoke(request, CreateUFileTokenResponse.class); + } + + + + + + + /** + * DeleteBucket - 删除Bucket + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteBucketResponse deleteBucket(DeleteBucketRequest request) throws UCloudException { + request.setAction("DeleteBucket"); + return (DeleteBucketResponse) this.invoke(request, DeleteBucketResponse.class); + } + + + + + + + /** + * DeleteUFileLifeCycle - 删除生命周期管理 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUFileLifeCycleResponse deleteUFileLifeCycle(DeleteUFileLifeCycleRequest request) throws UCloudException { + request.setAction("DeleteUFileLifeCycle"); + return (DeleteUFileLifeCycleResponse) this.invoke(request, DeleteUFileLifeCycleResponse.class); + } + + + + + + + /** + * DeleteUFileToken - 删除令牌 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUFileTokenResponse deleteUFileToken(DeleteUFileTokenRequest request) throws UCloudException { + request.setAction("DeleteUFileToken"); + return (DeleteUFileTokenResponse) this.invoke(request, DeleteUFileTokenResponse.class); + } + + + + + + + /** + * DescribeBucket - 获取Bucket信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeBucketResponse describeBucket(DescribeBucketRequest request) throws UCloudException { + request.setAction("DescribeBucket"); + return (DescribeBucketResponse) this.invoke(request, DescribeBucketResponse.class); + } + + + + + + + /** + * DescribeUFileLifeCycle - 获取生命周期信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUFileLifeCycleResponse describeUFileLifeCycle(DescribeUFileLifeCycleRequest request) throws UCloudException { + request.setAction("DescribeUFileLifeCycle"); + return (DescribeUFileLifeCycleResponse) this.invoke(request, DescribeUFileLifeCycleResponse.class); + } + + + + + + + /** + * DescribeUFileToken - 获取令牌信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUFileTokenResponse describeUFileToken(DescribeUFileTokenRequest request) throws UCloudException { + request.setAction("DescribeUFileToken"); + return (DescribeUFileTokenResponse) this.invoke(request, DescribeUFileTokenResponse.class); + } + + + + + + + /** + * GetUFileDailyReport - 查看日消费报表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUFileDailyReportResponse getUFileDailyReport(GetUFileDailyReportRequest request) throws UCloudException { + request.setAction("GetUFileDailyReport"); + return (GetUFileDailyReportResponse) this.invoke(request, GetUFileDailyReportResponse.class); + } + + + + + + + /** + * GetUFileQuota - 查看配额状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUFileQuotaResponse getUFileQuota(GetUFileQuotaRequest request) throws UCloudException { + request.setAction("GetUFileQuota"); + return (GetUFileQuotaResponse) this.invoke(request, GetUFileQuotaResponse.class); + } + + + + + + + /** + * GetUFileQuotaInfo - 获取配额信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUFileQuotaInfoResponse getUFileQuotaInfo(GetUFileQuotaInfoRequest request) throws UCloudException { + request.setAction("GetUFileQuotaInfo"); + return (GetUFileQuotaInfoResponse) this.invoke(request, GetUFileQuotaInfoResponse.class); + } + + + + + + + /** + * GetUFileQuotaPrice - 查询配额支付价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUFileQuotaPriceResponse getUFileQuotaPrice(GetUFileQuotaPriceRequest request) throws UCloudException { + request.setAction("GetUFileQuotaPrice"); + return (GetUFileQuotaPriceResponse) this.invoke(request, GetUFileQuotaPriceResponse.class); + } + + + + + + + /** + * GetUFileReport - 查看配额使用报表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUFileReportResponse getUFileReport(GetUFileReportRequest request) throws UCloudException { + request.setAction("GetUFileReport"); + return (GetUFileReportResponse) this.invoke(request, GetUFileReportResponse.class); + } + + + + + + + /** + * SetUFileReferer - 设置对象存储防盗链 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SetUFileRefererResponse setUFileReferer(SetUFileRefererRequest request) throws UCloudException { + request.setAction("SetUFileReferer"); + return (SetUFileRefererResponse) this.invoke(request, SetUFileRefererResponse.class); + } + + + + + + + /** + * UpdateBucket - 更改Bucket属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateBucketResponse updateBucket(UpdateBucketRequest request) throws UCloudException { + request.setAction("UpdateBucket"); + return (UpdateBucketResponse) this.invoke(request, UpdateBucketResponse.class); + } + + + + + + + /** + * UpdateUFileLifeCycle - 更新生命周期管理 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUFileLifeCycleResponse updateUFileLifeCycle(UpdateUFileLifeCycleRequest request) throws UCloudException { + request.setAction("UpdateUFileLifeCycle"); + return (UpdateUFileLifeCycleResponse) this.invoke(request, UpdateUFileLifeCycleResponse.class); + } + + + + + + + /** + * UpdateUFileToken - 更新令牌 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUFileTokenResponse updateUFileToken(UpdateUFileTokenRequest request) throws UCloudException { + request.setAction("UpdateUFileToken"); + return (UpdateUFileTokenResponse) this.invoke(request, UpdateUFileTokenResponse.class); + } + + + + + + + /** + * UpdateUdsRule - 更新解压缩规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUdsRuleResponse updateUdsRule(UpdateUdsRuleRequest request) throws UCloudException { + request.setAction("UpdateUdsRule"); + return (UpdateUdsRuleResponse) this.invoke(request, UpdateUdsRuleResponse.class); + } } diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClientInterface.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClientInterface.java index c0b8ead7..2108f1d5 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClientInterface.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClientInterface.java @@ -1,62 +1,128 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.ufile.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.ufile.models.CreateBucketRequest; import cn.ucloud.ufile.models.CreateBucketResponse; + + + import cn.ucloud.ufile.models.CreateUFileLifeCycleRequest; import cn.ucloud.ufile.models.CreateUFileLifeCycleResponse; + + + import cn.ucloud.ufile.models.CreateUFileTokenRequest; import cn.ucloud.ufile.models.CreateUFileTokenResponse; + + + import cn.ucloud.ufile.models.DeleteBucketRequest; import cn.ucloud.ufile.models.DeleteBucketResponse; + + + import cn.ucloud.ufile.models.DeleteUFileLifeCycleRequest; import cn.ucloud.ufile.models.DeleteUFileLifeCycleResponse; + + + import cn.ucloud.ufile.models.DeleteUFileTokenRequest; import cn.ucloud.ufile.models.DeleteUFileTokenResponse; + + + import cn.ucloud.ufile.models.DescribeBucketRequest; import cn.ucloud.ufile.models.DescribeBucketResponse; + + + import cn.ucloud.ufile.models.DescribeUFileLifeCycleRequest; import cn.ucloud.ufile.models.DescribeUFileLifeCycleResponse; + + + import cn.ucloud.ufile.models.DescribeUFileTokenRequest; import cn.ucloud.ufile.models.DescribeUFileTokenResponse; + + + import cn.ucloud.ufile.models.GetUFileDailyReportRequest; import cn.ucloud.ufile.models.GetUFileDailyReportResponse; + + + +import cn.ucloud.ufile.models.GetUFileQuotaRequest; +import cn.ucloud.ufile.models.GetUFileQuotaResponse; + + + import cn.ucloud.ufile.models.GetUFileQuotaInfoRequest; import cn.ucloud.ufile.models.GetUFileQuotaInfoResponse; + + + import cn.ucloud.ufile.models.GetUFileQuotaPriceRequest; import cn.ucloud.ufile.models.GetUFileQuotaPriceResponse; -import cn.ucloud.ufile.models.GetUFileQuotaRequest; -import cn.ucloud.ufile.models.GetUFileQuotaResponse; + + + import cn.ucloud.ufile.models.GetUFileReportRequest; import cn.ucloud.ufile.models.GetUFileReportResponse; + + + import cn.ucloud.ufile.models.SetUFileRefererRequest; import cn.ucloud.ufile.models.SetUFileRefererResponse; + + + import cn.ucloud.ufile.models.UpdateBucketRequest; import cn.ucloud.ufile.models.UpdateBucketResponse; + + + import cn.ucloud.ufile.models.UpdateUFileLifeCycleRequest; import cn.ucloud.ufile.models.UpdateUFileLifeCycleResponse; + + + import cn.ucloud.ufile.models.UpdateUFileTokenRequest; import cn.ucloud.ufile.models.UpdateUFileTokenResponse; + + + import cn.ucloud.ufile.models.UpdateUdsRuleRequest; import cn.ucloud.ufile.models.UpdateUdsRuleResponse; -/** This client is used to call actions of **UFile** service */ +/** + * This client is used to call actions of **UFile** service + */ public interface UFileClientInterface extends Client { - + + + + + + /** * CreateBucket - 创建Bucket * @@ -64,25 +130,38 @@ public interface UFileClientInterface extends Client { * @throws UCloudException Exception */ public CreateBucketResponse createBucket(CreateBucketRequest request) throws UCloudException; - + + + + + + /** * CreateUFileLifeCycle - 创建生命周期管理 * * @param request Request object * @throws UCloudException Exception */ - public CreateUFileLifeCycleResponse createUFileLifeCycle(CreateUFileLifeCycleRequest request) - throws UCloudException; - + public CreateUFileLifeCycleResponse createUFileLifeCycle(CreateUFileLifeCycleRequest request) throws UCloudException; + + + + + + /** * CreateUFileToken - 创建US3令牌 * * @param request Request object * @throws UCloudException Exception */ - public CreateUFileTokenResponse createUFileToken(CreateUFileTokenRequest request) - throws UCloudException; - + public CreateUFileTokenResponse createUFileToken(CreateUFileTokenRequest request) throws UCloudException; + + + + + + /** * DeleteBucket - 删除Bucket * @@ -90,61 +169,90 @@ public CreateUFileTokenResponse createUFileToken(CreateUFileTokenRequest request * @throws UCloudException Exception */ public DeleteBucketResponse deleteBucket(DeleteBucketRequest request) throws UCloudException; - + + + + + + /** * DeleteUFileLifeCycle - 删除生命周期管理 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUFileLifeCycleResponse deleteUFileLifeCycle(DeleteUFileLifeCycleRequest request) - throws UCloudException; - + public DeleteUFileLifeCycleResponse deleteUFileLifeCycle(DeleteUFileLifeCycleRequest request) throws UCloudException; + + + + + + /** * DeleteUFileToken - 删除令牌 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUFileTokenResponse deleteUFileToken(DeleteUFileTokenRequest request) - throws UCloudException; - + public DeleteUFileTokenResponse deleteUFileToken(DeleteUFileTokenRequest request) throws UCloudException; + + + + + + /** * DescribeBucket - 获取Bucket信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeBucketResponse describeBucket(DescribeBucketRequest request) - throws UCloudException; - + public DescribeBucketResponse describeBucket(DescribeBucketRequest request) throws UCloudException; + + + + + + /** * DescribeUFileLifeCycle - 获取生命周期信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUFileLifeCycleResponse describeUFileLifeCycle( - DescribeUFileLifeCycleRequest request) throws UCloudException; - + public DescribeUFileLifeCycleResponse describeUFileLifeCycle(DescribeUFileLifeCycleRequest request) throws UCloudException; + + + + + + /** * DescribeUFileToken - 获取令牌信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUFileTokenResponse describeUFileToken(DescribeUFileTokenRequest request) - throws UCloudException; - + public DescribeUFileTokenResponse describeUFileToken(DescribeUFileTokenRequest request) throws UCloudException; + + + + + + /** * GetUFileDailyReport - 查看日消费报表 * * @param request Request object * @throws UCloudException Exception */ - public GetUFileDailyReportResponse getUFileDailyReport(GetUFileDailyReportRequest request) - throws UCloudException; - + public GetUFileDailyReportResponse getUFileDailyReport(GetUFileDailyReportRequest request) throws UCloudException; + + + + + + /** * GetUFileQuota - 查看配额状态 * @@ -152,43 +260,64 @@ public GetUFileDailyReportResponse getUFileDailyReport(GetUFileDailyReportReques * @throws UCloudException Exception */ public GetUFileQuotaResponse getUFileQuota(GetUFileQuotaRequest request) throws UCloudException; - + + + + + + /** * GetUFileQuotaInfo - 获取配额信息 * * @param request Request object * @throws UCloudException Exception */ - public GetUFileQuotaInfoResponse getUFileQuotaInfo(GetUFileQuotaInfoRequest request) - throws UCloudException; - + public GetUFileQuotaInfoResponse getUFileQuotaInfo(GetUFileQuotaInfoRequest request) throws UCloudException; + + + + + + /** * GetUFileQuotaPrice - 查询配额支付价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUFileQuotaPriceResponse getUFileQuotaPrice(GetUFileQuotaPriceRequest request) - throws UCloudException; - + public GetUFileQuotaPriceResponse getUFileQuotaPrice(GetUFileQuotaPriceRequest request) throws UCloudException; + + + + + + /** * GetUFileReport - 查看配额使用报表 * * @param request Request object * @throws UCloudException Exception */ - public GetUFileReportResponse getUFileReport(GetUFileReportRequest request) - throws UCloudException; - + public GetUFileReportResponse getUFileReport(GetUFileReportRequest request) throws UCloudException; + + + + + + /** * SetUFileReferer - 设置对象存储防盗链 * * @param request Request object * @throws UCloudException Exception */ - public SetUFileRefererResponse setUFileReferer(SetUFileRefererRequest request) - throws UCloudException; - + public SetUFileRefererResponse setUFileReferer(SetUFileRefererRequest request) throws UCloudException; + + + + + + /** * UpdateBucket - 更改Bucket属性 * @@ -196,25 +325,38 @@ public SetUFileRefererResponse setUFileReferer(SetUFileRefererRequest request) * @throws UCloudException Exception */ public UpdateBucketResponse updateBucket(UpdateBucketRequest request) throws UCloudException; - + + + + + + /** * UpdateUFileLifeCycle - 更新生命周期管理 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUFileLifeCycleResponse updateUFileLifeCycle(UpdateUFileLifeCycleRequest request) - throws UCloudException; - + public UpdateUFileLifeCycleResponse updateUFileLifeCycle(UpdateUFileLifeCycleRequest request) throws UCloudException; + + + + + + /** * UpdateUFileToken - 更新令牌 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUFileTokenResponse updateUFileToken(UpdateUFileTokenRequest request) - throws UCloudException; - + public UpdateUFileTokenResponse updateUFileToken(UpdateUFileTokenRequest request) throws UCloudException; + + + + + + /** * UpdateUdsRule - 更新解压缩规则 * diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateBucketRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateBucketRequest.java index 9b578c7c..1d9bf0d0 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateBucketRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateBucketRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateBucketRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 待创建Bucket的名称,具有全局唯一性 */ + + + + /** + * 待创建Bucket的名称,具有全局唯一性 + */ @NotEmpty @UCloudParam("BucketName") private String bucketName; - - /** Bucket访问类型,public或private; 默认为private */ + + + + /** + * Bucket访问类型,public或private; 默认为private + */ @UCloudParam("Type") private String type; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -53,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getBucketName() { return bucketName; } @@ -61,7 +83,7 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } - + public String getType() { return type; } @@ -69,4 +91,14 @@ public String getType() { public void setType(String type) { this.type = type; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateBucketResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateBucketResponse.java index f2ee5ae9..d7d23b96 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateBucketResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateBucketResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateBucketResponse extends Response { - /** 已创建Bucket的名称 */ + + + /** + * 已创建Bucket的名称 + */ @SerializedName("BucketName") private String bucketName; - - /** 已创建Bucket的ID */ + + + + /** + * 已创建Bucket的ID + */ @SerializedName("BucketId") private String bucketId; - + + public String getBucketName() { return bucketName; } @@ -35,7 +49,7 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } - + public String getBucketId() { return bucketId; } @@ -43,4 +57,14 @@ public String getBucketId() { public void setBucketId(String bucketId) { this.bucketId = bucketId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileLifeCycleRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileLifeCycleRequest.java index 0ba6906e..d44eaedd 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileLifeCycleRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileLifeCycleRequest.java @@ -1,68 +1,107 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUFileLifeCycleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 生命周期名称 */ + + + + /** + * 生命周期名称 + */ @NotEmpty @UCloudParam("LifeCycleName") private String lifeCycleName; - - /** 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀; */ + + + + /** + * 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀; + */ @NotEmpty @UCloudParam("Prefix") private String prefix; - - /** Enabled -- 启用,Disabled -- 不启用 */ + + + + /** + * Enabled -- 启用,Disabled -- 不启用 + */ @NotEmpty @UCloudParam("Status") private String status; - - /** 存储空间名称 */ + + + + /** + * 存储空间名称 + */ @NotEmpty @UCloudParam("BucketName") private String bucketName; - - /** 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;参数范围:[7,36500],0代表不启用 */ + + + + /** + * 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;参数范围:[7,36500],0代表不启用 + */ @UCloudParam("Days") private Integer days; - - /** 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为归档存储类型;参数范围:[7,36500],0代表不启用 */ + + + + /** + * 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为归档存储类型;参数范围:[7,36500],0代表不启用 + */ @UCloudParam("ArchivalDays") private Integer archivalDays; - - /** 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为低频存储类型;参数范围:[7,36500],0代表不启用 */ + + + + /** + * 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为低频存储类型;参数范围:[7,36500],0代表不启用 + */ @UCloudParam("IADays") private Integer iaDays; - + + public String getRegion() { return region; } @@ -70,7 +109,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -78,7 +117,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getLifeCycleName() { return lifeCycleName; } @@ -86,7 +125,7 @@ public String getLifeCycleName() { public void setLifeCycleName(String lifeCycleName) { this.lifeCycleName = lifeCycleName; } - + public String getPrefix() { return prefix; } @@ -94,7 +133,7 @@ public String getPrefix() { public void setPrefix(String prefix) { this.prefix = prefix; } - + public String getStatus() { return status; } @@ -102,7 +141,7 @@ public String getStatus() { public void setStatus(String status) { this.status = status; } - + public String getBucketName() { return bucketName; } @@ -110,7 +149,7 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } - + public Integer getDays() { return days; } @@ -118,7 +157,7 @@ public Integer getDays() { public void setDays(Integer days) { this.days = days; } - + public Integer getArchivalDays() { return archivalDays; } @@ -126,7 +165,7 @@ public Integer getArchivalDays() { public void setArchivalDays(Integer archivalDays) { this.archivalDays = archivalDays; } - + public Integer getIADays() { return iaDays; } @@ -134,4 +173,14 @@ public Integer getIADays() { public void setIADays(Integer iaDays) { this.iaDays = iaDays; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileLifeCycleResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileLifeCycleResponse.java index 95480f48..a9861946 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileLifeCycleResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileLifeCycleResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUFileLifeCycleResponse extends Response { - /** 生命周期Id */ + + + /** + * 生命周期Id + */ @SerializedName("LifeCycleId") private String lifeCycleId; - + + public String getLifeCycleId() { return lifeCycleId; } @@ -31,4 +41,14 @@ public String getLifeCycleId() { public void setLifeCycleId(String lifeCycleId) { this.lifeCycleId = lifeCycleId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileTokenRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileTokenRequest.java index 2d5401cc..3ed7aebc 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileTokenRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileTokenRequest.java @@ -1,70 +1,105 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateUFileTokenRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 令牌名称 */ + + + + /** + * 令牌名称 + */ @NotEmpty @UCloudParam("TokenName") private String tokenName; - + + + /** - * 令牌允许执行的操作 [ TOKEN_ALLOW_NONE 没有权限, TOKEN_ALLOW_READ 下载权限 , TOKEN_ALLOW_WRITE 上传权限 , - * TOKEN_ALLOW_DELETE 删除权限 , TOKEN_ALLOW_LIST 列表权限, TOKEN_ALLOW_IOP 图片处理权限, TOKEN_DENY_UPDATE - * 禁止覆盖权限]。默认TOKEN_ALLOW_NONE + * 令牌允许执行的操作 +[ TOKEN_ALLOW_NONE 没有权限, TOKEN_ALLOW_READ 下载权限 , TOKEN_ALLOW_WRITE 上传权限 , TOKEN_ALLOW_DELETE 删除权限 , TOKEN_ALLOW_LIST 列表权限, TOKEN_ALLOW_IOP 图片处理权限, TOKEN_DENY_UPDATE 禁止覆盖权限]。默认TOKEN_ALLOW_NONE */ @UCloudParam("AllowedOps") private List allowedOps; - - /** 令牌允许操作的key前缀,默认*表示全部 */ + + + + /** + * 令牌允许操作的key前缀,默认*表示全部 + */ @UCloudParam("AllowedPrefixes") private List allowedPrefixes; - - /** 令牌允许操作的bucket,默认*表示全部 */ + + + + /** + * 令牌允许操作的bucket,默认*表示全部 + */ @UCloudParam("AllowedBuckets") private List allowedBuckets; - - /** Unix 时间戳,精确到秒,为令牌过期时间点。默认过期时间为一天(即当前Unix时间戳+86400);注意:过期时间不能超过 4102416000 */ + + + + /** + * Unix 时间戳,精确到秒,为令牌过期时间点。默认过期时间为一天(即当前Unix时间戳+86400);注意:过期时间不能超过 4102416000 + */ @UCloudParam("ExpireTime") private Integer expireTime; - - /** 令牌黑名单,支持ipv4,ipv6格式。 */ + + + + /** + * 令牌黑名单,支持ipv4,ipv6格式。 + */ @UCloudParam("BlackIPList") private List blackIPList; - - /** 令牌白名单,支持ipv4,ipv6格式。 */ + + + + /** + * 令牌白名单,支持ipv4,ipv6格式。 + */ @UCloudParam("WhiteIPList") private List whiteIPList; - + + public String getRegion() { return region; } @@ -72,7 +107,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -80,7 +115,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getTokenName() { return tokenName; } @@ -88,7 +123,7 @@ public String getTokenName() { public void setTokenName(String tokenName) { this.tokenName = tokenName; } - + public List getAllowedOps() { return allowedOps; } @@ -96,7 +131,7 @@ public List getAllowedOps() { public void setAllowedOps(List allowedOps) { this.allowedOps = allowedOps; } - + public List getAllowedPrefixes() { return allowedPrefixes; } @@ -104,7 +139,7 @@ public List getAllowedPrefixes() { public void setAllowedPrefixes(List allowedPrefixes) { this.allowedPrefixes = allowedPrefixes; } - + public List getAllowedBuckets() { return allowedBuckets; } @@ -112,7 +147,7 @@ public List getAllowedBuckets() { public void setAllowedBuckets(List allowedBuckets) { this.allowedBuckets = allowedBuckets; } - + public Integer getExpireTime() { return expireTime; } @@ -120,7 +155,7 @@ public Integer getExpireTime() { public void setExpireTime(Integer expireTime) { this.expireTime = expireTime; } - + public List getBlackIPList() { return blackIPList; } @@ -128,7 +163,7 @@ public List getBlackIPList() { public void setBlackIPList(List blackIPList) { this.blackIPList = blackIPList; } - + public List getWhiteIPList() { return whiteIPList; } @@ -136,4 +171,14 @@ public List getWhiteIPList() { public void setWhiteIPList(List whiteIPList) { this.whiteIPList = whiteIPList; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileTokenResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileTokenResponse.java index ef3cfb81..d6aa5553 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileTokenResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateUFileTokenResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class CreateUFileTokenResponse extends Response { - /** 令牌唯一ID */ + + + /** + * 令牌唯一ID + */ @SerializedName("TokenId") private String tokenId; - - /** 创建令牌的详细信息 */ + + + + /** + * 创建令牌的详细信息 + */ @SerializedName("UFileTokenSet") private UFileTokenSet uFileTokenSet; - + + public String getTokenId() { return tokenId; } @@ -36,7 +49,7 @@ public String getTokenId() { public void setTokenId(String tokenId) { this.tokenId = tokenId; } - + public UFileTokenSet getUFileTokenSet() { return uFileTokenSet; } @@ -44,166 +57,225 @@ public UFileTokenSet getUFileTokenSet() { public void setUFileTokenSet(UFileTokenSet uFileTokenSet) { this.uFileTokenSet = uFileTokenSet; } + + public static class UFileTokenSet extends Response { + + + /** + * 所属地区 + */ + @SerializedName("Region") + private String region; + + + + /** + * 令牌ID + */ + @SerializedName("TokenId") + private String tokenId; + + + + /** + * 令牌名称 + */ + @SerializedName("TokenName") + private String tokenName; + + + + /** + * 令牌公钥 + */ + @SerializedName("PublicKey") + private String publicKey; + + + + /** + * 令牌私钥 + */ + @SerializedName("PrivateKey") + private String privateKey; + + + + /** + * 令牌允许执行的操作,[ TOKEN_ALLOW_NONE 没有权限, TOKEN_ALLOW_READ 下载权限, TOKEN_ALLOW_WRITE 上传权限, TOKEN_ALLOW_DELETE 删除权限, TOKEN_ALLOW_LIST 列表权限, TOKEN_ALLOW_IOP 图片处理权限] + */ + @SerializedName("AllowedOps") + private List allowedOps; + + + + /** + * 令牌允许操作的key前缀 + */ + @SerializedName("AllowedPrefixes") + private List allowedPrefixes; + + + + /** + * 令牌允许操作的bucket + */ + @SerializedName("AllowedBuckets") + private List allowedBuckets; + + + + /** + * 令牌的超时时间点 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 令牌黑名单 + */ + @SerializedName("BlackIPList") + private List blackIPList; + + + + /** + * 令牌白名单 + */ + @SerializedName("WhiteIPList") + private List whiteIPList; + + + public String getRegion() { + return region; + } - public static class UFileTokenSet extends Response { - - /** 所属地区 */ - @SerializedName("Region") - private String region; - - /** 令牌ID */ - @SerializedName("TokenId") - private String tokenId; - - /** 令牌名称 */ - @SerializedName("TokenName") - private String tokenName; - - /** 令牌公钥 */ - @SerializedName("PublicKey") - private String publicKey; - - /** 令牌私钥 */ - @SerializedName("PrivateKey") - private String privateKey; - - /** - * 令牌允许执行的操作,[ TOKEN_ALLOW_NONE 没有权限, TOKEN_ALLOW_READ 下载权限, TOKEN_ALLOW_WRITE 上传权限, - * TOKEN_ALLOW_DELETE 删除权限, TOKEN_ALLOW_LIST 列表权限, TOKEN_ALLOW_IOP 图片处理权限] - */ - @SerializedName("AllowedOps") - private List allowedOps; - - /** 令牌允许操作的key前缀 */ - @SerializedName("AllowedPrefixes") - private List allowedPrefixes; - - /** 令牌允许操作的bucket */ - @SerializedName("AllowedBuckets") - private List allowedBuckets; - - /** 令牌的超时时间点 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 修改时间 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** 令牌黑名单 */ - @SerializedName("BlackIPList") - private List blackIPList; - - /** 令牌白名单 */ - @SerializedName("WhiteIPList") - private List whiteIPList; - - public String getRegion() { - return region; - } - - public void setRegion(String region) { - this.region = region; - } - - public String getTokenId() { - return tokenId; - } - - public void setTokenId(String tokenId) { - this.tokenId = tokenId; - } - - public String getTokenName() { - return tokenName; - } + public void setRegion(String region) { + this.region = region; + } + + public String getTokenId() { + return tokenId; + } - public void setTokenName(String tokenName) { - this.tokenName = tokenName; - } + public void setTokenId(String tokenId) { + this.tokenId = tokenId; + } + + public String getTokenName() { + return tokenName; + } - public String getPublicKey() { - return publicKey; - } + public void setTokenName(String tokenName) { + this.tokenName = tokenName; + } + + public String getPublicKey() { + return publicKey; + } - public void setPublicKey(String publicKey) { - this.publicKey = publicKey; - } + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getPrivateKey() { + return privateKey; + } - public String getPrivateKey() { - return privateKey; - } + public void setPrivateKey(String privateKey) { + this.privateKey = privateKey; + } + + public List getAllowedOps() { + return allowedOps; + } - public void setPrivateKey(String privateKey) { - this.privateKey = privateKey; - } + public void setAllowedOps(List allowedOps) { + this.allowedOps = allowedOps; + } + + public List getAllowedPrefixes() { + return allowedPrefixes; + } - public List getAllowedOps() { - return allowedOps; - } + public void setAllowedPrefixes(List allowedPrefixes) { + this.allowedPrefixes = allowedPrefixes; + } + + public List getAllowedBuckets() { + return allowedBuckets; + } - public void setAllowedOps(List allowedOps) { - this.allowedOps = allowedOps; - } + public void setAllowedBuckets(List allowedBuckets) { + this.allowedBuckets = allowedBuckets; + } + + public Integer getExpireTime() { + return expireTime; + } - public List getAllowedPrefixes() { - return allowedPrefixes; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getCreateTime() { + return createTime; + } - public void setAllowedPrefixes(List allowedPrefixes) { - this.allowedPrefixes = allowedPrefixes; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public List getAllowedBuckets() { - return allowedBuckets; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public List getBlackIPList() { + return blackIPList; + } - public void setAllowedBuckets(List allowedBuckets) { - this.allowedBuckets = allowedBuckets; - } + public void setBlackIPList(List blackIPList) { + this.blackIPList = blackIPList; + } + + public List getWhiteIPList() { + return whiteIPList; + } - public Integer getExpireTime() { - return expireTime; + public void setWhiteIPList(List whiteIPList) { + this.whiteIPList = whiteIPList; + } + } +} - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getModifyTime() { - return modifyTime; - } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - public List getBlackIPList() { - return blackIPList; - } - public void setBlackIPList(List blackIPList) { - this.blackIPList = blackIPList; - } - public List getWhiteIPList() { - return whiteIPList; - } - public void setWhiteIPList(List whiteIPList) { - this.whiteIPList = whiteIPList; - } - } -} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteBucketRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteBucketRequest.java index 882062cc..d41602c2 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteBucketRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteBucketRequest.java @@ -1,34 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteBucketRequest extends Request { - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 待删除Bucket的名称 */ + + + + /** + * 待删除Bucket的名称 + */ @NotEmpty @UCloudParam("BucketName") private String bucketName; - + + public String getProjectId() { return projectId; } @@ -36,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getBucketName() { return bucketName; } @@ -44,4 +58,14 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteBucketResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteBucketResponse.java index 364a1bf2..275463c2 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteBucketResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteBucketResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DeleteBucketResponse extends Response { - /** Bucket的名称 */ + + + /** + * Bucket的名称 + */ @SerializedName("BucketName") private String bucketName; - - /** Bucket的ID */ + + + + /** + * Bucket的ID + */ @SerializedName("BucketId") private String bucketId; - + + public String getBucketName() { return bucketName; } @@ -35,7 +49,7 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } - + public String getBucketId() { return bucketId; } @@ -43,4 +57,14 @@ public String getBucketId() { public void setBucketId(String bucketId) { this.bucketId = bucketId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileLifeCycleRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileLifeCycleRequest.java index 58ec4f71..9e8cc789 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileLifeCycleRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileLifeCycleRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUFileLifeCycleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 生命周期Id */ + + + + /** + * 生命周期Id + */ @NotEmpty @UCloudParam("LifeCycleId") private String lifeCycleId; - - /** 存储空间名称 */ + + + + /** + * 存储空间名称 + */ @NotEmpty @UCloudParam("BucketName") private String bucketName; - + + public String getRegion() { return region; } @@ -48,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -56,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getLifeCycleId() { return lifeCycleId; } @@ -64,7 +83,7 @@ public String getLifeCycleId() { public void setLifeCycleId(String lifeCycleId) { this.lifeCycleId = lifeCycleId; } - + public String getBucketName() { return bucketName; } @@ -72,4 +91,14 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileLifeCycleResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileLifeCycleResponse.java index d5e8efc3..03a36ac3 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileLifeCycleResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileLifeCycleResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUFileLifeCycleResponse extends Response {} +public class DeleteUFileLifeCycleResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileTokenRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileTokenRequest.java index dedf2787..c36554e8 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileTokenRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileTokenRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUFileTokenRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 令牌ID */ + + + + /** + * 令牌ID + */ @NotEmpty @UCloudParam("TokenId") private String tokenId; - + + public String getRegion() { return region; } @@ -42,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -50,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getTokenId() { return tokenId; } @@ -58,4 +76,14 @@ public String getTokenId() { public void setTokenId(String tokenId) { this.tokenId = tokenId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileTokenResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileTokenResponse.java index 2a912a96..e8b436fa 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileTokenResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileTokenResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUFileTokenResponse extends Response {} +public class DeleteUFileTokenResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeBucketRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeBucketRequest.java index 432bede5..dcf3ebdc 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeBucketRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeBucketRequest.java @@ -1,44 +1,71 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class DescribeBucketRequest extends Request { - /** 如果提供此参数,则获取相应地域下所有空间的空间名称(只返回空间名称信息) */ + + + /** + * 如果提供此参数,则获取相应地域下所有空间的空间名称(只返回空间名称信息) + */ @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 待获取Bucket的名称,若不提供,则获取所有Bucket */ + + + + /** + * 待获取Bucket的名称,若不提供,则获取所有Bucket + */ @UCloudParam("BucketName") private String bucketName; - - /** 获取所有Bucket列表的偏移数目,默认为0 */ + + + + /** + * 获取所有Bucket列表的偏移数目,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 获取所有Bucket列表的限制数目,默认为20 */ + + + + /** + * 获取所有Bucket列表的限制数目,默认为20 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -46,7 +73,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -54,7 +81,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getBucketName() { return bucketName; } @@ -62,7 +89,7 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } - + public Integer getOffset() { return offset; } @@ -70,7 +97,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -78,4 +105,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeBucketResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeBucketResponse.java index a4e82fee..19f63ebb 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeBucketResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeBucketResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeBucketResponse extends Response { - /** Bucket的描述信息 参数见 UFileBucketSet */ + + + /** + * Bucket的描述信息 参数见 UFileBucketSet + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,190 +41,260 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UFileBucketSet extends Response { + + + /** + * Bucket所属地域 + */ + @SerializedName("Region") + private String region; + + + + /** + * Bucket名称 + */ + @SerializedName("BucketName") + private String bucketName; + + + + /** + * Bucket的ID + */ + @SerializedName("BucketId") + private String bucketId; + + + + /** + * Bucket的域名集合 参数见 UFileDomainSet + */ + @SerializedName("Domain") + private UFileDomainSet domain; + + + + /** + * 与Bucket关联的CND加速域名的ID列表 + */ + @SerializedName("CdnDomainId") + private List cdnDomainId; + + + + /** + * Bucket访问类型 + */ + @SerializedName("Type") + private String type; + + + + /** + * Bucket的创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * Bucket的修改时间 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * Bucket所属业务, general或vod或udb general: 普通业务; vod: 视频云业务; udb: 云数据库业务 + */ + @SerializedName("Biz") + private String biz; + + + + /** + * 所属业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 是否存在自定义域名。0不存在,1存在,2错误 + */ + @SerializedName("HasUserDomain") + private Integer hasUserDomain; + + + public String getRegion() { + return region; + } - public static class UFileBucketSet extends Response { - - /** Bucket所属地域 */ - @SerializedName("Region") - private String region; - - /** Bucket名称 */ - @SerializedName("BucketName") - private String bucketName; - - /** Bucket的ID */ - @SerializedName("BucketId") - private String bucketId; - - /** Bucket的域名集合 参数见 UFileDomainSet */ - @SerializedName("Domain") - private UFileDomainSet domain; - - /** 与Bucket关联的CND加速域名的ID列表 */ - @SerializedName("CdnDomainId") - private List cdnDomainId; - - /** Bucket访问类型 */ - @SerializedName("Type") - private String type; - - /** Bucket的创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** Bucket的修改时间 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** Bucket所属业务, general或vod或udb general: 普通业务; vod: 视频云业务; udb: 云数据库业务 */ - @SerializedName("Biz") - private String biz; - - /** 所属业务组 */ - @SerializedName("Tag") - private String tag; - - /** 是否存在自定义域名。0不存在,1存在,2错误 */ - @SerializedName("HasUserDomain") - private Integer hasUserDomain; - - public String getRegion() { - return region; - } - - public void setRegion(String region) { - this.region = region; - } - - public String getBucketName() { - return bucketName; - } - - public void setBucketName(String bucketName) { - this.bucketName = bucketName; - } - - public String getBucketId() { - return bucketId; - } - - public void setBucketId(String bucketId) { - this.bucketId = bucketId; - } - - public UFileDomainSet getDomain() { - return domain; - } - - public void setDomain(UFileDomainSet domain) { - this.domain = domain; - } - - public List getCdnDomainId() { - return cdnDomainId; - } - - public void setCdnDomainId(List cdnDomainId) { - this.cdnDomainId = cdnDomainId; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } + public void setRegion(String region) { + this.region = region; + } + + public String getBucketName() { + return bucketName; + } - public Integer getCreateTime() { - return createTime; - } + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + public String getBucketId() { + return bucketId; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setBucketId(String bucketId) { + this.bucketId = bucketId; + } + + public UFileDomainSet getDomain() { + return domain; + } - public Integer getModifyTime() { - return modifyTime; - } + public void setDomain(UFileDomainSet domain) { + this.domain = domain; + } + + public List getCdnDomainId() { + return cdnDomainId; + } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } + public void setCdnDomainId(List cdnDomainId) { + this.cdnDomainId = cdnDomainId; + } + + public String getType() { + return type; + } - public String getBiz() { - return biz; - } + public void setType(String type) { + this.type = type; + } + + public Integer getCreateTime() { + return createTime; + } - public void setBiz(String biz) { - this.biz = biz; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public String getTag() { - return tag; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public String getBiz() { + return biz; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setBiz(String biz) { + this.biz = biz; + } + + public String getTag() { + return tag; + } - public Integer getHasUserDomain() { - return hasUserDomain; - } + public void setTag(String tag) { + this.tag = tag; + } + + public Integer getHasUserDomain() { + return hasUserDomain; + } - public void setHasUserDomain(Integer hasUserDomain) { - this.hasUserDomain = hasUserDomain; + public void setHasUserDomain(Integer hasUserDomain) { + this.hasUserDomain = hasUserDomain; + } + } + public static class UFileDomainSet extends Response { + + + /** + * 源站域名 + */ + @SerializedName("Src") + private List src; + + + + /** + * UCDN加速域名 + */ + @SerializedName("Cdn") + private List cdn; + + + + /** + * 用户自定义源站域名 + */ + @SerializedName("CustomSrc") + private List customSrc; + + + + /** + * 用户自定义CDN加速域名 + */ + @SerializedName("CustomCdn") + private List customCdn; + + + public List getSrc() { + return src; } - public static class UFileDomainSet extends Response { + public void setSrc(List src) { + this.src = src; + } + + public List getCdn() { + return cdn; + } - /** 源站域名 */ - @SerializedName("Src") - private List src; + public void setCdn(List cdn) { + this.cdn = cdn; + } + + public List getCustomSrc() { + return customSrc; + } - /** UCDN加速域名 */ - @SerializedName("Cdn") - private List cdn; + public void setCustomSrc(List customSrc) { + this.customSrc = customSrc; + } + + public List getCustomCdn() { + return customCdn; + } - /** 用户自定义源站域名 */ - @SerializedName("CustomSrc") - private List customSrc; + public void setCustomCdn(List customCdn) { + this.customCdn = customCdn; + } + + } +} - /** 用户自定义CDN加速域名 */ - @SerializedName("CustomCdn") - private List customCdn; - public List getSrc() { - return src; - } - public void setSrc(List src) { - this.src = src; - } - public List getCdn() { - return cdn; - } - public void setCdn(List cdn) { - this.cdn = cdn; - } - public List getCustomSrc() { - return customSrc; - } - public void setCustomSrc(List customSrc) { - this.customSrc = customSrc; - } - public List getCustomCdn() { - return customCdn; - } - public void setCustomCdn(List customCdn) { - this.customCdn = customCdn; - } - } -} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileLifeCycleRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileLifeCycleRequest.java index 11c308ec..f4b0da96 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileLifeCycleRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileLifeCycleRequest.java @@ -1,45 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUFileLifeCycleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 存储空间名称 */ + + + + /** + * 存储空间名称 + */ @NotEmpty @UCloudParam("BucketName") private String bucketName; - - /** 生命周期Id;不传递此参数拉取存储空间下面的所有生命周期信息 */ + + + + /** + * 生命周期Id;不传递此参数拉取存储空间下面的所有生命周期信息 + */ @UCloudParam("LifeCycleId") private String lifeCycleId; - + + public String getRegion() { return region; } @@ -47,7 +66,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -55,7 +74,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getBucketName() { return bucketName; } @@ -63,7 +82,7 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } - + public String getLifeCycleId() { return lifeCycleId; } @@ -71,4 +90,14 @@ public String getLifeCycleId() { public void setLifeCycleId(String lifeCycleId) { this.lifeCycleId = lifeCycleId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileLifeCycleResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileLifeCycleResponse.java index 959d702c..cf4b9a53 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileLifeCycleResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileLifeCycleResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUFileLifeCycleResponse extends Response { - /** 生命周期信息 */ + + + /** + * 生命周期信息 + */ @SerializedName("DateSet") private List dateSet; - + + public List getDateSet() { return dateSet; } @@ -32,103 +41,145 @@ public List getDateSet() { public void setDateSet(List dateSet) { this.dateSet = dateSet; } + + public static class LifeCycleItem extends Response { + + + /** + * 生命周期Id + */ + @SerializedName("LifeCycleId") + private String lifeCycleId; + + + + /** + * 生命周期名称 + */ + @SerializedName("LifeCycleName") + private String lifeCycleName; + + + + /** + * 生命周期所适用的前缀;*为整个存储空间文件; + */ + @SerializedName("Prefix") + private String prefix; + + + + /** + * 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除,0代表不启用; + */ + @SerializedName("Days") + private Integer days; + + + + /** + * Enabled -- 启用,Disabled -- 不启用 + */ + @SerializedName("Status") + private String status; + + + + /** + * 存储空间名称 + */ + @SerializedName("BucketName") + private String bucketName; + + + + /** + * 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型,0代表不启用; + */ + @SerializedName("ArchivalDays") + private Integer archivalDays; + + + + /** + * 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型,0代表不启用; + */ + @SerializedName("IADays") + private Integer iaDays; + + + public String getLifeCycleId() { + return lifeCycleId; + } - public static class LifeCycleItem extends Response { - - /** 生命周期Id */ - @SerializedName("LifeCycleId") - private String lifeCycleId; - - /** 生命周期名称 */ - @SerializedName("LifeCycleName") - private String lifeCycleName; - - /** 生命周期所适用的前缀;*为整个存储空间文件; */ - @SerializedName("Prefix") - private String prefix; - - /** 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除,0代表不启用; */ - @SerializedName("Days") - private Integer days; - - /** Enabled -- 启用,Disabled -- 不启用 */ - @SerializedName("Status") - private String status; - - /** 存储空间名称 */ - @SerializedName("BucketName") - private String bucketName; - - /** 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型,0代表不启用; */ - @SerializedName("ArchivalDays") - private Integer archivalDays; - - /** 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型,0代表不启用; */ - @SerializedName("IADays") - private Integer iaDays; + public void setLifeCycleId(String lifeCycleId) { + this.lifeCycleId = lifeCycleId; + } + + public String getLifeCycleName() { + return lifeCycleName; + } - public String getLifeCycleId() { - return lifeCycleId; - } + public void setLifeCycleName(String lifeCycleName) { + this.lifeCycleName = lifeCycleName; + } + + public String getPrefix() { + return prefix; + } - public void setLifeCycleId(String lifeCycleId) { - this.lifeCycleId = lifeCycleId; - } + public void setPrefix(String prefix) { + this.prefix = prefix; + } + + public Integer getDays() { + return days; + } - public String getLifeCycleName() { - return lifeCycleName; - } + public void setDays(Integer days) { + this.days = days; + } + + public String getStatus() { + return status; + } - public void setLifeCycleName(String lifeCycleName) { - this.lifeCycleName = lifeCycleName; - } + public void setStatus(String status) { + this.status = status; + } + + public String getBucketName() { + return bucketName; + } - public String getPrefix() { - return prefix; - } + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + public Integer getArchivalDays() { + return archivalDays; + } - public void setPrefix(String prefix) { - this.prefix = prefix; - } + public void setArchivalDays(Integer archivalDays) { + this.archivalDays = archivalDays; + } + + public Integer getIADays() { + return iaDays; + } - public Integer getDays() { - return days; + public void setIADays(Integer iaDays) { + this.iaDays = iaDays; + } + } +} - public void setDays(Integer days) { - this.days = days; - } - public String getStatus() { - return status; - } - public void setStatus(String status) { - this.status = status; - } - public String getBucketName() { - return bucketName; - } - public void setBucketName(String bucketName) { - this.bucketName = bucketName; - } - public Integer getArchivalDays() { - return archivalDays; - } - public void setArchivalDays(Integer archivalDays) { - this.archivalDays = archivalDays; - } - public Integer getIADays() { - return iaDays; - } - public void setIADays(Integer iaDays) { - this.iaDays = iaDays; - } - } -} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileTokenRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileTokenRequest.java index f1349e26..a004ef21 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileTokenRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileTokenRequest.java @@ -1,44 +1,71 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class DescribeUFileTokenRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 令牌ID,只返回指定ID信息,否则拉取所有令牌 */ + + + + /** + * 令牌ID,只返回指定ID信息,否则拉取所有令牌 + */ @UCloudParam("TokenId") private String tokenId; - - /** 令牌名称,只返回指定令牌名称信息,否则拉取所有令牌 */ + + + + /** + * 令牌名称,只返回指定令牌名称信息,否则拉取所有令牌 + */ @UCloudParam("TokenName") private String tokenName; - - /** 0表示显示部分token信息;不传递和其他情况表示显示全部token信息 */ + + + + /** + * 0表示显示部分token信息;不传递和其他情况表示显示全部token信息 + */ @UCloudParam("Display") private Integer display; - + + public String getRegion() { return region; } @@ -46,7 +73,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -54,7 +81,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getTokenId() { return tokenId; } @@ -62,7 +89,7 @@ public String getTokenId() { public void setTokenId(String tokenId) { this.tokenId = tokenId; } - + public String getTokenName() { return tokenName; } @@ -70,7 +97,7 @@ public String getTokenName() { public void setTokenName(String tokenName) { this.tokenName = tokenName; } - + public Integer getDisplay() { return display; } @@ -78,4 +105,14 @@ public Integer getDisplay() { public void setDisplay(Integer display) { this.display = display; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileTokenResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileTokenResponse.java index bc0d83ca..84e01c47 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileTokenResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileTokenResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUFileTokenResponse extends Response { - /** 令牌描述信息 */ + + + /** + * 令牌描述信息 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,166 +41,225 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UFileTokenSet extends Response { + + + /** + * 所属地区 + */ + @SerializedName("Region") + private String region; + + + + /** + * 令牌ID + */ + @SerializedName("TokenId") + private String tokenId; + + + + /** + * 令牌名称 + */ + @SerializedName("TokenName") + private String tokenName; + + + + /** + * 令牌公钥 + */ + @SerializedName("PublicKey") + private String publicKey; + + + + /** + * 令牌私钥 + */ + @SerializedName("PrivateKey") + private String privateKey; + + + + /** + * 令牌允许执行的操作,[ TOKEN_ALLOW_NONE 没有权限, TOKEN_ALLOW_READ 下载权限, TOKEN_ALLOW_WRITE 上传权限, TOKEN_ALLOW_DELETE 删除权限, TOKEN_ALLOW_LIST 列表权限, TOKEN_ALLOW_IOP 图片处理权限] + */ + @SerializedName("AllowedOps") + private List allowedOps; + + + + /** + * 令牌允许操作的key前缀 + */ + @SerializedName("AllowedPrefixes") + private List allowedPrefixes; + + + + /** + * 令牌允许操作的bucket + */ + @SerializedName("AllowedBuckets") + private List allowedBuckets; + + + + /** + * 令牌的超时时间点 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 令牌黑名单 + */ + @SerializedName("BlackIPList") + private List blackIPList; + + + + /** + * 令牌白名单 + */ + @SerializedName("WhiteIPList") + private List whiteIPList; + + + public String getRegion() { + return region; + } - public static class UFileTokenSet extends Response { - - /** 所属地区 */ - @SerializedName("Region") - private String region; - - /** 令牌ID */ - @SerializedName("TokenId") - private String tokenId; - - /** 令牌名称 */ - @SerializedName("TokenName") - private String tokenName; - - /** 令牌公钥 */ - @SerializedName("PublicKey") - private String publicKey; - - /** 令牌私钥 */ - @SerializedName("PrivateKey") - private String privateKey; - - /** - * 令牌允许执行的操作,[ TOKEN_ALLOW_NONE 没有权限, TOKEN_ALLOW_READ 下载权限, TOKEN_ALLOW_WRITE 上传权限, - * TOKEN_ALLOW_DELETE 删除权限, TOKEN_ALLOW_LIST 列表权限, TOKEN_ALLOW_IOP 图片处理权限] - */ - @SerializedName("AllowedOps") - private List allowedOps; - - /** 令牌允许操作的key前缀 */ - @SerializedName("AllowedPrefixes") - private List allowedPrefixes; - - /** 令牌允许操作的bucket */ - @SerializedName("AllowedBuckets") - private List allowedBuckets; - - /** 令牌的超时时间点 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 修改时间 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** 令牌黑名单 */ - @SerializedName("BlackIPList") - private List blackIPList; - - /** 令牌白名单 */ - @SerializedName("WhiteIPList") - private List whiteIPList; - - public String getRegion() { - return region; - } - - public void setRegion(String region) { - this.region = region; - } - - public String getTokenId() { - return tokenId; - } - - public void setTokenId(String tokenId) { - this.tokenId = tokenId; - } - - public String getTokenName() { - return tokenName; - } + public void setRegion(String region) { + this.region = region; + } + + public String getTokenId() { + return tokenId; + } - public void setTokenName(String tokenName) { - this.tokenName = tokenName; - } + public void setTokenId(String tokenId) { + this.tokenId = tokenId; + } + + public String getTokenName() { + return tokenName; + } - public String getPublicKey() { - return publicKey; - } + public void setTokenName(String tokenName) { + this.tokenName = tokenName; + } + + public String getPublicKey() { + return publicKey; + } - public void setPublicKey(String publicKey) { - this.publicKey = publicKey; - } + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public String getPrivateKey() { + return privateKey; + } - public String getPrivateKey() { - return privateKey; - } + public void setPrivateKey(String privateKey) { + this.privateKey = privateKey; + } + + public List getAllowedOps() { + return allowedOps; + } - public void setPrivateKey(String privateKey) { - this.privateKey = privateKey; - } + public void setAllowedOps(List allowedOps) { + this.allowedOps = allowedOps; + } + + public List getAllowedPrefixes() { + return allowedPrefixes; + } - public List getAllowedOps() { - return allowedOps; - } + public void setAllowedPrefixes(List allowedPrefixes) { + this.allowedPrefixes = allowedPrefixes; + } + + public List getAllowedBuckets() { + return allowedBuckets; + } - public void setAllowedOps(List allowedOps) { - this.allowedOps = allowedOps; - } + public void setAllowedBuckets(List allowedBuckets) { + this.allowedBuckets = allowedBuckets; + } + + public Integer getExpireTime() { + return expireTime; + } - public List getAllowedPrefixes() { - return allowedPrefixes; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getCreateTime() { + return createTime; + } - public void setAllowedPrefixes(List allowedPrefixes) { - this.allowedPrefixes = allowedPrefixes; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public List getAllowedBuckets() { - return allowedBuckets; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public List getBlackIPList() { + return blackIPList; + } - public void setAllowedBuckets(List allowedBuckets) { - this.allowedBuckets = allowedBuckets; - } + public void setBlackIPList(List blackIPList) { + this.blackIPList = blackIPList; + } + + public List getWhiteIPList() { + return whiteIPList; + } - public Integer getExpireTime() { - return expireTime; + public void setWhiteIPList(List whiteIPList) { + this.whiteIPList = whiteIPList; + } + } +} - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getModifyTime() { - return modifyTime; - } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - public List getBlackIPList() { - return blackIPList; - } - public void setBlackIPList(List blackIPList) { - this.blackIPList = blackIPList; - } - public List getWhiteIPList() { - return whiteIPList; - } - public void setWhiteIPList(List whiteIPList) { - this.whiteIPList = whiteIPList; - } - } -} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileDailyReportRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileDailyReportRequest.java index b375d905..be93546d 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileDailyReportRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileDailyReportRequest.java @@ -1,51 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUFileDailyReportRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 查询开始时间;unix时间戳,单位s */ + + + + /** + * 查询开始时间;unix时间戳,单位s + */ @NotEmpty @UCloudParam("StartTime") private Integer startTime; - - /** 查询结束时间;unix时间戳,单位s */ + + + + /** + * 查询结束时间;unix时间戳,单位s + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 空间名称。此字段不为空,返回此Bucket日使用量;否则,返回这个项目的日使用量 */ + + + + /** + * 空间名称。此字段不为空,返回此Bucket日使用量;否则,返回这个项目的日使用量 + */ @UCloudParam("BucketName") private String bucketName; - + + public String getRegion() { return region; } @@ -53,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -61,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getStartTime() { return startTime; } @@ -69,7 +92,7 @@ public Integer getStartTime() { public void setStartTime(Integer startTime) { this.startTime = startTime; } - + public Integer getEndTime() { return endTime; } @@ -77,7 +100,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public String getBucketName() { return bucketName; } @@ -85,4 +108,14 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileDailyReportResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileDailyReportResponse.java index 1284af36..6ca13e52 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileDailyReportResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileDailyReportResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUFileDailyReportResponse extends Response { - /** 消费情况 */ + + + /** + * 消费情况 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,229 +41,311 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UFileDailyReportItem extends Response { + + + /** + * 标准存储量;单位GB + */ + @SerializedName("Storage") + private Double storage; + + + + /** + * 低频存储量;单位GB + */ + @SerializedName("IaStorage") + private Double iaStorage; + + + + /** + * 冷存(归档)存储量;单位GB + */ + @SerializedName("AcStorage") + private Double acStorage; + + + + /** + * 低频数据取回量;单位GB + */ + @SerializedName("IaGetSize") + private Double iaGetSize; + + + + /** + * 冷存激活量,即归档数据取回量;单位GB + */ + @SerializedName("AcRestore") + private Double acRestore; + + + + /** + * 忙时流量;单位GB;海外无此字段 + */ + @SerializedName("BusyFlow") + private Double busyFlow; + + + + /** + * 闲时流量;单位GB;海外无此字段 + */ + @SerializedName("IdleFlow") + private Double idleFlow; + + + + /** + * cdn回源流量;单位GB + */ + @SerializedName("CdnFlow") + private Double cdnFlow; + + + + /** + * 下载流量:单位GB;国内无此字段 + */ + @SerializedName("Flow") + private Double flow; + + + + /** + * 配额消费时间,unix时间戳(单位s),精确到日期 + */ + @SerializedName("Date") + private Integer date; + + + + /** + * API请求次数(万次) + */ + @SerializedName("ApiTimes") + private Double apiTimes; + + + public Double getStorage() { + return storage; + } - public static class UFileDailyReportItem extends Response { - - /** 标准存储量;单位GB */ - @SerializedName("Storage") - private Double storage; - - /** 低频存储量;单位GB */ - @SerializedName("IaStorage") - private Double iaStorage; - - /** 冷存(归档)存储量;单位GB */ - @SerializedName("AcStorage") - private Double acStorage; - - /** 低频数据取回量;单位GB */ - @SerializedName("IaGetSize") - private Double iaGetSize; - - /** 冷存激活量,即归档数据取回量;单位GB */ - @SerializedName("AcRestore") - private Double acRestore; - - /** 忙时流量;单位GB;海外无此字段 */ - @SerializedName("BusyFlow") - private Double busyFlow; - - /** 闲时流量;单位GB;海外无此字段 */ - @SerializedName("IdleFlow") - private Double idleFlow; - - /** cdn回源流量;单位GB */ - @SerializedName("CdnFlow") - private Double cdnFlow; - - /** 下载流量:单位GB;国内无此字段 */ - @SerializedName("Flow") - private Double flow; - - /** 配额消费时间,unix时间戳(单位s),精确到日期 */ - @SerializedName("Date") - private Integer date; - - /** API请求次数(万次) */ - @SerializedName("ApiTimes") - private Double apiTimes; - - public Double getStorage() { - return storage; - } - - public void setStorage(Double storage) { - this.storage = storage; - } - - public Double getIaStorage() { - return iaStorage; - } - - public void setIaStorage(Double iaStorage) { - this.iaStorage = iaStorage; - } - - public Double getAcStorage() { - return acStorage; - } - - public void setAcStorage(Double acStorage) { - this.acStorage = acStorage; - } - - public Double getIaGetSize() { - return iaGetSize; - } - - public void setIaGetSize(Double iaGetSize) { - this.iaGetSize = iaGetSize; - } - - public Double getAcRestore() { - return acRestore; - } - - public void setAcRestore(Double acRestore) { - this.acRestore = acRestore; - } - - public Double getBusyFlow() { - return busyFlow; - } - - public void setBusyFlow(Double busyFlow) { - this.busyFlow = busyFlow; - } - - public Double getIdleFlow() { - return idleFlow; - } - - public void setIdleFlow(Double idleFlow) { - this.idleFlow = idleFlow; - } - - public Double getCdnFlow() { - return cdnFlow; - } - - public void setCdnFlow(Double cdnFlow) { - this.cdnFlow = cdnFlow; - } - - public Double getFlow() { - return flow; - } - - public void setFlow(Double flow) { - this.flow = flow; - } - - public Integer getDate() { - return date; - } + public void setStorage(Double storage) { + this.storage = storage; + } + + public Double getIaStorage() { + return iaStorage; + } - public void setDate(Integer date) { - this.date = date; - } + public void setIaStorage(Double iaStorage) { + this.iaStorage = iaStorage; + } + + public Double getAcStorage() { + return acStorage; + } - public Double getApiTimes() { - return apiTimes; - } + public void setAcStorage(Double acStorage) { + this.acStorage = acStorage; + } + + public Double getIaGetSize() { + return iaGetSize; + } - public void setApiTimes(Double apiTimes) { - this.apiTimes = apiTimes; - } + public void setIaGetSize(Double iaGetSize) { + this.iaGetSize = iaGetSize; + } + + public Double getAcRestore() { + return acRestore; } - public static class UFileReportItem extends Response { + public void setAcRestore(Double acRestore) { + this.acRestore = acRestore; + } + + public Double getBusyFlow() { + return busyFlow; + } - /** 总消费情况 */ - @SerializedName("Total") - private List total; + public void setBusyFlow(Double busyFlow) { + this.busyFlow = busyFlow; + } + + public Double getIdleFlow() { + return idleFlow; + } - /** 日消费情况 */ - @SerializedName("Daily") - private List daily; + public void setIdleFlow(Double idleFlow) { + this.idleFlow = idleFlow; + } + + public Double getCdnFlow() { + return cdnFlow; + } - public List getTotal() { - return total; - } + public void setCdnFlow(Double cdnFlow) { + this.cdnFlow = cdnFlow; + } + + public Double getFlow() { + return flow; + } - public void setTotal(List total) { - this.total = total; - } + public void setFlow(Double flow) { + this.flow = flow; + } + + public Integer getDate() { + return date; + } - public List getDaily() { - return daily; - } + public void setDate(Integer date) { + this.date = date; + } + + public Double getApiTimes() { + return apiTimes; + } - public void setDaily(List daily) { - this.daily = daily; - } + public void setApiTimes(Double apiTimes) { + this.apiTimes = apiTimes; + } + + } + public static class UFileReportItem extends Response { + + + /** + * 总消费情况 + */ + @SerializedName("Total") + private List total; + + + + /** + * 日消费情况 + */ + @SerializedName("Daily") + private List daily; + + + public List getTotal() { + return total; } - public static class UFileTotalReportItem extends Response { + public void setTotal(List total) { + this.total = total; + } + + public List getDaily() { + return daily; + } - /** 下载流量:单位GB;国内无此字段 */ - @SerializedName("Flow") - private Double flow; + public void setDaily(List daily) { + this.daily = daily; + } + + } + public static class UFileTotalReportItem extends Response { + + + /** + * 下载流量:单位GB;国内无此字段 + */ + @SerializedName("Flow") + private Double flow; + + + + /** + * 闲时流量;单位GB;海外无此字段 + */ + @SerializedName("IdleFlow") + private Double idleFlow; + + + + /** + * 忙时流量;单位GB;海外无此字段 + */ + @SerializedName("BusyFlow") + private Double busyFlow; + + + + /** + * cdn回源流量;单位GB + */ + @SerializedName("CdnFlow") + private Double cdnFlow; + + + + /** + * API请求次数(万次) + */ + @SerializedName("ApiTimes") + private Double apiTimes; + + + public Double getFlow() { + return flow; + } - /** 闲时流量;单位GB;海外无此字段 */ - @SerializedName("IdleFlow") - private Double idleFlow; + public void setFlow(Double flow) { + this.flow = flow; + } + + public Double getIdleFlow() { + return idleFlow; + } - /** 忙时流量;单位GB;海外无此字段 */ - @SerializedName("BusyFlow") - private Double busyFlow; + public void setIdleFlow(Double idleFlow) { + this.idleFlow = idleFlow; + } + + public Double getBusyFlow() { + return busyFlow; + } - /** cdn回源流量;单位GB */ - @SerializedName("CdnFlow") - private Double cdnFlow; + public void setBusyFlow(Double busyFlow) { + this.busyFlow = busyFlow; + } + + public Double getCdnFlow() { + return cdnFlow; + } - /** API请求次数(万次) */ - @SerializedName("ApiTimes") - private Double apiTimes; + public void setCdnFlow(Double cdnFlow) { + this.cdnFlow = cdnFlow; + } + + public Double getApiTimes() { + return apiTimes; + } - public Double getFlow() { - return flow; + public void setApiTimes(Double apiTimes) { + this.apiTimes = apiTimes; + } + } +} - public void setFlow(Double flow) { - this.flow = flow; - } - public Double getIdleFlow() { - return idleFlow; - } - public void setIdleFlow(Double idleFlow) { - this.idleFlow = idleFlow; - } - public Double getBusyFlow() { - return busyFlow; - } - public void setBusyFlow(Double busyFlow) { - this.busyFlow = busyFlow; - } - public Double getCdnFlow() { - return cdnFlow; - } - public void setCdnFlow(Double cdnFlow) { - this.cdnFlow = cdnFlow; - } - public Double getApiTimes() { - return apiTimes; - } - public void setApiTimes(Double apiTimes) { - this.apiTimes = apiTimes; - } - } -} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaInfoRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaInfoRequest.java index 5611005b..7d613761 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaInfoRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaInfoRequest.java @@ -1,40 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUFileQuotaInfoRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 配额类型,取值为storage-volume, download-traffic或request-count */ + + + + /** + * 配额类型,取值为storage-volume, download-traffic或request-count + */ @NotEmpty @UCloudParam("QuotaType") private List quotaType; - + + public String getRegion() { return region; } @@ -42,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -50,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getQuotaType() { return quotaType; } @@ -58,4 +75,14 @@ public List getQuotaType() { public void setQuotaType(List quotaType) { this.quotaType = quotaType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaInfoResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaInfoResponse.java index 7078e7e8..f26785a8 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaInfoResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaInfoResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUFileQuotaInfoResponse extends Response { - /** 配额信息数据集 */ + + + /** + * 配额信息数据集 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,82 +41,116 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UFileQuotaDataSetItem extends Response { + + + /** + * 可用地域 + */ + @SerializedName("Region") + private String region; + + + + /** + * 是否欠费:1表示欠费;0表示未欠费 + */ + @SerializedName("Owe") + private Integer owe; + + + + /** + * 剩余存储容量 + */ + @SerializedName("Storage") + private UFileQuotaLeft storage; + + + + /** + * 剩余下载流量 + */ + @SerializedName("DownloadFlow") + private UFileQuotaLeft downloadFlow; + + + + /** + * 剩余请求次数 + */ + @SerializedName("RequestCnt") + private UFileQuotaLeft requestCnt; + + + public String getRegion() { + return region; + } - public static class UFileQuotaDataSetItem extends Response { - - /** 可用地域 */ - @SerializedName("Region") - private String region; - - /** 是否欠费:1表示欠费;0表示未欠费 */ - @SerializedName("Owe") - private Integer owe; - - /** 剩余存储容量 */ - @SerializedName("Storage") - private UFileQuotaLeft storage; - - /** 剩余下载流量 */ - @SerializedName("DownloadFlow") - private UFileQuotaLeft downloadFlow; - - /** 剩余请求次数 */ - @SerializedName("RequestCnt") - private UFileQuotaLeft requestCnt; + public void setRegion(String region) { + this.region = region; + } + + public Integer getOwe() { + return owe; + } - public String getRegion() { - return region; - } + public void setOwe(Integer owe) { + this.owe = owe; + } + + public UFileQuotaLeft getStorage() { + return storage; + } - public void setRegion(String region) { - this.region = region; - } + public void setStorage(UFileQuotaLeft storage) { + this.storage = storage; + } + + public UFileQuotaLeft getDownloadFlow() { + return downloadFlow; + } - public Integer getOwe() { - return owe; - } + public void setDownloadFlow(UFileQuotaLeft downloadFlow) { + this.downloadFlow = downloadFlow; + } + + public UFileQuotaLeft getRequestCnt() { + return requestCnt; + } - public void setOwe(Integer owe) { - this.owe = owe; + public void setRequestCnt(UFileQuotaLeft requestCnt) { + this.requestCnt = requestCnt; + } + } + public static class UFileQuotaLeft extends Response { + + + /** + * 配额剩余量 + */ + @SerializedName("Left") + private Double left; + + + public Double getLeft() { + return left; + } - public UFileQuotaLeft getStorage() { - return storage; + public void setLeft(Double left) { + this.left = left; + } + } +} - public void setStorage(UFileQuotaLeft storage) { - this.storage = storage; - } - public UFileQuotaLeft getDownloadFlow() { - return downloadFlow; - } - public void setDownloadFlow(UFileQuotaLeft downloadFlow) { - this.downloadFlow = downloadFlow; - } - public UFileQuotaLeft getRequestCnt() { - return requestCnt; - } - public void setRequestCnt(UFileQuotaLeft requestCnt) { - this.requestCnt = requestCnt; - } - } - public static class UFileQuotaLeft extends Response { - /** 配额剩余量 */ - @SerializedName("Left") - private Double left; - public Double getLeft() { - return left; - } - public void setLeft(Double left) { - this.left = left; - } - } -} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaPriceRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaPriceRequest.java index 957f4366..f8bce227 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaPriceRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaPriceRequest.java @@ -1,42 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUFileQuotaPriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 存储容量,单位: GB*天,范围: [0, 30 000 000],步长:100GB*天 */ + + + + /** + * 存储容量,单位: GB*天,范围: [0, 30 000 000],步长:100GB*天 + */ @UCloudParam("StorageVolume") private Integer storageVolume; - - /** 下载流量,单位: GB,范围: [0, 60 000],步长:1GB */ + + + + /** + * 下载流量,单位: GB,范围: [0, 60 000],步长:1GB + */ @UCloudParam("DownloadTraffic") private Integer downloadTraffic; - - /** 请求次数,单位:万次,范围:[0, 1 000 000],步长:1万次 */ + + + + /** + * 请求次数,单位:万次,范围:[0, 1 000 000],步长:1万次 + */ @UCloudParam("RequestCount") private Integer requestCount; - + + public String getRegion() { return region; } @@ -44,7 +66,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public Integer getStorageVolume() { return storageVolume; } @@ -52,7 +74,7 @@ public Integer getStorageVolume() { public void setStorageVolume(Integer storageVolume) { this.storageVolume = storageVolume; } - + public Integer getDownloadTraffic() { return downloadTraffic; } @@ -60,7 +82,7 @@ public Integer getDownloadTraffic() { public void setDownloadTraffic(Integer downloadTraffic) { this.downloadTraffic = downloadTraffic; } - + public Integer getRequestCount() { return requestCount; } @@ -68,4 +90,14 @@ public Integer getRequestCount() { public void setRequestCount(Integer requestCount) { this.requestCount = requestCount; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaPriceResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaPriceResponse.java index cd6bcc58..2743a85f 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaPriceResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaPriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUFileQuotaPriceResponse extends Response { - /** 待支付价格,单位:分 */ + + + /** + * 待支付价格,单位:分 + */ @SerializedName("Price") private Double price; - + + public Double getPrice() { return price; } @@ -31,4 +41,14 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaRequest.java index 2af76910..eeced981 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaRequest.java @@ -1,34 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUFileQuotaRequest extends Request { - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 配额类型,取值为storage-volume, download-traffic或request-count */ + + + + /** + * 配额类型,取值为storage-volume, download-traffic或request-count + */ @NotEmpty @UCloudParam("QuotaType") private String quotaType; - + + public String getProjectId() { return projectId; } @@ -36,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getQuotaType() { return quotaType; } @@ -44,4 +58,14 @@ public String getQuotaType() { public void setQuotaType(String quotaType) { this.quotaType = quotaType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaResponse.java index a0e767e5..b151774f 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUFileQuotaResponse extends Response { - /** 剩余的配额数值 */ + + + /** + * 剩余的配额数值 + */ @SerializedName("LeftQuota") private Double leftQuota; - + + public Double getLeftQuota() { return leftQuota; } @@ -31,4 +41,14 @@ public Double getLeftQuota() { public void setLeftQuota(Double leftQuota) { this.leftQuota = leftQuota; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileReportRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileReportRequest.java index b4b73d32..175bee3b 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileReportRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileReportRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUFileReportRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 查询开始时间 */ + + + + /** + * 查询开始时间 + */ @NotEmpty @UCloudParam("StartTime") private Integer startTime; - - /** 查询结束时间 */ + + + + /** + * 查询结束时间 + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -54,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getStartTime() { return startTime; } @@ -62,7 +84,7 @@ public Integer getStartTime() { public void setStartTime(Integer startTime) { this.startTime = startTime; } - + public Integer getEndTime() { return endTime; } @@ -70,4 +92,14 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileReportResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileReportResponse.java index 9a49770b..d88445c2 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileReportResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileReportResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUFileReportResponse extends Response { - /** 报表内容 参数见 UFileReportSet */ + + + /** + * 报表内容 参数见 UFileReportSet + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,55 +41,81 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UFileReportSet extends Response { + + + /** + * 配额消费时间,unix时间戳,精确到日期 + */ + @SerializedName("Time") + private Integer time; + + + + /** + * 配额消费当日使用的存储容量,单位:GB*天 + */ + @SerializedName("StorageVolume") + private Double storageVolume; + + + + /** + * 配额消费当日使用的下载流量,单位:GB + */ + @SerializedName("DownloadTraffic") + private Double downloadTraffic; + + + + /** + * 配额消费当日使用的请求次数,单位:万次 + */ + @SerializedName("RequestCount") + private Double requestCount; + + + public Integer getTime() { + return time; + } - public static class UFileReportSet extends Response { + public void setTime(Integer time) { + this.time = time; + } + + public Double getStorageVolume() { + return storageVolume; + } - /** 配额消费时间,unix时间戳,精确到日期 */ - @SerializedName("Time") - private Integer time; + public void setStorageVolume(Double storageVolume) { + this.storageVolume = storageVolume; + } + + public Double getDownloadTraffic() { + return downloadTraffic; + } - /** 配额消费当日使用的存储容量,单位:GB*天 */ - @SerializedName("StorageVolume") - private Double storageVolume; + public void setDownloadTraffic(Double downloadTraffic) { + this.downloadTraffic = downloadTraffic; + } + + public Double getRequestCount() { + return requestCount; + } - /** 配额消费当日使用的下载流量,单位:GB */ - @SerializedName("DownloadTraffic") - private Double downloadTraffic; + public void setRequestCount(Double requestCount) { + this.requestCount = requestCount; + } + + } +} - /** 配额消费当日使用的请求次数,单位:万次 */ - @SerializedName("RequestCount") - private Double requestCount; - public Integer getTime() { - return time; - } - public void setTime(Integer time) { - this.time = time; - } - public Double getStorageVolume() { - return storageVolume; - } - public void setStorageVolume(Double storageVolume) { - this.storageVolume = storageVolume; - } - public Double getDownloadTraffic() { - return downloadTraffic; - } - public void setDownloadTraffic(Double downloadTraffic) { - this.downloadTraffic = downloadTraffic; - } - public Double getRequestCount() { - return requestCount; - } - public void setRequestCount(Double requestCount) { - this.requestCount = requestCount; - } - } -} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/SetUFileRefererRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/SetUFileRefererRequest.java index fff1b81c..7632f870 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/SetUFileRefererRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/SetUFileRefererRequest.java @@ -1,59 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class SetUFileRefererRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 存储空间名称 */ + + + + /** + * 存储空间名称 + */ @NotEmpty @UCloudParam("BucketName") private String bucketName; - - /** 开启关闭referer防盗链;关闭防盗链会清空防盗链参数设置,开启防盗链必须指定 RefererType、Referers;开启:on, 关闭:off; */ + + + + /** + * 开启关闭referer防盗链;关闭防盗链会清空防盗链参数设置,开启防盗链必须指定 RefererType、Referers;开启:on, 关闭:off; + */ @NotEmpty @UCloudParam("RefererStatus") private String refererStatus; - - /** RefererType为白名单时,RefererAllowNull为false代表不允许空referer访问,为true代表允许空referer访问; 此参数默认为 true; */ + + + + /** + * RefererType为白名单时,RefererAllowNull为false代表不允许空referer访问,为true代表允许空referer访问; +此参数默认为 true; + */ @UCloudParam("RefererAllowNull") private Boolean refererAllowNull; - - /** 防盗链Referer类型,支持两种类型,黑名单和白名单; 1黑名单,2白名单;RefererStatus为"on"时此参数必填; */ + + + + /** + * 防盗链Referer类型,支持两种类型,黑名单和白名单; 1黑名单,2白名单;RefererStatus为"on"时此参数必填; + */ @UCloudParam("RefererType") private Integer refererType; - - /** 防盗链Referer规则,支持正则表达式(不支持符号';') */ + + + + /** + * 防盗链Referer规则,支持正则表达式(不支持符号';') + */ @UCloudParam("Referers") private List referers; - + + public String getRegion() { return region; } @@ -61,7 +92,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -69,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getBucketName() { return bucketName; } @@ -77,7 +108,7 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } - + public String getRefererStatus() { return refererStatus; } @@ -85,7 +116,7 @@ public String getRefererStatus() { public void setRefererStatus(String refererStatus) { this.refererStatus = refererStatus; } - + public Boolean getRefererAllowNull() { return refererAllowNull; } @@ -93,7 +124,7 @@ public Boolean getRefererAllowNull() { public void setRefererAllowNull(Boolean refererAllowNull) { this.refererAllowNull = refererAllowNull; } - + public Integer getRefererType() { return refererType; } @@ -101,7 +132,7 @@ public Integer getRefererType() { public void setRefererType(Integer refererType) { this.refererType = refererType; } - + public List getReferers() { return referers; } @@ -109,4 +140,14 @@ public List getReferers() { public void setReferers(List referers) { this.referers = referers; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/SetUFileRefererResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/SetUFileRefererResponse.java index 33bc88b9..c2652eff 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/SetUFileRefererResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/SetUFileRefererResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class SetUFileRefererResponse extends Response {} +public class SetUFileRefererResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateBucketRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateBucketRequest.java index 5bc1ff2f..c11cd3bc 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateBucketRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateBucketRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateBucketRequest extends Request { - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 待修改Bucket的名称 */ + + + + /** + * 待修改Bucket的名称 + */ @NotEmpty @UCloudParam("BucketName") private String bucketName; - - /** Bucket访问类型;public或private */ + + + + /** + * Bucket访问类型;public或private + */ @NotEmpty @UCloudParam("Type") private String type; - + + public String getProjectId() { return projectId; } @@ -41,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getBucketName() { return bucketName; } @@ -49,7 +67,7 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } - + public String getType() { return type; } @@ -57,4 +75,14 @@ public String getType() { public void setType(String type) { this.type = type; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateBucketResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateBucketResponse.java index 1c6de26a..5a25cb55 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateBucketResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateBucketResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class UpdateBucketResponse extends Response { - /** Bucket的名称 */ + + + /** + * Bucket的名称 + */ @SerializedName("BucketName") private String bucketName; - - /** Bucket的ID */ + + + + /** + * Bucket的ID + */ @SerializedName("BucketId") private String bucketId; - + + public String getBucketName() { return bucketName; } @@ -35,7 +49,7 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } - + public String getBucketId() { return bucketId; } @@ -43,4 +57,14 @@ public String getBucketId() { public void setBucketId(String bucketId) { this.bucketId = bucketId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileLifeCycleRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileLifeCycleRequest.java index 1ecd1026..16dceca0 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileLifeCycleRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileLifeCycleRequest.java @@ -1,73 +1,116 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUFileLifeCycleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 生命周期Id */ + + + + /** + * 生命周期Id + */ @NotEmpty @UCloudParam("LifeCycleId") private String lifeCycleId; - - /** 生命周期名称 */ + + + + /** + * 生命周期名称 + */ @NotEmpty @UCloudParam("LifeCycleName") private String lifeCycleName; - - /** 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀; */ + + + + /** + * 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀; + */ @NotEmpty @UCloudParam("Prefix") private String prefix; - - /** Enabled -- 启用,Disabled -- 不启用 */ + + + + /** + * Enabled -- 启用,Disabled -- 不启用 + */ @NotEmpty @UCloudParam("Status") private String status; - - /** 存储空间名称 */ + + + + /** + * 存储空间名称 + */ @NotEmpty @UCloudParam("BucketName") private String bucketName; - - /** 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500] */ + + + + /** + * 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500] + */ @UCloudParam("Days") private Integer days; - - /** 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型;范围: [7,36500],0代表不启用 */ + + + + /** + * 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型;范围: [7,36500],0代表不启用 + */ @UCloudParam("ArchivalDays") private Integer archivalDays; - - /** 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型;范围: [7,36500],0代表不启用 */ + + + + /** + * 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型;范围: [7,36500],0代表不启用 + */ @UCloudParam("IADays") private Integer iaDays; - + + public String getRegion() { return region; } @@ -75,7 +118,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -83,7 +126,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getLifeCycleId() { return lifeCycleId; } @@ -91,7 +134,7 @@ public String getLifeCycleId() { public void setLifeCycleId(String lifeCycleId) { this.lifeCycleId = lifeCycleId; } - + public String getLifeCycleName() { return lifeCycleName; } @@ -99,7 +142,7 @@ public String getLifeCycleName() { public void setLifeCycleName(String lifeCycleName) { this.lifeCycleName = lifeCycleName; } - + public String getPrefix() { return prefix; } @@ -107,7 +150,7 @@ public String getPrefix() { public void setPrefix(String prefix) { this.prefix = prefix; } - + public String getStatus() { return status; } @@ -115,7 +158,7 @@ public String getStatus() { public void setStatus(String status) { this.status = status; } - + public String getBucketName() { return bucketName; } @@ -123,7 +166,7 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } - + public Integer getDays() { return days; } @@ -131,7 +174,7 @@ public Integer getDays() { public void setDays(Integer days) { this.days = days; } - + public Integer getArchivalDays() { return archivalDays; } @@ -139,7 +182,7 @@ public Integer getArchivalDays() { public void setArchivalDays(Integer archivalDays) { this.archivalDays = archivalDays; } - + public Integer getIADays() { return iaDays; } @@ -147,4 +190,14 @@ public Integer getIADays() { public void setIADays(Integer iaDays) { this.iaDays = iaDays; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileLifeCycleResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileLifeCycleResponse.java index 4d2a514a..b37b3a78 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileLifeCycleResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileLifeCycleResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUFileLifeCycleResponse extends Response {} +public class UpdateUFileLifeCycleResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileTokenRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileTokenRequest.java index fb4ece3d..a74a191d 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileTokenRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileTokenRequest.java @@ -1,63 +1,97 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UpdateUFileTokenRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 令牌ID */ + + + + /** + * 令牌ID + */ @NotEmpty @UCloudParam("TokenId") private String tokenId; - - /** 令牌名称 */ + + + + /** + * 令牌名称 + */ @UCloudParam("TokenName") private String tokenName; - + + + /** - * 令牌允许执行的操作,[ TOKEN_ALLOW_NONE , TOKEN_ALLOW_READ , TOKEN_ALLOW_WRITE , TOKEN_ALLOW_DELETE , - * TOKEN_ALLOW_LIST, TOKEN_ALLOW_IOP , TOKEN_ALLOW_DP ] + * 令牌允许执行的操作,[ TOKEN_ALLOW_NONE , TOKEN_ALLOW_READ , TOKEN_ALLOW_WRITE , TOKEN_ALLOW_DELETE , TOKEN_ALLOW_LIST, TOKEN_ALLOW_IOP , TOKEN_ALLOW_DP ] */ @UCloudParam("AllowedOps") private List allowedOps; - - /** 令牌允许操作的key前缀 */ + + + + /** + * 令牌允许操作的key前缀 + */ @UCloudParam("AllowedPrefixes") private List allowedPrefixes; - - /** 令牌允许操作的bucket */ + + + + /** + * 令牌允许操作的bucket + */ @UCloudParam("AllowedBuckets") private List allowedBuckets; - - /** 令牌的超时时间点(时间戳);注意:过期时间不能超过 4102416000 */ + + + + /** + * 令牌的超时时间点(时间戳);注意:过期时间不能超过 4102416000 + */ @UCloudParam("ExpireTime") private Integer expireTime; - + + public String getRegion() { return region; } @@ -65,7 +99,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -73,7 +107,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getTokenId() { return tokenId; } @@ -81,7 +115,7 @@ public String getTokenId() { public void setTokenId(String tokenId) { this.tokenId = tokenId; } - + public String getTokenName() { return tokenName; } @@ -89,7 +123,7 @@ public String getTokenName() { public void setTokenName(String tokenName) { this.tokenName = tokenName; } - + public List getAllowedOps() { return allowedOps; } @@ -97,7 +131,7 @@ public List getAllowedOps() { public void setAllowedOps(List allowedOps) { this.allowedOps = allowedOps; } - + public List getAllowedPrefixes() { return allowedPrefixes; } @@ -105,7 +139,7 @@ public List getAllowedPrefixes() { public void setAllowedPrefixes(List allowedPrefixes) { this.allowedPrefixes = allowedPrefixes; } - + public List getAllowedBuckets() { return allowedBuckets; } @@ -113,7 +147,7 @@ public List getAllowedBuckets() { public void setAllowedBuckets(List allowedBuckets) { this.allowedBuckets = allowedBuckets; } - + public Integer getExpireTime() { return expireTime; } @@ -121,4 +155,14 @@ public Integer getExpireTime() { public void setExpireTime(Integer expireTime) { this.expireTime = expireTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileTokenResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileTokenResponse.java index c01b479d..7d26269f 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileTokenResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileTokenResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUFileTokenResponse extends Response {} +public class UpdateUFileTokenResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUdsRuleRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUdsRuleRequest.java index 51b0e9b8..f74514cc 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUdsRuleRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUdsRuleRequest.java @@ -1,87 +1,144 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UpdateUdsRuleRequest extends Request { - /** 规则的唯一Id */ + + + /** + * 规则的唯一Id + */ @NotEmpty @UCloudParam("RuleId") private String ruleId; - - /** 规则名称 */ + + + + /** + * 规则名称 + */ @NotEmpty @UCloudParam("RuleName") private String ruleName; - - /** 源Bucket名字,全局唯一 */ + + + + /** + * 源Bucket名字,全局唯一 + */ @NotEmpty @UCloudParam("SrcBucket") private String srcBucket; - - /** 源bucket的token之一的tokenId */ + + + + /** + * 源bucket的token之一的tokenId + */ @NotEmpty @UCloudParam("SrcTokenId") private String srcTokenId; - - /** 目标Bucket名字,全局唯一 */ + + + + /** + * 目标Bucket名字,全局唯一 + */ @NotEmpty @UCloudParam("DstBucket") private String dstBucket; - - /** 目标bucket的token之一的tokenId */ + + + + /** + * 目标bucket的token之一的tokenId + */ @NotEmpty @UCloudParam("DstTokenId") private String dstTokenId; - - /** 解压后的目标目录 */ + + + + /** + * 解压后的目标目录 + */ @NotEmpty @UCloudParam("DstDirectory") private String dstDirectory; - - /** 是否以压缩文件的前缀为最后一层目录 */ + + + + /** + * 是否以压缩文件的前缀为最后一层目录 + */ @NotEmpty @UCloudParam("KeepUS3Name") private Boolean keepUS3Name; - - /** 触发解压缩的前缀 */ + + + + /** + * 触发解压缩的前缀 + */ @NotEmpty @UCloudParam("Prefixes") private String prefixes; - - /** 操作的ops数组,"Ops.0":"unzip" */ + + + + /** + * 操作的ops数组,"Ops.0":"unzip" + */ @UCloudParam("Ops") private List ops; - - /** 通知的事件数组 */ + + + + /** + * 通知的事件数组 + */ @UCloudParam("Events") private List events; - - /** 联系的用户组ID */ + + + + /** + * 联系的用户组ID + */ @UCloudParam("ContactGroupId") private String contactGroupId; - - /** 通知的类型数组 */ + + + + /** + * 通知的类型数组 + */ @UCloudParam("NotificationTypes") private List notificationTypes; - + + public String getRuleId() { return ruleId; } @@ -89,7 +146,7 @@ public String getRuleId() { public void setRuleId(String ruleId) { this.ruleId = ruleId; } - + public String getRuleName() { return ruleName; } @@ -97,7 +154,7 @@ public String getRuleName() { public void setRuleName(String ruleName) { this.ruleName = ruleName; } - + public String getSrcBucket() { return srcBucket; } @@ -105,7 +162,7 @@ public String getSrcBucket() { public void setSrcBucket(String srcBucket) { this.srcBucket = srcBucket; } - + public String getSrcTokenId() { return srcTokenId; } @@ -113,7 +170,7 @@ public String getSrcTokenId() { public void setSrcTokenId(String srcTokenId) { this.srcTokenId = srcTokenId; } - + public String getDstBucket() { return dstBucket; } @@ -121,7 +178,7 @@ public String getDstBucket() { public void setDstBucket(String dstBucket) { this.dstBucket = dstBucket; } - + public String getDstTokenId() { return dstTokenId; } @@ -129,7 +186,7 @@ public String getDstTokenId() { public void setDstTokenId(String dstTokenId) { this.dstTokenId = dstTokenId; } - + public String getDstDirectory() { return dstDirectory; } @@ -137,7 +194,7 @@ public String getDstDirectory() { public void setDstDirectory(String dstDirectory) { this.dstDirectory = dstDirectory; } - + public Boolean getKeepUS3Name() { return keepUS3Name; } @@ -145,7 +202,7 @@ public Boolean getKeepUS3Name() { public void setKeepUS3Name(Boolean keepUS3Name) { this.keepUS3Name = keepUS3Name; } - + public String getPrefixes() { return prefixes; } @@ -153,7 +210,7 @@ public String getPrefixes() { public void setPrefixes(String prefixes) { this.prefixes = prefixes; } - + public List getOps() { return ops; } @@ -161,7 +218,7 @@ public List getOps() { public void setOps(List ops) { this.ops = ops; } - + public List getEvents() { return events; } @@ -169,7 +226,7 @@ public List getEvents() { public void setEvents(List events) { this.events = events; } - + public String getContactGroupId() { return contactGroupId; } @@ -177,7 +234,7 @@ public String getContactGroupId() { public void setContactGroupId(String contactGroupId) { this.contactGroupId = contactGroupId; } - + public List getNotificationTypes() { return notificationTypes; } @@ -185,4 +242,14 @@ public List getNotificationTypes() { public void setNotificationTypes(List notificationTypes) { this.notificationTypes = notificationTypes; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUdsRuleResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUdsRuleResponse.java index d5ecb163..89951158 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUdsRuleResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUdsRuleResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufile.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class UpdateUdsRuleResponse extends Response { - /** 返回规则的规则ID */ + + + /** + * 返回规则的规则ID + */ @SerializedName("RuleId") private String ruleId; - - /** 该请求的消息成功或者失败的描述 */ + + + + /** + * 该请求的消息成功或者失败的描述 + */ @SerializedName("Mesage") private String mesage; - + + public String getRuleId() { return ruleId; } @@ -35,7 +49,7 @@ public String getRuleId() { public void setRuleId(String ruleId) { this.ruleId = ruleId; } - + public String getMesage() { return mesage; } @@ -43,4 +57,14 @@ public String getMesage() { public void setMesage(String mesage) { this.mesage = mesage; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index bbed70fa..8be9ebeb 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-ufs - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/client/UFSClient.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/client/UFSClient.java index 848d70b0..5653b7c5 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/client/UFSClient.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/client/UFSClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.ufs.client; @@ -17,141 +19,201 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.ufs.models.AddUFSVolumeMountPointRequest; import cn.ucloud.ufs.models.AddUFSVolumeMountPointResponse; + + + import cn.ucloud.ufs.models.CreateUFSVolumeRequest; import cn.ucloud.ufs.models.CreateUFSVolumeResponse; + + + import cn.ucloud.ufs.models.DescribeUFSVolume2Request; import cn.ucloud.ufs.models.DescribeUFSVolume2Response; + + + import cn.ucloud.ufs.models.DescribeUFSVolumeMountpointRequest; import cn.ucloud.ufs.models.DescribeUFSVolumeMountpointResponse; + + + import cn.ucloud.ufs.models.DescribeUFSVolumePriceRequest; import cn.ucloud.ufs.models.DescribeUFSVolumePriceResponse; + + + import cn.ucloud.ufs.models.ExtendUFSVolumeRequest; import cn.ucloud.ufs.models.ExtendUFSVolumeResponse; -import cn.ucloud.ufs.models.RemoveUFSVolumeMountPointRequest; -import cn.ucloud.ufs.models.RemoveUFSVolumeMountPointResponse; + + + import cn.ucloud.ufs.models.RemoveUFSVolumeRequest; import cn.ucloud.ufs.models.RemoveUFSVolumeResponse; + + + +import cn.ucloud.ufs.models.RemoveUFSVolumeMountPointRequest; +import cn.ucloud.ufs.models.RemoveUFSVolumeMountPointResponse; + + + import cn.ucloud.ufs.models.UpdateUFSVolumeInfoRequest; import cn.ucloud.ufs.models.UpdateUFSVolumeInfoResponse; -/** This client is used to call actions of **UFS** service */ +/** + * This client is used to call actions of **UFS** service + */ public class UFSClient extends DefaultClient implements UFSClientInterface { public UFSClient(Config config, Credential credential) { super(config, credential); } - - /** - * AddUFSVolumeMountPoint - 添加文件系统挂载点 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AddUFSVolumeMountPointResponse addUFSVolumeMountPoint( - AddUFSVolumeMountPointRequest request) throws UCloudException { - request.setAction("AddUFSVolumeMountPoint"); - return (AddUFSVolumeMountPointResponse) - this.invoke(request, AddUFSVolumeMountPointResponse.class); - } - - /** - * CreateUFSVolume - 创建文件系统 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUFSVolumeResponse createUFSVolume(CreateUFSVolumeRequest request) - throws UCloudException { - request.setAction("CreateUFSVolume"); - return (CreateUFSVolumeResponse) this.invoke(request, CreateUFSVolumeResponse.class); - } - - /** - * DescribeUFSVolume2 - 获取文件系统列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUFSVolume2Response describeUFSVolume2(DescribeUFSVolume2Request request) - throws UCloudException { - request.setAction("DescribeUFSVolume2"); - return (DescribeUFSVolume2Response) this.invoke(request, DescribeUFSVolume2Response.class); - } - - /** - * DescribeUFSVolumeMountpoint - 获取文件系统挂载点信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUFSVolumeMountpointResponse describeUFSVolumeMountpoint( - DescribeUFSVolumeMountpointRequest request) throws UCloudException { - request.setAction("DescribeUFSVolumeMountpoint"); - return (DescribeUFSVolumeMountpointResponse) - this.invoke(request, DescribeUFSVolumeMountpointResponse.class); - } - - /** - * DescribeUFSVolumePrice - 获取文件系统价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUFSVolumePriceResponse describeUFSVolumePrice( - DescribeUFSVolumePriceRequest request) throws UCloudException { - request.setAction("DescribeUFSVolumePrice"); - return (DescribeUFSVolumePriceResponse) - this.invoke(request, DescribeUFSVolumePriceResponse.class); - } - - /** - * ExtendUFSVolume - 文件系统扩容 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ExtendUFSVolumeResponse extendUFSVolume(ExtendUFSVolumeRequest request) - throws UCloudException { - request.setAction("ExtendUFSVolume"); - return (ExtendUFSVolumeResponse) this.invoke(request, ExtendUFSVolumeResponse.class); - } - - /** - * RemoveUFSVolume - 删除文件系统 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RemoveUFSVolumeResponse removeUFSVolume(RemoveUFSVolumeRequest request) - throws UCloudException { - request.setAction("RemoveUFSVolume"); - return (RemoveUFSVolumeResponse) this.invoke(request, RemoveUFSVolumeResponse.class); - } - - /** - * RemoveUFSVolumeMountPoint - 删除文件系统挂载点 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RemoveUFSVolumeMountPointResponse removeUFSVolumeMountPoint( - RemoveUFSVolumeMountPointRequest request) throws UCloudException { - request.setAction("RemoveUFSVolumeMountPoint"); - return (RemoveUFSVolumeMountPointResponse) - this.invoke(request, RemoveUFSVolumeMountPointResponse.class); - } - - /** - * UpdateUFSVolumeInfo - 更改文件系统相关信息(名称/备注) - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUFSVolumeInfoResponse updateUFSVolumeInfo(UpdateUFSVolumeInfoRequest request) - throws UCloudException { - request.setAction("UpdateUFSVolumeInfo"); - return (UpdateUFSVolumeInfoResponse) - this.invoke(request, UpdateUFSVolumeInfoResponse.class); - } + + + + + + + /** + * AddUFSVolumeMountPoint - 添加文件系统挂载点 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUFSVolumeMountPointResponse addUFSVolumeMountPoint(AddUFSVolumeMountPointRequest request) throws UCloudException { + request.setAction("AddUFSVolumeMountPoint"); + return (AddUFSVolumeMountPointResponse) this.invoke(request, AddUFSVolumeMountPointResponse.class); + } + + + + + + + /** + * CreateUFSVolume - 创建文件系统 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUFSVolumeResponse createUFSVolume(CreateUFSVolumeRequest request) throws UCloudException { + request.setAction("CreateUFSVolume"); + return (CreateUFSVolumeResponse) this.invoke(request, CreateUFSVolumeResponse.class); + } + + + + + + + /** + * DescribeUFSVolume2 - 获取文件系统列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUFSVolume2Response describeUFSVolume2(DescribeUFSVolume2Request request) throws UCloudException { + request.setAction("DescribeUFSVolume2"); + return (DescribeUFSVolume2Response) this.invoke(request, DescribeUFSVolume2Response.class); + } + + + + + + + /** + * DescribeUFSVolumeMountpoint - 获取文件系统挂载点信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUFSVolumeMountpointResponse describeUFSVolumeMountpoint(DescribeUFSVolumeMountpointRequest request) throws UCloudException { + request.setAction("DescribeUFSVolumeMountpoint"); + return (DescribeUFSVolumeMountpointResponse) this.invoke(request, DescribeUFSVolumeMountpointResponse.class); + } + + + + + + + /** + * DescribeUFSVolumePrice - 获取文件系统价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUFSVolumePriceResponse describeUFSVolumePrice(DescribeUFSVolumePriceRequest request) throws UCloudException { + request.setAction("DescribeUFSVolumePrice"); + return (DescribeUFSVolumePriceResponse) this.invoke(request, DescribeUFSVolumePriceResponse.class); + } + + + + + + + /** + * ExtendUFSVolume - 文件系统扩容 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ExtendUFSVolumeResponse extendUFSVolume(ExtendUFSVolumeRequest request) throws UCloudException { + request.setAction("ExtendUFSVolume"); + return (ExtendUFSVolumeResponse) this.invoke(request, ExtendUFSVolumeResponse.class); + } + + + + + + + /** + * RemoveUFSVolume - 删除文件系统 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RemoveUFSVolumeResponse removeUFSVolume(RemoveUFSVolumeRequest request) throws UCloudException { + request.setAction("RemoveUFSVolume"); + return (RemoveUFSVolumeResponse) this.invoke(request, RemoveUFSVolumeResponse.class); + } + + + + + + + /** + * RemoveUFSVolumeMountPoint - 删除文件系统挂载点 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RemoveUFSVolumeMountPointResponse removeUFSVolumeMountPoint(RemoveUFSVolumeMountPointRequest request) throws UCloudException { + request.setAction("RemoveUFSVolumeMountPoint"); + return (RemoveUFSVolumeMountPointResponse) this.invoke(request, RemoveUFSVolumeMountPointResponse.class); + } + + + + + + + /** + * UpdateUFSVolumeInfo - 更改文件系统相关信息(名称/备注) + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUFSVolumeInfoResponse updateUFSVolumeInfo(UpdateUFSVolumeInfoRequest request) throws UCloudException { + request.setAction("UpdateUFSVolumeInfo"); + return (UpdateUFSVolumeInfoResponse) this.invoke(request, UpdateUFSVolumeInfoResponse.class); + } } diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/client/UFSClientInterface.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/client/UFSClientInterface.java index ac5dc516..60082ab3 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/client/UFSClientInterface.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/client/UFSClientInterface.java @@ -1,120 +1,187 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.ufs.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.ufs.models.AddUFSVolumeMountPointRequest; import cn.ucloud.ufs.models.AddUFSVolumeMountPointResponse; + + + import cn.ucloud.ufs.models.CreateUFSVolumeRequest; import cn.ucloud.ufs.models.CreateUFSVolumeResponse; + + + import cn.ucloud.ufs.models.DescribeUFSVolume2Request; import cn.ucloud.ufs.models.DescribeUFSVolume2Response; + + + import cn.ucloud.ufs.models.DescribeUFSVolumeMountpointRequest; import cn.ucloud.ufs.models.DescribeUFSVolumeMountpointResponse; + + + import cn.ucloud.ufs.models.DescribeUFSVolumePriceRequest; import cn.ucloud.ufs.models.DescribeUFSVolumePriceResponse; + + + import cn.ucloud.ufs.models.ExtendUFSVolumeRequest; import cn.ucloud.ufs.models.ExtendUFSVolumeResponse; -import cn.ucloud.ufs.models.RemoveUFSVolumeMountPointRequest; -import cn.ucloud.ufs.models.RemoveUFSVolumeMountPointResponse; + + + import cn.ucloud.ufs.models.RemoveUFSVolumeRequest; import cn.ucloud.ufs.models.RemoveUFSVolumeResponse; + + + +import cn.ucloud.ufs.models.RemoveUFSVolumeMountPointRequest; +import cn.ucloud.ufs.models.RemoveUFSVolumeMountPointResponse; + + + import cn.ucloud.ufs.models.UpdateUFSVolumeInfoRequest; import cn.ucloud.ufs.models.UpdateUFSVolumeInfoResponse; -/** This client is used to call actions of **UFS** service */ +/** + * This client is used to call actions of **UFS** service + */ public interface UFSClientInterface extends Client { - + + + + + + /** * AddUFSVolumeMountPoint - 添加文件系统挂载点 * * @param request Request object * @throws UCloudException Exception */ - public AddUFSVolumeMountPointResponse addUFSVolumeMountPoint( - AddUFSVolumeMountPointRequest request) throws UCloudException; - + public AddUFSVolumeMountPointResponse addUFSVolumeMountPoint(AddUFSVolumeMountPointRequest request) throws UCloudException; + + + + + + /** * CreateUFSVolume - 创建文件系统 * * @param request Request object * @throws UCloudException Exception */ - public CreateUFSVolumeResponse createUFSVolume(CreateUFSVolumeRequest request) - throws UCloudException; - + public CreateUFSVolumeResponse createUFSVolume(CreateUFSVolumeRequest request) throws UCloudException; + + + + + + /** * DescribeUFSVolume2 - 获取文件系统列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUFSVolume2Response describeUFSVolume2(DescribeUFSVolume2Request request) - throws UCloudException; - + public DescribeUFSVolume2Response describeUFSVolume2(DescribeUFSVolume2Request request) throws UCloudException; + + + + + + /** * DescribeUFSVolumeMountpoint - 获取文件系统挂载点信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUFSVolumeMountpointResponse describeUFSVolumeMountpoint( - DescribeUFSVolumeMountpointRequest request) throws UCloudException; - + public DescribeUFSVolumeMountpointResponse describeUFSVolumeMountpoint(DescribeUFSVolumeMountpointRequest request) throws UCloudException; + + + + + + /** * DescribeUFSVolumePrice - 获取文件系统价格 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUFSVolumePriceResponse describeUFSVolumePrice( - DescribeUFSVolumePriceRequest request) throws UCloudException; - + public DescribeUFSVolumePriceResponse describeUFSVolumePrice(DescribeUFSVolumePriceRequest request) throws UCloudException; + + + + + + /** * ExtendUFSVolume - 文件系统扩容 * * @param request Request object * @throws UCloudException Exception */ - public ExtendUFSVolumeResponse extendUFSVolume(ExtendUFSVolumeRequest request) - throws UCloudException; - + public ExtendUFSVolumeResponse extendUFSVolume(ExtendUFSVolumeRequest request) throws UCloudException; + + + + + + /** * RemoveUFSVolume - 删除文件系统 * * @param request Request object * @throws UCloudException Exception */ - public RemoveUFSVolumeResponse removeUFSVolume(RemoveUFSVolumeRequest request) - throws UCloudException; - + public RemoveUFSVolumeResponse removeUFSVolume(RemoveUFSVolumeRequest request) throws UCloudException; + + + + + + /** * RemoveUFSVolumeMountPoint - 删除文件系统挂载点 * * @param request Request object * @throws UCloudException Exception */ - public RemoveUFSVolumeMountPointResponse removeUFSVolumeMountPoint( - RemoveUFSVolumeMountPointRequest request) throws UCloudException; - + public RemoveUFSVolumeMountPointResponse removeUFSVolumeMountPoint(RemoveUFSVolumeMountPointRequest request) throws UCloudException; + + + + + + /** * UpdateUFSVolumeInfo - 更改文件系统相关信息(名称/备注) * * @param request Request object * @throws UCloudException Exception */ - public UpdateUFSVolumeInfoResponse updateUFSVolumeInfo(UpdateUFSVolumeInfoRequest request) - throws UCloudException; + public UpdateUFSVolumeInfoResponse updateUFSVolumeInfo(UpdateUFSVolumeInfoRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/AddUFSVolumeMountPointRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/AddUFSVolumeMountPointRequest.java index a691dd70..730114ed 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/AddUFSVolumeMountPointRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/AddUFSVolumeMountPointRequest.java @@ -1,57 +1,84 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AddUFSVolumeMountPointRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 文件系统ID */ + + + + /** + * 文件系统ID + */ @NotEmpty @UCloudParam("VolumeId") private String volumeId; - - /** 挂载点名称 */ + + + + /** + * 挂载点名称 + */ @NotEmpty @UCloudParam("MountPointName") private String mountPointName; - - /** Vpc ID */ + + + + /** + * Vpc ID + */ @NotEmpty @UCloudParam("VpcId") private String vpcId; - - /** Subnet ID */ + + + + /** + * Subnet ID + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - + + public String getRegion() { return region; } @@ -59,7 +86,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -67,7 +94,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVolumeId() { return volumeId; } @@ -75,7 +102,7 @@ public String getVolumeId() { public void setVolumeId(String volumeId) { this.volumeId = volumeId; } - + public String getMountPointName() { return mountPointName; } @@ -83,7 +110,7 @@ public String getMountPointName() { public void setMountPointName(String mountPointName) { this.mountPointName = mountPointName; } - + public String getVpcId() { return vpcId; } @@ -91,7 +118,7 @@ public String getVpcId() { public void setVpcId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -99,4 +126,14 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/AddUFSVolumeMountPointResponse.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/AddUFSVolumeMountPointResponse.java index 132dbd1d..03aec44a 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/AddUFSVolumeMountPointResponse.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/AddUFSVolumeMountPointResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class AddUFSVolumeMountPointResponse extends Response {} +public class AddUFSVolumeMountPointResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/CreateUFSVolumeRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/CreateUFSVolumeRequest.java index 8c3b30b6..5f10850a 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/CreateUFSVolumeRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/CreateUFSVolumeRequest.java @@ -1,76 +1,123 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUFSVolumeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 文件系统大小,单位为GB,必须为100的整数倍,容量型Size最小为500GB,性能型文件系统Size最小为100GB */ + + + + /** + * 文件系统大小,单位为GB,必须为100的整数倍,容量型Size最小为500GB,性能型文件系统Size最小为100GB + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 文件系统存储类型,Basic表示容量型,Advanced表示性能型 */ + + + + /** + * 文件系统存储类型,Basic表示容量型,Advanced表示性能型 + */ @NotEmpty @UCloudParam("StorageType") private String storageType; - - /** 文件系统协议,目前仅支持NFSv4 */ + + + + /** + * 文件系统协议,目前仅支持NFSv4 + */ @NotEmpty @UCloudParam("ProtocolType") private String protocolType; - - /** 文件系统名称 */ + + + + /** + * 文件系统名称 + */ @UCloudParam("VolumeName") private String volumeName; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - - /** 文件系统所属业务组 */ + + + + /** + * 文件系统所属业务组 + */ @UCloudParam("Tag") private String tag; - - /** 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费(需开启权限); Trial,试用(需开启权限) 默认为Dynamic */ + + + + /** + * 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费(需开启权限); Trial,试用(需开启权限) 默认为Dynamic + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长 默认: 1 */ + + + + /** + * 购买时长 默认: 1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -78,7 +125,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -86,7 +133,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getSize() { return size; } @@ -94,7 +141,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getStorageType() { return storageType; } @@ -102,7 +149,7 @@ public String getStorageType() { public void setStorageType(String storageType) { this.storageType = storageType; } - + public String getProtocolType() { return protocolType; } @@ -110,7 +157,7 @@ public String getProtocolType() { public void setProtocolType(String protocolType) { this.protocolType = protocolType; } - + public String getVolumeName() { return volumeName; } @@ -118,7 +165,7 @@ public String getVolumeName() { public void setVolumeName(String volumeName) { this.volumeName = volumeName; } - + public String getRemark() { return remark; } @@ -126,7 +173,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public String getTag() { return tag; } @@ -134,7 +181,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getChargeType() { return chargeType; } @@ -142,7 +189,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -150,7 +197,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getCouponId() { return couponId; } @@ -158,4 +205,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/CreateUFSVolumeResponse.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/CreateUFSVolumeResponse.java index 984a13a3..de3aef5a 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/CreateUFSVolumeResponse.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/CreateUFSVolumeResponse.java @@ -1,37 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUFSVolumeResponse extends Response { - /** 文件系统名称 */ + + + /** + * 文件系统名称 + */ @SerializedName("VolumeName") private String volumeName; - - /** 文件系统ID */ + + + + /** + * 文件系统ID + */ @SerializedName("VolumeId") private String volumeId; - - /** 文件系统挂载点状态 */ + + + + /** + * 文件系统挂载点状态 + */ @SerializedName("VolumeStatus") private String volumeStatus; - + + public String getVolumeName() { return volumeName; } @@ -39,7 +57,7 @@ public String getVolumeName() { public void setVolumeName(String volumeName) { this.volumeName = volumeName; } - + public String getVolumeId() { return volumeId; } @@ -47,7 +65,7 @@ public String getVolumeId() { public void setVolumeId(String volumeId) { this.volumeId = volumeId; } - + public String getVolumeStatus() { return volumeStatus; } @@ -55,4 +73,14 @@ public String getVolumeStatus() { public void setVolumeStatus(String volumeStatus) { this.volumeStatus = volumeStatus; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolume2Request.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolume2Request.java index e5e1308e..eefbeea2 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolume2Request.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolume2Request.java @@ -1,46 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUFSVolume2Request extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 文件系统ID */ + + + + /** + * 文件系统ID + */ @UCloudParam("VolumeId") private String volumeId; - - /** 文件列表起始 */ + + + + /** + * 文件列表起始 + */ @UCloudParam("Offset") private Integer offset; - - /** 文件列表长度 */ + + + + /** + * 文件列表长度 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -48,7 +74,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -56,7 +82,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVolumeId() { return volumeId; } @@ -64,7 +90,7 @@ public String getVolumeId() { public void setVolumeId(String volumeId) { this.volumeId = volumeId; } - + public Integer getOffset() { return offset; } @@ -72,7 +98,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -80,4 +106,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolume2Response.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolume2Response.java index 3ef3a08b..a87fd9fa 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolume2Response.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolume2Response.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUFSVolume2Response extends Response { - /** 文件系统总数 */ + + + /** + * 文件系统总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 文件系统详细信息列表 */ + + + + /** + * 文件系统详细信息列表 + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,163 +57,225 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UFSVolumeInfo2 extends Response { + + + /** + * 文件系统名称 + */ + @SerializedName("VolumeName") + private String volumeName; + + + + /** + * 文件系统ID + */ + @SerializedName("VolumeId") + private String volumeId; + + + + /** + * 当前文件系统已创建的挂载点数目 + */ + @SerializedName("TotalMountPointNum") + private Integer totalMountPointNum; + + + + /** + * 文件系统允许创建的最大挂载点数目 + */ + @SerializedName("MaxMountPointNum") + private Integer maxMountPointNum; + + + + /** + * 文件系统存储类型,枚举值,Basic表示容量型,Advanced表示性能型 + */ + @SerializedName("StorageType") + private String storageType; + + + + /** + * 文件系统协议,枚举值,NFSv3表示NFS V3协议,NFSv4表示NFS V4协议 + */ + @SerializedName("ProtocolType") + private String protocolType; + + + + /** + * 文件系统备注信息 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 文件系统所属业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 文件系统创建时间(unix时间戳) + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 文件系统过期时间(unix时间戳) + */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + + + /** + * 文件系统大小,单位GB + */ + @SerializedName("Size") + private Integer size; + + + + /** + * 文件系统当前使用容量,单位GB + */ + @SerializedName("UsedSize") + private Integer usedSize; + + + + /** + * 是否过期 + */ + @SerializedName("IsExpired") + private String isExpired; + + + public String getVolumeName() { + return volumeName; + } - public static class UFSVolumeInfo2 extends Response { - - /** 文件系统名称 */ - @SerializedName("VolumeName") - private String volumeName; - - /** 文件系统ID */ - @SerializedName("VolumeId") - private String volumeId; - - /** 当前文件系统已创建的挂载点数目 */ - @SerializedName("TotalMountPointNum") - private Integer totalMountPointNum; - - /** 文件系统允许创建的最大挂载点数目 */ - @SerializedName("MaxMountPointNum") - private Integer maxMountPointNum; - - /** 文件系统存储类型,枚举值,Basic表示容量型,Advanced表示性能型 */ - @SerializedName("StorageType") - private String storageType; - - /** 文件系统协议,枚举值,NFSv3表示NFS V3协议,NFSv4表示NFS V4协议 */ - @SerializedName("ProtocolType") - private String protocolType; - - /** 文件系统备注信息 */ - @SerializedName("Remark") - private String remark; - - /** 文件系统所属业务组 */ - @SerializedName("Tag") - private String tag; - - /** 文件系统创建时间(unix时间戳) */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 文件系统过期时间(unix时间戳) */ - @SerializedName("ExpiredTime") - private Integer expiredTime; - - /** 文件系统大小,单位GB */ - @SerializedName("Size") - private Integer size; - - /** 文件系统当前使用容量,单位GB */ - @SerializedName("UsedSize") - private Integer usedSize; - - /** 是否过期 */ - @SerializedName("IsExpired") - private String isExpired; - - public String getVolumeName() { - return volumeName; - } - - public void setVolumeName(String volumeName) { - this.volumeName = volumeName; - } - - public String getVolumeId() { - return volumeId; - } - - public void setVolumeId(String volumeId) { - this.volumeId = volumeId; - } - - public Integer getTotalMountPointNum() { - return totalMountPointNum; - } + public void setVolumeName(String volumeName) { + this.volumeName = volumeName; + } + + public String getVolumeId() { + return volumeId; + } - public void setTotalMountPointNum(Integer totalMountPointNum) { - this.totalMountPointNum = totalMountPointNum; - } + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } + + public Integer getTotalMountPointNum() { + return totalMountPointNum; + } - public Integer getMaxMountPointNum() { - return maxMountPointNum; - } + public void setTotalMountPointNum(Integer totalMountPointNum) { + this.totalMountPointNum = totalMountPointNum; + } + + public Integer getMaxMountPointNum() { + return maxMountPointNum; + } - public void setMaxMountPointNum(Integer maxMountPointNum) { - this.maxMountPointNum = maxMountPointNum; - } + public void setMaxMountPointNum(Integer maxMountPointNum) { + this.maxMountPointNum = maxMountPointNum; + } + + public String getStorageType() { + return storageType; + } - public String getStorageType() { - return storageType; - } + public void setStorageType(String storageType) { + this.storageType = storageType; + } + + public String getProtocolType() { + return protocolType; + } - public void setStorageType(String storageType) { - this.storageType = storageType; - } + public void setProtocolType(String protocolType) { + this.protocolType = protocolType; + } + + public String getRemark() { + return remark; + } - public String getProtocolType() { - return protocolType; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getTag() { + return tag; + } - public void setProtocolType(String protocolType) { - this.protocolType = protocolType; - } + public void setTag(String tag) { + this.tag = tag; + } + + public Integer getCreateTime() { + return createTime; + } - public String getRemark() { - return remark; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public Integer getSize() { + return size; + } - public String getTag() { - return tag; - } + public void setSize(Integer size) { + this.size = size; + } + + public Integer getUsedSize() { + return usedSize; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setUsedSize(Integer usedSize) { + this.usedSize = usedSize; + } + + public String getIsExpired() { + return isExpired; + } - public Integer getCreateTime() { - return createTime; + public void setIsExpired(String isExpired) { + this.isExpired = isExpired; + } + } +} - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getExpiredTime() { - return expiredTime; - } - public void setExpiredTime(Integer expiredTime) { - this.expiredTime = expiredTime; - } - public Integer getSize() { - return size; - } - public void setSize(Integer size) { - this.size = size; - } - public Integer getUsedSize() { - return usedSize; - } - public void setUsedSize(Integer usedSize) { - this.usedSize = usedSize; - } - public String getIsExpired() { - return isExpired; - } - public void setIsExpired(String isExpired) { - this.isExpired = isExpired; - } - } -} diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointRequest.java index 72a82edd..bdf2e9b9 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUFSVolumeMountpointRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 文件系统ID */ + + + + /** + * 文件系统ID + */ @NotEmpty @UCloudParam("VolumeId") private String volumeId; - + + public String getRegion() { return region; } @@ -44,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -52,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVolumeId() { return volumeId; } @@ -60,4 +75,14 @@ public String getVolumeId() { public void setVolumeId(String volumeId) { this.volumeId = volumeId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointResponse.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointResponse.java index 52378380..de5a6179 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointResponse.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumeMountpointResponse.java @@ -1,38 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUFSVolumeMountpointResponse extends Response { - /** */ + + + /** + * + */ @SerializedName("DataSet") private List dataSet; - - /** 目前的挂载点总数 */ + + + + /** + * 目前的挂载点总数 + */ @SerializedName("TotalMountPointNum") private Integer totalMountPointNum; - - /** 文件系统能创建的最大挂载点数目 */ + + + + /** + * 文件系统能创建的最大挂载点数目 + */ @SerializedName("MaxMountPointNum") private Integer maxMountPointNum; - + + public List getDataSet() { return dataSet; } @@ -40,7 +57,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalMountPointNum() { return totalMountPointNum; } @@ -48,7 +65,7 @@ public Integer getTotalMountPointNum() { public void setTotalMountPointNum(Integer totalMountPointNum) { this.totalMountPointNum = totalMountPointNum; } - + public Integer getMaxMountPointNum() { return maxMountPointNum; } @@ -56,79 +73,113 @@ public Integer getMaxMountPointNum() { public void setMaxMountPointNum(Integer maxMountPointNum) { this.maxMountPointNum = maxMountPointNum; } + + public static class MountPointInfo extends Response { + + + /** + * 挂载点名称 + */ + @SerializedName("MountPointName") + private String mountPointName; + + + + /** + * Vpc ID + */ + @SerializedName("VpcId") + private String vpcId; + + + + /** + * Subnet ID + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * ${挂载点IP}:/ + */ + @SerializedName("MountPointIp") + private String mountPointIp; + + + + /** + * 文件系统创建时间(unix时间戳) + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * Subnet ID + 网段的形式,方便前端展示 + */ + @SerializedName("SubnetDescription") + private String subnetDescription; + + + public String getMountPointName() { + return mountPointName; + } - public static class MountPointInfo extends Response { - - /** 挂载点名称 */ - @SerializedName("MountPointName") - private String mountPointName; - - /** Vpc ID */ - @SerializedName("VpcId") - private String vpcId; - - /** Subnet ID */ - @SerializedName("SubnetId") - private String subnetId; - - /** ${挂载点IP}:/ */ - @SerializedName("MountPointIp") - private String mountPointIp; + public void setMountPointName(String mountPointName) { + this.mountPointName = mountPointName; + } + + public String getVpcId() { + return vpcId; + } - /** 文件系统创建时间(unix时间戳) */ - @SerializedName("CreateTime") - private Integer createTime; + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } - /** Subnet ID + 网段的形式,方便前端展示 */ - @SerializedName("SubnetDescription") - private String subnetDescription; + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getMountPointIp() { + return mountPointIp; + } - public String getMountPointName() { - return mountPointName; - } + public void setMountPointIp(String mountPointIp) { + this.mountPointIp = mountPointIp; + } + + public Integer getCreateTime() { + return createTime; + } - public void setMountPointName(String mountPointName) { - this.mountPointName = mountPointName; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getSubnetDescription() { + return subnetDescription; + } - public String getVpcId() { - return vpcId; + public void setSubnetDescription(String subnetDescription) { + this.subnetDescription = subnetDescription; + } + } +} - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - } - public String getSubnetId() { - return subnetId; - } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - public String getMountPointIp() { - return mountPointIp; - } - public void setMountPointIp(String mountPointIp) { - this.mountPointIp = mountPointIp; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public String getSubnetDescription() { - return subnetDescription; - } - public void setSubnetDescription(String subnetDescription) { - this.subnetDescription = subnetDescription; - } - } -} diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumePriceRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumePriceRequest.java index 22bf5400..4622524f 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumePriceRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumePriceRequest.java @@ -1,59 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUFSVolumePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 文件系统大小,单位为GB,新架构容量型最小容量为500GB,以100GB递增,最大不超过100TB。新架构性能型最小容量为100GB,以100GB递增,最大不超过20TB */ + + + + /** + * 文件系统大小,单位为GB,新架构容量型最小容量为500GB,以100GB递增,最大不超过100TB。新架构性能型最小容量为100GB,以100GB递增,最大不超过20TB + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 文件存储类型,枚举值,Basic表示容量型产品,Advanced表示性能型产品 */ + + + + /** + * 文件存储类型,枚举值,Basic表示容量型产品,Advanced表示性能型产品 + */ @NotEmpty @UCloudParam("StorageType") private String storageType; - - /** 购买UFS的时长, 默认为1 */ + + + + /** + * 购买UFS的时长, 默认为1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** Year, Month, Dynamic,Trial,默认: Dynamic */ + + + + /** + * Year, Month, Dynamic,Trial,默认: Dynamic + */ @UCloudParam("ChargeType") private String chargeType; - - /** 文件系统id,第一次创建文件系统时不需要传这个参数 */ + + + + /** + * 文件系统id,第一次创建文件系统时不需要传这个参数 + */ @UCloudParam("VolumeId") private String volumeId; - + + public String getRegion() { return region; } @@ -61,7 +92,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -69,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getSize() { return size; } @@ -77,7 +108,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getStorageType() { return storageType; } @@ -85,7 +116,7 @@ public String getStorageType() { public void setStorageType(String storageType) { this.storageType = storageType; } - + public Integer getQuantity() { return quantity; } @@ -93,7 +124,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getChargeType() { return chargeType; } @@ -101,7 +132,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getVolumeId() { return volumeId; } @@ -109,4 +140,14 @@ public String getVolumeId() { public void setVolumeId(String volumeId) { this.volumeId = volumeId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumePriceResponse.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumePriceResponse.java index df8ebc56..f2970d0e 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumePriceResponse.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/DescribeUFSVolumePriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUFSVolumePriceResponse extends Response { - /** ufs 价格信息 */ + + + /** + * ufs 价格信息 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,43 +41,65 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UFSPriceDataSet extends Response { + + + /** + * Year, Month, Dynamic,Trial + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 价格 (单位: 分) + */ + @SerializedName("Price") + private Double price; + + + + /** + * “UFS” + */ + @SerializedName("ChargeName") + private String chargeName; + + + public String getChargeType() { + return chargeType; + } - public static class UFSPriceDataSet extends Response { + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } + + public String getChargeName() { + return chargeName; + } + + public void setChargeName(String chargeName) { + this.chargeName = chargeName; + } + + } +} - /** Year, Month, Dynamic,Trial */ - @SerializedName("ChargeType") - private String chargeType; - /** 价格 (单位: 分) */ - @SerializedName("Price") - private Double price; - /** “UFS” */ - @SerializedName("ChargeName") - private String chargeName; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Double getPrice() { - return price; - } - public void setPrice(Double price) { - this.price = price; - } - public String getChargeName() { - return chargeName; - } - public void setChargeName(String chargeName) { - this.chargeName = chargeName; - } - } -} diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/ExtendUFSVolumeRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/ExtendUFSVolumeRequest.java index 9e562389..0cb362c0 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/ExtendUFSVolumeRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/ExtendUFSVolumeRequest.java @@ -1,46 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ExtendUFSVolumeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 文件系统ID */ + + + + /** + * 文件系统ID + */ @NotEmpty @UCloudParam("VolumeId") private String volumeId; - + + + /** * 文件系统大小,单位为GB,最大不超过20T,香港容量型必须为100的整数倍,Size最小为500GB,北京,上海,广州的容量型必须为1024的整数倍,Size最小为1024GB。性能型文件系统Size最小为100GB */ @NotEmpty @UCloudParam("Size") private Integer size; - + + public String getRegion() { return region; } @@ -48,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -56,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVolumeId() { return volumeId; } @@ -64,7 +84,7 @@ public String getVolumeId() { public void setVolumeId(String volumeId) { this.volumeId = volumeId; } - + public Integer getSize() { return size; } @@ -72,4 +92,14 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/ExtendUFSVolumeResponse.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/ExtendUFSVolumeResponse.java index 3a8ddce1..b79d2959 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/ExtendUFSVolumeResponse.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/ExtendUFSVolumeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ExtendUFSVolumeResponse extends Response {} +public class ExtendUFSVolumeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeMountPointRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeMountPointRequest.java index 74f839e3..b72816bc 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeMountPointRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeMountPointRequest.java @@ -1,52 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RemoveUFSVolumeMountPointRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 文件系统ID */ + + + + /** + * 文件系统ID + */ @NotEmpty @UCloudParam("VolumeId") private String volumeId; - - /** Vpc ID */ + + + + /** + * Vpc ID + */ @NotEmpty @UCloudParam("VpcId") private String vpcId; - - /** Subnet ID */ + + + + /** + * Subnet ID + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - + + public String getRegion() { return region; } @@ -54,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -62,7 +85,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVolumeId() { return volumeId; } @@ -70,7 +93,7 @@ public String getVolumeId() { public void setVolumeId(String volumeId) { this.volumeId = volumeId; } - + public String getVpcId() { return vpcId; } @@ -78,7 +101,7 @@ public String getVpcId() { public void setVpcId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -86,4 +109,14 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeMountPointResponse.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeMountPointResponse.java index b731a014..341e79a9 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeMountPointResponse.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeMountPointResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RemoveUFSVolumeMountPointResponse extends Response {} +public class RemoveUFSVolumeMountPointResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeRequest.java index dd4ef3fa..e3be4f21 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RemoveUFSVolumeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 文件系统ID */ + + + + /** + * 文件系统ID + */ @NotEmpty @UCloudParam("VolumeId") private String volumeId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVolumeId() { return volumeId; } @@ -57,4 +75,14 @@ public String getVolumeId() { public void setVolumeId(String volumeId) { this.volumeId = volumeId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeResponse.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeResponse.java index 56be0782..8d873029 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeResponse.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/RemoveUFSVolumeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RemoveUFSVolumeResponse extends Response {} +public class RemoveUFSVolumeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/UpdateUFSVolumeInfoRequest.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/UpdateUFSVolumeInfoRequest.java index bf609e7d..f5e794e2 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/UpdateUFSVolumeInfoRequest.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/UpdateUFSVolumeInfoRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUFSVolumeInfoRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 文件系统ID */ + + + + /** + * 文件系统ID + */ @NotEmpty @UCloudParam("VolumeId") private String volumeId; - - /** 文件系统名称(文件系统名称/备注至少传入其中一个) */ + + + + /** + * 文件系统名称(文件系统名称/备注至少传入其中一个) + */ @UCloudParam("VolumeName") private String volumeName; - - /** 文件系统备注(文件系统名称/备注至少传入其中一个) */ + + + + /** + * 文件系统备注(文件系统名称/备注至少传入其中一个) + */ @UCloudParam("Remark") private String remark; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -60,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVolumeId() { return volumeId; } @@ -68,7 +91,7 @@ public String getVolumeId() { public void setVolumeId(String volumeId) { this.volumeId = volumeId; } - + public String getVolumeName() { return volumeName; } @@ -76,7 +99,7 @@ public String getVolumeName() { public void setVolumeName(String volumeName) { this.volumeName = volumeName; } - + public String getRemark() { return remark; } @@ -84,4 +107,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/UpdateUFSVolumeInfoResponse.java b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/UpdateUFSVolumeInfoResponse.java index 59333567..1aa8d842 100644 --- a/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/UpdateUFSVolumeInfoResponse.java +++ b/ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/models/UpdateUFSVolumeInfoResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ufs.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUFSVolumeInfoResponse extends Response {} +public class UpdateUFSVolumeInfoResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index ac2d6de2..ef3cbf4b 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-uhost - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClient.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClient.java index 5391af73..5ba453c3 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClient.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uhost.client; @@ -17,539 +19,768 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.uhost.models.CopyCustomImageRequest; import cn.ucloud.uhost.models.CopyCustomImageResponse; + + + import cn.ucloud.uhost.models.CreateCustomImageRequest; import cn.ucloud.uhost.models.CreateCustomImageResponse; + + + import cn.ucloud.uhost.models.CreateIsolationGroupRequest; import cn.ucloud.uhost.models.CreateIsolationGroupResponse; + + + import cn.ucloud.uhost.models.CreateUHostInstanceRequest; import cn.ucloud.uhost.models.CreateUHostInstanceResponse; + + + import cn.ucloud.uhost.models.CreateUHostKeyPairRequest; import cn.ucloud.uhost.models.CreateUHostKeyPairResponse; + + + import cn.ucloud.uhost.models.DeleteIsolationGroupRequest; import cn.ucloud.uhost.models.DeleteIsolationGroupResponse; + + + import cn.ucloud.uhost.models.DeleteUHostKeyPairsRequest; import cn.ucloud.uhost.models.DeleteUHostKeyPairsResponse; + + + import cn.ucloud.uhost.models.DescribeAvailableInstanceTypesRequest; import cn.ucloud.uhost.models.DescribeAvailableInstanceTypesResponse; + + + import cn.ucloud.uhost.models.DescribeImageRequest; import cn.ucloud.uhost.models.DescribeImageResponse; + + + import cn.ucloud.uhost.models.DescribeIsolationGroupRequest; import cn.ucloud.uhost.models.DescribeIsolationGroupResponse; + + + import cn.ucloud.uhost.models.DescribeUHostInstanceRequest; import cn.ucloud.uhost.models.DescribeUHostInstanceResponse; + + + import cn.ucloud.uhost.models.DescribeUHostKeyPairsRequest; import cn.ucloud.uhost.models.DescribeUHostKeyPairsResponse; + + + import cn.ucloud.uhost.models.DescribeUHostTagsRequest; import cn.ucloud.uhost.models.DescribeUHostTagsResponse; + + + import cn.ucloud.uhost.models.GetAttachedDiskUpgradePriceRequest; import cn.ucloud.uhost.models.GetAttachedDiskUpgradePriceResponse; + + + import cn.ucloud.uhost.models.GetUHostInstancePriceRequest; import cn.ucloud.uhost.models.GetUHostInstancePriceResponse; + + + import cn.ucloud.uhost.models.GetUHostInstanceVncInfoRequest; import cn.ucloud.uhost.models.GetUHostInstanceVncInfoResponse; + + + import cn.ucloud.uhost.models.GetUHostRenewPriceRequest; import cn.ucloud.uhost.models.GetUHostRenewPriceResponse; + + + import cn.ucloud.uhost.models.GetUHostUpgradePriceRequest; import cn.ucloud.uhost.models.GetUHostUpgradePriceResponse; + + + import cn.ucloud.uhost.models.ImportCustomImageRequest; import cn.ucloud.uhost.models.ImportCustomImageResponse; + + + import cn.ucloud.uhost.models.ImportUHostKeyPairsRequest; import cn.ucloud.uhost.models.ImportUHostKeyPairsResponse; + + + import cn.ucloud.uhost.models.LeaveIsolationGroupRequest; import cn.ucloud.uhost.models.LeaveIsolationGroupResponse; + + + import cn.ucloud.uhost.models.ModifyUHostIPRequest; import cn.ucloud.uhost.models.ModifyUHostIPResponse; + + + import cn.ucloud.uhost.models.ModifyUHostInstanceNameRequest; import cn.ucloud.uhost.models.ModifyUHostInstanceNameResponse; + + + import cn.ucloud.uhost.models.ModifyUHostInstanceRemarkRequest; import cn.ucloud.uhost.models.ModifyUHostInstanceRemarkResponse; + + + import cn.ucloud.uhost.models.ModifyUHostInstanceTagRequest; import cn.ucloud.uhost.models.ModifyUHostInstanceTagResponse; + + + import cn.ucloud.uhost.models.PoweroffUHostInstanceRequest; import cn.ucloud.uhost.models.PoweroffUHostInstanceResponse; + + + import cn.ucloud.uhost.models.RebootUHostInstanceRequest; import cn.ucloud.uhost.models.RebootUHostInstanceResponse; + + + import cn.ucloud.uhost.models.ReinstallUHostInstanceRequest; import cn.ucloud.uhost.models.ReinstallUHostInstanceResponse; + + + import cn.ucloud.uhost.models.ResetUHostInstancePasswordRequest; import cn.ucloud.uhost.models.ResetUHostInstancePasswordResponse; + + + import cn.ucloud.uhost.models.ResizeAttachedDiskRequest; import cn.ucloud.uhost.models.ResizeAttachedDiskResponse; + + + import cn.ucloud.uhost.models.ResizeUHostInstanceRequest; import cn.ucloud.uhost.models.ResizeUHostInstanceResponse; + + + import cn.ucloud.uhost.models.StartUHostInstanceRequest; import cn.ucloud.uhost.models.StartUHostInstanceResponse; + + + import cn.ucloud.uhost.models.StopUHostInstanceRequest; import cn.ucloud.uhost.models.StopUHostInstanceResponse; + + + import cn.ucloud.uhost.models.TerminateCustomImageRequest; import cn.ucloud.uhost.models.TerminateCustomImageResponse; + + + import cn.ucloud.uhost.models.TerminateUHostInstanceRequest; import cn.ucloud.uhost.models.TerminateUHostInstanceResponse; + + + import cn.ucloud.uhost.models.UpgradeToArkUHostInstanceRequest; import cn.ucloud.uhost.models.UpgradeToArkUHostInstanceResponse; -/** This client is used to call actions of **UHost** service */ +/** + * This client is used to call actions of **UHost** service + */ public class UHostClient extends DefaultClient implements UHostClientInterface { public UHostClient(Config config, Credential credential) { super(config, credential); } - - /** - * CopyCustomImage - 复制自制镜像 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CopyCustomImageResponse copyCustomImage(CopyCustomImageRequest request) - throws UCloudException { - request.setAction("CopyCustomImage"); - return (CopyCustomImageResponse) this.invoke(request, CopyCustomImageResponse.class); - } - - /** - * CreateCustomImage - 创建自制镜像 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateCustomImageResponse createCustomImage(CreateCustomImageRequest request) - throws UCloudException { - request.setAction("CreateCustomImage"); - return (CreateCustomImageResponse) this.invoke(request, CreateCustomImageResponse.class); - } - - /** - * CreateIsolationGroup - 创建硬件隔离组 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateIsolationGroupResponse createIsolationGroup(CreateIsolationGroupRequest request) - throws UCloudException { - request.setAction("CreateIsolationGroup"); - return (CreateIsolationGroupResponse) - this.invoke(request, CreateIsolationGroupResponse.class); - } - - /** - * CreateUHostInstance - 创建云主机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUHostInstanceResponse createUHostInstance(CreateUHostInstanceRequest request) - throws UCloudException { - request.setAction("CreateUHostInstance"); - return (CreateUHostInstanceResponse) - this.invoke(request, CreateUHostInstanceResponse.class); - } - - /** - * CreateUHostKeyPair - 创建主机密钥对 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUHostKeyPairResponse createUHostKeyPair(CreateUHostKeyPairRequest request) - throws UCloudException { - request.setAction("CreateUHostKeyPair"); - return (CreateUHostKeyPairResponse) this.invoke(request, CreateUHostKeyPairResponse.class); - } - - /** - * DeleteIsolationGroup - 删除硬件隔离组 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteIsolationGroupResponse deleteIsolationGroup(DeleteIsolationGroupRequest request) - throws UCloudException { - request.setAction("DeleteIsolationGroup"); - return (DeleteIsolationGroupResponse) - this.invoke(request, DeleteIsolationGroupResponse.class); - } - - /** - * DeleteUHostKeyPairs - 删除主机密钥 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUHostKeyPairsResponse deleteUHostKeyPairs(DeleteUHostKeyPairsRequest request) - throws UCloudException { - request.setAction("DeleteUHostKeyPairs"); - return (DeleteUHostKeyPairsResponse) - this.invoke(request, DeleteUHostKeyPairsResponse.class); - } - - /** - * DescribeAvailableInstanceTypes - 获取某个地域下可售/售罄的所有机型信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeAvailableInstanceTypesResponse describeAvailableInstanceTypes( - DescribeAvailableInstanceTypesRequest request) throws UCloudException { - request.setAction("DescribeAvailableInstanceTypes"); - return (DescribeAvailableInstanceTypesResponse) - this.invoke(request, DescribeAvailableInstanceTypesResponse.class); - } - - /** - * DescribeImage - 获取镜像列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeImageResponse describeImage(DescribeImageRequest request) - throws UCloudException { - request.setAction("DescribeImage"); - return (DescribeImageResponse) this.invoke(request, DescribeImageResponse.class); - } - - /** - * DescribeIsolationGroup - 查询硬件隔离组 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeIsolationGroupResponse describeIsolationGroup( - DescribeIsolationGroupRequest request) throws UCloudException { - request.setAction("DescribeIsolationGroup"); - return (DescribeIsolationGroupResponse) - this.invoke(request, DescribeIsolationGroupResponse.class); - } - - /** - * DescribeUHostInstance - 获取主机信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUHostInstanceResponse describeUHostInstance(DescribeUHostInstanceRequest request) - throws UCloudException { - request.setAction("DescribeUHostInstance"); - return (DescribeUHostInstanceResponse) - this.invoke(request, DescribeUHostInstanceResponse.class); - } - - /** - * DescribeUHostKeyPairs - 查询主机密钥信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUHostKeyPairsResponse describeUHostKeyPairs(DescribeUHostKeyPairsRequest request) - throws UCloudException { - request.setAction("DescribeUHostKeyPairs"); - return (DescribeUHostKeyPairsResponse) - this.invoke(request, DescribeUHostKeyPairsResponse.class); - } - - /** - * DescribeUHostTags - 获取主机业务组列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUHostTagsResponse describeUHostTags(DescribeUHostTagsRequest request) - throws UCloudException { - request.setAction("DescribeUHostTags"); - return (DescribeUHostTagsResponse) this.invoke(request, DescribeUHostTagsResponse.class); - } - - /** - * GetAttachedDiskUpgradePrice - 获取挂载磁盘的升级价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetAttachedDiskUpgradePriceResponse getAttachedDiskUpgradePrice( - GetAttachedDiskUpgradePriceRequest request) throws UCloudException { - request.setAction("GetAttachedDiskUpgradePrice"); - return (GetAttachedDiskUpgradePriceResponse) - this.invoke(request, GetAttachedDiskUpgradePriceResponse.class); - } - - /** - * GetUHostInstancePrice - 获取主机价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUHostInstancePriceResponse getUHostInstancePrice(GetUHostInstancePriceRequest request) - throws UCloudException { - request.setAction("GetUHostInstancePrice"); - return (GetUHostInstancePriceResponse) - this.invoke(request, GetUHostInstancePriceResponse.class); - } - - /** - * GetUHostInstanceVncInfo - 获取VNC登录信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUHostInstanceVncInfoResponse getUHostInstanceVncInfo( - GetUHostInstanceVncInfoRequest request) throws UCloudException { - request.setAction("GetUHostInstanceVncInfo"); - return (GetUHostInstanceVncInfoResponse) - this.invoke(request, GetUHostInstanceVncInfoResponse.class); - } - - /** - * GetUHostRenewPrice - 获取主机续费价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUHostRenewPriceResponse getUHostRenewPrice(GetUHostRenewPriceRequest request) - throws UCloudException { - request.setAction("GetUHostRenewPrice"); - return (GetUHostRenewPriceResponse) this.invoke(request, GetUHostRenewPriceResponse.class); - } - - /** - * GetUHostUpgradePrice - 获取主机规格调整差价 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUHostUpgradePriceResponse getUHostUpgradePrice(GetUHostUpgradePriceRequest request) - throws UCloudException { - request.setAction("GetUHostUpgradePrice"); - return (GetUHostUpgradePriceResponse) - this.invoke(request, GetUHostUpgradePriceResponse.class); - } - - /** - * ImportCustomImage - 导入镜像 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ImportCustomImageResponse importCustomImage(ImportCustomImageRequest request) - throws UCloudException { - request.setAction("ImportCustomImage"); - return (ImportCustomImageResponse) this.invoke(request, ImportCustomImageResponse.class); - } - - /** - * ImportUHostKeyPairs - 导入密钥对的公钥部分 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ImportUHostKeyPairsResponse importUHostKeyPairs(ImportUHostKeyPairsRequest request) - throws UCloudException { - request.setAction("ImportUHostKeyPairs"); - return (ImportUHostKeyPairsResponse) - this.invoke(request, ImportUHostKeyPairsResponse.class); - } - - /** - * LeaveIsolationGroup - 移除硬件隔离组中的主机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public LeaveIsolationGroupResponse leaveIsolationGroup(LeaveIsolationGroupRequest request) - throws UCloudException { - request.setAction("LeaveIsolationGroup"); - return (LeaveIsolationGroupResponse) - this.invoke(request, LeaveIsolationGroupResponse.class); - } - - /** - * ModifyUHostIP - 修改云主机内部 IP 地址 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUHostIPResponse modifyUHostIP(ModifyUHostIPRequest request) - throws UCloudException { - request.setAction("ModifyUHostIP"); - return (ModifyUHostIPResponse) this.invoke(request, ModifyUHostIPResponse.class); - } - - /** - * ModifyUHostInstanceName - 修改主机名 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUHostInstanceNameResponse modifyUHostInstanceName( - ModifyUHostInstanceNameRequest request) throws UCloudException { - request.setAction("ModifyUHostInstanceName"); - return (ModifyUHostInstanceNameResponse) - this.invoke(request, ModifyUHostInstanceNameResponse.class); - } - - /** - * ModifyUHostInstanceRemark - 修改主机备注 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUHostInstanceRemarkResponse modifyUHostInstanceRemark( - ModifyUHostInstanceRemarkRequest request) throws UCloudException { - request.setAction("ModifyUHostInstanceRemark"); - return (ModifyUHostInstanceRemarkResponse) - this.invoke(request, ModifyUHostInstanceRemarkResponse.class); - } - - /** - * ModifyUHostInstanceTag - 修改主机业务组 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUHostInstanceTagResponse modifyUHostInstanceTag( - ModifyUHostInstanceTagRequest request) throws UCloudException { - request.setAction("ModifyUHostInstanceTag"); - return (ModifyUHostInstanceTagResponse) - this.invoke(request, ModifyUHostInstanceTagResponse.class); - } - - /** - * PoweroffUHostInstance - 模拟主机掉电 - * - * @param request Request object - * @throws UCloudException Exception - */ - public PoweroffUHostInstanceResponse poweroffUHostInstance(PoweroffUHostInstanceRequest request) - throws UCloudException { - request.setAction("PoweroffUHostInstance"); - return (PoweroffUHostInstanceResponse) - this.invoke(request, PoweroffUHostInstanceResponse.class); - } - - /** - * RebootUHostInstance - 重启主机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RebootUHostInstanceResponse rebootUHostInstance(RebootUHostInstanceRequest request) - throws UCloudException { - request.setAction("RebootUHostInstance"); - return (RebootUHostInstanceResponse) - this.invoke(request, RebootUHostInstanceResponse.class); - } - - /** - * ReinstallUHostInstance - 重装系统 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ReinstallUHostInstanceResponse reinstallUHostInstance( - ReinstallUHostInstanceRequest request) throws UCloudException { - request.setAction("ReinstallUHostInstance"); - return (ReinstallUHostInstanceResponse) - this.invoke(request, ReinstallUHostInstanceResponse.class); - } - - /** - * ResetUHostInstancePassword - 重置主机密码 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ResetUHostInstancePasswordResponse resetUHostInstancePassword( - ResetUHostInstancePasswordRequest request) throws UCloudException { - request.setAction("ResetUHostInstancePassword"); - return (ResetUHostInstancePasswordResponse) - this.invoke(request, ResetUHostInstancePasswordResponse.class); - } - - /** - * ResizeAttachedDisk - 修改挂载的磁盘大小 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ResizeAttachedDiskResponse resizeAttachedDisk(ResizeAttachedDiskRequest request) - throws UCloudException { - request.setAction("ResizeAttachedDisk"); - return (ResizeAttachedDiskResponse) this.invoke(request, ResizeAttachedDiskResponse.class); - } - - /** - * ResizeUHostInstance - 修改主机规格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ResizeUHostInstanceResponse resizeUHostInstance(ResizeUHostInstanceRequest request) - throws UCloudException { - request.setAction("ResizeUHostInstance"); - return (ResizeUHostInstanceResponse) - this.invoke(request, ResizeUHostInstanceResponse.class); - } - - /** - * StartUHostInstance - 启动主机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StartUHostInstanceResponse startUHostInstance(StartUHostInstanceRequest request) - throws UCloudException { - request.setAction("StartUHostInstance"); - return (StartUHostInstanceResponse) this.invoke(request, StartUHostInstanceResponse.class); - } - - /** - * StopUHostInstance - 关闭主机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StopUHostInstanceResponse stopUHostInstance(StopUHostInstanceRequest request) - throws UCloudException { - request.setAction("StopUHostInstance"); - return (StopUHostInstanceResponse) this.invoke(request, StopUHostInstanceResponse.class); - } - - /** - * TerminateCustomImage - 删除自制镜像 - * - * @param request Request object - * @throws UCloudException Exception - */ - public TerminateCustomImageResponse terminateCustomImage(TerminateCustomImageRequest request) - throws UCloudException { - request.setAction("TerminateCustomImage"); - return (TerminateCustomImageResponse) - this.invoke(request, TerminateCustomImageResponse.class); - } - - /** - * TerminateUHostInstance - 删除云主机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public TerminateUHostInstanceResponse terminateUHostInstance( - TerminateUHostInstanceRequest request) throws UCloudException { - request.setAction("TerminateUHostInstance"); - return (TerminateUHostInstanceResponse) - this.invoke(request, TerminateUHostInstanceResponse.class); - } - - /** - * UpgradeToArkUHostInstance - 普通升级为方舟机型 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpgradeToArkUHostInstanceResponse upgradeToArkUHostInstance( - UpgradeToArkUHostInstanceRequest request) throws UCloudException { - request.setAction("UpgradeToArkUHostInstance"); - return (UpgradeToArkUHostInstanceResponse) - this.invoke(request, UpgradeToArkUHostInstanceResponse.class); - } + + + + + + + /** + * CopyCustomImage - 复制自制镜像 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CopyCustomImageResponse copyCustomImage(CopyCustomImageRequest request) throws UCloudException { + request.setAction("CopyCustomImage"); + return (CopyCustomImageResponse) this.invoke(request, CopyCustomImageResponse.class); + } + + + + + + + /** + * CreateCustomImage - 创建自制镜像 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCustomImageResponse createCustomImage(CreateCustomImageRequest request) throws UCloudException { + request.setAction("CreateCustomImage"); + return (CreateCustomImageResponse) this.invoke(request, CreateCustomImageResponse.class); + } + + + + + + + /** + * CreateIsolationGroup - 创建硬件隔离组 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateIsolationGroupResponse createIsolationGroup(CreateIsolationGroupRequest request) throws UCloudException { + request.setAction("CreateIsolationGroup"); + return (CreateIsolationGroupResponse) this.invoke(request, CreateIsolationGroupResponse.class); + } + + + + + + + /** + * CreateUHostInstance - 创建云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUHostInstanceResponse createUHostInstance(CreateUHostInstanceRequest request) throws UCloudException { + request.setAction("CreateUHostInstance"); + return (CreateUHostInstanceResponse) this.invoke(request, CreateUHostInstanceResponse.class); + } + + + + + + + /** + * CreateUHostKeyPair - 创建主机密钥对 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUHostKeyPairResponse createUHostKeyPair(CreateUHostKeyPairRequest request) throws UCloudException { + request.setAction("CreateUHostKeyPair"); + return (CreateUHostKeyPairResponse) this.invoke(request, CreateUHostKeyPairResponse.class); + } + + + + + + + /** + * DeleteIsolationGroup - 删除硬件隔离组 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteIsolationGroupResponse deleteIsolationGroup(DeleteIsolationGroupRequest request) throws UCloudException { + request.setAction("DeleteIsolationGroup"); + return (DeleteIsolationGroupResponse) this.invoke(request, DeleteIsolationGroupResponse.class); + } + + + + + + + /** + * DeleteUHostKeyPairs - 删除主机密钥 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUHostKeyPairsResponse deleteUHostKeyPairs(DeleteUHostKeyPairsRequest request) throws UCloudException { + request.setAction("DeleteUHostKeyPairs"); + return (DeleteUHostKeyPairsResponse) this.invoke(request, DeleteUHostKeyPairsResponse.class); + } + + + + + + + /** + * DescribeAvailableInstanceTypes - 获取某个地域下可售/售罄的所有机型信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeAvailableInstanceTypesResponse describeAvailableInstanceTypes(DescribeAvailableInstanceTypesRequest request) throws UCloudException { + request.setAction("DescribeAvailableInstanceTypes"); + return (DescribeAvailableInstanceTypesResponse) this.invoke(request, DescribeAvailableInstanceTypesResponse.class); + } + + + + + + + /** + * DescribeImage - 获取镜像列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeImageResponse describeImage(DescribeImageRequest request) throws UCloudException { + request.setAction("DescribeImage"); + return (DescribeImageResponse) this.invoke(request, DescribeImageResponse.class); + } + + + + + + + /** + * DescribeIsolationGroup - 查询硬件隔离组 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeIsolationGroupResponse describeIsolationGroup(DescribeIsolationGroupRequest request) throws UCloudException { + request.setAction("DescribeIsolationGroup"); + return (DescribeIsolationGroupResponse) this.invoke(request, DescribeIsolationGroupResponse.class); + } + + + + + + + /** + * DescribeUHostInstance - 获取主机信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUHostInstanceResponse describeUHostInstance(DescribeUHostInstanceRequest request) throws UCloudException { + request.setAction("DescribeUHostInstance"); + return (DescribeUHostInstanceResponse) this.invoke(request, DescribeUHostInstanceResponse.class); + } + + + + + + + /** + * DescribeUHostKeyPairs - 查询主机密钥信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUHostKeyPairsResponse describeUHostKeyPairs(DescribeUHostKeyPairsRequest request) throws UCloudException { + request.setAction("DescribeUHostKeyPairs"); + return (DescribeUHostKeyPairsResponse) this.invoke(request, DescribeUHostKeyPairsResponse.class); + } + + + + + + + /** + * DescribeUHostTags - 获取主机业务组列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUHostTagsResponse describeUHostTags(DescribeUHostTagsRequest request) throws UCloudException { + request.setAction("DescribeUHostTags"); + return (DescribeUHostTagsResponse) this.invoke(request, DescribeUHostTagsResponse.class); + } + + + + + + + /** + * GetAttachedDiskUpgradePrice - 获取挂载磁盘的升级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetAttachedDiskUpgradePriceResponse getAttachedDiskUpgradePrice(GetAttachedDiskUpgradePriceRequest request) throws UCloudException { + request.setAction("GetAttachedDiskUpgradePrice"); + return (GetAttachedDiskUpgradePriceResponse) this.invoke(request, GetAttachedDiskUpgradePriceResponse.class); + } + + + + + + + /** + * GetUHostInstancePrice - 获取主机价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUHostInstancePriceResponse getUHostInstancePrice(GetUHostInstancePriceRequest request) throws UCloudException { + request.setAction("GetUHostInstancePrice"); + return (GetUHostInstancePriceResponse) this.invoke(request, GetUHostInstancePriceResponse.class); + } + + + + + + + /** + * GetUHostInstanceVncInfo - 获取VNC登录信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUHostInstanceVncInfoResponse getUHostInstanceVncInfo(GetUHostInstanceVncInfoRequest request) throws UCloudException { + request.setAction("GetUHostInstanceVncInfo"); + return (GetUHostInstanceVncInfoResponse) this.invoke(request, GetUHostInstanceVncInfoResponse.class); + } + + + + + + + /** + * GetUHostRenewPrice - 获取主机续费价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUHostRenewPriceResponse getUHostRenewPrice(GetUHostRenewPriceRequest request) throws UCloudException { + request.setAction("GetUHostRenewPrice"); + return (GetUHostRenewPriceResponse) this.invoke(request, GetUHostRenewPriceResponse.class); + } + + + + + + + /** + * GetUHostUpgradePrice - 获取主机规格调整差价 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUHostUpgradePriceResponse getUHostUpgradePrice(GetUHostUpgradePriceRequest request) throws UCloudException { + request.setAction("GetUHostUpgradePrice"); + return (GetUHostUpgradePriceResponse) this.invoke(request, GetUHostUpgradePriceResponse.class); + } + + + + + + + /** + * ImportCustomImage - 导入镜像 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ImportCustomImageResponse importCustomImage(ImportCustomImageRequest request) throws UCloudException { + request.setAction("ImportCustomImage"); + return (ImportCustomImageResponse) this.invoke(request, ImportCustomImageResponse.class); + } + + + + + + + /** + * ImportUHostKeyPairs - 导入密钥对的公钥部分 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ImportUHostKeyPairsResponse importUHostKeyPairs(ImportUHostKeyPairsRequest request) throws UCloudException { + request.setAction("ImportUHostKeyPairs"); + return (ImportUHostKeyPairsResponse) this.invoke(request, ImportUHostKeyPairsResponse.class); + } + + + + + + + /** + * LeaveIsolationGroup - 移除硬件隔离组中的主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public LeaveIsolationGroupResponse leaveIsolationGroup(LeaveIsolationGroupRequest request) throws UCloudException { + request.setAction("LeaveIsolationGroup"); + return (LeaveIsolationGroupResponse) this.invoke(request, LeaveIsolationGroupResponse.class); + } + + + + + + + /** + * ModifyUHostIP - 修改云主机内部 IP 地址 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUHostIPResponse modifyUHostIP(ModifyUHostIPRequest request) throws UCloudException { + request.setAction("ModifyUHostIP"); + return (ModifyUHostIPResponse) this.invoke(request, ModifyUHostIPResponse.class); + } + + + + + + + /** + * ModifyUHostInstanceName - 修改主机名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUHostInstanceNameResponse modifyUHostInstanceName(ModifyUHostInstanceNameRequest request) throws UCloudException { + request.setAction("ModifyUHostInstanceName"); + return (ModifyUHostInstanceNameResponse) this.invoke(request, ModifyUHostInstanceNameResponse.class); + } + + + + + + + /** + * ModifyUHostInstanceRemark - 修改主机备注 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUHostInstanceRemarkResponse modifyUHostInstanceRemark(ModifyUHostInstanceRemarkRequest request) throws UCloudException { + request.setAction("ModifyUHostInstanceRemark"); + return (ModifyUHostInstanceRemarkResponse) this.invoke(request, ModifyUHostInstanceRemarkResponse.class); + } + + + + + + + /** + * ModifyUHostInstanceTag - 修改主机业务组 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUHostInstanceTagResponse modifyUHostInstanceTag(ModifyUHostInstanceTagRequest request) throws UCloudException { + request.setAction("ModifyUHostInstanceTag"); + return (ModifyUHostInstanceTagResponse) this.invoke(request, ModifyUHostInstanceTagResponse.class); + } + + + + + + + /** + * PoweroffUHostInstance - 模拟主机掉电 + * + * @param request Request object + * @throws UCloudException Exception + */ + public PoweroffUHostInstanceResponse poweroffUHostInstance(PoweroffUHostInstanceRequest request) throws UCloudException { + request.setAction("PoweroffUHostInstance"); + return (PoweroffUHostInstanceResponse) this.invoke(request, PoweroffUHostInstanceResponse.class); + } + + + + + + + /** + * RebootUHostInstance - 重启主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RebootUHostInstanceResponse rebootUHostInstance(RebootUHostInstanceRequest request) throws UCloudException { + request.setAction("RebootUHostInstance"); + return (RebootUHostInstanceResponse) this.invoke(request, RebootUHostInstanceResponse.class); + } + + + + + + + /** + * ReinstallUHostInstance - 重装系统 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReinstallUHostInstanceResponse reinstallUHostInstance(ReinstallUHostInstanceRequest request) throws UCloudException { + request.setAction("ReinstallUHostInstance"); + return (ReinstallUHostInstanceResponse) this.invoke(request, ReinstallUHostInstanceResponse.class); + } + + + + + + + /** + * ResetUHostInstancePassword - 重置主机密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResetUHostInstancePasswordResponse resetUHostInstancePassword(ResetUHostInstancePasswordRequest request) throws UCloudException { + request.setAction("ResetUHostInstancePassword"); + return (ResetUHostInstancePasswordResponse) this.invoke(request, ResetUHostInstancePasswordResponse.class); + } + + + + + + + /** + * ResizeAttachedDisk - 修改挂载的磁盘大小 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResizeAttachedDiskResponse resizeAttachedDisk(ResizeAttachedDiskRequest request) throws UCloudException { + request.setAction("ResizeAttachedDisk"); + return (ResizeAttachedDiskResponse) this.invoke(request, ResizeAttachedDiskResponse.class); + } + + + + + + + /** + * ResizeUHostInstance - 修改主机规格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResizeUHostInstanceResponse resizeUHostInstance(ResizeUHostInstanceRequest request) throws UCloudException { + request.setAction("ResizeUHostInstance"); + return (ResizeUHostInstanceResponse) this.invoke(request, ResizeUHostInstanceResponse.class); + } + + + + + + + /** + * StartUHostInstance - 启动主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartUHostInstanceResponse startUHostInstance(StartUHostInstanceRequest request) throws UCloudException { + request.setAction("StartUHostInstance"); + return (StartUHostInstanceResponse) this.invoke(request, StartUHostInstanceResponse.class); + } + + + + + + + /** + * StopUHostInstance - 关闭主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUHostInstanceResponse stopUHostInstance(StopUHostInstanceRequest request) throws UCloudException { + request.setAction("StopUHostInstance"); + return (StopUHostInstanceResponse) this.invoke(request, StopUHostInstanceResponse.class); + } + + + + + + + /** + * TerminateCustomImage - 删除自制镜像 + * + * @param request Request object + * @throws UCloudException Exception + */ + public TerminateCustomImageResponse terminateCustomImage(TerminateCustomImageRequest request) throws UCloudException { + request.setAction("TerminateCustomImage"); + return (TerminateCustomImageResponse) this.invoke(request, TerminateCustomImageResponse.class); + } + + + + + + + /** + * TerminateUHostInstance - 删除云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public TerminateUHostInstanceResponse terminateUHostInstance(TerminateUHostInstanceRequest request) throws UCloudException { + request.setAction("TerminateUHostInstance"); + return (TerminateUHostInstanceResponse) this.invoke(request, TerminateUHostInstanceResponse.class); + } + + + + + + + /** + * UpgradeToArkUHostInstance - 普通升级为方舟机型 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpgradeToArkUHostInstanceResponse upgradeToArkUHostInstance(UpgradeToArkUHostInstanceRequest request) throws UCloudException { + request.setAction("UpgradeToArkUHostInstance"); + return (UpgradeToArkUHostInstanceResponse) this.invoke(request, UpgradeToArkUHostInstanceResponse.class); + } } diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClientInterface.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClientInterface.java index 43efd66b..43ea0201 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClientInterface.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClientInterface.java @@ -1,168 +1,317 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uhost.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.uhost.models.CopyCustomImageRequest; import cn.ucloud.uhost.models.CopyCustomImageResponse; + + + import cn.ucloud.uhost.models.CreateCustomImageRequest; import cn.ucloud.uhost.models.CreateCustomImageResponse; + + + import cn.ucloud.uhost.models.CreateIsolationGroupRequest; import cn.ucloud.uhost.models.CreateIsolationGroupResponse; + + + import cn.ucloud.uhost.models.CreateUHostInstanceRequest; import cn.ucloud.uhost.models.CreateUHostInstanceResponse; + + + import cn.ucloud.uhost.models.CreateUHostKeyPairRequest; import cn.ucloud.uhost.models.CreateUHostKeyPairResponse; + + + import cn.ucloud.uhost.models.DeleteIsolationGroupRequest; import cn.ucloud.uhost.models.DeleteIsolationGroupResponse; + + + import cn.ucloud.uhost.models.DeleteUHostKeyPairsRequest; import cn.ucloud.uhost.models.DeleteUHostKeyPairsResponse; + + + import cn.ucloud.uhost.models.DescribeAvailableInstanceTypesRequest; import cn.ucloud.uhost.models.DescribeAvailableInstanceTypesResponse; + + + import cn.ucloud.uhost.models.DescribeImageRequest; import cn.ucloud.uhost.models.DescribeImageResponse; + + + import cn.ucloud.uhost.models.DescribeIsolationGroupRequest; import cn.ucloud.uhost.models.DescribeIsolationGroupResponse; + + + import cn.ucloud.uhost.models.DescribeUHostInstanceRequest; import cn.ucloud.uhost.models.DescribeUHostInstanceResponse; + + + import cn.ucloud.uhost.models.DescribeUHostKeyPairsRequest; import cn.ucloud.uhost.models.DescribeUHostKeyPairsResponse; + + + import cn.ucloud.uhost.models.DescribeUHostTagsRequest; import cn.ucloud.uhost.models.DescribeUHostTagsResponse; + + + import cn.ucloud.uhost.models.GetAttachedDiskUpgradePriceRequest; import cn.ucloud.uhost.models.GetAttachedDiskUpgradePriceResponse; + + + import cn.ucloud.uhost.models.GetUHostInstancePriceRequest; import cn.ucloud.uhost.models.GetUHostInstancePriceResponse; + + + import cn.ucloud.uhost.models.GetUHostInstanceVncInfoRequest; import cn.ucloud.uhost.models.GetUHostInstanceVncInfoResponse; + + + import cn.ucloud.uhost.models.GetUHostRenewPriceRequest; import cn.ucloud.uhost.models.GetUHostRenewPriceResponse; + + + import cn.ucloud.uhost.models.GetUHostUpgradePriceRequest; import cn.ucloud.uhost.models.GetUHostUpgradePriceResponse; + + + import cn.ucloud.uhost.models.ImportCustomImageRequest; import cn.ucloud.uhost.models.ImportCustomImageResponse; + + + import cn.ucloud.uhost.models.ImportUHostKeyPairsRequest; import cn.ucloud.uhost.models.ImportUHostKeyPairsResponse; + + + import cn.ucloud.uhost.models.LeaveIsolationGroupRequest; import cn.ucloud.uhost.models.LeaveIsolationGroupResponse; + + + import cn.ucloud.uhost.models.ModifyUHostIPRequest; import cn.ucloud.uhost.models.ModifyUHostIPResponse; + + + import cn.ucloud.uhost.models.ModifyUHostInstanceNameRequest; import cn.ucloud.uhost.models.ModifyUHostInstanceNameResponse; + + + import cn.ucloud.uhost.models.ModifyUHostInstanceRemarkRequest; import cn.ucloud.uhost.models.ModifyUHostInstanceRemarkResponse; + + + import cn.ucloud.uhost.models.ModifyUHostInstanceTagRequest; import cn.ucloud.uhost.models.ModifyUHostInstanceTagResponse; + + + import cn.ucloud.uhost.models.PoweroffUHostInstanceRequest; import cn.ucloud.uhost.models.PoweroffUHostInstanceResponse; + + + import cn.ucloud.uhost.models.RebootUHostInstanceRequest; import cn.ucloud.uhost.models.RebootUHostInstanceResponse; + + + import cn.ucloud.uhost.models.ReinstallUHostInstanceRequest; import cn.ucloud.uhost.models.ReinstallUHostInstanceResponse; + + + import cn.ucloud.uhost.models.ResetUHostInstancePasswordRequest; import cn.ucloud.uhost.models.ResetUHostInstancePasswordResponse; + + + import cn.ucloud.uhost.models.ResizeAttachedDiskRequest; import cn.ucloud.uhost.models.ResizeAttachedDiskResponse; + + + import cn.ucloud.uhost.models.ResizeUHostInstanceRequest; import cn.ucloud.uhost.models.ResizeUHostInstanceResponse; + + + import cn.ucloud.uhost.models.StartUHostInstanceRequest; import cn.ucloud.uhost.models.StartUHostInstanceResponse; + + + import cn.ucloud.uhost.models.StopUHostInstanceRequest; import cn.ucloud.uhost.models.StopUHostInstanceResponse; + + + import cn.ucloud.uhost.models.TerminateCustomImageRequest; import cn.ucloud.uhost.models.TerminateCustomImageResponse; + + + import cn.ucloud.uhost.models.TerminateUHostInstanceRequest; import cn.ucloud.uhost.models.TerminateUHostInstanceResponse; + + + import cn.ucloud.uhost.models.UpgradeToArkUHostInstanceRequest; import cn.ucloud.uhost.models.UpgradeToArkUHostInstanceResponse; -/** This client is used to call actions of **UHost** service */ +/** + * This client is used to call actions of **UHost** service + */ public interface UHostClientInterface extends Client { - + + + + + + /** * CopyCustomImage - 复制自制镜像 * * @param request Request object * @throws UCloudException Exception */ - public CopyCustomImageResponse copyCustomImage(CopyCustomImageRequest request) - throws UCloudException; - + public CopyCustomImageResponse copyCustomImage(CopyCustomImageRequest request) throws UCloudException; + + + + + + /** * CreateCustomImage - 创建自制镜像 * * @param request Request object * @throws UCloudException Exception */ - public CreateCustomImageResponse createCustomImage(CreateCustomImageRequest request) - throws UCloudException; - + public CreateCustomImageResponse createCustomImage(CreateCustomImageRequest request) throws UCloudException; + + + + + + /** * CreateIsolationGroup - 创建硬件隔离组 * * @param request Request object * @throws UCloudException Exception */ - public CreateIsolationGroupResponse createIsolationGroup(CreateIsolationGroupRequest request) - throws UCloudException; - + public CreateIsolationGroupResponse createIsolationGroup(CreateIsolationGroupRequest request) throws UCloudException; + + + + + + /** * CreateUHostInstance - 创建云主机 * * @param request Request object * @throws UCloudException Exception */ - public CreateUHostInstanceResponse createUHostInstance(CreateUHostInstanceRequest request) - throws UCloudException; - + public CreateUHostInstanceResponse createUHostInstance(CreateUHostInstanceRequest request) throws UCloudException; + + + + + + /** * CreateUHostKeyPair - 创建主机密钥对 * * @param request Request object * @throws UCloudException Exception */ - public CreateUHostKeyPairResponse createUHostKeyPair(CreateUHostKeyPairRequest request) - throws UCloudException; - + public CreateUHostKeyPairResponse createUHostKeyPair(CreateUHostKeyPairRequest request) throws UCloudException; + + + + + + /** * DeleteIsolationGroup - 删除硬件隔离组 * * @param request Request object * @throws UCloudException Exception */ - public DeleteIsolationGroupResponse deleteIsolationGroup(DeleteIsolationGroupRequest request) - throws UCloudException; - + public DeleteIsolationGroupResponse deleteIsolationGroup(DeleteIsolationGroupRequest request) throws UCloudException; + + + + + + /** * DeleteUHostKeyPairs - 删除主机密钥 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUHostKeyPairsResponse deleteUHostKeyPairs(DeleteUHostKeyPairsRequest request) - throws UCloudException; - + public DeleteUHostKeyPairsResponse deleteUHostKeyPairs(DeleteUHostKeyPairsRequest request) throws UCloudException; + + + + + + /** * DescribeAvailableInstanceTypes - 获取某个地域下可售/售罄的所有机型信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeAvailableInstanceTypesResponse describeAvailableInstanceTypes( - DescribeAvailableInstanceTypesRequest request) throws UCloudException; - + public DescribeAvailableInstanceTypesResponse describeAvailableInstanceTypes(DescribeAvailableInstanceTypesRequest request) throws UCloudException; + + + + + + /** * DescribeImage - 获取镜像列表 * @@ -170,115 +319,168 @@ public DescribeAvailableInstanceTypesResponse describeAvailableInstanceTypes( * @throws UCloudException Exception */ public DescribeImageResponse describeImage(DescribeImageRequest request) throws UCloudException; - + + + + + + /** * DescribeIsolationGroup - 查询硬件隔离组 * * @param request Request object * @throws UCloudException Exception */ - public DescribeIsolationGroupResponse describeIsolationGroup( - DescribeIsolationGroupRequest request) throws UCloudException; - + public DescribeIsolationGroupResponse describeIsolationGroup(DescribeIsolationGroupRequest request) throws UCloudException; + + + + + + /** * DescribeUHostInstance - 获取主机信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUHostInstanceResponse describeUHostInstance(DescribeUHostInstanceRequest request) - throws UCloudException; - + public DescribeUHostInstanceResponse describeUHostInstance(DescribeUHostInstanceRequest request) throws UCloudException; + + + + + + /** * DescribeUHostKeyPairs - 查询主机密钥信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUHostKeyPairsResponse describeUHostKeyPairs(DescribeUHostKeyPairsRequest request) - throws UCloudException; - + public DescribeUHostKeyPairsResponse describeUHostKeyPairs(DescribeUHostKeyPairsRequest request) throws UCloudException; + + + + + + /** * DescribeUHostTags - 获取主机业务组列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUHostTagsResponse describeUHostTags(DescribeUHostTagsRequest request) - throws UCloudException; - + public DescribeUHostTagsResponse describeUHostTags(DescribeUHostTagsRequest request) throws UCloudException; + + + + + + /** * GetAttachedDiskUpgradePrice - 获取挂载磁盘的升级价格 * * @param request Request object * @throws UCloudException Exception */ - public GetAttachedDiskUpgradePriceResponse getAttachedDiskUpgradePrice( - GetAttachedDiskUpgradePriceRequest request) throws UCloudException; - + public GetAttachedDiskUpgradePriceResponse getAttachedDiskUpgradePrice(GetAttachedDiskUpgradePriceRequest request) throws UCloudException; + + + + + + /** * GetUHostInstancePrice - 获取主机价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUHostInstancePriceResponse getUHostInstancePrice(GetUHostInstancePriceRequest request) - throws UCloudException; - + public GetUHostInstancePriceResponse getUHostInstancePrice(GetUHostInstancePriceRequest request) throws UCloudException; + + + + + + /** * GetUHostInstanceVncInfo - 获取VNC登录信息 * * @param request Request object * @throws UCloudException Exception */ - public GetUHostInstanceVncInfoResponse getUHostInstanceVncInfo( - GetUHostInstanceVncInfoRequest request) throws UCloudException; - + public GetUHostInstanceVncInfoResponse getUHostInstanceVncInfo(GetUHostInstanceVncInfoRequest request) throws UCloudException; + + + + + + /** * GetUHostRenewPrice - 获取主机续费价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUHostRenewPriceResponse getUHostRenewPrice(GetUHostRenewPriceRequest request) - throws UCloudException; - + public GetUHostRenewPriceResponse getUHostRenewPrice(GetUHostRenewPriceRequest request) throws UCloudException; + + + + + + /** * GetUHostUpgradePrice - 获取主机规格调整差价 * * @param request Request object * @throws UCloudException Exception */ - public GetUHostUpgradePriceResponse getUHostUpgradePrice(GetUHostUpgradePriceRequest request) - throws UCloudException; - + public GetUHostUpgradePriceResponse getUHostUpgradePrice(GetUHostUpgradePriceRequest request) throws UCloudException; + + + + + + /** * ImportCustomImage - 导入镜像 * * @param request Request object * @throws UCloudException Exception */ - public ImportCustomImageResponse importCustomImage(ImportCustomImageRequest request) - throws UCloudException; - + public ImportCustomImageResponse importCustomImage(ImportCustomImageRequest request) throws UCloudException; + + + + + + /** * ImportUHostKeyPairs - 导入密钥对的公钥部分 * * @param request Request object * @throws UCloudException Exception */ - public ImportUHostKeyPairsResponse importUHostKeyPairs(ImportUHostKeyPairsRequest request) - throws UCloudException; - + public ImportUHostKeyPairsResponse importUHostKeyPairs(ImportUHostKeyPairsRequest request) throws UCloudException; + + + + + + /** * LeaveIsolationGroup - 移除硬件隔离组中的主机 * * @param request Request object * @throws UCloudException Exception */ - public LeaveIsolationGroupResponse leaveIsolationGroup(LeaveIsolationGroupRequest request) - throws UCloudException; - + public LeaveIsolationGroupResponse leaveIsolationGroup(LeaveIsolationGroupRequest request) throws UCloudException; + + + + + + /** * ModifyUHostIP - 修改云主机内部 IP 地址 * @@ -286,130 +488,186 @@ public LeaveIsolationGroupResponse leaveIsolationGroup(LeaveIsolationGroupReques * @throws UCloudException Exception */ public ModifyUHostIPResponse modifyUHostIP(ModifyUHostIPRequest request) throws UCloudException; - + + + + + + /** * ModifyUHostInstanceName - 修改主机名 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUHostInstanceNameResponse modifyUHostInstanceName( - ModifyUHostInstanceNameRequest request) throws UCloudException; - + public ModifyUHostInstanceNameResponse modifyUHostInstanceName(ModifyUHostInstanceNameRequest request) throws UCloudException; + + + + + + /** * ModifyUHostInstanceRemark - 修改主机备注 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUHostInstanceRemarkResponse modifyUHostInstanceRemark( - ModifyUHostInstanceRemarkRequest request) throws UCloudException; - + public ModifyUHostInstanceRemarkResponse modifyUHostInstanceRemark(ModifyUHostInstanceRemarkRequest request) throws UCloudException; + + + + + + /** * ModifyUHostInstanceTag - 修改主机业务组 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUHostInstanceTagResponse modifyUHostInstanceTag( - ModifyUHostInstanceTagRequest request) throws UCloudException; - + public ModifyUHostInstanceTagResponse modifyUHostInstanceTag(ModifyUHostInstanceTagRequest request) throws UCloudException; + + + + + + /** * PoweroffUHostInstance - 模拟主机掉电 * * @param request Request object * @throws UCloudException Exception */ - public PoweroffUHostInstanceResponse poweroffUHostInstance(PoweroffUHostInstanceRequest request) - throws UCloudException; - + public PoweroffUHostInstanceResponse poweroffUHostInstance(PoweroffUHostInstanceRequest request) throws UCloudException; + + + + + + /** * RebootUHostInstance - 重启主机 * * @param request Request object * @throws UCloudException Exception */ - public RebootUHostInstanceResponse rebootUHostInstance(RebootUHostInstanceRequest request) - throws UCloudException; - + public RebootUHostInstanceResponse rebootUHostInstance(RebootUHostInstanceRequest request) throws UCloudException; + + + + + + /** * ReinstallUHostInstance - 重装系统 * * @param request Request object * @throws UCloudException Exception */ - public ReinstallUHostInstanceResponse reinstallUHostInstance( - ReinstallUHostInstanceRequest request) throws UCloudException; - + public ReinstallUHostInstanceResponse reinstallUHostInstance(ReinstallUHostInstanceRequest request) throws UCloudException; + + + + + + /** * ResetUHostInstancePassword - 重置主机密码 * * @param request Request object * @throws UCloudException Exception */ - public ResetUHostInstancePasswordResponse resetUHostInstancePassword( - ResetUHostInstancePasswordRequest request) throws UCloudException; - + public ResetUHostInstancePasswordResponse resetUHostInstancePassword(ResetUHostInstancePasswordRequest request) throws UCloudException; + + + + + + /** * ResizeAttachedDisk - 修改挂载的磁盘大小 * * @param request Request object * @throws UCloudException Exception */ - public ResizeAttachedDiskResponse resizeAttachedDisk(ResizeAttachedDiskRequest request) - throws UCloudException; - + public ResizeAttachedDiskResponse resizeAttachedDisk(ResizeAttachedDiskRequest request) throws UCloudException; + + + + + + /** * ResizeUHostInstance - 修改主机规格 * * @param request Request object * @throws UCloudException Exception */ - public ResizeUHostInstanceResponse resizeUHostInstance(ResizeUHostInstanceRequest request) - throws UCloudException; - + public ResizeUHostInstanceResponse resizeUHostInstance(ResizeUHostInstanceRequest request) throws UCloudException; + + + + + + /** * StartUHostInstance - 启动主机 * * @param request Request object * @throws UCloudException Exception */ - public StartUHostInstanceResponse startUHostInstance(StartUHostInstanceRequest request) - throws UCloudException; - + public StartUHostInstanceResponse startUHostInstance(StartUHostInstanceRequest request) throws UCloudException; + + + + + + /** * StopUHostInstance - 关闭主机 * * @param request Request object * @throws UCloudException Exception */ - public StopUHostInstanceResponse stopUHostInstance(StopUHostInstanceRequest request) - throws UCloudException; - + public StopUHostInstanceResponse stopUHostInstance(StopUHostInstanceRequest request) throws UCloudException; + + + + + + /** * TerminateCustomImage - 删除自制镜像 * * @param request Request object * @throws UCloudException Exception */ - public TerminateCustomImageResponse terminateCustomImage(TerminateCustomImageRequest request) - throws UCloudException; - + public TerminateCustomImageResponse terminateCustomImage(TerminateCustomImageRequest request) throws UCloudException; + + + + + + /** * TerminateUHostInstance - 删除云主机 * * @param request Request object * @throws UCloudException Exception */ - public TerminateUHostInstanceResponse terminateUHostInstance( - TerminateUHostInstanceRequest request) throws UCloudException; - + public TerminateUHostInstanceResponse terminateUHostInstance(TerminateUHostInstanceRequest request) throws UCloudException; + + + + + + /** * UpgradeToArkUHostInstance - 普通升级为方舟机型 * * @param request Request object * @throws UCloudException Exception */ - public UpgradeToArkUHostInstanceResponse upgradeToArkUHostInstance( - UpgradeToArkUHostInstanceRequest request) throws UCloudException; + public UpgradeToArkUHostInstanceResponse upgradeToArkUHostInstance(UpgradeToArkUHostInstanceRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CopyCustomImageRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CopyCustomImageRequest.java index 7793b472..07409ccf 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CopyCustomImageRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CopyCustomImageRequest.java @@ -1,63 +1,98 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CopyCustomImageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 源镜像Id, 参见 DescribeImage */ + + + + /** + * 源镜像Id, 参见 DescribeImage + */ @NotEmpty @UCloudParam("SourceImageId") private String sourceImageId; - - /** 目标项目Id, 参见 GetProjectList */ + + + + /** + * 目标项目Id, 参见 GetProjectList + */ @NotEmpty @UCloudParam("TargetProjectId") private String targetProjectId; - - /** 目标地域,不跨地域不用填 */ + + + + /** + * 目标地域,不跨地域不用填 + */ @UCloudParam("TargetRegion") private String targetRegion; - - /** 目标镜像名称 */ + + + + /** + * 目标镜像名称 + */ @UCloudParam("TargetImageName") private String targetImageName; - - /** 目标镜像描述 */ + + + + /** + * 目标镜像描述 + */ @UCloudParam("TargetImageDescription") private String targetImageDescription; - + + public String getRegion() { return region; } @@ -65,7 +100,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -73,7 +108,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -81,7 +116,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSourceImageId() { return sourceImageId; } @@ -89,7 +124,7 @@ public String getSourceImageId() { public void setSourceImageId(String sourceImageId) { this.sourceImageId = sourceImageId; } - + public String getTargetProjectId() { return targetProjectId; } @@ -97,7 +132,7 @@ public String getTargetProjectId() { public void setTargetProjectId(String targetProjectId) { this.targetProjectId = targetProjectId; } - + public String getTargetRegion() { return targetRegion; } @@ -105,7 +140,7 @@ public String getTargetRegion() { public void setTargetRegion(String targetRegion) { this.targetRegion = targetRegion; } - + public String getTargetImageName() { return targetImageName; } @@ -113,7 +148,7 @@ public String getTargetImageName() { public void setTargetImageName(String targetImageName) { this.targetImageName = targetImageName; } - + public String getTargetImageDescription() { return targetImageDescription; } @@ -121,4 +156,14 @@ public String getTargetImageDescription() { public void setTargetImageDescription(String targetImageDescription) { this.targetImageDescription = targetImageDescription; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CopyCustomImageResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CopyCustomImageResponse.java index 417bf949..33308628 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CopyCustomImageResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CopyCustomImageResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CopyCustomImageResponse extends Response { - /** 目标镜像Id */ + + + /** + * 目标镜像Id + */ @SerializedName("TargetImageId") private String targetImageId; - + + public String getTargetImageId() { return targetImageId; } @@ -31,4 +41,14 @@ public String getTargetImageId() { public void setTargetImageId(String targetImageId) { this.targetImageId = targetImageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateCustomImageRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateCustomImageRequest.java index dc1361aa..14855c89 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateCustomImageRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateCustomImageRequest.java @@ -1,55 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateCustomImageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) */ + + + + /** + * UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** 镜像名称 */ + + + + /** + * 镜像名称 + */ @NotEmpty @UCloudParam("ImageName") private String imageName; - - /** 镜像描述 */ + + + + /** + * 镜像描述 + */ @UCloudParam("ImageDescription") private String imageDescription; - + + public String getRegion() { return region; } @@ -57,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -73,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -81,7 +108,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getImageName() { return imageName; } @@ -89,7 +116,7 @@ public String getImageName() { public void setImageName(String imageName) { this.imageName = imageName; } - + public String getImageDescription() { return imageDescription; } @@ -97,4 +124,14 @@ public String getImageDescription() { public void setImageDescription(String imageDescription) { this.imageDescription = imageDescription; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateCustomImageResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateCustomImageResponse.java index d2f1d313..72bf6c82 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateCustomImageResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateCustomImageResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateCustomImageResponse extends Response { - /** 镜像Id */ + + + /** + * 镜像Id + */ @SerializedName("ImageId") private String imageId; - + + public String getImageId() { return imageId; } @@ -31,4 +41,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateIsolationGroupRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateIsolationGroupRequest.java index da5d1d43..33a26f2d 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateIsolationGroupRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateIsolationGroupRequest.java @@ -1,43 +1,67 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateIsolationGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目id */ + + + + /** + * 项目id + */ @UCloudParam("ProjectId") private String projectId; - - /** 硬件隔离组名称。请遵照[[api:uhost-api:specification|字段规范]]设定隔离组名称。 */ + + + + /** + * 硬件隔离组名称。请遵照[[api:uhost-api:specification|字段规范]]设定隔离组名称。 + */ @NotEmpty @UCloudParam("GroupName") private String groupName; - - /** 备注。请遵照[[api:uhost-api:specification|字段规范]]设定隔离组备注。 */ + + + + /** + * 备注。请遵照[[api:uhost-api:specification|字段规范]]设定隔离组备注。 + */ @UCloudParam("Remark") private String remark; - + + + + public String getRegion() { return region; } @@ -45,7 +69,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -53,7 +77,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupName() { return groupName; } @@ -61,7 +85,7 @@ public String getGroupName() { public void setGroupName(String groupName) { this.groupName = groupName; } - + public String getRemark() { return remark; } @@ -69,4 +93,15 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateIsolationGroupResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateIsolationGroupResponse.java index 285f3ab2..b15144a3 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateIsolationGroupResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateIsolationGroupResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateIsolationGroupResponse extends Response { - /** 硬件隔离组id */ + + + /** + * 硬件隔离组id + */ @SerializedName("GroupId") private String groupId; - + + public String getGroupId() { return groupId; } @@ -31,4 +41,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceRequest.java index f50541a7..ad8f05cf 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceRequest.java @@ -1,194 +1,364 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateUHostInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 镜像ID。 请通过 [DescribeImage](describe_image.html)获取 */ + + + + /** + * 镜像ID。 请通过 [DescribeImage](describe_image.html)获取 + */ @NotEmpty @UCloudParam("ImageId") private String imageId; - - /** */ + + + + /** + * + */ @UCloudParam("Disks") private List disks; - - /** 主机登陆模式。密码(默认选项): Password,密钥:KeyPair。 */ + + + + /** + * 主机登陆模式。密码(默认选项): Password,密钥:KeyPair。 + */ @NotEmpty @UCloudParam("LoginMode") private String loginMode; - + + + /** - * UHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 - * | base64UGFzc3dvcmQx。 + * UHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。 */ @UCloudParam("Password") private String password; - - /** UHost实例名称。默认:UHost。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。 */ + + + + /** + * UHost实例名称。默认:UHost。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。 + */ @UCloudParam("Name") private String name; - - /** 业务组。默认:Default(Default即为未分组)。请遵照[[api:uhost-api:specification|字段规范]]设定业务组。 */ + + + + /** + * 业务组。默认:Default(Default即为未分组)。请遵照[[api:uhost-api:specification|字段规范]]设定业务组。 + */ @UCloudParam("Tag") private String tag; - + + + /** - * 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > - * Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\Preemptive计费为抢占式实例(内测阶段) \\ 默认为月付 + * 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\Preemptive计费为抢占式实例(内测阶段) \\ 默认为月付 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长。默认:值 1。按小时购买(Dynamic/Postpay)时无需此参数。 月付时,此参数传0,代表购买至月末。 */ + + + + /** + * 购买时长。默认:值 1。按小时购买(Dynamic/Postpay)时无需此参数。 月付时,此参数传0,代表购买至月末。 + */ @UCloudParam("Quantity") private Integer quantity; - + + + /** * 【建议后续不再使用】云主机机型(V1.0),在本字段和字段MachineType中,仅需要其中1个字段即可。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 */ @UCloudParam("UHostType") private String uHostType; - - /** 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。 */ + + + + /** + * 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。 + */ @UCloudParam("CPU") private Integer cpu; - - /** 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192 */ + + + + /** + * 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192 + */ @UCloudParam("Memory") private Integer memory; - + + + /** - * GPU类型,枚举值["K80", "P40", "V100", "T4","T4A", "T4S","2080Ti","2080Ti-4C","1080Ti", "T4/4", - * "MI100", "V100S",2080","2080TiS","2080TiPro","3090","A100"],MachineType为G时必填 + * GPU类型,枚举值["K80", "P40", "V100", "T4","T4A", "T4S","2080Ti","2080Ti-4C","1080Ti", "T4/4", "MI100", "V100S",2080","2080TiS","2080TiPro","3090","A100"],MachineType为G时必填 */ @UCloudParam("GpuType") private String gpuType; - - /** GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) */ + + + + /** + * GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) + */ @UCloudParam("GPU") private Integer gpu; - - /** 网络增强特性。枚举值:Normal,不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0(详情参考官网文档) */ + + + + + + + + + + /** + * 网络增强特性。枚举值:Normal,不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0(详情参考官网文档) + */ @UCloudParam("NetCapability") private String netCapability; - - /** 热升级特性。True为开启,False为未开启,默认False。 */ + + + + + + /** + * 热升级特性。True为开启,False为未开启,默认False。 + */ @UCloudParam("HotplugFeature") private Boolean hotplugFeature; - - /** VPC ID。默认为当前地域的默认VPC。 */ + + + + + + + + /** + * VPC ID。默认为当前地域的默认VPC。 + */ @UCloudParam("VPCId") private String vpcId; - - /** 子网 ID。默认为当前地域的默认子网。 */ + + + + /** + * 子网 ID。默认为当前地域的默认子网。 + */ @UCloudParam("SubnetId") private String subnetId; - - /** 【数组】创建云主机时指定内网IP。若不传值,则随机分配当前子网下的IP。调用方式举例:PrivateIp.0=x.x.x.x。当前只支持一个内网IP。 */ + + + + /** + * 【数组】创建云主机时指定内网IP。若不传值,则随机分配当前子网下的IP。调用方式举例:PrivateIp.0=x.x.x.x。当前只支持一个内网IP。 + */ @UCloudParam("PrivateIp") private List privateIp; - + + + + + /** - * 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 - * [DescribeFirewall](api/unet-api/describe_firewall.html)。 + * 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 [DescribeFirewall](api/unet-api/describe_firewall.html)。 */ @UCloudParam("SecurityGroupId") private String securityGroupId; - - /** 硬件隔离组id。可通过DescribeIsolationGroup获取。 */ + + + + + + + + + + /** + * 硬件隔离组id。可通过DescribeIsolationGroup获取。 + */ @UCloudParam("IsolationGroup") private String isolationGroup; - - /** 告警模板id,如果传了告警模板id,且告警模板id正确,则绑定告警模板。绑定告警模板失败只会在后台有日志,不会影响创建主机流程,也不会在前端报错。 */ + + + + /** + * 告警模板id,如果传了告警模板id,且告警模板id正确,则绑定告警模板。绑定告警模板失败只会在后台有日志,不会影响创建主机流程,也不会在前端报错。 + */ @UCloudParam("AlarmTemplateId") private Integer alarmTemplateId; - + + + /** - * 云主机机型(V2.0),在本字段和字段UHostType中,仅需要其中1个字段即可。枚举值["N", "C", "G", "O", "OS", "OM", "OPRO", "OMAX", - * "O.BM", "O.EPC"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + * 云主机机型(V2.0),在本字段和字段UHostType中,仅需要其中1个字段即可。枚举值["N", "C", "G", "O", "OS", "OM", "OPRO", "OMAX", "O.BM", "O.EPC"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 */ @UCloudParam("MachineType") private String machineType; - + + + /** - * 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", - * "Intel/Skylake", "Intel/Cascadelake", "Intel/CascadelakeR", "Intel/IceLake", "Amd/Epyc2", - * "Amd/Auto","Ampere/Auto","Ampere/Altra"],默认值是"Intel/Auto"。 + * 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake", "Intel/CascadelakeR", "Intel/IceLake", "Amd/Epyc2", "Amd/Auto","Ampere/Auto","Ampere/Altra"],默认值是"Intel/Auto"。 */ @UCloudParam("MinimalCpuPlatform") private String minimalCpuPlatform; - - /** 本次最大创建主机数量,取值范围是[1,100],默认值为1。 */ + + + + /** + * 本次最大创建主机数量,取值范围是[1,100],默认值为1。 + */ @UCloudParam("MaxCount") private Integer maxCount; - - /** */ + + + + /** + * + */ @UCloudParam("NetworkInterface") private List networkInterface; - - /** 用户自定义数据。当镜像支持Cloud-init Feature时可填写此字段。注意:1、总数据量大小不超过 16K;2、使用base64编码 */ + + + + + + + + /** + * 用户自定义数据。当镜像支持Cloud-init Feature时可填写此字段。注意:1、总数据量大小不超过 16K;2、使用base64编码 + */ @UCloudParam("UserData") private String userData; - - /** 数据盘是否需要自动分区挂载。当镜像支持“Cloud-init”Feature时可填写此字段。取值 >“On” 自动挂载(默认值)> “Off” 不自动挂载。 */ + + + + /** + * 数据盘是否需要自动分区挂载。当镜像支持“Cloud-init”Feature时可填写此字段。取值 >“On” 自动挂载(默认值)> “Off” 不自动挂载。 + */ @UCloudParam("AutoDataDiskInit") private String autoDataDiskInit; - - /** */ + + + + + + + + + + + + + + + + + + /** + * + */ @UCloudParam("Volumes") private List volumes; - - /** KeypairId 密钥对ID,LoginMode为KeyPair时此项必须。 */ + + + + + + /** + * KeypairId 密钥对ID,LoginMode为KeyPair时此项必须。 + */ @UCloudParam("KeyPairId") private String keyPairId; - - /** */ + + + + /** + * + */ @UCloudParam("Features") private Features features; - - /** */ + + + + /** + * + */ @UCloudParam("SecGroupId") private List secGroupId; - - /** 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看 */ + + + + + + + + + + + + /** + * 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看 + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -196,7 +366,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -204,7 +374,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -212,7 +382,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageId() { return imageId; } @@ -220,7 +390,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public List getDisks() { return disks; } @@ -228,7 +398,7 @@ public List getDisks() { public void setDisks(List disks) { this.disks = disks; } - + public String getLoginMode() { return loginMode; } @@ -236,7 +406,7 @@ public String getLoginMode() { public void setLoginMode(String loginMode) { this.loginMode = loginMode; } - + public String getPassword() { return password; } @@ -244,7 +414,7 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } - + public String getName() { return name; } @@ -252,7 +422,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getTag() { return tag; } @@ -260,7 +430,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getChargeType() { return chargeType; } @@ -268,7 +438,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -276,7 +446,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getUHostType() { return uHostType; } @@ -284,7 +454,7 @@ public String getUHostType() { public void setUHostType(String uHostType) { this.uHostType = uHostType; } - + public Integer getCPU() { return cpu; } @@ -292,7 +462,7 @@ public Integer getCPU() { public void setCPU(Integer cpu) { this.cpu = cpu; } - + public Integer getMemory() { return memory; } @@ -300,7 +470,7 @@ public Integer getMemory() { public void setMemory(Integer memory) { this.memory = memory; } - + public String getGpuType() { return gpuType; } @@ -308,7 +478,7 @@ public String getGpuType() { public void setGpuType(String gpuType) { this.gpuType = gpuType; } - + public Integer getGPU() { return gpu; } @@ -316,7 +486,10 @@ public Integer getGPU() { public void setGPU(Integer gpu) { this.gpu = gpu; } - + + + + public String getNetCapability() { return netCapability; } @@ -324,7 +497,8 @@ public String getNetCapability() { public void setNetCapability(String netCapability) { this.netCapability = netCapability; } - + + public Boolean getHotplugFeature() { return hotplugFeature; } @@ -332,7 +506,9 @@ public Boolean getHotplugFeature() { public void setHotplugFeature(Boolean hotplugFeature) { this.hotplugFeature = hotplugFeature; } - + + + public String getVPCId() { return vpcId; } @@ -340,7 +516,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -348,7 +524,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public List getPrivateIp() { return privateIp; } @@ -356,7 +532,8 @@ public List getPrivateIp() { public void setPrivateIp(List privateIp) { this.privateIp = privateIp; } - + + public String getSecurityGroupId() { return securityGroupId; } @@ -364,7 +541,10 @@ public String getSecurityGroupId() { public void setSecurityGroupId(String securityGroupId) { this.securityGroupId = securityGroupId; } - + + + + public String getIsolationGroup() { return isolationGroup; } @@ -372,7 +552,7 @@ public String getIsolationGroup() { public void setIsolationGroup(String isolationGroup) { this.isolationGroup = isolationGroup; } - + public Integer getAlarmTemplateId() { return alarmTemplateId; } @@ -380,7 +560,7 @@ public Integer getAlarmTemplateId() { public void setAlarmTemplateId(Integer alarmTemplateId) { this.alarmTemplateId = alarmTemplateId; } - + public String getMachineType() { return machineType; } @@ -388,7 +568,7 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } - + public String getMinimalCpuPlatform() { return minimalCpuPlatform; } @@ -396,7 +576,7 @@ public String getMinimalCpuPlatform() { public void setMinimalCpuPlatform(String minimalCpuPlatform) { this.minimalCpuPlatform = minimalCpuPlatform; } - + public Integer getMaxCount() { return maxCount; } @@ -404,7 +584,7 @@ public Integer getMaxCount() { public void setMaxCount(Integer maxCount) { this.maxCount = maxCount; } - + public List getNetworkInterface() { return networkInterface; } @@ -412,7 +592,9 @@ public List getNetworkInterface() { public void setNetworkInterface(List networkInterface) { this.networkInterface = networkInterface; } - + + + public String getUserData() { return userData; } @@ -420,7 +602,7 @@ public String getUserData() { public void setUserData(String userData) { this.userData = userData; } - + public String getAutoDataDiskInit() { return autoDataDiskInit; } @@ -428,7 +610,14 @@ public String getAutoDataDiskInit() { public void setAutoDataDiskInit(String autoDataDiskInit) { this.autoDataDiskInit = autoDataDiskInit; } - + + + + + + + + public List getVolumes() { return volumes; } @@ -436,7 +625,8 @@ public List getVolumes() { public void setVolumes(List volumes) { this.volumes = volumes; } - + + public String getKeyPairId() { return keyPairId; } @@ -444,7 +634,7 @@ public String getKeyPairId() { public void setKeyPairId(String keyPairId) { this.keyPairId = keyPairId; } - + public Features getFeatures() { return features; } @@ -452,7 +642,7 @@ public Features getFeatures() { public void setFeatures(Features features) { this.features = features; } - + public List getSecGroupId() { return secGroupId; } @@ -460,7 +650,11 @@ public List getSecGroupId() { public void setSecGroupId(List secGroupId) { this.secGroupId = secGroupId; } - + + + + + public String getCouponId() { return couponId; } @@ -468,245 +662,356 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } - - public static class Disks extends Request { - - /** 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 */ - @NotEmpty - @UCloudParam("IsBoot") - private String isBoot; - - /** 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ - @NotEmpty - @UCloudParam("Type") - private String type; - - /** 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ - @NotEmpty - @UCloudParam("Size") - private Integer size; - - /** - * 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 - * [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE - */ - @UCloudParam("BackupType") - private String backupType; - - /** 【功能仅部分可用区开放,详询技术支持】磁盘是否加密。加密:true, 不加密: false 加密必须传入对应的的KmsKeyId,默认值false */ - @UCloudParam("Encrypted") - private Boolean encrypted; - - /** 【功能仅部分可用区开放,详询技术支持】kms key id。选择加密盘时必填。 */ - @UCloudParam("KmsKeyId") - private String kmsKeyId; - - /** 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看 */ - @UCloudParam("CouponId") - private String couponId; - - /** */ - @UCloudParam("CustomBackup") - private DisksCustomBackup customBackup; - - public String getIsBoot() { - return isBoot; - } - - public void setIsBoot(String isBoot) { - this.isBoot = isBoot; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public Integer getSize() { - return size; - } - - public void setSize(Integer size) { - this.size = size; - } - - public String getBackupType() { - return backupType; - } - - public void setBackupType(String backupType) { - this.backupType = backupType; - } - - public Boolean getEncrypted() { - return encrypted; - } - - public void setEncrypted(Boolean encrypted) { - this.encrypted = encrypted; - } - - public String getKmsKeyId() { - return kmsKeyId; - } - - public void setKmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - } - - public String getCouponId() { - return couponId; - } - - public void setCouponId(String couponId) { - this.couponId = couponId; - } - - public DisksCustomBackup getCustomBackup() { - return customBackup; - } - - public void setCustomBackup(DisksCustomBackup customBackup) { - this.customBackup = customBackup; - } + + public static class Disks extends Request { + + + /** + * 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + */ + @NotEmpty + @UCloudParam("IsBoot") + private String isBoot; + + + + /** + * 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + */ + @NotEmpty + @UCloudParam("Type") + private String type; + + + + /** + * 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + */ + @NotEmpty + @UCloudParam("Size") + private Integer size; + + + + /** + * 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE + */ + @UCloudParam("BackupType") + private String backupType; + + + + /** + * 【功能仅部分可用区开放,详询技术支持】磁盘是否加密。加密:true, 不加密: false +加密必须传入对应的的KmsKeyId,默认值false + */ + @UCloudParam("Encrypted") + private Boolean encrypted; + + + + /** + * 【功能仅部分可用区开放,详询技术支持】kms key id。选择加密盘时必填。 + */ + @UCloudParam("KmsKeyId") + private String kmsKeyId; + + + + /** + * 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看 + */ + @UCloudParam("CouponId") + private String couponId; + + + + + + + + /** + * + */ + @UCloudParam("CustomBackup") + private DisksCustomBackup customBackup; + + + public String getIsBoot() { + return isBoot; } - public static class DisksCustomBackup extends Request {} - - public static class Features extends Request { - - /** 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启,仅与 NetCapability Normal 兼容。 */ - @UCloudParam("UNI") - private Boolean uni; - - public Boolean getUNI() { - return uni; - } + public void setIsBoot(String isBoot) { + this.isBoot = isBoot; + } + + public String getType() { + return type; + } - public void setUNI(Boolean uni) { - this.uni = uni; - } + public void setType(String type) { + this.type = type; + } + + public Integer getSize() { + return size; } - public static class NetworkInterface extends Request { + public void setSize(Integer size) { + this.size = size; + } + + public String getBackupType() { + return backupType; + } - /** */ - @UCloudParam("EIP") - private NetworkInterfaceEIP eip; + public void setBackupType(String backupType) { + this.backupType = backupType; + } + + public Boolean getEncrypted() { + return encrypted; + } - /** */ - @UCloudParam("IPv6") - private NetworkInterfaceIPv6 iPv6; + public void setEncrypted(Boolean encrypted) { + this.encrypted = encrypted; + } + + public String getKmsKeyId() { + return kmsKeyId; + } - /** 申请并绑定一个教育网EIP。True为申请并绑定,False为不会申请绑定,默认False。当前只支持具有HPC特性的机型。 */ - @UCloudParam("CreateCernetIp") - private Boolean createCernetIp; + public void setKmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + } + + public String getCouponId() { + return couponId; + } - public NetworkInterfaceEIP getEIP() { - return eip; - } + public void setCouponId(String couponId) { + this.couponId = couponId; + } + + + + public DisksCustomBackup getCustomBackup() { + return customBackup; + } + + public void setCustomBackup(DisksCustomBackup customBackup) { + this.customBackup = customBackup; + } + + } + public static class DisksCustomBackup extends Request { + + + + + + + + + + + } + public static class Features extends Request { + + + /** + * 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启,仅与 NetCapability Normal 兼容。 + */ + @UCloudParam("UNI") + private Boolean uni; + + + public Boolean getUNI() { + return uni; + } - public void setEIP(NetworkInterfaceEIP eip) { - this.eip = eip; + public void setUNI(Boolean uni) { + this.uni = uni; + } + } + public static class NetworkInterface extends Request { + + + /** + * + */ + @UCloudParam("EIP") + private NetworkInterfaceEIP eip; + + + + /** + * + */ + @UCloudParam("IPv6") + private NetworkInterfaceIPv6 iPv6; + + + + /** + * 申请并绑定一个教育网EIP。True为申请并绑定,False为不会申请绑定,默认False。当前只支持具有HPC特性的机型。 + */ + @UCloudParam("CreateCernetIp") + private Boolean createCernetIp; + + + public NetworkInterfaceEIP getEIP() { + return eip; + } - public NetworkInterfaceIPv6 getIPv6() { - return iPv6; - } + public void setEIP(NetworkInterfaceEIP eip) { + this.eip = eip; + } + + public NetworkInterfaceIPv6 getIPv6() { + return iPv6; + } - public void setIPv6(NetworkInterfaceIPv6 iPv6) { - this.iPv6 = iPv6; - } + public void setIPv6(NetworkInterfaceIPv6 iPv6) { + this.iPv6 = iPv6; + } + + public Boolean getCreateCernetIp() { + return createCernetIp; + } - public Boolean getCreateCernetIp() { - return createCernetIp; + public void setCreateCernetIp(Boolean createCernetIp) { + this.createCernetIp = createCernetIp; + } + } + public static class NetworkInterfaceEIP extends Request { + + + /** + * 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800] + */ + @UCloudParam("Bandwidth") + private Integer bandwidth; + + + + /** + * 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. "Free":免费带宽模式,默认为 "Bandwidth" + */ + @UCloudParam("PayMode") + private String payMode; + + + + /** + * 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效 + */ + @UCloudParam("ShareBandwidthId") + private String shareBandwidthId; + + + + /** + * 【若绑定EIP,此参数必填】弹性IP的线路。枚举值: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International + */ + @UCloudParam("OperatorName") + private String operatorName; + + + + /** + * 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。 + */ + @UCloudParam("CouponId") + private String couponId; + + + public Integer getBandwidth() { + return bandwidth; + } - public void setCreateCernetIp(Boolean createCernetIp) { - this.createCernetIp = createCernetIp; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getPayMode() { + return payMode; } - public static class NetworkInterfaceEIP extends Request { - - /** - * 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: - * 流量计费[1-300],带宽计费[1-800] - */ - @UCloudParam("Bandwidth") - private Integer bandwidth; - - /** - * 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. - * "Free":免费带宽模式,默认为 "Bandwidth" - */ - @UCloudParam("PayMode") - private String payMode; - - /** 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效 */ - @UCloudParam("ShareBandwidthId") - private String shareBandwidthId; - - /** - * 【若绑定EIP,此参数必填】弹性IP的线路。枚举值: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: - * Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: - * International kr-seoul:International us-ws:International ge-fra:International - * sg:International tw-kh:International.其他海外线路均为 International - */ - @UCloudParam("OperatorName") - private String operatorName; - - /** 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。 */ - @UCloudParam("CouponId") - private String couponId; - - public Integer getBandwidth() { - return bandwidth; - } + public void setPayMode(String payMode) { + this.payMode = payMode; + } + + public String getShareBandwidthId() { + return shareBandwidthId; + } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } + public void setShareBandwidthId(String shareBandwidthId) { + this.shareBandwidthId = shareBandwidthId; + } + + public String getOperatorName() { + return operatorName; + } - public String getPayMode() { - return payMode; - } + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public String getCouponId() { + return couponId; + } - public void setPayMode(String payMode) { - this.payMode = payMode; + public void setCouponId(String couponId) { + this.couponId = couponId; + } + + } + public static class NetworkInterfaceIPv6 extends Request { + + + + + + + + } + public static class SecGroupId extends Request { + + + + + + + + } + public static class Volumes extends Request { + + + + + + + + + + + + + + + + } +} - public String getShareBandwidthId() { - return shareBandwidthId; - } - public void setShareBandwidthId(String shareBandwidthId) { - this.shareBandwidthId = shareBandwidthId; - } - public String getOperatorName() { - return operatorName; - } - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; - } - public String getCouponId() { - return couponId; - } - public void setCouponId(String couponId) { - this.couponId = couponId; - } - } - public static class NetworkInterfaceIPv6 extends Request {} - public static class SecGroupId extends Request {} - public static class Volumes extends Request {} -} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceResponse.java index b21c480f..74de3dba 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceResponse.java @@ -1,34 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class CreateUHostInstanceResponse extends Response { - /** UHost实例Id集合 */ + + + /** + * UHost实例Id集合 + */ @SerializedName("UHostIds") private List uHostIds; - - /** 【批量创建不会返回】IP信息 */ + + + + /** + * 【批量创建不会返回】IP信息 + */ @SerializedName("IPs") private List iPs; - + + + + public List getUHostIds() { return uHostIds; } @@ -36,7 +51,7 @@ public List getUHostIds() { public void setUHostIds(List uHostIds) { this.uHostIds = uHostIds; } - + public List getIPs() { return iPs; } @@ -44,4 +59,15 @@ public List getIPs() { public void setIPs(List iPs) { this.iPs = iPs; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostKeyPairRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostKeyPairRequest.java index a421ad74..3632163f 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostKeyPairRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostKeyPairRequest.java @@ -1,45 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUHostKeyPairRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 密钥对名称。 由字母,数字,符号组成,长度为1-63位。 */ + + + + /** + * 密钥对名称。 由字母,数字,符号组成,长度为1-63位。 + */ @NotEmpty @UCloudParam("KeyPairName") private String keyPairName; - + + public String getRegion() { return region; } @@ -47,7 +66,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -55,7 +74,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -63,7 +82,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getKeyPairName() { return keyPairName; } @@ -71,4 +90,14 @@ public String getKeyPairName() { public void setKeyPairName(String keyPairName) { this.keyPairName = keyPairName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostKeyPairResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostKeyPairResponse.java index d49b4eab..08f54808 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostKeyPairResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostKeyPairResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUHostKeyPairResponse extends Response { - /** 密钥信息 */ + + + /** + * 密钥信息 + */ @SerializedName("KeyPair") private KeyPair keyPair; - + + public KeyPair getKeyPair() { return keyPair; } @@ -31,79 +41,113 @@ public KeyPair getKeyPair() { public void setKeyPair(KeyPair keyPair) { this.keyPair = keyPair; } + + public static class KeyPair extends Response { + + + /** + * 项目ID。 + */ + @SerializedName("ProjectId") + private String projectId; + + + + /** + * 密钥对ID。 + */ + @SerializedName("KeyPairId") + private String keyPairId; + + + + /** + * 密钥对名称。 长度为1~63个英文或中文字符。 + */ + @SerializedName("KeyPairName") + private String keyPairName; + + + + /** + * 密钥对指纹。md5(ProjectId|KeyPairId|PublicKey) + */ + @SerializedName("KeyPairFingerPrint") + private String keyPairFingerPrint; + + + + /** + * 密钥对的私钥内容。只有创建接口才会返回。 + */ + @SerializedName("PrivateKeyBody") + private String privateKeyBody; + + + + /** + * 密钥对的创建时间,格式为Unix Timestamp。 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + public String getProjectId() { + return projectId; + } - public static class KeyPair extends Response { - - /** 项目ID。 */ - @SerializedName("ProjectId") - private String projectId; - - /** 密钥对ID。 */ - @SerializedName("KeyPairId") - private String keyPairId; - - /** 密钥对名称。 长度为1~63个英文或中文字符。 */ - @SerializedName("KeyPairName") - private String keyPairName; - - /** 密钥对指纹。md5(ProjectId|KeyPairId|PublicKey) */ - @SerializedName("KeyPairFingerPrint") - private String keyPairFingerPrint; + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getKeyPairId() { + return keyPairId; + } - /** 密钥对的私钥内容。只有创建接口才会返回。 */ - @SerializedName("PrivateKeyBody") - private String privateKeyBody; + public void setKeyPairId(String keyPairId) { + this.keyPairId = keyPairId; + } + + public String getKeyPairName() { + return keyPairName; + } - /** 密钥对的创建时间,格式为Unix Timestamp。 */ - @SerializedName("CreateTime") - private Integer createTime; + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + } + + public String getKeyPairFingerPrint() { + return keyPairFingerPrint; + } - public String getProjectId() { - return projectId; - } + public void setKeyPairFingerPrint(String keyPairFingerPrint) { + this.keyPairFingerPrint = keyPairFingerPrint; + } + + public String getPrivateKeyBody() { + return privateKeyBody; + } - public void setProjectId(String projectId) { - this.projectId = projectId; - } + public void setPrivateKeyBody(String privateKeyBody) { + this.privateKeyBody = privateKeyBody; + } + + public Integer getCreateTime() { + return createTime; + } - public String getKeyPairId() { - return keyPairId; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + } +} - public void setKeyPairId(String keyPairId) { - this.keyPairId = keyPairId; - } - public String getKeyPairName() { - return keyPairName; - } - public void setKeyPairName(String keyPairName) { - this.keyPairName = keyPairName; - } - public String getKeyPairFingerPrint() { - return keyPairFingerPrint; - } - public void setKeyPairFingerPrint(String keyPairFingerPrint) { - this.keyPairFingerPrint = keyPairFingerPrint; - } - public String getPrivateKeyBody() { - return privateKeyBody; - } - public void setPrivateKeyBody(String privateKeyBody) { - this.privateKeyBody = privateKeyBody; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - } -} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteIsolationGroupRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteIsolationGroupRequest.java index 5f9aeee6..acbce128 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteIsolationGroupRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteIsolationGroupRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteIsolationGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目id */ + + + + /** + * 项目id + */ @UCloudParam("ProjectId") private String projectId; - - /** 硬件隔离组id */ + + + + /** + * 硬件隔离组id + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -57,4 +75,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteIsolationGroupResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteIsolationGroupResponse.java index 5c8c1809..5654e48c 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteIsolationGroupResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteIsolationGroupResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DeleteIsolationGroupResponse extends Response { - /** 硬件隔离组id */ + + + /** + * 硬件隔离组id + */ @SerializedName("GroupId") private String groupId; - + + public String getGroupId() { return groupId; } @@ -31,4 +41,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteUHostKeyPairsRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteUHostKeyPairsRequest.java index 02e903c6..1bb17664 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteUHostKeyPairsRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteUHostKeyPairsRequest.java @@ -1,46 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DeleteUHostKeyPairsRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 密钥对ID,最多支持 100 对。 */ + + + + /** + * 密钥对ID,最多支持 100 对。 + */ @NotEmpty @UCloudParam("KeyPairIds") private List keyPairIds; - + + public String getRegion() { return region; } @@ -48,7 +66,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -56,7 +74,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -64,7 +82,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getKeyPairIds() { return keyPairIds; } @@ -72,4 +90,14 @@ public List getKeyPairIds() { public void setKeyPairIds(List keyPairIds) { this.keyPairIds = keyPairIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteUHostKeyPairsResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteUHostKeyPairsResponse.java index 3bded07a..0399d961 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteUHostKeyPairsResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DeleteUHostKeyPairsResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUHostKeyPairsResponse extends Response {} +public class DeleteUHostKeyPairsResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeAvailableInstanceTypesRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeAvailableInstanceTypesRequest.java index 3e33be83..88316e02 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeAvailableInstanceTypesRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeAvailableInstanceTypesRequest.java @@ -1,43 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeAvailableInstanceTypesRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + */ @UCloudParam("ProjectId") private String projectId; - - /** 指定机型列表 */ + + + + /** + * 指定机型列表 + */ @UCloudParam("MachineTypes") private List machineTypes; - + + public String getRegion() { return region; } @@ -45,7 +66,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -53,7 +74,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -61,7 +82,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getMachineTypes() { return machineTypes; } @@ -69,4 +90,14 @@ public List getMachineTypes() { public void setMachineTypes(List machineTypes) { this.machineTypes = machineTypes; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeAvailableInstanceTypesResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeAvailableInstanceTypesResponse.java index 7663c581..fdf21a38 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeAvailableInstanceTypesResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeAvailableInstanceTypesResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeAvailableInstanceTypesResponse extends Response { - /** AvailableInstanceTypes */ + + + /** + * AvailableInstanceTypes + */ @SerializedName("AvailableInstanceTypes") private List availableInstanceTypes; - - /** 当前区域是否可售 */ + + + + /** + * 当前区域是否可售 + */ @SerializedName("Status") private String status; - + + public List getAvailableInstanceTypes() { return availableInstanceTypes; } @@ -36,7 +49,7 @@ public List getAvailableInstanceTypes() { public void setAvailableInstanceTypes(List availableInstanceTypes) { this.availableInstanceTypes = availableInstanceTypes; } - + public String getStatus() { return status; } @@ -44,519 +57,674 @@ public String getStatus() { public void setStatus(String status) { this.status = status; } - - public static class AvailableInstanceTypes extends Response { - - /** 可用区信息 */ - @SerializedName("Zone") - private String zone; - - /** 机型名称:快杰O型|O 、快杰共享型|OM 、快杰内存型|OMEM 、 快杰PRO型|OPRO、通用N型|N、高主频C型|C和GPU G型|G等 */ - @SerializedName("Name") - private String name; - - /** 机型状态:可售|Normal 、 公测|Beta、售罄|Soldout、隐藏|Hidden */ - @SerializedName("Status") - private String status; - - /** 支持的CPU平台,并且按照Intel、AMD和Ampere分类返回 */ - @SerializedName("CpuPlatforms") - private CpuPlatforms cpuPlatforms; - - /** - * 磁盘信息。磁盘主要分类如下:云盘|cloudDisk、普通本地盘|normalLocalDisk和SSD本地盘|ssdLocalDisk。 - * - *

其中云盘主要包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。 - * - *

MinimalSize为磁盘最小值,如果没有该字段,最小值取基础镜像Size值即可(linux为20G,windows为40G)。MaximalSize为磁盘最大值。 - * - *

InstantResize表示系统盘是否允许扩容,如果是本地盘,则不允许扩容,InstantResize为false。 - * - *

Features为磁盘可支持的服务:数据方舟|DATAARK,快照服务|SNAPSHOT,加密盘|Encrypted。 - */ - @SerializedName("Disks") - private List disks; - - /** - * GPU、CPU和内存信息。Gpu为GPU可支持的规格,Cpu和Memory分别为CPU和内存可支持的规格。如果非GPU机型,GPU为0。 - * - *

MinimalCpuPlatform代表含义这个CPU和内存规格只能在列出来的CPU平台支持。 - */ - @SerializedName("MachineSizes") - private List machineSizes; - - /** - * 虚机可支持的特性。目前支持的特性网络增强|NetCapability、热升级|Hotplug。 - * - *

网络增强分为关闭|Normal、网络增强1.0|Super和网络增强2.0|Ultra。 - * - *

Name为可支持的特性名称,Modes为可以提供的模式类别等,RelatedToImageFeature为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。 - * - *

MinimalCpuPlatform表示这个特性必须是列出来的CPU平台及以上的CPU才支持。 - */ - @SerializedName("Features") - private List features; - - /** 区分是否是GPU机型:GPU机型|GPU,非GPU机型|Normal。 */ - @SerializedName("MachineClass") - private String machineClass; - - /** GPU的显存指标,value为值,单位是GB。 */ - @SerializedName("GraphicsMemory") - private GraphicsMemory graphicsMemory; - - /** GPU的性能指标,value为值,单位是TFlops。 */ - @SerializedName("Performance") - private Performance performance; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public CpuPlatforms getCpuPlatforms() { - return cpuPlatforms; - } - - public void setCpuPlatforms(CpuPlatforms cpuPlatforms) { - this.cpuPlatforms = cpuPlatforms; - } - - public List getDisks() { - return disks; - } - - public void setDisks(List disks) { - this.disks = disks; - } - - public List getMachineSizes() { - return machineSizes; - } - - public void setMachineSizes(List machineSizes) { - this.machineSizes = machineSizes; - } - - public List getFeatures() { - return features; - } - - public void setFeatures(List features) { - this.features = features; - } - - public String getMachineClass() { - return machineClass; - } - - public void setMachineClass(String machineClass) { - this.machineClass = machineClass; - } - - public GraphicsMemory getGraphicsMemory() { - return graphicsMemory; - } - - public void setGraphicsMemory(GraphicsMemory graphicsMemory) { - this.graphicsMemory = graphicsMemory; - } - - public Performance getPerformance() { - return performance; - } - - public void setPerformance(Performance performance) { - this.performance = performance; - } + + public static class AvailableInstanceTypes extends Response { + + + /** + * 可用区信息 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 机型名称:快杰O型|O 、快杰共享型|OM 、快杰内存型|OMEM 、 快杰PRO型|OPRO、通用N型|N、高主频C型|C和GPU G型|G等 + */ + @SerializedName("Name") + private String name; + + + + /** + * 机型状态:可售|Normal 、 公测|Beta、售罄|Soldout、隐藏|Hidden + */ + @SerializedName("Status") + private String status; + + + + /** + * 支持的CPU平台,并且按照Intel、AMD和Ampere分类返回 + */ + @SerializedName("CpuPlatforms") + private CpuPlatforms cpuPlatforms; + + + + /** + * 磁盘信息。磁盘主要分类如下:云盘|cloudDisk、普通本地盘|normalLocalDisk和SSD本地盘|ssdLocalDisk。 + +其中云盘主要包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。 + +MinimalSize为磁盘最小值,如果没有该字段,最小值取基础镜像Size值即可(linux为20G,windows为40G)。MaximalSize为磁盘最大值。 + +InstantResize表示系统盘是否允许扩容,如果是本地盘,则不允许扩容,InstantResize为false。 + +Features为磁盘可支持的服务:数据方舟|DATAARK,快照服务|SNAPSHOT,加密盘|Encrypted。 + */ + @SerializedName("Disks") + private List disks; + + + + /** + * GPU、CPU和内存信息。Gpu为GPU可支持的规格,Cpu和Memory分别为CPU和内存可支持的规格。如果非GPU机型,GPU为0。 + +MinimalCpuPlatform代表含义这个CPU和内存规格只能在列出来的CPU平台支持。 + */ + @SerializedName("MachineSizes") + private List machineSizes; + + + + /** + * +虚机可支持的特性。目前支持的特性网络增强|NetCapability、热升级|Hotplug。 + +网络增强分为关闭|Normal、网络增强1.0|Super和网络增强2.0|Ultra。 + +Name为可支持的特性名称,Modes为可以提供的模式类别等,RelatedToImageFeature为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。 + +MinimalCpuPlatform表示这个特性必须是列出来的CPU平台及以上的CPU才支持。 + */ + @SerializedName("Features") + private List features; + + + + /** + * 区分是否是GPU机型:GPU机型|GPU,非GPU机型|Normal。 + */ + @SerializedName("MachineClass") + private String machineClass; + + + + /** + * GPU的显存指标,value为值,单位是GB。 + */ + @SerializedName("GraphicsMemory") + private GraphicsMemory graphicsMemory; + + + + /** + * GPU的性能指标,value为值,单位是TFlops。 + */ + @SerializedName("Performance") + private Performance performance; + + + public String getZone() { + return zone; } - public static class BootDiskInfo extends Response { - - /** - * 系统盘类别,包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。 - */ - @SerializedName("Name") - private String name; - - /** 系统盘是否允许扩容,如果是本地盘,则不允许扩容,InstantResize为false。 */ - @SerializedName("InstantResize") - private Boolean instantResize; - - /** MaximalSize为磁盘最大值 */ - @SerializedName("MaximalSize") - private Integer maximalSize; - - /** 磁盘可支持的服务 */ - @SerializedName("Features") - private List features; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Boolean getInstantResize() { - return instantResize; - } - - public void setInstantResize(Boolean instantResize) { - this.instantResize = instantResize; - } - - public Integer getMaximalSize() { - return maximalSize; - } - - public void setMaximalSize(Integer maximalSize) { - this.maximalSize = maximalSize; - } - - public List getFeatures() { - return features; - } - - public void setFeatures(List features) { - this.features = features; - } + public void setZone(String zone) { + this.zone = zone; } - - public static class Collection extends Response { - - /** CPU规格 */ - @SerializedName("Cpu") - private Integer cpu; - - /** 内存规格 */ - @SerializedName("Memory") - private List memory; - - /** CPU和内存规格只能在列出来的CPU平台支持 */ - @SerializedName("MinimalCpuPlatform") - private List minimalCpuPlatform; - - public Integer getCpu() { - return cpu; - } - - public void setCpu(Integer cpu) { - this.cpu = cpu; - } - - public List getMemory() { - return memory; - } - - public void setMemory(List memory) { - this.memory = memory; - } - - public List getMinimalCpuPlatform() { - return minimalCpuPlatform; - } - - public void setMinimalCpuPlatform(List minimalCpuPlatform) { - this.minimalCpuPlatform = minimalCpuPlatform; - } + + public String getName() { + return name; } - public static class CpuPlatforms extends Response { - - /** 返回Intel的CPU平台信息,例如:Intel: ['Intel/CascadeLake','Intel/CascadelakeR','Intel/IceLake'] */ - @SerializedName("Intel") - private List intel; - - /** 返回AMD的CPU平台信息,例如:AMD: ['Amd/Epyc2'] */ - @SerializedName("Amd") - private List amd; - - /** 返回Arm的CPU平台信息,例如:Ampere: ['Ampere/Altra'] */ - @SerializedName("Ampere") - private List ampere; - - public List getIntel() { - return intel; - } - - public void setIntel(List intel) { - this.intel = intel; - } - - public List getAmd() { - return amd; - } - - public void setAmd(List amd) { - this.amd = amd; - } - - public List getAmpere() { - return ampere; - } - - public void setAmpere(List ampere) { - this.ampere = ampere; - } + public void setName(String name) { + this.name = name; } - - public static class DataDiskInfo extends Response { - - /** 磁盘最小值,如果没有该字段,最小值取基础镜像Size值即可(linux为20G,windows为40G)。 */ - @SerializedName("MinimalSize") - private Integer minimalSize; - - /** - * 数据盘类别,包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。 - */ - @SerializedName("Name") - private String name; - - /** MaximalSize为磁盘最大值 */ - @SerializedName("MaximalSize") - private Integer maximalSize; - - /** 数据盘可支持的服务 */ - @SerializedName("Features") - private List features; - - public Integer getMinimalSize() { - return minimalSize; - } - - public void setMinimalSize(Integer minimalSize) { - this.minimalSize = minimalSize; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getMaximalSize() { - return maximalSize; - } - - public void setMaximalSize(Integer maximalSize) { - this.maximalSize = maximalSize; - } - - public List getFeatures() { - return features; - } - - public void setFeatures(List features) { - this.features = features; - } + + public String getStatus() { + return status; } - public static class Disks extends Response { - - /** 磁盘介质类别信息,磁盘主要分类如下:云盘|cloudDisk、普通本地盘|normalLocalDisk和SSD本地盘|ssdLocalDisk。 */ - @SerializedName("Name") - private String name; - - /** 系统盘信息 */ - @SerializedName("BootDisk") - private List bootDisk; - - /** 数据盘信息 */ - @SerializedName("DataDisk") - private List dataDisk; + public void setStatus(String status) { + this.status = status; + } + + public CpuPlatforms getCpuPlatforms() { + return cpuPlatforms; + } - public String getName() { - return name; - } + public void setCpuPlatforms(CpuPlatforms cpuPlatforms) { + this.cpuPlatforms = cpuPlatforms; + } + + public List getDisks() { + return disks; + } - public void setName(String name) { - this.name = name; - } + public void setDisks(List disks) { + this.disks = disks; + } + + public List getMachineSizes() { + return machineSizes; + } - public List getBootDisk() { - return bootDisk; - } + public void setMachineSizes(List machineSizes) { + this.machineSizes = machineSizes; + } + + public List getFeatures() { + return features; + } - public void setBootDisk(List bootDisk) { - this.bootDisk = bootDisk; - } + public void setFeatures(List features) { + this.features = features; + } + + public String getMachineClass() { + return machineClass; + } - public List getDataDisk() { - return dataDisk; - } + public void setMachineClass(String machineClass) { + this.machineClass = machineClass; + } + + public GraphicsMemory getGraphicsMemory() { + return graphicsMemory; + } - public void setDataDisk(List dataDisk) { - this.dataDisk = dataDisk; - } + public void setGraphicsMemory(GraphicsMemory graphicsMemory) { + this.graphicsMemory = graphicsMemory; + } + + public Performance getPerformance() { + return performance; } - public static class FeatureModes extends Response { + public void setPerformance(Performance performance) { + this.performance = performance; + } + + } + public static class BootDiskInfo extends Response { + + + /** + * 系统盘类别,包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。 + */ + @SerializedName("Name") + private String name; + + + + /** + * 系统盘是否允许扩容,如果是本地盘,则不允许扩容,InstantResize为false。 + */ + @SerializedName("InstantResize") + private Boolean instantResize; + + + + /** + * MaximalSize为磁盘最大值 + */ + @SerializedName("MaximalSize") + private Integer maximalSize; + + + + /** + * 磁盘可支持的服务 + */ + @SerializedName("Features") + private List features; + + + public String getName() { + return name; + } - /** 模式|特性名称 */ - @SerializedName("Name") - private String name; + public void setName(String name) { + this.name = name; + } + + public Boolean getInstantResize() { + return instantResize; + } - /** 为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。 */ - @SerializedName("RelatedToImageFeature") - private List relatedToImageFeature; + public void setInstantResize(Boolean instantResize) { + this.instantResize = instantResize; + } + + public Integer getMaximalSize() { + return maximalSize; + } - /** 这个特性必须是列出来的CPU平台及以上的CPU才支持 */ - @SerializedName("MinimalCpuPlatform") - private List minimalCpuPlatform; + public void setMaximalSize(Integer maximalSize) { + this.maximalSize = maximalSize; + } + + public List getFeatures() { + return features; + } - public String getName() { - return name; - } + public void setFeatures(List features) { + this.features = features; + } + + } + public static class Collection extends Response { + + + /** + * CPU规格 + */ + @SerializedName("Cpu") + private Integer cpu; + + + + /** + * 内存规格 + */ + @SerializedName("Memory") + private List memory; + + + + /** + * CPU和内存规格只能在列出来的CPU平台支持 + */ + @SerializedName("MinimalCpuPlatform") + private List minimalCpuPlatform; + + + public Integer getCpu() { + return cpu; + } - public void setName(String name) { - this.name = name; - } + public void setCpu(Integer cpu) { + this.cpu = cpu; + } + + public List getMemory() { + return memory; + } - public List getRelatedToImageFeature() { - return relatedToImageFeature; - } + public void setMemory(List memory) { + this.memory = memory; + } + + public List getMinimalCpuPlatform() { + return minimalCpuPlatform; + } - public void setRelatedToImageFeature(List relatedToImageFeature) { - this.relatedToImageFeature = relatedToImageFeature; - } + public void setMinimalCpuPlatform(List minimalCpuPlatform) { + this.minimalCpuPlatform = minimalCpuPlatform; + } + + } + public static class CpuPlatforms extends Response { + + + /** + * 返回Intel的CPU平台信息,例如:Intel: ['Intel/CascadeLake','Intel/CascadelakeR','Intel/IceLake'] + + */ + @SerializedName("Intel") + private List intel; + + + + /** + * 返回AMD的CPU平台信息,例如:AMD: ['Amd/Epyc2'] + + */ + @SerializedName("Amd") + private List amd; + + + + /** + * 返回Arm的CPU平台信息,例如:Ampere: ['Ampere/Altra'] + */ + @SerializedName("Ampere") + private List ampere; + + + public List getIntel() { + return intel; + } - public List getMinimalCpuPlatform() { - return minimalCpuPlatform; - } + public void setIntel(List intel) { + this.intel = intel; + } + + public List getAmd() { + return amd; + } - public void setMinimalCpuPlatform(List minimalCpuPlatform) { - this.minimalCpuPlatform = minimalCpuPlatform; - } + public void setAmd(List amd) { + this.amd = amd; + } + + public List getAmpere() { + return ampere; } - public static class Features extends Response { + public void setAmpere(List ampere) { + this.ampere = ampere; + } + + } + public static class DataDiskInfo extends Response { + + + /** + * 磁盘最小值,如果没有该字段,最小值取基础镜像Size值即可(linux为20G,windows为40G)。 + */ + @SerializedName("MinimalSize") + private Integer minimalSize; + + + + /** + * 数据盘类别,包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。 + */ + @SerializedName("Name") + private String name; + + + + /** + * MaximalSize为磁盘最大值 + */ + @SerializedName("MaximalSize") + private Integer maximalSize; + + + + /** + * 数据盘可支持的服务 + */ + @SerializedName("Features") + private List features; + + + public Integer getMinimalSize() { + return minimalSize; + } - /** 可支持的特性名称。目前支持的特性网络增强|NetCapability、热升级|Hotplug */ - @SerializedName("Name") - private String name; + public void setMinimalSize(Integer minimalSize) { + this.minimalSize = minimalSize; + } + + public String getName() { + return name; + } - /** 可以提供的模式类别 */ - @SerializedName("Modes") - private List modes; + public void setName(String name) { + this.name = name; + } + + public Integer getMaximalSize() { + return maximalSize; + } - public String getName() { - return name; - } + public void setMaximalSize(Integer maximalSize) { + this.maximalSize = maximalSize; + } + + public List getFeatures() { + return features; + } - public void setName(String name) { - this.name = name; - } + public void setFeatures(List features) { + this.features = features; + } + + } + public static class Disks extends Response { + + + /** + * 磁盘介质类别信息,磁盘主要分类如下:云盘|cloudDisk、普通本地盘|normalLocalDisk和SSD本地盘|ssdLocalDisk。 + */ + @SerializedName("Name") + private String name; + + + + /** + * 系统盘信息 + */ + @SerializedName("BootDisk") + private List bootDisk; + + + + /** + * 数据盘信息 + */ + @SerializedName("DataDisk") + private List dataDisk; + + + public String getName() { + return name; + } - public List getModes() { - return modes; - } + public void setName(String name) { + this.name = name; + } + + public List getBootDisk() { + return bootDisk; + } - public void setModes(List modes) { - this.modes = modes; - } + public void setBootDisk(List bootDisk) { + this.bootDisk = bootDisk; + } + + public List getDataDisk() { + return dataDisk; } - public static class GraphicsMemory extends Response { + public void setDataDisk(List dataDisk) { + this.dataDisk = dataDisk; + } + + } + public static class FeatureModes extends Response { + + + /** + * 模式|特性名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。 + */ + @SerializedName("RelatedToImageFeature") + private List relatedToImageFeature; + + + + /** + * 这个特性必须是列出来的CPU平台及以上的CPU才支持 + */ + @SerializedName("MinimalCpuPlatform") + private List minimalCpuPlatform; + + + public String getName() { + return name; + } - /** 值,单位是GB */ - @SerializedName("Value") - private Integer value; + public void setName(String name) { + this.name = name; + } + + public List getRelatedToImageFeature() { + return relatedToImageFeature; + } - /** 交互展示参数,可忽略 */ - @SerializedName("Rate") - private Integer rate; + public void setRelatedToImageFeature(List relatedToImageFeature) { + this.relatedToImageFeature = relatedToImageFeature; + } + + public List getMinimalCpuPlatform() { + return minimalCpuPlatform; + } - public Integer getValue() { - return value; - } + public void setMinimalCpuPlatform(List minimalCpuPlatform) { + this.minimalCpuPlatform = minimalCpuPlatform; + } + + } + public static class Features extends Response { + + + /** + * 可支持的特性名称。目前支持的特性网络增强|NetCapability、热升级|Hotplug + */ + @SerializedName("Name") + private String name; + + + + /** + * 可以提供的模式类别 + */ + @SerializedName("Modes") + private List modes; + + + public String getName() { + return name; + } - public void setValue(Integer value) { - this.value = value; - } + public void setName(String name) { + this.name = name; + } + + public List getModes() { + return modes; + } - public Integer getRate() { - return rate; - } + public void setModes(List modes) { + this.modes = modes; + } + + } + public static class GraphicsMemory extends Response { + + + /** + * 值,单位是GB + */ + @SerializedName("Value") + private Integer value; + + + + /** + * 交互展示参数,可忽略 + */ + @SerializedName("Rate") + private Integer rate; + + + public Integer getValue() { + return value; + } - public void setRate(Integer rate) { - this.rate = rate; - } + public void setValue(Integer value) { + this.value = value; + } + + public Integer getRate() { + return rate; } - public static class MachineSizes extends Response { + public void setRate(Integer rate) { + this.rate = rate; + } + + } + public static class MachineSizes extends Response { + + + /** + * Gpu为GPU可支持的规格即GPU颗数,非GPU机型,Gpu为0 + */ + @SerializedName("Gpu") + private Integer gpu; + + + + /** + * CPU和内存可支持的规格 + */ + @SerializedName("Collection") + private List collection; + + + public Integer getGpu() { + return gpu; + } - /** Gpu为GPU可支持的规格即GPU颗数,非GPU机型,Gpu为0 */ - @SerializedName("Gpu") - private Integer gpu; + public void setGpu(Integer gpu) { + this.gpu = gpu; + } + + public List getCollection() { + return collection; + } - /** CPU和内存可支持的规格 */ - @SerializedName("Collection") - private List collection; + public void setCollection(List collection) { + this.collection = collection; + } + + } + public static class Performance extends Response { + + + /** + * 值,单位是TFlops + */ + @SerializedName("Value") + private Double value; + + + + /** + * 交互展示参数,可忽略 + */ + @SerializedName("Rate") + private Integer rate; + + + public Double getValue() { + return value; + } - public Integer getGpu() { - return gpu; - } + public void setValue(Double value) { + this.value = value; + } + + public Integer getRate() { + return rate; + } - public void setGpu(Integer gpu) { - this.gpu = gpu; + public void setRate(Integer rate) { + this.rate = rate; + } + } +} - public List getCollection() { - return collection; - } - public void setCollection(List collection) { - this.collection = collection; - } - } - public static class Performance extends Response { - /** 值,单位是TFlops */ - @SerializedName("Value") - private Double value; - /** 交互展示参数,可忽略 */ - @SerializedName("Rate") - private Integer rate; - public Double getValue() { - return value; - } - public void setValue(Double value) { - this.value = value; - } - public Integer getRate() { - return rate; - } - public void setRate(Integer rate) { - this.rate = rate; - } - } -} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeImageRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeImageRequest.java index 87f27327..ae33b526 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeImageRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeImageRequest.java @@ -1,65 +1,104 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeImageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 镜像类型。标准镜像:Base,镜像市场:Business, 自定义镜像:Custom,默认返回所有类型 */ + + + + /** + * 镜像类型。标准镜像:Base,镜像市场:Business, 自定义镜像:Custom,默认返回所有类型 + */ @UCloudParam("ImageType") private String imageType; - - /** 操作系统类型:Linux, Windows 默认返回所有类型 */ + + + + /** + * 操作系统类型:Linux, Windows 默认返回所有类型 + */ @UCloudParam("OsType") private String osType; - - /** 镜像Id */ + + + + /** + * 镜像Id + */ @UCloudParam("ImageId") private String imageId; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20 */ + + + + /** + * 返回数据长度,默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 是否返回价格:1返回,0不返回;默认不返回 */ + + + + /** + * 是否返回价格:1返回,0不返回;默认不返回 + */ @UCloudParam("PriceSet") private Integer priceSet; - + + public String getRegion() { return region; } @@ -67,7 +106,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -75,7 +114,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -83,7 +122,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageType() { return imageType; } @@ -91,7 +130,7 @@ public String getImageType() { public void setImageType(String imageType) { this.imageType = imageType; } - + public String getOsType() { return osType; } @@ -99,7 +138,7 @@ public String getOsType() { public void setOsType(String osType) { this.osType = osType; } - + public String getImageId() { return imageId; } @@ -107,7 +146,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public Integer getOffset() { return offset; } @@ -115,7 +154,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -123,7 +162,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getPriceSet() { return priceSet; } @@ -131,4 +170,14 @@ public Integer getPriceSet() { public void setPriceSet(Integer priceSet) { this.priceSet = priceSet; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeImageResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeImageResponse.java index 22744e0d..cd5eb2bf 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeImageResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeImageResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeImageResponse extends Response { - /** 满足条件的镜像总数 */ + + + /** + * 满足条件的镜像总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 镜像列表详见 UHostImageSet */ + + + + /** + * 镜像列表详见 UHostImageSet + */ @SerializedName("ImageSet") private List imageSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getImageSet() { return imageSet; } @@ -44,202 +57,273 @@ public List getImageSet() { public void setImageSet(List imageSet) { this.imageSet = imageSet; } + + public static class UHostImageSet extends Response { + + + /** + * 可用区,参见 [可用区列表](../summary/regionlist.html) + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 镜像ID + */ + @SerializedName("ImageId") + private String imageId; + + + + /** + * 镜像名称 + */ + @SerializedName("ImageName") + private String imageName; + + + + /** + * 操作系统类型:Linux,Windows + */ + @SerializedName("OsType") + private String osType; + + + + /** + * 操作系统名称 + */ + @SerializedName("OsName") + private String osName; + + + + /** + * 镜像类型 标准镜像:Base, 行业镜像:Business,自定义镜像:Custom + */ + @SerializedName("ImageType") + private String imageType; + + + + /** + * 特殊状态标识, 目前包含NetEnhnced(网络增强1.0), NetEnhanced_Ultra](网络增强2.0), HotPlug(热升级), CloudInit, IPv6 + */ + @SerializedName("Features") + private List features; + + + + /** + * 行业镜像类型(仅行业镜像将返回这个值) + */ + @SerializedName("FuncType") + private String funcType; + + + + /** + * 集成软件名称(仅行业镜像将返回这个值) + */ + @SerializedName("IntegratedSoftware") + private String integratedSoftware; + + + + /** + * 供应商(仅行业镜像将返回这个值) + */ + @SerializedName("Vendor") + private String vendor; + + + + /** + * 介绍链接(仅行业镜像将返回这个值) + */ + @SerializedName("Links") + private String links; + + + + /** + * 镜像状态, 可用:Available,制作中:Making, 不可用:Unavailable + */ + @SerializedName("State") + private String state; + + + + /** + * 镜像描述 + */ + @SerializedName("ImageDescription") + private String imageDescription; + + + + /** + * 创建时间,格式为Unix时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 镜像大小 + */ + @SerializedName("ImageSize") + private Integer imageSize; + + + + /** + * 默认值为空'''。当CentOS 7.3/7.4/7.5等镜像会标记为“Broadwell” + */ + @SerializedName("MinimalCPU") + private String minimalCPU; + + + public String getZone() { + return zone; + } - public static class UHostImageSet extends Response { - - /** 可用区,参见 [可用区列表](../summary/regionlist.html) */ - @SerializedName("Zone") - private String zone; - - /** 镜像ID */ - @SerializedName("ImageId") - private String imageId; - - /** 镜像名称 */ - @SerializedName("ImageName") - private String imageName; - - /** 操作系统类型:Linux,Windows */ - @SerializedName("OsType") - private String osType; - - /** 操作系统名称 */ - @SerializedName("OsName") - private String osName; - - /** 镜像类型 标准镜像:Base, 行业镜像:Business,自定义镜像:Custom */ - @SerializedName("ImageType") - private String imageType; - - /** - * 特殊状态标识, 目前包含NetEnhnced(网络增强1.0), NetEnhanced_Ultra](网络增强2.0), HotPlug(热升级), CloudInit, - * IPv6 - */ - @SerializedName("Features") - private List features; - - /** 行业镜像类型(仅行业镜像将返回这个值) */ - @SerializedName("FuncType") - private String funcType; - - /** 集成软件名称(仅行业镜像将返回这个值) */ - @SerializedName("IntegratedSoftware") - private String integratedSoftware; - - /** 供应商(仅行业镜像将返回这个值) */ - @SerializedName("Vendor") - private String vendor; - - /** 介绍链接(仅行业镜像将返回这个值) */ - @SerializedName("Links") - private String links; - - /** 镜像状态, 可用:Available,制作中:Making, 不可用:Unavailable */ - @SerializedName("State") - private String state; - - /** 镜像描述 */ - @SerializedName("ImageDescription") - private String imageDescription; - - /** 创建时间,格式为Unix时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 镜像大小 */ - @SerializedName("ImageSize") - private Integer imageSize; - - /** 默认值为空'''。当CentOS 7.3/7.4/7.5等镜像会标记为“Broadwell” */ - @SerializedName("MinimalCPU") - private String minimalCPU; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getImageId() { - return imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - } - - public String getImageName() { - return imageName; - } - - public void setImageName(String imageName) { - this.imageName = imageName; - } - - public String getOsType() { - return osType; - } - - public void setOsType(String osType) { - this.osType = osType; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getImageId() { + return imageId; + } - public String getOsName() { - return osName; - } + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getImageName() { + return imageName; + } - public void setOsName(String osName) { - this.osName = osName; - } + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public String getOsType() { + return osType; + } - public String getImageType() { - return imageType; - } + public void setOsType(String osType) { + this.osType = osType; + } + + public String getOsName() { + return osName; + } - public void setImageType(String imageType) { - this.imageType = imageType; - } + public void setOsName(String osName) { + this.osName = osName; + } + + public String getImageType() { + return imageType; + } - public List getFeatures() { - return features; - } + public void setImageType(String imageType) { + this.imageType = imageType; + } + + public List getFeatures() { + return features; + } - public void setFeatures(List features) { - this.features = features; - } + public void setFeatures(List features) { + this.features = features; + } + + public String getFuncType() { + return funcType; + } - public String getFuncType() { - return funcType; - } + public void setFuncType(String funcType) { + this.funcType = funcType; + } + + public String getIntegratedSoftware() { + return integratedSoftware; + } - public void setFuncType(String funcType) { - this.funcType = funcType; - } + public void setIntegratedSoftware(String integratedSoftware) { + this.integratedSoftware = integratedSoftware; + } + + public String getVendor() { + return vendor; + } - public String getIntegratedSoftware() { - return integratedSoftware; - } + public void setVendor(String vendor) { + this.vendor = vendor; + } + + public String getLinks() { + return links; + } - public void setIntegratedSoftware(String integratedSoftware) { - this.integratedSoftware = integratedSoftware; - } + public void setLinks(String links) { + this.links = links; + } + + public String getState() { + return state; + } - public String getVendor() { - return vendor; - } + public void setState(String state) { + this.state = state; + } + + public String getImageDescription() { + return imageDescription; + } - public void setVendor(String vendor) { - this.vendor = vendor; - } + public void setImageDescription(String imageDescription) { + this.imageDescription = imageDescription; + } + + public Integer getCreateTime() { + return createTime; + } - public String getLinks() { - return links; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getImageSize() { + return imageSize; + } - public void setLinks(String links) { - this.links = links; - } + public void setImageSize(Integer imageSize) { + this.imageSize = imageSize; + } + + public String getMinimalCPU() { + return minimalCPU; + } - public String getState() { - return state; + public void setMinimalCPU(String minimalCPU) { + this.minimalCPU = minimalCPU; + } + } +} - public void setState(String state) { - this.state = state; - } - public String getImageDescription() { - return imageDescription; - } - public void setImageDescription(String imageDescription) { - this.imageDescription = imageDescription; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getImageSize() { - return imageSize; - } - public void setImageSize(Integer imageSize) { - this.imageSize = imageSize; - } - public String getMinimalCPU() { - return minimalCPU; - } - public void setMinimalCPU(String minimalCPU) { - this.minimalCPU = minimalCPU; - } - } -} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeIsolationGroupRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeIsolationGroupRequest.java index 9fbd2bbd..dd191c64 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeIsolationGroupRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeIsolationGroupRequest.java @@ -1,46 +1,76 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeIsolationGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目id */ + + + + /** + * 项目id + */ @UCloudParam("ProjectId") private String projectId; - - /** 待查的硬件隔离组id */ + + + + /** + * 待查的硬件隔离组id + */ @UCloudParam("GroupId") private String groupId; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20,最大100 */ + + + + /** + * 返回数据长度,默认为20,最大100 + */ @UCloudParam("Limit") private Integer limit; - + + + + + + public String getRegion() { return region; } @@ -48,7 +78,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -56,7 +86,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -64,7 +94,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public Integer getOffset() { return offset; } @@ -72,7 +102,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -80,4 +110,16 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + + + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeIsolationGroupResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeIsolationGroupResponse.java index b3a75064..3a99bef5 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeIsolationGroupResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeIsolationGroupResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeIsolationGroupResponse extends Response { - /** 硬件隔离组集合。参见数据结构IsolationGroup。 */ + + + /** + * 硬件隔离组集合。参见数据结构IsolationGroup。 + */ @SerializedName("IsolationGroupSet") private List isolationGroupSet; - - /** 硬件隔离组总数 */ + + + + /** + * 硬件隔离组总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getIsolationGroupSet() { return isolationGroupSet; } @@ -36,7 +49,7 @@ public List getIsolationGroupSet() { public void setIsolationGroupSet(List isolationGroupSet) { this.isolationGroupSet = isolationGroupSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,82 +57,116 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class IsolationGroup extends Response { + + + /** + * 硬件隔离组名称 + */ + @SerializedName("GroupName") + private String groupName; + + + + /** + * 硬件隔离组id + */ + @SerializedName("GroupId") + private String groupId; + + + + /** + * 每个可用区中的机器数量。参见数据结构SpreadInfo。 + */ + @SerializedName("SpreadInfoSet") + private List spreadInfoSet; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + public String getGroupName() { + return groupName; + } - public static class IsolationGroup extends Response { - - /** 硬件隔离组名称 */ - @SerializedName("GroupName") - private String groupName; - - /** 硬件隔离组id */ - @SerializedName("GroupId") - private String groupId; - - /** 每个可用区中的机器数量。参见数据结构SpreadInfo。 */ - @SerializedName("SpreadInfoSet") - private List spreadInfoSet; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - public String getGroupName() { - return groupName; - } + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public String getGroupId() { + return groupId; + } - public void setGroupName(String groupName) { - this.groupName = groupName; - } + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public List getSpreadInfoSet() { + return spreadInfoSet; + } - public String getGroupId() { - return groupId; - } + public void setSpreadInfoSet(List spreadInfoSet) { + this.spreadInfoSet = spreadInfoSet; + } + + public String getRemark() { + return remark; + } - public void setGroupId(String groupId) { - this.groupId = groupId; + public void setRemark(String remark) { + this.remark = remark; + } + } + public static class SpreadInfo extends Response { + + + /** + * 可用区信息 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 当前地域所有可用区中硬件隔离组中云主机的数量,不超过7。 + */ + @SerializedName("UHostCount") + private Integer uHostCount; + + + public String getZone() { + return zone; + } - public List getSpreadInfoSet() { - return spreadInfoSet; - } + public void setZone(String zone) { + this.zone = zone; + } + + public Integer getUHostCount() { + return uHostCount; + } - public void setSpreadInfoSet(List spreadInfoSet) { - this.spreadInfoSet = spreadInfoSet; + public void setUHostCount(Integer uHostCount) { + this.uHostCount = uHostCount; + } + } +} - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - } - public static class SpreadInfo extends Response { - /** 可用区信息 */ - @SerializedName("Zone") - private String zone; - /** 当前地域所有可用区中硬件隔离组中云主机的数量,不超过7。 */ - @SerializedName("UHostCount") - private Integer uHostCount; - public String getZone() { - return zone; - } - public void setZone(String zone) { - this.zone = zone; - } - public Integer getUHostCount() { - return uHostCount; - } - public void setUHostCount(Integer uHostCount) { - this.uHostCount = uHostCount; - } - } -} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostInstanceRequest.java index 42010528..dee1c123 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostInstanceRequest.java @@ -1,76 +1,128 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeUHostInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** * 【数组】UHost主机的资源ID,例如UHostIds.0代表希望获取信息 的主机1,UHostIds.1代表主机2。 如果不传入,则返回当前Region 所有符合条件的UHost实例。 */ @UCloudParam("UHostIds") private List uHostIds; - - /** 要查询的业务组名称 */ + + + + /** + * 要查询的业务组名称 + */ @UCloudParam("Tag") private String tag; - - /** 列表起始位置偏移量,默认为0 */ + + + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20,最大100 */ + + + + /** + * 返回数据长度,默认为20,最大100 + */ @UCloudParam("Limit") private Integer limit; - - /** 硬件隔离组id。通过硬件隔离组筛选主机。 */ + + + + /** + * 硬件隔离组id。通过硬件隔离组筛选主机。 + */ @UCloudParam("IsolationGroup") private String isolationGroup; - - /** vpc id。通过VPC筛选主机。北京一地域无效。 */ + + + + /** + * vpc id。通过VPC筛选主机。北京一地域无效。 + */ @UCloudParam("VPCId") private String vpcId; - - /** 子网id。通过子网筛选主机。北京一地域无效。 */ + + + + /** + * 子网id。通过子网筛选主机。北京一地域无效。 + */ @UCloudParam("SubnetId") private String subnetId; - - /** 要挂载的云盘id,过滤返回能被UDiskId挂载的云主机。目前主要针对rssd云盘使用 */ + + + + + + + + /** + * 要挂载的云盘id,过滤返回能被UDiskId挂载的云主机。目前主要针对rssd云盘使用 + */ @UCloudParam("UDiskIdForAttachment") private String uDiskIdForAttachment; - + + + + public String getRegion() { return region; } @@ -78,7 +130,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -86,7 +138,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -94,7 +146,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUHostIds() { return uHostIds; } @@ -102,7 +154,7 @@ public List getUHostIds() { public void setUHostIds(List uHostIds) { this.uHostIds = uHostIds; } - + public String getTag() { return tag; } @@ -110,7 +162,8 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + + public Integer getOffset() { return offset; } @@ -118,7 +171,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -126,7 +179,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getIsolationGroup() { return isolationGroup; } @@ -134,7 +187,7 @@ public String getIsolationGroup() { public void setIsolationGroup(String isolationGroup) { this.isolationGroup = isolationGroup; } - + public String getVPCId() { return vpcId; } @@ -142,7 +195,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -150,7 +203,9 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + + + public String getUDiskIdForAttachment() { return uDiskIdForAttachment; } @@ -158,4 +213,15 @@ public String getUDiskIdForAttachment() { public void setUDiskIdForAttachment(String uDiskIdForAttachment) { this.uDiskIdForAttachment = uDiskIdForAttachment; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostInstanceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostInstanceResponse.java index 380aee4d..c6f4eb0b 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostInstanceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostInstanceResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUHostInstanceResponse extends Response { - /** UHostInstance总数 */ + + + /** + * UHostInstance总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 云主机实例列表,每项参数可见下面 UHostInstanceSet */ + + + + /** + * 云主机实例列表,每项参数可见下面 UHostInstanceSet + */ @SerializedName("UHostSet") private List uHostSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getUHostSet() { return uHostSet; } @@ -44,763 +57,1018 @@ public List getUHostSet() { public void setUHostSet(List uHostSet) { this.uHostSet = uHostSet; } - - public static class UHostDiskSet extends Response { - - /** 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ - @SerializedName("DiskType") - private String diskType; - - /** 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 */ - @SerializedName("IsBoot") - private String isBoot; - - /** "true": 加密盘 "false":非加密盘 */ - @SerializedName("Encrypted") - private String encrypted; - - /** 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk */ - @SerializedName("Type") - private String type; - - /** 磁盘ID */ - @SerializedName("DiskId") - private String diskId; - - /** UDisk名字(仅当磁盘是UDisk时返回) */ - @SerializedName("Name") - private String name; - - /** 磁盘盘符 */ - @SerializedName("Drive") - private String drive; - - /** 磁盘大小,单位: GB */ - @SerializedName("Size") - private Integer size; - - /** 备份方案。若开通了数据方舟,则为DATAARK */ - @SerializedName("BackupType") - private String backupType; - - public String getDiskType() { - return diskType; - } - - public void setDiskType(String diskType) { - this.diskType = diskType; - } - - public String getIsBoot() { - return isBoot; - } - - public void setIsBoot(String isBoot) { - this.isBoot = isBoot; - } - - public String getEncrypted() { - return encrypted; - } - - public void setEncrypted(String encrypted) { - this.encrypted = encrypted; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getDiskId() { - return diskId; - } - - public void setDiskId(String diskId) { - this.diskId = diskId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getDrive() { - return drive; - } - - public void setDrive(String drive) { - this.drive = drive; - } - - public Integer getSize() { - return size; - } - - public void setSize(Integer size) { - this.size = size; - } - - public String getBackupType() { - return backupType; - } - - public void setBackupType(String backupType) { - this.backupType = backupType; - } + + public static class UHostDiskSet extends Response { + + + /** + * 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + */ + @SerializedName("DiskType") + private String diskType; + + + + /** + * 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + */ + @SerializedName("IsBoot") + private String isBoot; + + + + /** + * "true": 加密盘 "false":非加密盘 + */ + @SerializedName("Encrypted") + private String encrypted; + + + + /** + * 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk + */ + @SerializedName("Type") + private String type; + + + + /** + * 磁盘ID + */ + @SerializedName("DiskId") + private String diskId; + + + + /** + * UDisk名字(仅当磁盘是UDisk时返回) + */ + @SerializedName("Name") + private String name; + + + + /** + * 磁盘盘符 + */ + @SerializedName("Drive") + private String drive; + + + + /** + * 磁盘大小,单位: GB + */ + @SerializedName("Size") + private Integer size; + + + + /** + * 备份方案。若开通了数据方舟,则为DATAARK + */ + @SerializedName("BackupType") + private String backupType; + + + public String getDiskType() { + return diskType; } - public static class UHostIPSet extends Response { - - /** IPv4/IPv6; */ - @SerializedName("IPMode") - private String ipMode; - - /** 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。 */ - @SerializedName("Default") - private String fDefault; - - /** 内网 Private 类型下,当前网卡的Mac。 */ - @SerializedName("Mac") - private String mac; - - /** 当前EIP的权重。权重最大的为当前的出口IP。 */ - @SerializedName("Weight") - private Integer weight; - - /** 国际: Internation,BGP: Bgp,内网: Private */ - @SerializedName("Type") - private String type; - - /** 外网IP资源ID 。(内网IP无对应的资源ID) */ - @SerializedName("IPId") - private String ipId; - - /** IP地址 */ - @SerializedName("IP") - private String ip; - - /** IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - /** IP地址对应的VPC ID。(北京一不支持,字段返回为空) */ - @SerializedName("VPCId") - private String vpcId; - - /** IP地址对应的子网 ID。(北京一不支持,字段返回为空) */ - @SerializedName("SubnetId") - private String subnetId; - - /** 弹性网卡为默认网卡时,返回对应的 ID 值 */ - @SerializedName("NetworkInterfaceId") - private String networkInterfaceId; - - public String getIPMode() { - return ipMode; - } - - public void setIPMode(String ipMode) { - this.ipMode = ipMode; - } - - public String getDefault() { - return fDefault; - } - - public void setDefault(String fDefault) { - this.fDefault = fDefault; - } - - public String getMac() { - return mac; - } - - public void setMac(String mac) { - this.mac = mac; - } - - public Integer getWeight() { - return weight; - } - - public void setWeight(Integer weight) { - this.weight = weight; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getIPId() { - return ipId; - } - - public void setIPId(String ipId) { - this.ipId = ipId; - } - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } - - public Integer getBandwidth() { - return bandwidth; - } - - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public String getNetworkInterfaceId() { - return networkInterfaceId; - } - - public void setNetworkInterfaceId(String networkInterfaceId) { - this.networkInterfaceId = networkInterfaceId; - } + public void setDiskType(String diskType) { + this.diskType = diskType; + } + + public String getIsBoot() { + return isBoot; } - public static class UHostInstanceSet extends Response { - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ - @SerializedName("Zone") - private String zone; - - /** true:有ipv6特性;false,没有ipv6特性 */ - @SerializedName("IPv6Feature") - private Boolean iPv6Feature; - - /** UHost实例ID */ - @SerializedName("UHostId") - private String uHostId; - - /** 【建议不再使用】云主机机型(旧)。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 */ - @SerializedName("UHostType") - private String uHostType; - - /** 云主机机型(新)。参考[[api:uhost-api:uhost_type#主机概念20版本|云主机机型说明]]。 */ - @SerializedName("MachineType") - private String machineType; - - /** 云主机CPU平台。参考[[api:uhost-api:uhost_type#主机概念20版本|云主机机型说明]]。 */ - @SerializedName("CpuPlatform") - private String cpuPlatform; - - /** 【建议不再使用】主机磁盘类型。 枚举值为:\\ > LocalDisk,本地磁盘; \\ > UDisk 云盘。\\只要有一块磁盘为本地盘,即返回LocalDisk。 */ - @SerializedName("StorageType") - private String storageType; - - /** 【建议不再使用】主机的系统盘ID。 */ - @SerializedName("ImageId") - private String imageId; - - /** 基础镜像ID(指当前自定义镜像的来源镜像) */ - @SerializedName("BasicImageId") - private String basicImageId; - - /** 基础镜像名称(指当前自定义镜像的来源镜像) */ - @SerializedName("BasicImageName") - private String basicImageName; - - /** 业务组名称 */ - @SerializedName("Tag") - private String tag; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** UHost实例名称 */ - @SerializedName("Name") - private String name; - - /** - * 实例状态,枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; - * \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting; \\ > 未知(空字符串,获取状态超时或出错):"" - */ - @SerializedName("State") - private String state; - - /** 创建时间,格式为Unix时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费(需开启权限);Preemptive 为抢占式实例; */ - @SerializedName("ChargeType") - private String chargeType; - - /** 到期时间,格式为Unix时间戳 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 虚拟CPU核数,单位: 个 */ - @SerializedName("CPU") - private Integer cpu; - - /** 内存大小,单位: MB */ - @SerializedName("Memory") - private Integer memory; - - /** 是否自动续费,自动续费:“Yes”,不自动续费:“No” */ - @SerializedName("AutoRenew") - private String autoRenew; - - /** 磁盘信息见 UHostDiskSet */ - @SerializedName("DiskSet") - private List diskSet; - - /** 详细信息见 UHostIPSet */ - @SerializedName("IPSet") - private List ipSet; - - /** 网络增强。Normal: 无;Super: 网络增强1.0; Ultra: 网络增强2.0 */ - @SerializedName("NetCapability") - private String netCapability; - - /** 【建议不再使用】网络状态。 连接:Connected, 断开:NotConnected */ - @SerializedName("NetworkState") - private String networkState; - - /** 【建议不再使用】数据方舟模式。枚举值:\\ > Yes: 开启方舟; \\ > no,未开启方舟 */ - @SerializedName("TimemachineFeature") - private String timemachineFeature; - - /** true: 开启热升级; false,未开启热升级 */ - @SerializedName("HotplugFeature") - private Boolean hotplugFeature; - - /** 【建议不再使用】仅北京A的云主机会返回此字段。基础网络模式:Default;子网模式:Private */ - @SerializedName("SubnetType") - private String subnetType; - - /** 创建主机的最初来源镜像的操作系统名称(若直接通过基础镜像创建,此处返回和BasicImageName一致) */ - @SerializedName("OsName") - private String osName; - - /** 操作系统类别。返回"Linux"或者"Windows" */ - @SerializedName("OsType") - private String osType; - - /** 【建议不再使用】主机系列:N2,表示系列2;N1,表示系列1 */ - @SerializedName("HostType") - private String hostType; - - /** 主机的生命周期类型。目前仅支持Normal:普通; */ - @SerializedName("LifeCycle") - private String lifeCycle; - - /** GPU个数 */ - @SerializedName("GPU") - private Integer gpu; - - /** 系统盘状态 Normal表示初始化完成;Initializing表示在初始化。仍在初始化的系统盘无法制作镜像。 */ - @SerializedName("BootDiskState") - private String bootDiskState; - - /** 总的数据盘存储空间。 */ - @SerializedName("TotalDiskSpace") - private Integer totalDiskSpace; - - /** 隔离组id,不在隔离组则返回"" */ - @SerializedName("IsolationGroup") - private String isolationGroup; - - /** true,支持cloutinit方式初始化;false,不支持 */ - @SerializedName("CloudInitFeature") - private Boolean cloudInitFeature; - - /** RDMA集群id,仅快杰云主机返回该值;其他类型云主机返回""。当云主机的此值与RSSD云盘的RdmaClusterId相同时,RSSD可以挂载到这台云主机。 */ - @SerializedName("RdmaClusterId") - private String rdmaClusterId; - - /** 仅抢占式实例返回,LowSpeed为低速模式,PowerOff为关机模式 */ - @SerializedName("RestrictMode") - private String restrictMode; - - /** true: 开启 hpc 系列功能;false: 未开启 */ - @SerializedName("HpcFeature") - private Boolean hpcFeature; - - /** 密钥信息见 UHostKeyPair */ - @SerializedName("KeyPair") - private UHostKeyPair keyPair; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public Boolean getIPv6Feature() { - return iPv6Feature; - } - - public void setIPv6Feature(Boolean iPv6Feature) { - this.iPv6Feature = iPv6Feature; - } - - public String getUHostId() { - return uHostId; - } - - public void setUHostId(String uHostId) { - this.uHostId = uHostId; - } - - public String getUHostType() { - return uHostType; - } - - public void setUHostType(String uHostType) { - this.uHostType = uHostType; - } - - public String getMachineType() { - return machineType; - } - - public void setMachineType(String machineType) { - this.machineType = machineType; - } - - public String getCpuPlatform() { - return cpuPlatform; - } - - public void setCpuPlatform(String cpuPlatform) { - this.cpuPlatform = cpuPlatform; - } - - public String getStorageType() { - return storageType; - } - - public void setStorageType(String storageType) { - this.storageType = storageType; - } - - public String getImageId() { - return imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - } - - public String getBasicImageId() { - return basicImageId; - } - - public void setBasicImageId(String basicImageId) { - this.basicImageId = basicImageId; - } + public void setIsBoot(String isBoot) { + this.isBoot = isBoot; + } + + public String getEncrypted() { + return encrypted; + } - public String getBasicImageName() { - return basicImageName; - } + public void setEncrypted(String encrypted) { + this.encrypted = encrypted; + } + + public String getType() { + return type; + } - public void setBasicImageName(String basicImageName) { - this.basicImageName = basicImageName; - } + public void setType(String type) { + this.type = type; + } + + public String getDiskId() { + return diskId; + } - public String getTag() { - return tag; - } + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public String getName() { + return name; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setName(String name) { + this.name = name; + } + + public String getDrive() { + return drive; + } - public String getRemark() { - return remark; - } + public void setDrive(String drive) { + this.drive = drive; + } + + public Integer getSize() { + return size; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setSize(Integer size) { + this.size = size; + } + + public String getBackupType() { + return backupType; + } - public String getName() { - return name; - } + public void setBackupType(String backupType) { + this.backupType = backupType; + } + + } + public static class UHostIPSet extends Response { + + + /** + * IPv4/IPv6; + */ + @SerializedName("IPMode") + private String ipMode; + + + + /** + * 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。 + */ + @SerializedName("Default") + private String fDefault; + + + + /** + * 内网 Private 类型下,当前网卡的Mac。 + */ + @SerializedName("Mac") + private String mac; + + + + /** + * 当前EIP的权重。权重最大的为当前的出口IP。 + */ + @SerializedName("Weight") + private Integer weight; + + + + /** + * 国际: Internation,BGP: Bgp,内网: Private + */ + @SerializedName("Type") + private String type; + + + + /** + * 外网IP资源ID 。(内网IP无对应的资源ID) + */ + @SerializedName("IPId") + private String ipId; + + + + /** + * IP地址 + */ + @SerializedName("IP") + private String ip; + + + + /** + * IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * IP地址对应的VPC ID。(北京一不支持,字段返回为空) + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * IP地址对应的子网 ID。(北京一不支持,字段返回为空) + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * 弹性网卡为默认网卡时,返回对应的 ID 值 + */ + @SerializedName("NetworkInterfaceId") + private String networkInterfaceId; + + + public String getIPMode() { + return ipMode; + } - public void setName(String name) { - this.name = name; - } + public void setIPMode(String ipMode) { + this.ipMode = ipMode; + } + + public String getDefault() { + return fDefault; + } - public String getState() { - return state; - } + public void setDefault(String fDefault) { + this.fDefault = fDefault; + } + + public String getMac() { + return mac; + } - public void setState(String state) { - this.state = state; - } + public void setMac(String mac) { + this.mac = mac; + } + + public Integer getWeight() { + return weight; + } - public Integer getCreateTime() { - return createTime; - } + public void setWeight(Integer weight) { + this.weight = weight; + } + + public String getType() { + return type; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setType(String type) { + this.type = type; + } + + public String getIPId() { + return ipId; + } - public String getChargeType() { - return chargeType; - } + public void setIPId(String ipId) { + this.ipId = ipId; + } + + public String getIP() { + return ip; + } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } + public void setIP(String ip) { + this.ip = ip; + } + + public Integer getBandwidth() { + return bandwidth; + } - public Integer getExpireTime() { - return expireTime; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getVPCId() { + return vpcId; + } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } - public Integer getCPU() { - return cpu; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getNetworkInterfaceId() { + return networkInterfaceId; + } - public void setCPU(Integer cpu) { - this.cpu = cpu; - } + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + } + + } + public static class UHostInstanceSet extends Response { + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ + @SerializedName("Zone") + private String zone; + + + + /** + * true:有ipv6特性;false,没有ipv6特性 + */ + @SerializedName("IPv6Feature") + private Boolean iPv6Feature; + + + + /** + * UHost实例ID + */ + @SerializedName("UHostId") + private String uHostId; + + + + /** + * 【建议不再使用】云主机机型(旧)。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + */ + @SerializedName("UHostType") + private String uHostType; + + + + /** + * 云主机机型(新)。参考[[api:uhost-api:uhost_type#主机概念20版本|云主机机型说明]]。 + */ + @SerializedName("MachineType") + private String machineType; + + + + /** + * 云主机CPU平台。参考[[api:uhost-api:uhost_type#主机概念20版本|云主机机型说明]]。 + */ + @SerializedName("CpuPlatform") + private String cpuPlatform; + + + + /** + * 【建议不再使用】主机磁盘类型。 枚举值为:\\ > LocalDisk,本地磁盘; \\ > UDisk 云盘。\\只要有一块磁盘为本地盘,即返回LocalDisk。 + */ + @SerializedName("StorageType") + private String storageType; + + + + /** + * 【建议不再使用】主机的系统盘ID。 + */ + @SerializedName("ImageId") + private String imageId; + + + + /** + * 基础镜像ID(指当前自定义镜像的来源镜像) + */ + @SerializedName("BasicImageId") + private String basicImageId; + + + + /** + * 基础镜像名称(指当前自定义镜像的来源镜像) + */ + @SerializedName("BasicImageName") + private String basicImageName; + + + + /** + * 业务组名称 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * UHost实例名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 实例状态,枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting; \\ > 未知(空字符串,获取状态超时或出错):"" + */ + @SerializedName("State") + private String state; + + + + /** + * 创建时间,格式为Unix时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费(需开启权限);Preemptive 为抢占式实例; + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 到期时间,格式为Unix时间戳 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 虚拟CPU核数,单位: 个 + */ + @SerializedName("CPU") + private Integer cpu; + + + + /** + * 内存大小,单位: MB + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * 是否自动续费,自动续费:“Yes”,不自动续费:“No” + */ + @SerializedName("AutoRenew") + private String autoRenew; + + + + /** + * 磁盘信息见 UHostDiskSet + */ + @SerializedName("DiskSet") + private List diskSet; + + + + /** + * 详细信息见 UHostIPSet + */ + @SerializedName("IPSet") + private List ipSet; + + + + /** + * 网络增强。Normal: 无;Super: 网络增强1.0; Ultra: 网络增强2.0 + */ + @SerializedName("NetCapability") + private String netCapability; + + + + /** + * 【建议不再使用】网络状态。 连接:Connected, 断开:NotConnected + */ + @SerializedName("NetworkState") + private String networkState; + + + + /** + * 【建议不再使用】数据方舟模式。枚举值:\\ > Yes: 开启方舟; \\ > no,未开启方舟 + */ + @SerializedName("TimemachineFeature") + private String timemachineFeature; + + + + /** + * true: 开启热升级; false,未开启热升级 + */ + @SerializedName("HotplugFeature") + private Boolean hotplugFeature; + + + + /** + * 【建议不再使用】仅北京A的云主机会返回此字段。基础网络模式:Default;子网模式:Private + */ + @SerializedName("SubnetType") + private String subnetType; + + + + /** + * 创建主机的最初来源镜像的操作系统名称(若直接通过基础镜像创建,此处返回和BasicImageName一致) + */ + @SerializedName("OsName") + private String osName; + + + + /** + * 操作系统类别。返回"Linux"或者"Windows" + */ + @SerializedName("OsType") + private String osType; + + + + /** + * 【建议不再使用】主机系列:N2,表示系列2;N1,表示系列1 + */ + @SerializedName("HostType") + private String hostType; + + + + /** + * 主机的生命周期类型。目前仅支持Normal:普通; + */ + @SerializedName("LifeCycle") + private String lifeCycle; + + + + /** + * GPU个数 + */ + @SerializedName("GPU") + private Integer gpu; + + + + /** + * 系统盘状态 Normal表示初始化完成;Initializing表示在初始化。仍在初始化的系统盘无法制作镜像。 + */ + @SerializedName("BootDiskState") + private String bootDiskState; + + + + /** + * 总的数据盘存储空间。 + */ + @SerializedName("TotalDiskSpace") + private Integer totalDiskSpace; + + + + /** + * 隔离组id,不在隔离组则返回"" + */ + @SerializedName("IsolationGroup") + private String isolationGroup; + + + + /** + * true,支持cloutinit方式初始化;false,不支持 + */ + @SerializedName("CloudInitFeature") + private Boolean cloudInitFeature; + + + + /** + * RDMA集群id,仅快杰云主机返回该值;其他类型云主机返回""。当云主机的此值与RSSD云盘的RdmaClusterId相同时,RSSD可以挂载到这台云主机。 + */ + @SerializedName("RdmaClusterId") + private String rdmaClusterId; + + + + /** + * 仅抢占式实例返回,LowSpeed为低速模式,PowerOff为关机模式 + */ + @SerializedName("RestrictMode") + private String restrictMode; + + + + /** + * true: 开启 hpc 系列功能;false: 未开启 + */ + @SerializedName("HpcFeature") + private Boolean hpcFeature; + + + + /** + * 密钥信息见 UHostKeyPair + */ + @SerializedName("KeyPair") + private UHostKeyPair keyPair; + + + public String getZone() { + return zone; + } - public Integer getMemory() { - return memory; - } + public void setZone(String zone) { + this.zone = zone; + } + + public Boolean getIPv6Feature() { + return iPv6Feature; + } - public void setMemory(Integer memory) { - this.memory = memory; - } + public void setIPv6Feature(Boolean iPv6Feature) { + this.iPv6Feature = iPv6Feature; + } + + public String getUHostId() { + return uHostId; + } - public String getAutoRenew() { - return autoRenew; - } + public void setUHostId(String uHostId) { + this.uHostId = uHostId; + } + + public String getUHostType() { + return uHostType; + } - public void setAutoRenew(String autoRenew) { - this.autoRenew = autoRenew; - } + public void setUHostType(String uHostType) { + this.uHostType = uHostType; + } + + public String getMachineType() { + return machineType; + } - public List getDiskSet() { - return diskSet; - } + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getCpuPlatform() { + return cpuPlatform; + } - public void setDiskSet(List diskSet) { - this.diskSet = diskSet; - } + public void setCpuPlatform(String cpuPlatform) { + this.cpuPlatform = cpuPlatform; + } + + public String getStorageType() { + return storageType; + } - public List getIPSet() { - return ipSet; - } + public void setStorageType(String storageType) { + this.storageType = storageType; + } + + public String getImageId() { + return imageId; + } - public void setIPSet(List ipSet) { - this.ipSet = ipSet; - } + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getBasicImageId() { + return basicImageId; + } - public String getNetCapability() { - return netCapability; - } + public void setBasicImageId(String basicImageId) { + this.basicImageId = basicImageId; + } + + public String getBasicImageName() { + return basicImageName; + } - public void setNetCapability(String netCapability) { - this.netCapability = netCapability; - } + public void setBasicImageName(String basicImageName) { + this.basicImageName = basicImageName; + } + + public String getTag() { + return tag; + } - public String getNetworkState() { - return networkState; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } - public void setNetworkState(String networkState) { - this.networkState = networkState; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getName() { + return name; + } - public String getTimemachineFeature() { - return timemachineFeature; - } + public void setName(String name) { + this.name = name; + } + + public String getState() { + return state; + } - public void setTimemachineFeature(String timemachineFeature) { - this.timemachineFeature = timemachineFeature; - } + public void setState(String state) { + this.state = state; + } + + public Integer getCreateTime() { + return createTime; + } - public Boolean getHotplugFeature() { - return hotplugFeature; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getChargeType() { + return chargeType; + } - public void setHotplugFeature(Boolean hotplugFeature) { - this.hotplugFeature = hotplugFeature; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getExpireTime() { + return expireTime; + } - public String getSubnetType() { - return subnetType; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getCPU() { + return cpu; + } - public void setSubnetType(String subnetType) { - this.subnetType = subnetType; - } + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } - public String getOsName() { - return osName; - } + public void setMemory(Integer memory) { + this.memory = memory; + } + + public String getAutoRenew() { + return autoRenew; + } - public void setOsName(String osName) { - this.osName = osName; - } + public void setAutoRenew(String autoRenew) { + this.autoRenew = autoRenew; + } + + public List getDiskSet() { + return diskSet; + } - public String getOsType() { - return osType; - } + public void setDiskSet(List diskSet) { + this.diskSet = diskSet; + } + + public List getIPSet() { + return ipSet; + } - public void setOsType(String osType) { - this.osType = osType; - } + public void setIPSet(List ipSet) { + this.ipSet = ipSet; + } + + public String getNetCapability() { + return netCapability; + } - public String getHostType() { - return hostType; - } + public void setNetCapability(String netCapability) { + this.netCapability = netCapability; + } + + public String getNetworkState() { + return networkState; + } - public void setHostType(String hostType) { - this.hostType = hostType; - } + public void setNetworkState(String networkState) { + this.networkState = networkState; + } + + public String getTimemachineFeature() { + return timemachineFeature; + } - public String getLifeCycle() { - return lifeCycle; - } + public void setTimemachineFeature(String timemachineFeature) { + this.timemachineFeature = timemachineFeature; + } + + public Boolean getHotplugFeature() { + return hotplugFeature; + } - public void setLifeCycle(String lifeCycle) { - this.lifeCycle = lifeCycle; - } + public void setHotplugFeature(Boolean hotplugFeature) { + this.hotplugFeature = hotplugFeature; + } + + public String getSubnetType() { + return subnetType; + } - public Integer getGPU() { - return gpu; - } + public void setSubnetType(String subnetType) { + this.subnetType = subnetType; + } + + public String getOsName() { + return osName; + } - public void setGPU(Integer gpu) { - this.gpu = gpu; - } + public void setOsName(String osName) { + this.osName = osName; + } + + public String getOsType() { + return osType; + } - public String getBootDiskState() { - return bootDiskState; - } + public void setOsType(String osType) { + this.osType = osType; + } + + public String getHostType() { + return hostType; + } - public void setBootDiskState(String bootDiskState) { - this.bootDiskState = bootDiskState; - } + public void setHostType(String hostType) { + this.hostType = hostType; + } + + public String getLifeCycle() { + return lifeCycle; + } - public Integer getTotalDiskSpace() { - return totalDiskSpace; - } + public void setLifeCycle(String lifeCycle) { + this.lifeCycle = lifeCycle; + } + + public Integer getGPU() { + return gpu; + } - public void setTotalDiskSpace(Integer totalDiskSpace) { - this.totalDiskSpace = totalDiskSpace; - } + public void setGPU(Integer gpu) { + this.gpu = gpu; + } + + public String getBootDiskState() { + return bootDiskState; + } - public String getIsolationGroup() { - return isolationGroup; - } + public void setBootDiskState(String bootDiskState) { + this.bootDiskState = bootDiskState; + } + + public Integer getTotalDiskSpace() { + return totalDiskSpace; + } - public void setIsolationGroup(String isolationGroup) { - this.isolationGroup = isolationGroup; - } + public void setTotalDiskSpace(Integer totalDiskSpace) { + this.totalDiskSpace = totalDiskSpace; + } + + public String getIsolationGroup() { + return isolationGroup; + } - public Boolean getCloudInitFeature() { - return cloudInitFeature; - } + public void setIsolationGroup(String isolationGroup) { + this.isolationGroup = isolationGroup; + } + + public Boolean getCloudInitFeature() { + return cloudInitFeature; + } - public void setCloudInitFeature(Boolean cloudInitFeature) { - this.cloudInitFeature = cloudInitFeature; - } + public void setCloudInitFeature(Boolean cloudInitFeature) { + this.cloudInitFeature = cloudInitFeature; + } + + public String getRdmaClusterId() { + return rdmaClusterId; + } - public String getRdmaClusterId() { - return rdmaClusterId; - } + public void setRdmaClusterId(String rdmaClusterId) { + this.rdmaClusterId = rdmaClusterId; + } + + public String getRestrictMode() { + return restrictMode; + } - public void setRdmaClusterId(String rdmaClusterId) { - this.rdmaClusterId = rdmaClusterId; - } + public void setRestrictMode(String restrictMode) { + this.restrictMode = restrictMode; + } + + public Boolean getHpcFeature() { + return hpcFeature; + } - public String getRestrictMode() { - return restrictMode; - } + public void setHpcFeature(Boolean hpcFeature) { + this.hpcFeature = hpcFeature; + } + + public UHostKeyPair getKeyPair() { + return keyPair; + } - public void setRestrictMode(String restrictMode) { - this.restrictMode = restrictMode; - } + public void setKeyPair(UHostKeyPair keyPair) { + this.keyPair = keyPair; + } + + } + public static class UHostKeyPair extends Response { + + + /** + * 密钥对ID + */ + @SerializedName("KeyPairId") + private String keyPairId; + + + + /** + * 主机密钥对状态,Normal 正常,Deleted 删除 + */ + @SerializedName("KeyPairState") + private String keyPairState; + + + public String getKeyPairId() { + return keyPairId; + } - public Boolean getHpcFeature() { - return hpcFeature; - } + public void setKeyPairId(String keyPairId) { + this.keyPairId = keyPairId; + } + + public String getKeyPairState() { + return keyPairState; + } - public void setHpcFeature(Boolean hpcFeature) { - this.hpcFeature = hpcFeature; + public void setKeyPairState(String keyPairState) { + this.keyPairState = keyPairState; + } + } +} - public UHostKeyPair getKeyPair() { - return keyPair; - } - public void setKeyPair(UHostKeyPair keyPair) { - this.keyPair = keyPair; - } - } - public static class UHostKeyPair extends Response { - /** 密钥对ID */ - @SerializedName("KeyPairId") - private String keyPairId; - /** 主机密钥对状态,Normal 正常,Deleted 删除 */ - @SerializedName("KeyPairState") - private String keyPairState; - public String getKeyPairId() { - return keyPairId; - } - public void setKeyPairId(String keyPairId) { - this.keyPairId = keyPairId; - } - public String getKeyPairState() { - return keyPairState; - } - public void setKeyPairState(String keyPairState) { - this.keyPairState = keyPairState; - } - } -} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostKeyPairsRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostKeyPairsRequest.java index aa2666cf..87072db0 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostKeyPairsRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostKeyPairsRequest.java @@ -1,55 +1,87 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class DescribeUHostKeyPairsRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 密钥对名称。 */ + + + + /** + * 密钥对名称。 + */ @UCloudParam("KeyPairName") private String keyPairName; - - /** 密钥对的指纹。 */ + + + + /** + * 密钥对的指纹。 + */ @UCloudParam("KeyPairFingerPrint") private String keyPairFingerPrint; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20,最大100 */ + + + + /** + * 返回数据长度,默认为20,最大100 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -57,7 +89,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +97,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -73,7 +105,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getKeyPairName() { return keyPairName; } @@ -81,7 +113,7 @@ public String getKeyPairName() { public void setKeyPairName(String keyPairName) { this.keyPairName = keyPairName; } - + public String getKeyPairFingerPrint() { return keyPairFingerPrint; } @@ -89,7 +121,7 @@ public String getKeyPairFingerPrint() { public void setKeyPairFingerPrint(String keyPairFingerPrint) { this.keyPairFingerPrint = keyPairFingerPrint; } - + public Integer getOffset() { return offset; } @@ -97,7 +129,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -105,4 +137,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostKeyPairsResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostKeyPairsResponse.java index cf546f67..922541c9 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostKeyPairsResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostKeyPairsResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUHostKeyPairsResponse extends Response { - /** 密钥对信息集合 */ + + + /** + * 密钥对信息集合 + */ @SerializedName("KeyPairs") private List keyPairs; - - /** 密钥对总数 */ + + + + /** + * 密钥对总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getKeyPairs() { return keyPairs; } @@ -36,7 +49,7 @@ public List getKeyPairs() { public void setKeyPairs(List keyPairs) { this.keyPairs = keyPairs; } - + public Integer getTotalCount() { return totalCount; } @@ -44,67 +57,97 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class KeyPairDesc extends Response { + + + /** + * 项目ID。 + */ + @SerializedName("ProjectId") + private String projectId; + + + + /** + * 密钥对ID。 + */ + @SerializedName("KeyPairId") + private String keyPairId; + + + + /** + * 密钥对名称。 长度为1~63个英文或中文字符。 + */ + @SerializedName("KeyPairName") + private String keyPairName; + + + + /** + * 密钥对指纹。md5(ProjectId|KeyPairId|PublicKey) + */ + @SerializedName("KeyPairFingerPrint") + private String keyPairFingerPrint; + + + + /** + * 密钥对的创建时间,格式为Unix Timestamp。 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + public String getProjectId() { + return projectId; + } - public static class KeyPairDesc extends Response { - - /** 项目ID。 */ - @SerializedName("ProjectId") - private String projectId; - - /** 密钥对ID。 */ - @SerializedName("KeyPairId") - private String keyPairId; + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getKeyPairId() { + return keyPairId; + } - /** 密钥对名称。 长度为1~63个英文或中文字符。 */ - @SerializedName("KeyPairName") - private String keyPairName; + public void setKeyPairId(String keyPairId) { + this.keyPairId = keyPairId; + } + + public String getKeyPairName() { + return keyPairName; + } - /** 密钥对指纹。md5(ProjectId|KeyPairId|PublicKey) */ - @SerializedName("KeyPairFingerPrint") - private String keyPairFingerPrint; + public void setKeyPairName(String keyPairName) { + this.keyPairName = keyPairName; + } + + public String getKeyPairFingerPrint() { + return keyPairFingerPrint; + } - /** 密钥对的创建时间,格式为Unix Timestamp。 */ - @SerializedName("CreateTime") - private Integer createTime; + public void setKeyPairFingerPrint(String keyPairFingerPrint) { + this.keyPairFingerPrint = keyPairFingerPrint; + } + + public Integer getCreateTime() { + return createTime; + } - public String getProjectId() { - return projectId; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + } +} - public void setProjectId(String projectId) { - this.projectId = projectId; - } - public String getKeyPairId() { - return keyPairId; - } - public void setKeyPairId(String keyPairId) { - this.keyPairId = keyPairId; - } - public String getKeyPairName() { - return keyPairName; - } - public void setKeyPairName(String keyPairName) { - this.keyPairName = keyPairName; - } - public String getKeyPairFingerPrint() { - return keyPairFingerPrint; - } - public void setKeyPairFingerPrint(String keyPairFingerPrint) { - this.keyPairFingerPrint = keyPairFingerPrint; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - } -} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostTagsRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostTagsRequest.java index 922102e7..90fd8292 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostTagsRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostTagsRequest.java @@ -1,41 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUHostTagsRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + public String getRegion() { return region; } @@ -43,7 +58,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -51,7 +66,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -59,4 +74,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostTagsResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostTagsResponse.java index 15437718..512fbe62 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostTagsResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeUHostTagsResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUHostTagsResponse extends Response { - /** 已有主机的业务组总数 */ + + + /** + * 已有主机的业务组总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 业务组集合见 UHostTagSet */ + + + + /** + * 业务组集合见 UHostTagSet + */ @SerializedName("TagSet") private List tagSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getTagSet() { return tagSet; } @@ -44,43 +57,65 @@ public List getTagSet() { public void setTagSet(List tagSet) { this.tagSet = tagSet; } + + public static class UHostTagSet extends Response { + + + /** + * 业务组名称 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 该业务组中包含的主机个数 + */ + @SerializedName("TotalCount") + private Integer totalCount; + + + + /** + * 可用区 + */ + @SerializedName("Zone") + private String zone; + + + public String getTag() { + return tag; + } - public static class UHostTagSet extends Response { + public void setTag(String tag) { + this.tag = tag; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + } +} - /** 业务组名称 */ - @SerializedName("Tag") - private String tag; - /** 该业务组中包含的主机个数 */ - @SerializedName("TotalCount") - private Integer totalCount; - /** 可用区 */ - @SerializedName("Zone") - private String zone; - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - public Integer getTotalCount() { - return totalCount; - } - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - public String getZone() { - return zone; - } - public void setZone(String zone) { - this.zone = zone; - } - } -} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetAttachedDiskUpgradePriceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetAttachedDiskUpgradePriceRequest.java index cfb34f0c..950e193b 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetAttachedDiskUpgradePriceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetAttachedDiskUpgradePriceRequest.java @@ -1,63 +1,91 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetAttachedDiskUpgradePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 磁盘大小,单位GB,步长为10。取值范围需大于当前磁盘大小,最大值请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ + + + + /** + * 磁盘大小,单位GB,步长为10。取值范围需大于当前磁盘大小,最大值请参考[[api:uhost-api:disk_type|磁盘类型]]。 + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; - - /** 磁盘ID。参见 [DescribeUHostInstance](describe_uhost_instance.html)返回值中的DiskSet。 */ + + + + /** + * 磁盘ID。参见 [DescribeUHostInstance](describe_uhost_instance.html)返回值中的DiskSet。 + */ @NotEmpty @UCloudParam("DiskId") private String diskId; - - /** UHost实例ID。 参见 [DescribeUHostInstance](describe_uhost_instance.html)。 */ + + + + /** + * UHost实例ID。 参见 [DescribeUHostInstance](describe_uhost_instance.html)。 + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - + + + /** - * 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\> SNAPSHOT(SNAPSHOT模式目前仅在上海C支持),快照 \\ - * 当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]]。默认值为当前的备份模式。 + * 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\> SNAPSHOT(SNAPSHOT模式目前仅在上海C支持),快照 \\ 当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]]。默认值为当前的备份模式。 */ @UCloudParam("BackupMode") private String backupMode; - + + public String getRegion() { return region; } @@ -65,7 +93,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -73,7 +101,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -81,7 +109,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getDiskSpace() { return diskSpace; } @@ -89,7 +117,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public String getDiskId() { return diskId; } @@ -97,7 +125,7 @@ public String getDiskId() { public void setDiskId(String diskId) { this.diskId = diskId; } - + public String getUHostId() { return uHostId; } @@ -105,7 +133,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getBackupMode() { return backupMode; } @@ -113,4 +141,14 @@ public String getBackupMode() { public void setBackupMode(String backupMode) { this.backupMode = backupMode; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetAttachedDiskUpgradePriceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetAttachedDiskUpgradePriceResponse.java index 2ff687ac..1b2158dd 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetAttachedDiskUpgradePriceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetAttachedDiskUpgradePriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetAttachedDiskUpgradePriceResponse extends Response { - /** 升级差价。精度为小数点后2位。 */ + + + /** + * 升级差价。精度为小数点后2位。 + */ @SerializedName("Price") private Double price; - + + public Double getPrice() { return price; } @@ -31,4 +41,14 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstancePriceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstancePriceRequest.java index 59739f79..337ca057 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstancePriceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstancePriceRequest.java @@ -1,118 +1,197 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUHostInstancePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** CPU核数。可选参数:1-64。可选范围参照控制台。默认值: 4 */ + + + + /** + * CPU核数。可选参数:1-64。可选范围参照控制台。默认值: 4 + */ @NotEmpty @UCloudParam("CPU") private Integer cpu; - - /** 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参照好控制台)。默认值:8192 */ + + + + /** + * 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参照好控制台)。默认值:8192 + */ @NotEmpty @UCloudParam("Memory") private Integer memory; - - /** 购买台数,范围[1,5] */ + + + + /** + * 购买台数,范围[1,5] + */ @NotEmpty @UCloudParam("Count") private Integer count; - - /** */ + + + + /** + * + */ @UCloudParam("Disks") private List disks; - - /** 镜像Id,可通过 [DescribeImage](describe_image.html) 获取镜像ID, 如果镜像ID不传,系统盘大小必传 */ + + + + /** + * 镜像Id,可通过 [DescribeImage](describe_image.html) 获取镜像ID, 如果镜像ID不传,系统盘大小必传 + */ @UCloudParam("ImageId") private String imageId; - - /** GPU卡核心数。仅GPU机型支持此字段。 */ + + + + /** + * GPU卡核心数。仅GPU机型支持此字段。 + */ @UCloudParam("GPU") private Integer gpu; - + + + /** - * 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时付费 // >Preemptive 抢占式实例 \\ - * 如果不传某个枚举值,默认返回年付、月付、时付的价格组合集。 + * 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时付费 // >Preemptive 抢占式实例 \\ 如果不传某个枚举值,默认返回年付、月付、时付的价格组合集。 */ @UCloudParam("ChargeType") private String chargeType; - - /** 网络增强。枚举值:Normal,不开启; Super,开启网络增强1.0。 默认值为Normal。 */ + + + + + + + + /** + * 网络增强。枚举值:Normal,不开启; Super,开启网络增强1.0。 默认值为Normal。 + */ @UCloudParam("NetCapability") private String netCapability; - - /** 【待废弃】云主机机型(V1版本概念)。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 */ + + + + + + /** + * 【待废弃】云主机机型(V1版本概念)。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + */ @UCloudParam("UHostType") private String uHostType; - + + + + + /** - * 云主机机型(V2版本概念)。枚举值["N", "C", "G", "O", "OS", "OPRO", "OMAX", "O.BM", - * "O.EPC"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + * 云主机机型(V2版本概念)。枚举值["N", "C", "G", "O", "OS", "OPRO", "OMAX", "O.BM", "O.EPC"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 */ @UCloudParam("MachineType") private String machineType; - + + + /** - * GPU类型,枚举值["K80", "P40", "V100", "T4","T4S","2080Ti","2080Ti-4C","1080Ti", - * "T4/4","MI100","V100S"] + * GPU类型,枚举值["K80", "P40", "V100", "T4","T4S","2080Ti","2080Ti-4C","1080Ti", "T4/4","MI100","V100S"] */ @UCloudParam("GpuType") private String gpuType; - - /** 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。 */ + + + + /** + * 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 取值"Intel" "Amd",默认值“Intel” */ + + + + /** + * 取值"Intel" "Amd",默认值“Intel” + */ @UCloudParam("CpuPlatform") private String cpuPlatform; - - /** */ + + + + /** + * + */ @UCloudParam("Volumes") private List volumes; - - /** 专区云主机。如果要在专区宿主机上创建云主机,该参数可以填写为true */ + + + + + + /** + * 专区云主机。如果要在专区宿主机上创建云主机,该参数可以填写为true + */ @UCloudParam("UDSetUHostInstance") private Boolean udSetUHostInstance; - - /** 返回价格详细信息 */ + + + + /** + * 返回价格详细信息 + */ @UCloudParam("ShowPriceDetails") private Boolean showPriceDetails; - + + public String getRegion() { return region; } @@ -120,7 +199,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -128,7 +207,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -136,7 +215,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getCPU() { return cpu; } @@ -144,7 +223,7 @@ public Integer getCPU() { public void setCPU(Integer cpu) { this.cpu = cpu; } - + public Integer getMemory() { return memory; } @@ -152,7 +231,7 @@ public Integer getMemory() { public void setMemory(Integer memory) { this.memory = memory; } - + public Integer getCount() { return count; } @@ -160,7 +239,7 @@ public Integer getCount() { public void setCount(Integer count) { this.count = count; } - + public List getDisks() { return disks; } @@ -168,7 +247,7 @@ public List getDisks() { public void setDisks(List disks) { this.disks = disks; } - + public String getImageId() { return imageId; } @@ -176,7 +255,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public Integer getGPU() { return gpu; } @@ -184,7 +263,7 @@ public Integer getGPU() { public void setGPU(Integer gpu) { this.gpu = gpu; } - + public String getChargeType() { return chargeType; } @@ -192,7 +271,9 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + + + public String getNetCapability() { return netCapability; } @@ -200,7 +281,8 @@ public String getNetCapability() { public void setNetCapability(String netCapability) { this.netCapability = netCapability; } - + + public String getUHostType() { return uHostType; } @@ -208,7 +290,8 @@ public String getUHostType() { public void setUHostType(String uHostType) { this.uHostType = uHostType; } - + + public String getMachineType() { return machineType; } @@ -216,7 +299,7 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } - + public String getGpuType() { return gpuType; } @@ -224,7 +307,7 @@ public String getGpuType() { public void setGpuType(String gpuType) { this.gpuType = gpuType; } - + public Integer getQuantity() { return quantity; } @@ -232,7 +315,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getCpuPlatform() { return cpuPlatform; } @@ -240,7 +323,7 @@ public String getCpuPlatform() { public void setCpuPlatform(String cpuPlatform) { this.cpuPlatform = cpuPlatform; } - + public List getVolumes() { return volumes; } @@ -248,7 +331,8 @@ public List getVolumes() { public void setVolumes(List volumes) { this.volumes = volumes; } - + + public Boolean getUDSetUHostInstance() { return udSetUHostInstance; } @@ -256,7 +340,7 @@ public Boolean getUDSetUHostInstance() { public void setUDSetUHostInstance(Boolean udSetUHostInstance) { this.udSetUHostInstance = udSetUHostInstance; } - + public Boolean getShowPriceDetails() { return showPriceDetails; } @@ -264,63 +348,96 @@ public Boolean getShowPriceDetails() { public void setShowPriceDetails(Boolean showPriceDetails) { this.showPriceDetails = showPriceDetails; } + + public static class Disks extends Request { + + + /** + * 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + */ + @NotEmpty + @UCloudParam("IsBoot") + private String isBoot; + + + + /** + * 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + */ + @NotEmpty + @UCloudParam("Size") + private Integer size; + + + + /** + * 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + */ + @NotEmpty + @UCloudParam("Type") + private String type; + + + + /** + * 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT,快照\\ 当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]] + */ + @UCloudParam("BackupType") + private String backupType; + + + public String getIsBoot() { + return isBoot; + } - public static class Disks extends Request { - - /** 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 */ - @NotEmpty - @UCloudParam("IsBoot") - private String isBoot; - - /** 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ - @NotEmpty - @UCloudParam("Size") - private Integer size; + public void setIsBoot(String isBoot) { + this.isBoot = isBoot; + } + + public Integer getSize() { + return size; + } - /** 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ - @NotEmpty - @UCloudParam("Type") - private String type; + public void setSize(Integer size) { + this.size = size; + } + + public String getType() { + return type; + } - /** - * 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT,快照\\ 当前磁盘支持的备份模式参考 - * [[api:uhost-api:disk_type|磁盘类型]] - */ - @UCloudParam("BackupType") - private String backupType; + public void setType(String type) { + this.type = type; + } + + public String getBackupType() { + return backupType; + } - public String getIsBoot() { - return isBoot; + public void setBackupType(String backupType) { + this.backupType = backupType; + } + } - - public void setIsBoot(String isBoot) { - this.isBoot = isBoot; + public static class Volumes extends Request { + + + + + + + + + + } +} + + - public Integer getSize() { - return size; - } - public void setSize(Integer size) { - this.size = size; - } - public String getType() { - return type; - } - public void setType(String type) { - this.type = type; - } - public String getBackupType() { - return backupType; - } - public void setBackupType(String backupType) { - this.backupType = backupType; - } - } - public static class Volumes extends Request {} -} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstancePriceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstancePriceResponse.java index cbcb4e8e..0394c96e 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstancePriceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstancePriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUHostInstancePriceResponse extends Response { - /** 价格列表 UHostPriceSet */ + + + /** + * 价格列表 UHostPriceSet + */ @SerializedName("PriceSet") private List priceSet; - + + public List getPriceSet() { return priceSet; } @@ -32,142 +41,196 @@ public List getPriceSet() { public void setPriceSet(List priceSet) { this.priceSet = priceSet; } - - public static class PriceDetail extends Response { - - /** 主机价格 */ - @SerializedName("UHost") - private Double uHost; - - /** 云盘价格 */ - @SerializedName("UDisk") - private Double uDisk; - - /** 快照价格 */ - @SerializedName("Snapshot") - private Double snapshot; - - /** 数据卷价格 */ - @SerializedName("Volume") - private Double volume; - - public Double getUHost() { - return uHost; - } - - public void setUHost(Double uHost) { - this.uHost = uHost; - } - - public Double getUDisk() { - return uDisk; - } - - public void setUDisk(Double uDisk) { - this.uDisk = uDisk; - } - - public Double getSnapshot() { - return snapshot; - } - - public void setSnapshot(Double snapshot) { - this.snapshot = snapshot; - } - - public Double getVolume() { - return volume; - } - - public void setVolume(Double volume) { - this.volume = volume; - } + + public static class PriceDetail extends Response { + + + /** + * 主机价格 + */ + @SerializedName("UHost") + private Double uHost; + + + + /** + * 云盘价格 + */ + @SerializedName("UDisk") + private Double uDisk; + + + + /** + * 快照价格 + */ + @SerializedName("Snapshot") + private Double snapshot; + + + + /** + * 数据卷价格 + */ + @SerializedName("Volume") + private Double volume; + + + public Double getUHost() { + return uHost; } - public static class UHostPriceSet extends Response { - - /** 计费类型。Year,Month,Dynamic */ - @SerializedName("ChargeType") - private String chargeType; - - /** 价格,单位: 元,保留小数点后两位有效数字 */ - @SerializedName("Price") - private Double price; + public void setUHost(Double uHost) { + this.uHost = uHost; + } + + public Double getUDisk() { + return uDisk; + } - /** 限时优惠的折前原价(即列表价乘以商务折扣后的单价)。 */ - @SerializedName("OriginalPrice") - private Double originalPrice; + public void setUDisk(Double uDisk) { + this.uDisk = uDisk; + } + + public Double getSnapshot() { + return snapshot; + } - /** 产品列表价。 */ - @SerializedName("ListPrice") - private Double listPrice; + public void setSnapshot(Double snapshot) { + this.snapshot = snapshot; + } + + public Double getVolume() { + return volume; + } - /** 价格详细信息(只有询价接口返回)。 */ - @SerializedName("PriceDetail") - private PriceDetail priceDetail; + public void setVolume(Double volume) { + this.volume = volume; + } + + } + public static class UHostPriceSet extends Response { + + + /** + * 计费类型。Year,Month,Dynamic + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 价格,单位: 元,保留小数点后两位有效数字 + */ + @SerializedName("Price") + private Double price; + + + + /** + * 限时优惠的折前原价(即列表价乘以商务折扣后的单价)。 + */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + + + /** + * 产品列表价。 + */ + @SerializedName("ListPrice") + private Double listPrice; + + + + /** + * 价格详细信息(只有询价接口返回)。 + */ + @SerializedName("PriceDetail") + private PriceDetail priceDetail; + + + + /** + * 原价详细信息(只有询价接口返回)。 + */ + @SerializedName("OriginalPriceDetail") + private PriceDetail originalPriceDetail; + + + + /** + * 列表价详细信息(只有询价接口返回)。 + */ + @SerializedName("ListPriceDetail") + private PriceDetail listPriceDetail; + + + public String getChargeType() { + return chargeType; + } - /** 原价详细信息(只有询价接口返回)。 */ - @SerializedName("OriginalPriceDetail") - private PriceDetail originalPriceDetail; + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } - /** 列表价详细信息(只有询价接口返回)。 */ - @SerializedName("ListPriceDetail") - private PriceDetail listPriceDetail; + public void setPrice(Double price) { + this.price = price; + } + + public Double getOriginalPrice() { + return originalPrice; + } - public String getChargeType() { - return chargeType; - } + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + + public Double getListPrice() { + return listPrice; + } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } + public void setListPrice(Double listPrice) { + this.listPrice = listPrice; + } + + public PriceDetail getPriceDetail() { + return priceDetail; + } - public Double getPrice() { - return price; - } + public void setPriceDetail(PriceDetail priceDetail) { + this.priceDetail = priceDetail; + } + + public PriceDetail getOriginalPriceDetail() { + return originalPriceDetail; + } - public void setPrice(Double price) { - this.price = price; - } + public void setOriginalPriceDetail(PriceDetail originalPriceDetail) { + this.originalPriceDetail = originalPriceDetail; + } + + public PriceDetail getListPriceDetail() { + return listPriceDetail; + } - public Double getOriginalPrice() { - return originalPrice; + public void setListPriceDetail(PriceDetail listPriceDetail) { + this.listPriceDetail = listPriceDetail; + } + } +} - public void setOriginalPrice(Double originalPrice) { - this.originalPrice = originalPrice; - } - public Double getListPrice() { - return listPrice; - } - public void setListPrice(Double listPrice) { - this.listPrice = listPrice; - } - public PriceDetail getPriceDetail() { - return priceDetail; - } - public void setPriceDetail(PriceDetail priceDetail) { - this.priceDetail = priceDetail; - } - public PriceDetail getOriginalPriceDetail() { - return originalPriceDetail; - } - public void setOriginalPriceDetail(PriceDetail originalPriceDetail) { - this.originalPriceDetail = originalPriceDetail; - } - public PriceDetail getListPriceDetail() { - return listPriceDetail; - } - public void setListPriceDetail(PriceDetail listPriceDetail) { - this.listPriceDetail = listPriceDetail; - } - } -} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstanceVncInfoRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstanceVncInfoRequest.java index 4e1d6304..2c9caa89 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstanceVncInfoRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstanceVncInfoRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUHostInstanceVncInfoRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID 参见 [DescribeUHostInstance](./describe_uhost_instance.html) */ + + + + /** + * UHost实例ID 参见 [DescribeUHostInstance](./describe_uhost_instance.html) + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - + + public String getRegion() { return region; } @@ -48,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -56,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -64,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -72,4 +91,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstanceVncInfoResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstanceVncInfoResponse.java index cb2b4302..2e421ae4 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstanceVncInfoResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstanceVncInfoResponse.java @@ -1,41 +1,63 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUHostInstanceVncInfoResponse extends Response { - /** UHost实例ID */ + + + /** + * UHost实例ID + */ @SerializedName("UHostId") private String uHostId; - - /** Vnc登录IP */ + + + + /** + * Vnc登录IP + */ @SerializedName("VncIP") private String vncIP; - - /** Vnc登录端口 */ + + + + /** + * Vnc登录端口 + */ @SerializedName("VncPort") private Integer vncPort; - - /** Vnc 登录密码 */ + + + + /** + * Vnc 登录密码 + */ @SerializedName("VncPassword") private String vncPassword; - + + public String getUHostId() { return uHostId; } @@ -43,7 +65,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getVncIP() { return vncIP; } @@ -51,7 +73,7 @@ public String getVncIP() { public void setVncIP(String vncIP) { this.vncIP = vncIP; } - + public Integer getVncPort() { return vncPort; } @@ -59,7 +81,7 @@ public Integer getVncPort() { public void setVncPort(Integer vncPort) { this.vncPort = vncPort; } - + public String getVncPassword() { return vncPassword; } @@ -67,4 +89,14 @@ public String getVncPassword() { public void setVncPassword(String vncPassword) { this.vncPassword = vncPassword; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostRenewPriceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostRenewPriceRequest.java index f3dc3498..e7343306 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostRenewPriceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostRenewPriceRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUHostRenewPriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID */ + + + + /** + * UHost实例ID + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** 计费类型。Year,Month,Dynamic,默认返回全部计费方式对应的价格 */ + + + + /** + * 计费类型。Year,Month,Dynamic,默认返回全部计费方式对应的价格 + */ @NotEmpty @UCloudParam("ChargeType") private String chargeType; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -65,7 +84,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getChargeType() { return chargeType; } @@ -73,4 +92,14 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostRenewPriceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostRenewPriceResponse.java index 0817af66..1bc42f31 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostRenewPriceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostRenewPriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUHostRenewPriceResponse extends Response { - /** 价格列表 */ + + + /** + * 价格列表 + */ @SerializedName("PriceSet") private List priceSet; - + + public List getPriceSet() { return priceSet; } @@ -32,43 +41,67 @@ public List getPriceSet() { public void setPriceSet(List priceSet) { this.priceSet = priceSet; } + + public static class BasePriceSet extends Response { + + + /** + * 计费类型 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 价格,单位: 元,保留小数点后两位有效数字 + + */ + @SerializedName("Price") + private Double price; + + + + /** + * 限时优惠的折前原价(即列表价乘以商务折扣后的单价)。 + + */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + + public String getChargeType() { + return chargeType; + } - public static class BasePriceSet extends Response { + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } + + public Double getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + + } +} - /** 计费类型 */ - @SerializedName("ChargeType") - private String chargeType; - /** 价格,单位: 元,保留小数点后两位有效数字 */ - @SerializedName("Price") - private Double price; - /** 限时优惠的折前原价(即列表价乘以商务折扣后的单价)。 */ - @SerializedName("OriginalPrice") - private Double originalPrice; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Double getPrice() { - return price; - } - public void setPrice(Double price) { - this.price = price; - } - public Double getOriginalPrice() { - return originalPrice; - } - public void setOriginalPrice(Double originalPrice) { - this.originalPrice = originalPrice; - } - } -} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostUpgradePriceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostUpgradePriceRequest.java index dcb0ff7b..6997f1d1 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostUpgradePriceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostUpgradePriceRequest.java @@ -1,58 +1,97 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUHostUpgradePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID。 参见 [DescribeUHostInstance](describe_uhost_instance.html)。 */ + + + + /** + * UHost实例ID。 参见 [DescribeUHostInstance](describe_uhost_instance.html)。 + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** 虚拟CPU核数。可选参数:1-64(可选范围参考控制台)。默认值为当前实例的CPU核数。 */ + + + + /** + * 虚拟CPU核数。可选参数:1-64(可选范围参考控制台)。默认值为当前实例的CPU核数。 + */ @UCloudParam("CPU") private Integer cpu; - - /** 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值为当前实例的内存大小。 */ + + + + /** + * 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值为当前实例的内存大小。 + */ @UCloudParam("Memory") private Integer memory; - - /** 网卡升降级(1,表示升级,2表示降级,0表示不变) */ + + + + + + + + + + /** + * 网卡升降级(1,表示升级,2表示降级,0表示不变) + */ @UCloudParam("NetCapValue") private Integer netCapValue; - + + + + public String getRegion() { return region; } @@ -60,7 +99,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -68,7 +107,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -76,7 +115,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -84,7 +123,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public Integer getCPU() { return cpu; } @@ -92,7 +131,7 @@ public Integer getCPU() { public void setCPU(Integer cpu) { this.cpu = cpu; } - + public Integer getMemory() { return memory; } @@ -100,7 +139,10 @@ public Integer getMemory() { public void setMemory(Integer memory) { this.memory = memory; } - + + + + public Integer getNetCapValue() { return netCapValue; } @@ -108,4 +150,15 @@ public Integer getNetCapValue() { public void setNetCapValue(Integer netCapValue) { this.netCapValue = netCapValue; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostUpgradePriceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostUpgradePriceResponse.java index 534e427c..780ba837 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostUpgradePriceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostUpgradePriceResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUHostUpgradePriceResponse extends Response { - /** 规格调整差价。精确到小数点后2位。 */ + + + /** + * 规格调整差价。精确到小数点后2位。 + */ @SerializedName("Price") private Double price; - - /** 限时优惠的折前原价 */ + + + + /** + * 限时优惠的折前原价 + */ @SerializedName("OriginalPrice") private Double originalPrice; - + + public Double getPrice() { return price; } @@ -35,7 +49,7 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } - + public Double getOriginalPrice() { return originalPrice; } @@ -43,4 +57,14 @@ public Double getOriginalPrice() { public void setOriginalPrice(Double originalPrice) { this.originalPrice = originalPrice; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportCustomImageRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportCustomImageRequest.java index b512b0fa..e2cb1a2d 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportCustomImageRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportCustomImageRequest.java @@ -1,71 +1,110 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ImportCustomImageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 镜像名称 */ + + + + /** + * 镜像名称 + */ @NotEmpty @UCloudParam("ImageName") private String imageName; - - /** UFile私有空间地址 */ + + + + /** + * UFile私有空间地址 + */ @NotEmpty @UCloudParam("UFileUrl") private String uFileUrl; - - /** 操作系统平台,比如CentOS、Ubuntu、Windows、RedHat等,请参考控制台的镜像版本;若导入控制台上没有的操作系统,参数为Other */ + + + + /** + * 操作系统平台,比如CentOS、Ubuntu、Windows、RedHat等,请参考控制台的镜像版本;若导入控制台上没有的操作系统,参数为Other + */ @NotEmpty @UCloudParam("OsType") private String osType; - - /** 操作系统详细版本,请参考控制台的镜像版本;OsType为Other时,输入参数为Other */ + + + + /** + * 操作系统详细版本,请参考控制台的镜像版本;OsType为Other时,输入参数为Other + */ @NotEmpty @UCloudParam("OsName") private String osName; - - /** 镜像格式,可选RAW、VHD、VMDK、qcow2 */ + + + + /** + * 镜像格式,可选RAW、VHD、VMDK、qcow2 + */ @NotEmpty @UCloudParam("Format") private String format; - - /** 是否授权。必须填true */ + + + + /** + * 是否授权。必须填true + */ @NotEmpty @UCloudParam("Auth") private Boolean auth; - - /** 镜像描述 */ + + + + /** + * 镜像描述 + */ @UCloudParam("ImageDescription") private String imageDescription; - + + public String getRegion() { return region; } @@ -73,7 +112,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -81,7 +120,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageName() { return imageName; } @@ -89,7 +128,7 @@ public String getImageName() { public void setImageName(String imageName) { this.imageName = imageName; } - + public String getUFileUrl() { return uFileUrl; } @@ -97,7 +136,7 @@ public String getUFileUrl() { public void setUFileUrl(String uFileUrl) { this.uFileUrl = uFileUrl; } - + public String getOsType() { return osType; } @@ -105,7 +144,7 @@ public String getOsType() { public void setOsType(String osType) { this.osType = osType; } - + public String getOsName() { return osName; } @@ -113,7 +152,7 @@ public String getOsName() { public void setOsName(String osName) { this.osName = osName; } - + public String getFormat() { return format; } @@ -121,7 +160,7 @@ public String getFormat() { public void setFormat(String format) { this.format = format; } - + public Boolean getAuth() { return auth; } @@ -129,7 +168,7 @@ public Boolean getAuth() { public void setAuth(Boolean auth) { this.auth = auth; } - + public String getImageDescription() { return imageDescription; } @@ -137,4 +176,14 @@ public String getImageDescription() { public void setImageDescription(String imageDescription) { this.imageDescription = imageDescription; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportCustomImageResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportCustomImageResponse.java index c358b061..35f3ec7c 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportCustomImageResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportCustomImageResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ImportCustomImageResponse extends Response { - /** 镜像Id */ + + + /** + * 镜像Id + */ @SerializedName("ImageId") private String imageId; - + + public String getImageId() { return imageId; } @@ -31,4 +41,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportUHostKeyPairsRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportUHostKeyPairsRequest.java index 39140f62..b6672f28 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportUHostKeyPairsRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportUHostKeyPairsRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ImportUHostKeyPairsRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 密钥对名称。由字母,数字,符号组成,长度为1-63位。 */ + + + + /** + * 密钥对名称。由字母,数字,符号组成,长度为1-63位。 + */ @NotEmpty @UCloudParam("KeyPairName") private String keyPairName; - - /** 密钥对的公钥内容。 */ + + + + /** + * 密钥对的公钥内容。 + */ @NotEmpty @UCloudParam("PublicKeyBody") private String publicKeyBody; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -60,7 +83,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -68,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getKeyPairName() { return keyPairName; } @@ -76,7 +99,7 @@ public String getKeyPairName() { public void setKeyPairName(String keyPairName) { this.keyPairName = keyPairName; } - + public String getPublicKeyBody() { return publicKeyBody; } @@ -84,4 +107,14 @@ public String getPublicKeyBody() { public void setPublicKeyBody(String publicKeyBody) { this.publicKeyBody = publicKeyBody; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportUHostKeyPairsResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportUHostKeyPairsResponse.java index c23888bf..36b2da7f 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportUHostKeyPairsResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ImportUHostKeyPairsResponse.java @@ -1,37 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ImportUHostKeyPairsResponse extends Response { - /** 密钥对名称 */ + + + /** + * 密钥对名称 + */ @SerializedName("KeyPairName") private String keyPairName; - - /** 密钥对标识 */ + + + + /** + * 密钥对标识 + */ @SerializedName("KeyPairId") private String keyPairId; - - /** 密钥对指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。算法处理的具体信息格式:`ProjectIdKeyPairId|PublicKeyBody`。 */ + + + + /** + * 密钥对指纹。根据RFC4716定义的公钥指纹格式,采用MD5信息摘要算法。算法处理的具体信息格式:`ProjectIdKeyPairId|PublicKeyBody`。 + */ @SerializedName("KeyPairFingerPrint") private String keyPairFingerPrint; - + + public String getKeyPairName() { return keyPairName; } @@ -39,7 +57,7 @@ public String getKeyPairName() { public void setKeyPairName(String keyPairName) { this.keyPairName = keyPairName; } - + public String getKeyPairId() { return keyPairId; } @@ -47,7 +65,7 @@ public String getKeyPairId() { public void setKeyPairId(String keyPairId) { this.keyPairId = keyPairId; } - + public String getKeyPairFingerPrint() { return keyPairFingerPrint; } @@ -55,4 +73,14 @@ public String getKeyPairFingerPrint() { public void setKeyPairFingerPrint(String keyPairFingerPrint) { this.keyPairFingerPrint = keyPairFingerPrint; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/LeaveIsolationGroupRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/LeaveIsolationGroupRequest.java index 8f40c612..5adcc88a 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/LeaveIsolationGroupRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/LeaveIsolationGroupRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class LeaveIsolationGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区信息 */ + + + + /** + * 可用区信息 + */ @UCloudParam("Zone") private String zone; - - /** 项目id */ + + + + /** + * 项目id + */ @UCloudParam("ProjectId") private String projectId; - - /** 硬件隔离组id */ + + + + /** + * 硬件隔离组id + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - - /** 主机id */ + + + + /** + * 主机id + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -74,7 +100,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public String getUHostId() { return uHostId; } @@ -82,4 +108,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/LeaveIsolationGroupResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/LeaveIsolationGroupResponse.java index c51e634a..e118d7d3 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/LeaveIsolationGroupResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/LeaveIsolationGroupResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class LeaveIsolationGroupResponse extends Response { - /** 主机id */ + + + /** + * 主机id + */ @SerializedName("UHostId") private String uHostId; - + + public String getUHostId() { return uHostId; } @@ -31,4 +41,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostIPRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostIPRequest.java index 9a701e9a..09af6c08 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostIPRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostIPRequest.java @@ -1,53 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUHostIPRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写时为默认项目。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + + + + /** + * 项目ID。不填写时为默认项目。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; - - /** 需要修改为的 IP 地址。新的IP地址和旧IP地址必须属于统一子网,且和主机内部的配置文件一致。 */ + + + + /** + * 需要修改为的 IP 地址。新的IP地址和旧IP地址必须属于统一子网,且和主机内部的配置文件一致。 + */ @NotEmpty @UCloudParam("PresentIpAddress") private String presentIpAddress; - - /** 指定云主机 ID。 */ + + + + /** + * 指定云主机 ID。 + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** 所需修改的原 IP 地址 ,当云主机只有一个IP地址时,此参数不必填写。 */ + + + + /** + * 所需修改的原 IP 地址 ,当云主机只有一个IP地址时,此参数不必填写。 + */ @UCloudParam("PreviousIpAddress") private String previousIpAddress; - + + public String getRegion() { return region; } @@ -55,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -63,7 +93,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -71,7 +101,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPresentIpAddress() { return presentIpAddress; } @@ -79,7 +109,7 @@ public String getPresentIpAddress() { public void setPresentIpAddress(String presentIpAddress) { this.presentIpAddress = presentIpAddress; } - + public String getUHostId() { return uHostId; } @@ -87,7 +117,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getPreviousIpAddress() { return previousIpAddress; } @@ -95,4 +125,14 @@ public String getPreviousIpAddress() { public void setPreviousIpAddress(String previousIpAddress) { this.previousIpAddress = previousIpAddress; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostIPResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostIPResponse.java index dd5333eb..7ae2af6b 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostIPResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostIPResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ModifyUHostIPResponse extends Response { - /** 目标云主机 ID */ + + + /** + * 目标云主机 ID + */ @SerializedName("UHostId") private String uHostId; - + + public String getUHostId() { return uHostId; } @@ -31,4 +41,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceNameRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceNameRequest.java index 7cf74fbd..b8fba61d 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceNameRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceNameRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUHostInstanceNameRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) */ + + + + /** + * UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** UHost实例名称 */ + + + + /** + * UHost实例名称 + */ @UCloudParam("Name") private String name; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -60,7 +83,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -68,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -76,7 +99,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getName() { return name; } @@ -84,4 +107,14 @@ public String getName() { public void setName(String name) { this.name = name; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceNameResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceNameResponse.java index 99ad20c3..ccf52f08 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceNameResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceNameResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ModifyUHostInstanceNameResponse extends Response { - /** UHost实例ID */ + + + /** + * UHost实例ID + */ @SerializedName("UHostId") private String uHostId; - + + public String getUHostId() { return uHostId; } @@ -31,4 +41,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceRemarkRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceRemarkRequest.java index 9cf052cb..c6fba1ab 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceRemarkRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceRemarkRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUHostInstanceRemarkRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) */ + + + + /** + * UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -60,7 +83,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -68,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -76,7 +99,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getRemark() { return remark; } @@ -84,4 +107,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceRemarkResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceRemarkResponse.java index 3f865433..c3d1d61e 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceRemarkResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceRemarkResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ModifyUHostInstanceRemarkResponse extends Response { - /** UHost实例ID */ + + + /** + * UHost实例ID + */ @SerializedName("UHostId") private String uHostId; - + + public String getUHostId() { return uHostId; } @@ -31,4 +41,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceTagRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceTagRequest.java index c7c28efd..7af7ea97 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceTagRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceTagRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUHostInstanceTagRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) */ + + + + /** + * UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** 业务组名称 */ + + + + /** + * 业务组名称 + */ @UCloudParam("Tag") private String tag; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -60,7 +83,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -68,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -76,7 +99,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getTag() { return tag; } @@ -84,4 +107,14 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceTagResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceTagResponse.java index 803d927b..d0ac2e52 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceTagResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ModifyUHostInstanceTagResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ModifyUHostInstanceTagResponse extends Response { - /** UHost实例ID */ + + + /** + * UHost实例ID + */ @SerializedName("UHostId") private String uHostId; - + + public String getUHostId() { return uHostId; } @@ -31,4 +41,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/PoweroffUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/PoweroffUHostInstanceRequest.java index 2b99c049..8b169bb1 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/PoweroffUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/PoweroffUHostInstanceRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class PoweroffUHostInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID 参见 [DescribeUHostInstance](./describe_uhost_instance.html) */ + + + + /** + * UHost实例ID 参见 [DescribeUHostInstance](./describe_uhost_instance.html) + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - + + public String getRegion() { return region; } @@ -48,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -56,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -64,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -72,4 +91,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/PoweroffUHostInstanceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/PoweroffUHostInstanceResponse.java index e5f6c168..ecfcff8f 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/PoweroffUHostInstanceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/PoweroffUHostInstanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class PoweroffUHostInstanceResponse extends Response { - /** UHost的实例ID */ + + + /** + * UHost的实例ID + */ @SerializedName("UHostId") private String uHostId; - + + public String getUHostId() { return uHostId; } @@ -31,4 +41,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/RebootUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/RebootUHostInstanceRequest.java index f349f35b..69be64f8 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/RebootUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/RebootUHostInstanceRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RebootUHostInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) */ + + + + /** + * UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** 加密盘密码 */ + + + + /** + * 加密盘密码 + */ @UCloudParam("DiskPassword") private String diskPassword; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -60,7 +83,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -68,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -76,7 +99,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getDiskPassword() { return diskPassword; } @@ -84,4 +107,14 @@ public String getDiskPassword() { public void setDiskPassword(String diskPassword) { this.diskPassword = diskPassword; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/RebootUHostInstanceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/RebootUHostInstanceResponse.java index ed5b39bd..0089599b 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/RebootUHostInstanceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/RebootUHostInstanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class RebootUHostInstanceResponse extends Response { - /** UHost实例ID */ + + + /** + * UHost实例ID + */ @SerializedName("UHostId") private String uHostId; - + + public String getUHostId() { return uHostId; } @@ -31,4 +41,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ReinstallUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ReinstallUHostInstanceRequest.java index c70a6229..eccc17c4 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ReinstallUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ReinstallUHostInstanceRequest.java @@ -1,81 +1,133 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ReinstallUHostInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例资源ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) */ + + + + /** + * UHost实例资源ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - + + + /** - * 如果重装UHost实例时LoginMode为Password,则必须填写,如果LoginMode为KeyPair,不需要填写 (密码格式使用BASE64编码;举例如下:# echo -n - * Password1 | base64UGFzc3dvcmQx。) + * 如果重装UHost实例时LoginMode为Password,则必须填写,如果LoginMode为KeyPair,不需要填写 (密码格式使用BASE64编码;举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。) */ @UCloudParam("Password") private String password; - - /** 镜像Id,默认使用原镜像 参见 [DescribeImage](describe_image.html) */ + + + + /** + * 镜像Id,默认使用原镜像 参见 [DescribeImage](describe_image.html) + */ @UCloudParam("ImageId") private String imageId; - - /** 是否保留数据盘,保留:Yes,不报留:No, 默认:Yes;如果是从Windows重装为Linux或反之,则无法保留数据盘(该参数目前仅对本地数据盘起作用) */ + + + + /** + * 是否保留数据盘,保留:Yes,不报留:No, 默认:Yes;如果是从Windows重装为Linux或反之,则无法保留数据盘(该参数目前仅对本地数据盘起作用) + */ @UCloudParam("ReserveDisk") private String reserveDisk; - - /** 系统盘大小。 单位:GB, 范围[20,100], 步长:10 */ + + + + + + + + /** + * 系统盘大小。 单位:GB, 范围[20,100], 步长:10 + */ @UCloudParam("BootDiskSpace") private Integer bootDiskSpace; - - /** cloudinit初始化使用。注意:1、总数据量大小不超多16K 2、使用base64编码 */ + + + + /** + * cloudinit初始化使用。注意:1、总数据量大小不超多16K 2、使用base64编码 + */ @UCloudParam("UserData") private String userData; - - /** 数据盘是否需要自动分区挂载。当镜像支持Cloud-init Feature时可填写此字段。取值“On”(默认值), “Off” */ + + + + /** + * 数据盘是否需要自动分区挂载。当镜像支持Cloud-init Feature时可填写此字段。取值“On”(默认值), “Off” + */ @UCloudParam("AutoDataDiskInit") private String autoDataDiskInit; - - /** 主机登陆模式。密码(默认选项): Password,密钥 KeyPair。 */ + + + + /** + * 主机登陆模式。密码(默认选项): Password,密钥 KeyPair。 + */ @UCloudParam("LoginMode") private String loginMode; - - /** KeypairId 密钥对ID,LoginMode为KeyPair时此项必须。 */ + + + + /** + * KeypairId 密钥对ID,LoginMode为KeyPair时此项必须。 + */ @UCloudParam("KeyPairId") private String keyPairId; - + + public String getRegion() { return region; } @@ -83,7 +135,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -91,7 +143,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -99,7 +151,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -107,7 +159,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getPassword() { return password; } @@ -115,7 +167,7 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } - + public String getImageId() { return imageId; } @@ -123,7 +175,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getReserveDisk() { return reserveDisk; } @@ -131,7 +183,9 @@ public String getReserveDisk() { public void setReserveDisk(String reserveDisk) { this.reserveDisk = reserveDisk; } - + + + public Integer getBootDiskSpace() { return bootDiskSpace; } @@ -139,7 +193,7 @@ public Integer getBootDiskSpace() { public void setBootDiskSpace(Integer bootDiskSpace) { this.bootDiskSpace = bootDiskSpace; } - + public String getUserData() { return userData; } @@ -147,7 +201,7 @@ public String getUserData() { public void setUserData(String userData) { this.userData = userData; } - + public String getAutoDataDiskInit() { return autoDataDiskInit; } @@ -155,7 +209,7 @@ public String getAutoDataDiskInit() { public void setAutoDataDiskInit(String autoDataDiskInit) { this.autoDataDiskInit = autoDataDiskInit; } - + public String getLoginMode() { return loginMode; } @@ -163,7 +217,7 @@ public String getLoginMode() { public void setLoginMode(String loginMode) { this.loginMode = loginMode; } - + public String getKeyPairId() { return keyPairId; } @@ -171,4 +225,14 @@ public String getKeyPairId() { public void setKeyPairId(String keyPairId) { this.keyPairId = keyPairId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ReinstallUHostInstanceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ReinstallUHostInstanceResponse.java index d45b842b..02d809fb 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ReinstallUHostInstanceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ReinstallUHostInstanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ReinstallUHostInstanceResponse extends Response { - /** UHost实例资源ID */ + + + /** + * UHost实例资源ID + */ @SerializedName("UHostId") private String uHostId; - + + public String getUHostId() { return uHostId; } @@ -31,4 +41,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResetUHostInstancePasswordRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResetUHostInstancePasswordRequest.java index fb0013d5..80df3722 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResetUHostInstancePasswordRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResetUHostInstancePasswordRequest.java @@ -1,51 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ResetUHostInstancePasswordRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID */ + + + + /** + * UHost实例ID + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** UHost新密码(密码格式使用BASE64编码) */ + + + + /** + * UHost新密码(密码格式使用BASE64编码) + */ @NotEmpty @UCloudParam("Password") private String password; - + + public String getRegion() { return region; } @@ -53,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -61,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -69,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -77,7 +100,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getPassword() { return password; } @@ -85,4 +108,14 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResetUHostInstancePasswordResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResetUHostInstancePasswordResponse.java index 2377e10c..847a6f8e 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResetUHostInstancePasswordResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResetUHostInstancePasswordResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ResetUHostInstancePasswordResponse extends Response { - /** UHost实例ID */ + + + /** + * UHost实例ID + */ @SerializedName("UHostId") private String uHostId; - + + public String getUHostId() { return uHostId; } @@ -31,4 +41,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeAttachedDiskRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeAttachedDiskRequest.java index 3209152d..e9edb9d2 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeAttachedDiskRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeAttachedDiskRequest.java @@ -1,61 +1,92 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ResizeAttachedDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID。 参见 [DescribeUHostInstance](describe_uhost_instance.html)。 */ + + + + /** + * UHost实例ID。 参见 [DescribeUHostInstance](describe_uhost_instance.html)。 + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** 磁盘大小,单位GB,步长为10。取值范围需大于当前磁盘大小,最大值请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ + + + + /** + * 磁盘大小,单位GB,步长为10。取值范围需大于当前磁盘大小,最大值请参考[[api:uhost-api:disk_type|磁盘类型]]。 + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; - - /** 磁盘ID。参见 [DescribeUHostInstance](describe_uhost_instance.html)返回值中的DiskSet。 */ + + + + /** + * 磁盘ID。参见 [DescribeUHostInstance](describe_uhost_instance.html)返回值中的DiskSet。 + */ @NotEmpty @UCloudParam("DiskId") private String diskId; - - /** 用于测试磁盘是否支持在线扩容。DryRun=true,不会执行实际操作,只会返回操作的预期结果。DryRun = false ,正常执行扩容操作。 */ + + + + /** + * 用于测试磁盘是否支持在线扩容。DryRun=true,不会执行实际操作,只会返回操作的预期结果。DryRun = false ,正常执行扩容操作。 + */ @UCloudParam("DryRun") private Boolean dryRun; - + + public String getRegion() { return region; } @@ -63,7 +94,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -71,7 +102,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -79,7 +110,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -87,7 +118,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public Integer getDiskSpace() { return diskSpace; } @@ -95,7 +126,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public String getDiskId() { return diskId; } @@ -103,7 +134,7 @@ public String getDiskId() { public void setDiskId(String diskId) { this.diskId = diskId; } - + public Boolean getDryRun() { return dryRun; } @@ -111,4 +142,14 @@ public Boolean getDryRun() { public void setDryRun(Boolean dryRun) { this.dryRun = dryRun; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeAttachedDiskResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeAttachedDiskResponse.java index 676ed7a8..bdbb8a60 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeAttachedDiskResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeAttachedDiskResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ResizeAttachedDiskResponse extends Response { - /** 改配成功的磁盘id */ + + + /** + * 改配成功的磁盘id + */ @SerializedName("DiskId") private String diskId; - - /** 扩容后的状态。NeedRestart = true,必须关闭后启动实例才能使用扩容的磁盘空间。NeedRestart = false,磁盘扩容后无需重启操作。 */ + + + + /** + * 扩容后的状态。NeedRestart = true,必须关闭后启动实例才能使用扩容的磁盘空间。NeedRestart = false,磁盘扩容后无需重启操作。 + */ @SerializedName("NeedRestart") private Boolean needRestart; - + + public String getDiskId() { return diskId; } @@ -35,7 +49,7 @@ public String getDiskId() { public void setDiskId(String diskId) { this.diskId = diskId; } - + public Boolean getNeedRestart() { return needRestart; } @@ -43,4 +57,14 @@ public Boolean getNeedRestart() { public void setNeedRestart(Boolean needRestart) { this.needRestart = needRestart; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeUHostInstanceRequest.java index 161721b7..a9de158a 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeUHostInstanceRequest.java @@ -1,58 +1,93 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ResizeUHostInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) */ + + + + /** + * UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** 虚拟CPU核数。可选参数:1-240(可选范围与UHostType相关)。默认值为当前实例的CPU核数 */ + + + + /** + * 虚拟CPU核数。可选参数:1-240(可选范围与UHostType相关)。默认值为当前实例的CPU核数 + */ @UCloudParam("CPU") private Integer cpu; - - /** 内存大小。单位:MB。范围 :[1024, 1966080],取值为1024的倍数(可选范围与UHostType相关)。默认值为当前实例的内存大小。 */ + + + + /** + * 内存大小。单位:MB。范围 :[1024, 1966080],取值为1024的倍数(可选范围与UHostType相关)。默认值为当前实例的内存大小。 + */ @UCloudParam("Memory") private Integer memory; - - /** 网卡升降级(1,表示升级,2表示降级,0表示不变) */ + + + + + + + + /** + * 网卡升降级(1,表示升级,2表示降级,0表示不变) + */ @UCloudParam("NetCapValue") private Integer netCapValue; - + + public String getRegion() { return region; } @@ -60,7 +95,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -68,7 +103,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -76,7 +111,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -84,7 +119,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public Integer getCPU() { return cpu; } @@ -92,7 +127,7 @@ public Integer getCPU() { public void setCPU(Integer cpu) { this.cpu = cpu; } - + public Integer getMemory() { return memory; } @@ -100,7 +135,9 @@ public Integer getMemory() { public void setMemory(Integer memory) { this.memory = memory; } - + + + public Integer getNetCapValue() { return netCapValue; } @@ -108,4 +145,14 @@ public Integer getNetCapValue() { public void setNetCapValue(Integer netCapValue) { this.netCapValue = netCapValue; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeUHostInstanceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeUHostInstanceResponse.java index 90e30cee..ca55fd63 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeUHostInstanceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeUHostInstanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ResizeUHostInstanceResponse extends Response { - /** UHost实例ID */ + + + /** + * UHost实例ID + */ @SerializedName("UHostId") private String uHostId; - + + public String getUHostId() { return uHostId; } @@ -31,4 +41,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StartUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StartUHostInstanceRequest.java index 7a32eb74..a0272e8b 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StartUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StartUHostInstanceRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class StartUHostInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) */ + + + + /** + * UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** 加密盘密码 */ + + + + /** + * 加密盘密码 + */ @UCloudParam("DiskPassword") private String diskPassword; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -60,7 +83,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -68,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -76,7 +99,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public String getDiskPassword() { return diskPassword; } @@ -84,4 +107,14 @@ public String getDiskPassword() { public void setDiskPassword(String diskPassword) { this.diskPassword = diskPassword; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StartUHostInstanceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StartUHostInstanceResponse.java index 1b886ca3..ee41405a 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StartUHostInstanceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StartUHostInstanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class StartUHostInstanceResponse extends Response { - /** UHost实例ID */ + + + /** + * UHost实例ID + */ @SerializedName("UHostId") private String uHostId; - + + public String getUHostId() { return uHostId; } @@ -31,4 +41,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StopUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StopUHostInstanceRequest.java index 0339c56e..a24faf19 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StopUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StopUHostInstanceRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class StopUHostInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) */ + + + + /** + * UHost实例ID 参见 [DescribeUHostInstance](describe_uhost_instance.html) + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - + + public String getRegion() { return region; } @@ -48,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -56,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -64,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -72,4 +91,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StopUHostInstanceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StopUHostInstanceResponse.java index 4aa1c6b8..30cad1c6 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StopUHostInstanceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/StopUHostInstanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class StopUHostInstanceResponse extends Response { - /** UHost实例ID */ + + + /** + * UHost实例ID + */ @SerializedName("UHostId") private String uHostId; - + + public String getUHostId() { return uHostId; } @@ -31,4 +41,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateCustomImageRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateCustomImageRequest.java index e208c7a9..c4d7a122 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateCustomImageRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateCustomImageRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class TerminateCustomImageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 自制镜像ID 参见 [DescribeImage](describe_image.html) */ + + + + /** + * 自制镜像ID 参见 [DescribeImage](describe_image.html) + */ @NotEmpty @UCloudParam("ImageId") private String imageId; - + + public String getRegion() { return region; } @@ -44,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -52,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageId() { return imageId; } @@ -60,4 +75,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateCustomImageResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateCustomImageResponse.java index 47f04b58..89011d56 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateCustomImageResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateCustomImageResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class TerminateCustomImageResponse extends Response { - /** 自制镜像Id */ + + + /** + * 自制镜像Id + */ @SerializedName("ImageId") private String imageId; - + + public String getImageId() { return imageId; } @@ -31,4 +41,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateUHostInstanceRequest.java index f5d64530..ead58253 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateUHostInstanceRequest.java @@ -1,54 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class TerminateUHostInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UHost资源Id 参见 [DescribeUHostInstance](describe_uhost_instance.html) */ + + + + /** + * UHost资源Id 参见 [DescribeUHostInstance](describe_uhost_instance.html) + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** 删除主机时是否释放绑定的EIP。默认为false。 */ + + + + + + /** + * 删除主机时是否释放绑定的EIP。默认为false。 + */ @UCloudParam("ReleaseEIP") private Boolean releaseEIP; - - /** 删除主机时是否同时删除挂载的数据盘。默认为false。 */ + + + + /** + * 删除主机时是否同时删除挂载的数据盘。默认为false。 + */ @UCloudParam("ReleaseUDisk") private Boolean releaseUDisk; - + + public String getRegion() { return region; } @@ -56,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -64,7 +93,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -72,7 +101,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUHostId() { return uHostId; } @@ -80,7 +109,8 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + + public Boolean getReleaseEIP() { return releaseEIP; } @@ -88,7 +118,7 @@ public Boolean getReleaseEIP() { public void setReleaseEIP(Boolean releaseEIP) { this.releaseEIP = releaseEIP; } - + public Boolean getReleaseUDisk() { return releaseUDisk; } @@ -96,4 +126,14 @@ public Boolean getReleaseUDisk() { public void setReleaseUDisk(Boolean releaseUDisk) { this.releaseUDisk = releaseUDisk; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateUHostInstanceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateUHostInstanceResponse.java index b433cfc0..90100c38 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateUHostInstanceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/TerminateUHostInstanceResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class TerminateUHostInstanceResponse extends Response { - /** 用于判断主机删除时是否进入回收站。放入回收站:"Yes", 彻底删除:“No”。 */ + + + /** + * 用于判断主机删除时是否进入回收站。放入回收站:"Yes", 彻底删除:“No”。 + */ @SerializedName("InRecycle") private String inRecycle; - - /** UHost 实例 Id */ + + + + /** + * UHost 实例 Id + */ @SerializedName("UHostId") private String uHostId; - + + public String getInRecycle() { return inRecycle; } @@ -35,7 +49,7 @@ public String getInRecycle() { public void setInRecycle(String inRecycle) { this.inRecycle = inRecycle; } - + public String getUHostId() { return uHostId; } @@ -43,4 +57,14 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/UpgradeToArkUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/UpgradeToArkUHostInstanceRequest.java index 1713108e..813d1046 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/UpgradeToArkUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/UpgradeToArkUHostInstanceRequest.java @@ -1,45 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UpgradeToArkUHostInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** UHost主机的资源ID,例如UHostIds.0代表希望升级的主机1,UHostIds.1代表主机2。 */ + + + + /** + * UHost主机的资源ID,例如UHostIds.0代表希望升级的主机1,UHostIds.1代表主机2。 + */ @NotEmpty @UCloudParam("UHostIds") private List uHostIds; - - /** 代金券ID 请参考DescribeCoupon接口 */ + + + + /** + * 代金券ID 请参考DescribeCoupon接口 + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -47,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -55,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public List getUHostIds() { return uHostIds; } @@ -63,7 +84,7 @@ public List getUHostIds() { public void setUHostIds(List uHostIds) { this.uHostIds = uHostIds; } - + public String getCouponId() { return couponId; } @@ -71,4 +92,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/UpgradeToArkUHostInstanceResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/UpgradeToArkUHostInstanceResponse.java index 7bbd269a..e092c7de 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/UpgradeToArkUHostInstanceResponse.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/UpgradeToArkUHostInstanceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uhost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class UpgradeToArkUHostInstanceResponse extends Response { - /** UHost主机的资源ID数组 */ + + + /** + * UHost主机的资源ID数组 + */ @SerializedName("UHostSet") private List uHostSet; - + + public List getUHostSet() { return uHostSet; } @@ -32,4 +41,14 @@ public List getUHostSet() { public void setUHostSet(List uHostSet) { this.uHostSet = uHostSet; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 356a715b..5b6bee3b 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-uk8s - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClient.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClient.java index 987776bd..2ee8bd20 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClient.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uk8s.client; @@ -17,212 +19,306 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.uk8s.models.AddUK8SExistingUHostRequest; import cn.ucloud.uk8s.models.AddUK8SExistingUHostResponse; + + + import cn.ucloud.uk8s.models.AddUK8SNodeGroupRequest; import cn.ucloud.uk8s.models.AddUK8SNodeGroupResponse; + + + import cn.ucloud.uk8s.models.AddUK8SPHostNodeRequest; import cn.ucloud.uk8s.models.AddUK8SPHostNodeResponse; + + + import cn.ucloud.uk8s.models.AddUK8SUHostNodeRequest; import cn.ucloud.uk8s.models.AddUK8SUHostNodeResponse; + + + import cn.ucloud.uk8s.models.CreateUK8SClusterV2Request; import cn.ucloud.uk8s.models.CreateUK8SClusterV2Response; -import cn.ucloud.uk8s.models.DelUK8SClusterNodeV2Request; -import cn.ucloud.uk8s.models.DelUK8SClusterNodeV2Response; + + + import cn.ucloud.uk8s.models.DelUK8SClusterRequest; import cn.ucloud.uk8s.models.DelUK8SClusterResponse; + + + +import cn.ucloud.uk8s.models.DelUK8SClusterNodeV2Request; +import cn.ucloud.uk8s.models.DelUK8SClusterNodeV2Response; + + + import cn.ucloud.uk8s.models.DescribeUK8SClusterRequest; import cn.ucloud.uk8s.models.DescribeUK8SClusterResponse; + + + import cn.ucloud.uk8s.models.DescribeUK8SImageRequest; import cn.ucloud.uk8s.models.DescribeUK8SImageResponse; + + + import cn.ucloud.uk8s.models.DescribeUK8SNodeRequest; import cn.ucloud.uk8s.models.DescribeUK8SNodeResponse; + + + import cn.ucloud.uk8s.models.ListUK8SClusterNodeV2Request; import cn.ucloud.uk8s.models.ListUK8SClusterNodeV2Response; + + + import cn.ucloud.uk8s.models.ListUK8SClusterV2Request; import cn.ucloud.uk8s.models.ListUK8SClusterV2Response; + + + import cn.ucloud.uk8s.models.ListUK8SNodeGroupRequest; import cn.ucloud.uk8s.models.ListUK8SNodeGroupResponse; + + + import cn.ucloud.uk8s.models.RemoveUK8SNodeGroupRequest; import cn.ucloud.uk8s.models.RemoveUK8SNodeGroupResponse; -/** This client is used to call actions of **UK8S** service */ +/** + * This client is used to call actions of **UK8S** service + */ public class UK8SClient extends DefaultClient implements UK8SClientInterface { public UK8SClient(Config config, Credential credential) { super(config, credential); } - - /** - * AddUK8SExistingUHost - 添加Node节点(已有云主机) - * - * @param request Request object - * @throws UCloudException Exception - */ - public AddUK8SExistingUHostResponse addUK8SExistingUHost(AddUK8SExistingUHostRequest request) - throws UCloudException { - request.setAction("AddUK8SExistingUHost"); - return (AddUK8SExistingUHostResponse) - this.invoke(request, AddUK8SExistingUHostResponse.class); - } - - /** - * AddUK8SNodeGroup - 添加UK8S节点池 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AddUK8SNodeGroupResponse addUK8SNodeGroup(AddUK8SNodeGroupRequest request) - throws UCloudException { - request.setAction("AddUK8SNodeGroup"); - return (AddUK8SNodeGroupResponse) this.invoke(request, AddUK8SNodeGroupResponse.class); - } - - /** - * AddUK8SPHostNode - 添加Node节点(物理云主机) - * - * @param request Request object - * @throws UCloudException Exception - */ - public AddUK8SPHostNodeResponse addUK8SPHostNode(AddUK8SPHostNodeRequest request) - throws UCloudException { - request.setAction("AddUK8SPHostNode"); - return (AddUK8SPHostNodeResponse) this.invoke(request, AddUK8SPHostNodeResponse.class); - } - - /** - * AddUK8SUHostNode - 添加Node节点(云主机) - * - * @param request Request object - * @throws UCloudException Exception - */ - public AddUK8SUHostNodeResponse addUK8SUHostNode(AddUK8SUHostNodeRequest request) - throws UCloudException { - request.setAction("AddUK8SUHostNode"); - return (AddUK8SUHostNodeResponse) this.invoke(request, AddUK8SUHostNodeResponse.class); - } - - /** - * CreateUK8SClusterV2 - 创建UK8S集群V2版 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUK8SClusterV2Response createUK8SClusterV2(CreateUK8SClusterV2Request request) - throws UCloudException { - request.setAction("CreateUK8SClusterV2"); - return (CreateUK8SClusterV2Response) - this.invoke(request, CreateUK8SClusterV2Response.class); - } - - /** - * DelUK8SCluster - 删除UK8S集群 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DelUK8SClusterResponse delUK8SCluster(DelUK8SClusterRequest request) - throws UCloudException { - request.setAction("DelUK8SCluster"); - return (DelUK8SClusterResponse) this.invoke(request, DelUK8SClusterResponse.class); - } - - /** - * DelUK8SClusterNodeV2 - 删除Node节点 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DelUK8SClusterNodeV2Response delUK8SClusterNodeV2(DelUK8SClusterNodeV2Request request) - throws UCloudException { - request.setAction("DelUK8SClusterNodeV2"); - return (DelUK8SClusterNodeV2Response) - this.invoke(request, DelUK8SClusterNodeV2Response.class); - } - - /** - * DescribeUK8SCluster - 获取集群信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUK8SClusterResponse describeUK8SCluster(DescribeUK8SClusterRequest request) - throws UCloudException { - request.setAction("DescribeUK8SCluster"); - return (DescribeUK8SClusterResponse) - this.invoke(request, DescribeUK8SClusterResponse.class); - } - - /** - * DescribeUK8SImage - 获取可用镜像 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUK8SImageResponse describeUK8SImage(DescribeUK8SImageRequest request) - throws UCloudException { - request.setAction("DescribeUK8SImage"); - return (DescribeUK8SImageResponse) this.invoke(request, DescribeUK8SImageResponse.class); - } - - /** - * DescribeUK8SNode - 获取 UK8S 节点详情 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUK8SNodeResponse describeUK8SNode(DescribeUK8SNodeRequest request) - throws UCloudException { - request.setAction("DescribeUK8SNode"); - return (DescribeUK8SNodeResponse) this.invoke(request, DescribeUK8SNodeResponse.class); - } - - /** - * ListUK8SClusterNodeV2 - 获取UK8S集群节点信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUK8SClusterNodeV2Response listUK8SClusterNodeV2(ListUK8SClusterNodeV2Request request) - throws UCloudException { - request.setAction("ListUK8SClusterNodeV2"); - return (ListUK8SClusterNodeV2Response) - this.invoke(request, ListUK8SClusterNodeV2Response.class); - } - - /** - * ListUK8SClusterV2 - 获取UK8S集群信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUK8SClusterV2Response listUK8SClusterV2(ListUK8SClusterV2Request request) - throws UCloudException { - request.setAction("ListUK8SClusterV2"); - return (ListUK8SClusterV2Response) this.invoke(request, ListUK8SClusterV2Response.class); - } - - /** - * ListUK8SNodeGroup - 列出UK8S节点池 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUK8SNodeGroupResponse listUK8SNodeGroup(ListUK8SNodeGroupRequest request) - throws UCloudException { - request.setAction("ListUK8SNodeGroup"); - return (ListUK8SNodeGroupResponse) this.invoke(request, ListUK8SNodeGroupResponse.class); - } - - /** - * RemoveUK8SNodeGroup - 删除UK8S节点池 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RemoveUK8SNodeGroupResponse removeUK8SNodeGroup(RemoveUK8SNodeGroupRequest request) - throws UCloudException { - request.setAction("RemoveUK8SNodeGroup"); - return (RemoveUK8SNodeGroupResponse) - this.invoke(request, RemoveUK8SNodeGroupResponse.class); - } + + + + + + + /** + * AddUK8SExistingUHost - 添加Node节点(已有云主机) + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUK8SExistingUHostResponse addUK8SExistingUHost(AddUK8SExistingUHostRequest request) throws UCloudException { + request.setAction("AddUK8SExistingUHost"); + return (AddUK8SExistingUHostResponse) this.invoke(request, AddUK8SExistingUHostResponse.class); + } + + + + + + + /** + * AddUK8SNodeGroup - 添加UK8S节点池 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUK8SNodeGroupResponse addUK8SNodeGroup(AddUK8SNodeGroupRequest request) throws UCloudException { + request.setAction("AddUK8SNodeGroup"); + return (AddUK8SNodeGroupResponse) this.invoke(request, AddUK8SNodeGroupResponse.class); + } + + + + + + + /** + * AddUK8SPHostNode - 添加Node节点(物理云主机) + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUK8SPHostNodeResponse addUK8SPHostNode(AddUK8SPHostNodeRequest request) throws UCloudException { + request.setAction("AddUK8SPHostNode"); + return (AddUK8SPHostNodeResponse) this.invoke(request, AddUK8SPHostNodeResponse.class); + } + + + + + + + /** + * AddUK8SUHostNode - 添加Node节点(云主机) + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUK8SUHostNodeResponse addUK8SUHostNode(AddUK8SUHostNodeRequest request) throws UCloudException { + request.setAction("AddUK8SUHostNode"); + return (AddUK8SUHostNodeResponse) this.invoke(request, AddUK8SUHostNodeResponse.class); + } + + + + + + + /** + * CreateUK8SClusterV2 - 创建UK8S集群V2版 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUK8SClusterV2Response createUK8SClusterV2(CreateUK8SClusterV2Request request) throws UCloudException { + request.setAction("CreateUK8SClusterV2"); + return (CreateUK8SClusterV2Response) this.invoke(request, CreateUK8SClusterV2Response.class); + } + + + + + + + /** + * DelUK8SCluster - 删除UK8S集群 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DelUK8SClusterResponse delUK8SCluster(DelUK8SClusterRequest request) throws UCloudException { + request.setAction("DelUK8SCluster"); + return (DelUK8SClusterResponse) this.invoke(request, DelUK8SClusterResponse.class); + } + + + + + + + /** + * DelUK8SClusterNodeV2 - 删除Node节点 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DelUK8SClusterNodeV2Response delUK8SClusterNodeV2(DelUK8SClusterNodeV2Request request) throws UCloudException { + request.setAction("DelUK8SClusterNodeV2"); + return (DelUK8SClusterNodeV2Response) this.invoke(request, DelUK8SClusterNodeV2Response.class); + } + + + + + + + /** + * DescribeUK8SCluster - 获取集群信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUK8SClusterResponse describeUK8SCluster(DescribeUK8SClusterRequest request) throws UCloudException { + request.setAction("DescribeUK8SCluster"); + return (DescribeUK8SClusterResponse) this.invoke(request, DescribeUK8SClusterResponse.class); + } + + + + + + + /** + * DescribeUK8SImage - 获取可用镜像 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUK8SImageResponse describeUK8SImage(DescribeUK8SImageRequest request) throws UCloudException { + request.setAction("DescribeUK8SImage"); + return (DescribeUK8SImageResponse) this.invoke(request, DescribeUK8SImageResponse.class); + } + + + + + + + /** + * DescribeUK8SNode - 获取 UK8S 节点详情 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUK8SNodeResponse describeUK8SNode(DescribeUK8SNodeRequest request) throws UCloudException { + request.setAction("DescribeUK8SNode"); + return (DescribeUK8SNodeResponse) this.invoke(request, DescribeUK8SNodeResponse.class); + } + + + + + + + /** + * ListUK8SClusterNodeV2 - 获取UK8S集群节点信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUK8SClusterNodeV2Response listUK8SClusterNodeV2(ListUK8SClusterNodeV2Request request) throws UCloudException { + request.setAction("ListUK8SClusterNodeV2"); + return (ListUK8SClusterNodeV2Response) this.invoke(request, ListUK8SClusterNodeV2Response.class); + } + + + + + + + /** + * ListUK8SClusterV2 - 获取UK8S集群信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUK8SClusterV2Response listUK8SClusterV2(ListUK8SClusterV2Request request) throws UCloudException { + request.setAction("ListUK8SClusterV2"); + return (ListUK8SClusterV2Response) this.invoke(request, ListUK8SClusterV2Response.class); + } + + + + + + + /** + * ListUK8SNodeGroup - 列出UK8S节点池 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUK8SNodeGroupResponse listUK8SNodeGroup(ListUK8SNodeGroupRequest request) throws UCloudException { + request.setAction("ListUK8SNodeGroup"); + return (ListUK8SNodeGroupResponse) this.invoke(request, ListUK8SNodeGroupResponse.class); + } + + + + + + + /** + * RemoveUK8SNodeGroup - 删除UK8S节点池 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RemoveUK8SNodeGroupResponse removeUK8SNodeGroup(RemoveUK8SNodeGroupRequest request) throws UCloudException { + request.setAction("RemoveUK8SNodeGroup"); + return (RemoveUK8SNodeGroupResponse) this.invoke(request, RemoveUK8SNodeGroupResponse.class); + } } diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClientInterface.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClientInterface.java index 7facba87..ea5664b4 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClientInterface.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/client/UK8SClientInterface.java @@ -1,175 +1,277 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uk8s.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.uk8s.models.AddUK8SExistingUHostRequest; import cn.ucloud.uk8s.models.AddUK8SExistingUHostResponse; + + + import cn.ucloud.uk8s.models.AddUK8SNodeGroupRequest; import cn.ucloud.uk8s.models.AddUK8SNodeGroupResponse; + + + import cn.ucloud.uk8s.models.AddUK8SPHostNodeRequest; import cn.ucloud.uk8s.models.AddUK8SPHostNodeResponse; + + + import cn.ucloud.uk8s.models.AddUK8SUHostNodeRequest; import cn.ucloud.uk8s.models.AddUK8SUHostNodeResponse; + + + import cn.ucloud.uk8s.models.CreateUK8SClusterV2Request; import cn.ucloud.uk8s.models.CreateUK8SClusterV2Response; -import cn.ucloud.uk8s.models.DelUK8SClusterNodeV2Request; -import cn.ucloud.uk8s.models.DelUK8SClusterNodeV2Response; + + + import cn.ucloud.uk8s.models.DelUK8SClusterRequest; import cn.ucloud.uk8s.models.DelUK8SClusterResponse; + + + +import cn.ucloud.uk8s.models.DelUK8SClusterNodeV2Request; +import cn.ucloud.uk8s.models.DelUK8SClusterNodeV2Response; + + + import cn.ucloud.uk8s.models.DescribeUK8SClusterRequest; import cn.ucloud.uk8s.models.DescribeUK8SClusterResponse; + + + import cn.ucloud.uk8s.models.DescribeUK8SImageRequest; import cn.ucloud.uk8s.models.DescribeUK8SImageResponse; + + + import cn.ucloud.uk8s.models.DescribeUK8SNodeRequest; import cn.ucloud.uk8s.models.DescribeUK8SNodeResponse; + + + import cn.ucloud.uk8s.models.ListUK8SClusterNodeV2Request; import cn.ucloud.uk8s.models.ListUK8SClusterNodeV2Response; + + + import cn.ucloud.uk8s.models.ListUK8SClusterV2Request; import cn.ucloud.uk8s.models.ListUK8SClusterV2Response; + + + import cn.ucloud.uk8s.models.ListUK8SNodeGroupRequest; import cn.ucloud.uk8s.models.ListUK8SNodeGroupResponse; + + + import cn.ucloud.uk8s.models.RemoveUK8SNodeGroupRequest; import cn.ucloud.uk8s.models.RemoveUK8SNodeGroupResponse; -/** This client is used to call actions of **UK8S** service */ +/** + * This client is used to call actions of **UK8S** service + */ public interface UK8SClientInterface extends Client { - + + + + + + /** * AddUK8SExistingUHost - 添加Node节点(已有云主机) * * @param request Request object * @throws UCloudException Exception */ - public AddUK8SExistingUHostResponse addUK8SExistingUHost(AddUK8SExistingUHostRequest request) - throws UCloudException; - + public AddUK8SExistingUHostResponse addUK8SExistingUHost(AddUK8SExistingUHostRequest request) throws UCloudException; + + + + + + /** * AddUK8SNodeGroup - 添加UK8S节点池 * * @param request Request object * @throws UCloudException Exception */ - public AddUK8SNodeGroupResponse addUK8SNodeGroup(AddUK8SNodeGroupRequest request) - throws UCloudException; - + public AddUK8SNodeGroupResponse addUK8SNodeGroup(AddUK8SNodeGroupRequest request) throws UCloudException; + + + + + + /** * AddUK8SPHostNode - 添加Node节点(物理云主机) * * @param request Request object * @throws UCloudException Exception */ - public AddUK8SPHostNodeResponse addUK8SPHostNode(AddUK8SPHostNodeRequest request) - throws UCloudException; - + public AddUK8SPHostNodeResponse addUK8SPHostNode(AddUK8SPHostNodeRequest request) throws UCloudException; + + + + + + /** * AddUK8SUHostNode - 添加Node节点(云主机) * * @param request Request object * @throws UCloudException Exception */ - public AddUK8SUHostNodeResponse addUK8SUHostNode(AddUK8SUHostNodeRequest request) - throws UCloudException; - + public AddUK8SUHostNodeResponse addUK8SUHostNode(AddUK8SUHostNodeRequest request) throws UCloudException; + + + + + + /** * CreateUK8SClusterV2 - 创建UK8S集群V2版 * * @param request Request object * @throws UCloudException Exception */ - public CreateUK8SClusterV2Response createUK8SClusterV2(CreateUK8SClusterV2Request request) - throws UCloudException; - + public CreateUK8SClusterV2Response createUK8SClusterV2(CreateUK8SClusterV2Request request) throws UCloudException; + + + + + + /** * DelUK8SCluster - 删除UK8S集群 * * @param request Request object * @throws UCloudException Exception */ - public DelUK8SClusterResponse delUK8SCluster(DelUK8SClusterRequest request) - throws UCloudException; - + public DelUK8SClusterResponse delUK8SCluster(DelUK8SClusterRequest request) throws UCloudException; + + + + + + /** * DelUK8SClusterNodeV2 - 删除Node节点 * * @param request Request object * @throws UCloudException Exception */ - public DelUK8SClusterNodeV2Response delUK8SClusterNodeV2(DelUK8SClusterNodeV2Request request) - throws UCloudException; - + public DelUK8SClusterNodeV2Response delUK8SClusterNodeV2(DelUK8SClusterNodeV2Request request) throws UCloudException; + + + + + + /** * DescribeUK8SCluster - 获取集群信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUK8SClusterResponse describeUK8SCluster(DescribeUK8SClusterRequest request) - throws UCloudException; - + public DescribeUK8SClusterResponse describeUK8SCluster(DescribeUK8SClusterRequest request) throws UCloudException; + + + + + + /** * DescribeUK8SImage - 获取可用镜像 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUK8SImageResponse describeUK8SImage(DescribeUK8SImageRequest request) - throws UCloudException; - + public DescribeUK8SImageResponse describeUK8SImage(DescribeUK8SImageRequest request) throws UCloudException; + + + + + + /** * DescribeUK8SNode - 获取 UK8S 节点详情 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUK8SNodeResponse describeUK8SNode(DescribeUK8SNodeRequest request) - throws UCloudException; - + public DescribeUK8SNodeResponse describeUK8SNode(DescribeUK8SNodeRequest request) throws UCloudException; + + + + + + /** * ListUK8SClusterNodeV2 - 获取UK8S集群节点信息 * * @param request Request object * @throws UCloudException Exception */ - public ListUK8SClusterNodeV2Response listUK8SClusterNodeV2(ListUK8SClusterNodeV2Request request) - throws UCloudException; - + public ListUK8SClusterNodeV2Response listUK8SClusterNodeV2(ListUK8SClusterNodeV2Request request) throws UCloudException; + + + + + + /** * ListUK8SClusterV2 - 获取UK8S集群信息 * * @param request Request object * @throws UCloudException Exception */ - public ListUK8SClusterV2Response listUK8SClusterV2(ListUK8SClusterV2Request request) - throws UCloudException; - + public ListUK8SClusterV2Response listUK8SClusterV2(ListUK8SClusterV2Request request) throws UCloudException; + + + + + + /** * ListUK8SNodeGroup - 列出UK8S节点池 * * @param request Request object * @throws UCloudException Exception */ - public ListUK8SNodeGroupResponse listUK8SNodeGroup(ListUK8SNodeGroupRequest request) - throws UCloudException; - + public ListUK8SNodeGroupResponse listUK8SNodeGroup(ListUK8SNodeGroupRequest request) throws UCloudException; + + + + + + /** * RemoveUK8SNodeGroup - 删除UK8S节点池 * * @param request Request object * @throws UCloudException Exception */ - public RemoveUK8SNodeGroupResponse removeUK8SNodeGroup(RemoveUK8SNodeGroupRequest request) - throws UCloudException; + public RemoveUK8SNodeGroupResponse removeUK8SNodeGroup(RemoveUK8SNodeGroupRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SExistingUHostRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SExistingUHostRequest.java index 31520f1f..b3402e05 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SExistingUHostRequest.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SExistingUHostRequest.java @@ -1,84 +1,140 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AddUK8SExistingUHostRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - + + + /** - * Node节点密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,如下:# echo -n Password1 | - * base64 + * Node节点密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,如下:# echo -n Password1 | base64 */ @NotEmpty @UCloudParam("Password") private String password; + + + + /** + * UK8S集群ID。 可从UK8S控制台获取。 - /** UK8S集群ID。 可从UK8S控制台获取。 */ + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** 云主机Id,为了保证节点正常运行,该主机配置不得低于2C4G。 */ + + + + /** + * 云主机Id,为了保证节点正常运行,该主机配置不得低于2C4G。 + */ @NotEmpty @UCloudParam("UHostId") private String uHostId; - - /** 默认110,生产环境建议小于等于110。 */ + + + + /** + * 默认110,生产环境建议小于等于110。 + */ @UCloudParam("MaxPods") private Integer maxPods; - - /** Node节点标签。key=value形式,多组用”,“隔开,最多5组。 如env=pro,type=game */ + + + + /** + * Node节点标签。key=value形式,多组用”,“隔开,最多5组。 如env=pro,type=game + */ @UCloudParam("Labels") private String labels; - - /** 该云主机所属子网Id。 */ + + + + /** + * 该云主机所属子网Id。 + */ @UCloudParam("SubnetId") private String subnetId; - - /** 镜像 Id,不填时后台程序会自动选用一个可用的镜像 Id,支持用户自定义镜像,自定义镜像必须基于基础镜像制作。 */ + + + + /** + * 镜像 Id,不填时后台程序会自动选用一个可用的镜像 Id,支持用户自定义镜像,自定义镜像必须基于基础镜像制作。 + */ @UCloudParam("ImageId") private String imageId; - - /** 用于标示添加完节点后是否将节点临时禁用. 传入 "true" 表示禁用,传入其它或不传表示不禁用 */ + + + + /** + * 用于标示添加完节点后是否将节点临时禁用. 传入 "true" 表示禁用,传入其它或不传表示不禁用 + */ @UCloudParam("DisableSchedule") private Boolean disableSchedule; - - /** 用户自定义数据。当镜像支持Cloud-init Feature时可填写此字段。注意:1、总数据量大小不超过 16K;2、使用base64编码。 */ + + + + /** + * 用户自定义数据。当镜像支持Cloud-init Feature时可填写此字段。注意:1、总数据量大小不超过 16K;2、使用base64编码。 + */ @UCloudParam("UserData") private String userData; - - /** 用户自定义Shell脚本。与UserData的区别在于InitScript在节点初始化完毕后才执行,UserData则是云主机初始化时执行。 */ + + + + /** + * 用户自定义Shell脚本。与UserData的区别在于InitScript在节点初始化完毕后才执行,UserData则是云主机初始化时执行。 + */ @UCloudParam("InitScript") private String initScript; - + + public String getRegion() { return region; } @@ -86,7 +142,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -94,7 +150,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -102,7 +158,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPassword() { return password; } @@ -110,7 +166,7 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } - + public String getClusterId() { return clusterId; } @@ -118,7 +174,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public String getUHostId() { return uHostId; } @@ -126,7 +182,7 @@ public String getUHostId() { public void setUHostId(String uHostId) { this.uHostId = uHostId; } - + public Integer getMaxPods() { return maxPods; } @@ -134,7 +190,7 @@ public Integer getMaxPods() { public void setMaxPods(Integer maxPods) { this.maxPods = maxPods; } - + public String getLabels() { return labels; } @@ -142,7 +198,7 @@ public String getLabels() { public void setLabels(String labels) { this.labels = labels; } - + public String getSubnetId() { return subnetId; } @@ -150,7 +206,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getImageId() { return imageId; } @@ -158,7 +214,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public Boolean getDisableSchedule() { return disableSchedule; } @@ -166,7 +222,7 @@ public Boolean getDisableSchedule() { public void setDisableSchedule(Boolean disableSchedule) { this.disableSchedule = disableSchedule; } - + public String getUserData() { return userData; } @@ -174,7 +230,7 @@ public String getUserData() { public void setUserData(String userData) { this.userData = userData; } - + public String getInitScript() { return initScript; } @@ -182,4 +238,14 @@ public String getInitScript() { public void setInitScript(String initScript) { this.initScript = initScript; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SExistingUHostResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SExistingUHostResponse.java index f4542437..5b191ec9 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SExistingUHostResponse.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SExistingUHostResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class AddUK8SExistingUHostResponse extends Response {} +public class AddUK8SExistingUHostResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SNodeGroupRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SNodeGroupRequest.java index d28a1935..4aab3c21 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SNodeGroupRequest.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SNodeGroupRequest.java @@ -1,103 +1,170 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AddUK8SNodeGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 节点池名字 */ + + + + /** + * 节点池名字 + */ @NotEmpty @UCloudParam("NodeGroupName") private String nodeGroupName; - - /** 集群ID */ + + + + /** + * 集群ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** 镜像ID */ + + + + /** + * 镜像ID + */ @UCloudParam("ImageId") private String imageId; - - /** 云主机机型。枚举值["N", "C", "G", "O", "OS"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 */ + + + + /** + * 云主机机型。枚举值["N", "C", "G", "O", "OS"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + */ @UCloudParam("MachineType") private String machineType; - + + + /** - * 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", - * "Intel/Skylake", "Intel/Cascadelake";"Intel/CascadelakeR"; - * “Amd/Epyc2”,"Amd/Auto"],默认值是"Intel/Auto" + * 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake";"Intel/CascadelakeR"; “Amd/Epyc2”,"Amd/Auto"],默认值是"Intel/Auto" */ @UCloudParam("MinimalCpuPlatform") private String minimalCpuPlatform; - - /** GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) */ + + + + /** + * GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) + */ @UCloudParam("CPU") private Integer cpu; - - /** 内存大小。单位:MB */ + + + + /** + * 内存大小。单位:MB + */ @UCloudParam("Mem") private Integer mem; - - /** GPU类型 */ + + + + /** + * GPU类型 + */ @UCloudParam("GpuType") private String gpuType; - - /** GPU卡核心数 */ + + + + /** + * GPU卡核心数 + */ @UCloudParam("GPU") private Integer gpu; - - /** 磁盘类型 */ + + + + /** + * 磁盘类型 + */ @UCloudParam("BootDiskType") private String bootDiskType; - - /** 数据磁盘大小 */ + + + + /** + * 数据磁盘大小 + */ @UCloudParam("DataDiskSize") private Integer dataDiskSize; - - /** 磁盘类型 */ + + + + /** + * 磁盘类型 + */ @UCloudParam("DataDiskType") private String dataDiskType; - - /** 业务组 */ + + + + /** + * 业务组 + */ @UCloudParam("Tag") private String tag; - - /** 计费模式 */ + + + + /** + * 计费模式 + */ @UCloudParam("ChargeType") private String chargeType; - + + public String getRegion() { return region; } @@ -105,7 +172,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -113,7 +180,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -121,7 +188,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNodeGroupName() { return nodeGroupName; } @@ -129,7 +196,7 @@ public String getNodeGroupName() { public void setNodeGroupName(String nodeGroupName) { this.nodeGroupName = nodeGroupName; } - + public String getClusterId() { return clusterId; } @@ -137,7 +204,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public String getImageId() { return imageId; } @@ -145,7 +212,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getMachineType() { return machineType; } @@ -153,7 +220,7 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } - + public String getMinimalCpuPlatform() { return minimalCpuPlatform; } @@ -161,7 +228,7 @@ public String getMinimalCpuPlatform() { public void setMinimalCpuPlatform(String minimalCpuPlatform) { this.minimalCpuPlatform = minimalCpuPlatform; } - + public Integer getCPU() { return cpu; } @@ -169,7 +236,7 @@ public Integer getCPU() { public void setCPU(Integer cpu) { this.cpu = cpu; } - + public Integer getMem() { return mem; } @@ -177,7 +244,7 @@ public Integer getMem() { public void setMem(Integer mem) { this.mem = mem; } - + public String getGpuType() { return gpuType; } @@ -185,7 +252,7 @@ public String getGpuType() { public void setGpuType(String gpuType) { this.gpuType = gpuType; } - + public Integer getGPU() { return gpu; } @@ -193,7 +260,7 @@ public Integer getGPU() { public void setGPU(Integer gpu) { this.gpu = gpu; } - + public String getBootDiskType() { return bootDiskType; } @@ -201,7 +268,7 @@ public String getBootDiskType() { public void setBootDiskType(String bootDiskType) { this.bootDiskType = bootDiskType; } - + public Integer getDataDiskSize() { return dataDiskSize; } @@ -209,7 +276,7 @@ public Integer getDataDiskSize() { public void setDataDiskSize(Integer dataDiskSize) { this.dataDiskSize = dataDiskSize; } - + public String getDataDiskType() { return dataDiskType; } @@ -217,7 +284,7 @@ public String getDataDiskType() { public void setDataDiskType(String dataDiskType) { this.dataDiskType = dataDiskType; } - + public String getTag() { return tag; } @@ -225,7 +292,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getChargeType() { return chargeType; } @@ -233,4 +300,14 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SNodeGroupResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SNodeGroupResponse.java index 373bc5a3..3e31db5f 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SNodeGroupResponse.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SNodeGroupResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class AddUK8SNodeGroupResponse extends Response { - /** 节点池ID */ + + + /** + * 节点池ID + */ @SerializedName("NodeGroupId") private String nodeGroupId; - + + public String getNodeGroupId() { return nodeGroupId; } @@ -31,4 +41,14 @@ public String getNodeGroupId() { public void setNodeGroupId(String nodeGroupId) { this.nodeGroupId = nodeGroupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SPHostNodeRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SPHostNodeRequest.java index 0431014c..a3181290 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SPHostNodeRequest.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SPHostNodeRequest.java @@ -1,102 +1,173 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AddUK8SPHostNodeRequest extends Request { - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** UK8S集群ID。 可从UK8S控制台获取。 */ + + + + /** + * UK8S集群ID。 可从UK8S控制台获取。 + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** 最大创建Node节点数量,取值范围是[1,10]。 */ + + + + /** + * 最大创建Node节点数量,取值范围是[1,10]。 + */ @NotEmpty @UCloudParam("Count") private Integer count; - + + + /** - * Node节点密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,如下:# echo -n Password1 | - * base64 + * Node节点密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,如下:# echo -n Password1 | base64 */ @NotEmpty @UCloudParam("Password") private String password; - - /** 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ 默认为月付 */ + + + + /** + * 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ 默认为月付 + */ @NotEmpty @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长。默认: 1。月付时,此参数传0,代表了购买至月末。 */ + + + + /** + * 购买时长。默认: 1。月付时,此参数传0,代表了购买至月末。 + */ @UCloudParam("Quantity") private Integer quantity; - - /** Node节点标签。key=value形式,多组用”,“隔开,最多5组。 如env=pro,type=game */ + + + + /** + * Node节点标签。key=value形式,多组用”,“隔开,最多5组。 如env=pro,type=game + */ @UCloudParam("Labels") private String labels; - - /** 默认110,生产环境建议小于等于110。 */ + + + + /** + * 默认110,生产环境建议小于等于110。 + */ @UCloudParam("MaxPods") private Integer maxPods; - - /** 物理机类型,默认为:db-2(基础型-SAS-V3) */ + + + + /** + * 物理机类型,默认为:db-2(基础型-SAS-V3) + */ @UCloudParam("Type") private String type; - - /** Raid配置,默认Raid10 支持:Raid0、Raid1、Raid5、Raid10,NoRaid */ + + + + /** + * Raid配置,默认Raid10 支持:Raid0、Raid1、Raid5、Raid10,NoRaid + */ @UCloudParam("Raid") private String raid; - - /** 网络环境,可选千兆:1G ,万兆:10G, 默认1G。 */ + + + + /** + * 网络环境,可选千兆:1G ,万兆:10G, 默认1G。 + */ @UCloudParam("NIC") private String nic; - - /** 子网 ID。默认为集群创建时填写的子网ID,也可以填写集群同VPC内的子网ID。 */ + + + + /** + * 子网 ID。默认为集群创建时填写的子网ID,也可以填写集群同VPC内的子网ID。 + */ @UCloudParam("SubnetId") private String subnetId; - - /** 镜像 Id,不填时后台程序会自动选用一个可用的镜像 Id,支持用户自定义镜像,自定义镜像必须基于基础镜像制作。 */ + + + + /** + * 镜像 Id,不填时后台程序会自动选用一个可用的镜像 Id,支持用户自定义镜像,自定义镜像必须基于基础镜像制作。 + */ @UCloudParam("ImageId") private String imageId; - - /** 用于标示添加完节点后是否将节点临时禁用. 传入 "true" 表示禁用,传入其它或不传表示不禁用 */ + + + + /** + * 用于标示添加完节点后是否将节点临时禁用. 传入 "true" 表示禁用,传入其它或不传表示不禁用 + */ @UCloudParam("DisableSchedule") private Boolean disableSchedule; - - /** 用户自定义Shell脚本。与UserData的区别在于InitScript在节点初始化完毕后才执行。 */ + + + + /** + * 用户自定义Shell脚本。与UserData的区别在于InitScript在节点初始化完毕后才执行。 + */ @UCloudParam("InitScript") private String initScript; - + + public String getZone() { return zone; } @@ -104,7 +175,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -112,7 +183,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getRegion() { return region; } @@ -120,7 +191,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getClusterId() { return clusterId; } @@ -128,7 +199,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public Integer getCount() { return count; } @@ -136,7 +207,7 @@ public Integer getCount() { public void setCount(Integer count) { this.count = count; } - + public String getPassword() { return password; } @@ -144,7 +215,7 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } - + public String getChargeType() { return chargeType; } @@ -152,7 +223,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -160,7 +231,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getLabels() { return labels; } @@ -168,7 +239,7 @@ public String getLabels() { public void setLabels(String labels) { this.labels = labels; } - + public Integer getMaxPods() { return maxPods; } @@ -176,7 +247,7 @@ public Integer getMaxPods() { public void setMaxPods(Integer maxPods) { this.maxPods = maxPods; } - + public String getType() { return type; } @@ -184,7 +255,7 @@ public String getType() { public void setType(String type) { this.type = type; } - + public String getRaid() { return raid; } @@ -192,7 +263,7 @@ public String getRaid() { public void setRaid(String raid) { this.raid = raid; } - + public String getNIC() { return nic; } @@ -200,7 +271,7 @@ public String getNIC() { public void setNIC(String nic) { this.nic = nic; } - + public String getSubnetId() { return subnetId; } @@ -208,7 +279,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getImageId() { return imageId; } @@ -216,7 +287,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public Boolean getDisableSchedule() { return disableSchedule; } @@ -224,7 +295,7 @@ public Boolean getDisableSchedule() { public void setDisableSchedule(Boolean disableSchedule) { this.disableSchedule = disableSchedule; } - + public String getInitScript() { return initScript; } @@ -232,4 +303,14 @@ public String getInitScript() { public void setInitScript(String initScript) { this.initScript = initScript; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SPHostNodeResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SPHostNodeResponse.java index def6b638..d3504b44 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SPHostNodeResponse.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SPHostNodeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class AddUK8SPHostNodeResponse extends Response {} +public class AddUK8SPHostNodeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SUHostNodeRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SUHostNodeRequest.java index 347d28d5..a1efe1bb 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SUHostNodeRequest.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SUHostNodeRequest.java @@ -1,146 +1,239 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AddUK8SUHostNodeRequest extends Request { - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** UK8S集群ID。 可从UK8S控制台获取。 */ + + + + /** + * UK8S集群ID。 可从UK8S控制台获取。 + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** 虚拟CPU核数。可选参数:2-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。 */ + + + + /** + * 虚拟CPU核数。可选参数:2-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。 + */ @NotEmpty @UCloudParam("CPU") private Integer cpu; - - /** 创建Node节点数量,取值范围是[1,50]。 */ + + + + /** + * 创建Node节点数量,取值范围是[1,50]。 + */ @NotEmpty @UCloudParam("Count") private Integer count; - + + + /** - * Node节点密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,如下:# echo -n Password1 | - * base64 + * Node节点密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,如下:# echo -n Password1 | base64 */ @NotEmpty @UCloudParam("Password") private String password; - - /** 内存大小。单位:MB。范围 :[4096, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192 */ + + + + /** + * 内存大小。单位:MB。范围 :[4096, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192 + */ @NotEmpty @UCloudParam("Mem") private Integer mem; - + + + /** - * 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > - * Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\ 默认为月付 + * 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\ 默认为月付 */ @NotEmpty @UCloudParam("ChargeType") private String chargeType; - - /** 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘 */ + + + + /** + * 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘 + */ @UCloudParam("BootDiskType") private String bootDiskType; - - /** 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘 */ + + + + /** + * 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘 + */ @UCloudParam("DataDiskType") private String dataDiskType; - - /** 数据磁盘大小,单位GB。默认0。范围 :[20, 1000] */ + + + + /** + * 数据磁盘大小,单位GB。默认0。范围 :[20, 1000] + */ @UCloudParam("DataDiskSize") private Integer dataDiskSize; - - /** 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。 */ + + + + /** + * 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 云主机机型。枚举值["N", "C", "G", "O", "OS"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 */ + + + + /** + * 云主机机型。枚举值["N", "C", "G", "O", "OS"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + */ @UCloudParam("MachineType") private String machineType; - + + + /** - * 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", - * "Intel/Skylake", "Intel/Cascadelake";"Intel/CascadelakeR"; - * “Amd/Epyc2”,"Amd/Auto"],默认值是"Intel/Auto" + * 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake";"Intel/CascadelakeR"; “Amd/Epyc2”,"Amd/Auto"],默认值是"Intel/Auto" */ @UCloudParam("MinmalCpuPlatform") private String minmalCpuPlatform; - - /** GPU类型,枚举值["K80", "P40", "V100",],MachineType为G时必填 */ + + + + /** + * GPU类型,枚举值["K80", "P40", "V100",],MachineType为G时必填 + */ @UCloudParam("GpuType") private String gpuType; - - /** GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) */ + + + + /** + * GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) + */ @UCloudParam("GPU") private Integer gpu; - - /** Node节点标签。key=value形式,多组用”,“隔开,最多5组。 如env=pro,type=game */ + + + + /** + * Node节点标签。key=value形式,多组用”,“隔开,最多5组。 如env=pro,type=game + */ @UCloudParam("Labels") private String labels; - - /** 默认110,生产环境建议小于等于110。 */ + + + + /** + * 默认110,生产环境建议小于等于110。 + */ @UCloudParam("MaxPods") private Integer maxPods; - - /** 硬件隔离组id。可通过DescribeIsolationGroup获取。 */ + + + + /** + * 硬件隔离组id。可通过DescribeIsolationGroup获取。 + */ @UCloudParam("IsolationGroup") private String isolationGroup; - - /** 镜像 Id,不填时后台程序会自动选用一个可用的镜像 Id,支持用户自定义镜像,自定义镜像必须基于基础镜像制作。 */ + + + + /** + * 镜像 Id,不填时后台程序会自动选用一个可用的镜像 Id,支持用户自定义镜像,自定义镜像必须基于基础镜像制作。 + */ @UCloudParam("ImageId") private String imageId; - - /** 子网 ID。默认为集群创建时填写的子网ID,也可以填写集群同VPC内的子网ID。 */ + + + + /** + * 子网 ID。默认为集群创建时填写的子网ID,也可以填写集群同VPC内的子网ID。 + */ @UCloudParam("SubnetId") private String subnetId; - - /** 用于标示添加完节点后是否将节点临时禁用. 传入 "true" 表示禁用,传入其它或不传表示不禁用 */ + + + + /** + * 用于标示添加完节点后是否将节点临时禁用. 传入 "true" 表示禁用,传入其它或不传表示不禁用 + */ @UCloudParam("DisableSchedule") private Boolean disableSchedule; - - /** 用户自定义数据。当镜像支持Cloud-init Feature时可填写此字段。注意:1、总数据量大小不超过 16K;2、使用base64编码。 */ + + + + /** + * 用户自定义数据。当镜像支持Cloud-init Feature时可填写此字段。注意:1、总数据量大小不超过 16K;2、使用base64编码。 + */ @UCloudParam("UserData") private String userData; - - /** 用户自定义Shell脚本。与UserData的区别在于InitScript在节点初始化完毕后才执行,UserData则是云主机初始化时执行。 */ + + + + /** + * 用户自定义Shell脚本。与UserData的区别在于InitScript在节点初始化完毕后才执行,UserData则是云主机初始化时执行。 + */ @UCloudParam("InitScript") private String initScript; - + + public String getZone() { return zone; } @@ -148,7 +241,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -156,7 +249,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getRegion() { return region; } @@ -164,7 +257,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getClusterId() { return clusterId; } @@ -172,7 +265,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public Integer getCPU() { return cpu; } @@ -180,7 +273,7 @@ public Integer getCPU() { public void setCPU(Integer cpu) { this.cpu = cpu; } - + public Integer getCount() { return count; } @@ -188,7 +281,7 @@ public Integer getCount() { public void setCount(Integer count) { this.count = count; } - + public String getPassword() { return password; } @@ -196,7 +289,7 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } - + public Integer getMem() { return mem; } @@ -204,7 +297,7 @@ public Integer getMem() { public void setMem(Integer mem) { this.mem = mem; } - + public String getChargeType() { return chargeType; } @@ -212,7 +305,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getBootDiskType() { return bootDiskType; } @@ -220,7 +313,7 @@ public String getBootDiskType() { public void setBootDiskType(String bootDiskType) { this.bootDiskType = bootDiskType; } - + public String getDataDiskType() { return dataDiskType; } @@ -228,7 +321,7 @@ public String getDataDiskType() { public void setDataDiskType(String dataDiskType) { this.dataDiskType = dataDiskType; } - + public Integer getDataDiskSize() { return dataDiskSize; } @@ -236,7 +329,7 @@ public Integer getDataDiskSize() { public void setDataDiskSize(Integer dataDiskSize) { this.dataDiskSize = dataDiskSize; } - + public Integer getQuantity() { return quantity; } @@ -244,7 +337,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getMachineType() { return machineType; } @@ -252,7 +345,7 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } - + public String getMinmalCpuPlatform() { return minmalCpuPlatform; } @@ -260,7 +353,7 @@ public String getMinmalCpuPlatform() { public void setMinmalCpuPlatform(String minmalCpuPlatform) { this.minmalCpuPlatform = minmalCpuPlatform; } - + public String getGpuType() { return gpuType; } @@ -268,7 +361,7 @@ public String getGpuType() { public void setGpuType(String gpuType) { this.gpuType = gpuType; } - + public Integer getGPU() { return gpu; } @@ -276,7 +369,7 @@ public Integer getGPU() { public void setGPU(Integer gpu) { this.gpu = gpu; } - + public String getLabels() { return labels; } @@ -284,7 +377,7 @@ public String getLabels() { public void setLabels(String labels) { this.labels = labels; } - + public Integer getMaxPods() { return maxPods; } @@ -292,7 +385,7 @@ public Integer getMaxPods() { public void setMaxPods(Integer maxPods) { this.maxPods = maxPods; } - + public String getIsolationGroup() { return isolationGroup; } @@ -300,7 +393,7 @@ public String getIsolationGroup() { public void setIsolationGroup(String isolationGroup) { this.isolationGroup = isolationGroup; } - + public String getImageId() { return imageId; } @@ -308,7 +401,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getSubnetId() { return subnetId; } @@ -316,7 +409,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public Boolean getDisableSchedule() { return disableSchedule; } @@ -324,7 +417,7 @@ public Boolean getDisableSchedule() { public void setDisableSchedule(Boolean disableSchedule) { this.disableSchedule = disableSchedule; } - + public String getUserData() { return userData; } @@ -332,7 +425,7 @@ public String getUserData() { public void setUserData(String userData) { this.userData = userData; } - + public String getInitScript() { return initScript; } @@ -340,4 +433,14 @@ public String getInitScript() { public void setInitScript(String initScript) { this.initScript = initScript; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SUHostNodeResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SUHostNodeResponse.java index f69f8c88..943b15ee 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SUHostNodeResponse.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/AddUK8SUHostNodeResponse.java @@ -1,30 +1,40 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class AddUK8SUHostNodeResponse extends Response { - /** Node实例Id集合 */ + + + /** + * Node实例Id集合 + + */ @SerializedName("NodeIds") private List nodeIds; - + + public List getNodeIds() { return nodeIds; } @@ -32,4 +42,14 @@ public List getNodeIds() { public void setNodeIds(List nodeIds) { this.nodeIds = nodeIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SClusterV2Request.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SClusterV2Request.java index b2892dfb..5bcb4038 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SClusterV2Request.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SClusterV2Request.java @@ -1,139 +1,242 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateUK8SClusterV2Request extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 集群Node及Pod所属VPC */ + + + + /** + * 集群Node及Pod所属VPC + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - - /** 集群Node及Pod所属子网 */ + + + + /** + * 集群Node及Pod所属子网 + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - - /** Service 网段,用于分配ClusterIP,如172.17.0.0/16。该网段不能与集群所属VPC网段重叠。 */ + + + + /** + * Service 网段,用于分配ClusterIP,如172.17.0.0/16。该网段不能与集群所属VPC网段重叠。 + */ @NotEmpty @UCloudParam("ServiceCIDR") private String serviceCIDR; - - /** 集群名称 */ + + + + /** + * 集群名称 + */ @NotEmpty @UCloudParam("ClusterName") private String clusterName; - - /** 集群节点密码,包括Master和Node。密码需包含最少一个大写字母,请使用base64进行编码,举例如下:# echo -n Password1 | base64 */ + + + + /** + * 集群节点密码,包括Master和Node。密码需包含最少一个大写字母,请使用base64进行编码,举例如下:# echo -n Password1 | base64 + */ @NotEmpty @UCloudParam("Password") private String password; - - /** */ + + + + /** + * + */ @UCloudParam("Master") private List master; - - /** Master节点的云主机机型(V2.0),如["N", "C", "O", "OS"],具体请参照云主机机型。 */ + + + + /** + * Master节点的云主机机型(V2.0),如["N", "C", "O", "OS"],具体请参照云主机机型。 + */ @NotEmpty @UCloudParam("MasterMachineType") private String masterMachineType; - - /** Master节点的虚拟CPU核数。可选参数:2-64(具体机型与CPU的对应关系参照控制台)。 */ + + + + /** + * Master节点的虚拟CPU核数。可选参数:2-64(具体机型与CPU的对应关系参照控制台)。 + */ @NotEmpty @UCloudParam("MasterCPU") private Integer masterCPU; - - /** Master节点的内存大小。单位:MB。范围 :[4096, 262144],取值为1024的倍数(可选范围参考控制台)。 */ + + + + /** + * Master节点的内存大小。单位:MB。范围 :[4096, 262144],取值为1024的倍数(可选范围参考控制台)。 + */ @NotEmpty @UCloudParam("MasterMem") private Integer masterMem; - - /** */ + + + + /** + * + */ @UCloudParam("Nodes") private List nodes; - - /** Master节点系统盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘 */ + + + + /** + * Master节点系统盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘 + */ @UCloudParam("MasterBootDiskType") private String masterBootDiskType; - - /** Master节点数据盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘 */ + + + + /** + * Master节点数据盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘 + */ @UCloudParam("MasterDataDiskType") private String masterDataDiskType; - + + + /** - * Master节点的最低cpu平台,不选则随机。枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", - * "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake"。 + * Master节点的最低cpu平台,不选则随机。枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake"。 */ @UCloudParam("MasterMinmalCpuPlatform") private String masterMinmalCpuPlatform; - - /** Master节点的数据盘大小,单位GB,默认为0。范围 :[20, 1000] */ + + + + /** + * Master节点的数据盘大小,单位GB,默认为0。范围 :[20, 1000] + */ @UCloudParam("MasterDataDiskSize") private Integer masterDataDiskSize; - - /** 集群所有节点的付费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限),默认按月。 */ + + + + /** + * 集群所有节点的付费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限),默认按月。 + */ @UCloudParam("ChargeType") private String chargeType; - - /** k8s集群的版本,版本信息请参考UK8S集群创建页,不指定的话默认为当前支持的最高版本。 */ + + + + /** + * k8s集群的版本,版本信息请参考UK8S集群创建页,不指定的话默认为当前支持的最高版本。 + */ @UCloudParam("K8sVersion") private String k8sVersion; - - /** 购买时长。默认为1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。 */ + + + + /** + * 购买时长。默认为1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 是否允许外网访问apiserver,开启:Yes 不开启:No。默认为No。 */ + + + + /** + * 是否允许外网访问apiserver,开启:Yes 不开启:No。默认为No。 + */ @UCloudParam("ExternalApiServer") private String externalApiServer; - - /** 【无效,已删除】当前将自动为Master节点创建隔离组,确保Master节点归属于不同物理机。 */ + + + + /** + * 【无效,已删除】当前将自动为Master节点创建隔离组,确保Master节点归属于不同物理机。 + */ @UCloudParam("MasterIsolationGroup") private String masterIsolationGroup; - - /** */ + + + + /** + * + */ @UCloudParam("KubeProxy") private KubeProxy kubeProxy; - - /** Master节点和Node节点的镜像 ID,不填则随机选择可用的基础镜像。支持用户自定义镜像。 */ + + + + /** + * Master节点和Node节点的镜像 ID,不填则随机选择可用的基础镜像。支持用户自定义镜像。 + */ @UCloudParam("ImageId") private String imageId; - - /** 用户自定义数据。注意:1、总数据量大小不超多16K;2、使用base64编码。 */ + + + + /** + * 用户自定义数据。注意:1、总数据量大小不超多16K;2、使用base64编码。 + */ @UCloudParam("UserData") private String userData; - - /** 用户自定义脚本,与UserData不同,自定义脚本将在集群安装完毕后执行。 注意:1、总数据量大小不超多16K;2、使用base64编码。 */ + + + + /** + * 用户自定义脚本,与UserData不同,自定义脚本将在集群安装完毕后执行。 +注意:1、总数据量大小不超多16K;2、使用base64编码。 + */ @UCloudParam("InitScript") private String initScript; - + + public String getRegion() { return region; } @@ -141,7 +244,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -149,7 +252,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -157,7 +260,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -165,7 +268,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getServiceCIDR() { return serviceCIDR; } @@ -173,7 +276,7 @@ public String getServiceCIDR() { public void setServiceCIDR(String serviceCIDR) { this.serviceCIDR = serviceCIDR; } - + public String getClusterName() { return clusterName; } @@ -181,7 +284,7 @@ public String getClusterName() { public void setClusterName(String clusterName) { this.clusterName = clusterName; } - + public String getPassword() { return password; } @@ -189,7 +292,7 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } - + public List getMaster() { return master; } @@ -197,7 +300,7 @@ public List getMaster() { public void setMaster(List master) { this.master = master; } - + public String getMasterMachineType() { return masterMachineType; } @@ -205,7 +308,7 @@ public String getMasterMachineType() { public void setMasterMachineType(String masterMachineType) { this.masterMachineType = masterMachineType; } - + public Integer getMasterCPU() { return masterCPU; } @@ -213,7 +316,7 @@ public Integer getMasterCPU() { public void setMasterCPU(Integer masterCPU) { this.masterCPU = masterCPU; } - + public Integer getMasterMem() { return masterMem; } @@ -221,7 +324,7 @@ public Integer getMasterMem() { public void setMasterMem(Integer masterMem) { this.masterMem = masterMem; } - + public List getNodes() { return nodes; } @@ -229,7 +332,7 @@ public List getNodes() { public void setNodes(List nodes) { this.nodes = nodes; } - + public String getMasterBootDiskType() { return masterBootDiskType; } @@ -237,7 +340,7 @@ public String getMasterBootDiskType() { public void setMasterBootDiskType(String masterBootDiskType) { this.masterBootDiskType = masterBootDiskType; } - + public String getMasterDataDiskType() { return masterDataDiskType; } @@ -245,7 +348,7 @@ public String getMasterDataDiskType() { public void setMasterDataDiskType(String masterDataDiskType) { this.masterDataDiskType = masterDataDiskType; } - + public String getMasterMinmalCpuPlatform() { return masterMinmalCpuPlatform; } @@ -253,7 +356,7 @@ public String getMasterMinmalCpuPlatform() { public void setMasterMinmalCpuPlatform(String masterMinmalCpuPlatform) { this.masterMinmalCpuPlatform = masterMinmalCpuPlatform; } - + public Integer getMasterDataDiskSize() { return masterDataDiskSize; } @@ -261,7 +364,7 @@ public Integer getMasterDataDiskSize() { public void setMasterDataDiskSize(Integer masterDataDiskSize) { this.masterDataDiskSize = masterDataDiskSize; } - + public String getChargeType() { return chargeType; } @@ -269,7 +372,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getK8sVersion() { return k8sVersion; } @@ -277,7 +380,7 @@ public String getK8sVersion() { public void setK8sVersion(String k8sVersion) { this.k8sVersion = k8sVersion; } - + public Integer getQuantity() { return quantity; } @@ -285,7 +388,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getExternalApiServer() { return externalApiServer; } @@ -293,7 +396,7 @@ public String getExternalApiServer() { public void setExternalApiServer(String externalApiServer) { this.externalApiServer = externalApiServer; } - + public String getMasterIsolationGroup() { return masterIsolationGroup; } @@ -301,7 +404,7 @@ public String getMasterIsolationGroup() { public void setMasterIsolationGroup(String masterIsolationGroup) { this.masterIsolationGroup = masterIsolationGroup; } - + public KubeProxy getKubeProxy() { return kubeProxy; } @@ -309,7 +412,7 @@ public KubeProxy getKubeProxy() { public void setKubeProxy(KubeProxy kubeProxy) { this.kubeProxy = kubeProxy; } - + public String getImageId() { return imageId; } @@ -317,7 +420,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getUserData() { return userData; } @@ -325,7 +428,7 @@ public String getUserData() { public void setUserData(String userData) { this.userData = userData; } - + public String getInitScript() { return initScript; } @@ -333,220 +436,285 @@ public String getInitScript() { public void setInitScript(String initScript) { this.initScript = initScript; } - - public static class KubeProxy extends Request { - - /** 集群kube-proxy模式。支持iptables和ipvs,默认为iptables。 */ - @UCloudParam("Mode") - private String mode; - - public String getMode() { - return mode; - } - - public void setMode(String mode) { - this.mode = mode; - } + + public static class KubeProxy extends Request { + + + /** + * 集群kube-proxy模式。支持iptables和ipvs,默认为iptables。 + */ + @UCloudParam("Mode") + private String mode; + + + public String getMode() { + return mode; } - public static class Master extends Request { - - /** - * Master节点所属可用区,需要设置 Master.0.Zone、 Master.1.Zone、Master.2.Zone 三个 Master 节点的可用区。 - * 三个节点可部署在不同可用区。参见 [可用区列表](../summary/regionlist.html) - */ - @NotEmpty - @UCloudParam("Zone") - private String zone; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } + public void setMode(String mode) { + this.mode = mode; } - - public static class Nodes extends Request { - - /** - * 一组Nodes节点所属可用区,可创建多组Nodes节点,如一组是CPU Nodes节点,另一组是GPU Nodes节点。参见 - * [可用区列表](../summary/regionlist.html) - */ - @NotEmpty - @UCloudParam("Zone") - private String zone; - - /** 一组Nodes节点云主机机型,如["N", "C", "O", "OS"],具体请参照云主机机型。 */ - @NotEmpty - @UCloudParam("MachineType") - private String machineType; - - /** 一组Node节点的虚拟CPU核数。单位:核,范围:[2, 64],可选范围参考控制台。 */ - @NotEmpty - @UCloudParam("CPU") - private Integer cpu; - - /** 一组Node节点的内存大小。单位:MB,范围 :[4096, 262144],取值为1024的倍数,可选范围参考控制台。 */ - @NotEmpty - @UCloudParam("Mem") - private Integer mem; - - /** 一组Node节点的数量,范围:[1,10]。 */ - @NotEmpty - @UCloudParam("Count") - private Integer count; - - /** 一组Node节点的隔离组Id,归属于同一隔离组的虚拟机节点将落在不同的物理机上,单个隔离组最多只能容纳8个节点。参见DescribeIsolationGroup。 */ - @UCloudParam("IsolationGroup") - private String isolationGroup; - - /** Node节点上可运行最大节点数,默认为110。 */ - @UCloudParam("MaxPods") - private Integer maxPods; - - /** Node节点标签,形式为key=value,多组Labels用”,“隔开,最多支持五组。 */ - @UCloudParam("Labels") - private String labels; - - /** 一组Node节点的系统盘类型,请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘 */ - @UCloudParam("BootDiskType") - private String bootDiskType; - - /** 一组Node节点的数据盘类型,请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘 */ - @UCloudParam("DataDiskType") - private String dataDiskType; - - /** - * Node节点的最低cpu平台,不选则随机。枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", - * "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake"。 - */ - @UCloudParam("MinmalCpuPlatform") - private String minmalCpuPlatform; - - /** 一组Node节点的GPU类型,枚举值["K80", "P40", "V100"],最新值参考Console。 */ - @UCloudParam("GpuType") - private String gpuType; - - /** 一组Node节点的GPU卡核心数,仅GPU机型支持此字段。 */ - @UCloudParam("GPU") - private Integer gpu; - - /** 数据磁盘大小,单位GB。默认0。范围 :[20, 1000] */ - @UCloudParam("DataDiskSize") - private Integer dataDiskSize; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getMachineType() { - return machineType; - } - - public void setMachineType(String machineType) { - this.machineType = machineType; + } + public static class Master extends Request { + + + /** + * Master节点所属可用区,需要设置 Master.0.Zone、 Master.1.Zone、Master.2.Zone 三个 Master 节点的可用区。 三个节点可部署在不同可用区。参见 [可用区列表](../summary/regionlist.html) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + public String getZone() { + return zone; + } - public Integer getCPU() { - return cpu; + public void setZone(String zone) { + this.zone = zone; + } + } + public static class Nodes extends Request { + + + /** + * 一组Nodes节点所属可用区,可创建多组Nodes节点,如一组是CPU Nodes节点,另一组是GPU Nodes节点。参见 [可用区列表](../summary/regionlist.html) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + + /** + * 一组Nodes节点云主机机型,如["N", "C", "O", "OS"],具体请参照云主机机型。 + */ + @NotEmpty + @UCloudParam("MachineType") + private String machineType; + + + + /** + * 一组Node节点的虚拟CPU核数。单位:核,范围:[2, 64],可选范围参考控制台。 + */ + @NotEmpty + @UCloudParam("CPU") + private Integer cpu; + + + + /** + * 一组Node节点的内存大小。单位:MB,范围 :[4096, 262144],取值为1024的倍数,可选范围参考控制台。 + */ + @NotEmpty + @UCloudParam("Mem") + private Integer mem; + + + + /** + * 一组Node节点的数量,范围:[1,10]。 + */ + @NotEmpty + @UCloudParam("Count") + private Integer count; + + + + /** + * 一组Node节点的隔离组Id,归属于同一隔离组的虚拟机节点将落在不同的物理机上,单个隔离组最多只能容纳8个节点。参见DescribeIsolationGroup。 + */ + @UCloudParam("IsolationGroup") + private String isolationGroup; + + + + /** + * Node节点上可运行最大节点数,默认为110。 + */ + @UCloudParam("MaxPods") + private Integer maxPods; + + + + /** + * Node节点标签,形式为key=value,多组Labels用”,“隔开,最多支持五组。 + */ + @UCloudParam("Labels") + private String labels; + + + + /** + * 一组Node节点的系统盘类型,请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘 + */ + @UCloudParam("BootDiskType") + private String bootDiskType; + + + + /** + * 一组Node节点的数据盘类型,请参考[[api:uhost-api:disk_type|磁盘类型]]。默认为SSD云盘 + */ + @UCloudParam("DataDiskType") + private String dataDiskType; + + + + /** + * Node节点的最低cpu平台,不选则随机。枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake"。 + */ + @UCloudParam("MinmalCpuPlatform") + private String minmalCpuPlatform; + + + + /** + * 一组Node节点的GPU类型,枚举值["K80", "P40", "V100"],最新值参考Console。 + */ + @UCloudParam("GpuType") + private String gpuType; + + + + /** + * 一组Node节点的GPU卡核心数,仅GPU机型支持此字段。 + */ + @UCloudParam("GPU") + private Integer gpu; + + + + /** + * 数据磁盘大小,单位GB。默认0。范围 :[20, 1000] + */ + @UCloudParam("DataDiskSize") + private Integer dataDiskSize; + + + public String getZone() { + return zone; + } - public void setCPU(Integer cpu) { - this.cpu = cpu; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getMachineType() { + return machineType; + } - public Integer getMem() { - return mem; - } + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public Integer getCPU() { + return cpu; + } - public void setMem(Integer mem) { - this.mem = mem; - } + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMem() { + return mem; + } - public Integer getCount() { - return count; - } + public void setMem(Integer mem) { + this.mem = mem; + } + + public Integer getCount() { + return count; + } - public void setCount(Integer count) { - this.count = count; - } + public void setCount(Integer count) { + this.count = count; + } + + public String getIsolationGroup() { + return isolationGroup; + } - public String getIsolationGroup() { - return isolationGroup; - } + public void setIsolationGroup(String isolationGroup) { + this.isolationGroup = isolationGroup; + } + + public Integer getMaxPods() { + return maxPods; + } - public void setIsolationGroup(String isolationGroup) { - this.isolationGroup = isolationGroup; - } + public void setMaxPods(Integer maxPods) { + this.maxPods = maxPods; + } + + public String getLabels() { + return labels; + } - public Integer getMaxPods() { - return maxPods; - } + public void setLabels(String labels) { + this.labels = labels; + } + + public String getBootDiskType() { + return bootDiskType; + } - public void setMaxPods(Integer maxPods) { - this.maxPods = maxPods; - } + public void setBootDiskType(String bootDiskType) { + this.bootDiskType = bootDiskType; + } + + public String getDataDiskType() { + return dataDiskType; + } - public String getLabels() { - return labels; - } + public void setDataDiskType(String dataDiskType) { + this.dataDiskType = dataDiskType; + } + + public String getMinmalCpuPlatform() { + return minmalCpuPlatform; + } - public void setLabels(String labels) { - this.labels = labels; - } + public void setMinmalCpuPlatform(String minmalCpuPlatform) { + this.minmalCpuPlatform = minmalCpuPlatform; + } + + public String getGpuType() { + return gpuType; + } - public String getBootDiskType() { - return bootDiskType; - } + public void setGpuType(String gpuType) { + this.gpuType = gpuType; + } + + public Integer getGPU() { + return gpu; + } - public void setBootDiskType(String bootDiskType) { - this.bootDiskType = bootDiskType; - } + public void setGPU(Integer gpu) { + this.gpu = gpu; + } + + public Integer getDataDiskSize() { + return dataDiskSize; + } - public String getDataDiskType() { - return dataDiskType; + public void setDataDiskSize(Integer dataDiskSize) { + this.dataDiskSize = dataDiskSize; + } + } +} - public void setDataDiskType(String dataDiskType) { - this.dataDiskType = dataDiskType; - } - public String getMinmalCpuPlatform() { - return minmalCpuPlatform; - } - public void setMinmalCpuPlatform(String minmalCpuPlatform) { - this.minmalCpuPlatform = minmalCpuPlatform; - } - public String getGpuType() { - return gpuType; - } - public void setGpuType(String gpuType) { - this.gpuType = gpuType; - } - public Integer getGPU() { - return gpu; - } - public void setGPU(Integer gpu) { - this.gpu = gpu; - } - public Integer getDataDiskSize() { - return dataDiskSize; - } - public void setDataDiskSize(Integer dataDiskSize) { - this.dataDiskSize = dataDiskSize; - } - } -} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SClusterV2Response.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SClusterV2Response.java index 337f9116..e2576a42 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SClusterV2Response.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/CreateUK8SClusterV2Response.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUK8SClusterV2Response extends Response { - /** 集群ID */ + + + /** + * 集群ID + */ @SerializedName("ClusterId") private String clusterId; - + + public String getClusterId() { return clusterId; } @@ -31,4 +41,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterNodeV2Request.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterNodeV2Request.java index 03d07321..1e27c1c8 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterNodeV2Request.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterNodeV2Request.java @@ -1,48 +1,76 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DelUK8SClusterNodeV2Request extends Request { - /** 项目ID项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; + + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + */ @NotEmpty @UCloudParam("Region") private String region; + + + + /** + * UK8S集群ID。 可从UK8S控制台获取。 - /** UK8S集群ID。 可从UK8S控制台获取。 */ + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** Node在UK8S处的唯一标示,如uk8s-reewqe5-sdasadsda。**非云主机或物理云主机资源Id** */ + + + + /** + * Node在UK8S处的唯一标示,如uk8s-reewqe5-sdasadsda。**非云主机或物理云主机资源Id** + */ @NotEmpty @UCloudParam("NodeId") private String nodeId; - - /** 删除节点时是否释放数据盘。 枚举值[true:释放,false: 不释放],默认为true。 */ + + + + /** + * 删除节点时是否释放数据盘。 枚举值[true:释放,false: 不释放],默认为true。 + */ @UCloudParam("ReleaseDataUDisk") private Boolean releaseDataUDisk; - + + public String getProjectId() { return projectId; } @@ -50,7 +78,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getRegion() { return region; } @@ -58,7 +86,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getClusterId() { return clusterId; } @@ -66,7 +94,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public String getNodeId() { return nodeId; } @@ -74,7 +102,7 @@ public String getNodeId() { public void setNodeId(String nodeId) { this.nodeId = nodeId; } - + public Boolean getReleaseDataUDisk() { return releaseDataUDisk; } @@ -82,4 +110,14 @@ public Boolean getReleaseDataUDisk() { public void setReleaseDataUDisk(Boolean releaseDataUDisk) { this.releaseDataUDisk = releaseDataUDisk; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterNodeV2Response.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterNodeV2Response.java index 1cbba1cf..aba34f4c 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterNodeV2Response.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterNodeV2Response.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DelUK8SClusterNodeV2Response extends Response {} +public class DelUK8SClusterNodeV2Response extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterRequest.java index 06cb4547..a6a1b859 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterRequest.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DelUK8SClusterRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 集群id */ + + + + /** + * 集群id + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** 是否删除节点挂载的数据盘。枚举值[true:删除,false: 不删除],默认不删除 */ + + + + /** + * 是否删除节点挂载的数据盘。枚举值[true:删除,false: 不删除],默认不删除 + */ @UCloudParam("ReleaseUDisk") private Boolean releaseUDisk; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -53,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -61,7 +83,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public Boolean getReleaseUDisk() { return releaseUDisk; } @@ -69,4 +91,14 @@ public Boolean getReleaseUDisk() { public void setReleaseUDisk(Boolean releaseUDisk) { this.releaseUDisk = releaseUDisk; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterResponse.java index 7d99ecc4..88cbad64 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterResponse.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DelUK8SClusterResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DelUK8SClusterResponse extends Response {} +public class DelUK8SClusterResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SClusterRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SClusterRequest.java index fe79c2cc..a2f03814 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SClusterRequest.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SClusterRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUK8SClusterRequest extends Request { - /** 所属区域 */ + + + /** + * 所属区域 + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目id */ + + + + /** + * 项目id + */ @UCloudParam("ProjectId") private String projectId; - - /** k8s集群ID */ + + + + /** + * k8s集群ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -57,4 +75,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SClusterResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SClusterResponse.java index 6badc85d..a7ca0efe 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SClusterResponse.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SClusterResponse.java @@ -1,110 +1,201 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUK8SClusterResponse extends Response { - /** 资源名字 */ + + + /** + * 资源名字 + */ @SerializedName("ClusterName") private String clusterName; - - /** 集群ID */ + + + + /** + * 集群ID + */ @SerializedName("ClusterId") private String clusterId; - - /** 所属VPC */ + + + + /** + * 所属VPC + */ @SerializedName("VPCId") private String vpcId; - - /** 所属子网 */ + + + + /** + * 所属子网 + */ @SerializedName("SubnetId") private String subnetId; - - /** Pod网段 */ + + + + /** + * Pod网段 + */ @SerializedName("PodCIDR") private String podCIDR; - - /** 服务网段 */ + + + + /** + * 服务网段 + */ @SerializedName("ServiceCIDR") private String serviceCIDR; - - /** Master 节点数量 */ + + + + /** + * Master 节点数量 + */ @SerializedName("MasterCount") private Integer masterCount; - - /** Master节点配置信息,具体参考UhostInfo。托管版不返回该信息 */ + + + + /** + * Master节点配置信息,具体参考UhostInfo。托管版不返回该信息 + */ @SerializedName("MasterList") private List masterList; - - /** Node节点配置信息,具体参考UhostInfo */ + + + + /** + * Node节点配置信息,具体参考UhostInfo + */ @SerializedName("NodeList") private List nodeList; - - /** 创建时间 */ + + + + /** + * 创建时间 + */ @SerializedName("CreateTime") private Integer createTime; - - /** Node节点数量 */ + + + + /** + * Node节点数量 + */ @SerializedName("NodeCount") private Integer nodeCount; - - /** 集群apiserver地址 */ + + + + /** + * 集群apiserver地址 + */ @SerializedName("ApiServer") private String apiServer; - - /** 状态 */ + + + + /** + * 状态 + */ @SerializedName("Status") private String status; - - /** 集群外部apiserver地址 */ + + + + /** + * 集群外部apiserver地址 + */ @SerializedName("ExternalApiServer") private String externalApiServer; - - /** kube-proxy配置 */ + + + + /** + * kube-proxy配置 + */ @SerializedName("KubeProxy") private KubeProxy kubeProxy; - - /** K8S版本 */ + + + + /** + * K8S版本 + */ @SerializedName("Version") private String version; - - /** 自定义或者默认的clusterdomain */ + + + + /** + * 自定义或者默认的clusterdomain + */ @SerializedName("ClusterDomain") private String clusterDomain; - - /** 集群etcd服务证书 */ + + + + /** + * 集群etcd服务证书 + */ @SerializedName("EtcdCert") private String etcdCert; - - /** 集群etcd服务密钥 */ + + + + /** + * 集群etcd服务密钥 + */ @SerializedName("EtcdKey") private String etcdKey; - - /** 集群CA根证书 */ + + + + /** + * 集群CA根证书 + */ @SerializedName("CACert") private String caCert; - - /** Master配置预警:Normal正常; Warning 需要升级; Error 需要紧急升级; */ + + + + /** + * Master配置预警:Normal正常; +Warning 需要升级; +Error 需要紧急升级; + */ @SerializedName("MasterResourceStatus") private String masterResourceStatus; - + + public String getClusterName() { return clusterName; } @@ -112,7 +203,7 @@ public String getClusterName() { public void setClusterName(String clusterName) { this.clusterName = clusterName; } - + public String getClusterId() { return clusterId; } @@ -120,7 +211,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public String getVPCId() { return vpcId; } @@ -128,7 +219,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -136,7 +227,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getPodCIDR() { return podCIDR; } @@ -144,7 +235,7 @@ public String getPodCIDR() { public void setPodCIDR(String podCIDR) { this.podCIDR = podCIDR; } - + public String getServiceCIDR() { return serviceCIDR; } @@ -152,7 +243,7 @@ public String getServiceCIDR() { public void setServiceCIDR(String serviceCIDR) { this.serviceCIDR = serviceCIDR; } - + public Integer getMasterCount() { return masterCount; } @@ -160,7 +251,7 @@ public Integer getMasterCount() { public void setMasterCount(Integer masterCount) { this.masterCount = masterCount; } - + public List getMasterList() { return masterList; } @@ -168,7 +259,7 @@ public List getMasterList() { public void setMasterList(List masterList) { this.masterList = masterList; } - + public List getNodeList() { return nodeList; } @@ -176,7 +267,7 @@ public List getNodeList() { public void setNodeList(List nodeList) { this.nodeList = nodeList; } - + public Integer getCreateTime() { return createTime; } @@ -184,7 +275,7 @@ public Integer getCreateTime() { public void setCreateTime(Integer createTime) { this.createTime = createTime; } - + public Integer getNodeCount() { return nodeCount; } @@ -192,7 +283,7 @@ public Integer getNodeCount() { public void setNodeCount(Integer nodeCount) { this.nodeCount = nodeCount; } - + public String getApiServer() { return apiServer; } @@ -200,7 +291,7 @@ public String getApiServer() { public void setApiServer(String apiServer) { this.apiServer = apiServer; } - + public String getStatus() { return status; } @@ -208,7 +299,7 @@ public String getStatus() { public void setStatus(String status) { this.status = status; } - + public String getExternalApiServer() { return externalApiServer; } @@ -216,7 +307,7 @@ public String getExternalApiServer() { public void setExternalApiServer(String externalApiServer) { this.externalApiServer = externalApiServer; } - + public KubeProxy getKubeProxy() { return kubeProxy; } @@ -224,7 +315,7 @@ public KubeProxy getKubeProxy() { public void setKubeProxy(KubeProxy kubeProxy) { this.kubeProxy = kubeProxy; } - + public String getVersion() { return version; } @@ -232,7 +323,7 @@ public String getVersion() { public void setVersion(String version) { this.version = version; } - + public String getClusterDomain() { return clusterDomain; } @@ -240,7 +331,7 @@ public String getClusterDomain() { public void setClusterDomain(String clusterDomain) { this.clusterDomain = clusterDomain; } - + public String getEtcdCert() { return etcdCert; } @@ -248,7 +339,7 @@ public String getEtcdCert() { public void setEtcdCert(String etcdCert) { this.etcdCert = etcdCert; } - + public String getEtcdKey() { return etcdKey; } @@ -256,7 +347,7 @@ public String getEtcdKey() { public void setEtcdKey(String etcdKey) { this.etcdKey = etcdKey; } - + public String getCACert() { return caCert; } @@ -264,7 +355,7 @@ public String getCACert() { public void setCACert(String caCert) { this.caCert = caCert; } - + public String getMasterResourceStatus() { return masterResourceStatus; } @@ -272,352 +363,474 @@ public String getMasterResourceStatus() { public void setMasterResourceStatus(String masterResourceStatus) { this.masterResourceStatus = masterResourceStatus; } - - public static class DiskSet extends Response { - - /** 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk */ - @SerializedName("Type") - private String type; - - /** 磁盘长ID */ - @SerializedName("DiskId") - private String diskId; - - /** UDisk名字(仅当磁盘是UDisk时返回) */ - @SerializedName("Name") - private String name; - - /** 磁盘盘符 */ - @SerializedName("Drive") - private String drive; - - /** 磁盘大小,单位: GB */ - @SerializedName("Size") - private Integer size; - - /** 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。 */ - @SerializedName("BackupType") - private String backupType; - - /** 当前主机的IOPS值 */ - @SerializedName("IOPS") - private Integer iops; - - /** Yes: 加密 No: 非加密 */ - @SerializedName("Encrypted") - private String encrypted; - - /** LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK */ - @SerializedName("DiskType") - private String diskType; - - /** True| False */ - @SerializedName("IsBoot") - private String isBoot; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getDiskId() { - return diskId; - } - - public void setDiskId(String diskId) { - this.diskId = diskId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getDrive() { - return drive; - } - - public void setDrive(String drive) { - this.drive = drive; - } - - public Integer getSize() { - return size; - } - - public void setSize(Integer size) { - this.size = size; - } - - public String getBackupType() { - return backupType; - } - - public void setBackupType(String backupType) { - this.backupType = backupType; - } - - public Integer getIOPS() { - return iops; - } - - public void setIOPS(Integer iops) { - this.iops = iops; - } - - public String getEncrypted() { - return encrypted; - } - - public void setEncrypted(String encrypted) { - this.encrypted = encrypted; - } - - public String getDiskType() { - return diskType; - } - - public void setDiskType(String diskType) { - this.diskType = diskType; - } - - public String getIsBoot() { - return isBoot; - } - - public void setIsBoot(String isBoot) { - this.isBoot = isBoot; + + public static class DiskSet extends Response { + + + /** + * 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk + */ + @SerializedName("Type") + private String type; + + + + /** + * 磁盘长ID + */ + @SerializedName("DiskId") + private String diskId; + + + + /** + * UDisk名字(仅当磁盘是UDisk时返回) + */ + @SerializedName("Name") + private String name; + + + + /** + * 磁盘盘符 + */ + @SerializedName("Drive") + private String drive; + + + + /** + * 磁盘大小,单位: GB + */ + @SerializedName("Size") + private Integer size; + + + + /** + * 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。 + */ + @SerializedName("BackupType") + private String backupType; + + + + /** + * 当前主机的IOPS值 + */ + @SerializedName("IOPS") + private Integer iops; + + + + /** + * Yes: 加密 No: 非加密 + */ + @SerializedName("Encrypted") + private String encrypted; + + + + /** + * LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK + */ + @SerializedName("DiskType") + private String diskType; + + + + /** + * True| False + */ + @SerializedName("IsBoot") + private String isBoot; + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getDiskId() { + return diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDrive() { + return drive; + } + + public void setDrive(String drive) { + this.drive = drive; + } + + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getBackupType() { + return backupType; + } + + public void setBackupType(String backupType) { + this.backupType = backupType; + } + + public Integer getIOPS() { + return iops; + } + + public void setIOPS(Integer iops) { + this.iops = iops; + } + + public String getEncrypted() { + return encrypted; + } + + public void setEncrypted(String encrypted) { + this.encrypted = encrypted; + } + + public String getDiskType() { + return diskType; + } + + public void setDiskType(String diskType) { + this.diskType = diskType; + } + + public String getIsBoot() { + return isBoot; + } + + public void setIsBoot(String isBoot) { + this.isBoot = isBoot; + } + } + public static class IPSet extends Response { + + + /** + * 国际: Internation,BGP: Bgp,内网: Private + */ + @SerializedName("Type") + private String type; + + + + /** + * IP资源ID (内网IP无对应的资源ID) + */ + @SerializedName("IPId") + private String ipId; + + + + /** + * IP地址 + */ + @SerializedName("IP") + private String ip; + + + + /** + * IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。 + */ + @SerializedName("Default") + private String fDefault; + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getIPId() { + return ipId; + } + + public void setIPId(String ipId) { + this.ipId = ipId; + } + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getDefault() { + return fDefault; + } + + public void setDefault(String fDefault) { + this.fDefault = fDefault; + } + + } + public static class KubeProxy extends Response { + + + /** + * KubeProxy模式,枚举值为[ipvs,iptables] + */ + @SerializedName("Mode") + private String mode; + + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + } + public static class UhostInfo extends Response { + + + /** + * 所在机房 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 主机名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * Cpu数量 + */ + @SerializedName("CPU") + private Integer cpu; + + + + /** + * 内存 + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * 节点IP信息 + */ + @SerializedName("IPSet") + private List ipSet; + + + + /** + * 节点磁盘信息 + */ + @SerializedName("DiskSet") + private List diskSet; + + + + /** + * 主机ID + */ + @SerializedName("NodeId") + private String nodeId; + + + + /** + * 镜像信息 + */ + @SerializedName("OsName") + private String osName; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 到期时间 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 主机状态 + */ + @SerializedName("State") + private String state; + + + + /** + * 节点类型:uhost表示云主机;uphost表示物理云主机 + */ + @SerializedName("NodeType") + private String nodeType; + + + public String getZone() { + return zone; } - public static class IPSet extends Response { - - /** 国际: Internation,BGP: Bgp,内网: Private */ - @SerializedName("Type") - private String type; - - /** IP资源ID (内网IP无对应的资源ID) */ - @SerializedName("IPId") - private String ipId; - - /** IP地址 */ - @SerializedName("IP") - private String ip; - - /** IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - /** 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。 */ - @SerializedName("Default") - private String fDefault; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getIPId() { - return ipId; - } - - public void setIPId(String ipId) { - this.ipId = ipId; - } - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } - - public Integer getBandwidth() { - return bandwidth; - } - - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } - - public String getDefault() { - return fDefault; - } - - public void setDefault(String fDefault) { - this.fDefault = fDefault; - } + public void setZone(String zone) { + this.zone = zone; } - - public static class KubeProxy extends Response { - - /** KubeProxy模式,枚举值为[ipvs,iptables] */ - @SerializedName("Mode") - private String mode; - - public String getMode() { - return mode; - } - - public void setMode(String mode) { - this.mode = mode; - } + + public String getName() { + return name; } - public static class UhostInfo extends Response { - - /** 所在机房 */ - @SerializedName("Zone") - private String zone; - - /** 主机名称 */ - @SerializedName("Name") - private String name; - - /** Cpu数量 */ - @SerializedName("CPU") - private Integer cpu; - - /** 内存 */ - @SerializedName("Memory") - private Integer memory; - - /** 节点IP信息 */ - @SerializedName("IPSet") - private List ipSet; - - /** 节点磁盘信息 */ - @SerializedName("DiskSet") - private List diskSet; - - /** 主机ID */ - @SerializedName("NodeId") - private String nodeId; - - /** 镜像信息 */ - @SerializedName("OsName") - private String osName; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 到期时间 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 主机状态 */ - @SerializedName("State") - private String state; - - /** 节点类型:uhost表示云主机;uphost表示物理云主机 */ - @SerializedName("NodeType") - private String nodeType; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getCPU() { - return cpu; - } + public void setName(String name) { + this.name = name; + } + + public Integer getCPU() { + return cpu; + } - public void setCPU(Integer cpu) { - this.cpu = cpu; - } + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } - public Integer getMemory() { - return memory; - } + public void setMemory(Integer memory) { + this.memory = memory; + } + + public List getIPSet() { + return ipSet; + } - public void setMemory(Integer memory) { - this.memory = memory; - } + public void setIPSet(List ipSet) { + this.ipSet = ipSet; + } + + public List getDiskSet() { + return diskSet; + } - public List getIPSet() { - return ipSet; - } + public void setDiskSet(List diskSet) { + this.diskSet = diskSet; + } + + public String getNodeId() { + return nodeId; + } - public void setIPSet(List ipSet) { - this.ipSet = ipSet; - } + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public String getOsName() { + return osName; + } - public List getDiskSet() { - return diskSet; - } + public void setOsName(String osName) { + this.osName = osName; + } + + public Integer getCreateTime() { + return createTime; + } - public void setDiskSet(List diskSet) { - this.diskSet = diskSet; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public String getNodeId() { - return nodeId; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getState() { + return state; + } - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } + public void setState(String state) { + this.state = state; + } + + public String getNodeType() { + return nodeType; + } - public String getOsName() { - return osName; + public void setNodeType(String nodeType) { + this.nodeType = nodeType; + } + } +} - public void setOsName(String osName) { - this.osName = osName; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getExpireTime() { - return expireTime; - } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } - public String getState() { - return state; - } - public void setState(String state) { - this.state = state; - } - public String getNodeType() { - return nodeType; - } - public void setNodeType(String nodeType) { - this.nodeType = nodeType; - } - } -} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SImageRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SImageRequest.java index 736bdba4..72684016 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SImageRequest.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SImageRequest.java @@ -1,38 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUK8SImageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - + + public String getRegion() { return region; } @@ -40,7 +58,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -48,7 +66,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -56,4 +74,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SImageResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SImageResponse.java index 87421a8e..20686a17 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SImageResponse.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SImageResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUK8SImageResponse extends Response { - /** 虚拟机可用镜像集合, 详见ImageInfo 数组 */ + + + /** + * 虚拟机可用镜像集合, 详见ImageInfo 数组 + */ @SerializedName("ImageSet") private List imageSet; - - /** 物理机可用镜像集合, 详见ImageInfo 数组 */ + + + + /** + * 物理机可用镜像集合, 详见ImageInfo 数组 + */ @SerializedName("PHostImageSet") private List pHostImageSet; - + + public List getImageSet() { return imageSet; } @@ -36,7 +49,7 @@ public List getImageSet() { public void setImageSet(List imageSet) { this.imageSet = imageSet; } - + public List getPHostImageSet() { return pHostImageSet; } @@ -44,55 +57,81 @@ public List getPHostImageSet() { public void setPHostImageSet(List pHostImageSet) { this.pHostImageSet = pHostImageSet; } + + public static class ImageInfo extends Response { + + + /** + * 可用区 Id + */ + @SerializedName("ZoneId") + private Integer zoneId; + + + + /** + * 镜像 Id + */ + @SerializedName("ImageId") + private String imageId; + + + + /** + * 镜像名称 + */ + @SerializedName("ImageName") + private String imageName; + + + + /** + * 该镜像是否支持GPU机型,枚举值[true:不支持,false:支持]。 + */ + @SerializedName("NotSupportGPU") + private Boolean notSupportGPU; + + + public Integer getZoneId() { + return zoneId; + } - public static class ImageInfo extends Response { + public void setZoneId(Integer zoneId) { + this.zoneId = zoneId; + } + + public String getImageId() { + return imageId; + } - /** 可用区 Id */ - @SerializedName("ZoneId") - private Integer zoneId; + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getImageName() { + return imageName; + } - /** 镜像 Id */ - @SerializedName("ImageId") - private String imageId; + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public Boolean getNotSupportGPU() { + return notSupportGPU; + } - /** 镜像名称 */ - @SerializedName("ImageName") - private String imageName; + public void setNotSupportGPU(Boolean notSupportGPU) { + this.notSupportGPU = notSupportGPU; + } + + } +} - /** 该镜像是否支持GPU机型,枚举值[true:不支持,false:支持]。 */ - @SerializedName("NotSupportGPU") - private Boolean notSupportGPU; - public Integer getZoneId() { - return zoneId; - } - public void setZoneId(Integer zoneId) { - this.zoneId = zoneId; - } - public String getImageId() { - return imageId; - } - public void setImageId(String imageId) { - this.imageId = imageId; - } - public String getImageName() { - return imageName; - } - public void setImageName(String imageName) { - this.imageName = imageName; - } - public Boolean getNotSupportGPU() { - return notSupportGPU; - } - public void setNotSupportGPU(Boolean notSupportGPU) { - this.notSupportGPU = notSupportGPU; - } - } -} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SNodeRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SNodeRequest.java index 457d5b30..2b702ce2 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SNodeRequest.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SNodeRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUK8SNodeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UK8S 集群 Id */ + + + + /** + * UK8S 集群 Id + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** K8S 节点IP或者节点ID */ + + + + /** + * K8S 节点IP或者节点ID + */ @NotEmpty @UCloudParam("Name") private String name; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -65,7 +84,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public String getName() { return name; } @@ -73,4 +92,14 @@ public String getName() { public void setName(String name) { this.name = name; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SNodeResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SNodeResponse.java index 70f2b080..9b38c3ce 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SNodeResponse.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SNodeResponse.java @@ -1,138 +1,255 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUK8SNodeResponse extends Response { - /** 节点名称 */ + + + /** + * 节点名称 + */ @SerializedName("Name") private String name; - - /** 字符串数组,每一项是类似 "kubernetes.io/arch=amd64" 的标签 */ + + + + /** + * 字符串数组,每一项是类似 "kubernetes.io/arch=amd64" 的标签 + */ @SerializedName("Labels") private List labels; - - /** 字符串数组,每一项是类似 "node.alpha.kubernetes.io/ttl=0" 的注解 */ + + + + /** + * 字符串数组,每一项是类似 "node.alpha.kubernetes.io/ttl=0" 的注解 + */ @SerializedName("Annotations") private List annotations; - - /** 时间戳,单位是 秒 */ + + + + /** + * 时间戳,单位是 秒 + */ @SerializedName("CreationTimestamp") private Integer creationTimestamp; - - /** 字符串,如:"UCloud://cn-sh2-02//uk8s-vsc0vgob-n-mpzxc" */ + + + + /** + * 字符串,如:"UCloud://cn-sh2-02//uk8s-vsc0vgob-n-mpzxc" + */ @SerializedName("ProviderID") private String providerID; - - /** 内核版本,如:"4.19.0-6.el7.ucloud.x86_64" */ + + + + /** + * 内核版本,如:"4.19.0-6.el7.ucloud.x86_64" + */ @SerializedName("KernelVersion") private String kernelVersion; - - /** 操作系统类型,如:"CentOS Linux 7 (Core)" */ + + + + /** + * 操作系统类型,如:"CentOS Linux 7 (Core)" + */ @SerializedName("OSImage") private String osImage; - - /** 容器运行时版本,如:"docker://18.9.9" */ + + + + /** + * 容器运行时版本,如:"docker://18.9.9" + */ @SerializedName("ContainerRuntimeVersion") private String containerRuntimeVersion; - - /** kubelet 版本 */ + + + + /** + * kubelet 版本 + */ @SerializedName("KubeletVersion") private String kubeletVersion; - - /** kubeproxy 版本 */ + + + + /** + * kubeproxy 版本 + */ @SerializedName("KubeProxyVersion") private String kubeProxyVersion; - - /** 内部 IP 地址 */ + + + + /** + * 内部 IP 地址 + */ @SerializedName("InternalIP") private String internalIP; - - /** 主机名 */ + + + + /** + * 主机名 + */ @SerializedName("Hostname") private String hostname; - - /** 已分配到当前节点的 Pod 数量 */ + + + + /** + * 已分配到当前节点的 Pod 数量 + */ @SerializedName("AllocatedPodCount") private Integer allocatedPodCount; - - /** 节点允许的可分配 Pod 最大数量 */ + + + + /** + * 节点允许的可分配 Pod 最大数量 + */ @SerializedName("PodCapacity") private Integer podCapacity; - - /** 是否禁止调度 */ + + + + /** + * 是否禁止调度 + */ @SerializedName("Unschedulable") private Boolean unschedulable; - - /** 节点 CPU 总量 */ + + + + /** + * 节点 CPU 总量 + */ @SerializedName("CPUCapacity") private String cpuCapacity; - - /** 节点内存总量 */ + + + + /** + * 节点内存总量 + */ @SerializedName("MemoryCapacity") private String memoryCapacity; - - /** 节点上已分配 Pod 的内存请求量 */ + + + + /** + * 节点上已分配 Pod 的内存请求量 + */ @SerializedName("MemoryRequests") private String memoryRequests; - - /** 节点上已分配 Pod 的内存请求量占内存总量的比例,如返回值为 "4.5",则意味着请求量占总量的 4.5% */ + + + + /** + * 节点上已分配 Pod 的内存请求量占内存总量的比例,如返回值为 "4.5",则意味着请求量占总量的 4.5% + */ @SerializedName("MemoryRequestsFraction") private String memoryRequestsFraction; - - /** 节点上已分配 Pod 的内存限制量 */ + + + + /** + * 节点上已分配 Pod 的内存限制量 + */ @SerializedName("MemoryLimits") private String memoryLimits; - - /** 节点上已分配 Pod 的内存限制量占内存总量的比例,如返回值为 "18",则意味着限制量占总量的 18% */ + + + + /** + * 节点上已分配 Pod 的内存限制量占内存总量的比例,如返回值为 "18",则意味着限制量占总量的 18% + */ @SerializedName("MemoryLimitsFraction") private String memoryLimitsFraction; - - /** 节点上已分配 Pod 的 CPU 请求量 */ + + + + /** + * 节点上已分配 Pod 的 CPU 请求量 + */ @SerializedName("CPURequests") private String cpuRequests; - - /** 节点上已分配 Pod 的 CPU 请求量占 CPU 总量的比例 */ + + + + /** + * 节点上已分配 Pod 的 CPU 请求量占 CPU 总量的比例 + */ @SerializedName("CPURequestsFraction") private String cpuRequestsFraction; - - /** 节点上已分配 Pod 的 CPU 限制值 */ + + + + /** + * 节点上已分配 Pod 的 CPU 限制值 + */ @SerializedName("CPULimits") private String cpuLimits; - - /** 节点上已分配 Pod 的 CPU 限制值占 CPU 总量的比例 */ + + + + /** + * 节点上已分配 Pod 的 CPU 限制值占 CPU 总量的比例 + */ @SerializedName("CPULimitsFraction") private String cpuLimitsFraction; - - /** 节点状态数组 */ + + + + /** + * 节点状态数组 + */ @SerializedName("Conditions") private List conditions; - - /** 节点上镜像名称数组 */ + + + + /** + * 节点上镜像名称数组 + */ @SerializedName("ContainerImages") private List containerImages; - - /** 字符串数组,每一项是类似 "node-role.kubernetes.io/master:NoSchedule" 的污点 */ + + + + /** + * 字符串数组,每一项是类似 "node-role.kubernetes.io/master:NoSchedule" 的污点 + */ @SerializedName("Taints") private List taints; - + + public String getName() { return name; } @@ -140,7 +257,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public List getLabels() { return labels; } @@ -148,7 +265,7 @@ public List getLabels() { public void setLabels(List labels) { this.labels = labels; } - + public List getAnnotations() { return annotations; } @@ -156,7 +273,7 @@ public List getAnnotations() { public void setAnnotations(List annotations) { this.annotations = annotations; } - + public Integer getCreationTimestamp() { return creationTimestamp; } @@ -164,7 +281,7 @@ public Integer getCreationTimestamp() { public void setCreationTimestamp(Integer creationTimestamp) { this.creationTimestamp = creationTimestamp; } - + public String getProviderID() { return providerID; } @@ -172,7 +289,7 @@ public String getProviderID() { public void setProviderID(String providerID) { this.providerID = providerID; } - + public String getKernelVersion() { return kernelVersion; } @@ -180,7 +297,7 @@ public String getKernelVersion() { public void setKernelVersion(String kernelVersion) { this.kernelVersion = kernelVersion; } - + public String getOSImage() { return osImage; } @@ -188,7 +305,7 @@ public String getOSImage() { public void setOSImage(String osImage) { this.osImage = osImage; } - + public String getContainerRuntimeVersion() { return containerRuntimeVersion; } @@ -196,7 +313,7 @@ public String getContainerRuntimeVersion() { public void setContainerRuntimeVersion(String containerRuntimeVersion) { this.containerRuntimeVersion = containerRuntimeVersion; } - + public String getKubeletVersion() { return kubeletVersion; } @@ -204,7 +321,7 @@ public String getKubeletVersion() { public void setKubeletVersion(String kubeletVersion) { this.kubeletVersion = kubeletVersion; } - + public String getKubeProxyVersion() { return kubeProxyVersion; } @@ -212,7 +329,7 @@ public String getKubeProxyVersion() { public void setKubeProxyVersion(String kubeProxyVersion) { this.kubeProxyVersion = kubeProxyVersion; } - + public String getInternalIP() { return internalIP; } @@ -220,7 +337,7 @@ public String getInternalIP() { public void setInternalIP(String internalIP) { this.internalIP = internalIP; } - + public String getHostname() { return hostname; } @@ -228,7 +345,7 @@ public String getHostname() { public void setHostname(String hostname) { this.hostname = hostname; } - + public Integer getAllocatedPodCount() { return allocatedPodCount; } @@ -236,7 +353,7 @@ public Integer getAllocatedPodCount() { public void setAllocatedPodCount(Integer allocatedPodCount) { this.allocatedPodCount = allocatedPodCount; } - + public Integer getPodCapacity() { return podCapacity; } @@ -244,7 +361,7 @@ public Integer getPodCapacity() { public void setPodCapacity(Integer podCapacity) { this.podCapacity = podCapacity; } - + public Boolean getUnschedulable() { return unschedulable; } @@ -252,7 +369,7 @@ public Boolean getUnschedulable() { public void setUnschedulable(Boolean unschedulable) { this.unschedulable = unschedulable; } - + public String getCPUCapacity() { return cpuCapacity; } @@ -260,7 +377,7 @@ public String getCPUCapacity() { public void setCPUCapacity(String cpuCapacity) { this.cpuCapacity = cpuCapacity; } - + public String getMemoryCapacity() { return memoryCapacity; } @@ -268,7 +385,7 @@ public String getMemoryCapacity() { public void setMemoryCapacity(String memoryCapacity) { this.memoryCapacity = memoryCapacity; } - + public String getMemoryRequests() { return memoryRequests; } @@ -276,7 +393,7 @@ public String getMemoryRequests() { public void setMemoryRequests(String memoryRequests) { this.memoryRequests = memoryRequests; } - + public String getMemoryRequestsFraction() { return memoryRequestsFraction; } @@ -284,7 +401,7 @@ public String getMemoryRequestsFraction() { public void setMemoryRequestsFraction(String memoryRequestsFraction) { this.memoryRequestsFraction = memoryRequestsFraction; } - + public String getMemoryLimits() { return memoryLimits; } @@ -292,7 +409,7 @@ public String getMemoryLimits() { public void setMemoryLimits(String memoryLimits) { this.memoryLimits = memoryLimits; } - + public String getMemoryLimitsFraction() { return memoryLimitsFraction; } @@ -300,7 +417,7 @@ public String getMemoryLimitsFraction() { public void setMemoryLimitsFraction(String memoryLimitsFraction) { this.memoryLimitsFraction = memoryLimitsFraction; } - + public String getCPURequests() { return cpuRequests; } @@ -308,7 +425,7 @@ public String getCPURequests() { public void setCPURequests(String cpuRequests) { this.cpuRequests = cpuRequests; } - + public String getCPURequestsFraction() { return cpuRequestsFraction; } @@ -316,7 +433,7 @@ public String getCPURequestsFraction() { public void setCPURequestsFraction(String cpuRequestsFraction) { this.cpuRequestsFraction = cpuRequestsFraction; } - + public String getCPULimits() { return cpuLimits; } @@ -324,7 +441,7 @@ public String getCPULimits() { public void setCPULimits(String cpuLimits) { this.cpuLimits = cpuLimits; } - + public String getCPULimitsFraction() { return cpuLimitsFraction; } @@ -332,7 +449,7 @@ public String getCPULimitsFraction() { public void setCPULimitsFraction(String cpuLimitsFraction) { this.cpuLimitsFraction = cpuLimitsFraction; } - + public List getConditions() { return conditions; } @@ -340,7 +457,7 @@ public List getConditions() { public void setConditions(List conditions) { this.conditions = conditions; } - + public List getContainerImages() { return containerImages; } @@ -348,7 +465,7 @@ public List getContainerImages() { public void setContainerImages(List containerImages) { this.containerImages = containerImages; } - + public List getTaints() { return taints; } @@ -356,79 +473,113 @@ public List getTaints() { public void setTaints(List taints) { this.taints = taints; } - - public static class K8SNodeCondition extends Response { - - /** Condition 类型,如 MemoryPressure、DiskPressure、PIDPressure、Ready */ - @SerializedName("Type") - private String type; - - /** 状态,False、True */ - @SerializedName("Status") - private String status; - - /** 最后一次上报状态的时间 */ - @SerializedName("LastProbeTime") - private String lastProbeTime; - - /** 最后一次状态转变时间 */ - @SerializedName("LastTransitionTime") - private String lastTransitionTime; - - /** 状态变化的原因 */ - @SerializedName("Reason") - private String reason; - - /** 状态变化的描述信息 */ - @SerializedName("Message") - private String message; - - public String getType() { - return type; + + public static class K8SNodeCondition extends Response { + + + /** + * Condition 类型,如 MemoryPressure、DiskPressure、PIDPressure、Ready + */ + @SerializedName("Type") + private String type; + + + + /** + * 状态,False、True + */ + @SerializedName("Status") + private String status; + + + + /** + * 最后一次上报状态的时间 + */ + @SerializedName("LastProbeTime") + private String lastProbeTime; + + + + /** + * 最后一次状态转变时间 + */ + @SerializedName("LastTransitionTime") + private String lastTransitionTime; + + + + /** + * 状态变化的原因 + */ + @SerializedName("Reason") + private String reason; + + + + /** + * 状态变化的描述信息 + */ + @SerializedName("Message") + private String message; + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getLastProbeTime() { + return lastProbeTime; + } + + public void setLastProbeTime(String lastProbeTime) { + this.lastProbeTime = lastProbeTime; + } + + public String getLastTransitionTime() { + return lastTransitionTime; + } + + public void setLastTransitionTime(String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + } + + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + } +} - public void setType(String type) { - this.type = type; - } - public String getStatus() { - return status; - } - public void setStatus(String status) { - this.status = status; - } - public String getLastProbeTime() { - return lastProbeTime; - } - public void setLastProbeTime(String lastProbeTime) { - this.lastProbeTime = lastProbeTime; - } - public String getLastTransitionTime() { - return lastTransitionTime; - } - - public void setLastTransitionTime(String lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - } - - public String getReason() { - return reason; - } - public void setReason(String reason) { - this.reason = reason; - } - public String getMessage() { - return message; - } - public void setMessage(String message) { - this.message = message; - } - } -} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterNodeV2Request.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterNodeV2Request.java index 6eb1a77b..70bd6eb3 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterNodeV2Request.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterNodeV2Request.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUK8SClusterNodeV2Request extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UK8S集群ID */ + + + + /** + * UK8S集群ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - + + public String getRegion() { return region; } @@ -44,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -52,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -60,4 +75,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterNodeV2Response.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterNodeV2Response.java index 798e0de5..575efd77 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterNodeV2Response.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterNodeV2Response.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUK8SClusterNodeV2Response extends Response { - /** 节点详细信息,见NodeInfoV2。 */ + + + /** + * 节点详细信息,见NodeInfoV2。 + */ @SerializedName("NodeSet") private List nodeSet; - - /** 满足条件的节点数量,包括Master。 */ + + + + /** + * 满足条件的节点数量,包括Master。 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getNodeSet() { return nodeSet; } @@ -36,7 +49,7 @@ public List getNodeSet() { public void setNodeSet(List nodeSet) { this.nodeSet = nodeSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,352 +57,474 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - - public static class KubeProxy extends Response { - - /** KubeProxy模式,枚举值为[ipvs,iptables] */ - @SerializedName("Mode") - private String mode; - - public String getMode() { - return mode; - } - - public void setMode(String mode) { - this.mode = mode; - } + + public static class KubeProxy extends Response { + + + /** + * KubeProxy模式,枚举值为[ipvs,iptables] + */ + @SerializedName("Mode") + private String mode; + + + public String getMode() { + return mode; } - public static class NodeInfoV2 extends Response { - - /** Node所在可用区 */ - @SerializedName("Zone") - private String zone; - - /** NodeId,Node在UK8S处的唯一标示,如uk8s-reewqe5-sdasadsda */ - @SerializedName("NodeId") - private String nodeId; - - /** node角色,枚举值为master、node */ - @SerializedName("NodeRole") - private String nodeRole; - - /** - * Node的状态:枚举值:初始化:"Initializing";启动中:"Starting";运行:"Running";停止中:"Stopping";停止:"Stopped";待删除:"ToBeDeleted";删除中:"Deleting";异常:"Error";安装失败:"Install - * Fail"; - */ - @SerializedName("NodeStatus") - private String nodeStatus; - - /** Node节点的资源类型,枚举值为UHost或UPHost。 */ - @SerializedName("InstanceType") - private String instanceType; - - /** 资源名称,初始值等于NodeId,用户可在UHost或UPHost处修改。 */ - @SerializedName("InstanceName") - private String instanceName; - - /** 资源ID,如uhost-xxxx,或uphost-xxxxx。 */ - @SerializedName("InstanceId") - private String instanceId; - - /** 机型类别,分别对应Uhost的MachineType或PHost的PHostType。 */ - @SerializedName("MachineType") - private String machineType; - - /** Node节点的操作系统类别,如Linux或Windows。 */ - @SerializedName("OsType") - private String osType; - - /** Node节点的镜像名称。 */ - @SerializedName("OsName") - private String osName; - - /** Node节点CPU核数,单位: 个。 */ - @SerializedName("CPU") - private Integer cpu; - - /** 内存大小,单位: MB。 */ - @SerializedName("Memory") - private Integer memory; - - /** 节点IP信息,详细信息见 UHostIPSet。 */ - @SerializedName("IPSet") - private List ipSet; - - /** 节点创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 节点计费到期时间 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 节点所属伸缩组ID,非伸缩组创建出来的节点,伸缩组ID为Default。 */ - @SerializedName("AsgId") - private String asgId; - - /** 是否允许Pod调度到该节点,枚举值为true或false。 */ - @SerializedName("Unschedulable") - private Boolean unschedulable; - - /** kubeproxy信息,详细信息见KubeProxy。 */ - @SerializedName("KubeProxy") - private KubeProxy kubeProxy; - - /** 加节点时判断是否没有资源,如果返回NORESOURCE则代表没有资源了 */ - @SerializedName("NodeLogInfo") - private String nodeLogInfo; - - /** 节点的GPU颗数。 */ - @SerializedName("GPU") - private Integer gpu; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getNodeId() { - return nodeId; - } - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - public String getNodeRole() { - return nodeRole; - } - - public void setNodeRole(String nodeRole) { - this.nodeRole = nodeRole; - } - - public String getNodeStatus() { - return nodeStatus; - } - - public void setNodeStatus(String nodeStatus) { - this.nodeStatus = nodeStatus; - } - - public String getInstanceType() { - return instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getInstanceName() { - return instanceName; - } - - public void setInstanceName(String instanceName) { - this.instanceName = instanceName; - } - - public String getInstanceId() { - return instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public String getMachineType() { - return machineType; - } - - public void setMachineType(String machineType) { - this.machineType = machineType; - } - - public String getOsType() { - return osType; - } - - public void setOsType(String osType) { - this.osType = osType; - } - - public String getOsName() { - return osName; - } - - public void setOsName(String osName) { - this.osName = osName; - } - - public Integer getCPU() { - return cpu; - } - - public void setCPU(Integer cpu) { - this.cpu = cpu; - } - - public Integer getMemory() { - return memory; - } - - public void setMemory(Integer memory) { - this.memory = memory; - } - - public List getIPSet() { - return ipSet; - } - - public void setIPSet(List ipSet) { - this.ipSet = ipSet; - } + public void setMode(String mode) { + this.mode = mode; + } + + } + public static class NodeInfoV2 extends Response { + + + /** + * Node所在可用区 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * NodeId,Node在UK8S处的唯一标示,如uk8s-reewqe5-sdasadsda + */ + @SerializedName("NodeId") + private String nodeId; + + + + /** + * node角色,枚举值为master、node + */ + @SerializedName("NodeRole") + private String nodeRole; + + + + /** + * Node的状态:枚举值:初始化:"Initializing";启动中:"Starting";运行:"Running";停止中:"Stopping";停止:"Stopped";待删除:"ToBeDeleted";删除中:"Deleting";异常:"Error";安装失败:"Install Fail"; + */ + @SerializedName("NodeStatus") + private String nodeStatus; + + + + /** + * Node节点的资源类型,枚举值为UHost或UPHost。 + */ + @SerializedName("InstanceType") + private String instanceType; + + + + /** + * 资源名称,初始值等于NodeId,用户可在UHost或UPHost处修改。 + */ + @SerializedName("InstanceName") + private String instanceName; + + + + /** + * 资源ID,如uhost-xxxx,或uphost-xxxxx。 + */ + @SerializedName("InstanceId") + private String instanceId; + + + + /** + * 机型类别,分别对应Uhost的MachineType或PHost的PHostType。 + */ + @SerializedName("MachineType") + private String machineType; + + + + /** + * Node节点的操作系统类别,如Linux或Windows。 + */ + @SerializedName("OsType") + private String osType; + + + + /** + * Node节点的镜像名称。 + */ + @SerializedName("OsName") + private String osName; + + + + /** + * Node节点CPU核数,单位: 个。 + */ + @SerializedName("CPU") + private Integer cpu; + + + + /** + * 内存大小,单位: MB。 + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * 节点IP信息,详细信息见 UHostIPSet。 + */ + @SerializedName("IPSet") + private List ipSet; + + + + /** + * 节点创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 节点计费到期时间 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 节点所属伸缩组ID,非伸缩组创建出来的节点,伸缩组ID为Default。 + */ + @SerializedName("AsgId") + private String asgId; + + + + /** + * 是否允许Pod调度到该节点,枚举值为true或false。 + */ + @SerializedName("Unschedulable") + private Boolean unschedulable; + + + + /** + * kubeproxy信息,详细信息见KubeProxy。 + */ + @SerializedName("KubeProxy") + private KubeProxy kubeProxy; + + + + /** + * 加节点时判断是否没有资源,如果返回NORESOURCE则代表没有资源了 + */ + @SerializedName("NodeLogInfo") + private String nodeLogInfo; + + + + /** + * 节点的GPU颗数。 + */ + @SerializedName("GPU") + private Integer gpu; + + + public String getZone() { + return zone; + } - public Integer getCreateTime() { - return createTime; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getNodeId() { + return nodeId; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public String getNodeRole() { + return nodeRole; + } - public Integer getExpireTime() { - return expireTime; - } + public void setNodeRole(String nodeRole) { + this.nodeRole = nodeRole; + } + + public String getNodeStatus() { + return nodeStatus; + } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } + public void setNodeStatus(String nodeStatus) { + this.nodeStatus = nodeStatus; + } + + public String getInstanceType() { + return instanceType; + } - public String getAsgId() { - return asgId; - } + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getInstanceName() { + return instanceName; + } - public void setAsgId(String asgId) { - this.asgId = asgId; - } + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public String getInstanceId() { + return instanceId; + } - public Boolean getUnschedulable() { - return unschedulable; - } + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getMachineType() { + return machineType; + } - public void setUnschedulable(Boolean unschedulable) { - this.unschedulable = unschedulable; - } + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getOsType() { + return osType; + } - public KubeProxy getKubeProxy() { - return kubeProxy; - } + public void setOsType(String osType) { + this.osType = osType; + } + + public String getOsName() { + return osName; + } - public void setKubeProxy(KubeProxy kubeProxy) { - this.kubeProxy = kubeProxy; - } + public void setOsName(String osName) { + this.osName = osName; + } + + public Integer getCPU() { + return cpu; + } - public String getNodeLogInfo() { - return nodeLogInfo; - } + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } - public void setNodeLogInfo(String nodeLogInfo) { - this.nodeLogInfo = nodeLogInfo; - } + public void setMemory(Integer memory) { + this.memory = memory; + } + + public List getIPSet() { + return ipSet; + } - public Integer getGPU() { - return gpu; - } + public void setIPSet(List ipSet) { + this.ipSet = ipSet; + } + + public Integer getCreateTime() { + return createTime; + } - public void setGPU(Integer gpu) { - this.gpu = gpu; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; } - public static class UHostIPSet extends Response { + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getAsgId() { + return asgId; + } - /** 国际: Internation,BGP: Bgp,内网: Private */ - @SerializedName("Type") - private String type; + public void setAsgId(String asgId) { + this.asgId = asgId; + } + + public Boolean getUnschedulable() { + return unschedulable; + } - /** IP资源ID (内网IP无对应的资源ID) */ - @SerializedName("IPId") - private String ipId; + public void setUnschedulable(Boolean unschedulable) { + this.unschedulable = unschedulable; + } + + public KubeProxy getKubeProxy() { + return kubeProxy; + } - /** IP地址 */ - @SerializedName("IP") - private String ip; + public void setKubeProxy(KubeProxy kubeProxy) { + this.kubeProxy = kubeProxy; + } + + public String getNodeLogInfo() { + return nodeLogInfo; + } - /** IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) */ - @SerializedName("Bandwidth") - private Integer bandwidth; + public void setNodeLogInfo(String nodeLogInfo) { + this.nodeLogInfo = nodeLogInfo; + } + + public Integer getGPU() { + return gpu; + } - /** IP地址对应的VPC ID */ - @SerializedName("VPCId") - private String vpcId; + public void setGPU(Integer gpu) { + this.gpu = gpu; + } + + } + public static class UHostIPSet extends Response { + + + /** + * 国际: Internation,BGP: Bgp,内网: Private + */ + @SerializedName("Type") + private String type; + + + + /** + * IP资源ID (内网IP无对应的资源ID) + */ + @SerializedName("IPId") + private String ipId; + + + + /** + * IP地址 + */ + @SerializedName("IP") + private String ip; + + + + /** + * IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + + + /** + * IP地址对应的VPC ID + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * IP地址对应的子网 ID + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * Mac地址 + */ + @SerializedName("Mac") + private String mac; + + + public String getType() { + return type; + } - /** IP地址对应的子网 ID */ - @SerializedName("SubnetId") - private String subnetId; + public void setType(String type) { + this.type = type; + } + + public String getIPId() { + return ipId; + } - /** Mac地址 */ - @SerializedName("Mac") - private String mac; + public void setIPId(String ipId) { + this.ipId = ipId; + } + + public String getIP() { + return ip; + } - public String getType() { - return type; - } + public void setIP(String ip) { + this.ip = ip; + } + + public Integer getBandwidth() { + return bandwidth; + } - public void setType(String type) { - this.type = type; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + + public String getVPCId() { + return vpcId; + } - public String getIPId() { - return ipId; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } - public void setIPId(String ipId) { - this.ipId = ipId; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getMac() { + return mac; + } - public String getIP() { - return ip; + public void setMac(String mac) { + this.mac = mac; + } + } +} - public void setIP(String ip) { - this.ip = ip; - } - public Integer getBandwidth() { - return bandwidth; - } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } - public String getVPCId() { - return vpcId; - } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - public String getSubnetId() { - return subnetId; - } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - public String getMac() { - return mac; - } - public void setMac(String mac) { - this.mac = mac; - } - } -} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterV2Request.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterV2Request.java index 795b1ae2..7bad36b0 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterV2Request.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterV2Request.java @@ -1,49 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUK8SClusterV2Request extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 列表起始位置偏移量,默认为0。 */ + + + + /** + * 列表起始位置偏移量,默认为0。 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20。 */ + + + + /** + * 返回数据长度,默认为20。 + */ @UCloudParam("Limit") private Integer limit; - - /** UK8S集群ID */ + + + + /** + * UK8S集群ID + */ @UCloudParam("ClusterId") private String clusterId; - + + public String getRegion() { return region; } @@ -51,7 +74,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -59,7 +82,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getOffset() { return offset; } @@ -67,7 +90,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -75,7 +98,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getClusterId() { return clusterId; } @@ -83,4 +106,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterV2Response.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterV2Response.java index e2772308..dab3bc61 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterV2Response.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SClusterV2Response.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUK8SClusterV2Response extends Response { - /** 满足条件的集群数量 */ + + + /** + * 满足条件的集群数量 + */ @SerializedName("ClusterCount") private Integer clusterCount; - - /** 集群信息,具体参考ClusterSet */ + + + + /** + * 集群信息,具体参考ClusterSet + */ @SerializedName("ClusterSet") private List clusterSet; - + + public Integer getClusterCount() { return clusterCount; } @@ -36,7 +49,7 @@ public Integer getClusterCount() { public void setClusterCount(Integer clusterCount) { this.clusterCount = clusterCount; } - + public List getClusterSet() { return clusterSet; } @@ -44,177 +57,241 @@ public List getClusterSet() { public void setClusterSet(List clusterSet) { this.clusterSet = clusterSet; } + + public static class ClusterSet extends Response { + + + /** + * 资源名字 + */ + @SerializedName("ClusterName") + private String clusterName; + + + + /** + * 集群ID + */ + @SerializedName("ClusterId") + private String clusterId; + + + + /** + * 所属VPC + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 所属子网 + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * Pod网段 + */ + @SerializedName("PodCIDR") + private String podCIDR; + + + + /** + * 服务网段 + */ + @SerializedName("ServiceCIDR") + private String serviceCIDR; + + + + /** + * Master 节点数量 + */ + @SerializedName("MasterCount") + private Integer masterCount; + + + + /** + * 集群apiserver地址 + */ + @SerializedName("ApiServer") + private String apiServer; + + + + /** + * 集群版本 + */ + @SerializedName("K8sVersion") + private String k8sVersion; + + + + /** + * 创建集群时判断如果为NORESOURCE则为没资源,否则为空 + */ + @SerializedName("ClusterLogInfo") + private String clusterLogInfo; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * Node节点数量 + */ + @SerializedName("NodeCount") + private Integer nodeCount; + + + + /** + * 集群外部apiserver地址 + */ + @SerializedName("ExternalApiServer") + private String externalApiServer; + + + + /** + * 集群状态,枚举值:初始化:"INITIALIZING";启动中:"STARTING";创建失败:"CREATEFAILED";正常运行:"RUNNING";添加节点:"ADDNODE";删除节点:"DELNODE";删除中:"DELETING";删除失败:"DELETEFAILED";错误:"ERROR";升级插件:"UPDATE_PLUGIN";更新插件信息:"UPDATE_PLUGIN_INFO";异常:"ABNORMAL";升级集群中:"UPGRADING";容器运行时切换:"CONVERTING" + */ + @SerializedName("Status") + private String status; + + + public String getClusterName() { + return clusterName; + } - public static class ClusterSet extends Response { - - /** 资源名字 */ - @SerializedName("ClusterName") - private String clusterName; - - /** 集群ID */ - @SerializedName("ClusterId") - private String clusterId; - - /** 所属VPC */ - @SerializedName("VPCId") - private String vpcId; - - /** 所属子网 */ - @SerializedName("SubnetId") - private String subnetId; - - /** Pod网段 */ - @SerializedName("PodCIDR") - private String podCIDR; - - /** 服务网段 */ - @SerializedName("ServiceCIDR") - private String serviceCIDR; - - /** Master 节点数量 */ - @SerializedName("MasterCount") - private Integer masterCount; - - /** 集群apiserver地址 */ - @SerializedName("ApiServer") - private String apiServer; - - /** 集群版本 */ - @SerializedName("K8sVersion") - private String k8sVersion; - - /** 创建集群时判断如果为NORESOURCE则为没资源,否则为空 */ - @SerializedName("ClusterLogInfo") - private String clusterLogInfo; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** Node节点数量 */ - @SerializedName("NodeCount") - private Integer nodeCount; - - /** 集群外部apiserver地址 */ - @SerializedName("ExternalApiServer") - private String externalApiServer; - - /** - * 集群状态,枚举值:初始化:"INITIALIZING";启动中:"STARTING";创建失败:"CREATEFAILED";正常运行:"RUNNING";添加节点:"ADDNODE";删除节点:"DELNODE";删除中:"DELETING";删除失败:"DELETEFAILED";错误:"ERROR";升级插件:"UPDATE_PLUGIN";更新插件信息:"UPDATE_PLUGIN_INFO";异常:"ABNORMAL";升级集群中:"UPGRADING";容器运行时切换:"CONVERTING" - */ - @SerializedName("Status") - private String status; - - public String getClusterName() { - return clusterName; - } - - public void setClusterName(String clusterName) { - this.clusterName = clusterName; - } - - public String getClusterId() { - return clusterId; - } - - public void setClusterId(String clusterId) { - this.clusterId = clusterId; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } + public void setClusterName(String clusterName) { + this.clusterName = clusterName; + } + + public String getClusterId() { + return clusterId; + } - public String getSubnetId() { - return subnetId; - } + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getVPCId() { + return vpcId; + } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } - public String getPodCIDR() { - return podCIDR; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getPodCIDR() { + return podCIDR; + } - public void setPodCIDR(String podCIDR) { - this.podCIDR = podCIDR; - } + public void setPodCIDR(String podCIDR) { + this.podCIDR = podCIDR; + } + + public String getServiceCIDR() { + return serviceCIDR; + } - public String getServiceCIDR() { - return serviceCIDR; - } + public void setServiceCIDR(String serviceCIDR) { + this.serviceCIDR = serviceCIDR; + } + + public Integer getMasterCount() { + return masterCount; + } - public void setServiceCIDR(String serviceCIDR) { - this.serviceCIDR = serviceCIDR; - } + public void setMasterCount(Integer masterCount) { + this.masterCount = masterCount; + } + + public String getApiServer() { + return apiServer; + } - public Integer getMasterCount() { - return masterCount; - } + public void setApiServer(String apiServer) { + this.apiServer = apiServer; + } + + public String getK8sVersion() { + return k8sVersion; + } - public void setMasterCount(Integer masterCount) { - this.masterCount = masterCount; - } + public void setK8sVersion(String k8sVersion) { + this.k8sVersion = k8sVersion; + } + + public String getClusterLogInfo() { + return clusterLogInfo; + } - public String getApiServer() { - return apiServer; - } + public void setClusterLogInfo(String clusterLogInfo) { + this.clusterLogInfo = clusterLogInfo; + } + + public Integer getCreateTime() { + return createTime; + } - public void setApiServer(String apiServer) { - this.apiServer = apiServer; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getNodeCount() { + return nodeCount; + } - public String getK8sVersion() { - return k8sVersion; - } + public void setNodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + } + + public String getExternalApiServer() { + return externalApiServer; + } - public void setK8sVersion(String k8sVersion) { - this.k8sVersion = k8sVersion; - } + public void setExternalApiServer(String externalApiServer) { + this.externalApiServer = externalApiServer; + } + + public String getStatus() { + return status; + } - public String getClusterLogInfo() { - return clusterLogInfo; + public void setStatus(String status) { + this.status = status; + } + } +} - public void setClusterLogInfo(String clusterLogInfo) { - this.clusterLogInfo = clusterLogInfo; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getNodeCount() { - return nodeCount; - } - public void setNodeCount(Integer nodeCount) { - this.nodeCount = nodeCount; - } - public String getExternalApiServer() { - return externalApiServer; - } - public void setExternalApiServer(String externalApiServer) { - this.externalApiServer = externalApiServer; - } - public String getStatus() { - return status; - } - public void setStatus(String status) { - this.status = status; - } - } -} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SNodeGroupRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SNodeGroupRequest.java index 23abdad0..febd5cf6 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SNodeGroupRequest.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SNodeGroupRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUK8SNodeGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 集群ID */ + + + + /** + * 集群ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - + + public String getRegion() { return region; } @@ -44,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -52,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -60,4 +75,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SNodeGroupResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SNodeGroupResponse.java index bd2bf7db..07784e53 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SNodeGroupResponse.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/ListUK8SNodeGroupResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUK8SNodeGroupResponse extends Response { - /** 节点池列表 */ + + + /** + * 节点池列表 + */ @SerializedName("NodeGroupList") private List nodeGroupList; - + + public List getNodeGroupList() { return nodeGroupList; } @@ -32,187 +41,257 @@ public List getNodeGroupList() { public void setNodeGroupList(List nodeGroupList) { this.nodeGroupList = nodeGroupList; } + + public static class NodeGroupSet extends Response { + + + /** + * 节点池ID + */ + @SerializedName("NodeGroupId") + private String nodeGroupId; + + + + /** + * 节点池名字 + */ + @SerializedName("NodeGroupName") + private String nodeGroupName; + + + + /** + * 镜像ID + */ + @SerializedName("ImageId") + private String imageId; + + + + /** + * 机型 + */ + @SerializedName("MachineType") + private String machineType; + + + + /** + * cpu平台 + */ + @SerializedName("MinimalCpuPlatform") + private String minimalCpuPlatform; + + + + /** + * 虚拟CPU核数 + */ + @SerializedName("CPU") + private Integer cpu; + + + + /** + * 内存大小 + */ + @SerializedName("Mem") + private Integer mem; + + + + /** + * GPU类型 + */ + @SerializedName("GpuType") + private String gpuType; + + + + /** + * GPU卡核心数 + */ + @SerializedName("GPU") + private Integer gpu; + + + + /** + * 系统盘类型 + */ + @SerializedName("BootDiskType") + private String bootDiskType; + + + + /** + * 数据盘大小 + */ + @SerializedName("DataDiskSize") + private Integer dataDiskSize; + + + + /** + * 数据盘类型 + */ + @SerializedName("DataDiskType") + private String dataDiskType; + + + + /** + * 业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 付费方式 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 节点id列表 + */ + @SerializedName("NodeList") + private List nodeList; + + + public String getNodeGroupId() { + return nodeGroupId; + } - public static class NodeGroupSet extends Response { - - /** 节点池ID */ - @SerializedName("NodeGroupId") - private String nodeGroupId; - - /** 节点池名字 */ - @SerializedName("NodeGroupName") - private String nodeGroupName; - - /** 镜像ID */ - @SerializedName("ImageId") - private String imageId; - - /** 机型 */ - @SerializedName("MachineType") - private String machineType; - - /** cpu平台 */ - @SerializedName("MinimalCpuPlatform") - private String minimalCpuPlatform; - - /** 虚拟CPU核数 */ - @SerializedName("CPU") - private Integer cpu; - - /** 内存大小 */ - @SerializedName("Mem") - private Integer mem; - - /** GPU类型 */ - @SerializedName("GpuType") - private String gpuType; - - /** GPU卡核心数 */ - @SerializedName("GPU") - private Integer gpu; - - /** 系统盘类型 */ - @SerializedName("BootDiskType") - private String bootDiskType; - - /** 数据盘大小 */ - @SerializedName("DataDiskSize") - private Integer dataDiskSize; - - /** 数据盘类型 */ - @SerializedName("DataDiskType") - private String dataDiskType; - - /** 业务组 */ - @SerializedName("Tag") - private String tag; - - /** 付费方式 */ - @SerializedName("ChargeType") - private String chargeType; - - /** 节点id列表 */ - @SerializedName("NodeList") - private List nodeList; - - public String getNodeGroupId() { - return nodeGroupId; - } - - public void setNodeGroupId(String nodeGroupId) { - this.nodeGroupId = nodeGroupId; - } - - public String getNodeGroupName() { - return nodeGroupName; - } - - public void setNodeGroupName(String nodeGroupName) { - this.nodeGroupName = nodeGroupName; - } - - public String getImageId() { - return imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - } - - public String getMachineType() { - return machineType; - } + public void setNodeGroupId(String nodeGroupId) { + this.nodeGroupId = nodeGroupId; + } + + public String getNodeGroupName() { + return nodeGroupName; + } - public void setMachineType(String machineType) { - this.machineType = machineType; - } + public void setNodeGroupName(String nodeGroupName) { + this.nodeGroupName = nodeGroupName; + } + + public String getImageId() { + return imageId; + } - public String getMinimalCpuPlatform() { - return minimalCpuPlatform; - } + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getMachineType() { + return machineType; + } - public void setMinimalCpuPlatform(String minimalCpuPlatform) { - this.minimalCpuPlatform = minimalCpuPlatform; - } + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getMinimalCpuPlatform() { + return minimalCpuPlatform; + } - public Integer getCPU() { - return cpu; - } + public void setMinimalCpuPlatform(String minimalCpuPlatform) { + this.minimalCpuPlatform = minimalCpuPlatform; + } + + public Integer getCPU() { + return cpu; + } - public void setCPU(Integer cpu) { - this.cpu = cpu; - } + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMem() { + return mem; + } - public Integer getMem() { - return mem; - } + public void setMem(Integer mem) { + this.mem = mem; + } + + public String getGpuType() { + return gpuType; + } - public void setMem(Integer mem) { - this.mem = mem; - } + public void setGpuType(String gpuType) { + this.gpuType = gpuType; + } + + public Integer getGPU() { + return gpu; + } - public String getGpuType() { - return gpuType; - } + public void setGPU(Integer gpu) { + this.gpu = gpu; + } + + public String getBootDiskType() { + return bootDiskType; + } - public void setGpuType(String gpuType) { - this.gpuType = gpuType; - } + public void setBootDiskType(String bootDiskType) { + this.bootDiskType = bootDiskType; + } + + public Integer getDataDiskSize() { + return dataDiskSize; + } - public Integer getGPU() { - return gpu; - } + public void setDataDiskSize(Integer dataDiskSize) { + this.dataDiskSize = dataDiskSize; + } + + public String getDataDiskType() { + return dataDiskType; + } - public void setGPU(Integer gpu) { - this.gpu = gpu; - } + public void setDataDiskType(String dataDiskType) { + this.dataDiskType = dataDiskType; + } + + public String getTag() { + return tag; + } - public String getBootDiskType() { - return bootDiskType; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getChargeType() { + return chargeType; + } - public void setBootDiskType(String bootDiskType) { - this.bootDiskType = bootDiskType; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public List getNodeList() { + return nodeList; + } - public Integer getDataDiskSize() { - return dataDiskSize; + public void setNodeList(List nodeList) { + this.nodeList = nodeList; + } + } +} - public void setDataDiskSize(Integer dataDiskSize) { - this.dataDiskSize = dataDiskSize; - } - public String getDataDiskType() { - return dataDiskType; - } - public void setDataDiskType(String dataDiskType) { - this.dataDiskType = dataDiskType; - } - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public List getNodeList() { - return nodeList; - } - public void setNodeList(List nodeList) { - this.nodeList = nodeList; - } - } -} diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/RemoveUK8SNodeGroupRequest.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/RemoveUK8SNodeGroupRequest.java index 26167460..ba7b8798 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/RemoveUK8SNodeGroupRequest.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/RemoveUK8SNodeGroupRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RemoveUK8SNodeGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 节点池Id */ + + + + /** + * 节点池Id + */ @NotEmpty @UCloudParam("NodeGroupId") private String nodeGroupId; - - /** 集群id */ + + + + /** + * 集群id + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNodeGroupId() { return nodeGroupId; } @@ -65,7 +84,7 @@ public String getNodeGroupId() { public void setNodeGroupId(String nodeGroupId) { this.nodeGroupId = nodeGroupId; } - + public String getClusterId() { return clusterId; } @@ -73,4 +92,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/RemoveUK8SNodeGroupResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/RemoveUK8SNodeGroupResponse.java index eead1a66..3b3a35e9 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/RemoveUK8SNodeGroupResponse.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/RemoveUK8SNodeGroupResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uk8s.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RemoveUK8SNodeGroupResponse extends Response {} +public class RemoveUK8SNodeGroupResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index affa6b54..8c622596 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-ulb - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java index 1737122b..e6b29a32 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.ulb.client; @@ -17,385 +19,579 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.ulb.models.AllocateBackendRequest; import cn.ucloud.ulb.models.AllocateBackendResponse; + + + import cn.ucloud.ulb.models.BindSSLRequest; import cn.ucloud.ulb.models.BindSSLResponse; + + + import cn.ucloud.ulb.models.CreatePolicyRequest; import cn.ucloud.ulb.models.CreatePolicyResponse; + + + import cn.ucloud.ulb.models.CreateSSLRequest; import cn.ucloud.ulb.models.CreateSSLResponse; + + + import cn.ucloud.ulb.models.CreateSecurityPolicyRequest; import cn.ucloud.ulb.models.CreateSecurityPolicyResponse; + + + import cn.ucloud.ulb.models.CreateULBRequest; import cn.ucloud.ulb.models.CreateULBResponse; + + + import cn.ucloud.ulb.models.CreateVServerRequest; import cn.ucloud.ulb.models.CreateVServerResponse; + + + import cn.ucloud.ulb.models.DeletePolicyRequest; import cn.ucloud.ulb.models.DeletePolicyResponse; + + + import cn.ucloud.ulb.models.DeleteSSLRequest; import cn.ucloud.ulb.models.DeleteSSLResponse; + + + import cn.ucloud.ulb.models.DeleteSecurityPolicyRequest; import cn.ucloud.ulb.models.DeleteSecurityPolicyResponse; + + + import cn.ucloud.ulb.models.DeleteULBRequest; import cn.ucloud.ulb.models.DeleteULBResponse; + + + import cn.ucloud.ulb.models.DeleteVServerRequest; import cn.ucloud.ulb.models.DeleteVServerResponse; + + + import cn.ucloud.ulb.models.DescribeSSLRequest; import cn.ucloud.ulb.models.DescribeSSLResponse; + + + import cn.ucloud.ulb.models.DescribeSecurityPoliciesRequest; import cn.ucloud.ulb.models.DescribeSecurityPoliciesResponse; + + + import cn.ucloud.ulb.models.DescribeSupportCiphersRequest; import cn.ucloud.ulb.models.DescribeSupportCiphersResponse; + + + import cn.ucloud.ulb.models.DescribeULBRequest; import cn.ucloud.ulb.models.DescribeULBResponse; + + + import cn.ucloud.ulb.models.DescribeULBSimpleRequest; import cn.ucloud.ulb.models.DescribeULBSimpleResponse; + + + import cn.ucloud.ulb.models.DescribeVServerRequest; import cn.ucloud.ulb.models.DescribeVServerResponse; + + + import cn.ucloud.ulb.models.ReleaseBackendRequest; import cn.ucloud.ulb.models.ReleaseBackendResponse; + + + import cn.ucloud.ulb.models.UnBindSecurityPolicyRequest; import cn.ucloud.ulb.models.UnBindSecurityPolicyResponse; + + + import cn.ucloud.ulb.models.UnbindSSLRequest; import cn.ucloud.ulb.models.UnbindSSLResponse; + + + import cn.ucloud.ulb.models.UpdateBackendAttributeRequest; import cn.ucloud.ulb.models.UpdateBackendAttributeResponse; + + + import cn.ucloud.ulb.models.UpdatePolicyRequest; import cn.ucloud.ulb.models.UpdatePolicyResponse; + + + import cn.ucloud.ulb.models.UpdateSSLAttributeRequest; import cn.ucloud.ulb.models.UpdateSSLAttributeResponse; + + + import cn.ucloud.ulb.models.UpdateSecurityPolicyRequest; import cn.ucloud.ulb.models.UpdateSecurityPolicyResponse; + + + import cn.ucloud.ulb.models.UpdateULBAttributeRequest; import cn.ucloud.ulb.models.UpdateULBAttributeResponse; + + + import cn.ucloud.ulb.models.UpdateVServerAttributeRequest; import cn.ucloud.ulb.models.UpdateVServerAttributeResponse; -/** This client is used to call actions of **ULB** service */ +/** + * This client is used to call actions of **ULB** service + */ public class ULBClient extends DefaultClient implements ULBClientInterface { public ULBClient(Config config, Credential credential) { super(config, credential); } - - /** - * AllocateBackend - 添加后端实例 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AllocateBackendResponse allocateBackend(AllocateBackendRequest request) - throws UCloudException { - request.setAction("AllocateBackend"); - return (AllocateBackendResponse) this.invoke(request, AllocateBackendResponse.class); - } - - /** - * BindSSL - 绑定SSL证书 - * - * @param request Request object - * @throws UCloudException Exception - */ - public BindSSLResponse bindSSL(BindSSLRequest request) throws UCloudException { - request.setAction("BindSSL"); - return (BindSSLResponse) this.invoke(request, BindSSLResponse.class); - } - - /** - * CreatePolicy - 创建内容转发策略 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreatePolicyResponse createPolicy(CreatePolicyRequest request) throws UCloudException { - request.setAction("CreatePolicy"); - return (CreatePolicyResponse) this.invoke(request, CreatePolicyResponse.class); - } - - /** - * CreateSSL - 创建SSL证书 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateSSLResponse createSSL(CreateSSLRequest request) throws UCloudException { - request.setAction("CreateSSL"); - return (CreateSSLResponse) this.invoke(request, CreateSSLResponse.class); - } - - /** - * CreateSecurityPolicy - 创建安全策略 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyRequest request) - throws UCloudException { - request.setAction("CreateSecurityPolicy"); - return (CreateSecurityPolicyResponse) - this.invoke(request, CreateSecurityPolicyResponse.class); - } - - /** - * CreateULB - 创建负载均衡 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateULBResponse createULB(CreateULBRequest request) throws UCloudException { - request.setAction("CreateULB"); - return (CreateULBResponse) this.invoke(request, CreateULBResponse.class); - } - - /** - * CreateVServer - 创建VServer - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateVServerResponse createVServer(CreateVServerRequest request) - throws UCloudException { - request.setAction("CreateVServer"); - return (CreateVServerResponse) this.invoke(request, CreateVServerResponse.class); - } - - /** - * DeletePolicy - 删除转发策略 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws UCloudException { - request.setAction("DeletePolicy"); - return (DeletePolicyResponse) this.invoke(request, DeletePolicyResponse.class); - } - - /** - * DeleteSSL - 删除SSL证书 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteSSLResponse deleteSSL(DeleteSSLRequest request) throws UCloudException { - request.setAction("DeleteSSL"); - return (DeleteSSLResponse) this.invoke(request, DeleteSSLResponse.class); - } - - /** - * DeleteSecurityPolicy - 删除安全策略 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyRequest request) - throws UCloudException { - request.setAction("DeleteSecurityPolicy"); - return (DeleteSecurityPolicyResponse) - this.invoke(request, DeleteSecurityPolicyResponse.class); - } - - /** - * DeleteULB - 删除负载均衡 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteULBResponse deleteULB(DeleteULBRequest request) throws UCloudException { - request.setAction("DeleteULB"); - return (DeleteULBResponse) this.invoke(request, DeleteULBResponse.class); - } - - /** - * DeleteVServer - 删除VServer - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteVServerResponse deleteVServer(DeleteVServerRequest request) - throws UCloudException { - request.setAction("DeleteVServer"); - return (DeleteVServerResponse) this.invoke(request, DeleteVServerResponse.class); - } - - /** - * DescribeSSL - 获取SSL证书信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeSSLResponse describeSSL(DescribeSSLRequest request) throws UCloudException { - request.setAction("DescribeSSL"); - return (DescribeSSLResponse) this.invoke(request, DescribeSSLResponse.class); - } - - /** - * DescribeSecurityPolicies - 获取安全策略的信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeSecurityPoliciesResponse describeSecurityPolicies( - DescribeSecurityPoliciesRequest request) throws UCloudException { - request.setAction("DescribeSecurityPolicies"); - return (DescribeSecurityPoliciesResponse) - this.invoke(request, DescribeSecurityPoliciesResponse.class); - } - - /** - * DescribeSupportCiphers - 描述支持的加密套件 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeSupportCiphersResponse describeSupportCiphers( - DescribeSupportCiphersRequest request) throws UCloudException { - request.setAction("DescribeSupportCiphers"); - return (DescribeSupportCiphersResponse) - this.invoke(request, DescribeSupportCiphersResponse.class); - } - - /** - * DescribeULB - 获取负载均衡信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeULBResponse describeULB(DescribeULBRequest request) throws UCloudException { - request.setAction("DescribeULB"); - return (DescribeULBResponse) this.invoke(request, DescribeULBResponse.class); - } - - /** - * DescribeULBSimple - 获取负载均衡信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeULBSimpleResponse describeULBSimple(DescribeULBSimpleRequest request) - throws UCloudException { - request.setAction("DescribeULBSimple"); - return (DescribeULBSimpleResponse) this.invoke(request, DescribeULBSimpleResponse.class); - } - - /** - * DescribeVServer - 获取VServer信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeVServerResponse describeVServer(DescribeVServerRequest request) - throws UCloudException { - request.setAction("DescribeVServer"); - return (DescribeVServerResponse) this.invoke(request, DescribeVServerResponse.class); - } - - /** - * ReleaseBackend - 释放后端实例 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ReleaseBackendResponse releaseBackend(ReleaseBackendRequest request) - throws UCloudException { - request.setAction("ReleaseBackend"); - return (ReleaseBackendResponse) this.invoke(request, ReleaseBackendResponse.class); - } - - /** - * UnBindSecurityPolicy - 解绑安全策略 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UnBindSecurityPolicyResponse unBindSecurityPolicy(UnBindSecurityPolicyRequest request) - throws UCloudException { - request.setAction("UnBindSecurityPolicy"); - return (UnBindSecurityPolicyResponse) - this.invoke(request, UnBindSecurityPolicyResponse.class); - } - - /** - * UnbindSSL - 解绑SSL证书 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UnbindSSLResponse unbindSSL(UnbindSSLRequest request) throws UCloudException { - request.setAction("UnbindSSL"); - return (UnbindSSLResponse) this.invoke(request, UnbindSSLResponse.class); - } - - /** - * UpdateBackendAttribute - 更新后端实例属性 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateBackendAttributeResponse updateBackendAttribute( - UpdateBackendAttributeRequest request) throws UCloudException { - request.setAction("UpdateBackendAttribute"); - return (UpdateBackendAttributeResponse) - this.invoke(request, UpdateBackendAttributeResponse.class); - } - - /** - * UpdatePolicy - 更新内容转发规则 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdatePolicyResponse updatePolicy(UpdatePolicyRequest request) throws UCloudException { - request.setAction("UpdatePolicy"); - return (UpdatePolicyResponse) this.invoke(request, UpdatePolicyResponse.class); - } - - /** - * UpdateSSLAttribute - 更新SSL属性 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateSSLAttributeResponse updateSSLAttribute(UpdateSSLAttributeRequest request) - throws UCloudException { - request.setAction("UpdateSSLAttribute"); - return (UpdateSSLAttributeResponse) this.invoke(request, UpdateSSLAttributeResponse.class); - } - - /** - * UpdateSecurityPolicy - 更新安全策略 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyRequest request) - throws UCloudException { - request.setAction("UpdateSecurityPolicy"); - return (UpdateSecurityPolicyResponse) - this.invoke(request, UpdateSecurityPolicyResponse.class); - } - - /** - * UpdateULBAttribute - 更新负载均衡属性 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateULBAttributeResponse updateULBAttribute(UpdateULBAttributeRequest request) - throws UCloudException { - request.setAction("UpdateULBAttribute"); - return (UpdateULBAttributeResponse) this.invoke(request, UpdateULBAttributeResponse.class); - } - - /** - * UpdateVServerAttribute - 更新VServer属性 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateVServerAttributeResponse updateVServerAttribute( - UpdateVServerAttributeRequest request) throws UCloudException { - request.setAction("UpdateVServerAttribute"); - return (UpdateVServerAttributeResponse) - this.invoke(request, UpdateVServerAttributeResponse.class); - } + + + + + + + /** + * AllocateBackend - 添加后端实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AllocateBackendResponse allocateBackend(AllocateBackendRequest request) throws UCloudException { + request.setAction("AllocateBackend"); + return (AllocateBackendResponse) this.invoke(request, AllocateBackendResponse.class); + } + + + + + + + /** + * BindSSL - 绑定SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BindSSLResponse bindSSL(BindSSLRequest request) throws UCloudException { + request.setAction("BindSSL"); + return (BindSSLResponse) this.invoke(request, BindSSLResponse.class); + } + + + + + + + /** + * CreatePolicy - 创建内容转发策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreatePolicyResponse createPolicy(CreatePolicyRequest request) throws UCloudException { + request.setAction("CreatePolicy"); + return (CreatePolicyResponse) this.invoke(request, CreatePolicyResponse.class); + } + + + + + + + /** + * CreateSSL - 创建SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateSSLResponse createSSL(CreateSSLRequest request) throws UCloudException { + request.setAction("CreateSSL"); + return (CreateSSLResponse) this.invoke(request, CreateSSLResponse.class); + } + + + + + + + /** + * CreateSecurityPolicy - 创建安全策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyRequest request) throws UCloudException { + request.setAction("CreateSecurityPolicy"); + return (CreateSecurityPolicyResponse) this.invoke(request, CreateSecurityPolicyResponse.class); + } + + + + + + + /** + * CreateULB - 创建负载均衡 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateULBResponse createULB(CreateULBRequest request) throws UCloudException { + request.setAction("CreateULB"); + return (CreateULBResponse) this.invoke(request, CreateULBResponse.class); + } + + + + + + + /** + * CreateVServer - 创建VServer + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateVServerResponse createVServer(CreateVServerRequest request) throws UCloudException { + request.setAction("CreateVServer"); + return (CreateVServerResponse) this.invoke(request, CreateVServerResponse.class); + } + + + + + + + /** + * DeletePolicy - 删除转发策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws UCloudException { + request.setAction("DeletePolicy"); + return (DeletePolicyResponse) this.invoke(request, DeletePolicyResponse.class); + } + + + + + + + /** + * DeleteSSL - 删除SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteSSLResponse deleteSSL(DeleteSSLRequest request) throws UCloudException { + request.setAction("DeleteSSL"); + return (DeleteSSLResponse) this.invoke(request, DeleteSSLResponse.class); + } + + + + + + + /** + * DeleteSecurityPolicy - 删除安全策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyRequest request) throws UCloudException { + request.setAction("DeleteSecurityPolicy"); + return (DeleteSecurityPolicyResponse) this.invoke(request, DeleteSecurityPolicyResponse.class); + } + + + + + + + /** + * DeleteULB - 删除负载均衡 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteULBResponse deleteULB(DeleteULBRequest request) throws UCloudException { + request.setAction("DeleteULB"); + return (DeleteULBResponse) this.invoke(request, DeleteULBResponse.class); + } + + + + + + + /** + * DeleteVServer - 删除VServer + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteVServerResponse deleteVServer(DeleteVServerRequest request) throws UCloudException { + request.setAction("DeleteVServer"); + return (DeleteVServerResponse) this.invoke(request, DeleteVServerResponse.class); + } + + + + + + + /** + * DescribeSSL - 获取SSL证书信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeSSLResponse describeSSL(DescribeSSLRequest request) throws UCloudException { + request.setAction("DescribeSSL"); + return (DescribeSSLResponse) this.invoke(request, DescribeSSLResponse.class); + } + + + + + + + /** + * DescribeSecurityPolicies - 获取安全策略的信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeSecurityPoliciesResponse describeSecurityPolicies(DescribeSecurityPoliciesRequest request) throws UCloudException { + request.setAction("DescribeSecurityPolicies"); + return (DescribeSecurityPoliciesResponse) this.invoke(request, DescribeSecurityPoliciesResponse.class); + } + + + + + + + /** + * DescribeSupportCiphers - 描述支持的加密套件 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeSupportCiphersResponse describeSupportCiphers(DescribeSupportCiphersRequest request) throws UCloudException { + request.setAction("DescribeSupportCiphers"); + return (DescribeSupportCiphersResponse) this.invoke(request, DescribeSupportCiphersResponse.class); + } + + + + + + + /** + * DescribeULB - 获取负载均衡信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULBResponse describeULB(DescribeULBRequest request) throws UCloudException { + request.setAction("DescribeULB"); + return (DescribeULBResponse) this.invoke(request, DescribeULBResponse.class); + } + + + + + + + /** + * DescribeULBSimple - 获取负载均衡信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULBSimpleResponse describeULBSimple(DescribeULBSimpleRequest request) throws UCloudException { + request.setAction("DescribeULBSimple"); + return (DescribeULBSimpleResponse) this.invoke(request, DescribeULBSimpleResponse.class); + } + + + + + + + /** + * DescribeVServer - 获取VServer信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeVServerResponse describeVServer(DescribeVServerRequest request) throws UCloudException { + request.setAction("DescribeVServer"); + return (DescribeVServerResponse) this.invoke(request, DescribeVServerResponse.class); + } + + + + + + + /** + * ReleaseBackend - 释放后端实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReleaseBackendResponse releaseBackend(ReleaseBackendRequest request) throws UCloudException { + request.setAction("ReleaseBackend"); + return (ReleaseBackendResponse) this.invoke(request, ReleaseBackendResponse.class); + } + + + + + + + /** + * UnBindSecurityPolicy - 解绑安全策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UnBindSecurityPolicyResponse unBindSecurityPolicy(UnBindSecurityPolicyRequest request) throws UCloudException { + request.setAction("UnBindSecurityPolicy"); + return (UnBindSecurityPolicyResponse) this.invoke(request, UnBindSecurityPolicyResponse.class); + } + + + + + + + /** + * UnbindSSL - 解绑SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UnbindSSLResponse unbindSSL(UnbindSSLRequest request) throws UCloudException { + request.setAction("UnbindSSL"); + return (UnbindSSLResponse) this.invoke(request, UnbindSSLResponse.class); + } + + + + + + + /** + * UpdateBackendAttribute - 更新后端实例属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateBackendAttributeResponse updateBackendAttribute(UpdateBackendAttributeRequest request) throws UCloudException { + request.setAction("UpdateBackendAttribute"); + return (UpdateBackendAttributeResponse) this.invoke(request, UpdateBackendAttributeResponse.class); + } + + + + + + + /** + * UpdatePolicy - 更新内容转发规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdatePolicyResponse updatePolicy(UpdatePolicyRequest request) throws UCloudException { + request.setAction("UpdatePolicy"); + return (UpdatePolicyResponse) this.invoke(request, UpdatePolicyResponse.class); + } + + + + + + + /** + * UpdateSSLAttribute - 更新SSL属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateSSLAttributeResponse updateSSLAttribute(UpdateSSLAttributeRequest request) throws UCloudException { + request.setAction("UpdateSSLAttribute"); + return (UpdateSSLAttributeResponse) this.invoke(request, UpdateSSLAttributeResponse.class); + } + + + + + + + /** + * UpdateSecurityPolicy - 更新安全策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyRequest request) throws UCloudException { + request.setAction("UpdateSecurityPolicy"); + return (UpdateSecurityPolicyResponse) this.invoke(request, UpdateSecurityPolicyResponse.class); + } + + + + + + + /** + * UpdateULBAttribute - 更新负载均衡属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateULBAttributeResponse updateULBAttribute(UpdateULBAttributeRequest request) throws UCloudException { + request.setAction("UpdateULBAttribute"); + return (UpdateULBAttributeResponse) this.invoke(request, UpdateULBAttributeResponse.class); + } + + + + + + + /** + * UpdateVServerAttribute - 更新VServer属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateVServerAttributeResponse updateVServerAttribute(UpdateVServerAttributeRequest request) throws UCloudException { + request.setAction("UpdateVServerAttribute"); + return (UpdateVServerAttributeResponse) this.invoke(request, UpdateVServerAttributeResponse.class); + } } diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java index 6bd678bc..379a2264 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java @@ -1,87 +1,181 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.ulb.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.ulb.models.AllocateBackendRequest; import cn.ucloud.ulb.models.AllocateBackendResponse; + + + import cn.ucloud.ulb.models.BindSSLRequest; import cn.ucloud.ulb.models.BindSSLResponse; + + + import cn.ucloud.ulb.models.CreatePolicyRequest; import cn.ucloud.ulb.models.CreatePolicyResponse; + + + import cn.ucloud.ulb.models.CreateSSLRequest; import cn.ucloud.ulb.models.CreateSSLResponse; + + + import cn.ucloud.ulb.models.CreateSecurityPolicyRequest; import cn.ucloud.ulb.models.CreateSecurityPolicyResponse; + + + import cn.ucloud.ulb.models.CreateULBRequest; import cn.ucloud.ulb.models.CreateULBResponse; + + + import cn.ucloud.ulb.models.CreateVServerRequest; import cn.ucloud.ulb.models.CreateVServerResponse; + + + import cn.ucloud.ulb.models.DeletePolicyRequest; import cn.ucloud.ulb.models.DeletePolicyResponse; + + + import cn.ucloud.ulb.models.DeleteSSLRequest; import cn.ucloud.ulb.models.DeleteSSLResponse; + + + import cn.ucloud.ulb.models.DeleteSecurityPolicyRequest; import cn.ucloud.ulb.models.DeleteSecurityPolicyResponse; + + + import cn.ucloud.ulb.models.DeleteULBRequest; import cn.ucloud.ulb.models.DeleteULBResponse; + + + import cn.ucloud.ulb.models.DeleteVServerRequest; import cn.ucloud.ulb.models.DeleteVServerResponse; + + + import cn.ucloud.ulb.models.DescribeSSLRequest; import cn.ucloud.ulb.models.DescribeSSLResponse; + + + import cn.ucloud.ulb.models.DescribeSecurityPoliciesRequest; import cn.ucloud.ulb.models.DescribeSecurityPoliciesResponse; + + + import cn.ucloud.ulb.models.DescribeSupportCiphersRequest; import cn.ucloud.ulb.models.DescribeSupportCiphersResponse; + + + import cn.ucloud.ulb.models.DescribeULBRequest; import cn.ucloud.ulb.models.DescribeULBResponse; + + + import cn.ucloud.ulb.models.DescribeULBSimpleRequest; import cn.ucloud.ulb.models.DescribeULBSimpleResponse; + + + import cn.ucloud.ulb.models.DescribeVServerRequest; import cn.ucloud.ulb.models.DescribeVServerResponse; + + + import cn.ucloud.ulb.models.ReleaseBackendRequest; import cn.ucloud.ulb.models.ReleaseBackendResponse; + + + import cn.ucloud.ulb.models.UnBindSecurityPolicyRequest; import cn.ucloud.ulb.models.UnBindSecurityPolicyResponse; + + + import cn.ucloud.ulb.models.UnbindSSLRequest; import cn.ucloud.ulb.models.UnbindSSLResponse; + + + import cn.ucloud.ulb.models.UpdateBackendAttributeRequest; import cn.ucloud.ulb.models.UpdateBackendAttributeResponse; + + + import cn.ucloud.ulb.models.UpdatePolicyRequest; import cn.ucloud.ulb.models.UpdatePolicyResponse; + + + import cn.ucloud.ulb.models.UpdateSSLAttributeRequest; import cn.ucloud.ulb.models.UpdateSSLAttributeResponse; + + + import cn.ucloud.ulb.models.UpdateSecurityPolicyRequest; import cn.ucloud.ulb.models.UpdateSecurityPolicyResponse; + + + import cn.ucloud.ulb.models.UpdateULBAttributeRequest; import cn.ucloud.ulb.models.UpdateULBAttributeResponse; + + + import cn.ucloud.ulb.models.UpdateVServerAttributeRequest; import cn.ucloud.ulb.models.UpdateVServerAttributeResponse; -/** This client is used to call actions of **ULB** service */ +/** + * This client is used to call actions of **ULB** service + */ public interface ULBClientInterface extends Client { - + + + + + + /** * AllocateBackend - 添加后端实例 * * @param request Request object * @throws UCloudException Exception */ - public AllocateBackendResponse allocateBackend(AllocateBackendRequest request) - throws UCloudException; - + public AllocateBackendResponse allocateBackend(AllocateBackendRequest request) throws UCloudException; + + + + + + /** * BindSSL - 绑定SSL证书 * @@ -89,7 +183,12 @@ public AllocateBackendResponse allocateBackend(AllocateBackendRequest request) * @throws UCloudException Exception */ public BindSSLResponse bindSSL(BindSSLRequest request) throws UCloudException; - + + + + + + /** * CreatePolicy - 创建内容转发策略 * @@ -97,7 +196,12 @@ public AllocateBackendResponse allocateBackend(AllocateBackendRequest request) * @throws UCloudException Exception */ public CreatePolicyResponse createPolicy(CreatePolicyRequest request) throws UCloudException; - + + + + + + /** * CreateSSL - 创建SSL证书 * @@ -105,16 +209,25 @@ public AllocateBackendResponse allocateBackend(AllocateBackendRequest request) * @throws UCloudException Exception */ public CreateSSLResponse createSSL(CreateSSLRequest request) throws UCloudException; - + + + + + + /** * CreateSecurityPolicy - 创建安全策略 * * @param request Request object * @throws UCloudException Exception */ - public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyRequest request) - throws UCloudException; - + public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyRequest request) throws UCloudException; + + + + + + /** * CreateULB - 创建负载均衡 * @@ -122,7 +235,12 @@ public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyReq * @throws UCloudException Exception */ public CreateULBResponse createULB(CreateULBRequest request) throws UCloudException; - + + + + + + /** * CreateVServer - 创建VServer * @@ -130,7 +248,12 @@ public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyReq * @throws UCloudException Exception */ public CreateVServerResponse createVServer(CreateVServerRequest request) throws UCloudException; - + + + + + + /** * DeletePolicy - 删除转发策略 * @@ -138,7 +261,12 @@ public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyReq * @throws UCloudException Exception */ public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws UCloudException; - + + + + + + /** * DeleteSSL - 删除SSL证书 * @@ -146,16 +274,25 @@ public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyReq * @throws UCloudException Exception */ public DeleteSSLResponse deleteSSL(DeleteSSLRequest request) throws UCloudException; - + + + + + + /** * DeleteSecurityPolicy - 删除安全策略 * * @param request Request object * @throws UCloudException Exception */ - public DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyRequest request) - throws UCloudException; - + public DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyRequest request) throws UCloudException; + + + + + + /** * DeleteULB - 删除负载均衡 * @@ -163,7 +300,12 @@ public DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyReq * @throws UCloudException Exception */ public DeleteULBResponse deleteULB(DeleteULBRequest request) throws UCloudException; - + + + + + + /** * DeleteVServer - 删除VServer * @@ -171,7 +313,12 @@ public DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyReq * @throws UCloudException Exception */ public DeleteVServerResponse deleteVServer(DeleteVServerRequest request) throws UCloudException; - + + + + + + /** * DescribeSSL - 获取SSL证书信息 * @@ -179,25 +326,38 @@ public DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyReq * @throws UCloudException Exception */ public DescribeSSLResponse describeSSL(DescribeSSLRequest request) throws UCloudException; - + + + + + + /** * DescribeSecurityPolicies - 获取安全策略的信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeSecurityPoliciesResponse describeSecurityPolicies( - DescribeSecurityPoliciesRequest request) throws UCloudException; - + public DescribeSecurityPoliciesResponse describeSecurityPolicies(DescribeSecurityPoliciesRequest request) throws UCloudException; + + + + + + /** * DescribeSupportCiphers - 描述支持的加密套件 * * @param request Request object * @throws UCloudException Exception */ - public DescribeSupportCiphersResponse describeSupportCiphers( - DescribeSupportCiphersRequest request) throws UCloudException; - + public DescribeSupportCiphersResponse describeSupportCiphers(DescribeSupportCiphersRequest request) throws UCloudException; + + + + + + /** * DescribeULB - 获取负载均衡信息 * @@ -205,43 +365,64 @@ public DescribeSupportCiphersResponse describeSupportCiphers( * @throws UCloudException Exception */ public DescribeULBResponse describeULB(DescribeULBRequest request) throws UCloudException; - + + + + + + /** * DescribeULBSimple - 获取负载均衡信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeULBSimpleResponse describeULBSimple(DescribeULBSimpleRequest request) - throws UCloudException; - + public DescribeULBSimpleResponse describeULBSimple(DescribeULBSimpleRequest request) throws UCloudException; + + + + + + /** * DescribeVServer - 获取VServer信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeVServerResponse describeVServer(DescribeVServerRequest request) - throws UCloudException; - + public DescribeVServerResponse describeVServer(DescribeVServerRequest request) throws UCloudException; + + + + + + /** * ReleaseBackend - 释放后端实例 * * @param request Request object * @throws UCloudException Exception */ - public ReleaseBackendResponse releaseBackend(ReleaseBackendRequest request) - throws UCloudException; - + public ReleaseBackendResponse releaseBackend(ReleaseBackendRequest request) throws UCloudException; + + + + + + /** * UnBindSecurityPolicy - 解绑安全策略 * * @param request Request object * @throws UCloudException Exception */ - public UnBindSecurityPolicyResponse unBindSecurityPolicy(UnBindSecurityPolicyRequest request) - throws UCloudException; - + public UnBindSecurityPolicyResponse unBindSecurityPolicy(UnBindSecurityPolicyRequest request) throws UCloudException; + + + + + + /** * UnbindSSL - 解绑SSL证书 * @@ -249,16 +430,25 @@ public UnBindSecurityPolicyResponse unBindSecurityPolicy(UnBindSecurityPolicyReq * @throws UCloudException Exception */ public UnbindSSLResponse unbindSSL(UnbindSSLRequest request) throws UCloudException; - + + + + + + /** * UpdateBackendAttribute - 更新后端实例属性 * * @param request Request object * @throws UCloudException Exception */ - public UpdateBackendAttributeResponse updateBackendAttribute( - UpdateBackendAttributeRequest request) throws UCloudException; - + public UpdateBackendAttributeResponse updateBackendAttribute(UpdateBackendAttributeRequest request) throws UCloudException; + + + + + + /** * UpdatePolicy - 更新内容转发规则 * @@ -266,40 +456,56 @@ public UpdateBackendAttributeResponse updateBackendAttribute( * @throws UCloudException Exception */ public UpdatePolicyResponse updatePolicy(UpdatePolicyRequest request) throws UCloudException; - + + + + + + /** * UpdateSSLAttribute - 更新SSL属性 * * @param request Request object * @throws UCloudException Exception */ - public UpdateSSLAttributeResponse updateSSLAttribute(UpdateSSLAttributeRequest request) - throws UCloudException; - + public UpdateSSLAttributeResponse updateSSLAttribute(UpdateSSLAttributeRequest request) throws UCloudException; + + + + + + /** * UpdateSecurityPolicy - 更新安全策略 * * @param request Request object * @throws UCloudException Exception */ - public UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyRequest request) - throws UCloudException; - + public UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyRequest request) throws UCloudException; + + + + + + /** * UpdateULBAttribute - 更新负载均衡属性 * * @param request Request object * @throws UCloudException Exception */ - public UpdateULBAttributeResponse updateULBAttribute(UpdateULBAttributeRequest request) - throws UCloudException; - + public UpdateULBAttributeResponse updateULBAttribute(UpdateULBAttributeRequest request) throws UCloudException; + + + + + + /** * UpdateVServerAttribute - 更新VServer属性 * * @param request Request object * @throws UCloudException Exception */ - public UpdateVServerAttributeResponse updateVServerAttribute( - UpdateVServerAttributeRequest request) throws UCloudException; + public UpdateVServerAttributeResponse updateVServerAttribute(UpdateVServerAttributeRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendRequest.java index a5c0ea1b..db0366ca 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendRequest.java @@ -1,89 +1,142 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AllocateBackendRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 负载均衡实例的ID */ + + + + /** + * 负载均衡实例的ID + */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - - /** VServer实例的ID */ + + + + /** + * VServer实例的ID + */ @NotEmpty @UCloudParam("VServerId") private String vServerId; - + + + /** - * 所添加的后端资源的类型,枚举值:UHost -> 云主机;UNI -> 虚拟网卡;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> - * 容器;UHybrid->混合云主机;CUBE->Cube,USDP->智能大数据平台, - * IP->IP类型;默认值为UHost。报文转发模式不支持UDocker、UHybrid、CUBE、IP + * 所添加的后端资源的类型,枚举值:UHost -> 云主机;UNI -> 虚拟网卡;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器;UHybrid->混合云主机;CUBE->Cube,USDP->智能大数据平台, IP->IP类型;默认值为UHost。报文转发模式不支持UDocker、UHybrid、CUBE、IP */ @NotEmpty @UCloudParam("ResourceType") private String resourceType; - - /** 所添加的后端资源的资源ID;与ResourceIP二选一必填 */ + + + + /** + * 所添加的后端资源的资源ID;与ResourceIP二选一必填 + */ @UCloudParam("ResourceId") private String resourceId; - - /** 所添加的后端服务器的资源实例IP,当ResourceType 为 UHybrid 或 IP时有效,且必填;与ResourceId二选一必填 */ + + + + /** + * 所添加的后端服务器的资源实例IP,当ResourceType 为 UHybrid 或 IP时有效,且必填;与ResourceId二选一必填 + */ @UCloudParam("ResourceIP") private String resourceIP; - - /** 所添加的后端服务器所在的vpc,当ResourceType 为 UHybrid 或 IP 时有效,且必填 */ + + + + /** + * 所添加的后端服务器所在的vpc,当ResourceType 为 UHybrid 或 IP 时有效,且必填 + */ @UCloudParam("VPCId") private String vpcId; - - /** 所添加的后端服务器所在的子网,当ResourceType 为 UHybrid 或 IP 时有效,且必填 */ + + + + /** + * 所添加的后端服务器所在的子网,当ResourceType 为 UHybrid 或 IP 时有效,且必填 + */ @UCloudParam("SubnetId") private String subnetId; - - /** 所添加的后端资源服务端口,取值范围[1-65535],默认80 */ + + + + /** + * 所添加的后端资源服务端口,取值范围[1-65535],默认80 + */ @UCloudParam("Port") private Integer port; - - /** 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1 */ + + + + /** + * 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1 + */ @UCloudParam("Weight") private Integer weight; - - /** 后端实例状态开关,枚举值: 1:启用; 0:禁用 默认为启用 */ + + + + /** + * 后端实例状态开关,枚举值: 1:启用; 0:禁用 默认为启用 + */ @UCloudParam("Enabled") private Integer enabled; - - /** rs是否为backup,默认为0 0:普通rs 1:backup的rs */ + + + + /** + * rs是否为backup,默认为0 +0:普通rs +1:backup的rs + */ @UCloudParam("IsBackup") private Integer isBackup; - + + public String getRegion() { return region; } @@ -91,7 +144,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -99,7 +152,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -107,7 +160,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getVServerId() { return vServerId; } @@ -115,7 +168,7 @@ public String getVServerId() { public void setVServerId(String vServerId) { this.vServerId = vServerId; } - + public String getResourceType() { return resourceType; } @@ -123,7 +176,7 @@ public String getResourceType() { public void setResourceType(String resourceType) { this.resourceType = resourceType; } - + public String getResourceId() { return resourceId; } @@ -131,7 +184,7 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } - + public String getResourceIP() { return resourceIP; } @@ -139,7 +192,7 @@ public String getResourceIP() { public void setResourceIP(String resourceIP) { this.resourceIP = resourceIP; } - + public String getVPCId() { return vpcId; } @@ -147,7 +200,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -155,7 +208,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public Integer getPort() { return port; } @@ -163,7 +216,7 @@ public Integer getPort() { public void setPort(Integer port) { this.port = port; } - + public Integer getWeight() { return weight; } @@ -171,7 +224,7 @@ public Integer getWeight() { public void setWeight(Integer weight) { this.weight = weight; } - + public Integer getEnabled() { return enabled; } @@ -179,7 +232,7 @@ public Integer getEnabled() { public void setEnabled(Integer enabled) { this.enabled = enabled; } - + public Integer getIsBackup() { return isBackup; } @@ -187,4 +240,14 @@ public Integer getIsBackup() { public void setIsBackup(Integer isBackup) { this.isBackup = isBackup; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendResponse.java index af0d4bb4..79e5a5f9 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendResponse.java @@ -1,32 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class AllocateBackendResponse extends Response { + + /** - * 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关),可用于 - * UpdateBackendAttribute/UpdateBackendAttributeBatch/ReleaseBackend + * 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关),可用于 UpdateBackendAttribute/UpdateBackendAttributeBatch/ReleaseBackend */ @SerializedName("BackendId") private String backendId; - + + public String getBackendId() { return backendId; } @@ -34,4 +41,14 @@ public String getBackendId() { public void setBackendId(String backendId) { this.backendId = backendId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/BindSSLRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/BindSSLRequest.java index b2352790..53b62ce9 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/BindSSLRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/BindSSLRequest.java @@ -1,50 +1,76 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class BindSSLRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 所绑定ULB实例ID */ + + + + /** + * 所绑定ULB实例ID + */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - - /** 所绑定VServer实例ID */ + + + + /** + * 所绑定VServer实例ID + */ @NotEmpty @UCloudParam("VServerId") private String vServerId; - - /** SSL证书的Id */ + + + + /** + * SSL证书的Id + */ @NotEmpty @UCloudParam("SSLId") private String sslId; - + + public String getRegion() { return region; } @@ -52,7 +78,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -60,7 +86,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -68,7 +94,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getVServerId() { return vServerId; } @@ -76,7 +102,7 @@ public String getVServerId() { public void setVServerId(String vServerId) { this.vServerId = vServerId; } - + public String getSSLId() { return sslId; } @@ -84,4 +110,14 @@ public String getSSLId() { public void setSSLId(String sslId) { this.sslId = sslId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/BindSSLResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/BindSSLResponse.java index 3791457c..4e8df376 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/BindSSLResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/BindSSLResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class BindSSLResponse extends Response {} +public class BindSSLResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreatePolicyRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreatePolicyRequest.java index 1946ca66..a8930fc1 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreatePolicyRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreatePolicyRequest.java @@ -1,71 +1,109 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreatePolicyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 需要添加内容转发策略的负载均衡实例ID */ + + + + /** + * 需要添加内容转发策略的负载均衡实例ID + */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - - /** 需要添加内容转发策略的VServer实例ID */ + + + + /** + * 需要添加内容转发策略的VServer实例ID + */ @NotEmpty @UCloudParam("VServerId") private String vServerId; - - /** 内容转发策略应用的后端资源实例的ID,来源于 AllocateBackend 返回的 BackendId */ + + + + /** + * 内容转发策略应用的后端资源实例的ID,来源于 AllocateBackend 返回的 BackendId + */ @NotEmpty @UCloudParam("BackendId") private List backendId; - - /** 内容转发匹配字段 */ + + + + /** + * 内容转发匹配字段 + */ @NotEmpty @UCloudParam("Match") private String match; - - /** 内容转发规则中域名的匹配方式,默认与原本一致。枚举值:Regular,正则;Wildcard,泛域名 */ + + + + /** + * 内容转发规则中域名的匹配方式,默认与原本一致。枚举值:Regular,正则;Wildcard,泛域名 + */ @UCloudParam("DomainMatchMode") private String domainMatchMode; - - /** 内容转发匹配字段的类型 */ + + + + /** + * 内容转发匹配字段的类型 + */ @UCloudParam("Type") private String type; - - /** 策略优先级,1-9999;只针对路径规则生效 */ + + + + /** + * 策略优先级,1-9999;只针对路径规则生效 + */ @UCloudParam("PolicyPriority") private Integer policyPriority; - + + public String getRegion() { return region; } @@ -73,7 +111,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -81,7 +119,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -89,7 +127,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getVServerId() { return vServerId; } @@ -97,7 +135,7 @@ public String getVServerId() { public void setVServerId(String vServerId) { this.vServerId = vServerId; } - + public List getBackendId() { return backendId; } @@ -105,7 +143,7 @@ public List getBackendId() { public void setBackendId(List backendId) { this.backendId = backendId; } - + public String getMatch() { return match; } @@ -113,7 +151,7 @@ public String getMatch() { public void setMatch(String match) { this.match = match; } - + public String getDomainMatchMode() { return domainMatchMode; } @@ -121,7 +159,7 @@ public String getDomainMatchMode() { public void setDomainMatchMode(String domainMatchMode) { this.domainMatchMode = domainMatchMode; } - + public String getType() { return type; } @@ -129,7 +167,7 @@ public String getType() { public void setType(String type) { this.type = type; } - + public Integer getPolicyPriority() { return policyPriority; } @@ -137,4 +175,14 @@ public Integer getPolicyPriority() { public void setPolicyPriority(Integer policyPriority) { this.policyPriority = policyPriority; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreatePolicyResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreatePolicyResponse.java index c6d3fbb2..d9162107 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreatePolicyResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreatePolicyResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreatePolicyResponse extends Response { - /** 内容转发策略ID */ + + + /** + * 内容转发策略ID + */ @SerializedName("PolicyId") private String policyId; - + + public String getPolicyId() { return policyId; } @@ -31,4 +41,14 @@ public String getPolicyId() { public void setPolicyId(String policyId) { this.policyId = policyId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSSLRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSSLRequest.java index 44feafae..0946078f 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSSLRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSSLRequest.java @@ -1,67 +1,106 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateSSLRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** SSL证书的名字,默认值不为空 */ + + + + /** + * SSL证书的名字,默认值不为空 + */ @NotEmpty @UCloudParam("SSLName") private String sslName; - - /** 所添加的SSL证书类型,目前只支持Pem格式 */ + + + + /** + * 所添加的SSL证书类型,目前只支持Pem格式 + */ @UCloudParam("SSLType") private String sslType; - - /** SSL证书的完整内容,包括用户证书、加密证书的私钥、CA证书 */ + + + + /** + * SSL证书的完整内容,包括用户证书、加密证书的私钥、CA证书 + */ @UCloudParam("SSLContent") private String sslContent; - - /** 用户的证书 */ + + + + /** + * 用户的证书 + */ @UCloudParam("UserCert") private String userCert; - - /** 加密证书的私钥 */ + + + + /** + * 加密证书的私钥 + */ @UCloudParam("PrivateKey") private String privateKey; - - /** CA证书 */ + + + + /** + * CA证书 + */ @UCloudParam("CaCert") private String caCert; - - /** USSL证书的ID */ + + + + /** + * USSL证书的ID + */ @UCloudParam("USSLId") private String usslId; - + + public String getRegion() { return region; } @@ -69,7 +108,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -77,7 +116,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSSLName() { return sslName; } @@ -85,7 +124,7 @@ public String getSSLName() { public void setSSLName(String sslName) { this.sslName = sslName; } - + public String getSSLType() { return sslType; } @@ -93,7 +132,7 @@ public String getSSLType() { public void setSSLType(String sslType) { this.sslType = sslType; } - + public String getSSLContent() { return sslContent; } @@ -101,7 +140,7 @@ public String getSSLContent() { public void setSSLContent(String sslContent) { this.sslContent = sslContent; } - + public String getUserCert() { return userCert; } @@ -109,7 +148,7 @@ public String getUserCert() { public void setUserCert(String userCert) { this.userCert = userCert; } - + public String getPrivateKey() { return privateKey; } @@ -117,7 +156,7 @@ public String getPrivateKey() { public void setPrivateKey(String privateKey) { this.privateKey = privateKey; } - + public String getCaCert() { return caCert; } @@ -125,7 +164,7 @@ public String getCaCert() { public void setCaCert(String caCert) { this.caCert = caCert; } - + public String getUSSLId() { return usslId; } @@ -133,4 +172,14 @@ public String getUSSLId() { public void setUSSLId(String usslId) { this.usslId = usslId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSSLResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSSLResponse.java index 9fdab828..6f1f6df3 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSSLResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSSLResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateSSLResponse extends Response { - /** SSL证书的Id */ + + + /** + * SSL证书的Id + */ @SerializedName("SSLId") private String sslId; - + + public String getSSLId() { return sslId; } @@ -31,4 +41,14 @@ public String getSSLId() { public void setSSLId(String sslId) { this.sslId = sslId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSecurityPolicyRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSecurityPolicyRequest.java index c07b9b64..aa542b3f 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSecurityPolicyRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSecurityPolicyRequest.java @@ -1,54 +1,76 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateSecurityPolicyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** TLS版本 */ + + + + /** + * TLS版本 + */ @NotEmpty @UCloudParam("TLSVersion") private String tlsVersion; - - /** 加密套件 */ + + + + /** + * 加密套件 + */ @NotEmpty @UCloudParam("SSLCiphers") private List sslCiphers; - - /** 安全策略名称 */ + + + + /** + * 安全策略名称 + */ @NotEmpty @UCloudParam("SecurityPolicyName") private String securityPolicyName; - + + public String getRegion() { return region; } @@ -56,7 +78,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -64,7 +86,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getTLSVersion() { return tlsVersion; } @@ -72,7 +94,7 @@ public String getTLSVersion() { public void setTLSVersion(String tlsVersion) { this.tlsVersion = tlsVersion; } - + public List getSSLCiphers() { return sslCiphers; } @@ -80,7 +102,7 @@ public List getSSLCiphers() { public void setSSLCiphers(List sslCiphers) { this.sslCiphers = sslCiphers; } - + public String getSecurityPolicyName() { return securityPolicyName; } @@ -88,4 +110,14 @@ public String getSecurityPolicyName() { public void setSecurityPolicyName(String securityPolicyName) { this.securityPolicyName = securityPolicyName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSecurityPolicyResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSecurityPolicyResponse.java index cc8a1390..07f1fc02 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSecurityPolicyResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateSecurityPolicyResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateSecurityPolicyResponse extends Response { - /** 安全策略ID */ + + + /** + * 安全策略ID + */ @SerializedName("SecurityPolicyId") private String securityPolicyId; - + + public String getSecurityPolicyId() { return securityPolicyId; } @@ -31,4 +41,14 @@ public String getSecurityPolicyId() { public void setSecurityPolicyId(String securityPolicyId) { this.securityPolicyId = securityPolicyId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBRequest.java index 677b9251..1e272045 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBRequest.java @@ -1,84 +1,142 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateULBRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 负载均衡的名字,默认值为“ULB” */ + + + + /** + * 负载均衡的名字,默认值为“ULB” + */ @UCloudParam("ULBName") private String ulbName; - - /** 业务组 */ + + + + /** + * 业务组 + */ @UCloudParam("Tag") private String tag; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - - /** 创建的ULB是否为外网模式,默认即为外网模式 */ + + + + /** + * 创建的ULB是否为外网模式,默认即为外网模式 + */ @UCloudParam("OuterMode") private String outerMode; - - /** 创建的ULB是否为内网模式 */ + + + + /** + * 创建的ULB是否为内网模式 + */ @UCloudParam("InnerMode") private String innerMode; - - /** 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费 */ + + + + + + /** + * 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费 + */ @UCloudParam("ChargeType") private String chargeType; - - /** ULB所在的VPC的ID。 如果不传则使用默认的VPC,若不传且无默认VPC则接口报错 */ + + + + /** + * ULB所在的VPC的ID。 如果不传则使用默认的VPC,若不传且无默认VPC则接口报错 + */ @UCloudParam("VPCId") private String vpcId; - - /** ULB 所属的子网ID,如果不传则随机选择一个。 */ + + + + /** + * ULB 所属的子网ID,如果不传则随机选择一个。 + */ @UCloudParam("SubnetId") private String subnetId; - - /** ULB 所属的业务组ID,如果不传则使用默认的业务组 */ + + + + /** + * ULB 所属的业务组ID,如果不传则使用默认的业务组 + */ @UCloudParam("BusinessId") private String businessId; - - /** 防火墙ID,如果不传,则默认不绑定防火墙 */ + + + + /** + * 防火墙ID,如果不传,则默认不绑定防火墙 + */ @UCloudParam("FirewallId") private String firewallId; - + + + + + /** - * ULB 监听器类型,外网ULB默认RequestProxy,内网ULB默认PacketsTransmit。枚举值:RequestProxy,请求代理; PacketsTransmit - * ,报文转发。 + * ULB 监听器类型,外网ULB默认RequestProxy,内网ULB默认PacketsTransmit。枚举值:RequestProxy,请求代理; PacketsTransmit ,报文转发。 */ @UCloudParam("ListenType") private String listenType; - + + + + public String getRegion() { return region; } @@ -86,7 +144,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -94,7 +152,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBName() { return ulbName; } @@ -102,7 +160,7 @@ public String getULBName() { public void setULBName(String ulbName) { this.ulbName = ulbName; } - + public String getTag() { return tag; } @@ -110,7 +168,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -118,7 +176,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public String getOuterMode() { return outerMode; } @@ -126,7 +184,7 @@ public String getOuterMode() { public void setOuterMode(String outerMode) { this.outerMode = outerMode; } - + public String getInnerMode() { return innerMode; } @@ -134,7 +192,8 @@ public String getInnerMode() { public void setInnerMode(String innerMode) { this.innerMode = innerMode; } - + + public String getChargeType() { return chargeType; } @@ -142,7 +201,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getVPCId() { return vpcId; } @@ -150,7 +209,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -158,7 +217,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getBusinessId() { return businessId; } @@ -166,7 +225,7 @@ public String getBusinessId() { public void setBusinessId(String businessId) { this.businessId = businessId; } - + public String getFirewallId() { return firewallId; } @@ -174,7 +233,8 @@ public String getFirewallId() { public void setFirewallId(String firewallId) { this.firewallId = firewallId; } - + + public String getListenType() { return listenType; } @@ -182,4 +242,15 @@ public String getListenType() { public void setListenType(String listenType) { this.listenType = listenType; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBResponse.java index 3c210127..e07471a5 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateULBResponse extends Response { - /** 负载均衡实例的Id */ + + + /** + * 负载均衡实例的Id + */ @SerializedName("ULBId") private String ulbId; - - /** IPv6地址Id */ + + + + /** + * IPv6地址Id + */ @SerializedName("IPv6AddressId") private String iPv6AddressId; - + + public String getULBId() { return ulbId; } @@ -35,7 +49,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getIPv6AddressId() { return iPv6AddressId; } @@ -43,4 +57,14 @@ public String getIPv6AddressId() { public void setIPv6AddressId(String iPv6AddressId) { this.iPv6AddressId = iPv6AddressId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateVServerRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateVServerRequest.java index a53949ae..86e6c335 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateVServerRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateVServerRequest.java @@ -1,123 +1,197 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateVServerRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 负载均衡实例ID */ + + + + /** + * 负载均衡实例ID + */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - - /** VServer实例名称,默认为"VServer" */ + + + + /** + * VServer实例名称,默认为"VServer" + */ @UCloudParam("VServerName") private String vServerName; - - /** 监听器类型,枚举值,RequestProxy ,请求代理;PacketsTransmit ,报文转发。默认为RequestProxy */ + + + + /** + * 监听器类型,枚举值,RequestProxy ,请求代理;PacketsTransmit ,报文转发。默认为RequestProxy + */ @UCloudParam("ListenType") private String listenType; - - /** VServer实例的协议,请求代理模式下有 HTTP、HTTPS、TCP,报文转发下有 TCP,UDP。默认为“HTTP" */ + + + + /** + * VServer实例的协议,请求代理模式下有 HTTP、HTTPS、TCP,报文转发下有 TCP,UDP。默认为“HTTP" + */ @UCloudParam("Protocol") private String protocol; - - /** VServer后端端口,取值范围[1-65535];默认值为80 */ + + + + /** + * VServer后端端口,取值范围[1-65535];默认值为80 + */ @UCloudParam("FrontendPort") private Integer frontendPort; - + + + /** - * VServer负载均衡模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> - * 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口); WeightRoundrobin -> 加权轮询; Leastconn -> - * 最小连接数;Backup ->主备模式。 ConsistentHash,SourcePort,ConsistentHashPort - * 只在报文转发中使用;Leastconn只在请求代理中使用;Roundrobin、Source和WeightRoundrobin,Backup在请求代理和报文转发中使用。 - * 默认为:"Roundrobin" + * VServer负载均衡模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口); WeightRoundrobin -> 加权轮询; Leastconn -> 最小连接数;Backup ->主备模式。 +ConsistentHash,SourcePort,ConsistentHashPort 只在报文转发中使用;Leastconn只在请求代理中使用;Roundrobin、Source和WeightRoundrobin,Backup在请求代理和报文转发中使用。 +默认为:"Roundrobin" */ @UCloudParam("Method") private String method; - - /** VServer会话保持方式,默认关闭会话保持。枚举值:None -> 关闭;ServerInsert -> 自动生成KEY;UserDefined -> 用户自定义KEY。 */ + + + + /** + * VServer会话保持方式,默认关闭会话保持。枚举值:None -> 关闭;ServerInsert -> 自动生成KEY;UserDefined -> 用户自定义KEY。 + */ @UCloudParam("PersistenceType") private String persistenceType; - - /** 根据PersistenceType确认; None和ServerInsert: 此字段无意义; UserDefined:此字段传入自定义会话保持String */ + + + + /** + * 根据PersistenceType确认; None和ServerInsert: 此字段无意义; UserDefined:此字段传入自定义会话保持String + */ @UCloudParam("PersistenceInfo") private String persistenceInfo; - + + + /** - * ListenType为RequestProxy时表示空闲连接的回收时间,单位:秒,取值范围:时(0,86400],默认值为60;ListenType为PacketsTransmit时表示连接保持的时间,单位:秒,取值范围:[60,900],0 - * 表示禁用连接保持 + * ListenType为RequestProxy时表示空闲连接的回收时间,单位:秒,取值范围:时(0,86400],默认值为60;ListenType为PacketsTransmit时表示连接保持的时间,单位:秒,取值范围:[60,900],0 表示禁用连接保持 */ @UCloudParam("ClientTimeout") private Integer clientTimeout; - + + + /** * 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测;Customize -> UDP检查 - * 请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; - * 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize,默认值为Ping +请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; +报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize,默认值为Ping */ @UCloudParam("MonitorType") private String monitorType; - - /** 根据MonitorType确认; 当MonitorType为Path时,此字段有意义,代表HTTP检查域名 */ + + + + /** + * 根据MonitorType确认; 当MonitorType为Path时,此字段有意义,代表HTTP检查域名 + */ @UCloudParam("Domain") private String domain; - - /** 根据MonitorType确认; 当MonitorType为Path时,此字段有意义,代表HTTP检查路径 */ + + + + /** + * 根据MonitorType确认; 当MonitorType为Path时,此字段有意义,代表HTTP检查路径 + */ @UCloudParam("Path") private String path; - - /** 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文 */ + + + + /** + * 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文 + */ @UCloudParam("RequestMsg") private String requestMsg; - - /** 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文 */ + + + + /** + * 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文 + */ @UCloudParam("ResponseMsg") private String responseMsg; - - /** 安全策略组ID,默认值'Default' */ + + + + /** + * 安全策略组ID,默认值'Default' + */ @UCloudParam("SecurityPolicyId") private String securityPolicyId; - - /** 0:关闭 1:开启,用于数据压缩功能 */ + + + + /** + * 0:关闭 1:开启,用于数据压缩功能 + */ @UCloudParam("EnableCompression") private Integer enableCompression; - - /** 重定向端口,取值范围[0-65535];默认值为0,代表关闭;仅HTTP协议支持开启重定向功能 */ + + + + /** + * 重定向端口,取值范围[0-65535];默认值为0,代表关闭;仅HTTP协议支持开启重定向功能 + */ @UCloudParam("ForwardPort") private Integer forwardPort; - - /** 0:关闭 1:开启,用于开启http2功能;默认值为0 */ + + + + /** + * 0:关闭 1:开启,用于开启http2功能;默认值为0 + */ @UCloudParam("EnableHTTP2") private Integer enableHTTP2; - + + public String getRegion() { return region; } @@ -125,7 +199,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -133,7 +207,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -141,7 +215,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getVServerName() { return vServerName; } @@ -149,7 +223,7 @@ public String getVServerName() { public void setVServerName(String vServerName) { this.vServerName = vServerName; } - + public String getListenType() { return listenType; } @@ -157,7 +231,7 @@ public String getListenType() { public void setListenType(String listenType) { this.listenType = listenType; } - + public String getProtocol() { return protocol; } @@ -165,7 +239,7 @@ public String getProtocol() { public void setProtocol(String protocol) { this.protocol = protocol; } - + public Integer getFrontendPort() { return frontendPort; } @@ -173,7 +247,7 @@ public Integer getFrontendPort() { public void setFrontendPort(Integer frontendPort) { this.frontendPort = frontendPort; } - + public String getMethod() { return method; } @@ -181,7 +255,7 @@ public String getMethod() { public void setMethod(String method) { this.method = method; } - + public String getPersistenceType() { return persistenceType; } @@ -189,7 +263,7 @@ public String getPersistenceType() { public void setPersistenceType(String persistenceType) { this.persistenceType = persistenceType; } - + public String getPersistenceInfo() { return persistenceInfo; } @@ -197,7 +271,7 @@ public String getPersistenceInfo() { public void setPersistenceInfo(String persistenceInfo) { this.persistenceInfo = persistenceInfo; } - + public Integer getClientTimeout() { return clientTimeout; } @@ -205,7 +279,7 @@ public Integer getClientTimeout() { public void setClientTimeout(Integer clientTimeout) { this.clientTimeout = clientTimeout; } - + public String getMonitorType() { return monitorType; } @@ -213,7 +287,7 @@ public String getMonitorType() { public void setMonitorType(String monitorType) { this.monitorType = monitorType; } - + public String getDomain() { return domain; } @@ -221,7 +295,7 @@ public String getDomain() { public void setDomain(String domain) { this.domain = domain; } - + public String getPath() { return path; } @@ -229,7 +303,7 @@ public String getPath() { public void setPath(String path) { this.path = path; } - + public String getRequestMsg() { return requestMsg; } @@ -237,7 +311,7 @@ public String getRequestMsg() { public void setRequestMsg(String requestMsg) { this.requestMsg = requestMsg; } - + public String getResponseMsg() { return responseMsg; } @@ -245,7 +319,7 @@ public String getResponseMsg() { public void setResponseMsg(String responseMsg) { this.responseMsg = responseMsg; } - + public String getSecurityPolicyId() { return securityPolicyId; } @@ -253,7 +327,7 @@ public String getSecurityPolicyId() { public void setSecurityPolicyId(String securityPolicyId) { this.securityPolicyId = securityPolicyId; } - + public Integer getEnableCompression() { return enableCompression; } @@ -261,7 +335,7 @@ public Integer getEnableCompression() { public void setEnableCompression(Integer enableCompression) { this.enableCompression = enableCompression; } - + public Integer getForwardPort() { return forwardPort; } @@ -269,7 +343,7 @@ public Integer getForwardPort() { public void setForwardPort(Integer forwardPort) { this.forwardPort = forwardPort; } - + public Integer getEnableHTTP2() { return enableHTTP2; } @@ -277,4 +351,14 @@ public Integer getEnableHTTP2() { public void setEnableHTTP2(Integer enableHTTP2) { this.enableHTTP2 = enableHTTP2; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateVServerResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateVServerResponse.java index 0656d91a..a6ceaca1 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateVServerResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateVServerResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateVServerResponse extends Response { - /** VServer实例的Id */ + + + /** + * VServer实例的Id + */ @SerializedName("VServerId") private String vServerId; - + + public String getVServerId() { return vServerId; } @@ -31,4 +41,14 @@ public String getVServerId() { public void setVServerId(String vServerId) { this.vServerId = vServerId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeletePolicyRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeletePolicyRequest.java index 341d9d3c..bb1a57c1 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeletePolicyRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeletePolicyRequest.java @@ -1,44 +1,68 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeletePolicyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 内容转发策略ID */ + + + + /** + * 内容转发策略ID + */ @NotEmpty @UCloudParam("PolicyId") private String policyId; - - /** VServer 资源ID */ + + + + + + /** + * VServer 资源ID + */ @UCloudParam("VServerId") private String vServerId; - + + public String getRegion() { return region; } @@ -46,7 +70,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -54,7 +78,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPolicyId() { return policyId; } @@ -62,7 +86,8 @@ public String getPolicyId() { public void setPolicyId(String policyId) { this.policyId = policyId; } - + + public String getVServerId() { return vServerId; } @@ -70,4 +95,14 @@ public String getVServerId() { public void setVServerId(String vServerId) { this.vServerId = vServerId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeletePolicyResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeletePolicyResponse.java index 8ea80142..b8885aa1 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeletePolicyResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeletePolicyResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeletePolicyResponse extends Response {} +public class DeletePolicyResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSSLRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSSLRequest.java index b87905bb..0720195a 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSSLRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSSLRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteSSLRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** SSL证书的ID */ + + + + /** + * SSL证书的ID + */ @NotEmpty @UCloudParam("SSLId") private String sslId; - + + public String getRegion() { return region; } @@ -42,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -50,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSSLId() { return sslId; } @@ -58,4 +76,14 @@ public String getSSLId() { public void setSSLId(String sslId) { this.sslId = sslId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSSLResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSSLResponse.java index ca4ae5d0..b6be382b 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSSLResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSSLResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteSSLResponse extends Response {} +public class DeleteSSLResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSecurityPolicyRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSecurityPolicyRequest.java index 320e2a46..b0fde673 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSecurityPolicyRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSecurityPolicyRequest.java @@ -1,43 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteSecurityPolicyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 安全策略ID */ + + + + /** + * 安全策略ID + */ @NotEmpty @UCloudParam("SecurityPolicyId") private String securityPolicyId; - + + public String getRegion() { return region; } @@ -45,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -53,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSecurityPolicyId() { return securityPolicyId; } @@ -61,4 +76,14 @@ public String getSecurityPolicyId() { public void setSecurityPolicyId(String securityPolicyId) { this.securityPolicyId = securityPolicyId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSecurityPolicyResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSecurityPolicyResponse.java index 5e8f450d..91e6ed09 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSecurityPolicyResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteSecurityPolicyResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteSecurityPolicyResponse extends Response {} +public class DeleteSecurityPolicyResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteULBRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteULBRequest.java index 3f397dad..5ed66a69 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteULBRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteULBRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteULBRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 负载均衡实例的ID */ + + + + /** + * 负载均衡实例的ID + */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - - /** 删除ulb时是否释放绑定的EIP,false标识只解绑EIP,true表示会释放绑定的EIP,默认是false。Anycast IP 此参数无效 */ + + + + /** + * 删除ulb时是否释放绑定的EIP,false标识只解绑EIP,true表示会释放绑定的EIP,默认是false。Anycast IP 此参数无效 + */ @UCloudParam("ReleaseEip") private Boolean releaseEip; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -53,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -61,7 +83,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public Boolean getReleaseEip() { return releaseEip; } @@ -69,4 +91,14 @@ public Boolean getReleaseEip() { public void setReleaseEip(Boolean releaseEip) { this.releaseEip = releaseEip; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteULBResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteULBResponse.java index d6788271..5482ad42 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteULBResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteULBResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteULBResponse extends Response {} +public class DeleteULBResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteVServerRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteVServerRequest.java index afc19f71..01bdaf86 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteVServerRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteVServerRequest.java @@ -1,45 +1,67 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteVServerRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 负载均衡实例的ID */ + + + + /** + * 负载均衡实例的ID + */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - - /** VServer实例的ID */ + + + + /** + * VServer实例的ID + */ @NotEmpty @UCloudParam("VServerId") private String vServerId; - + + public String getRegion() { return region; } @@ -47,7 +69,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -55,7 +77,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -63,7 +85,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getVServerId() { return vServerId; } @@ -71,4 +93,14 @@ public String getVServerId() { public void setVServerId(String vServerId) { this.vServerId = vServerId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteVServerResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteVServerResponse.java index 6d338d15..644dc95f 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteVServerResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteVServerResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteVServerResponse extends Response {} +public class DeleteVServerResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLRequest.java index 83937300..899d6786 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeSSLRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** SSL证书的Id */ + + + + /** + * SSL证书的Id + */ @UCloudParam("SSLId") private String sslId; - - /** 数据分页值,默认为20 */ + + + + /** + * 数据分页值,默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 数据偏移量,默认值为0 */ + + + + /** + * 数据偏移量,默认值为0 + */ @UCloudParam("Offset") private Integer offset; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -60,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSSLId() { return sslId; } @@ -68,7 +91,7 @@ public String getSSLId() { public void setSSLId(String sslId) { this.sslId = sslId; } - + public Integer getLimit() { return limit; } @@ -76,7 +99,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -84,4 +107,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLResponse.java index 60886b39..194fa011 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeSSLResponse extends Response { - /** 满足条件的SSL证书总数 */ + + + /** + * 满足条件的SSL证书总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** SSL证书详细信息,具体结构见 ULBSSLSet */ + + + + /** + * SSL证书详细信息,具体结构见 ULBSSLSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,178 +57,276 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class SSLBindedTargetSet extends Response { + + + /** + * SSL证书绑定到的VServer的资源ID + */ + @SerializedName("VServerId") + private String vServerId; + + + + /** + * 对应的VServer的名字 + */ + @SerializedName("VServerName") + private String vServerName; + + + + /** + * VServer 所属的ULB实例的资源ID + */ + @SerializedName("ULBId") + private String ulbId; + + + + /** + * ULB实例的名称 + */ + @SerializedName("ULBName") + private String ulbName; + + + public String getVServerId() { + return vServerId; + } - public static class SSLBindedTargetSet extends Response { - - /** SSL证书绑定到的VServer的资源ID */ - @SerializedName("VServerId") - private String vServerId; - - /** 对应的VServer的名字 */ - @SerializedName("VServerName") - private String vServerName; - - /** VServer 所属的ULB实例的资源ID */ - @SerializedName("ULBId") - private String ulbId; - - /** ULB实例的名称 */ - @SerializedName("ULBName") - private String ulbName; - - public String getVServerId() { - return vServerId; - } - - public void setVServerId(String vServerId) { - this.vServerId = vServerId; - } - - public String getVServerName() { - return vServerName; - } - - public void setVServerName(String vServerName) { - this.vServerName = vServerName; - } - - public String getULBId() { - return ulbId; - } + public void setVServerId(String vServerId) { + this.vServerId = vServerId; + } + + public String getVServerName() { + return vServerName; + } - public void setULBId(String ulbId) { - this.ulbId = ulbId; - } + public void setVServerName(String vServerName) { + this.vServerName = vServerName; + } + + public String getULBId() { + return ulbId; + } - public String getULBName() { - return ulbName; - } + public void setULBId(String ulbId) { + this.ulbId = ulbId; + } + + public String getULBName() { + return ulbName; + } - public void setULBName(String ulbName) { - this.ulbName = ulbName; + public void setULBName(String ulbName) { + this.ulbName = ulbName; + } + } + public static class ULBSSLSet extends Response { + + + /** + * SSL证书的Id + */ + @SerializedName("SSLId") + private String sslId; + + + + /** + * SSL证书的名字 + */ + @SerializedName("SSLName") + private String sslName; + + + + /** + * SSL证书类型,暂时只有 Pem 一种类型 + */ + @SerializedName("SSLType") + private String sslType; + + + + /** + * SSL证书的内容 + */ + @SerializedName("SSLContent") + private String sslContent; + + + + /** + * SSL证书的创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * SSL证书的HASH值 + */ + @SerializedName("HashValue") + private String hashValue; + + + + /** + * SSL证书绑定到的对象 + */ + @SerializedName("BindedTargetSet") + private List bindedTargetSet; + + + + /** + * SSL证书来源,SSL证书来源,0代表证书来自于ULB平台,1代表证书来自于USSL平台 + */ + @SerializedName("SSLSource") + private Integer sslSource; + + + + /** + * USSL证书平台的编号,只有当SSLSource为1时才出现 + */ + @SerializedName("USSLId") + private String usslId; + + + + /** + * USSL证书平台的域名,只有当SSLSource为1时才出现 + */ + @SerializedName("Domains") + private String domains; + + + + /** + * 证书颁发时间 + */ + @SerializedName("NotBefore") + private Integer notBefore; + + + + /** + * 证书过期时间 + */ + @SerializedName("NotAfter") + private Integer notAfter; + + + public String getSSLId() { + return sslId; } - public static class ULBSSLSet extends Response { - - /** SSL证书的Id */ - @SerializedName("SSLId") - private String sslId; - - /** SSL证书的名字 */ - @SerializedName("SSLName") - private String sslName; - - /** SSL证书类型,暂时只有 Pem 一种类型 */ - @SerializedName("SSLType") - private String sslType; - - /** SSL证书的内容 */ - @SerializedName("SSLContent") - private String sslContent; - - /** SSL证书的创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** SSL证书的HASH值 */ - @SerializedName("HashValue") - private String hashValue; - - /** SSL证书绑定到的对象 */ - @SerializedName("BindedTargetSet") - private List bindedTargetSet; - - /** SSL证书来源,SSL证书来源,0代表证书来自于ULB平台,1代表证书来自于USSL平台 */ - @SerializedName("SSLSource") - private Integer sslSource; - - /** USSL证书平台的编号,只有当SSLSource为1时才出现 */ - @SerializedName("USSLId") - private String usslId; - - /** USSL证书平台的域名,只有当SSLSource为1时才出现 */ - @SerializedName("Domains") - private String domains; + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public String getSSLName() { + return sslName; + } - public String getSSLId() { - return sslId; - } + public void setSSLName(String sslName) { + this.sslName = sslName; + } + + public String getSSLType() { + return sslType; + } - public void setSSLId(String sslId) { - this.sslId = sslId; - } + public void setSSLType(String sslType) { + this.sslType = sslType; + } + + public String getSSLContent() { + return sslContent; + } - public String getSSLName() { - return sslName; - } + public void setSSLContent(String sslContent) { + this.sslContent = sslContent; + } + + public Integer getCreateTime() { + return createTime; + } - public void setSSLName(String sslName) { - this.sslName = sslName; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getHashValue() { + return hashValue; + } - public String getSSLType() { - return sslType; - } + public void setHashValue(String hashValue) { + this.hashValue = hashValue; + } + + public List getBindedTargetSet() { + return bindedTargetSet; + } - public void setSSLType(String sslType) { - this.sslType = sslType; - } + public void setBindedTargetSet(List bindedTargetSet) { + this.bindedTargetSet = bindedTargetSet; + } + + public Integer getSSLSource() { + return sslSource; + } - public String getSSLContent() { - return sslContent; - } + public void setSSLSource(Integer sslSource) { + this.sslSource = sslSource; + } + + public String getUSSLId() { + return usslId; + } - public void setSSLContent(String sslContent) { - this.sslContent = sslContent; - } + public void setUSSLId(String usslId) { + this.usslId = usslId; + } + + public String getDomains() { + return domains; + } - public Integer getCreateTime() { - return createTime; - } + public void setDomains(String domains) { + this.domains = domains; + } + + public Integer getNotBefore() { + return notBefore; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setNotBefore(Integer notBefore) { + this.notBefore = notBefore; + } + + public Integer getNotAfter() { + return notAfter; + } - public String getHashValue() { - return hashValue; + public void setNotAfter(Integer notAfter) { + this.notAfter = notAfter; + } + } +} - public void setHashValue(String hashValue) { - this.hashValue = hashValue; - } - public List getBindedTargetSet() { - return bindedTargetSet; - } - public void setBindedTargetSet(List bindedTargetSet) { - this.bindedTargetSet = bindedTargetSet; - } - public Integer getSSLSource() { - return sslSource; - } - public void setSSLSource(Integer sslSource) { - this.sslSource = sslSource; - } - public String getUSSLId() { - return usslId; - } - public void setUSSLId(String usslId) { - this.usslId = usslId; - } - public String getDomains() { - return domains; - } - public void setDomains(String domains) { - this.domains = domains; - } - } -} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesRequest.java index bf6a3dbd..80c04447 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeSecurityPoliciesRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 安全策略ID */ + + + + /** + * 安全策略ID + */ @UCloudParam("SecurityPolicyId") private String securityPolicyId; - - /** 数据分页值 */ + + + + /** + * 数据分页值 + */ @UCloudParam("Limit") private Integer limit; - - /** 数据偏移量 */ + + + + /** + * 数据偏移量 + */ @UCloudParam("Offset") private Integer offset; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -60,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSecurityPolicyId() { return securityPolicyId; } @@ -68,7 +91,7 @@ public String getSecurityPolicyId() { public void setSecurityPolicyId(String securityPolicyId) { this.securityPolicyId = securityPolicyId; } - + public Integer getLimit() { return limit; } @@ -76,7 +99,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -84,4 +107,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesResponse.java index 45556b37..09b68ee9 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesResponse.java @@ -1,34 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeSecurityPoliciesResponse extends Response { - /** 安全策略列表,每项参数详见SecurityPolicy */ + + + /** + * +安全策略列表,每项参数详见SecurityPolicy + */ @SerializedName("DataSet") private List dataSet; - - /** 满足条件的安全策略总数 */ + + + + /** + * 满足条件的安全策略总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +50,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,130 +58,180 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - - public static class BindVServerInfo extends Response { - - /** 绑定的VServerId */ - @SerializedName("VServerId") - private String vServerId; - - /** 绑定的VServer名称 */ - @SerializedName("VServerName") - private String vServerName; - - /** VServer端口 */ - @SerializedName("Port") - private Integer port; - - /** ULB的ID */ - @SerializedName("ULBId") - private String ulbId; - - public String getVServerId() { - return vServerId; - } - - public void setVServerId(String vServerId) { - this.vServerId = vServerId; - } - - public String getVServerName() { - return vServerName; - } - - public void setVServerName(String vServerName) { - this.vServerName = vServerName; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public String getULBId() { - return ulbId; - } - - public void setULBId(String ulbId) { - this.ulbId = ulbId; - } + + public static class BindVServerInfo extends Response { + + + /** + * 绑定的VServerId + */ + @SerializedName("VServerId") + private String vServerId; + + + + /** + * 绑定的VServer名称 + */ + @SerializedName("VServerName") + private String vServerName; + + + + /** + * VServer端口 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * ULB的ID + */ + @SerializedName("ULBId") + private String ulbId; + + + public String getVServerId() { + return vServerId; } - public static class SecurityPolicy extends Response { + public void setVServerId(String vServerId) { + this.vServerId = vServerId; + } + + public String getVServerName() { + return vServerName; + } - /** 安全策略ID */ - @SerializedName("SecurityPolicyId") - private String securityPolicyId; + public void setVServerName(String vServerName) { + this.vServerName = vServerName; + } + + public Integer getPort() { + return port; + } - /** 安全策略名称 */ - @SerializedName("SecurityPolicyName") - private String securityPolicyName; + public void setPort(Integer port) { + this.port = port; + } + + public String getULBId() { + return ulbId; + } - /** TLS最低版本 */ - @SerializedName("TLSVersion") - private String tlsVersion; + public void setULBId(String ulbId) { + this.ulbId = ulbId; + } + + } + public static class SecurityPolicy extends Response { + + + /** + * 安全策略ID + */ + @SerializedName("SecurityPolicyId") + private String securityPolicyId; + + + + /** + * 安全策略名称 + */ + @SerializedName("SecurityPolicyName") + private String securityPolicyName; + + + + /** + * TLS最低版本 + */ + @SerializedName("TLSVersion") + private String tlsVersion; + + + + /** + * 加密套件 + */ + @SerializedName("SSLCiphers") + private List sslCiphers; + + + + /** + * 安全策略类型 0:预定义 1:自定义 + */ + @SerializedName("SecurityPolicyType") + private Integer securityPolicyType; + + + + /** + * 关联的监听 + */ + @SerializedName("VServerSet") + private List vServerSet; + + + public String getSecurityPolicyId() { + return securityPolicyId; + } - /** 加密套件 */ - @SerializedName("SSLCiphers") - private List sslCiphers; + public void setSecurityPolicyId(String securityPolicyId) { + this.securityPolicyId = securityPolicyId; + } + + public String getSecurityPolicyName() { + return securityPolicyName; + } - /** 安全策略类型 0:预定义 1:自定义 */ - @SerializedName("SecurityPolicyType") - private Integer securityPolicyType; + public void setSecurityPolicyName(String securityPolicyName) { + this.securityPolicyName = securityPolicyName; + } + + public String getTLSVersion() { + return tlsVersion; + } - /** 关联的监听 */ - @SerializedName("VServerSet") - private List vServerSet; + public void setTLSVersion(String tlsVersion) { + this.tlsVersion = tlsVersion; + } + + public List getSSLCiphers() { + return sslCiphers; + } - public String getSecurityPolicyId() { - return securityPolicyId; - } + public void setSSLCiphers(List sslCiphers) { + this.sslCiphers = sslCiphers; + } + + public Integer getSecurityPolicyType() { + return securityPolicyType; + } - public void setSecurityPolicyId(String securityPolicyId) { - this.securityPolicyId = securityPolicyId; - } + public void setSecurityPolicyType(Integer securityPolicyType) { + this.securityPolicyType = securityPolicyType; + } + + public List getVServerSet() { + return vServerSet; + } - public String getSecurityPolicyName() { - return securityPolicyName; + public void setVServerSet(List vServerSet) { + this.vServerSet = vServerSet; + } + } +} - public void setSecurityPolicyName(String securityPolicyName) { - this.securityPolicyName = securityPolicyName; - } - public String getTLSVersion() { - return tlsVersion; - } - public void setTLSVersion(String tlsVersion) { - this.tlsVersion = tlsVersion; - } - public List getSSLCiphers() { - return sslCiphers; - } - public void setSSLCiphers(List sslCiphers) { - this.sslCiphers = sslCiphers; - } - public Integer getSecurityPolicyType() { - return securityPolicyType; - } - public void setSecurityPolicyType(Integer securityPolicyType) { - this.securityPolicyType = securityPolicyType; - } - public List getVServerSet() { - return vServerSet; - } - public void setVServerSet(List vServerSet) { - this.vServerSet = vServerSet; - } - } -} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSupportCiphersRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSupportCiphersRequest.java index d7569c1b..54227be7 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSupportCiphersRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSupportCiphersRequest.java @@ -1,38 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeSupportCiphersRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - + + public String getRegion() { return region; } @@ -40,7 +51,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -48,4 +59,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSupportCiphersResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSupportCiphersResponse.java index e60a51dc..7147d074 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSupportCiphersResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSupportCiphersResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeSupportCiphersResponse extends Response { - /** 返回支持的TLS最低版本和加密套件,每项参数详见 TLSAndCiphers */ + + + /** + * 返回支持的TLS最低版本和加密套件,每项参数详见 TLSAndCiphers + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,31 +41,49 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class TLSAndCiphers extends Response { + + + /** + * TLS最低版本 + */ + @SerializedName("TLSVersion") + private String tlsVersion; + + + + /** + * 加密套件 + */ + @SerializedName("SSLCiphers") + private List sslCiphers; + + + public String getTLSVersion() { + return tlsVersion; + } + + public void setTLSVersion(String tlsVersion) { + this.tlsVersion = tlsVersion; + } + + public List getSSLCiphers() { + return sslCiphers; + } + + public void setSSLCiphers(List sslCiphers) { + this.sslCiphers = sslCiphers; + } + + } +} + + - public static class TLSAndCiphers extends Response { - /** TLS最低版本 */ - @SerializedName("TLSVersion") - private String tlsVersion; - /** 加密套件 */ - @SerializedName("SSLCiphers") - private List sslCiphers; - public String getTLSVersion() { - return tlsVersion; - } - public void setTLSVersion(String tlsVersion) { - this.tlsVersion = tlsVersion; - } - public List getSSLCiphers() { - return sslCiphers; - } - public void setSSLCiphers(List sslCiphers) { - this.sslCiphers = sslCiphers; - } - } -} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBRequest.java index d80af139..604aae8d 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBRequest.java @@ -1,61 +1,96 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeULBRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 数据偏移量,默认为0 */ + + + + /** + * 数据偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 数据分页值,默认为20 */ + + + + /** + * 数据分页值,默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 负载均衡实例的Id。 若指定则返回指定的负载均衡实例的信息; 若不指定则返回当前数据中心中所有的负载均衡实例的信息 */ + + + + /** + * 负载均衡实例的Id。 若指定则返回指定的负载均衡实例的信息; 若不指定则返回当前数据中心中所有的负载均衡实例的信息 + */ @UCloudParam("ULBId") private String ulbId; - - /** ULB所属的VPC */ + + + + /** + * ULB所属的VPC + */ @UCloudParam("VPCId") private String vpcId; - - /** ULB所属的子网ID */ + + + + /** + * ULB所属的子网ID + */ @UCloudParam("SubnetId") private String subnetId; - - /** ULB所属的业务组ID */ + + + + /** + * ULB所属的业务组ID + */ @UCloudParam("BusinessId") private String businessId; - + + public String getRegion() { return region; } @@ -63,7 +98,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -71,7 +106,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getOffset() { return offset; } @@ -79,7 +114,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -87,7 +122,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getULBId() { return ulbId; } @@ -95,7 +130,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getVPCId() { return vpcId; } @@ -103,7 +138,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -111,7 +146,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getBusinessId() { return businessId; } @@ -119,4 +154,14 @@ public String getBusinessId() { public void setBusinessId(String businessId) { this.businessId = businessId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBResponse.java index 5126fb01..dcfff426 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeULBResponse extends Response { - /** 满足条件的ULB总数 */ + + + /** + * 满足条件的ULB总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** ULB列表,每项参数详见 ULBSet */ + + + + /** + * ULB列表,每项参数详见 ULBSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,1312 +57,1765 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class BindSecurityPolicy extends Response { + + + /** + * 安全策略组ID + */ + @SerializedName("SecurityPolicyId") + private String securityPolicyId; + + + + /** + * 安全策略组名称 + */ + @SerializedName("SecurityPolicyName") + private String securityPolicyName; + + + + /** + * TLS最低版本 + */ + @SerializedName("TLSVersion") + private String tlsVersion; + + + + /** + * 加密套件 + */ + @SerializedName("SSLCiphers") + private List sslCiphers; + + + + /** + * 安全策略类型 0:预定义 1:自定义 + */ + @SerializedName("SecurityPolicyType") + private Integer securityPolicyType; + + + public String getSecurityPolicyId() { + return securityPolicyId; + } - public static class BindSecurityPolicy extends Response { + public void setSecurityPolicyId(String securityPolicyId) { + this.securityPolicyId = securityPolicyId; + } + + public String getSecurityPolicyName() { + return securityPolicyName; + } - /** 安全策略组ID */ - @SerializedName("SecurityPolicyId") - private String securityPolicyId; + public void setSecurityPolicyName(String securityPolicyName) { + this.securityPolicyName = securityPolicyName; + } + + public String getTLSVersion() { + return tlsVersion; + } - /** 安全策略组名称 */ - @SerializedName("SecurityPolicyName") - private String securityPolicyName; + public void setTLSVersion(String tlsVersion) { + this.tlsVersion = tlsVersion; + } + + public List getSSLCiphers() { + return sslCiphers; + } - /** TLS最低版本 */ - @SerializedName("TLSVersion") - private String tlsVersion; + public void setSSLCiphers(List sslCiphers) { + this.sslCiphers = sslCiphers; + } + + public Integer getSecurityPolicyType() { + return securityPolicyType; + } - /** 加密套件 */ - @SerializedName("SSLCiphers") - private List sslCiphers; + public void setSecurityPolicyType(Integer securityPolicyType) { + this.securityPolicyType = securityPolicyType; + } + + } + public static class FirewallSet extends Response { + + + /** + * 防火墙名称 + */ + @SerializedName("FirewallName") + private String firewallName; + + + + /** + * 防火墙ID + */ + @SerializedName("FirewallId") + private String firewallId; + + + public String getFirewallName() { + return firewallName; + } - /** 安全策略类型 0:预定义 1:自定义 */ - @SerializedName("SecurityPolicyType") - private Integer securityPolicyType; + public void setFirewallName(String firewallName) { + this.firewallName = firewallName; + } + + public String getFirewallId() { + return firewallId; + } - public String getSecurityPolicyId() { - return securityPolicyId; - } + public void setFirewallId(String firewallId) { + this.firewallId = firewallId; + } + + } + public static class LoggerSet extends Response { + + + /** + * ulb日志上传的bucket + */ + @SerializedName("BucketName") + private String bucketName; + + + + /** + * 上传到bucket使用的token的tokenid + */ + @SerializedName("TokenID") + private String tokenID; + + + + /** + * bucket的token名称 + */ + @SerializedName("TokenName") + private String tokenName; + + + public String getBucketName() { + return bucketName; + } - public void setSecurityPolicyId(String securityPolicyId) { - this.securityPolicyId = securityPolicyId; - } + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + public String getTokenID() { + return tokenID; + } - public String getSecurityPolicyName() { - return securityPolicyName; - } + public void setTokenID(String tokenID) { + this.tokenID = tokenID; + } + + public String getTokenName() { + return tokenName; + } - public void setSecurityPolicyName(String securityPolicyName) { - this.securityPolicyName = securityPolicyName; - } + public void setTokenName(String tokenName) { + this.tokenName = tokenName; + } + + } + public static class PolicyBackendSet extends Response { + + + /** + * 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关 + */ + @SerializedName("BackendId") + private String backendId; + + + + /** + * 所添加的后端资源的类型,枚举值:UHost -> 云主机;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器;UHybrid->混合云主机;CUBE->Cube;UNI -> 虚拟网卡 + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 后端资源的实例名称 + */ + @SerializedName("ResourceName") + private String resourceName; + + + + /** + * 如果资源绑定了弹性网卡,则展示弹性网卡的资源ID + */ + @SerializedName("SubResourceId") + private String subResourceId; + + + + /** + * 如果资源绑定了弹性网卡,则展示弹性网卡的资源名称 + */ + @SerializedName("SubResourceName") + private String subResourceName; + + + + /** + * "UNI"或者为空 + */ + @SerializedName("SubResourceType") + private String subResourceType; + + + + /** + * 后端资源的对象ID + */ + @SerializedName("ObjectId") + private String objectId; + + + + /** + * 所添加的后端资源服务端口 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * 后端资源的内网IP + */ + @SerializedName("PrivateIP") + private String privateIP; + + + public String getBackendId() { + return backendId; + } - public String getTLSVersion() { - return tlsVersion; - } + public void setBackendId(String backendId) { + this.backendId = backendId; + } + + public String getResourceType() { + return resourceType; + } - public void setTLSVersion(String tlsVersion) { - this.tlsVersion = tlsVersion; - } + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getResourceName() { + return resourceName; + } - public List getSSLCiphers() { - return sslCiphers; - } + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getSubResourceId() { + return subResourceId; + } - public void setSSLCiphers(List sslCiphers) { - this.sslCiphers = sslCiphers; - } + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public String getSubResourceName() { + return subResourceName; + } - public Integer getSecurityPolicyType() { - return securityPolicyType; - } + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getSubResourceType() { + return subResourceType; + } - public void setSecurityPolicyType(Integer securityPolicyType) { - this.securityPolicyType = securityPolicyType; - } + public void setSubResourceType(String subResourceType) { + this.subResourceType = subResourceType; + } + + public String getObjectId() { + return objectId; } - public static class FirewallSet extends Response { + public void setObjectId(String objectId) { + this.objectId = objectId; + } + + public Integer getPort() { + return port; + } - /** 防火墙名称 */ - @SerializedName("FirewallName") - private String firewallName; + public void setPort(Integer port) { + this.port = port; + } + + public String getPrivateIP() { + return privateIP; + } - /** 防火墙ID */ - @SerializedName("FirewallId") - private String firewallId; + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + } + public static class SSLBindedTargetSet extends Response { + + + /** + * SSL证书绑定到的VServer的资源ID + */ + @SerializedName("VServerId") + private String vServerId; + + + + /** + * 对应的VServer的名字 + */ + @SerializedName("VServerName") + private String vServerName; + + + + /** + * VServer 所属的ULB实例的资源ID + */ + @SerializedName("ULBId") + private String ulbId; + + + + /** + * ULB实例的名称 + */ + @SerializedName("ULBName") + private String ulbName; + + + public String getVServerId() { + return vServerId; + } - public String getFirewallName() { - return firewallName; - } + public void setVServerId(String vServerId) { + this.vServerId = vServerId; + } + + public String getVServerName() { + return vServerName; + } - public void setFirewallName(String firewallName) { - this.firewallName = firewallName; - } + public void setVServerName(String vServerName) { + this.vServerName = vServerName; + } + + public String getULBId() { + return ulbId; + } - public String getFirewallId() { - return firewallId; - } + public void setULBId(String ulbId) { + this.ulbId = ulbId; + } + + public String getULBName() { + return ulbName; + } - public void setFirewallId(String firewallId) { - this.firewallId = firewallId; - } + public void setULBName(String ulbName) { + this.ulbName = ulbName; + } + + } + public static class ULBBackendSet extends Response { + + + /** + * 后端资源实例的Id + */ + @SerializedName("BackendId") + private String backendId; + + + + /** + * 资源实例的类型 + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 资源实例的资源Id + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 资源实例的资源名称 + */ + @SerializedName("ResourceName") + private String resourceName; + + + + /** + * 资源绑定的虚拟网卡实例的类型 + */ + @SerializedName("SubResourceType") + private String subResourceType; + + + + /** + * 资源绑定的虚拟网卡实例的资源Id + */ + @SerializedName("SubResourceId") + private String subResourceId; + + + + /** + * 资源绑定的虚拟网卡实例的资源名称 + */ + @SerializedName("SubResourceName") + private String subResourceName; + + + + /** + * 后端提供服务的内网IP + */ + @SerializedName("PrivateIP") + private String privateIP; + + + + /** + * 后端提供服务的端口 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用 + */ + @SerializedName("Enabled") + private Integer enabled; + + + + /** + * 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常 + */ + @SerializedName("Status") + private Integer status; + + + + /** + * 后端提供服务的资源所在的子网的ID + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * 是否为backup,只有当vserver的Backup属性为1时才会有此字段,说明: + +0:主rs +1:备rs + */ + @SerializedName("IsBackup") + private Integer isBackup; + + + + /** + * 后端RS权重(在加权轮询算法下有效) + */ + @SerializedName("Weight") + private Integer weight; + + + + /** + * 后端服务器所在的VPC + */ + @SerializedName("VPCId") + private String vpcId; + + + public String getBackendId() { + return backendId; } - public static class LoggerSet extends Response { + public void setBackendId(String backendId) { + this.backendId = backendId; + } + + public String getResourceType() { + return resourceType; + } - /** ulb日志上传的bucket */ - @SerializedName("BucketName") - private String bucketName; + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getResourceId() { + return resourceId; + } - /** 上传到bucket使用的token的tokenid */ - @SerializedName("TokenID") - private String tokenID; + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } - /** bucket的token名称 */ - @SerializedName("TokenName") - private String tokenName; + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getSubResourceType() { + return subResourceType; + } - public String getBucketName() { - return bucketName; - } + public void setSubResourceType(String subResourceType) { + this.subResourceType = subResourceType; + } + + public String getSubResourceId() { + return subResourceId; + } - public void setBucketName(String bucketName) { - this.bucketName = bucketName; - } + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public String getSubResourceName() { + return subResourceName; + } - public String getTokenID() { - return tokenID; - } + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getPrivateIP() { + return privateIP; + } - public void setTokenID(String tokenID) { - this.tokenID = tokenID; - } + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + public Integer getPort() { + return port; + } - public String getTokenName() { - return tokenName; - } + public void setPort(Integer port) { + this.port = port; + } + + public Integer getEnabled() { + return enabled; + } - public void setTokenName(String tokenName) { - this.tokenName = tokenName; - } + public void setEnabled(Integer enabled) { + this.enabled = enabled; + } + + public Integer getStatus() { + return status; } - public static class PolicyBackendSet extends Response { + public void setStatus(Integer status) { + this.status = status; + } + + public String getSubnetId() { + return subnetId; + } - /** 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关 */ - @SerializedName("BackendId") - private String backendId; + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public Integer getIsBackup() { + return isBackup; + } - /** - * 所添加的后端资源的类型,枚举值:UHost -> 云主机;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> - * 容器;UHybrid->混合云主机;CUBE->Cube;UNI -> 虚拟网卡 - */ - @SerializedName("ResourceType") - private String resourceType; + public void setIsBackup(Integer isBackup) { + this.isBackup = isBackup; + } + + public Integer getWeight() { + return weight; + } - /** 后端资源的实例名称 */ - @SerializedName("ResourceName") - private String resourceName; + public void setWeight(Integer weight) { + this.weight = weight; + } + + public String getVPCId() { + return vpcId; + } - /** 如果资源绑定了弹性网卡,则展示弹性网卡的资源ID */ - @SerializedName("SubResourceId") - private String subResourceId; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + } + public static class ULBIPSet extends Response { + + + /** + * 弹性IP的运营商信息,枚举值为: Bgp:BGP IP International:国际IP + */ + @SerializedName("OperatorName") + private String operatorName; + + + + /** + * 弹性IP地址 + */ + @SerializedName("EIP") + private String eip; + + + + /** + * 弹性IP的ID + */ + @SerializedName("EIPId") + private String eipId; + + + + /** + * 弹性IP的带宽类型,枚举值:1 表示是共享带宽,0 普通带宽类型(暂未对外开放) + */ + @SerializedName("BandwidthType") + private Integer bandwidthType; + + + + /** + * 弹性IP的带宽值(暂未对外开放) + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + public String getOperatorName() { + return operatorName; + } - /** 如果资源绑定了弹性网卡,则展示弹性网卡的资源名称 */ - @SerializedName("SubResourceName") - private String subResourceName; + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public String getEIP() { + return eip; + } - /** "UNI"或者为空 */ - @SerializedName("SubResourceType") - private String subResourceType; + public void setEIP(String eip) { + this.eip = eip; + } + + public String getEIPId() { + return eipId; + } - /** 后端资源的对象ID */ - @SerializedName("ObjectId") - private String objectId; + public void setEIPId(String eipId) { + this.eipId = eipId; + } + + public Integer getBandwidthType() { + return bandwidthType; + } - /** 所添加的后端资源服务端口 */ - @SerializedName("Port") - private Integer port; + public void setBandwidthType(Integer bandwidthType) { + this.bandwidthType = bandwidthType; + } + + public Integer getBandwidth() { + return bandwidth; + } - /** 后端资源的内网IP */ - @SerializedName("PrivateIP") - private String privateIP; + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + } + public static class ULBPolicySet extends Response { + + + /** + * 内容转发规则中域名的匹配方式。枚举值:Regular,正则;Wildcard,泛域名 + */ + @SerializedName("DomainMatchMode") + private String domainMatchMode; + + + + /** + * 内容转发Id,默认内容转发类型下为空。 + */ + @SerializedName("PolicyId") + private String policyId; + + + + /** + * 内容类型,枚举值:Custom -> 客户自定义;Default -> 默认内容转发 + */ + @SerializedName("PolicyType") + private String policyType; + + + + /** + * 内容转发匹配字段的类型,枚举值:Domain -> 域名;Path -> 路径; 默认内容转发类型下为空 + */ + @SerializedName("Type") + private String type; + + + + /** + * 内容转发匹配字段;默认内容转发类型下为空。 + */ + @SerializedName("Match") + private String match; + + + + /** + * 内容转发优先级,范围[1,9999],数字越大优先级越高。默认内容转发规则下为0。 + */ + @SerializedName("PolicyPriority") + private Integer policyPriority; + + + + /** + * 所属VServerId + */ + @SerializedName("VServerId") + private String vServerId; + + + + /** + * 默认内容转发类型下返回当前rs总数 + */ + @SerializedName("TotalCount") + private Integer totalCount; + + + + /** + * 内容转发下rs的详细信息,参考PolicyBackendSet + */ + @SerializedName("BackendSet") + private List backendSet; + + + public String getDomainMatchMode() { + return domainMatchMode; + } - public String getBackendId() { - return backendId; - } + public void setDomainMatchMode(String domainMatchMode) { + this.domainMatchMode = domainMatchMode; + } + + public String getPolicyId() { + return policyId; + } - public void setBackendId(String backendId) { - this.backendId = backendId; - } + public void setPolicyId(String policyId) { + this.policyId = policyId; + } + + public String getPolicyType() { + return policyType; + } - public String getResourceType() { - return resourceType; - } + public void setPolicyType(String policyType) { + this.policyType = policyType; + } + + public String getType() { + return type; + } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } + public void setType(String type) { + this.type = type; + } + + public String getMatch() { + return match; + } - public String getResourceName() { - return resourceName; - } + public void setMatch(String match) { + this.match = match; + } + + public Integer getPolicyPriority() { + return policyPriority; + } - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } + public void setPolicyPriority(Integer policyPriority) { + this.policyPriority = policyPriority; + } + + public String getVServerId() { + return vServerId; + } - public String getSubResourceId() { - return subResourceId; - } + public void setVServerId(String vServerId) { + this.vServerId = vServerId; + } + + public Integer getTotalCount() { + return totalCount; + } - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getBackendSet() { + return backendSet; + } - public String getSubResourceName() { - return subResourceName; - } + public void setBackendSet(List backendSet) { + this.backendSet = backendSet; + } + + } + public static class ULBSSLSet extends Response { + + + /** + * SSL证书的Id + */ + @SerializedName("SSLId") + private String sslId; + + + + /** + * SSL证书的名字 + */ + @SerializedName("SSLName") + private String sslName; + + + + /** + * SSL证书类型,暂时只有 Pem 一种类型 + */ + @SerializedName("SSLType") + private String sslType; + + + + /** + * SSL证书的内容 + */ + @SerializedName("SSLContent") + private String sslContent; + + + + /** + * SSL证书的创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * SSL证书的HASH值 + */ + @SerializedName("HashValue") + private String hashValue; + + + + /** + * SSL证书绑定到的对象 + */ + @SerializedName("BindedTargetSet") + private List bindedTargetSet; + + + + /** + * SSL证书来源,SSL证书来源,0代表证书来自于ULB平台,1代表证书来自于USSL平台 + */ + @SerializedName("SSLSource") + private Integer sslSource; + + + + /** + * USSL证书平台的编号,只有当SSLSource为1时才出现 + */ + @SerializedName("USSLId") + private String usslId; + + + + /** + * USSL证书平台的域名,只有当SSLSource为1时才出现 + */ + @SerializedName("Domains") + private String domains; + + + + /** + * 证书颁发时间 + */ + @SerializedName("NotBefore") + private Integer notBefore; + + + + /** + * 证书过期时间 + */ + @SerializedName("NotAfter") + private Integer notAfter; + + + public String getSSLId() { + return sslId; + } - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public String getSSLName() { + return sslName; + } - public String getSubResourceType() { - return subResourceType; - } + public void setSSLName(String sslName) { + this.sslName = sslName; + } + + public String getSSLType() { + return sslType; + } - public void setSubResourceType(String subResourceType) { - this.subResourceType = subResourceType; - } + public void setSSLType(String sslType) { + this.sslType = sslType; + } + + public String getSSLContent() { + return sslContent; + } - public String getObjectId() { - return objectId; - } + public void setSSLContent(String sslContent) { + this.sslContent = sslContent; + } + + public Integer getCreateTime() { + return createTime; + } - public void setObjectId(String objectId) { - this.objectId = objectId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getHashValue() { + return hashValue; + } - public Integer getPort() { - return port; - } + public void setHashValue(String hashValue) { + this.hashValue = hashValue; + } + + public List getBindedTargetSet() { + return bindedTargetSet; + } - public void setPort(Integer port) { - this.port = port; - } + public void setBindedTargetSet(List bindedTargetSet) { + this.bindedTargetSet = bindedTargetSet; + } + + public Integer getSSLSource() { + return sslSource; + } - public String getPrivateIP() { - return privateIP; - } + public void setSSLSource(Integer sslSource) { + this.sslSource = sslSource; + } + + public String getUSSLId() { + return usslId; + } - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } + public void setUSSLId(String usslId) { + this.usslId = usslId; + } + + public String getDomains() { + return domains; } - public static class SSLBindedTargetSet extends Response { + public void setDomains(String domains) { + this.domains = domains; + } + + public Integer getNotBefore() { + return notBefore; + } - /** SSL证书绑定到的VServer的资源ID */ - @SerializedName("VServerId") - private String vServerId; + public void setNotBefore(Integer notBefore) { + this.notBefore = notBefore; + } + + public Integer getNotAfter() { + return notAfter; + } - /** 对应的VServer的名字 */ - @SerializedName("VServerName") - private String vServerName; + public void setNotAfter(Integer notAfter) { + this.notAfter = notAfter; + } + + } + public static class ULBSet extends Response { + + + /** + * 负载均衡的资源ID + */ + @SerializedName("ULBId") + private String ulbId; + + + + /** + * 负载均衡的资源名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 负载均衡的业务组名称 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 负载均衡的备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 带宽类型,枚举值为: 0,非共享带宽; 1,共享带宽 + */ + @SerializedName("BandwidthType") + private Integer bandwidthType; + + + + /** + * 带宽 + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * ULB的创建时间,格式为Unix Timestamp + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * ULB的详细信息列表,具体结构见下方 ULBIPSet + */ + @SerializedName("IPSet") + private List ipSet; + + + + /** + * 负载均衡实例中存在的VServer实例列表,具体结构见下方 ULBVServerSet + */ + @SerializedName("VServerSet") + private List vServerSet; + + + + /** + * ULB 的类型 + */ + @SerializedName("ULBType") + private String ulbType; + + + + /** + * ULB ip类型,枚举值:IPv6 / IPv4 (内部测试,暂未对外开放) + */ + @SerializedName("IPVersion") + private String ipVersion; + + + + /** + * ULB后向代理IP,仅当有代理IP时返回 +否 + */ + @SerializedName("SnatIps") + private List snatIps; + + + + /** + * ULB 监听器类型,枚举值:RequestProxy,请求代理; PacketsTransmit ,报文转发;Comprehensive,兼容型;Pending,未定型 + */ + @SerializedName("ListenType") + private String listenType; + + + + /** + * ULB所在的VPC的ID + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * ULB 为 InnerMode 时,ULB 所属的子网ID,默认为空 + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * ULB 所属的业务组ID + */ + @SerializedName("BusinessId") + private String businessId; + + + + /** + * ULB的内网IP,当ULBType为OuterMode时,该值为空 + */ + @SerializedName("PrivateIP") + private String privateIP; + + + + /** + * 防火墙信息,具体结构见下方 FirewallSet + */ + @SerializedName("FirewallSet") + private List firewallSet; + + + + /** + * ULB是否开启日志功能。0,关闭;1,开启 + */ + @SerializedName("EnableLog") + private Integer enableLog; + + + + /** + * 日志功能相关信息,仅当EnableLog为true时会返回,具体结构见下方 LoggerSet + */ + @SerializedName("LogSet") + private LoggerSet logSet; + + + public String getULBId() { + return ulbId; + } - /** VServer 所属的ULB实例的资源ID */ - @SerializedName("ULBId") - private String ulbId; + public void setULBId(String ulbId) { + this.ulbId = ulbId; + } + + public String getName() { + return name; + } - /** ULB实例的名称 */ - @SerializedName("ULBName") - private String ulbName; + public void setName(String name) { + this.name = name; + } + + public String getTag() { + return tag; + } - public String getVServerId() { - return vServerId; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } - public void setVServerId(String vServerId) { - this.vServerId = vServerId; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getBandwidthType() { + return bandwidthType; + } - public String getVServerName() { - return vServerName; - } + public void setBandwidthType(Integer bandwidthType) { + this.bandwidthType = bandwidthType; + } + + public Integer getBandwidth() { + return bandwidth; + } - public void setVServerName(String vServerName) { - this.vServerName = vServerName; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public Integer getCreateTime() { + return createTime; + } - public String getULBId() { - return ulbId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public List getIPSet() { + return ipSet; + } - public void setULBId(String ulbId) { - this.ulbId = ulbId; - } + public void setIPSet(List ipSet) { + this.ipSet = ipSet; + } + + public List getVServerSet() { + return vServerSet; + } - public String getULBName() { - return ulbName; - } + public void setVServerSet(List vServerSet) { + this.vServerSet = vServerSet; + } + + public String getULBType() { + return ulbType; + } - public void setULBName(String ulbName) { - this.ulbName = ulbName; - } + public void setULBType(String ulbType) { + this.ulbType = ulbType; + } + + public String getIPVersion() { + return ipVersion; } - public static class ULBBackendSet extends Response { + public void setIPVersion(String ipVersion) { + this.ipVersion = ipVersion; + } + + public List getSnatIps() { + return snatIps; + } - /** 后端资源实例的Id */ - @SerializedName("BackendId") - private String backendId; + public void setSnatIps(List snatIps) { + this.snatIps = snatIps; + } + + public String getListenType() { + return listenType; + } - /** 资源实例的类型 */ - @SerializedName("ResourceType") - private String resourceType; + public void setListenType(String listenType) { + this.listenType = listenType; + } + + public String getVPCId() { + return vpcId; + } - /** 资源实例的资源Id */ - @SerializedName("ResourceId") - private String resourceId; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } - /** 资源实例的资源名称 */ - @SerializedName("ResourceName") - private String resourceName; + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getBusinessId() { + return businessId; + } - /** 资源绑定的虚拟网卡实例的类型 */ - @SerializedName("SubResourceType") - private String subResourceType; + public void setBusinessId(String businessId) { + this.businessId = businessId; + } + + public String getPrivateIP() { + return privateIP; + } - /** 资源绑定的虚拟网卡实例的资源Id */ - @SerializedName("SubResourceId") - private String subResourceId; + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + public List getFirewallSet() { + return firewallSet; + } - /** 资源绑定的虚拟网卡实例的资源名称 */ - @SerializedName("SubResourceName") - private String subResourceName; + public void setFirewallSet(List firewallSet) { + this.firewallSet = firewallSet; + } + + public Integer getEnableLog() { + return enableLog; + } - /** 后端提供服务的内网IP */ - @SerializedName("PrivateIP") - private String privateIP; + public void setEnableLog(Integer enableLog) { + this.enableLog = enableLog; + } + + public LoggerSet getLogSet() { + return logSet; + } - /** 后端提供服务的端口 */ - @SerializedName("Port") - private Integer port; + public void setLogSet(LoggerSet logSet) { + this.logSet = logSet; + } + + } + public static class ULBVServerSet extends Response { + + + /** + * 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测, Customize -> UDP检查 + +请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize + */ + @SerializedName("MonitorType") + private String monitorType; + + + + /** + * VServer会话保持方式。枚举值为: None -> 关闭会话保持; ServerInsert -> 自动生成; UserDefined -> 用户自定义。 + */ + @SerializedName("PersistenceType") + private String persistenceType; + + + + /** + * 负载均衡实例的Id + */ + @SerializedName("ULBId") + private String ulbId; + + + + /** + * 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名 + */ + @SerializedName("Domain") + private String domain; + + + + /** + * 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径 + */ + @SerializedName("Path") + private String path; + + + + /** + * 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文 + */ + @SerializedName("RequestMsg") + private String requestMsg; + + + + /** + * 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文 + */ + @SerializedName("ResponseMsg") + private String responseMsg; + + + + /** + * VServer实例的Id + */ + @SerializedName("VServerId") + private String vServerId; + + + + /** + * VServer实例的名字 + */ + @SerializedName("VServerName") + private String vServerName; + + + + /** + * VServer实例的协议。 枚举值为:HTTP,TCP,UDP,HTTPS。 + */ + @SerializedName("Protocol") + private String protocol; + + + + /** + * VServer服务端口 + */ + @SerializedName("FrontendPort") + private Integer frontendPort; + + + + /** + * VServer负载均衡的模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口)。 + */ + @SerializedName("Method") + private String method; + + + + /** + * 根据PersistenceType确定: None或ServerInsert,此字段为空; UserDefined,此字段展示用户自定义会话string。 + */ + @SerializedName("PersistenceInfo") + private String persistenceInfo; + + + + /** + * 空闲连接的回收时间,单位:秒。 + */ + @SerializedName("ClientTimeout") + private Integer clientTimeout; + + + + /** + * VServer的运行状态。枚举值: 0 -> rs全部运行正常;1 -> rs全部运行异常;2 -> rs部分运行异常。 + */ + @SerializedName("Status") + private Integer status; + + + + /** + * VServer绑定的SSL证书信息,具体结构见下方 ULBSSLSet。 + */ + @SerializedName("SSLSet") + private List sslSet; + + + + /** + * 后端资源信息列表,具体结构见下方 ULBBackendSet + */ + @SerializedName("BackendSet") + private List backendSet; + + + + /** + * 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发 + */ + @SerializedName("ListenType") + private String listenType; + + + + /** + * 内容转发信息列表,具体结构见下方 ULBPolicySet + */ + @SerializedName("PolicySet") + private List policySet; + + + + /** + * 数据压缩开关,0:关闭 1:开启 + */ + @SerializedName("EnableCompression") + private Integer enableCompression; + + + + /** + * VServer绑定的安全策略,具体结构见BindSecurityPolicy + */ + @SerializedName("SecurityPolicy") + private BindSecurityPolicy securityPolicy; + + + + /** + * 重定向端口,取值范围[0-65535];默认值为0,代表关闭;仅HTTP协议支持开启重定向功能 + */ + @SerializedName("ForwardPort") + private Integer forwardPort; + + + + /** + * 0:关闭 1:开启,用于开启http2功能;默认值为0 + */ + @SerializedName("EnableHTTP2") + private Integer enableHTTP2; + + + public String getMonitorType() { + return monitorType; + } - /** 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用 */ - @SerializedName("Enabled") - private Integer enabled; + public void setMonitorType(String monitorType) { + this.monitorType = monitorType; + } + + public String getPersistenceType() { + return persistenceType; + } - /** 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常 */ - @SerializedName("Status") - private Integer status; + public void setPersistenceType(String persistenceType) { + this.persistenceType = persistenceType; + } + + public String getULBId() { + return ulbId; + } - /** 后端提供服务的资源所在的子网的ID */ - @SerializedName("SubnetId") - private String subnetId; + public void setULBId(String ulbId) { + this.ulbId = ulbId; + } + + public String getDomain() { + return domain; + } - /** - * 是否为backup,只有当vserver的Backup属性为1时才会有此字段,说明: - * - *

0:主rs 1:备rs - */ - @SerializedName("IsBackup") - private Integer isBackup; + public void setDomain(String domain) { + this.domain = domain; + } + + public String getPath() { + return path; + } - /** 后端RS权重(在加权轮询算法下有效) */ - @SerializedName("Weight") - private Integer weight; + public void setPath(String path) { + this.path = path; + } + + public String getRequestMsg() { + return requestMsg; + } - /** 后端服务器所在的VPC */ - @SerializedName("VPCId") - private String vpcId; + public void setRequestMsg(String requestMsg) { + this.requestMsg = requestMsg; + } + + public String getResponseMsg() { + return responseMsg; + } - public String getBackendId() { - return backendId; - } + public void setResponseMsg(String responseMsg) { + this.responseMsg = responseMsg; + } + + public String getVServerId() { + return vServerId; + } - public void setBackendId(String backendId) { - this.backendId = backendId; - } + public void setVServerId(String vServerId) { + this.vServerId = vServerId; + } + + public String getVServerName() { + return vServerName; + } - public String getResourceType() { - return resourceType; - } + public void setVServerName(String vServerName) { + this.vServerName = vServerName; + } + + public String getProtocol() { + return protocol; + } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public Integer getFrontendPort() { + return frontendPort; + } - public String getResourceId() { - return resourceId; - } + public void setFrontendPort(Integer frontendPort) { + this.frontendPort = frontendPort; + } + + public String getMethod() { + return method; + } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } + public void setMethod(String method) { + this.method = method; + } + + public String getPersistenceInfo() { + return persistenceInfo; + } - public String getResourceName() { - return resourceName; - } - - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } - - public String getSubResourceType() { - return subResourceType; - } - - public void setSubResourceType(String subResourceType) { - this.subResourceType = subResourceType; - } - - public String getSubResourceId() { - return subResourceId; - } - - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } - - public String getSubResourceName() { - return subResourceName; - } - - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } - - public String getPrivateIP() { - return privateIP; - } - - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public Integer getEnabled() { - return enabled; - } - - public void setEnabled(Integer enabled) { - this.enabled = enabled; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public Integer getIsBackup() { - return isBackup; - } - - public void setIsBackup(Integer isBackup) { - this.isBackup = isBackup; - } - - public Integer getWeight() { - return weight; - } - - public void setWeight(Integer weight) { - this.weight = weight; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } + public void setPersistenceInfo(String persistenceInfo) { + this.persistenceInfo = persistenceInfo; } - - public static class ULBIPSet extends Response { - - /** 弹性IP的运营商信息,枚举值为: Bgp:BGP IP International:国际IP */ - @SerializedName("OperatorName") - private String operatorName; - - /** 弹性IP地址 */ - @SerializedName("EIP") - private String eip; - - /** 弹性IP的ID */ - @SerializedName("EIPId") - private String eipId; - - /** 弹性IP的带宽类型,枚举值:1 表示是共享带宽,0 普通带宽类型(暂未对外开放) */ - @SerializedName("BandwidthType") - private Integer bandwidthType; - - /** 弹性IP的带宽值(暂未对外开放) */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - public String getOperatorName() { - return operatorName; - } - - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; - } - - public String getEIP() { - return eip; - } - - public void setEIP(String eip) { - this.eip = eip; - } - - public String getEIPId() { - return eipId; - } - - public void setEIPId(String eipId) { - this.eipId = eipId; - } - - public Integer getBandwidthType() { - return bandwidthType; - } - - public void setBandwidthType(Integer bandwidthType) { - this.bandwidthType = bandwidthType; - } - - public Integer getBandwidth() { - return bandwidth; - } - - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } + + public Integer getClientTimeout() { + return clientTimeout; } - public static class ULBPolicySet extends Response { - - /** 内容转发规则中域名的匹配方式。枚举值:Regular,正则;Wildcard,泛域名 */ - @SerializedName("DomainMatchMode") - private String domainMatchMode; - - /** 内容转发Id,默认内容转发类型下为空。 */ - @SerializedName("PolicyId") - private String policyId; - - /** 内容类型,枚举值:Custom -> 客户自定义;Default -> 默认内容转发 */ - @SerializedName("PolicyType") - private String policyType; - - /** 内容转发匹配字段的类型,枚举值:Domain -> 域名;Path -> 路径; 默认内容转发类型下为空 */ - @SerializedName("Type") - private String type; - - /** 内容转发匹配字段;默认内容转发类型下为空。 */ - @SerializedName("Match") - private String match; - - /** 内容转发优先级,范围[1,9999],数字越大优先级越高。默认内容转发规则下为0。 */ - @SerializedName("PolicyPriority") - private Integer policyPriority; - - /** 所属VServerId */ - @SerializedName("VServerId") - private String vServerId; - - /** 默认内容转发类型下返回当前rs总数 */ - @SerializedName("TotalCount") - private Integer totalCount; - - /** 内容转发下rs的详细信息,参考PolicyBackendSet */ - @SerializedName("BackendSet") - private List backendSet; - - public String getDomainMatchMode() { - return domainMatchMode; - } - - public void setDomainMatchMode(String domainMatchMode) { - this.domainMatchMode = domainMatchMode; - } - - public String getPolicyId() { - return policyId; - } - - public void setPolicyId(String policyId) { - this.policyId = policyId; - } - - public String getPolicyType() { - return policyType; - } - - public void setPolicyType(String policyType) { - this.policyType = policyType; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getMatch() { - return match; - } - - public void setMatch(String match) { - this.match = match; - } - - public Integer getPolicyPriority() { - return policyPriority; - } - - public void setPolicyPriority(Integer policyPriority) { - this.policyPriority = policyPriority; - } - - public String getVServerId() { - return vServerId; - } - - public void setVServerId(String vServerId) { - this.vServerId = vServerId; - } - - public Integer getTotalCount() { - return totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getBackendSet() { - return backendSet; - } - - public void setBackendSet(List backendSet) { - this.backendSet = backendSet; - } + public void setClientTimeout(Integer clientTimeout) { + this.clientTimeout = clientTimeout; } - - public static class ULBSSLSet extends Response { - - /** SSL证书的Id */ - @SerializedName("SSLId") - private String sslId; - - /** SSL证书的名字 */ - @SerializedName("SSLName") - private String sslName; - - /** SSL证书类型,暂时只有 Pem 一种类型 */ - @SerializedName("SSLType") - private String sslType; - - /** SSL证书的内容 */ - @SerializedName("SSLContent") - private String sslContent; - - /** SSL证书的创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** SSL证书的HASH值 */ - @SerializedName("HashValue") - private String hashValue; - - /** SSL证书绑定到的对象 */ - @SerializedName("BindedTargetSet") - private List bindedTargetSet; - - /** SSL证书来源,SSL证书来源,0代表证书来自于ULB平台,1代表证书来自于USSL平台 */ - @SerializedName("SSLSource") - private Integer sslSource; - - /** USSL证书平台的编号,只有当SSLSource为1时才出现 */ - @SerializedName("USSLId") - private String usslId; - - /** USSL证书平台的域名,只有当SSLSource为1时才出现 */ - @SerializedName("Domains") - private String domains; - - public String getSSLId() { - return sslId; - } - - public void setSSLId(String sslId) { - this.sslId = sslId; - } - - public String getSSLName() { - return sslName; - } - - public void setSSLName(String sslName) { - this.sslName = sslName; - } - - public String getSSLType() { - return sslType; - } - - public void setSSLType(String sslType) { - this.sslType = sslType; - } - - public String getSSLContent() { - return sslContent; - } - - public void setSSLContent(String sslContent) { - this.sslContent = sslContent; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public String getHashValue() { - return hashValue; - } - - public void setHashValue(String hashValue) { - this.hashValue = hashValue; - } - - public List getBindedTargetSet() { - return bindedTargetSet; - } - - public void setBindedTargetSet(List bindedTargetSet) { - this.bindedTargetSet = bindedTargetSet; - } - - public Integer getSSLSource() { - return sslSource; - } - - public void setSSLSource(Integer sslSource) { - this.sslSource = sslSource; - } - - public String getUSSLId() { - return usslId; - } - - public void setUSSLId(String usslId) { - this.usslId = usslId; - } - - public String getDomains() { - return domains; - } - - public void setDomains(String domains) { - this.domains = domains; - } + + public Integer getStatus() { + return status; } - public static class ULBSet extends Response { - - /** 负载均衡的资源ID */ - @SerializedName("ULBId") - private String ulbId; - - /** 负载均衡的资源名称 */ - @SerializedName("Name") - private String name; - - /** 负载均衡的业务组名称 */ - @SerializedName("Tag") - private String tag; - - /** 负载均衡的备注 */ - @SerializedName("Remark") - private String remark; - - /** 带宽类型,枚举值为: 0,非共享带宽; 1,共享带宽 */ - @SerializedName("BandwidthType") - private Integer bandwidthType; - - /** 带宽 */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - /** ULB的创建时间,格式为Unix Timestamp */ - @SerializedName("CreateTime") - private Integer createTime; - - /** ULB的详细信息列表,具体结构见下方 ULBIPSet */ - @SerializedName("IPSet") - private List ipSet; - - /** 负载均衡实例中存在的VServer实例列表,具体结构见下方 ULBVServerSet */ - @SerializedName("VServerSet") - private List vServerSet; - - /** ULB 的类型 */ - @SerializedName("ULBType") - private String ulbType; - - /** ULB ip类型,枚举值:IPv6 / IPv4 (内部测试,暂未对外开放) */ - @SerializedName("IPVersion") - private String ipVersion; - - /** ULB后向代理IP,仅当有代理IP时返回 否 */ - @SerializedName("SnatIps") - private List snatIps; - - /** ULB 监听器类型,枚举值:RequestProxy,请求代理; PacketsTransmit ,报文转发;Comprehensive,兼容型;Pending,未定型 */ - @SerializedName("ListenType") - private String listenType; - - /** ULB所在的VPC的ID */ - @SerializedName("VPCId") - private String vpcId; - - /** ULB 为 InnerMode 时,ULB 所属的子网ID,默认为空 */ - @SerializedName("SubnetId") - private String subnetId; - - /** ULB 所属的业务组ID */ - @SerializedName("BusinessId") - private String businessId; - - /** ULB的内网IP,当ULBType为OuterMode时,该值为空 */ - @SerializedName("PrivateIP") - private String privateIP; - - /** 防火墙信息,具体结构见下方 FirewallSet */ - @SerializedName("FirewallSet") - private List firewallSet; - - /** ULB是否开启日志功能。0,关闭;1,开启 */ - @SerializedName("EnableLog") - private Integer enableLog; - - /** 日志功能相关信息,仅当EnableLog为true时会返回,具体结构见下方 LoggerSet */ - @SerializedName("LogSet") - private LoggerSet logSet; - - public String getULBId() { - return ulbId; - } - - public void setULBId(String ulbId) { - this.ulbId = ulbId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getTag() { - return tag; - } - - public void setTag(String tag) { - this.tag = tag; - } - - public String getRemark() { - return remark; - } - - public void setRemark(String remark) { - this.remark = remark; - } - - public Integer getBandwidthType() { - return bandwidthType; - } - - public void setBandwidthType(Integer bandwidthType) { - this.bandwidthType = bandwidthType; - } - - public Integer getBandwidth() { - return bandwidth; - } - - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public List getIPSet() { - return ipSet; - } - - public void setIPSet(List ipSet) { - this.ipSet = ipSet; - } - - public List getVServerSet() { - return vServerSet; - } - - public void setVServerSet(List vServerSet) { - this.vServerSet = vServerSet; - } - - public String getULBType() { - return ulbType; - } - - public void setULBType(String ulbType) { - this.ulbType = ulbType; - } - - public String getIPVersion() { - return ipVersion; - } - - public void setIPVersion(String ipVersion) { - this.ipVersion = ipVersion; - } - - public List getSnatIps() { - return snatIps; - } - - public void setSnatIps(List snatIps) { - this.snatIps = snatIps; - } - - public String getListenType() { - return listenType; - } - - public void setListenType(String listenType) { - this.listenType = listenType; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public String getBusinessId() { - return businessId; - } - - public void setBusinessId(String businessId) { - this.businessId = businessId; - } - - public String getPrivateIP() { - return privateIP; - } - - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } - - public List getFirewallSet() { - return firewallSet; - } - - public void setFirewallSet(List firewallSet) { - this.firewallSet = firewallSet; - } - - public Integer getEnableLog() { - return enableLog; - } - - public void setEnableLog(Integer enableLog) { - this.enableLog = enableLog; - } - - public LoggerSet getLogSet() { - return logSet; - } - - public void setLogSet(LoggerSet logSet) { - this.logSet = logSet; - } + public void setStatus(Integer status) { + this.status = status; + } + + public List getSSLSet() { + return sslSet; } - public static class ULBVServerSet extends Response { - - /** - * 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测, Customize -> UDP检查 - * - *

请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; - * 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize - */ - @SerializedName("MonitorType") - private String monitorType; - - /** VServer会话保持方式。枚举值为: None -> 关闭会话保持; ServerInsert -> 自动生成; UserDefined -> 用户自定义。 */ - @SerializedName("PersistenceType") - private String persistenceType; - - /** 负载均衡实例的Id */ - @SerializedName("ULBId") - private String ulbId; - - /** 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名 */ - @SerializedName("Domain") - private String domain; - - /** 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径 */ - @SerializedName("Path") - private String path; - - /** 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文 */ - @SerializedName("RequestMsg") - private String requestMsg; - - /** 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文 */ - @SerializedName("ResponseMsg") - private String responseMsg; - - /** VServer实例的Id */ - @SerializedName("VServerId") - private String vServerId; - - /** VServer实例的名字 */ - @SerializedName("VServerName") - private String vServerName; - - /** VServer实例的协议。 枚举值为:HTTP,TCP,UDP,HTTPS。 */ - @SerializedName("Protocol") - private String protocol; - - /** VServer服务端口 */ - @SerializedName("FrontendPort") - private Integer frontendPort; - - /** - * VServer负载均衡的模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> - * 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口)。 - */ - @SerializedName("Method") - private String method; - - /** 根据PersistenceType确定: None或ServerInsert,此字段为空; UserDefined,此字段展示用户自定义会话string。 */ - @SerializedName("PersistenceInfo") - private String persistenceInfo; - - /** 空闲连接的回收时间,单位:秒。 */ - @SerializedName("ClientTimeout") - private Integer clientTimeout; - - /** VServer的运行状态。枚举值: 0 -> rs全部运行正常;1 -> rs全部运行异常;2 -> rs部分运行异常。 */ - @SerializedName("Status") - private Integer status; - - /** VServer绑定的SSL证书信息,具体结构见下方 ULBSSLSet。 */ - @SerializedName("SSLSet") - private List sslSet; - - /** 后端资源信息列表,具体结构见下方 ULBBackendSet */ - @SerializedName("BackendSet") - private List backendSet; - - /** 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发 */ - @SerializedName("ListenType") - private String listenType; - - /** 内容转发信息列表,具体结构见下方 ULBPolicySet */ - @SerializedName("PolicySet") - private List policySet; - - /** 数据压缩开关,0:关闭 1:开启 */ - @SerializedName("EnableCompression") - private Integer enableCompression; - - /** VServer绑定的安全策略,具体结构见BindSecurityPolicy */ - @SerializedName("SecurityPolicy") - private BindSecurityPolicy securityPolicy; - - /** 重定向端口,取值范围[0-65535];默认值为0,代表关闭;仅HTTP协议支持开启重定向功能 */ - @SerializedName("ForwardPort") - private Integer forwardPort; - - /** 0:关闭 1:开启,用于开启http2功能;默认值为0 */ - @SerializedName("EnableHTTP2") - private Integer enableHTTP2; - - public String getMonitorType() { - return monitorType; - } - - public void setMonitorType(String monitorType) { - this.monitorType = monitorType; - } - - public String getPersistenceType() { - return persistenceType; - } - - public void setPersistenceType(String persistenceType) { - this.persistenceType = persistenceType; - } - - public String getULBId() { - return ulbId; - } - - public void setULBId(String ulbId) { - this.ulbId = ulbId; - } - - public String getDomain() { - return domain; - } - - public void setDomain(String domain) { - this.domain = domain; - } - - public String getPath() { - return path; - } - - public void setPath(String path) { - this.path = path; - } - - public String getRequestMsg() { - return requestMsg; - } - - public void setRequestMsg(String requestMsg) { - this.requestMsg = requestMsg; - } - - public String getResponseMsg() { - return responseMsg; - } - - public void setResponseMsg(String responseMsg) { - this.responseMsg = responseMsg; - } - - public String getVServerId() { - return vServerId; - } - - public void setVServerId(String vServerId) { - this.vServerId = vServerId; - } - - public String getVServerName() { - return vServerName; - } - - public void setVServerName(String vServerName) { - this.vServerName = vServerName; - } - - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol; - } - - public Integer getFrontendPort() { - return frontendPort; - } - - public void setFrontendPort(Integer frontendPort) { - this.frontendPort = frontendPort; - } - - public String getMethod() { - return method; - } - - public void setMethod(String method) { - this.method = method; - } - - public String getPersistenceInfo() { - return persistenceInfo; - } - - public void setPersistenceInfo(String persistenceInfo) { - this.persistenceInfo = persistenceInfo; - } - - public Integer getClientTimeout() { - return clientTimeout; - } - - public void setClientTimeout(Integer clientTimeout) { - this.clientTimeout = clientTimeout; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } + public void setSSLSet(List sslSet) { + this.sslSet = sslSet; + } + + public List getBackendSet() { + return backendSet; + } - public List getSSLSet() { - return sslSet; - } + public void setBackendSet(List backendSet) { + this.backendSet = backendSet; + } + + public String getListenType() { + return listenType; + } - public void setSSLSet(List sslSet) { - this.sslSet = sslSet; - } + public void setListenType(String listenType) { + this.listenType = listenType; + } + + public List getPolicySet() { + return policySet; + } - public List getBackendSet() { - return backendSet; - } + public void setPolicySet(List policySet) { + this.policySet = policySet; + } + + public Integer getEnableCompression() { + return enableCompression; + } - public void setBackendSet(List backendSet) { - this.backendSet = backendSet; - } + public void setEnableCompression(Integer enableCompression) { + this.enableCompression = enableCompression; + } + + public BindSecurityPolicy getSecurityPolicy() { + return securityPolicy; + } - public String getListenType() { - return listenType; - } + public void setSecurityPolicy(BindSecurityPolicy securityPolicy) { + this.securityPolicy = securityPolicy; + } + + public Integer getForwardPort() { + return forwardPort; + } - public void setListenType(String listenType) { - this.listenType = listenType; - } + public void setForwardPort(Integer forwardPort) { + this.forwardPort = forwardPort; + } + + public Integer getEnableHTTP2() { + return enableHTTP2; + } - public List getPolicySet() { - return policySet; + public void setEnableHTTP2(Integer enableHTTP2) { + this.enableHTTP2 = enableHTTP2; + } + } +} - public void setPolicySet(List policySet) { - this.policySet = policySet; - } - public Integer getEnableCompression() { - return enableCompression; - } - public void setEnableCompression(Integer enableCompression) { - this.enableCompression = enableCompression; - } - public BindSecurityPolicy getSecurityPolicy() { - return securityPolicy; - } - public void setSecurityPolicy(BindSecurityPolicy securityPolicy) { - this.securityPolicy = securityPolicy; - } - public Integer getForwardPort() { - return forwardPort; - } - public void setForwardPort(Integer forwardPort) { - this.forwardPort = forwardPort; - } - public Integer getEnableHTTP2() { - return enableHTTP2; - } - public void setEnableHTTP2(Integer enableHTTP2) { - this.enableHTTP2 = enableHTTP2; - } - } -} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleRequest.java index af810ee9..3df085c9 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleRequest.java @@ -1,61 +1,96 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeULBSimpleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 数据偏移量,默认为0 */ + + + + /** + * 数据偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 数据分页值,默认为10000 */ + + + + /** + * 数据分页值,默认为10000 + */ @UCloudParam("Limit") private Integer limit; - - /** 负载均衡实例的Id。 若指定则返回指定的负载均衡实例的信息; 若不指定则返回当前数据中心中所有的负载均衡实例的信息 */ + + + + /** + * 负载均衡实例的Id。 若指定则返回指定的负载均衡实例的信息; 若不指定则返回当前数据中心中所有的负载均衡实例的信息 + */ @UCloudParam("ULBId") private String ulbId; - - /** ULB所属的VPC */ + + + + /** + * ULB所属的VPC + */ @UCloudParam("VPCId") private String vpcId; - - /** ULB所属的子网ID */ + + + + /** + * ULB所属的子网ID + */ @UCloudParam("SubnetId") private String subnetId; - - /** ULB所属的业务组ID */ + + + + /** + * ULB所属的业务组ID + */ @UCloudParam("BusinessId") private String businessId; - + + public String getRegion() { return region; } @@ -63,7 +98,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -71,7 +106,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getOffset() { return offset; } @@ -79,7 +114,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -87,7 +122,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getULBId() { return ulbId; } @@ -95,7 +130,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getVPCId() { return vpcId; } @@ -103,7 +138,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -111,7 +146,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getBusinessId() { return businessId; } @@ -119,4 +154,14 @@ public String getBusinessId() { public void setBusinessId(String businessId) { this.businessId = businessId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleResponse.java index 81257219..f6876e24 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeULBSimpleResponse extends Response { - /** 满足条件的ULB总数 */ + + + /** + * 满足条件的ULB总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** ULB列表,每项参数详见 ULBSimpleSet */ + + + + /** + * ULB列表,每项参数详见 ULBSimpleSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,388 +57,526 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - - public static class FirewallSet extends Response { - - /** 防火墙名称 */ - @SerializedName("FirewallName") - private String firewallName; - - /** 防火墙ID */ - @SerializedName("FirewallId") - private String firewallId; - - public String getFirewallName() { - return firewallName; - } - - public void setFirewallName(String firewallName) { - this.firewallName = firewallName; - } - - public String getFirewallId() { - return firewallId; - } - - public void setFirewallId(String firewallId) { - this.firewallId = firewallId; - } + + public static class FirewallSet extends Response { + + + /** + * 防火墙名称 + */ + @SerializedName("FirewallName") + private String firewallName; + + + + /** + * 防火墙ID + */ + @SerializedName("FirewallId") + private String firewallId; + + + public String getFirewallName() { + return firewallName; } - public static class LoggerSet extends Response { - - /** ulb日志上传的bucket */ - @SerializedName("BucketName") - private String bucketName; - - /** 上传到bucket使用的token的tokenid */ - @SerializedName("TokenID") - private String tokenID; - - /** bucket的token名称 */ - @SerializedName("TokenName") - private String tokenName; - - public String getBucketName() { - return bucketName; - } - - public void setBucketName(String bucketName) { - this.bucketName = bucketName; - } - - public String getTokenID() { - return tokenID; - } - - public void setTokenID(String tokenID) { - this.tokenID = tokenID; - } - - public String getTokenName() { - return tokenName; - } - - public void setTokenName(String tokenName) { - this.tokenName = tokenName; - } + public void setFirewallName(String firewallName) { + this.firewallName = firewallName; } - - public static class ULBIPSet extends Response { - - /** 弹性IP的运营商信息,枚举值为: Bgp:BGP IP International:国际IP */ - @SerializedName("OperatorName") - private String operatorName; - - /** 弹性IP地址 */ - @SerializedName("EIP") - private String eip; - - /** 弹性IP的ID */ - @SerializedName("EIPId") - private String eipId; - - /** 弹性IP的带宽类型,枚举值:1 表示是共享带宽,0 普通带宽类型(暂未对外开放) */ - @SerializedName("BandwidthType") - private Integer bandwidthType; - - /** 弹性IP的带宽值(暂未对外开放) */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - public String getOperatorName() { - return operatorName; - } - - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; - } - - public String getEIP() { - return eip; - } - - public void setEIP(String eip) { - this.eip = eip; - } - - public String getEIPId() { - return eipId; - } - - public void setEIPId(String eipId) { - this.eipId = eipId; - } - - public Integer getBandwidthType() { - return bandwidthType; - } - - public void setBandwidthType(Integer bandwidthType) { - this.bandwidthType = bandwidthType; - } - - public Integer getBandwidth() { - return bandwidth; - } - - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } + + public String getFirewallId() { + return firewallId; } - public static class ULBSimpleSet extends Response { - - /** ULB 监听器类型,枚举值:RequestProxy,请求代理; PacketsTransmit ,报文转发;Comprehensive,兼容型;Pending,未定型 */ - @SerializedName("ListenType") - private String listenType; - - /** ULB提供服务的IP类型。枚举值,“IPv4”,"IPv6"。默认为“IPv4” */ - @SerializedName("IPVersion") - private String ipVersion; - - /** ULB后向代理IP,仅当有代理IP时返回 否 */ - @SerializedName("SnatIps") - private List snatIps; - - /** 负载均衡的资源ID */ - @SerializedName("ULBId") - private String ulbId; - - /** 负载均衡的资源名称 */ - @SerializedName("Name") - private String name; - - /** 负载均衡的业务组名称 */ - @SerializedName("Tag") - private String tag; - - /** 负载均衡的备注 */ - @SerializedName("Remark") - private String remark; - - /** ULB的创建时间,格式为Unix Timestamp */ - @SerializedName("CreateTime") - private Integer createTime; - - /** ULB所在的VPC的ID */ - @SerializedName("VPCId") - private String vpcId; - - /** ULB 为 InnerMode 时,ULB 所属的子网ID */ - @SerializedName("SubnetId") - private String subnetId; - - /** ULB 所属的业务组ID */ - @SerializedName("BusinessId") - private String businessId; - - /** ULB的内网IP,当ULBType为OuterMode时,该值为空 */ - @SerializedName("PrivateIP") - private String privateIP; - - /** 带宽类型,枚举值为: 0,非共享带宽; 1,共享带宽 */ - @SerializedName("BandwidthType") - private Integer bandwidthType; - - /** 带宽 */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - /** ULB的详细信息列表,具体结构见下方 ULBIPSet */ - @SerializedName("IPSet") - private List ipSet; - - /** ulb下vserver数量 */ - @SerializedName("VServerCount") - private Integer vServerCount; - - /** ULB 的类型(InnerMode or OuterMode) */ - @SerializedName("ULBType") - private String ulbType; - - /** 防火墙信息,具体结构见下方 FirewallSet */ - @SerializedName("FirewallSet") - private List firewallSet; - - /** ULB是否开启日志功能。0,关闭;1,开启 */ - @SerializedName("EnableLog") - private Integer enableLog; - - /** 日志功能相关信息,仅当EnableLog为true时会返回,具体结构见下方 LoggerSet */ - @SerializedName("LogSet") - private LoggerSet logSet; - - /** WAF功能状态,枚举类型:Unavailable:无法创建WAF;NoWAF:未绑定WAF;Intranet:内网回源Waf;Extranet:外网回源Waf */ - @SerializedName("WAFMode") - private String wafMode; - - public String getListenType() { - return listenType; - } - - public void setListenType(String listenType) { - this.listenType = listenType; - } - - public String getIPVersion() { - return ipVersion; - } - - public void setIPVersion(String ipVersion) { - this.ipVersion = ipVersion; - } + public void setFirewallId(String firewallId) { + this.firewallId = firewallId; + } + + } + public static class LoggerSet extends Response { + + + /** + * ulb日志上传的bucket + */ + @SerializedName("BucketName") + private String bucketName; + + + + /** + * 上传到bucket使用的token的tokenid + */ + @SerializedName("TokenID") + private String tokenID; + + + + /** + * bucket的token名称 + */ + @SerializedName("TokenName") + private String tokenName; + + + public String getBucketName() { + return bucketName; + } - public List getSnatIps() { - return snatIps; - } + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + public String getTokenID() { + return tokenID; + } - public void setSnatIps(List snatIps) { - this.snatIps = snatIps; - } + public void setTokenID(String tokenID) { + this.tokenID = tokenID; + } + + public String getTokenName() { + return tokenName; + } - public String getULBId() { - return ulbId; - } + public void setTokenName(String tokenName) { + this.tokenName = tokenName; + } + + } + public static class ULBIPSet extends Response { + + + /** + * 弹性IP的运营商信息,枚举值为: Bgp:BGP IP International:国际IP + */ + @SerializedName("OperatorName") + private String operatorName; + + + + /** + * 弹性IP地址 + */ + @SerializedName("EIP") + private String eip; + + + + /** + * 弹性IP的ID + */ + @SerializedName("EIPId") + private String eipId; + + + + /** + * 弹性IP的带宽类型,枚举值:1 表示是共享带宽,0 普通带宽类型(暂未对外开放) + */ + @SerializedName("BandwidthType") + private Integer bandwidthType; + + + + /** + * 弹性IP的带宽值(暂未对外开放) + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + public String getOperatorName() { + return operatorName; + } - public void setULBId(String ulbId) { - this.ulbId = ulbId; - } + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public String getEIP() { + return eip; + } - public String getName() { - return name; - } + public void setEIP(String eip) { + this.eip = eip; + } + + public String getEIPId() { + return eipId; + } - public void setName(String name) { - this.name = name; - } + public void setEIPId(String eipId) { + this.eipId = eipId; + } + + public Integer getBandwidthType() { + return bandwidthType; + } - public String getTag() { - return tag; - } + public void setBandwidthType(Integer bandwidthType) { + this.bandwidthType = bandwidthType; + } + + public Integer getBandwidth() { + return bandwidth; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + } + public static class ULBSimpleSet extends Response { + + + /** + * ULB 监听器类型,枚举值:RequestProxy,请求代理; PacketsTransmit ,报文转发;Comprehensive,兼容型;Pending,未定型 + */ + @SerializedName("ListenType") + private String listenType; + + + + /** + * ULB提供服务的IP类型。枚举值,“IPv4”,"IPv6"。默认为“IPv4” + */ + @SerializedName("IPVersion") + private String ipVersion; + + + + /** + * ULB后向代理IP,仅当有代理IP时返回 +否 + */ + @SerializedName("SnatIps") + private List snatIps; + + + + /** + * 负载均衡的资源ID + + */ + @SerializedName("ULBId") + private String ulbId; + + + + /** + * 负载均衡的资源名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 负载均衡的业务组名称 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 负载均衡的备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * ULB的创建时间,格式为Unix Timestamp + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * ULB所在的VPC的ID + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * ULB 为 InnerMode 时,ULB 所属的子网ID + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * ULB 所属的业务组ID + */ + @SerializedName("BusinessId") + private String businessId; + + + + /** + * ULB的内网IP,当ULBType为OuterMode时,该值为空 + + */ + @SerializedName("PrivateIP") + private String privateIP; + + + + /** + * 带宽类型,枚举值为: 0,非共享带宽; 1,共享带宽 + + */ + @SerializedName("BandwidthType") + private Integer bandwidthType; + + + + /** + * 带宽 + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * ULB的详细信息列表,具体结构见下方 ULBIPSet + */ + @SerializedName("IPSet") + private List ipSet; + + + + /** + * ulb下vserver数量 + */ + @SerializedName("VServerCount") + private Integer vServerCount; + + + + /** + * ULB 的类型(InnerMode or OuterMode) + */ + @SerializedName("ULBType") + private String ulbType; + + + + /** + * 防火墙信息,具体结构见下方 FirewallSet + */ + @SerializedName("FirewallSet") + private List firewallSet; + + + + /** + * ULB是否开启日志功能。0,关闭;1,开启 + */ + @SerializedName("EnableLog") + private Integer enableLog; + + + + /** + * 日志功能相关信息,仅当EnableLog为true时会返回,具体结构见下方 LoggerSet + */ + @SerializedName("LogSet") + private LoggerSet logSet; + + + + /** + * WAF功能状态,枚举类型:Unavailable:无法创建WAF;NoWAF:未绑定WAF;Intranet:内网回源Waf;Extranet:外网回源Waf + */ + @SerializedName("WAFMode") + private String wafMode; + + + public String getListenType() { + return listenType; + } - public String getRemark() { - return remark; - } + public void setListenType(String listenType) { + this.listenType = listenType; + } + + public String getIPVersion() { + return ipVersion; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setIPVersion(String ipVersion) { + this.ipVersion = ipVersion; + } + + public List getSnatIps() { + return snatIps; + } - public Integer getCreateTime() { - return createTime; - } + public void setSnatIps(List snatIps) { + this.snatIps = snatIps; + } + + public String getULBId() { + return ulbId; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setULBId(String ulbId) { + this.ulbId = ulbId; + } + + public String getName() { + return name; + } - public String getVPCId() { - return vpcId; - } + public void setName(String name) { + this.name = name; + } + + public String getTag() { + return tag; + } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } - public String getSubnetId() { - return subnetId; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getCreateTime() { + return createTime; + } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getVPCId() { + return vpcId; + } - public String getBusinessId() { - return businessId; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } - public void setBusinessId(String businessId) { - this.businessId = businessId; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getBusinessId() { + return businessId; + } - public String getPrivateIP() { - return privateIP; - } + public void setBusinessId(String businessId) { + this.businessId = businessId; + } + + public String getPrivateIP() { + return privateIP; + } - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + public Integer getBandwidthType() { + return bandwidthType; + } - public Integer getBandwidthType() { - return bandwidthType; - } + public void setBandwidthType(Integer bandwidthType) { + this.bandwidthType = bandwidthType; + } + + public Integer getBandwidth() { + return bandwidth; + } - public void setBandwidthType(Integer bandwidthType) { - this.bandwidthType = bandwidthType; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public List getIPSet() { + return ipSet; + } - public Integer getBandwidth() { - return bandwidth; - } + public void setIPSet(List ipSet) { + this.ipSet = ipSet; + } + + public Integer getVServerCount() { + return vServerCount; + } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } + public void setVServerCount(Integer vServerCount) { + this.vServerCount = vServerCount; + } + + public String getULBType() { + return ulbType; + } - public List getIPSet() { - return ipSet; - } + public void setULBType(String ulbType) { + this.ulbType = ulbType; + } + + public List getFirewallSet() { + return firewallSet; + } - public void setIPSet(List ipSet) { - this.ipSet = ipSet; - } + public void setFirewallSet(List firewallSet) { + this.firewallSet = firewallSet; + } + + public Integer getEnableLog() { + return enableLog; + } - public Integer getVServerCount() { - return vServerCount; - } + public void setEnableLog(Integer enableLog) { + this.enableLog = enableLog; + } + + public LoggerSet getLogSet() { + return logSet; + } - public void setVServerCount(Integer vServerCount) { - this.vServerCount = vServerCount; - } + public void setLogSet(LoggerSet logSet) { + this.logSet = logSet; + } + + public String getWAFMode() { + return wafMode; + } - public String getULBType() { - return ulbType; + public void setWAFMode(String wafMode) { + this.wafMode = wafMode; + } + } +} - public void setULBType(String ulbType) { - this.ulbType = ulbType; - } - public List getFirewallSet() { - return firewallSet; - } - public void setFirewallSet(List firewallSet) { - this.firewallSet = firewallSet; - } - public Integer getEnableLog() { - return enableLog; - } - public void setEnableLog(Integer enableLog) { - this.enableLog = enableLog; - } - public LoggerSet getLogSet() { - return logSet; - } - public void setLogSet(LoggerSet logSet) { - this.logSet = logSet; - } - public String getWAFMode() { - return wafMode; - } - public void setWAFMode(String wafMode) { - this.wafMode = wafMode; - } - } -} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerRequest.java index 4358ef8f..9de562da 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerRequest.java @@ -1,54 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeVServerRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 负载均衡实例的Id */ + + + + /** + * 负载均衡实例的Id + */ @UCloudParam("ULBId") private String ulbId; - - /** VServer实例的Id;若指定则返回指定的VServer实例的信息; 若不指定则返回当前负载均衡实例下所有VServer的信息 */ + + + + /** + * VServer实例的Id;若指定则返回指定的VServer实例的信息; 若不指定则返回当前负载均衡实例下所有VServer的信息 + */ @UCloudParam("VServerId") private String vServerId; - - /** 数据分页值 */ + + + + /** + * 数据分页值 + */ @UCloudParam("Limit") private Integer limit; - - /** 数据偏移量 */ + + + + /** + * 数据偏移量 + */ @UCloudParam("Offset") private Integer offset; - + + public String getRegion() { return region; } @@ -56,7 +83,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -64,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -72,7 +99,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getVServerId() { return vServerId; } @@ -80,7 +107,7 @@ public String getVServerId() { public void setVServerId(String vServerId) { this.vServerId = vServerId; } - + public Integer getLimit() { return limit; } @@ -88,7 +115,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -96,4 +123,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerResponse.java index cdb668c3..85cb0127 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeVServerResponse extends Response { - /** 满足条件的VServer总数 */ + + + /** + * 满足条件的VServer总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** VServer列表,每项参数详见 ULBVServerSet */ + + + + /** + * VServer列表,每项参数详见 ULBVServerSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,940 +57,1272 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - - public static class BindSecurityPolicy extends Response { - - /** 安全策略组ID */ - @SerializedName("SecurityPolicyId") - private String securityPolicyId; - - /** 安全策略组名称 */ - @SerializedName("SecurityPolicyName") - private String securityPolicyName; - - /** TLS最低版本 */ - @SerializedName("TLSVersion") - private String tlsVersion; - - /** 加密套件 */ - @SerializedName("SSLCiphers") - private List sslCiphers; - - /** 安全策略类型 0:预定义 1:自定义 */ - @SerializedName("SecurityPolicyType") - private Integer securityPolicyType; - - public String getSecurityPolicyId() { - return securityPolicyId; - } - - public void setSecurityPolicyId(String securityPolicyId) { - this.securityPolicyId = securityPolicyId; - } - - public String getSecurityPolicyName() { - return securityPolicyName; - } - - public void setSecurityPolicyName(String securityPolicyName) { - this.securityPolicyName = securityPolicyName; - } - - public String getTLSVersion() { - return tlsVersion; - } - - public void setTLSVersion(String tlsVersion) { - this.tlsVersion = tlsVersion; - } - - public List getSSLCiphers() { - return sslCiphers; - } - - public void setSSLCiphers(List sslCiphers) { - this.sslCiphers = sslCiphers; - } - - public Integer getSecurityPolicyType() { - return securityPolicyType; - } - - public void setSecurityPolicyType(Integer securityPolicyType) { - this.securityPolicyType = securityPolicyType; - } + + public static class BindSecurityPolicy extends Response { + + + /** + * 安全策略组ID + */ + @SerializedName("SecurityPolicyId") + private String securityPolicyId; + + + + /** + * 安全策略组名称 + */ + @SerializedName("SecurityPolicyName") + private String securityPolicyName; + + + + /** + * TLS最低版本 + */ + @SerializedName("TLSVersion") + private String tlsVersion; + + + + /** + * 加密套件 + */ + @SerializedName("SSLCiphers") + private List sslCiphers; + + + + /** + * 安全策略类型 0:预定义 1:自定义 + */ + @SerializedName("SecurityPolicyType") + private Integer securityPolicyType; + + + public String getSecurityPolicyId() { + return securityPolicyId; } - public static class PolicyBackendSet extends Response { - - /** 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关 */ - @SerializedName("BackendId") - private String backendId; - - /** - * 所添加的后端资源的类型,枚举值:UHost -> 云主机;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> - * 容器;UHybrid->混合云主机;CUBE->Cube;UNI -> 虚拟网卡 - */ - @SerializedName("ResourceType") - private String resourceType; - - /** 后端资源的实例名称 */ - @SerializedName("ResourceName") - private String resourceName; - - /** 如果资源绑定了弹性网卡,则展示弹性网卡的资源ID */ - @SerializedName("SubResourceId") - private String subResourceId; - - /** 如果资源绑定了弹性网卡,则展示弹性网卡的资源名称 */ - @SerializedName("SubResourceName") - private String subResourceName; - - /** "UNI"或者为空 */ - @SerializedName("SubResourceType") - private String subResourceType; - - /** 后端资源的对象ID */ - @SerializedName("ObjectId") - private String objectId; - - /** 所添加的后端资源服务端口 */ - @SerializedName("Port") - private Integer port; - - /** 后端资源的内网IP */ - @SerializedName("PrivateIP") - private String privateIP; - - public String getBackendId() { - return backendId; - } - - public void setBackendId(String backendId) { - this.backendId = backendId; - } - - public String getResourceType() { - return resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public String getResourceName() { - return resourceName; - } - - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } - - public String getSubResourceId() { - return subResourceId; - } - - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } - - public String getSubResourceName() { - return subResourceName; - } - - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } - - public String getSubResourceType() { - return subResourceType; - } - - public void setSubResourceType(String subResourceType) { - this.subResourceType = subResourceType; - } - - public String getObjectId() { - return objectId; - } - - public void setObjectId(String objectId) { - this.objectId = objectId; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public String getPrivateIP() { - return privateIP; - } - - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } + public void setSecurityPolicyId(String securityPolicyId) { + this.securityPolicyId = securityPolicyId; } - - public static class SSLBindedTargetSet extends Response { - - /** SSL证书绑定到的VServer的资源ID */ - @SerializedName("VServerId") - private String vServerId; - - /** 对应的VServer的名字 */ - @SerializedName("VServerName") - private String vServerName; - - /** VServer 所属的ULB实例的资源ID */ - @SerializedName("ULBId") - private String ulbId; - - /** ULB实例的名称 */ - @SerializedName("ULBName") - private String ulbName; - - public String getVServerId() { - return vServerId; - } - - public void setVServerId(String vServerId) { - this.vServerId = vServerId; - } - - public String getVServerName() { - return vServerName; - } - - public void setVServerName(String vServerName) { - this.vServerName = vServerName; - } - - public String getULBId() { - return ulbId; - } - - public void setULBId(String ulbId) { - this.ulbId = ulbId; - } - - public String getULBName() { - return ulbName; - } - - public void setULBName(String ulbName) { - this.ulbName = ulbName; - } + + public String getSecurityPolicyName() { + return securityPolicyName; } - public static class ULBBackendSet extends Response { - - /** 后端资源实例的Id */ - @SerializedName("BackendId") - private String backendId; - - /** 资源实例的类型 */ - @SerializedName("ResourceType") - private String resourceType; - - /** 资源实例的资源Id */ - @SerializedName("ResourceId") - private String resourceId; - - /** 资源实例的资源名称 */ - @SerializedName("ResourceName") - private String resourceName; - - /** 资源绑定的虚拟网卡实例的类型 */ - @SerializedName("SubResourceType") - private String subResourceType; - - /** 资源绑定的虚拟网卡实例的资源Id */ - @SerializedName("SubResourceId") - private String subResourceId; - - /** 资源绑定的虚拟网卡实例的资源名称 */ - @SerializedName("SubResourceName") - private String subResourceName; - - /** 后端提供服务的内网IP */ - @SerializedName("PrivateIP") - private String privateIP; - - /** 后端提供服务的端口 */ - @SerializedName("Port") - private Integer port; - - /** 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用 */ - @SerializedName("Enabled") - private Integer enabled; - - /** 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常 */ - @SerializedName("Status") - private Integer status; - - /** 后端提供服务的资源所在的子网的ID */ - @SerializedName("SubnetId") - private String subnetId; - - /** - * 是否为backup,只有当vserver的Backup属性为1时才会有此字段,说明: - * - *

0:主rs 1:备rs - */ - @SerializedName("IsBackup") - private Integer isBackup; - - /** 后端RS权重(在加权轮询算法下有效) */ - @SerializedName("Weight") - private Integer weight; - - /** 后端服务器所在的VPC */ - @SerializedName("VPCId") - private String vpcId; - - public String getBackendId() { - return backendId; - } - - public void setBackendId(String backendId) { - this.backendId = backendId; - } - - public String getResourceType() { - return resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public String getResourceId() { - return resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - public String getResourceName() { - return resourceName; - } - - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } - - public String getSubResourceType() { - return subResourceType; - } - - public void setSubResourceType(String subResourceType) { - this.subResourceType = subResourceType; - } - - public String getSubResourceId() { - return subResourceId; - } - - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } - - public String getSubResourceName() { - return subResourceName; - } - - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } - - public String getPrivateIP() { - return privateIP; - } - - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public Integer getEnabled() { - return enabled; - } - - public void setEnabled(Integer enabled) { - this.enabled = enabled; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public Integer getIsBackup() { - return isBackup; - } - - public void setIsBackup(Integer isBackup) { - this.isBackup = isBackup; - } - - public Integer getWeight() { - return weight; - } - - public void setWeight(Integer weight) { - this.weight = weight; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } + public void setSecurityPolicyName(String securityPolicyName) { + this.securityPolicyName = securityPolicyName; } - - public static class ULBPolicySet extends Response { - - /** 内容转发规则中域名的匹配方式。枚举值:Regular,正则;Wildcard,泛域名 */ - @SerializedName("DomainMatchMode") - private String domainMatchMode; - - /** 内容转发Id,默认内容转发类型下为空。 */ - @SerializedName("PolicyId") - private String policyId; - - /** 内容类型,枚举值:Custom -> 客户自定义;Default -> 默认内容转发 */ - @SerializedName("PolicyType") - private String policyType; - - /** 内容转发匹配字段的类型,枚举值:Domain -> 域名;Path -> 路径; 默认内容转发类型下为空 */ - @SerializedName("Type") - private String type; - - /** 内容转发匹配字段;默认内容转发类型下为空。 */ - @SerializedName("Match") - private String match; - - /** 内容转发优先级,范围[1,9999],数字越大优先级越高。默认内容转发规则下为0。 */ - @SerializedName("PolicyPriority") - private Integer policyPriority; - - /** 所属VServerId */ - @SerializedName("VServerId") - private String vServerId; - - /** 默认内容转发类型下返回当前rs总数 */ - @SerializedName("TotalCount") - private Integer totalCount; - - /** 内容转发下rs的详细信息,参考PolicyBackendSet */ - @SerializedName("BackendSet") - private List backendSet; - - public String getDomainMatchMode() { - return domainMatchMode; - } - - public void setDomainMatchMode(String domainMatchMode) { - this.domainMatchMode = domainMatchMode; - } - - public String getPolicyId() { - return policyId; - } - - public void setPolicyId(String policyId) { - this.policyId = policyId; - } - - public String getPolicyType() { - return policyType; - } - - public void setPolicyType(String policyType) { - this.policyType = policyType; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getMatch() { - return match; - } - - public void setMatch(String match) { - this.match = match; - } - - public Integer getPolicyPriority() { - return policyPriority; - } - - public void setPolicyPriority(Integer policyPriority) { - this.policyPriority = policyPriority; - } - - public String getVServerId() { - return vServerId; - } - - public void setVServerId(String vServerId) { - this.vServerId = vServerId; - } - - public Integer getTotalCount() { - return totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public List getBackendSet() { - return backendSet; - } - - public void setBackendSet(List backendSet) { - this.backendSet = backendSet; - } + + public String getTLSVersion() { + return tlsVersion; } - public static class ULBSSLSet extends Response { - - /** SSL证书的Id */ - @SerializedName("SSLId") - private String sslId; - - /** SSL证书的名字 */ - @SerializedName("SSLName") - private String sslName; - - /** SSL证书类型,暂时只有 Pem 一种类型 */ - @SerializedName("SSLType") - private String sslType; - - /** SSL证书的内容 */ - @SerializedName("SSLContent") - private String sslContent; - - /** SSL证书的创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** SSL证书的HASH值 */ - @SerializedName("HashValue") - private String hashValue; - - /** SSL证书绑定到的对象 */ - @SerializedName("BindedTargetSet") - private List bindedTargetSet; - - /** SSL证书来源,SSL证书来源,0代表证书来自于ULB平台,1代表证书来自于USSL平台 */ - @SerializedName("SSLSource") - private Integer sslSource; - - /** USSL证书平台的编号,只有当SSLSource为1时才出现 */ - @SerializedName("USSLId") - private String usslId; - - /** USSL证书平台的域名,只有当SSLSource为1时才出现 */ - @SerializedName("Domains") - private String domains; - - public String getSSLId() { - return sslId; - } - - public void setSSLId(String sslId) { - this.sslId = sslId; - } - - public String getSSLName() { - return sslName; - } - - public void setSSLName(String sslName) { - this.sslName = sslName; - } - - public String getSSLType() { - return sslType; - } - - public void setSSLType(String sslType) { - this.sslType = sslType; - } + public void setTLSVersion(String tlsVersion) { + this.tlsVersion = tlsVersion; + } + + public List getSSLCiphers() { + return sslCiphers; + } - public String getSSLContent() { - return sslContent; - } + public void setSSLCiphers(List sslCiphers) { + this.sslCiphers = sslCiphers; + } + + public Integer getSecurityPolicyType() { + return securityPolicyType; + } - public void setSSLContent(String sslContent) { - this.sslContent = sslContent; - } + public void setSecurityPolicyType(Integer securityPolicyType) { + this.securityPolicyType = securityPolicyType; + } + + } + public static class PolicyBackendSet extends Response { + + + /** + * 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关 + */ + @SerializedName("BackendId") + private String backendId; + + + + /** + * 所添加的后端资源的类型,枚举值:UHost -> 云主机;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器;UHybrid->混合云主机;CUBE->Cube;UNI -> 虚拟网卡 + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 后端资源的实例名称 + */ + @SerializedName("ResourceName") + private String resourceName; + + + + /** + * 如果资源绑定了弹性网卡,则展示弹性网卡的资源ID + */ + @SerializedName("SubResourceId") + private String subResourceId; + + + + /** + * 如果资源绑定了弹性网卡,则展示弹性网卡的资源名称 + */ + @SerializedName("SubResourceName") + private String subResourceName; + + + + /** + * "UNI"或者为空 + */ + @SerializedName("SubResourceType") + private String subResourceType; + + + + /** + * 后端资源的对象ID + */ + @SerializedName("ObjectId") + private String objectId; + + + + /** + * 所添加的后端资源服务端口 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * 后端资源的内网IP + */ + @SerializedName("PrivateIP") + private String privateIP; + + + public String getBackendId() { + return backendId; + } - public Integer getCreateTime() { - return createTime; - } + public void setBackendId(String backendId) { + this.backendId = backendId; + } + + public String getResourceType() { + return resourceType; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getResourceName() { + return resourceName; + } - public String getHashValue() { - return hashValue; - } + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getSubResourceId() { + return subResourceId; + } - public void setHashValue(String hashValue) { - this.hashValue = hashValue; - } + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public String getSubResourceName() { + return subResourceName; + } - public List getBindedTargetSet() { - return bindedTargetSet; - } + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getSubResourceType() { + return subResourceType; + } - public void setBindedTargetSet(List bindedTargetSet) { - this.bindedTargetSet = bindedTargetSet; - } + public void setSubResourceType(String subResourceType) { + this.subResourceType = subResourceType; + } + + public String getObjectId() { + return objectId; + } - public Integer getSSLSource() { - return sslSource; - } + public void setObjectId(String objectId) { + this.objectId = objectId; + } + + public Integer getPort() { + return port; + } - public void setSSLSource(Integer sslSource) { - this.sslSource = sslSource; - } + public void setPort(Integer port) { + this.port = port; + } + + public String getPrivateIP() { + return privateIP; + } - public String getUSSLId() { - return usslId; - } + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + } + public static class SSLBindedTargetSet extends Response { + + + /** + * SSL证书绑定到的VServer的资源ID + */ + @SerializedName("VServerId") + private String vServerId; + + + + /** + * 对应的VServer的名字 + */ + @SerializedName("VServerName") + private String vServerName; + + + + /** + * VServer 所属的ULB实例的资源ID + */ + @SerializedName("ULBId") + private String ulbId; + + + + /** + * ULB实例的名称 + */ + @SerializedName("ULBName") + private String ulbName; + + + public String getVServerId() { + return vServerId; + } - public void setUSSLId(String usslId) { - this.usslId = usslId; - } + public void setVServerId(String vServerId) { + this.vServerId = vServerId; + } + + public String getVServerName() { + return vServerName; + } - public String getDomains() { - return domains; - } + public void setVServerName(String vServerName) { + this.vServerName = vServerName; + } + + public String getULBId() { + return ulbId; + } - public void setDomains(String domains) { - this.domains = domains; - } + public void setULBId(String ulbId) { + this.ulbId = ulbId; + } + + public String getULBName() { + return ulbName; } - public static class ULBVServerSet extends Response { + public void setULBName(String ulbName) { + this.ulbName = ulbName; + } + + } + public static class ULBBackendSet extends Response { + + + /** + * 后端资源实例的Id + */ + @SerializedName("BackendId") + private String backendId; + + + + /** + * 资源实例的类型 + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 资源实例的资源Id + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 资源实例的资源名称 + */ + @SerializedName("ResourceName") + private String resourceName; + + + + /** + * 资源绑定的虚拟网卡实例的类型 + */ + @SerializedName("SubResourceType") + private String subResourceType; + + + + /** + * 资源绑定的虚拟网卡实例的资源Id + */ + @SerializedName("SubResourceId") + private String subResourceId; + + + + /** + * 资源绑定的虚拟网卡实例的资源名称 + */ + @SerializedName("SubResourceName") + private String subResourceName; + + + + /** + * 后端提供服务的内网IP + */ + @SerializedName("PrivateIP") + private String privateIP; + + + + /** + * 后端提供服务的端口 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用 + */ + @SerializedName("Enabled") + private Integer enabled; + + + + /** + * 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常 + */ + @SerializedName("Status") + private Integer status; + + + + /** + * 后端提供服务的资源所在的子网的ID + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * 是否为backup,只有当vserver的Backup属性为1时才会有此字段,说明: + +0:主rs +1:备rs + */ + @SerializedName("IsBackup") + private Integer isBackup; + + + + /** + * 后端RS权重(在加权轮询算法下有效) + */ + @SerializedName("Weight") + private Integer weight; + + + + /** + * 后端服务器所在的VPC + */ + @SerializedName("VPCId") + private String vpcId; + + + public String getBackendId() { + return backendId; + } - /** - * 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测, Customize -> UDP检查 - * - *

请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; - * 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize - */ - @SerializedName("MonitorType") - private String monitorType; + public void setBackendId(String backendId) { + this.backendId = backendId; + } + + public String getResourceType() { + return resourceType; + } - /** VServer会话保持方式。枚举值为: None -> 关闭会话保持; ServerInsert -> 自动生成; UserDefined -> 用户自定义。 */ - @SerializedName("PersistenceType") - private String persistenceType; + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getResourceId() { + return resourceId; + } - /** 负载均衡实例的Id */ - @SerializedName("ULBId") - private String ulbId; + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } - /** 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名 */ - @SerializedName("Domain") - private String domain; + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getSubResourceType() { + return subResourceType; + } - /** 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径 */ - @SerializedName("Path") - private String path; + public void setSubResourceType(String subResourceType) { + this.subResourceType = subResourceType; + } + + public String getSubResourceId() { + return subResourceId; + } - /** 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文 */ - @SerializedName("RequestMsg") - private String requestMsg; + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public String getSubResourceName() { + return subResourceName; + } - /** 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文 */ - @SerializedName("ResponseMsg") - private String responseMsg; + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getPrivateIP() { + return privateIP; + } - /** VServer实例的Id */ - @SerializedName("VServerId") - private String vServerId; + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + public Integer getPort() { + return port; + } - /** VServer实例的名字 */ - @SerializedName("VServerName") - private String vServerName; + public void setPort(Integer port) { + this.port = port; + } + + public Integer getEnabled() { + return enabled; + } - /** VServer实例的协议。 枚举值为:HTTP,TCP,UDP,HTTPS。 */ - @SerializedName("Protocol") - private String protocol; + public void setEnabled(Integer enabled) { + this.enabled = enabled; + } + + public Integer getStatus() { + return status; + } - /** VServer服务端口 */ - @SerializedName("FrontendPort") - private Integer frontendPort; + public void setStatus(Integer status) { + this.status = status; + } + + public String getSubnetId() { + return subnetId; + } - /** - * VServer负载均衡的模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> - * 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口)。 - */ - @SerializedName("Method") - private String method; + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public Integer getIsBackup() { + return isBackup; + } - /** 根据PersistenceType确定: None或ServerInsert,此字段为空; UserDefined,此字段展示用户自定义会话string。 */ - @SerializedName("PersistenceInfo") - private String persistenceInfo; + public void setIsBackup(Integer isBackup) { + this.isBackup = isBackup; + } + + public Integer getWeight() { + return weight; + } - /** 空闲连接的回收时间,单位:秒。 */ - @SerializedName("ClientTimeout") - private Integer clientTimeout; + public void setWeight(Integer weight) { + this.weight = weight; + } + + public String getVPCId() { + return vpcId; + } - /** VServer的运行状态。枚举值: 0 -> rs全部运行正常;1 -> rs全部运行异常;2 -> rs部分运行异常。 */ - @SerializedName("Status") - private Integer status; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + } + public static class ULBPolicySet extends Response { + + + /** + * 内容转发规则中域名的匹配方式。枚举值:Regular,正则;Wildcard,泛域名 + */ + @SerializedName("DomainMatchMode") + private String domainMatchMode; + + + + /** + * 内容转发Id,默认内容转发类型下为空。 + */ + @SerializedName("PolicyId") + private String policyId; + + + + /** + * 内容类型,枚举值:Custom -> 客户自定义;Default -> 默认内容转发 + */ + @SerializedName("PolicyType") + private String policyType; + + + + /** + * 内容转发匹配字段的类型,枚举值:Domain -> 域名;Path -> 路径; 默认内容转发类型下为空 + */ + @SerializedName("Type") + private String type; + + + + /** + * 内容转发匹配字段;默认内容转发类型下为空。 + */ + @SerializedName("Match") + private String match; + + + + /** + * 内容转发优先级,范围[1,9999],数字越大优先级越高。默认内容转发规则下为0。 + */ + @SerializedName("PolicyPriority") + private Integer policyPriority; + + + + /** + * 所属VServerId + */ + @SerializedName("VServerId") + private String vServerId; + + + + /** + * 默认内容转发类型下返回当前rs总数 + */ + @SerializedName("TotalCount") + private Integer totalCount; + + + + /** + * 内容转发下rs的详细信息,参考PolicyBackendSet + */ + @SerializedName("BackendSet") + private List backendSet; + + + public String getDomainMatchMode() { + return domainMatchMode; + } - /** VServer绑定的SSL证书信息,具体结构见下方 ULBSSLSet。 */ - @SerializedName("SSLSet") - private List sslSet; + public void setDomainMatchMode(String domainMatchMode) { + this.domainMatchMode = domainMatchMode; + } + + public String getPolicyId() { + return policyId; + } - /** 后端资源信息列表,具体结构见下方 ULBBackendSet */ - @SerializedName("BackendSet") - private List backendSet; + public void setPolicyId(String policyId) { + this.policyId = policyId; + } + + public String getPolicyType() { + return policyType; + } - /** 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发 */ - @SerializedName("ListenType") - private String listenType; + public void setPolicyType(String policyType) { + this.policyType = policyType; + } + + public String getType() { + return type; + } - /** 内容转发信息列表,具体结构见下方 ULBPolicySet */ - @SerializedName("PolicySet") - private List policySet; + public void setType(String type) { + this.type = type; + } + + public String getMatch() { + return match; + } - /** 数据压缩开关,0:关闭 1:开启 */ - @SerializedName("EnableCompression") - private Integer enableCompression; + public void setMatch(String match) { + this.match = match; + } + + public Integer getPolicyPriority() { + return policyPriority; + } - /** VServer绑定的安全策略,具体结构见BindSecurityPolicy */ - @SerializedName("SecurityPolicy") - private BindSecurityPolicy securityPolicy; + public void setPolicyPriority(Integer policyPriority) { + this.policyPriority = policyPriority; + } + + public String getVServerId() { + return vServerId; + } - /** 重定向端口,取值范围[0-65535];默认值为0,代表关闭;仅HTTP协议支持开启重定向功能 */ - @SerializedName("ForwardPort") - private Integer forwardPort; + public void setVServerId(String vServerId) { + this.vServerId = vServerId; + } + + public Integer getTotalCount() { + return totalCount; + } - /** 0:关闭 1:开启,用于开启http2功能;默认值为0 */ - @SerializedName("EnableHTTP2") - private Integer enableHTTP2; - - public String getMonitorType() { - return monitorType; - } + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getBackendSet() { + return backendSet; + } - public void setMonitorType(String monitorType) { - this.monitorType = monitorType; - } + public void setBackendSet(List backendSet) { + this.backendSet = backendSet; + } + + } + public static class ULBSSLSet extends Response { + + + /** + * SSL证书的Id + */ + @SerializedName("SSLId") + private String sslId; + + + + /** + * SSL证书的名字 + */ + @SerializedName("SSLName") + private String sslName; + + + + /** + * SSL证书类型,暂时只有 Pem 一种类型 + */ + @SerializedName("SSLType") + private String sslType; + + + + /** + * SSL证书的内容 + */ + @SerializedName("SSLContent") + private String sslContent; + + + + /** + * SSL证书的创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * SSL证书的HASH值 + */ + @SerializedName("HashValue") + private String hashValue; + + + + /** + * SSL证书绑定到的对象 + */ + @SerializedName("BindedTargetSet") + private List bindedTargetSet; + + + + /** + * SSL证书来源,SSL证书来源,0代表证书来自于ULB平台,1代表证书来自于USSL平台 + */ + @SerializedName("SSLSource") + private Integer sslSource; + + + + /** + * USSL证书平台的编号,只有当SSLSource为1时才出现 + */ + @SerializedName("USSLId") + private String usslId; + + + + /** + * USSL证书平台的域名,只有当SSLSource为1时才出现 + */ + @SerializedName("Domains") + private String domains; + + + + /** + * 证书颁发时间 + */ + @SerializedName("NotBefore") + private Integer notBefore; + + + + /** + * 证书过期时间 + */ + @SerializedName("NotAfter") + private Integer notAfter; + + + public String getSSLId() { + return sslId; + } - public String getPersistenceType() { - return persistenceType; - } + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public String getSSLName() { + return sslName; + } - public void setPersistenceType(String persistenceType) { - this.persistenceType = persistenceType; - } + public void setSSLName(String sslName) { + this.sslName = sslName; + } + + public String getSSLType() { + return sslType; + } - public String getULBId() { - return ulbId; - } + public void setSSLType(String sslType) { + this.sslType = sslType; + } + + public String getSSLContent() { + return sslContent; + } - public void setULBId(String ulbId) { - this.ulbId = ulbId; - } + public void setSSLContent(String sslContent) { + this.sslContent = sslContent; + } + + public Integer getCreateTime() { + return createTime; + } - public String getDomain() { - return domain; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getHashValue() { + return hashValue; + } - public void setDomain(String domain) { - this.domain = domain; - } + public void setHashValue(String hashValue) { + this.hashValue = hashValue; + } + + public List getBindedTargetSet() { + return bindedTargetSet; + } - public String getPath() { - return path; - } + public void setBindedTargetSet(List bindedTargetSet) { + this.bindedTargetSet = bindedTargetSet; + } + + public Integer getSSLSource() { + return sslSource; + } - public void setPath(String path) { - this.path = path; - } + public void setSSLSource(Integer sslSource) { + this.sslSource = sslSource; + } + + public String getUSSLId() { + return usslId; + } - public String getRequestMsg() { - return requestMsg; - } + public void setUSSLId(String usslId) { + this.usslId = usslId; + } + + public String getDomains() { + return domains; + } - public void setRequestMsg(String requestMsg) { - this.requestMsg = requestMsg; - } + public void setDomains(String domains) { + this.domains = domains; + } + + public Integer getNotBefore() { + return notBefore; + } - public String getResponseMsg() { - return responseMsg; - } + public void setNotBefore(Integer notBefore) { + this.notBefore = notBefore; + } + + public Integer getNotAfter() { + return notAfter; + } - public void setResponseMsg(String responseMsg) { - this.responseMsg = responseMsg; - } + public void setNotAfter(Integer notAfter) { + this.notAfter = notAfter; + } + + } + public static class ULBVServerSet extends Response { + + + /** + * 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测, Customize -> UDP检查 + +请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize + */ + @SerializedName("MonitorType") + private String monitorType; + + + + /** + * VServer会话保持方式。枚举值为: None -> 关闭会话保持; ServerInsert -> 自动生成; UserDefined -> 用户自定义。 + */ + @SerializedName("PersistenceType") + private String persistenceType; + + + + /** + * 负载均衡实例的Id + */ + @SerializedName("ULBId") + private String ulbId; + + + + /** + * 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名 + */ + @SerializedName("Domain") + private String domain; + + + + /** + * 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径 + */ + @SerializedName("Path") + private String path; + + + + /** + * 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文 + */ + @SerializedName("RequestMsg") + private String requestMsg; + + + + /** + * 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文 + */ + @SerializedName("ResponseMsg") + private String responseMsg; + + + + /** + * VServer实例的Id + */ + @SerializedName("VServerId") + private String vServerId; + + + + /** + * VServer实例的名字 + */ + @SerializedName("VServerName") + private String vServerName; + + + + /** + * VServer实例的协议。 枚举值为:HTTP,TCP,UDP,HTTPS。 + */ + @SerializedName("Protocol") + private String protocol; + + + + /** + * VServer服务端口 + */ + @SerializedName("FrontendPort") + private Integer frontendPort; + + + + /** + * VServer负载均衡的模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口)。 + */ + @SerializedName("Method") + private String method; + + + + /** + * 根据PersistenceType确定: None或ServerInsert,此字段为空; UserDefined,此字段展示用户自定义会话string。 + */ + @SerializedName("PersistenceInfo") + private String persistenceInfo; + + + + /** + * 空闲连接的回收时间,单位:秒。 + */ + @SerializedName("ClientTimeout") + private Integer clientTimeout; + + + + /** + * VServer的运行状态。枚举值: 0 -> rs全部运行正常;1 -> rs全部运行异常;2 -> rs部分运行异常。 + */ + @SerializedName("Status") + private Integer status; + + + + /** + * VServer绑定的SSL证书信息,具体结构见下方 ULBSSLSet。 + */ + @SerializedName("SSLSet") + private List sslSet; + + + + /** + * 后端资源信息列表,具体结构见下方 ULBBackendSet + */ + @SerializedName("BackendSet") + private List backendSet; + + + + /** + * 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发 + */ + @SerializedName("ListenType") + private String listenType; + + + + /** + * 内容转发信息列表,具体结构见下方 ULBPolicySet + */ + @SerializedName("PolicySet") + private List policySet; + + + + /** + * 数据压缩开关,0:关闭 1:开启 + */ + @SerializedName("EnableCompression") + private Integer enableCompression; + + + + /** + * VServer绑定的安全策略,具体结构见BindSecurityPolicy + */ + @SerializedName("SecurityPolicy") + private BindSecurityPolicy securityPolicy; + + + + /** + * 重定向端口,取值范围[0-65535];默认值为0,代表关闭;仅HTTP协议支持开启重定向功能 + */ + @SerializedName("ForwardPort") + private Integer forwardPort; + + + + /** + * 0:关闭 1:开启,用于开启http2功能;默认值为0 + */ + @SerializedName("EnableHTTP2") + private Integer enableHTTP2; + + + public String getMonitorType() { + return monitorType; + } - public String getVServerId() { - return vServerId; - } + public void setMonitorType(String monitorType) { + this.monitorType = monitorType; + } + + public String getPersistenceType() { + return persistenceType; + } - public void setVServerId(String vServerId) { - this.vServerId = vServerId; - } + public void setPersistenceType(String persistenceType) { + this.persistenceType = persistenceType; + } + + public String getULBId() { + return ulbId; + } - public String getVServerName() { - return vServerName; - } + public void setULBId(String ulbId) { + this.ulbId = ulbId; + } + + public String getDomain() { + return domain; + } - public void setVServerName(String vServerName) { - this.vServerName = vServerName; - } + public void setDomain(String domain) { + this.domain = domain; + } + + public String getPath() { + return path; + } - public String getProtocol() { - return protocol; - } + public void setPath(String path) { + this.path = path; + } + + public String getRequestMsg() { + return requestMsg; + } - public void setProtocol(String protocol) { - this.protocol = protocol; - } + public void setRequestMsg(String requestMsg) { + this.requestMsg = requestMsg; + } + + public String getResponseMsg() { + return responseMsg; + } - public Integer getFrontendPort() { - return frontendPort; - } + public void setResponseMsg(String responseMsg) { + this.responseMsg = responseMsg; + } + + public String getVServerId() { + return vServerId; + } - public void setFrontendPort(Integer frontendPort) { - this.frontendPort = frontendPort; - } + public void setVServerId(String vServerId) { + this.vServerId = vServerId; + } + + public String getVServerName() { + return vServerName; + } - public String getMethod() { - return method; - } + public void setVServerName(String vServerName) { + this.vServerName = vServerName; + } + + public String getProtocol() { + return protocol; + } - public void setMethod(String method) { - this.method = method; - } + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public Integer getFrontendPort() { + return frontendPort; + } - public String getPersistenceInfo() { - return persistenceInfo; - } + public void setFrontendPort(Integer frontendPort) { + this.frontendPort = frontendPort; + } + + public String getMethod() { + return method; + } - public void setPersistenceInfo(String persistenceInfo) { - this.persistenceInfo = persistenceInfo; - } + public void setMethod(String method) { + this.method = method; + } + + public String getPersistenceInfo() { + return persistenceInfo; + } - public Integer getClientTimeout() { - return clientTimeout; - } + public void setPersistenceInfo(String persistenceInfo) { + this.persistenceInfo = persistenceInfo; + } + + public Integer getClientTimeout() { + return clientTimeout; + } - public void setClientTimeout(Integer clientTimeout) { - this.clientTimeout = clientTimeout; - } + public void setClientTimeout(Integer clientTimeout) { + this.clientTimeout = clientTimeout; + } + + public Integer getStatus() { + return status; + } - public Integer getStatus() { - return status; - } + public void setStatus(Integer status) { + this.status = status; + } + + public List getSSLSet() { + return sslSet; + } - public void setStatus(Integer status) { - this.status = status; - } + public void setSSLSet(List sslSet) { + this.sslSet = sslSet; + } + + public List getBackendSet() { + return backendSet; + } - public List getSSLSet() { - return sslSet; - } + public void setBackendSet(List backendSet) { + this.backendSet = backendSet; + } + + public String getListenType() { + return listenType; + } - public void setSSLSet(List sslSet) { - this.sslSet = sslSet; - } + public void setListenType(String listenType) { + this.listenType = listenType; + } + + public List getPolicySet() { + return policySet; + } - public List getBackendSet() { - return backendSet; - } + public void setPolicySet(List policySet) { + this.policySet = policySet; + } + + public Integer getEnableCompression() { + return enableCompression; + } - public void setBackendSet(List backendSet) { - this.backendSet = backendSet; - } + public void setEnableCompression(Integer enableCompression) { + this.enableCompression = enableCompression; + } + + public BindSecurityPolicy getSecurityPolicy() { + return securityPolicy; + } - public String getListenType() { - return listenType; - } + public void setSecurityPolicy(BindSecurityPolicy securityPolicy) { + this.securityPolicy = securityPolicy; + } + + public Integer getForwardPort() { + return forwardPort; + } - public void setListenType(String listenType) { - this.listenType = listenType; - } + public void setForwardPort(Integer forwardPort) { + this.forwardPort = forwardPort; + } + + public Integer getEnableHTTP2() { + return enableHTTP2; + } - public List getPolicySet() { - return policySet; + public void setEnableHTTP2(Integer enableHTTP2) { + this.enableHTTP2 = enableHTTP2; + } + } +} - public void setPolicySet(List policySet) { - this.policySet = policySet; - } - public Integer getEnableCompression() { - return enableCompression; - } - public void setEnableCompression(Integer enableCompression) { - this.enableCompression = enableCompression; - } - public BindSecurityPolicy getSecurityPolicy() { - return securityPolicy; - } - public void setSecurityPolicy(BindSecurityPolicy securityPolicy) { - this.securityPolicy = securityPolicy; - } - public Integer getForwardPort() { - return forwardPort; - } - public void setForwardPort(Integer forwardPort) { - this.forwardPort = forwardPort; - } - public Integer getEnableHTTP2() { - return enableHTTP2; - } - public void setEnableHTTP2(Integer enableHTTP2) { - this.enableHTTP2 = enableHTTP2; - } - } -} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/ReleaseBackendRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/ReleaseBackendRequest.java index 7fe731e2..653581a0 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/ReleaseBackendRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/ReleaseBackendRequest.java @@ -1,45 +1,67 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ReleaseBackendRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 负载均衡实例的ID */ + + + + /** + * 负载均衡实例的ID + */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - - /** 后端资源实例的ID(ULB后端ID,非资源自身ID) */ + + + + /** + * 后端资源实例的ID(ULB后端ID,非资源自身ID) + */ @NotEmpty @UCloudParam("BackendId") private String backendId; - + + public String getRegion() { return region; } @@ -47,7 +69,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -55,7 +77,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -63,7 +85,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getBackendId() { return backendId; } @@ -71,4 +93,14 @@ public String getBackendId() { public void setBackendId(String backendId) { this.backendId = backendId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/ReleaseBackendResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/ReleaseBackendResponse.java index 308ea786..8aa4be52 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/ReleaseBackendResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/ReleaseBackendResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ReleaseBackendResponse extends Response {} +public class ReleaseBackendResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnBindSecurityPolicyRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnBindSecurityPolicyRequest.java index 579ed782..9d17c53f 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnBindSecurityPolicyRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnBindSecurityPolicyRequest.java @@ -1,43 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UnBindSecurityPolicyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 安全策略ID */ + + + + /** + * 安全策略ID + */ @NotEmpty @UCloudParam("SecurityPolicyId") private String securityPolicyId; - + + public String getRegion() { return region; } @@ -45,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -53,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSecurityPolicyId() { return securityPolicyId; } @@ -61,4 +76,14 @@ public String getSecurityPolicyId() { public void setSecurityPolicyId(String securityPolicyId) { this.securityPolicyId = securityPolicyId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnBindSecurityPolicyResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnBindSecurityPolicyResponse.java index d06ff4e7..f46f56ea 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnBindSecurityPolicyResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnBindSecurityPolicyResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UnBindSecurityPolicyResponse extends Response {} +public class UnBindSecurityPolicyResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnbindSSLRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnbindSSLRequest.java index 08d9c17c..e1711972 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnbindSSLRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnbindSSLRequest.java @@ -1,50 +1,76 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UnbindSSLRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 所绑定ULB实例ID */ + + + + /** + * 所绑定ULB实例ID + */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - - /** 所绑定VServer实例ID */ + + + + /** + * 所绑定VServer实例ID + */ @NotEmpty @UCloudParam("VServerId") private String vServerId; - - /** SSL证书的Id */ + + + + /** + * SSL证书的Id + */ @NotEmpty @UCloudParam("SSLId") private String sslId; - + + public String getRegion() { return region; } @@ -52,7 +78,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -60,7 +86,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -68,7 +94,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getVServerId() { return vServerId; } @@ -76,7 +102,7 @@ public String getVServerId() { public void setVServerId(String vServerId) { this.vServerId = vServerId; } - + public String getSSLId() { return sslId; } @@ -84,4 +110,14 @@ public String getSSLId() { public void setSSLId(String sslId) { this.sslId = sslId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnbindSSLResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnbindSSLResponse.java index c53479c6..d47c3cfa 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnbindSSLResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnbindSSLResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UnbindSSLResponse extends Response {} +public class UnbindSSLResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendAttributeRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendAttributeRequest.java index 1eb9ae32..42aef604 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendAttributeRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendAttributeRequest.java @@ -1,64 +1,102 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateBackendAttributeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 负载均衡资源ID */ + + + + /** + * 负载均衡资源ID + */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - - /** 后端资源实例的ID(ULB后端ID,非资源自身ID) */ + + + + /** + * 后端资源实例的ID(ULB后端ID,非资源自身ID) + */ @NotEmpty @UCloudParam("BackendId") private String backendId; - - /** 后端资源服务端口,取值范围[1-65535] */ + + + + /** + * 后端资源服务端口,取值范围[1-65535] + */ @UCloudParam("Port") private Integer port; - - /** 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1 */ + + + + /** + * 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1 + */ @UCloudParam("Weight") private Integer weight; - - /** 后端实例状态开关 */ + + + + /** + * 后端实例状态开关 + */ @UCloudParam("Enabled") private Integer enabled; - - /** 是否为backup 0:主rs 1:备rs 默认为0 */ + + + + /** + * 是否为backup +0:主rs +1:备rs +默认为0 + */ @UCloudParam("IsBackup") private Integer isBackup; - + + public String getRegion() { return region; } @@ -66,7 +104,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -74,7 +112,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -82,7 +120,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getBackendId() { return backendId; } @@ -90,7 +128,7 @@ public String getBackendId() { public void setBackendId(String backendId) { this.backendId = backendId; } - + public Integer getPort() { return port; } @@ -98,7 +136,7 @@ public Integer getPort() { public void setPort(Integer port) { this.port = port; } - + public Integer getWeight() { return weight; } @@ -106,7 +144,7 @@ public Integer getWeight() { public void setWeight(Integer weight) { this.weight = weight; } - + public Integer getEnabled() { return enabled; } @@ -114,7 +152,7 @@ public Integer getEnabled() { public void setEnabled(Integer enabled) { this.enabled = enabled; } - + public Integer getIsBackup() { return isBackup; } @@ -122,4 +160,14 @@ public Integer getIsBackup() { public void setIsBackup(Integer isBackup) { this.isBackup = isBackup; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendAttributeResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendAttributeResponse.java index 701e8dd1..6d4736a9 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendAttributeResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateBackendAttributeResponse extends Response {} +public class UpdateBackendAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdatePolicyRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdatePolicyRequest.java index 4fd3bafd..30049806 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdatePolicyRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdatePolicyRequest.java @@ -1,74 +1,116 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UpdatePolicyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 需要添加内容转发策略的负载均衡实例ID */ + + + + /** + * 需要添加内容转发策略的负载均衡实例ID + */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - - /** 需要添加内容转发策略的VServer实例ID,只支持请求代理模式下,HTTP或HTTPS协议的VServer */ + + + + /** + * 需要添加内容转发策略的VServer实例ID,只支持请求代理模式下,HTTP或HTTPS协议的VServer + */ @NotEmpty @UCloudParam("VServerId") private String vServerId; - - /** 内容转发匹配字段 */ + + + + /** + * 内容转发匹配字段 + */ @NotEmpty @UCloudParam("Match") private String match; - - /** 策略优先级,1-9999;只针对路径规则生效 */ + + + + /** + * 策略优先级,1-9999;只针对路径规则生效 + */ @UCloudParam("PolicyPriority") private Integer policyPriority; - - /** 内容转发规则中域名的匹配方式,默认与原本一致。枚举值:Regular,正则;Wildcard,泛域名 */ + + + + /** + * 内容转发规则中域名的匹配方式,默认与原本一致。枚举值:Regular,正则;Wildcard,泛域名 + */ @UCloudParam("DomainMatchMode") private String domainMatchMode; - - /** 转发规则的ID,当Type为Default时,可以不传或为空 */ + + + + /** + * 转发规则的ID,当Type为Default时,可以不传或为空 + */ @UCloudParam("PolicyId") private String policyId; - - /** 内容转发策略应用的后端资源实例的ID,来源于 AllocateBackend 返回的 BackendId,不传表示更新转发节点为空 */ + + + + /** + * 内容转发策略应用的后端资源实例的ID,来源于 AllocateBackend 返回的 BackendId,不传表示更新转发节点为空 + */ @UCloudParam("BackendId") private List backendId; - - /** 内容转发匹配字段的类型,枚举值:Domain -> 域名转发规则;Path -> 路径转发规则;Default -> 默认转发规则,不传默认值Domain */ + + + + /** + * 内容转发匹配字段的类型,枚举值:Domain -> 域名转发规则;Path -> 路径转发规则;Default -> 默认转发规则,不传默认值Domain + */ @UCloudParam("Type") private String type; - + + public String getRegion() { return region; } @@ -76,7 +118,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -84,7 +126,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -92,7 +134,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getVServerId() { return vServerId; } @@ -100,7 +142,7 @@ public String getVServerId() { public void setVServerId(String vServerId) { this.vServerId = vServerId; } - + public String getMatch() { return match; } @@ -108,7 +150,7 @@ public String getMatch() { public void setMatch(String match) { this.match = match; } - + public Integer getPolicyPriority() { return policyPriority; } @@ -116,7 +158,7 @@ public Integer getPolicyPriority() { public void setPolicyPriority(Integer policyPriority) { this.policyPriority = policyPriority; } - + public String getDomainMatchMode() { return domainMatchMode; } @@ -124,7 +166,7 @@ public String getDomainMatchMode() { public void setDomainMatchMode(String domainMatchMode) { this.domainMatchMode = domainMatchMode; } - + public String getPolicyId() { return policyId; } @@ -132,7 +174,7 @@ public String getPolicyId() { public void setPolicyId(String policyId) { this.policyId = policyId; } - + public List getBackendId() { return backendId; } @@ -140,7 +182,7 @@ public List getBackendId() { public void setBackendId(List backendId) { this.backendId = backendId; } - + public String getType() { return type; } @@ -148,4 +190,14 @@ public String getType() { public void setType(String type) { this.type = type; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdatePolicyResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdatePolicyResponse.java index e7176f14..5f6481de 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdatePolicyResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdatePolicyResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdatePolicyResponse extends Response {} +public class UpdatePolicyResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeRequest.java index 81e5eae5..d7334e76 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeRequest.java @@ -1,48 +1,67 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateSSLAttributeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** SSL的资源id */ + + + + /** + * SSL的资源id + */ @NotEmpty @UCloudParam("SSLId") private String sslId; - - /** SSL实例名称,不允许传空 */ + + + + /** + * SSL实例名称,不允许传空 + */ @NotEmpty @UCloudParam("SSLName") private String sslName; - + + public String getRegion() { return region; } @@ -50,7 +69,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -58,7 +77,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSSLId() { return sslId; } @@ -66,7 +85,7 @@ public String getSSLId() { public void setSSLId(String sslId) { this.sslId = sslId; } - + public String getSSLName() { return sslName; } @@ -74,4 +93,14 @@ public String getSSLName() { public void setSSLName(String sslName) { this.sslName = sslName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeResponse.java index 6823c8ee..9ecc9f28 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateSSLAttributeResponse extends Response {} +public class UpdateSSLAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSecurityPolicyRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSecurityPolicyRequest.java index 396c0c09..a1b3552c 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSecurityPolicyRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSecurityPolicyRequest.java @@ -1,56 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UpdateSecurityPolicyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 安全策略ID */ + + + + /** + * 安全策略ID + */ @NotEmpty @UCloudParam("SecurityPolicyId") private String securityPolicyId; - - /** 加密套件,TLS最低版本和加密套件必须全不为空或全为空 */ + + + + /** + * 加密套件,TLS最低版本和加密套件必须全不为空或全为空 + */ @UCloudParam("SSLCiphers") private List sslCiphers; - - /** TLS最低版本,TLS最低版本和加密套件必须全不为空或全为空 */ + + + + /** + * TLS最低版本,TLS最低版本和加密套件必须全不为空或全为空 + */ @UCloudParam("TLSVersion") private String tlsVersion; - - /** 安全策略名称 */ + + + + /** + * 安全策略名称 + */ @UCloudParam("SecurityPolicyName") private String securityPolicyName; - + + public String getRegion() { return region; } @@ -58,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSecurityPolicyId() { return securityPolicyId; } @@ -74,7 +100,7 @@ public String getSecurityPolicyId() { public void setSecurityPolicyId(String securityPolicyId) { this.securityPolicyId = securityPolicyId; } - + public List getSSLCiphers() { return sslCiphers; } @@ -82,7 +108,7 @@ public List getSSLCiphers() { public void setSSLCiphers(List sslCiphers) { this.sslCiphers = sslCiphers; } - + public String getTLSVersion() { return tlsVersion; } @@ -90,7 +116,7 @@ public String getTLSVersion() { public void setTLSVersion(String tlsVersion) { this.tlsVersion = tlsVersion; } - + public String getSecurityPolicyName() { return securityPolicyName; } @@ -98,4 +124,14 @@ public String getSecurityPolicyName() { public void setSecurityPolicyName(String securityPolicyName) { this.securityPolicyName = securityPolicyName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSecurityPolicyResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSecurityPolicyResponse.java index 9f9903ac..25d7c44f 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSecurityPolicyResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSecurityPolicyResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateSecurityPolicyResponse extends Response {} +public class UpdateSecurityPolicyResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateULBAttributeRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateULBAttributeRequest.java index 4c1c9fdc..b6887481 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateULBAttributeRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateULBAttributeRequest.java @@ -1,75 +1,122 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateULBAttributeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** ULB资源ID */ + + + + /** + * ULB资源ID + */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - - /** 名字,不传则默认不修改 */ + + + + /** + * 名字,不传则默认不修改 + */ @UCloudParam("Name") private String name; - - /** 业务,不传则默认不修改 */ + + + + /** + * 业务,不传则默认不修改 + */ @UCloudParam("Tag") private String tag; - - /** 备注,不传则默认不修改 */ + + + + /** + * 备注,不传则默认不修改 + */ @UCloudParam("Remark") private String remark; - - /** 日志开关,1代表开启日志,0代表关闭日志,传1时必须同时传BucketName,TokenName与TokenId二选一 */ + + + + /** + * 日志开关,1代表开启日志,0代表关闭日志,传1时必须同时传BucketName,TokenName与TokenId二选一 + */ @UCloudParam("EnableLog") private Integer enableLog; - - /** 设置用于存储ulb日志的bucket */ + + + + /** + * 设置用于存储ulb日志的bucket + */ @UCloudParam("BucketName") private String bucketName; - - /** 用于指定上传到bucket所需的token,与TokenId选填其一即可 */ + + + + /** + * 用于指定上传到bucket所需的token,与TokenId选填其一即可 + */ @UCloudParam("TokenName") private String tokenName; - - /** 用于指定上传到bucket所需的token,与TokenName选填其一即可 */ + + + + /** + * 用于指定上传到bucket所需的token,与TokenName选填其一即可 + */ @UCloudParam("TokenId") private String tokenId; - - /** 是否开启WAF。枚举类型:Yes,No,默认值为No */ + + + + /** + * 是否开启WAF。枚举类型:Yes,No,默认值为No + */ @UCloudParam("IsWAFOn") private String isWAFOn; - + + public String getRegion() { return region; } @@ -77,7 +124,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -85,7 +132,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -93,7 +140,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getName() { return name; } @@ -101,7 +148,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getTag() { return tag; } @@ -109,7 +156,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -117,7 +164,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public Integer getEnableLog() { return enableLog; } @@ -125,7 +172,7 @@ public Integer getEnableLog() { public void setEnableLog(Integer enableLog) { this.enableLog = enableLog; } - + public String getBucketName() { return bucketName; } @@ -133,7 +180,7 @@ public String getBucketName() { public void setBucketName(String bucketName) { this.bucketName = bucketName; } - + public String getTokenName() { return tokenName; } @@ -141,7 +188,7 @@ public String getTokenName() { public void setTokenName(String tokenName) { this.tokenName = tokenName; } - + public String getTokenId() { return tokenId; } @@ -149,7 +196,7 @@ public String getTokenId() { public void setTokenId(String tokenId) { this.tokenId = tokenId; } - + public String getIsWAFOn() { return isWAFOn; } @@ -157,4 +204,14 @@ public String getIsWAFOn() { public void setIsWAFOn(String isWAFOn) { this.isWAFOn = isWAFOn; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateULBAttributeResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateULBAttributeResponse.java index 4e805274..c1ae443d 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateULBAttributeResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateULBAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateULBAttributeResponse extends Response {} +public class UpdateULBAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateVServerAttributeRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateVServerAttributeRequest.java index c12ed1bc..b24b11e1 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateVServerAttributeRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateVServerAttributeRequest.java @@ -1,121 +1,184 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateVServerAttributeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 负载均衡实例ID */ + + + + /** + * 负载均衡实例ID + */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - - /** VServer实例ID */ + + + + /** + * VServer实例ID + */ @NotEmpty @UCloudParam("VServerId") private String vServerId; - - /** VServer实例名称,若无此字段则不做修改 */ + + + + /** + * VServer实例名称,若无此字段则不做修改 + */ @UCloudParam("VServerName") private String vServerName; - + + + /** - * VServer负载均衡模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> - * 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口); WeightRoundrobin -> 加权轮询; Leastconn -> - * 最小连接数;Backup -> 主备模式。 ConsistentHash,SourcePort,ConsistentHashPort - * 只在报文转发中使用;Leastconn只在请求代理中使用;Roundrobin、Source和WeightRoundrobin,Backup在请求代理和报文转发中使用。 - * 默认为:"Roundrobin" + * VServer负载均衡模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口); WeightRoundrobin -> 加权轮询; Leastconn -> 最小连接数;Backup -> 主备模式。 +ConsistentHash,SourcePort,ConsistentHashPort 只在报文转发中使用;Leastconn只在请求代理中使用;Roundrobin、Source和WeightRoundrobin,Backup在请求代理和报文转发中使用。 +默认为:"Roundrobin" */ @UCloudParam("Method") private String method; - - /** VServer会话保持模式,若无此字段则不做修改。枚举值:None:关闭;ServerInsert:自动生成KEY;UserDefined:用户自定义KEY。 */ + + + + /** + * VServer会话保持模式,若无此字段则不做修改。枚举值:None:关闭;ServerInsert:自动生成KEY;UserDefined:用户自定义KEY。 + */ @UCloudParam("PersistenceType") private String persistenceType; - + + + /** - * 根据PersistenceType确定: None或ServerInsert, 此字段无意义; UserDefined, 则此字段传入用户自定义会话保持String. - * 若无此字段则不做修改 + * 根据PersistenceType确定: None或ServerInsert, 此字段无意义; UserDefined, 则此字段传入用户自定义会话保持String. 若无此字段则不做修改 */ @UCloudParam("PersistenceInfo") private String persistenceInfo; - + + + /** - * 请求代理的VServer下表示空闲连接的回收时间,单位:秒,取值范围:时(0,86400],默认值为60;报文转发的VServer下表示回话保持的时间,单位:秒,取值范围:[60,900],0 - * 表示禁用连接保持 + * 请求代理的VServer下表示空闲连接的回收时间,单位:秒,取值范围:时(0,86400],默认值为60;报文转发的VServer下表示回话保持的时间,单位:秒,取值范围:[60,900],0 表示禁用连接保持 */ @UCloudParam("ClientTimeout") private Integer clientTimeout; - + + + /** * 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测,Customize -> UDP检查 - * - *

请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; - * 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize,默认值为Ping + +请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; +报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize,默认值为Ping */ @UCloudParam("MonitorType") private String monitorType; - - /** MonitorType 为 Path 时指定健康检查发送请求时HTTP HEADER 里的域名 */ + + + + /** + * MonitorType 为 Path 时指定健康检查发送请求时HTTP HEADER 里的域名 + */ @UCloudParam("Domain") private String domain; - - /** MonitorType 为 Path 时指定健康检查发送请求时的路径,默认为 / */ + + + + /** + * MonitorType 为 Path 时指定健康检查发送请求时的路径,默认为 / + */ @UCloudParam("Path") private String path; - - /** 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文 */ + + + + /** + * 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文 + */ @UCloudParam("RequestMsg") private String requestMsg; - - /** 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文 */ + + + + /** + * 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文 + */ @UCloudParam("ResponseMsg") private String responseMsg; - - /** 安全策略组ID */ + + + + /** + * 安全策略组ID + */ @UCloudParam("SecurityPolicyId") private String securityPolicyId; - - /** 0:关闭 1:开启,用于数据压缩功能 */ + + + + /** + * 0:关闭 1:开启,用于数据压缩功能 + */ @UCloudParam("EnableCompression") private Integer enableCompression; - - /** 重定向端口,取值范围[0-65535];默认值为0,代表关闭;仅HTTP协议支持开启重定向功能 */ + + + + /** + * 重定向端口,取值范围[0-65535];默认值为0,代表关闭;仅HTTP协议支持开启重定向功能 + */ @UCloudParam("ForwardPort") private Integer forwardPort; - - /** 0:关闭 1:开启,用于开启http2功能;默认值为0 */ + + + + /** + * 0:关闭 1:开启,用于开启http2功能;默认值为0 + */ @UCloudParam("EnableHTTP2") private Integer enableHTTP2; - + + public String getRegion() { return region; } @@ -123,7 +186,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -131,7 +194,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getULBId() { return ulbId; } @@ -139,7 +202,7 @@ public String getULBId() { public void setULBId(String ulbId) { this.ulbId = ulbId; } - + public String getVServerId() { return vServerId; } @@ -147,7 +210,7 @@ public String getVServerId() { public void setVServerId(String vServerId) { this.vServerId = vServerId; } - + public String getVServerName() { return vServerName; } @@ -155,7 +218,7 @@ public String getVServerName() { public void setVServerName(String vServerName) { this.vServerName = vServerName; } - + public String getMethod() { return method; } @@ -163,7 +226,7 @@ public String getMethod() { public void setMethod(String method) { this.method = method; } - + public String getPersistenceType() { return persistenceType; } @@ -171,7 +234,7 @@ public String getPersistenceType() { public void setPersistenceType(String persistenceType) { this.persistenceType = persistenceType; } - + public String getPersistenceInfo() { return persistenceInfo; } @@ -179,7 +242,7 @@ public String getPersistenceInfo() { public void setPersistenceInfo(String persistenceInfo) { this.persistenceInfo = persistenceInfo; } - + public Integer getClientTimeout() { return clientTimeout; } @@ -187,7 +250,7 @@ public Integer getClientTimeout() { public void setClientTimeout(Integer clientTimeout) { this.clientTimeout = clientTimeout; } - + public String getMonitorType() { return monitorType; } @@ -195,7 +258,7 @@ public String getMonitorType() { public void setMonitorType(String monitorType) { this.monitorType = monitorType; } - + public String getDomain() { return domain; } @@ -203,7 +266,7 @@ public String getDomain() { public void setDomain(String domain) { this.domain = domain; } - + public String getPath() { return path; } @@ -211,7 +274,7 @@ public String getPath() { public void setPath(String path) { this.path = path; } - + public String getRequestMsg() { return requestMsg; } @@ -219,7 +282,7 @@ public String getRequestMsg() { public void setRequestMsg(String requestMsg) { this.requestMsg = requestMsg; } - + public String getResponseMsg() { return responseMsg; } @@ -227,7 +290,7 @@ public String getResponseMsg() { public void setResponseMsg(String responseMsg) { this.responseMsg = responseMsg; } - + public String getSecurityPolicyId() { return securityPolicyId; } @@ -235,7 +298,7 @@ public String getSecurityPolicyId() { public void setSecurityPolicyId(String securityPolicyId) { this.securityPolicyId = securityPolicyId; } - + public Integer getEnableCompression() { return enableCompression; } @@ -243,7 +306,7 @@ public Integer getEnableCompression() { public void setEnableCompression(Integer enableCompression) { this.enableCompression = enableCompression; } - + public Integer getForwardPort() { return forwardPort; } @@ -251,7 +314,7 @@ public Integer getForwardPort() { public void setForwardPort(Integer forwardPort) { this.forwardPort = forwardPort; } - + public Integer getEnableHTTP2() { return enableHTTP2; } @@ -259,4 +322,14 @@ public Integer getEnableHTTP2() { public void setEnableHTTP2(Integer enableHTTP2) { this.enableHTTP2 = enableHTTP2; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateVServerAttributeResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateVServerAttributeResponse.java index e67a340e..ba85013b 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateVServerAttributeResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateVServerAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.ulb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateVServerAttributeResponse extends Response {} +public class UpdateVServerAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index dab1a3d4..6567278a 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-umem - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClient.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClient.java index e841c8f0..9eb5627e 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClient.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.umem.client; @@ -17,653 +19,936 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.umem.models.CheckUDredisSpaceAllowanceRequest; import cn.ucloud.umem.models.CheckUDredisSpaceAllowanceResponse; + + + import cn.ucloud.umem.models.CheckURedisAllowanceRequest; import cn.ucloud.umem.models.CheckURedisAllowanceResponse; + + + import cn.ucloud.umem.models.CreateUMemBackupRequest; import cn.ucloud.umem.models.CreateUMemBackupResponse; + + + import cn.ucloud.umem.models.CreateUMemSpaceRequest; import cn.ucloud.umem.models.CreateUMemSpaceResponse; + + + import cn.ucloud.umem.models.CreateUMemcacheGroupRequest; import cn.ucloud.umem.models.CreateUMemcacheGroupResponse; + + + import cn.ucloud.umem.models.CreateURedisBackupRequest; import cn.ucloud.umem.models.CreateURedisBackupResponse; + + + import cn.ucloud.umem.models.CreateURedisGroupRequest; import cn.ucloud.umem.models.CreateURedisGroupResponse; + + + import cn.ucloud.umem.models.DeleteUMemSpaceRequest; import cn.ucloud.umem.models.DeleteUMemSpaceResponse; + + + import cn.ucloud.umem.models.DeleteUMemcacheGroupRequest; import cn.ucloud.umem.models.DeleteUMemcacheGroupResponse; + + + import cn.ucloud.umem.models.DeleteURedisGroupRequest; import cn.ucloud.umem.models.DeleteURedisGroupResponse; + + + import cn.ucloud.umem.models.DescribeUDRedisProxyInfoRequest; import cn.ucloud.umem.models.DescribeUDRedisProxyInfoResponse; + + + import cn.ucloud.umem.models.DescribeUDRedisSlowlogRequest; import cn.ucloud.umem.models.DescribeUDRedisSlowlogResponse; + + + +import cn.ucloud.umem.models.DescribeUMemRequest; +import cn.ucloud.umem.models.DescribeUMemResponse; + + + import cn.ucloud.umem.models.DescribeUMemBackupRequest; import cn.ucloud.umem.models.DescribeUMemBackupResponse; + + + import cn.ucloud.umem.models.DescribeUMemBackupURLRequest; import cn.ucloud.umem.models.DescribeUMemBackupURLResponse; + + + import cn.ucloud.umem.models.DescribeUMemBlockInfoRequest; import cn.ucloud.umem.models.DescribeUMemBlockInfoResponse; + + + import cn.ucloud.umem.models.DescribeUMemPriceRequest; import cn.ucloud.umem.models.DescribeUMemPriceResponse; -import cn.ucloud.umem.models.DescribeUMemRequest; -import cn.ucloud.umem.models.DescribeUMemResponse; + + + import cn.ucloud.umem.models.DescribeUMemSpaceRequest; import cn.ucloud.umem.models.DescribeUMemSpaceResponse; + + + import cn.ucloud.umem.models.DescribeUMemUpgradePriceRequest; import cn.ucloud.umem.models.DescribeUMemUpgradePriceResponse; + + + import cn.ucloud.umem.models.DescribeUMemcacheGroupRequest; import cn.ucloud.umem.models.DescribeUMemcacheGroupResponse; + + + import cn.ucloud.umem.models.DescribeUMemcachePriceRequest; import cn.ucloud.umem.models.DescribeUMemcachePriceResponse; + + + import cn.ucloud.umem.models.DescribeUMemcacheUpgradePriceRequest; import cn.ucloud.umem.models.DescribeUMemcacheUpgradePriceResponse; + + + import cn.ucloud.umem.models.DescribeURedisBackupRequest; import cn.ucloud.umem.models.DescribeURedisBackupResponse; + + + import cn.ucloud.umem.models.DescribeURedisBackupURLRequest; import cn.ucloud.umem.models.DescribeURedisBackupURLResponse; + + + import cn.ucloud.umem.models.DescribeURedisConfigRequest; import cn.ucloud.umem.models.DescribeURedisConfigResponse; + + + import cn.ucloud.umem.models.DescribeURedisGroupRequest; import cn.ucloud.umem.models.DescribeURedisGroupResponse; + + + import cn.ucloud.umem.models.DescribeURedisPriceRequest; import cn.ucloud.umem.models.DescribeURedisPriceResponse; + + + import cn.ucloud.umem.models.DescribeURedisSlowlogRequest; import cn.ucloud.umem.models.DescribeURedisSlowlogResponse; + + + import cn.ucloud.umem.models.DescribeURedisUpgradePriceRequest; import cn.ucloud.umem.models.DescribeURedisUpgradePriceResponse; + + + import cn.ucloud.umem.models.DescribeURedisVersionRequest; import cn.ucloud.umem.models.DescribeURedisVersionResponse; + + + import cn.ucloud.umem.models.FlushallURedisGroupRequest; import cn.ucloud.umem.models.FlushallURedisGroupResponse; + + + import cn.ucloud.umem.models.GetUMemSpaceStateRequest; import cn.ucloud.umem.models.GetUMemSpaceStateResponse; + + + import cn.ucloud.umem.models.ISolationURedisGroupRequest; import cn.ucloud.umem.models.ISolationURedisGroupResponse; + + + import cn.ucloud.umem.models.ModifyUMemSpaceNameRequest; import cn.ucloud.umem.models.ModifyUMemSpaceNameResponse; + + + import cn.ucloud.umem.models.ModifyURedisConfigRequest; import cn.ucloud.umem.models.ModifyURedisConfigResponse; + + + import cn.ucloud.umem.models.ModifyURedisGroupNameRequest; import cn.ucloud.umem.models.ModifyURedisGroupNameResponse; + + + import cn.ucloud.umem.models.ModifyURedisGroupPasswordRequest; import cn.ucloud.umem.models.ModifyURedisGroupPasswordResponse; + + + import cn.ucloud.umem.models.RemoveUDRedisDataRequest; import cn.ucloud.umem.models.RemoveUDRedisDataResponse; + + + import cn.ucloud.umem.models.ResizeUMemSpaceRequest; import cn.ucloud.umem.models.ResizeUMemSpaceResponse; + + + import cn.ucloud.umem.models.ResizeURedisGroupRequest; import cn.ucloud.umem.models.ResizeURedisGroupResponse; + + + import cn.ucloud.umem.models.RestartUMemcacheGroupRequest; import cn.ucloud.umem.models.RestartUMemcacheGroupResponse; + + + import cn.ucloud.umem.models.RestartURedisGroupRequest; import cn.ucloud.umem.models.RestartURedisGroupResponse; + + + import cn.ucloud.umem.models.UpdateURedisBackupStrategyRequest; import cn.ucloud.umem.models.UpdateURedisBackupStrategyResponse; + + + import cn.ucloud.umem.models.UpdateURedisRewriteTimeRequest; import cn.ucloud.umem.models.UpdateURedisRewriteTimeResponse; -/** This client is used to call actions of **UMem** service */ +/** + * This client is used to call actions of **UMem** service + */ public class UMemClient extends DefaultClient implements UMemClientInterface { public UMemClient(Config config, Credential credential) { super(config, credential); } - - /** - * CheckUDredisSpaceAllowance - 检查高性能UMem剩余资源 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CheckUDredisSpaceAllowanceResponse checkUDredisSpaceAllowance( - CheckUDredisSpaceAllowanceRequest request) throws UCloudException { - request.setAction("CheckUDredisSpaceAllowance"); - return (CheckUDredisSpaceAllowanceResponse) - this.invoke(request, CheckUDredisSpaceAllowanceResponse.class); - } - - /** - * CheckURedisAllowance - 检查URedis资源是否足够 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CheckURedisAllowanceResponse checkURedisAllowance(CheckURedisAllowanceRequest request) - throws UCloudException { - request.setAction("CheckURedisAllowance"); - return (CheckURedisAllowanceResponse) - this.invoke(request, CheckURedisAllowanceResponse.class); - } - - /** - * CreateUMemBackup - 创建分布式redis备份 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUMemBackupResponse createUMemBackup(CreateUMemBackupRequest request) - throws UCloudException { - request.setAction("CreateUMemBackup"); - return (CreateUMemBackupResponse) this.invoke(request, CreateUMemBackupResponse.class); - } - - /** - * CreateUMemSpace - 创建内存空间 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUMemSpaceResponse createUMemSpace(CreateUMemSpaceRequest request) - throws UCloudException { - request.setAction("CreateUMemSpace"); - return (CreateUMemSpaceResponse) this.invoke(request, CreateUMemSpaceResponse.class); - } - - /** - * CreateUMemcacheGroup - 创建单机Memcache - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUMemcacheGroupResponse createUMemcacheGroup(CreateUMemcacheGroupRequest request) - throws UCloudException { - request.setAction("CreateUMemcacheGroup"); - return (CreateUMemcacheGroupResponse) - this.invoke(request, CreateUMemcacheGroupResponse.class); - } - - /** - * CreateURedisBackup - 创建主备Redis备份 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateURedisBackupResponse createURedisBackup(CreateURedisBackupRequest request) - throws UCloudException { - request.setAction("CreateURedisBackup"); - return (CreateURedisBackupResponse) this.invoke(request, CreateURedisBackupResponse.class); - } - - /** - * CreateURedisGroup - 创建主备redis - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateURedisGroupResponse createURedisGroup(CreateURedisGroupRequest request) - throws UCloudException { - request.setAction("CreateURedisGroup"); - return (CreateURedisGroupResponse) this.invoke(request, CreateURedisGroupResponse.class); - } - - /** - * DeleteUMemSpace - 删除空间 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUMemSpaceResponse deleteUMemSpace(DeleteUMemSpaceRequest request) - throws UCloudException { - request.setAction("DeleteUMemSpace"); - return (DeleteUMemSpaceResponse) this.invoke(request, DeleteUMemSpaceResponse.class); - } - - /** - * DeleteUMemcacheGroup - 删除单机Memcache - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUMemcacheGroupResponse deleteUMemcacheGroup(DeleteUMemcacheGroupRequest request) - throws UCloudException { - request.setAction("DeleteUMemcacheGroup"); - return (DeleteUMemcacheGroupResponse) - this.invoke(request, DeleteUMemcacheGroupResponse.class); - } - - /** - * DeleteURedisGroup - 删除主备redis - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteURedisGroupResponse deleteURedisGroup(DeleteURedisGroupRequest request) - throws UCloudException { - request.setAction("DeleteURedisGroup"); - return (DeleteURedisGroupResponse) this.invoke(request, DeleteURedisGroupResponse.class); - } - - /** - * DescribeUDRedisProxyInfo - 拉取udredis代理信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDRedisProxyInfoResponse describeUDRedisProxyInfo( - DescribeUDRedisProxyInfoRequest request) throws UCloudException { - request.setAction("DescribeUDRedisProxyInfo"); - return (DescribeUDRedisProxyInfoResponse) - this.invoke(request, DescribeUDRedisProxyInfoResponse.class); - } - - /** - * DescribeUDRedisSlowlog - 查询UDRedis慢日志 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUDRedisSlowlogResponse describeUDRedisSlowlog( - DescribeUDRedisSlowlogRequest request) throws UCloudException { - request.setAction("DescribeUDRedisSlowlog"); - return (DescribeUDRedisSlowlogResponse) - this.invoke(request, DescribeUDRedisSlowlogResponse.class); - } - - /** - * DescribeUMem - 获取UMem列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUMemResponse describeUMem(DescribeUMemRequest request) throws UCloudException { - request.setAction("DescribeUMem"); - return (DescribeUMemResponse) this.invoke(request, DescribeUMemResponse.class); - } - - /** - * DescribeUMemBackup - 查询分布式redis备份 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUMemBackupResponse describeUMemBackup(DescribeUMemBackupRequest request) - throws UCloudException { - request.setAction("DescribeUMemBackup"); - return (DescribeUMemBackupResponse) this.invoke(request, DescribeUMemBackupResponse.class); - } - - /** - * DescribeUMemBackupURL - 获取分布式redis 备份下载链接 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUMemBackupURLResponse describeUMemBackupURL(DescribeUMemBackupURLRequest request) - throws UCloudException { - request.setAction("DescribeUMemBackupURL"); - return (DescribeUMemBackupURLResponse) - this.invoke(request, DescribeUMemBackupURLResponse.class); - } - - /** - * DescribeUMemBlockInfo - 拉取UDRedis分片信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUMemBlockInfoResponse describeUMemBlockInfo(DescribeUMemBlockInfoRequest request) - throws UCloudException { - request.setAction("DescribeUMemBlockInfo"); - return (DescribeUMemBlockInfoResponse) - this.invoke(request, DescribeUMemBlockInfoResponse.class); - } - - /** - * DescribeUMemPrice - 获取价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUMemPriceResponse describeUMemPrice(DescribeUMemPriceRequest request) - throws UCloudException { - request.setAction("DescribeUMemPrice"); - return (DescribeUMemPriceResponse) this.invoke(request, DescribeUMemPriceResponse.class); - } - - /** - * DescribeUMemSpace - 查询空间 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUMemSpaceResponse describeUMemSpace(DescribeUMemSpaceRequest request) - throws UCloudException { - request.setAction("DescribeUMemSpace"); - return (DescribeUMemSpaceResponse) this.invoke(request, DescribeUMemSpaceResponse.class); - } - - /** - * DescribeUMemUpgradePrice - 获取升级价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUMemUpgradePriceResponse describeUMemUpgradePrice( - DescribeUMemUpgradePriceRequest request) throws UCloudException { - request.setAction("DescribeUMemUpgradePrice"); - return (DescribeUMemUpgradePriceResponse) - this.invoke(request, DescribeUMemUpgradePriceResponse.class); - } - - /** - * DescribeUMemcacheGroup - 显示Memcache - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUMemcacheGroupResponse describeUMemcacheGroup( - DescribeUMemcacheGroupRequest request) throws UCloudException { - request.setAction("DescribeUMemcacheGroup"); - return (DescribeUMemcacheGroupResponse) - this.invoke(request, DescribeUMemcacheGroupResponse.class); - } - - /** - * DescribeUMemcachePrice - 获取umemcache组价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUMemcachePriceResponse describeUMemcachePrice( - DescribeUMemcachePriceRequest request) throws UCloudException { - request.setAction("DescribeUMemcachePrice"); - return (DescribeUMemcachePriceResponse) - this.invoke(request, DescribeUMemcachePriceResponse.class); - } - - /** - * DescribeUMemcacheUpgradePrice - 获取umemcache升级价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUMemcacheUpgradePriceResponse describeUMemcacheUpgradePrice( - DescribeUMemcacheUpgradePriceRequest request) throws UCloudException { - request.setAction("DescribeUMemcacheUpgradePrice"); - return (DescribeUMemcacheUpgradePriceResponse) - this.invoke(request, DescribeUMemcacheUpgradePriceResponse.class); - } - - /** - * DescribeURedisBackup - 查询主备redis备份 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeURedisBackupResponse describeURedisBackup(DescribeURedisBackupRequest request) - throws UCloudException { - request.setAction("DescribeURedisBackup"); - return (DescribeURedisBackupResponse) - this.invoke(request, DescribeURedisBackupResponse.class); - } - - /** - * DescribeURedisBackupURL - 获取主备Redis备份下载链接 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeURedisBackupURLResponse describeURedisBackupURL( - DescribeURedisBackupURLRequest request) throws UCloudException { - request.setAction("DescribeURedisBackupURL"); - return (DescribeURedisBackupURLResponse) - this.invoke(request, DescribeURedisBackupURLResponse.class); - } - - /** - * DescribeURedisConfig - 查询主备Redis所有配置文件 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeURedisConfigResponse describeURedisConfig(DescribeURedisConfigRequest request) - throws UCloudException { - request.setAction("DescribeURedisConfig"); - return (DescribeURedisConfigResponse) - this.invoke(request, DescribeURedisConfigResponse.class); - } - - /** - * DescribeURedisGroup - 查询主备Redis - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeURedisGroupResponse describeURedisGroup(DescribeURedisGroupRequest request) - throws UCloudException { - request.setAction("DescribeURedisGroup"); - return (DescribeURedisGroupResponse) - this.invoke(request, DescribeURedisGroupResponse.class); - } - - /** - * DescribeURedisPrice - 取uredis价格信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeURedisPriceResponse describeURedisPrice(DescribeURedisPriceRequest request) - throws UCloudException { - request.setAction("DescribeURedisPrice"); - return (DescribeURedisPriceResponse) - this.invoke(request, DescribeURedisPriceResponse.class); - } - - /** - * DescribeURedisSlowlog - 查询URedis慢日志 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeURedisSlowlogResponse describeURedisSlowlog(DescribeURedisSlowlogRequest request) - throws UCloudException { - request.setAction("DescribeURedisSlowlog"); - return (DescribeURedisSlowlogResponse) - this.invoke(request, DescribeURedisSlowlogResponse.class); - } - - /** - * DescribeURedisUpgradePrice - 获取uredis升级价格信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeURedisUpgradePriceResponse describeURedisUpgradePrice( - DescribeURedisUpgradePriceRequest request) throws UCloudException { - request.setAction("DescribeURedisUpgradePrice"); - return (DescribeURedisUpgradePriceResponse) - this.invoke(request, DescribeURedisUpgradePriceResponse.class); - } - - /** - * DescribeURedisVersion - 获取主Redis可用版本 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeURedisVersionResponse describeURedisVersion(DescribeURedisVersionRequest request) - throws UCloudException { - request.setAction("DescribeURedisVersion"); - return (DescribeURedisVersionResponse) - this.invoke(request, DescribeURedisVersionResponse.class); - } - - /** - * FlushallURedisGroup - 清除主备redis数据 - * - * @param request Request object - * @throws UCloudException Exception - */ - public FlushallURedisGroupResponse flushallURedisGroup(FlushallURedisGroupRequest request) - throws UCloudException { - request.setAction("FlushallURedisGroup"); - return (FlushallURedisGroupResponse) - this.invoke(request, FlushallURedisGroupResponse.class); - } - - /** - * GetUMemSpaceState - 获取空间状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUMemSpaceStateResponse getUMemSpaceState(GetUMemSpaceStateRequest request) - throws UCloudException { - request.setAction("GetUMemSpaceState"); - return (GetUMemSpaceStateResponse) this.invoke(request, GetUMemSpaceStateResponse.class); - } - - /** - * ISolationURedisGroup - 打开/关闭URedis - * - * @param request Request object - * @throws UCloudException Exception - */ - public ISolationURedisGroupResponse iSolationURedisGroup(ISolationURedisGroupRequest request) - throws UCloudException { - request.setAction("ISolationURedisGroup"); - return (ISolationURedisGroupResponse) - this.invoke(request, ISolationURedisGroupResponse.class); - } - - /** - * ModifyUMemSpaceName - 修改名称 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUMemSpaceNameResponse modifyUMemSpaceName(ModifyUMemSpaceNameRequest request) - throws UCloudException { - request.setAction("ModifyUMemSpaceName"); - return (ModifyUMemSpaceNameResponse) - this.invoke(request, ModifyUMemSpaceNameResponse.class); - } - - /** - * ModifyURedisConfig - 修改主备Redis配置文件参数 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyURedisConfigResponse modifyURedisConfig(ModifyURedisConfigRequest request) - throws UCloudException { - request.setAction("ModifyURedisConfig"); - return (ModifyURedisConfigResponse) this.invoke(request, ModifyURedisConfigResponse.class); - } - - /** - * ModifyURedisGroupName - 修改名称 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyURedisGroupNameResponse modifyURedisGroupName(ModifyURedisGroupNameRequest request) - throws UCloudException { - request.setAction("ModifyURedisGroupName"); - return (ModifyURedisGroupNameResponse) - this.invoke(request, ModifyURedisGroupNameResponse.class); - } - - /** - * ModifyURedisGroupPassword - 修改主备密码 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyURedisGroupPasswordResponse modifyURedisGroupPassword( - ModifyURedisGroupPasswordRequest request) throws UCloudException { - request.setAction("ModifyURedisGroupPassword"); - return (ModifyURedisGroupPasswordResponse) - this.invoke(request, ModifyURedisGroupPasswordResponse.class); - } - - /** - * RemoveUDRedisData - 清除udredis实例数据 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RemoveUDRedisDataResponse removeUDRedisData(RemoveUDRedisDataRequest request) - throws UCloudException { - request.setAction("RemoveUDRedisData"); - return (RemoveUDRedisDataResponse) this.invoke(request, RemoveUDRedisDataResponse.class); - } - - /** - * ResizeUMemSpace - 调整容量 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ResizeUMemSpaceResponse resizeUMemSpace(ResizeUMemSpaceRequest request) - throws UCloudException { - request.setAction("ResizeUMemSpace"); - return (ResizeUMemSpaceResponse) this.invoke(request, ResizeUMemSpaceResponse.class); - } - - /** - * ResizeURedisGroup - 调整容量 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ResizeURedisGroupResponse resizeURedisGroup(ResizeURedisGroupRequest request) - throws UCloudException { - request.setAction("ResizeURedisGroup"); - return (ResizeURedisGroupResponse) this.invoke(request, ResizeURedisGroupResponse.class); - } - - /** - * RestartUMemcacheGroup - 重启单机Memcache - * - * @param request Request object - * @throws UCloudException Exception - */ - public RestartUMemcacheGroupResponse restartUMemcacheGroup(RestartUMemcacheGroupRequest request) - throws UCloudException { - request.setAction("RestartUMemcacheGroup"); - return (RestartUMemcacheGroupResponse) - this.invoke(request, RestartUMemcacheGroupResponse.class); - } - - /** - * RestartURedisGroup - 重启主备实例 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RestartURedisGroupResponse restartURedisGroup(RestartURedisGroupRequest request) - throws UCloudException { - request.setAction("RestartURedisGroup"); - return (RestartURedisGroupResponse) this.invoke(request, RestartURedisGroupResponse.class); - } - - /** - * UpdateURedisBackupStrategy - 更改主备Redis备份策略 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateURedisBackupStrategyResponse updateURedisBackupStrategy( - UpdateURedisBackupStrategyRequest request) throws UCloudException { - request.setAction("UpdateURedisBackupStrategy"); - return (UpdateURedisBackupStrategyResponse) - this.invoke(request, UpdateURedisBackupStrategyResponse.class); - } - - /** - * UpdateURedisRewriteTime - 修改主备redis重写时间 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateURedisRewriteTimeResponse updateURedisRewriteTime( - UpdateURedisRewriteTimeRequest request) throws UCloudException { - request.setAction("UpdateURedisRewriteTime"); - return (UpdateURedisRewriteTimeResponse) - this.invoke(request, UpdateURedisRewriteTimeResponse.class); - } + + + + + + + /** + * CheckUDredisSpaceAllowance - 检查高性能UMem剩余资源 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckUDredisSpaceAllowanceResponse checkUDredisSpaceAllowance(CheckUDredisSpaceAllowanceRequest request) throws UCloudException { + request.setAction("CheckUDredisSpaceAllowance"); + return (CheckUDredisSpaceAllowanceResponse) this.invoke(request, CheckUDredisSpaceAllowanceResponse.class); + } + + + + + + + /** + * CheckURedisAllowance - 检查URedis资源是否足够 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckURedisAllowanceResponse checkURedisAllowance(CheckURedisAllowanceRequest request) throws UCloudException { + request.setAction("CheckURedisAllowance"); + return (CheckURedisAllowanceResponse) this.invoke(request, CheckURedisAllowanceResponse.class); + } + + + + + + + /** + * CreateUMemBackup - 创建分布式redis备份 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUMemBackupResponse createUMemBackup(CreateUMemBackupRequest request) throws UCloudException { + request.setAction("CreateUMemBackup"); + return (CreateUMemBackupResponse) this.invoke(request, CreateUMemBackupResponse.class); + } + + + + + + + /** + * CreateUMemSpace - 创建内存空间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUMemSpaceResponse createUMemSpace(CreateUMemSpaceRequest request) throws UCloudException { + request.setAction("CreateUMemSpace"); + return (CreateUMemSpaceResponse) this.invoke(request, CreateUMemSpaceResponse.class); + } + + + + + + + /** + * CreateUMemcacheGroup - 创建单机Memcache + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUMemcacheGroupResponse createUMemcacheGroup(CreateUMemcacheGroupRequest request) throws UCloudException { + request.setAction("CreateUMemcacheGroup"); + return (CreateUMemcacheGroupResponse) this.invoke(request, CreateUMemcacheGroupResponse.class); + } + + + + + + + /** + * CreateURedisBackup - 创建主备Redis备份 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateURedisBackupResponse createURedisBackup(CreateURedisBackupRequest request) throws UCloudException { + request.setAction("CreateURedisBackup"); + return (CreateURedisBackupResponse) this.invoke(request, CreateURedisBackupResponse.class); + } + + + + + + + /** + * CreateURedisGroup - 创建主备redis + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateURedisGroupResponse createURedisGroup(CreateURedisGroupRequest request) throws UCloudException { + request.setAction("CreateURedisGroup"); + return (CreateURedisGroupResponse) this.invoke(request, CreateURedisGroupResponse.class); + } + + + + + + + /** + * DeleteUMemSpace - 删除空间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUMemSpaceResponse deleteUMemSpace(DeleteUMemSpaceRequest request) throws UCloudException { + request.setAction("DeleteUMemSpace"); + return (DeleteUMemSpaceResponse) this.invoke(request, DeleteUMemSpaceResponse.class); + } + + + + + + + /** + * DeleteUMemcacheGroup - 删除单机Memcache + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUMemcacheGroupResponse deleteUMemcacheGroup(DeleteUMemcacheGroupRequest request) throws UCloudException { + request.setAction("DeleteUMemcacheGroup"); + return (DeleteUMemcacheGroupResponse) this.invoke(request, DeleteUMemcacheGroupResponse.class); + } + + + + + + + /** + * DeleteURedisGroup - 删除主备redis + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteURedisGroupResponse deleteURedisGroup(DeleteURedisGroupRequest request) throws UCloudException { + request.setAction("DeleteURedisGroup"); + return (DeleteURedisGroupResponse) this.invoke(request, DeleteURedisGroupResponse.class); + } + + + + + + + /** + * DescribeUDRedisProxyInfo - 拉取udredis代理信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDRedisProxyInfoResponse describeUDRedisProxyInfo(DescribeUDRedisProxyInfoRequest request) throws UCloudException { + request.setAction("DescribeUDRedisProxyInfo"); + return (DescribeUDRedisProxyInfoResponse) this.invoke(request, DescribeUDRedisProxyInfoResponse.class); + } + + + + + + + /** + * DescribeUDRedisSlowlog - 查询UDRedis慢日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDRedisSlowlogResponse describeUDRedisSlowlog(DescribeUDRedisSlowlogRequest request) throws UCloudException { + request.setAction("DescribeUDRedisSlowlog"); + return (DescribeUDRedisSlowlogResponse) this.invoke(request, DescribeUDRedisSlowlogResponse.class); + } + + + + + + + /** + * DescribeUMem - 获取UMem列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUMemResponse describeUMem(DescribeUMemRequest request) throws UCloudException { + request.setAction("DescribeUMem"); + return (DescribeUMemResponse) this.invoke(request, DescribeUMemResponse.class); + } + + + + + + + /** + * DescribeUMemBackup - 查询分布式redis备份 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUMemBackupResponse describeUMemBackup(DescribeUMemBackupRequest request) throws UCloudException { + request.setAction("DescribeUMemBackup"); + return (DescribeUMemBackupResponse) this.invoke(request, DescribeUMemBackupResponse.class); + } + + + + + + + /** + * DescribeUMemBackupURL - 获取分布式redis 备份下载链接 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUMemBackupURLResponse describeUMemBackupURL(DescribeUMemBackupURLRequest request) throws UCloudException { + request.setAction("DescribeUMemBackupURL"); + return (DescribeUMemBackupURLResponse) this.invoke(request, DescribeUMemBackupURLResponse.class); + } + + + + + + + /** + * DescribeUMemBlockInfo - 拉取UDRedis分片信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUMemBlockInfoResponse describeUMemBlockInfo(DescribeUMemBlockInfoRequest request) throws UCloudException { + request.setAction("DescribeUMemBlockInfo"); + return (DescribeUMemBlockInfoResponse) this.invoke(request, DescribeUMemBlockInfoResponse.class); + } + + + + + + + /** + * DescribeUMemPrice - 获取价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUMemPriceResponse describeUMemPrice(DescribeUMemPriceRequest request) throws UCloudException { + request.setAction("DescribeUMemPrice"); + return (DescribeUMemPriceResponse) this.invoke(request, DescribeUMemPriceResponse.class); + } + + + + + + + /** + * DescribeUMemSpace - 查询空间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUMemSpaceResponse describeUMemSpace(DescribeUMemSpaceRequest request) throws UCloudException { + request.setAction("DescribeUMemSpace"); + return (DescribeUMemSpaceResponse) this.invoke(request, DescribeUMemSpaceResponse.class); + } + + + + + + + /** + * DescribeUMemUpgradePrice - 获取升级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUMemUpgradePriceResponse describeUMemUpgradePrice(DescribeUMemUpgradePriceRequest request) throws UCloudException { + request.setAction("DescribeUMemUpgradePrice"); + return (DescribeUMemUpgradePriceResponse) this.invoke(request, DescribeUMemUpgradePriceResponse.class); + } + + + + + + + /** + * DescribeUMemcacheGroup - 显示Memcache + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUMemcacheGroupResponse describeUMemcacheGroup(DescribeUMemcacheGroupRequest request) throws UCloudException { + request.setAction("DescribeUMemcacheGroup"); + return (DescribeUMemcacheGroupResponse) this.invoke(request, DescribeUMemcacheGroupResponse.class); + } + + + + + + + /** + * DescribeUMemcachePrice - 获取umemcache组价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUMemcachePriceResponse describeUMemcachePrice(DescribeUMemcachePriceRequest request) throws UCloudException { + request.setAction("DescribeUMemcachePrice"); + return (DescribeUMemcachePriceResponse) this.invoke(request, DescribeUMemcachePriceResponse.class); + } + + + + + + + /** + * DescribeUMemcacheUpgradePrice - 获取umemcache升级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUMemcacheUpgradePriceResponse describeUMemcacheUpgradePrice(DescribeUMemcacheUpgradePriceRequest request) throws UCloudException { + request.setAction("DescribeUMemcacheUpgradePrice"); + return (DescribeUMemcacheUpgradePriceResponse) this.invoke(request, DescribeUMemcacheUpgradePriceResponse.class); + } + + + + + + + /** + * DescribeURedisBackup - 查询主备redis备份 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeURedisBackupResponse describeURedisBackup(DescribeURedisBackupRequest request) throws UCloudException { + request.setAction("DescribeURedisBackup"); + return (DescribeURedisBackupResponse) this.invoke(request, DescribeURedisBackupResponse.class); + } + + + + + + + /** + * DescribeURedisBackupURL - 获取主备Redis备份下载链接 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeURedisBackupURLResponse describeURedisBackupURL(DescribeURedisBackupURLRequest request) throws UCloudException { + request.setAction("DescribeURedisBackupURL"); + return (DescribeURedisBackupURLResponse) this.invoke(request, DescribeURedisBackupURLResponse.class); + } + + + + + + + /** + * DescribeURedisConfig - 查询主备Redis所有配置文件 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeURedisConfigResponse describeURedisConfig(DescribeURedisConfigRequest request) throws UCloudException { + request.setAction("DescribeURedisConfig"); + return (DescribeURedisConfigResponse) this.invoke(request, DescribeURedisConfigResponse.class); + } + + + + + + + /** + * DescribeURedisGroup - 查询主备Redis + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeURedisGroupResponse describeURedisGroup(DescribeURedisGroupRequest request) throws UCloudException { + request.setAction("DescribeURedisGroup"); + return (DescribeURedisGroupResponse) this.invoke(request, DescribeURedisGroupResponse.class); + } + + + + + + + /** + * DescribeURedisPrice - 取uredis价格信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeURedisPriceResponse describeURedisPrice(DescribeURedisPriceRequest request) throws UCloudException { + request.setAction("DescribeURedisPrice"); + return (DescribeURedisPriceResponse) this.invoke(request, DescribeURedisPriceResponse.class); + } + + + + + + + /** + * DescribeURedisSlowlog - 查询URedis慢日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeURedisSlowlogResponse describeURedisSlowlog(DescribeURedisSlowlogRequest request) throws UCloudException { + request.setAction("DescribeURedisSlowlog"); + return (DescribeURedisSlowlogResponse) this.invoke(request, DescribeURedisSlowlogResponse.class); + } + + + + + + + /** + * DescribeURedisUpgradePrice - 获取uredis升级价格信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeURedisUpgradePriceResponse describeURedisUpgradePrice(DescribeURedisUpgradePriceRequest request) throws UCloudException { + request.setAction("DescribeURedisUpgradePrice"); + return (DescribeURedisUpgradePriceResponse) this.invoke(request, DescribeURedisUpgradePriceResponse.class); + } + + + + + + + /** + * DescribeURedisVersion - 获取主Redis可用版本 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeURedisVersionResponse describeURedisVersion(DescribeURedisVersionRequest request) throws UCloudException { + request.setAction("DescribeURedisVersion"); + return (DescribeURedisVersionResponse) this.invoke(request, DescribeURedisVersionResponse.class); + } + + + + + + + /** + * FlushallURedisGroup - 清除主备redis数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public FlushallURedisGroupResponse flushallURedisGroup(FlushallURedisGroupRequest request) throws UCloudException { + request.setAction("FlushallURedisGroup"); + return (FlushallURedisGroupResponse) this.invoke(request, FlushallURedisGroupResponse.class); + } + + + + + + + /** + * GetUMemSpaceState - 获取空间状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUMemSpaceStateResponse getUMemSpaceState(GetUMemSpaceStateRequest request) throws UCloudException { + request.setAction("GetUMemSpaceState"); + return (GetUMemSpaceStateResponse) this.invoke(request, GetUMemSpaceStateResponse.class); + } + + + + + + + /** + * ISolationURedisGroup - 打开/关闭URedis + * + * @param request Request object + * @throws UCloudException Exception + */ + public ISolationURedisGroupResponse iSolationURedisGroup(ISolationURedisGroupRequest request) throws UCloudException { + request.setAction("ISolationURedisGroup"); + return (ISolationURedisGroupResponse) this.invoke(request, ISolationURedisGroupResponse.class); + } + + + + + + + /** + * ModifyUMemSpaceName - 修改名称 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUMemSpaceNameResponse modifyUMemSpaceName(ModifyUMemSpaceNameRequest request) throws UCloudException { + request.setAction("ModifyUMemSpaceName"); + return (ModifyUMemSpaceNameResponse) this.invoke(request, ModifyUMemSpaceNameResponse.class); + } + + + + + + + /** + * ModifyURedisConfig - 修改主备Redis配置文件参数 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyURedisConfigResponse modifyURedisConfig(ModifyURedisConfigRequest request) throws UCloudException { + request.setAction("ModifyURedisConfig"); + return (ModifyURedisConfigResponse) this.invoke(request, ModifyURedisConfigResponse.class); + } + + + + + + + /** + * ModifyURedisGroupName - 修改名称 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyURedisGroupNameResponse modifyURedisGroupName(ModifyURedisGroupNameRequest request) throws UCloudException { + request.setAction("ModifyURedisGroupName"); + return (ModifyURedisGroupNameResponse) this.invoke(request, ModifyURedisGroupNameResponse.class); + } + + + + + + + /** + * ModifyURedisGroupPassword - 修改主备密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyURedisGroupPasswordResponse modifyURedisGroupPassword(ModifyURedisGroupPasswordRequest request) throws UCloudException { + request.setAction("ModifyURedisGroupPassword"); + return (ModifyURedisGroupPasswordResponse) this.invoke(request, ModifyURedisGroupPasswordResponse.class); + } + + + + + + + /** + * RemoveUDRedisData - 清除udredis实例数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RemoveUDRedisDataResponse removeUDRedisData(RemoveUDRedisDataRequest request) throws UCloudException { + request.setAction("RemoveUDRedisData"); + return (RemoveUDRedisDataResponse) this.invoke(request, RemoveUDRedisDataResponse.class); + } + + + + + + + /** + * ResizeUMemSpace - 调整容量 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResizeUMemSpaceResponse resizeUMemSpace(ResizeUMemSpaceRequest request) throws UCloudException { + request.setAction("ResizeUMemSpace"); + return (ResizeUMemSpaceResponse) this.invoke(request, ResizeUMemSpaceResponse.class); + } + + + + + + + /** + * ResizeURedisGroup - 调整容量 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResizeURedisGroupResponse resizeURedisGroup(ResizeURedisGroupRequest request) throws UCloudException { + request.setAction("ResizeURedisGroup"); + return (ResizeURedisGroupResponse) this.invoke(request, ResizeURedisGroupResponse.class); + } + + + + + + + /** + * RestartUMemcacheGroup - 重启单机Memcache + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestartUMemcacheGroupResponse restartUMemcacheGroup(RestartUMemcacheGroupRequest request) throws UCloudException { + request.setAction("RestartUMemcacheGroup"); + return (RestartUMemcacheGroupResponse) this.invoke(request, RestartUMemcacheGroupResponse.class); + } + + + + + + + /** + * RestartURedisGroup - 重启主备实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestartURedisGroupResponse restartURedisGroup(RestartURedisGroupRequest request) throws UCloudException { + request.setAction("RestartURedisGroup"); + return (RestartURedisGroupResponse) this.invoke(request, RestartURedisGroupResponse.class); + } + + + + + + + /** + * UpdateURedisBackupStrategy - 更改主备Redis备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateURedisBackupStrategyResponse updateURedisBackupStrategy(UpdateURedisBackupStrategyRequest request) throws UCloudException { + request.setAction("UpdateURedisBackupStrategy"); + return (UpdateURedisBackupStrategyResponse) this.invoke(request, UpdateURedisBackupStrategyResponse.class); + } + + + + + + + /** + * UpdateURedisRewriteTime - 修改主备redis重写时间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateURedisRewriteTimeResponse updateURedisRewriteTime(UpdateURedisRewriteTimeRequest request) throws UCloudException { + request.setAction("UpdateURedisRewriteTime"); + return (UpdateURedisRewriteTimeResponse) this.invoke(request, UpdateURedisRewriteTimeResponse.class); + } } diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClientInterface.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClientInterface.java index e1202a17..64b9e67e 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClientInterface.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClientInterface.java @@ -1,220 +1,409 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.umem.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.umem.models.CheckUDredisSpaceAllowanceRequest; import cn.ucloud.umem.models.CheckUDredisSpaceAllowanceResponse; + + + import cn.ucloud.umem.models.CheckURedisAllowanceRequest; import cn.ucloud.umem.models.CheckURedisAllowanceResponse; + + + import cn.ucloud.umem.models.CreateUMemBackupRequest; import cn.ucloud.umem.models.CreateUMemBackupResponse; + + + import cn.ucloud.umem.models.CreateUMemSpaceRequest; import cn.ucloud.umem.models.CreateUMemSpaceResponse; + + + import cn.ucloud.umem.models.CreateUMemcacheGroupRequest; import cn.ucloud.umem.models.CreateUMemcacheGroupResponse; + + + import cn.ucloud.umem.models.CreateURedisBackupRequest; import cn.ucloud.umem.models.CreateURedisBackupResponse; + + + import cn.ucloud.umem.models.CreateURedisGroupRequest; import cn.ucloud.umem.models.CreateURedisGroupResponse; + + + import cn.ucloud.umem.models.DeleteUMemSpaceRequest; import cn.ucloud.umem.models.DeleteUMemSpaceResponse; + + + import cn.ucloud.umem.models.DeleteUMemcacheGroupRequest; import cn.ucloud.umem.models.DeleteUMemcacheGroupResponse; + + + import cn.ucloud.umem.models.DeleteURedisGroupRequest; import cn.ucloud.umem.models.DeleteURedisGroupResponse; + + + import cn.ucloud.umem.models.DescribeUDRedisProxyInfoRequest; import cn.ucloud.umem.models.DescribeUDRedisProxyInfoResponse; + + + import cn.ucloud.umem.models.DescribeUDRedisSlowlogRequest; import cn.ucloud.umem.models.DescribeUDRedisSlowlogResponse; + + + +import cn.ucloud.umem.models.DescribeUMemRequest; +import cn.ucloud.umem.models.DescribeUMemResponse; + + + import cn.ucloud.umem.models.DescribeUMemBackupRequest; import cn.ucloud.umem.models.DescribeUMemBackupResponse; + + + import cn.ucloud.umem.models.DescribeUMemBackupURLRequest; import cn.ucloud.umem.models.DescribeUMemBackupURLResponse; + + + import cn.ucloud.umem.models.DescribeUMemBlockInfoRequest; import cn.ucloud.umem.models.DescribeUMemBlockInfoResponse; + + + import cn.ucloud.umem.models.DescribeUMemPriceRequest; import cn.ucloud.umem.models.DescribeUMemPriceResponse; -import cn.ucloud.umem.models.DescribeUMemRequest; -import cn.ucloud.umem.models.DescribeUMemResponse; + + + import cn.ucloud.umem.models.DescribeUMemSpaceRequest; import cn.ucloud.umem.models.DescribeUMemSpaceResponse; + + + import cn.ucloud.umem.models.DescribeUMemUpgradePriceRequest; import cn.ucloud.umem.models.DescribeUMemUpgradePriceResponse; + + + import cn.ucloud.umem.models.DescribeUMemcacheGroupRequest; import cn.ucloud.umem.models.DescribeUMemcacheGroupResponse; + + + import cn.ucloud.umem.models.DescribeUMemcachePriceRequest; import cn.ucloud.umem.models.DescribeUMemcachePriceResponse; + + + import cn.ucloud.umem.models.DescribeUMemcacheUpgradePriceRequest; import cn.ucloud.umem.models.DescribeUMemcacheUpgradePriceResponse; + + + import cn.ucloud.umem.models.DescribeURedisBackupRequest; import cn.ucloud.umem.models.DescribeURedisBackupResponse; + + + import cn.ucloud.umem.models.DescribeURedisBackupURLRequest; import cn.ucloud.umem.models.DescribeURedisBackupURLResponse; + + + import cn.ucloud.umem.models.DescribeURedisConfigRequest; import cn.ucloud.umem.models.DescribeURedisConfigResponse; + + + import cn.ucloud.umem.models.DescribeURedisGroupRequest; import cn.ucloud.umem.models.DescribeURedisGroupResponse; + + + import cn.ucloud.umem.models.DescribeURedisPriceRequest; import cn.ucloud.umem.models.DescribeURedisPriceResponse; + + + import cn.ucloud.umem.models.DescribeURedisSlowlogRequest; import cn.ucloud.umem.models.DescribeURedisSlowlogResponse; + + + import cn.ucloud.umem.models.DescribeURedisUpgradePriceRequest; import cn.ucloud.umem.models.DescribeURedisUpgradePriceResponse; + + + import cn.ucloud.umem.models.DescribeURedisVersionRequest; import cn.ucloud.umem.models.DescribeURedisVersionResponse; + + + import cn.ucloud.umem.models.FlushallURedisGroupRequest; import cn.ucloud.umem.models.FlushallURedisGroupResponse; + + + import cn.ucloud.umem.models.GetUMemSpaceStateRequest; import cn.ucloud.umem.models.GetUMemSpaceStateResponse; + + + import cn.ucloud.umem.models.ISolationURedisGroupRequest; import cn.ucloud.umem.models.ISolationURedisGroupResponse; + + + import cn.ucloud.umem.models.ModifyUMemSpaceNameRequest; import cn.ucloud.umem.models.ModifyUMemSpaceNameResponse; + + + import cn.ucloud.umem.models.ModifyURedisConfigRequest; import cn.ucloud.umem.models.ModifyURedisConfigResponse; + + + import cn.ucloud.umem.models.ModifyURedisGroupNameRequest; import cn.ucloud.umem.models.ModifyURedisGroupNameResponse; + + + import cn.ucloud.umem.models.ModifyURedisGroupPasswordRequest; import cn.ucloud.umem.models.ModifyURedisGroupPasswordResponse; + + + import cn.ucloud.umem.models.RemoveUDRedisDataRequest; import cn.ucloud.umem.models.RemoveUDRedisDataResponse; + + + import cn.ucloud.umem.models.ResizeUMemSpaceRequest; import cn.ucloud.umem.models.ResizeUMemSpaceResponse; + + + import cn.ucloud.umem.models.ResizeURedisGroupRequest; import cn.ucloud.umem.models.ResizeURedisGroupResponse; + + + import cn.ucloud.umem.models.RestartUMemcacheGroupRequest; import cn.ucloud.umem.models.RestartUMemcacheGroupResponse; + + + import cn.ucloud.umem.models.RestartURedisGroupRequest; import cn.ucloud.umem.models.RestartURedisGroupResponse; + + + import cn.ucloud.umem.models.UpdateURedisBackupStrategyRequest; import cn.ucloud.umem.models.UpdateURedisBackupStrategyResponse; + + + import cn.ucloud.umem.models.UpdateURedisRewriteTimeRequest; import cn.ucloud.umem.models.UpdateURedisRewriteTimeResponse; -/** This client is used to call actions of **UMem** service */ +/** + * This client is used to call actions of **UMem** service + */ public interface UMemClientInterface extends Client { - + + + + + + /** * CheckUDredisSpaceAllowance - 检查高性能UMem剩余资源 * * @param request Request object * @throws UCloudException Exception */ - public CheckUDredisSpaceAllowanceResponse checkUDredisSpaceAllowance( - CheckUDredisSpaceAllowanceRequest request) throws UCloudException; - + public CheckUDredisSpaceAllowanceResponse checkUDredisSpaceAllowance(CheckUDredisSpaceAllowanceRequest request) throws UCloudException; + + + + + + /** * CheckURedisAllowance - 检查URedis资源是否足够 * * @param request Request object * @throws UCloudException Exception */ - public CheckURedisAllowanceResponse checkURedisAllowance(CheckURedisAllowanceRequest request) - throws UCloudException; - + public CheckURedisAllowanceResponse checkURedisAllowance(CheckURedisAllowanceRequest request) throws UCloudException; + + + + + + /** * CreateUMemBackup - 创建分布式redis备份 * * @param request Request object * @throws UCloudException Exception */ - public CreateUMemBackupResponse createUMemBackup(CreateUMemBackupRequest request) - throws UCloudException; - + public CreateUMemBackupResponse createUMemBackup(CreateUMemBackupRequest request) throws UCloudException; + + + + + + /** * CreateUMemSpace - 创建内存空间 * * @param request Request object * @throws UCloudException Exception */ - public CreateUMemSpaceResponse createUMemSpace(CreateUMemSpaceRequest request) - throws UCloudException; - + public CreateUMemSpaceResponse createUMemSpace(CreateUMemSpaceRequest request) throws UCloudException; + + + + + + /** * CreateUMemcacheGroup - 创建单机Memcache * * @param request Request object * @throws UCloudException Exception */ - public CreateUMemcacheGroupResponse createUMemcacheGroup(CreateUMemcacheGroupRequest request) - throws UCloudException; - + public CreateUMemcacheGroupResponse createUMemcacheGroup(CreateUMemcacheGroupRequest request) throws UCloudException; + + + + + + /** * CreateURedisBackup - 创建主备Redis备份 * * @param request Request object * @throws UCloudException Exception */ - public CreateURedisBackupResponse createURedisBackup(CreateURedisBackupRequest request) - throws UCloudException; - + public CreateURedisBackupResponse createURedisBackup(CreateURedisBackupRequest request) throws UCloudException; + + + + + + /** * CreateURedisGroup - 创建主备redis * * @param request Request object * @throws UCloudException Exception */ - public CreateURedisGroupResponse createURedisGroup(CreateURedisGroupRequest request) - throws UCloudException; - + public CreateURedisGroupResponse createURedisGroup(CreateURedisGroupRequest request) throws UCloudException; + + + + + + /** * DeleteUMemSpace - 删除空间 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUMemSpaceResponse deleteUMemSpace(DeleteUMemSpaceRequest request) - throws UCloudException; - + public DeleteUMemSpaceResponse deleteUMemSpace(DeleteUMemSpaceRequest request) throws UCloudException; + + + + + + /** * DeleteUMemcacheGroup - 删除单机Memcache * * @param request Request object * @throws UCloudException Exception */ - public DeleteUMemcacheGroupResponse deleteUMemcacheGroup(DeleteUMemcacheGroupRequest request) - throws UCloudException; - + public DeleteUMemcacheGroupResponse deleteUMemcacheGroup(DeleteUMemcacheGroupRequest request) throws UCloudException; + + + + + + /** * DeleteURedisGroup - 删除主备redis * * @param request Request object * @throws UCloudException Exception */ - public DeleteURedisGroupResponse deleteURedisGroup(DeleteURedisGroupRequest request) - throws UCloudException; - + public DeleteURedisGroupResponse deleteURedisGroup(DeleteURedisGroupRequest request) throws UCloudException; + + + + + + /** * DescribeUDRedisProxyInfo - 拉取udredis代理信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDRedisProxyInfoResponse describeUDRedisProxyInfo( - DescribeUDRedisProxyInfoRequest request) throws UCloudException; - + public DescribeUDRedisProxyInfoResponse describeUDRedisProxyInfo(DescribeUDRedisProxyInfoRequest request) throws UCloudException; + + + + + + /** * DescribeUDRedisSlowlog - 查询UDRedis慢日志 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUDRedisSlowlogResponse describeUDRedisSlowlog( - DescribeUDRedisSlowlogRequest request) throws UCloudException; - + public DescribeUDRedisSlowlogResponse describeUDRedisSlowlog(DescribeUDRedisSlowlogRequest request) throws UCloudException; + + + + + + /** * DescribeUMem - 获取UMem列表 * @@ -222,283 +411,407 @@ public DescribeUDRedisSlowlogResponse describeUDRedisSlowlog( * @throws UCloudException Exception */ public DescribeUMemResponse describeUMem(DescribeUMemRequest request) throws UCloudException; - + + + + + + /** * DescribeUMemBackup - 查询分布式redis备份 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUMemBackupResponse describeUMemBackup(DescribeUMemBackupRequest request) - throws UCloudException; - + public DescribeUMemBackupResponse describeUMemBackup(DescribeUMemBackupRequest request) throws UCloudException; + + + + + + /** * DescribeUMemBackupURL - 获取分布式redis 备份下载链接 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUMemBackupURLResponse describeUMemBackupURL(DescribeUMemBackupURLRequest request) - throws UCloudException; - + public DescribeUMemBackupURLResponse describeUMemBackupURL(DescribeUMemBackupURLRequest request) throws UCloudException; + + + + + + /** * DescribeUMemBlockInfo - 拉取UDRedis分片信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUMemBlockInfoResponse describeUMemBlockInfo(DescribeUMemBlockInfoRequest request) - throws UCloudException; - + public DescribeUMemBlockInfoResponse describeUMemBlockInfo(DescribeUMemBlockInfoRequest request) throws UCloudException; + + + + + + /** * DescribeUMemPrice - 获取价格 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUMemPriceResponse describeUMemPrice(DescribeUMemPriceRequest request) - throws UCloudException; - + public DescribeUMemPriceResponse describeUMemPrice(DescribeUMemPriceRequest request) throws UCloudException; + + + + + + /** * DescribeUMemSpace - 查询空间 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUMemSpaceResponse describeUMemSpace(DescribeUMemSpaceRequest request) - throws UCloudException; - + public DescribeUMemSpaceResponse describeUMemSpace(DescribeUMemSpaceRequest request) throws UCloudException; + + + + + + /** * DescribeUMemUpgradePrice - 获取升级价格 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUMemUpgradePriceResponse describeUMemUpgradePrice( - DescribeUMemUpgradePriceRequest request) throws UCloudException; - + public DescribeUMemUpgradePriceResponse describeUMemUpgradePrice(DescribeUMemUpgradePriceRequest request) throws UCloudException; + + + + + + /** * DescribeUMemcacheGroup - 显示Memcache * * @param request Request object * @throws UCloudException Exception */ - public DescribeUMemcacheGroupResponse describeUMemcacheGroup( - DescribeUMemcacheGroupRequest request) throws UCloudException; - + public DescribeUMemcacheGroupResponse describeUMemcacheGroup(DescribeUMemcacheGroupRequest request) throws UCloudException; + + + + + + /** * DescribeUMemcachePrice - 获取umemcache组价格 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUMemcachePriceResponse describeUMemcachePrice( - DescribeUMemcachePriceRequest request) throws UCloudException; - + public DescribeUMemcachePriceResponse describeUMemcachePrice(DescribeUMemcachePriceRequest request) throws UCloudException; + + + + + + /** * DescribeUMemcacheUpgradePrice - 获取umemcache升级价格 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUMemcacheUpgradePriceResponse describeUMemcacheUpgradePrice( - DescribeUMemcacheUpgradePriceRequest request) throws UCloudException; - + public DescribeUMemcacheUpgradePriceResponse describeUMemcacheUpgradePrice(DescribeUMemcacheUpgradePriceRequest request) throws UCloudException; + + + + + + /** * DescribeURedisBackup - 查询主备redis备份 * * @param request Request object * @throws UCloudException Exception */ - public DescribeURedisBackupResponse describeURedisBackup(DescribeURedisBackupRequest request) - throws UCloudException; - + public DescribeURedisBackupResponse describeURedisBackup(DescribeURedisBackupRequest request) throws UCloudException; + + + + + + /** * DescribeURedisBackupURL - 获取主备Redis备份下载链接 * * @param request Request object * @throws UCloudException Exception */ - public DescribeURedisBackupURLResponse describeURedisBackupURL( - DescribeURedisBackupURLRequest request) throws UCloudException; - + public DescribeURedisBackupURLResponse describeURedisBackupURL(DescribeURedisBackupURLRequest request) throws UCloudException; + + + + + + /** * DescribeURedisConfig - 查询主备Redis所有配置文件 * * @param request Request object * @throws UCloudException Exception */ - public DescribeURedisConfigResponse describeURedisConfig(DescribeURedisConfigRequest request) - throws UCloudException; - + public DescribeURedisConfigResponse describeURedisConfig(DescribeURedisConfigRequest request) throws UCloudException; + + + + + + /** * DescribeURedisGroup - 查询主备Redis * * @param request Request object * @throws UCloudException Exception */ - public DescribeURedisGroupResponse describeURedisGroup(DescribeURedisGroupRequest request) - throws UCloudException; - + public DescribeURedisGroupResponse describeURedisGroup(DescribeURedisGroupRequest request) throws UCloudException; + + + + + + /** * DescribeURedisPrice - 取uredis价格信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeURedisPriceResponse describeURedisPrice(DescribeURedisPriceRequest request) - throws UCloudException; - + public DescribeURedisPriceResponse describeURedisPrice(DescribeURedisPriceRequest request) throws UCloudException; + + + + + + /** * DescribeURedisSlowlog - 查询URedis慢日志 * * @param request Request object * @throws UCloudException Exception */ - public DescribeURedisSlowlogResponse describeURedisSlowlog(DescribeURedisSlowlogRequest request) - throws UCloudException; - + public DescribeURedisSlowlogResponse describeURedisSlowlog(DescribeURedisSlowlogRequest request) throws UCloudException; + + + + + + /** * DescribeURedisUpgradePrice - 获取uredis升级价格信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeURedisUpgradePriceResponse describeURedisUpgradePrice( - DescribeURedisUpgradePriceRequest request) throws UCloudException; - + public DescribeURedisUpgradePriceResponse describeURedisUpgradePrice(DescribeURedisUpgradePriceRequest request) throws UCloudException; + + + + + + /** * DescribeURedisVersion - 获取主Redis可用版本 * * @param request Request object * @throws UCloudException Exception */ - public DescribeURedisVersionResponse describeURedisVersion(DescribeURedisVersionRequest request) - throws UCloudException; - + public DescribeURedisVersionResponse describeURedisVersion(DescribeURedisVersionRequest request) throws UCloudException; + + + + + + /** * FlushallURedisGroup - 清除主备redis数据 * * @param request Request object * @throws UCloudException Exception */ - public FlushallURedisGroupResponse flushallURedisGroup(FlushallURedisGroupRequest request) - throws UCloudException; - + public FlushallURedisGroupResponse flushallURedisGroup(FlushallURedisGroupRequest request) throws UCloudException; + + + + + + /** * GetUMemSpaceState - 获取空间状态 * * @param request Request object * @throws UCloudException Exception */ - public GetUMemSpaceStateResponse getUMemSpaceState(GetUMemSpaceStateRequest request) - throws UCloudException; - + public GetUMemSpaceStateResponse getUMemSpaceState(GetUMemSpaceStateRequest request) throws UCloudException; + + + + + + /** * ISolationURedisGroup - 打开/关闭URedis * * @param request Request object * @throws UCloudException Exception */ - public ISolationURedisGroupResponse iSolationURedisGroup(ISolationURedisGroupRequest request) - throws UCloudException; - + public ISolationURedisGroupResponse iSolationURedisGroup(ISolationURedisGroupRequest request) throws UCloudException; + + + + + + /** * ModifyUMemSpaceName - 修改名称 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUMemSpaceNameResponse modifyUMemSpaceName(ModifyUMemSpaceNameRequest request) - throws UCloudException; - + public ModifyUMemSpaceNameResponse modifyUMemSpaceName(ModifyUMemSpaceNameRequest request) throws UCloudException; + + + + + + /** * ModifyURedisConfig - 修改主备Redis配置文件参数 * * @param request Request object * @throws UCloudException Exception */ - public ModifyURedisConfigResponse modifyURedisConfig(ModifyURedisConfigRequest request) - throws UCloudException; - + public ModifyURedisConfigResponse modifyURedisConfig(ModifyURedisConfigRequest request) throws UCloudException; + + + + + + /** * ModifyURedisGroupName - 修改名称 * * @param request Request object * @throws UCloudException Exception */ - public ModifyURedisGroupNameResponse modifyURedisGroupName(ModifyURedisGroupNameRequest request) - throws UCloudException; - + public ModifyURedisGroupNameResponse modifyURedisGroupName(ModifyURedisGroupNameRequest request) throws UCloudException; + + + + + + /** * ModifyURedisGroupPassword - 修改主备密码 * * @param request Request object * @throws UCloudException Exception */ - public ModifyURedisGroupPasswordResponse modifyURedisGroupPassword( - ModifyURedisGroupPasswordRequest request) throws UCloudException; - + public ModifyURedisGroupPasswordResponse modifyURedisGroupPassword(ModifyURedisGroupPasswordRequest request) throws UCloudException; + + + + + + /** * RemoveUDRedisData - 清除udredis实例数据 * * @param request Request object * @throws UCloudException Exception */ - public RemoveUDRedisDataResponse removeUDRedisData(RemoveUDRedisDataRequest request) - throws UCloudException; - + public RemoveUDRedisDataResponse removeUDRedisData(RemoveUDRedisDataRequest request) throws UCloudException; + + + + + + /** * ResizeUMemSpace - 调整容量 * * @param request Request object * @throws UCloudException Exception */ - public ResizeUMemSpaceResponse resizeUMemSpace(ResizeUMemSpaceRequest request) - throws UCloudException; - + public ResizeUMemSpaceResponse resizeUMemSpace(ResizeUMemSpaceRequest request) throws UCloudException; + + + + + + /** * ResizeURedisGroup - 调整容量 * * @param request Request object * @throws UCloudException Exception */ - public ResizeURedisGroupResponse resizeURedisGroup(ResizeURedisGroupRequest request) - throws UCloudException; - + public ResizeURedisGroupResponse resizeURedisGroup(ResizeURedisGroupRequest request) throws UCloudException; + + + + + + /** * RestartUMemcacheGroup - 重启单机Memcache * * @param request Request object * @throws UCloudException Exception */ - public RestartUMemcacheGroupResponse restartUMemcacheGroup(RestartUMemcacheGroupRequest request) - throws UCloudException; - + public RestartUMemcacheGroupResponse restartUMemcacheGroup(RestartUMemcacheGroupRequest request) throws UCloudException; + + + + + + /** * RestartURedisGroup - 重启主备实例 * * @param request Request object * @throws UCloudException Exception */ - public RestartURedisGroupResponse restartURedisGroup(RestartURedisGroupRequest request) - throws UCloudException; - + public RestartURedisGroupResponse restartURedisGroup(RestartURedisGroupRequest request) throws UCloudException; + + + + + + /** * UpdateURedisBackupStrategy - 更改主备Redis备份策略 * * @param request Request object * @throws UCloudException Exception */ - public UpdateURedisBackupStrategyResponse updateURedisBackupStrategy( - UpdateURedisBackupStrategyRequest request) throws UCloudException; - + public UpdateURedisBackupStrategyResponse updateURedisBackupStrategy(UpdateURedisBackupStrategyRequest request) throws UCloudException; + + + + + + /** * UpdateURedisRewriteTime - 修改主备redis重写时间 * * @param request Request object * @throws UCloudException Exception */ - public UpdateURedisRewriteTimeResponse updateURedisRewriteTime( - UpdateURedisRewriteTimeRequest request) throws UCloudException; + public UpdateURedisRewriteTimeResponse updateURedisRewriteTime(UpdateURedisRewriteTimeRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckUDredisSpaceAllowanceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckUDredisSpaceAllowanceRequest.java index ebf3ad9b..e415bd05 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckUDredisSpaceAllowanceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckUDredisSpaceAllowanceRequest.java @@ -1,49 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CheckUDredisSpaceAllowanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 创建实例的容量大小,,扩容时的分片目标容量大小 */ + + + + /** + * 创建实例的容量大小,,扩容时的分片目标容量大小 + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 创建实例的数量,[1-10] */ + + + + /** + * 创建实例的数量,[1-10] + */ @NotEmpty @UCloudParam("Count") private String count; - - /** 资源ID,扩缩容时的必传参数 */ + + + + /** + * 资源ID,扩缩容时的必传参数 + */ @UCloudParam("GroupId") private String groupId; - + + public String getRegion() { return region; } @@ -51,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -59,7 +85,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public Integer getSize() { return size; } @@ -67,7 +93,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getCount() { return count; } @@ -75,7 +101,7 @@ public String getCount() { public void setCount(String count) { this.count = count; } - + public String getGroupId() { return groupId; } @@ -83,4 +109,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckUDredisSpaceAllowanceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckUDredisSpaceAllowanceResponse.java index 6e5de9c2..31152d7e 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckUDredisSpaceAllowanceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckUDredisSpaceAllowanceResponse.java @@ -1,29 +1,41 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CheckUDredisSpaceAllowanceResponse extends Response { - /** 创建实例资源时,表示可创建的数量;扩容资源时,返回1表示可以扩容,0表示可用区资源不足不能扩容 */ + + + /** + * 创建实例资源时,表示可创建的数量;扩容资源时,返回1表示可以扩容,0表示可用区资源不足不能扩容 + */ @SerializedName("Count") private Integer count; - + + + + public Integer getCount() { return count; } @@ -31,4 +43,15 @@ public Integer getCount() { public void setCount(Integer count) { this.count = count; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckURedisAllowanceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckURedisAllowanceRequest.java index 86211c03..e47e736f 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckURedisAllowanceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckURedisAllowanceRequest.java @@ -1,64 +1,99 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CheckURedisAllowanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 创建实例的容量大小, 单位:GB 目前仅支持1/2/4/8/16/32六种规格;扩缩容时,表示实例的目标资源大小 */ + + + + /** + * 创建实例的容量大小, 单位:GB 目前仅支持1/2/4/8/16/32六种规格;扩缩容时,表示实例的目标资源大小 + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 创建实例的数量,[1-10] */ + + + + /** + * 创建实例的数量,[1-10] + */ @NotEmpty @UCloudParam("Count") private Integer count; - - /** */ + + + + /** + * + */ @UCloudParam("Protocol") private String protocol; - - /** 是否是跨机房URedis(默认false) */ + + + + /** + * 是否是跨机房URedis(默认false) + */ @UCloudParam("RegionFlag") private Boolean regionFlag; - - /** 资源ID,扩容实例资源时的必传参数 */ + + + + /** + * 资源ID,扩容实例资源时的必传参数 + */ @UCloudParam("GroupId") private String groupId; - + + public String getRegion() { return region; } @@ -66,7 +101,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -74,7 +109,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -82,7 +117,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getSize() { return size; } @@ -90,7 +125,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public Integer getCount() { return count; } @@ -98,7 +133,7 @@ public Integer getCount() { public void setCount(Integer count) { this.count = count; } - + public String getProtocol() { return protocol; } @@ -106,7 +141,7 @@ public String getProtocol() { public void setProtocol(String protocol) { this.protocol = protocol; } - + public Boolean getRegionFlag() { return regionFlag; } @@ -114,7 +149,7 @@ public Boolean getRegionFlag() { public void setRegionFlag(Boolean regionFlag) { this.regionFlag = regionFlag; } - + public String getGroupId() { return groupId; } @@ -122,4 +157,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckURedisAllowanceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckURedisAllowanceResponse.java index a6673dd6..a226c3da 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckURedisAllowanceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CheckURedisAllowanceResponse.java @@ -1,29 +1,41 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CheckURedisAllowanceResponse extends Response { - /** 创建实例资源时,表示可创建的数量;扩容资源时,返回1表示可以扩容,0表示可用区资源不足不能扩容 */ + + + /** + * 创建实例资源时,表示可创建的数量;扩容资源时,返回1表示可以扩容,0表示可用区资源不足不能扩容 + */ @SerializedName("Count") private Integer count; - + + + + public Integer getCount() { return count; } @@ -31,4 +43,15 @@ public Integer getCount() { public void setCount(Integer count) { this.count = count; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemBackupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemBackupRequest.java index 2cba25d3..dcd79115 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemBackupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemBackupRequest.java @@ -1,49 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUMemBackupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 资源id */ + + + + /** + * 资源id + */ @NotEmpty @UCloudParam("SpaceId") private String spaceId; - - /** 请求创建备份的名称 (范围[6-63],只能包含英文、数字以及符号-和_) */ + + + + /** + * 请求创建备份的名称 (范围[6-63],只能包含英文、数字以及符号-和_) + */ @NotEmpty @UCloudParam("BackupName") private String backupName; - + + public String getRegion() { return region; } @@ -51,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -59,7 +85,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -67,7 +93,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSpaceId() { return spaceId; } @@ -75,7 +101,7 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } - + public String getBackupName() { return backupName; } @@ -83,4 +109,14 @@ public String getBackupName() { public void setBackupName(String backupName) { this.backupName = backupName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemBackupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemBackupResponse.java index ee96730e..33598f79 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemBackupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemBackupResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUMemBackupResponse extends Response { - /** 备份Id */ + + + /** + * 备份Id + */ @SerializedName("BackupId") private String backupId; - + + public String getBackupId() { return backupId; } @@ -31,4 +41,14 @@ public String getBackupId() { public void setBackupId(String backupId) { this.backupId = backupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemSpaceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemSpaceRequest.java index d0fc99e4..5a369b43 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemSpaceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemSpaceRequest.java @@ -1,111 +1,187 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUMemSpaceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 内存大小, 单位:GB, 范围[1~1024] */ + + + + /** + * 内存大小, 单位:GB, 范围[1~1024] + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 空间名称,长度(6<=size<=63) */ + + + + /** + * 空间名称,长度(6<=size<=63) + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 协议:memcache, redis (默认redis).注意:redis无single类型 */ + + + + /** + * 协议:memcache, redis (默认redis).注意:redis无single类型 + */ @UCloudParam("Protocol") private String protocol; - - /** 空间类型:single(无热备),double(热备)(默认: double) */ + + + + /** + * 空间类型:single(无热备),double(热备)(默认: double) + */ @UCloudParam("Type") private String type; - - /** Year , Month, Dynamic 默认: Month */ + + + + /** + * Year , Month, Dynamic 默认: Month + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长 默认: 1 */ + + + + /** + * 购买时长 默认: 1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** VPC的ID */ + + + + /** + * VPC的ID + */ @UCloudParam("VPCId") private String vpcId; - - /** 子网ID */ + + + + /** + * 子网ID + */ @UCloudParam("SubnetId") private String subnetId; - - /** */ + + + + /** + * + */ @UCloudParam("Tag") private String tag; - + + + /** - * URedis密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 - * | base64UGFzc3dvcmQx。 + * URedis密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。 */ @UCloudParam("Password") private String password; - - /** 跨机房UDRedis,slave所在可用区(必须和Zone在同一Region,且不可相同) */ + + + + /** + * 跨机房UDRedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + */ @UCloudParam("SlaveZone") private String slaveZone; - - /** 分片个数 */ + + + + /** + * 分片个数 + */ @UCloudParam("BlockCnt") private Integer blockCnt; - - /** 是否是cluster模式(参数为cluster创建redis cluster,其他参数或者不传该参数仍然创建老版本分布式) */ + + + + /** + * 是否是cluster模式(参数为cluster创建redis cluster,其他参数或者不传该参数仍然创建老版本分布式) + */ @UCloudParam("ClusterMode") private String clusterMode; - - /** 分布式分片版本(默认版本是4.0,其他版本见DescribeUDRedisBlockVersion) */ + + + + /** + * 分布式分片版本(默认版本是4.0,其他版本见DescribeUDRedisBlockVersion) + */ @UCloudParam("Version") private String version; - - /** 是否创建性能增强性。默认为false,或者不填,填true为性能增强型。 */ + + + + /** + * 是否创建性能增强性。默认为false,或者不填,填true为性能增强型。 + */ @UCloudParam("HighPerformance") private Boolean highPerformance; - - /** 使用的代金券id */ + + + + /** + * 使用的代金券id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -113,7 +189,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -121,7 +197,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -129,7 +205,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getSize() { return size; } @@ -137,7 +213,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getName() { return name; } @@ -145,7 +221,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getProtocol() { return protocol; } @@ -153,7 +229,7 @@ public String getProtocol() { public void setProtocol(String protocol) { this.protocol = protocol; } - + public String getType() { return type; } @@ -161,7 +237,7 @@ public String getType() { public void setType(String type) { this.type = type; } - + public String getChargeType() { return chargeType; } @@ -169,7 +245,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -177,7 +253,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getVPCId() { return vpcId; } @@ -185,7 +261,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -193,7 +269,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getTag() { return tag; } @@ -201,7 +277,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getPassword() { return password; } @@ -209,7 +285,7 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } - + public String getSlaveZone() { return slaveZone; } @@ -217,7 +293,7 @@ public String getSlaveZone() { public void setSlaveZone(String slaveZone) { this.slaveZone = slaveZone; } - + public Integer getBlockCnt() { return blockCnt; } @@ -225,7 +301,7 @@ public Integer getBlockCnt() { public void setBlockCnt(Integer blockCnt) { this.blockCnt = blockCnt; } - + public String getClusterMode() { return clusterMode; } @@ -233,7 +309,7 @@ public String getClusterMode() { public void setClusterMode(String clusterMode) { this.clusterMode = clusterMode; } - + public String getVersion() { return version; } @@ -241,7 +317,7 @@ public String getVersion() { public void setVersion(String version) { this.version = version; } - + public Boolean getHighPerformance() { return highPerformance; } @@ -249,7 +325,7 @@ public Boolean getHighPerformance() { public void setHighPerformance(Boolean highPerformance) { this.highPerformance = highPerformance; } - + public String getCouponId() { return couponId; } @@ -257,4 +333,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemSpaceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemSpaceResponse.java index 0907404c..51ab4970 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemSpaceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemSpaceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUMemSpaceResponse extends Response { - /** 创建内存空间ID列表 */ + + + /** + * 创建内存空间ID列表 + */ @SerializedName("SpaceId") private String spaceId; - + + public String getSpaceId() { return spaceId; } @@ -31,4 +41,14 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemcacheGroupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemcacheGroupRequest.java index 8c9fd591..a35b933b 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemcacheGroupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemcacheGroupRequest.java @@ -1,75 +1,129 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUMemcacheGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 请求创建组的名称 范围[6-60] */ + + + + /** + * 请求创建组的名称 范围[6-60] + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 每个节点的内存大小,单位GB,默认1GB 目前仅支持1/2/4/8/16/32这几档 */ + + + + /** + * 每个节点的内存大小,单位GB,默认1GB 目前仅支持1/2/4/8/16/32这几档 + */ @UCloudParam("Size") private Integer size; - - /** 配置ID,目前仅支持默认配置id 默认配置id:"9a891891-c245-4b66-bce8-67e59430d67c" */ + + + + /** + * 配置ID,目前仅支持默认配置id 默认配置id:"9a891891-c245-4b66-bce8-67e59430d67c" + */ @UCloudParam("ConfigId") private String configId; - - /** Memcache版本信息,默认为1.4.31 */ + + + + /** + * Memcache版本信息,默认为1.4.31 + */ @UCloudParam("Version") private String version; - - /** 计费模式,Year , Month, Dynamic 默认: Month */ + + + + /** + * 计费模式,Year , Month, Dynamic 默认: Month + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长,默认为1 */ + + + + /** + * 购买时长,默认为1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 业务组 默认:Default */ + + + + /** + * 业务组 默认:Default + */ @UCloudParam("Tag") private String tag; - - /** */ + + + + /** + * + */ @UCloudParam("Protocol") private String protocol; - - /** 代金券ID */ + + + + /** + * 代金券ID + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -77,7 +131,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -85,7 +139,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -93,7 +147,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -101,7 +155,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public Integer getSize() { return size; } @@ -109,7 +163,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getConfigId() { return configId; } @@ -117,7 +171,7 @@ public String getConfigId() { public void setConfigId(String configId) { this.configId = configId; } - + public String getVersion() { return version; } @@ -125,7 +179,7 @@ public String getVersion() { public void setVersion(String version) { this.version = version; } - + public String getChargeType() { return chargeType; } @@ -133,7 +187,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -141,7 +195,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getTag() { return tag; } @@ -149,7 +203,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getProtocol() { return protocol; } @@ -157,7 +211,7 @@ public String getProtocol() { public void setProtocol(String protocol) { this.protocol = protocol; } - + public String getCouponId() { return couponId; } @@ -165,4 +219,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemcacheGroupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemcacheGroupResponse.java index 593d34fd..808ff6cc 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemcacheGroupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemcacheGroupResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUMemcacheGroupResponse extends Response { - /** 创建的组ID */ + + + /** + * 创建的组ID + */ @SerializedName("GroupId") private String groupId; - + + public String getGroupId() { return groupId; } @@ -31,4 +41,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisBackupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisBackupRequest.java index 317e8200..e55ff578 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisBackupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisBackupRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateURedisBackupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 资源id */ + + + + /** + * 资源id + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - - /** 请求创建组的名称 (范围[6-63],只能包含英文、数字以及符号-和_) */ + + + + /** + * 请求创建组的名称 (范围[6-63],只能包含英文、数字以及符号-和_) + */ @NotEmpty @UCloudParam("BackupName") private String backupName; - - /** 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) */ + + + + /** + * 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + */ @UCloudParam("SlaveZone") private String slaveZone; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -62,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -70,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -78,7 +108,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public String getBackupName() { return backupName; } @@ -86,7 +116,7 @@ public String getBackupName() { public void setBackupName(String backupName) { this.backupName = backupName; } - + public String getSlaveZone() { return slaveZone; } @@ -94,4 +124,14 @@ public String getSlaveZone() { public void setSlaveZone(String slaveZone) { this.slaveZone = slaveZone; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisBackupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisBackupResponse.java index 9e42fe16..fe41b80b 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisBackupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisBackupResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateURedisBackupResponse extends Response { - /** 备份id */ + + + /** + * 备份id + */ @SerializedName("BackupId") private String backupId; - + + public String getBackupId() { return backupId; } @@ -31,4 +41,14 @@ public String getBackupId() { public void setBackupId(String backupId) { this.backupId = backupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisGroupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisGroupRequest.java index 4153a400..212c5682 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisGroupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisGroupRequest.java @@ -1,123 +1,211 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateURedisGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 请求创建组的名称 (范围[6-63],只能包含英文、数字以及符号-和_) */ + + + + /** + * 请求创建组的名称 (范围[6-63],只能包含英文、数字以及符号-和_) + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 是否开启高可用,enable或disable */ + + + + /** + * 是否开启高可用,enable或disable + */ @NotEmpty @UCloudParam("HighAvailability") private String highAvailability; - - /** 每个节点的内存大小,单位GB,默认1GB,目前仅支持1/2/4/8/16/32,六种 */ + + + + /** + * 每个节点的内存大小,单位GB,默认1GB,目前仅支持1/2/4/8/16/32,六种 + */ @UCloudParam("Size") private Integer size; - - /** 是否自动备份,enable或disable,默认disable */ + + + + /** + * 是否自动备份,enable或disable,默认disable + */ @UCloudParam("AutoBackup") private String autoBackup; - - /** 自动备份开始时间,范围[0-23],默认3点 */ + + + + /** + * 自动备份开始时间,范围[0-23],默认3点 + */ @UCloudParam("BackupTime") private Integer backupTime; - + + + /** - * 配置ID,目前支持 4.0版本配置ID:"6c9298a3-9d7f-428c-b1d0-e87ab3b8a1ea", - * 5.0版本配置ID:"3cdeeb90-dcbf-46e8-95cd-a05d8860a22c",6.0版本配置ID:"1d990520-aac8-4e0f-9384-f58611e8eb28",7.0版本配置ID:"48dcf534-db41-11ec-a1a6-52670028d520",默认版本4.0,从备份创建为必传项 + * 配置ID,目前支持 4.0版本配置ID:"6c9298a3-9d7f-428c-b1d0-e87ab3b8a1ea", 5.0版本配置ID:"3cdeeb90-dcbf-46e8-95cd-a05d8860a22c",6.0版本配置ID:"1d990520-aac8-4e0f-9384-f58611e8eb28",7.0版本配置ID:"48dcf534-db41-11ec-a1a6-52670028d520",默认版本4.0,从备份创建为必传项 */ @UCloudParam("ConfigId") private String configId; - - /** Redis版本信息(详见DescribeURedisVersion返回结果),默认版本4.0 */ + + + + /** + * Redis版本信息(详见DescribeURedisVersion返回结果),默认版本4.0 + */ @UCloudParam("Version") private String version; - - /** 计费模式,Year , Month, Dynamic 默认: Month */ + + + + /** + * 计费模式,Year , Month, Dynamic 默认: Month + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长,默认为1 */ + + + + /** + * 购买时长,默认为1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 业务组名称 */ + + + + /** + * 业务组名称 + */ @UCloudParam("Tag") private String tag; - - /** 初始化密码,需要 base64 编码 */ + + + + /** + * 初始化密码,需要 base64 编码 + */ @UCloudParam("Password") private String password; - - /** 有此项代表从备份中创建,无代表正常创建 */ + + + + /** + * 有此项代表从备份中创建,无代表正常创建 + */ @UCloudParam("BackupId") private String backupId; - - /** 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) */ + + + + /** + * 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + */ @UCloudParam("SlaveZone") private String slaveZone; - - /** Master Redis Group的ID,创建只读Slave时,必须填写 */ + + + + /** + * Master Redis Group的ID,创建只读Slave时,必须填写 + */ @UCloudParam("MasterGroupId") private String masterGroupId; - - /** 是否创建使用ipv6 资源, 默认为false, 或者不填, 创建ipv6为true */ + + + + /** + * 是否创建使用ipv6 资源, 默认为false, 或者不填, 创建ipv6为true + */ @UCloudParam("EnableIpV6") private Boolean enableIpV6; - - /** 子网ID */ + + + + /** + * 子网ID + */ @UCloudParam("SubnetId") private String subnetId; - - /** VPC的ID */ + + + + /** + * VPC的ID + */ @UCloudParam("VPCId") private String vpcId; - - /** 是否创建高性能Redis, 默认为false, 或者不填, 创建高性能为true */ + + + + /** + * 是否创建高性能Redis, 默认为false, 或者不填, 创建高性能为true + */ @UCloudParam("HighPerformance") private Boolean highPerformance; - - /** 代金券ID */ + + + + /** + * 代金券ID + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -125,7 +213,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -133,7 +221,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -141,7 +229,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -149,7 +237,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getHighAvailability() { return highAvailability; } @@ -157,7 +245,7 @@ public String getHighAvailability() { public void setHighAvailability(String highAvailability) { this.highAvailability = highAvailability; } - + public Integer getSize() { return size; } @@ -165,7 +253,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getAutoBackup() { return autoBackup; } @@ -173,7 +261,7 @@ public String getAutoBackup() { public void setAutoBackup(String autoBackup) { this.autoBackup = autoBackup; } - + public Integer getBackupTime() { return backupTime; } @@ -181,7 +269,7 @@ public Integer getBackupTime() { public void setBackupTime(Integer backupTime) { this.backupTime = backupTime; } - + public String getConfigId() { return configId; } @@ -189,7 +277,7 @@ public String getConfigId() { public void setConfigId(String configId) { this.configId = configId; } - + public String getVersion() { return version; } @@ -197,7 +285,7 @@ public String getVersion() { public void setVersion(String version) { this.version = version; } - + public String getChargeType() { return chargeType; } @@ -205,7 +293,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -213,7 +301,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getTag() { return tag; } @@ -221,7 +309,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getPassword() { return password; } @@ -229,7 +317,7 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } - + public String getBackupId() { return backupId; } @@ -237,7 +325,7 @@ public String getBackupId() { public void setBackupId(String backupId) { this.backupId = backupId; } - + public String getSlaveZone() { return slaveZone; } @@ -245,7 +333,7 @@ public String getSlaveZone() { public void setSlaveZone(String slaveZone) { this.slaveZone = slaveZone; } - + public String getMasterGroupId() { return masterGroupId; } @@ -253,7 +341,7 @@ public String getMasterGroupId() { public void setMasterGroupId(String masterGroupId) { this.masterGroupId = masterGroupId; } - + public Boolean getEnableIpV6() { return enableIpV6; } @@ -261,7 +349,7 @@ public Boolean getEnableIpV6() { public void setEnableIpV6(Boolean enableIpV6) { this.enableIpV6 = enableIpV6; } - + public String getSubnetId() { return subnetId; } @@ -269,7 +357,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getVPCId() { return vpcId; } @@ -277,7 +365,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public Boolean getHighPerformance() { return highPerformance; } @@ -285,7 +373,7 @@ public Boolean getHighPerformance() { public void setHighPerformance(Boolean highPerformance) { this.highPerformance = highPerformance; } - + public String getCouponId() { return couponId; } @@ -293,4 +381,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisGroupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisGroupResponse.java index 89ca4ea6..7672a190 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisGroupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateURedisGroupResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateURedisGroupResponse extends Response { - /** 创建的组ID */ + + + /** + * 创建的组ID + */ @SerializedName("GroupId") private String groupId; - + + public String getGroupId() { return groupId; } @@ -31,4 +41,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemSpaceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemSpaceRequest.java index 26234c90..72a32d7d 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemSpaceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemSpaceRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUMemSpaceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** UMem内存空间ID */ + + + + /** + * UMem内存空间ID + */ @NotEmpty @UCloudParam("SpaceId") private String spaceId; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -53,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -61,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSpaceId() { return spaceId; } @@ -69,4 +91,14 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemSpaceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemSpaceResponse.java index 1a8019ec..623aec8f 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemSpaceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemSpaceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUMemSpaceResponse extends Response {} +public class DeleteUMemSpaceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemcacheGroupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemcacheGroupRequest.java index 0f2e4214..6a9be6a9 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemcacheGroupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemcacheGroupRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUMemcacheGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 组ID */ + + + + /** + * 组ID + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -53,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -61,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -69,4 +91,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemcacheGroupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemcacheGroupResponse.java index 6db27c21..771fafbf 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemcacheGroupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteUMemcacheGroupResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUMemcacheGroupResponse extends Response {} +public class DeleteUMemcacheGroupResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteURedisGroupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteURedisGroupRequest.java index c1b055e7..4787e768 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteURedisGroupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteURedisGroupRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteURedisGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 组ID */ + + + + /** + * 组ID + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -57,4 +75,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteURedisGroupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteURedisGroupResponse.java index d4f5be99..28749605 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteURedisGroupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DeleteURedisGroupResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteURedisGroupResponse extends Response {} +public class DeleteURedisGroupResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisProxyInfoRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisProxyInfoRequest.java index 370e42a0..5646971b 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisProxyInfoRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisProxyInfoRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDRedisProxyInfoRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** udredis实例id */ + + + + /** + * udredis实例id + */ @NotEmpty @UCloudParam("SpaceId") private String spaceId; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSpaceId() { return spaceId; } @@ -73,4 +92,14 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisProxyInfoResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisProxyInfoResponse.java index 9855c2b6..0cd0cfaf 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisProxyInfoResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisProxyInfoResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDRedisProxyInfoResponse extends Response { - /** 代理数据集 */ + + + /** + * 代理数据集 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,55 +41,81 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UDRedisProxyInfo extends Response { + + + /** + * 代理资源id + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 代理id + */ + @SerializedName("ProxyId") + private String proxyId; + + + + /** + * 代理ip + */ + @SerializedName("Vip") + private String vip; + + + + /** + * 代理状态 + */ + @SerializedName("State") + private String state; + + + public String getResourceId() { + return resourceId; + } - public static class UDRedisProxyInfo extends Response { + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getProxyId() { + return proxyId; + } - /** 代理资源id */ - @SerializedName("ResourceId") - private String resourceId; + public void setProxyId(String proxyId) { + this.proxyId = proxyId; + } + + public String getVip() { + return vip; + } - /** 代理id */ - @SerializedName("ProxyId") - private String proxyId; + public void setVip(String vip) { + this.vip = vip; + } + + public String getState() { + return state; + } - /** 代理ip */ - @SerializedName("Vip") - private String vip; + public void setState(String state) { + this.state = state; + } + + } +} - /** 代理状态 */ - @SerializedName("State") - private String state; - public String getResourceId() { - return resourceId; - } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - public String getProxyId() { - return proxyId; - } - public void setProxyId(String proxyId) { - this.proxyId = proxyId; - } - public String getVip() { - return vip; - } - public void setVip(String vip) { - this.vip = vip; - } - public String getState() { - return state; - } - public void setState(String state) { - this.state = state; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisSlowlogRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisSlowlogRequest.java index fd2f182f..1e9c1b34 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisSlowlogRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisSlowlogRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUDRedisSlowlogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 实例id */ + + + + /** + * 实例id + */ @NotEmpty @UCloudParam("InstanceId") private String instanceId; - - /** 分页显示的条目数,默认为10 */ + + + + /** + * 分页显示的条目数,默认为10 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceId() { return instanceId; } @@ -74,7 +100,7 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } - + public Integer getLimit() { return limit; } @@ -82,4 +108,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisSlowlogResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisSlowlogResponse.java index 3f423013..47d99bf1 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisSlowlogResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUDRedisSlowlogResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUDRedisSlowlogResponse extends Response { - /** 总条目数 */ + + + /** + * 总条目数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 条目数据 */ + + + + /** + * 条目数据 + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,55 +57,81 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UDRedisSlowlogSet extends Response { + + + /** + * 查询发生的时间 + */ + @SerializedName("StartTime") + private Integer startTime; + + + + /** + * 查询消耗的时间 + */ + @SerializedName("SpendTime") + private Integer spendTime; + + + + /** + * 查询命令 + */ + @SerializedName("Command") + private String command; + + + + /** + * 分片id + */ + @SerializedName("BlockId") + private String blockId; + + + public Integer getStartTime() { + return startTime; + } - public static class UDRedisSlowlogSet extends Response { + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getSpendTime() { + return spendTime; + } - /** 查询发生的时间 */ - @SerializedName("StartTime") - private Integer startTime; + public void setSpendTime(Integer spendTime) { + this.spendTime = spendTime; + } + + public String getCommand() { + return command; + } - /** 查询消耗的时间 */ - @SerializedName("SpendTime") - private Integer spendTime; + public void setCommand(String command) { + this.command = command; + } + + public String getBlockId() { + return blockId; + } - /** 查询命令 */ - @SerializedName("Command") - private String command; + public void setBlockId(String blockId) { + this.blockId = blockId; + } + + } +} - /** 分片id */ - @SerializedName("BlockId") - private String blockId; - public Integer getStartTime() { - return startTime; - } - public void setStartTime(Integer startTime) { - this.startTime = startTime; - } - public Integer getSpendTime() { - return spendTime; - } - public void setSpendTime(Integer spendTime) { - this.spendTime = spendTime; - } - public String getCommand() { - return command; - } - public void setCommand(String command) { - this.command = command; - } - public String getBlockId() { - return blockId; - } - public void setBlockId(String blockId) { - this.blockId = blockId; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupRequest.java index 9f98f2a7..cd4ea75e 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUMemBackupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 资源id */ + + + + /** + * 资源id + */ @NotEmpty @UCloudParam("SpaceId") private String spaceId; - - /** 分页显示的起始偏移, 默认值为0 */ + + + + /** + * 分页显示的起始偏移, 默认值为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 分页显示的条目数, 默认值为10 */ + + + + /** + * 分页显示的条目数, 默认值为10 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -62,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -70,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSpaceId() { return spaceId; } @@ -78,7 +108,7 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } - + public Integer getOffset() { return offset; } @@ -86,7 +116,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -94,4 +124,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupResponse.java index ad4ce110..80295759 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUMemBackupResponse extends Response { - /** 分布式redis 备份,数组的每个元素为每个分片的备份 */ + + + /** + * 分布式redis 备份,数组的每个元素为每个分片的备份 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,79 +41,113 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UMemBackupSet extends Response { + + + /** + * 备份名称 + */ + @SerializedName("BackupName") + private String backupName; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * Starting:备份中 Done:完成 + */ + @SerializedName("State") + private String state; + + + + /** + * 空间的备份ID + */ + @SerializedName("BackupId") + private String backupId; + + + + /** + * 备份类型: auto(自动) ,manual(手动) + */ + @SerializedName("BackupType") + private String backupType; + + + + /** + * 本次备份,分片的数量 + */ + @SerializedName("BlockCount") + private Integer blockCount; + + + public String getBackupName() { + return backupName; + } - public static class UMemBackupSet extends Response { - - /** 备份名称 */ - @SerializedName("BackupName") - private String backupName; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** Starting:备份中 Done:完成 */ - @SerializedName("State") - private String state; - - /** 空间的备份ID */ - @SerializedName("BackupId") - private String backupId; + public void setBackupName(String backupName) { + this.backupName = backupName; + } + + public Integer getCreateTime() { + return createTime; + } - /** 备份类型: auto(自动) ,manual(手动) */ - @SerializedName("BackupType") - private String backupType; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getState() { + return state; + } - /** 本次备份,分片的数量 */ - @SerializedName("BlockCount") - private Integer blockCount; + public void setState(String state) { + this.state = state; + } + + public String getBackupId() { + return backupId; + } - public String getBackupName() { - return backupName; - } + public void setBackupId(String backupId) { + this.backupId = backupId; + } + + public String getBackupType() { + return backupType; + } - public void setBackupName(String backupName) { - this.backupName = backupName; - } + public void setBackupType(String backupType) { + this.backupType = backupType; + } + + public Integer getBlockCount() { + return blockCount; + } - public Integer getCreateTime() { - return createTime; + public void setBlockCount(Integer blockCount) { + this.blockCount = blockCount; + } + } +} - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public String getState() { - return state; - } - public void setState(String state) { - this.state = state; - } - public String getBackupId() { - return backupId; - } - public void setBackupId(String backupId) { - this.backupId = backupId; - } - public String getBackupType() { - return backupType; - } - public void setBackupType(String backupType) { - this.backupType = backupType; - } - public Integer getBlockCount() { - return blockCount; - } - public void setBlockCount(Integer blockCount) { - this.blockCount = blockCount; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupURLRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupURLRequest.java index 56fc586e..d785f047 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupURLRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupURLRequest.java @@ -1,53 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUMemBackupURLRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 资源id */ + + + + /** + * 资源id + */ @NotEmpty @UCloudParam("SpaceId") private String spaceId; - - /** 备份Id */ + + + + /** + * 备份Id + */ @NotEmpty @UCloudParam("BackupId") private String backupId; - - /** 分片id */ + + + + /** + * 分片id + */ @UCloudParam("BlockId") private String blockId; - + + public String getRegion() { return region; } @@ -55,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -63,7 +93,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -71,7 +101,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSpaceId() { return spaceId; } @@ -79,7 +109,7 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } - + public String getBackupId() { return backupId; } @@ -87,7 +117,7 @@ public String getBackupId() { public void setBackupId(String backupId) { this.backupId = backupId; } - + public String getBlockId() { return blockId; } @@ -95,4 +125,14 @@ public String getBlockId() { public void setBlockId(String blockId) { this.blockId = blockId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupURLResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupURLResponse.java index c904a5b1..1bac6222 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupURLResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBackupURLResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUMemBackupURLResponse extends Response { - /** 备份url,每个分片一个下载URL */ + + + /** + * 备份url,每个分片一个下载URL + */ @SerializedName("BackupURL") private List backupURL; - + + public List getBackupURL() { return backupURL; } @@ -32,4 +41,14 @@ public List getBackupURL() { public void setBackupURL(List backupURL) { this.backupURL = backupURL; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBlockInfoRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBlockInfoRequest.java index 2ef7f85f..1f28a996 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBlockInfoRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBlockInfoRequest.java @@ -1,57 +1,84 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUMemBlockInfoRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UMem内存资源ID */ + + + + /** + * UMem内存资源ID + */ @NotEmpty @UCloudParam("SpaceId") private String spaceId; - - /** 分页显示的起始偏移, 默认值为0 */ + + + + /** + * 分页显示的起始偏移, 默认值为0 + */ @NotEmpty @UCloudParam("Offset") private Integer offset; - - /** 分页显示的条目数, 默认值为10 */ + + + + /** + * 分页显示的条目数, 默认值为10 + */ @NotEmpty @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -59,7 +86,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -67,7 +94,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -75,7 +102,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSpaceId() { return spaceId; } @@ -83,7 +110,7 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } - + public Integer getOffset() { return offset; } @@ -91,7 +118,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -99,4 +126,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBlockInfoResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBlockInfoResponse.java index 53936955..b5406328 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBlockInfoResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemBlockInfoResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUMemBlockInfoResponse extends Response { - /** 分布式redis 分片信息 */ + + + /** + * 分布式redis 分片信息 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,107 +41,145 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UMemBlockInfo extends Response { + + + /** + * 分片id + */ + @SerializedName("BlockId") + private String blockId; + + + + /** + * 分片端口 + */ + @SerializedName("BlockPort") + private Integer blockPort; + + + + /** + * 容量单位GB + */ + @SerializedName("BlockSize") + private Integer blockSize; + + + + /** + * 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中 SetPasswordFail //设置密码失败 + */ + @SerializedName("BlockState") + private String blockState; + + + + /** + * 分片维护的键槽起始值 + */ + @SerializedName("BlockSlotBegin") + private Integer blockSlotBegin; + + + + /** + * 分片维护的键槽结束值 + */ + @SerializedName("BlockSlotEnd") + private Integer blockSlotEnd; + + + + /** + * 分片ip + */ + @SerializedName("BlockVip") + private String blockVip; + + + + /** + * 使用量单位MB + */ + @SerializedName("BlockUsedSize") + private Integer blockUsedSize; + + + public String getBlockId() { + return blockId; + } - public static class UMemBlockInfo extends Response { - - /** 分片id */ - @SerializedName("BlockId") - private String blockId; - - /** 分片端口 */ - @SerializedName("BlockPort") - private Integer blockPort; - - /** 容量单位GB */ - @SerializedName("BlockSize") - private Integer blockSize; - - /** - * 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 - * DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 - * ConfigFail // 配置失败Restarting // 重启中 SetPasswordFail //设置密码失败 - */ - @SerializedName("BlockState") - private String blockState; - - /** 分片维护的键槽起始值 */ - @SerializedName("BlockSlotBegin") - private Integer blockSlotBegin; - - /** 分片维护的键槽结束值 */ - @SerializedName("BlockSlotEnd") - private Integer blockSlotEnd; - - /** 分片ip */ - @SerializedName("BlockVip") - private String blockVip; - - /** 使用量单位MB */ - @SerializedName("BlockUsedSize") - private Integer blockUsedSize; + public void setBlockId(String blockId) { + this.blockId = blockId; + } + + public Integer getBlockPort() { + return blockPort; + } - public String getBlockId() { - return blockId; - } + public void setBlockPort(Integer blockPort) { + this.blockPort = blockPort; + } + + public Integer getBlockSize() { + return blockSize; + } - public void setBlockId(String blockId) { - this.blockId = blockId; - } + public void setBlockSize(Integer blockSize) { + this.blockSize = blockSize; + } + + public String getBlockState() { + return blockState; + } - public Integer getBlockPort() { - return blockPort; - } + public void setBlockState(String blockState) { + this.blockState = blockState; + } + + public Integer getBlockSlotBegin() { + return blockSlotBegin; + } - public void setBlockPort(Integer blockPort) { - this.blockPort = blockPort; - } + public void setBlockSlotBegin(Integer blockSlotBegin) { + this.blockSlotBegin = blockSlotBegin; + } + + public Integer getBlockSlotEnd() { + return blockSlotEnd; + } - public Integer getBlockSize() { - return blockSize; - } + public void setBlockSlotEnd(Integer blockSlotEnd) { + this.blockSlotEnd = blockSlotEnd; + } + + public String getBlockVip() { + return blockVip; + } - public void setBlockSize(Integer blockSize) { - this.blockSize = blockSize; - } + public void setBlockVip(String blockVip) { + this.blockVip = blockVip; + } + + public Integer getBlockUsedSize() { + return blockUsedSize; + } - public String getBlockState() { - return blockState; + public void setBlockUsedSize(Integer blockUsedSize) { + this.blockUsedSize = blockUsedSize; + } + } +} - public void setBlockState(String blockState) { - this.blockState = blockState; - } - public Integer getBlockSlotBegin() { - return blockSlotBegin; - } - public void setBlockSlotBegin(Integer blockSlotBegin) { - this.blockSlotBegin = blockSlotBegin; - } - public Integer getBlockSlotEnd() { - return blockSlotEnd; - } - public void setBlockSlotEnd(Integer blockSlotEnd) { - this.blockSlotEnd = blockSlotEnd; - } - public String getBlockVip() { - return blockVip; - } - public void setBlockVip(String blockVip) { - this.blockVip = blockVip; - } - public Integer getBlockUsedSize() { - return blockUsedSize; - } - public void setBlockUsedSize(Integer blockUsedSize) { - this.blockUsedSize = blockUsedSize; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemPriceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemPriceRequest.java index 51e2421f..b58decc9 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemPriceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemPriceRequest.java @@ -1,61 +1,92 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUMemPriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 购买umem大小,单位:GB,范围[1~1024] */ + + + + /** + * 购买umem大小,单位:GB,范围[1~1024] + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 空间类型:single(无热备),double(热备)(默认: double) */ + + + + /** + * 空间类型:single(无热备),double(热备)(默认: double) + */ @NotEmpty @UCloudParam("Type") private String type; - - /** Year, Month, Dynamic 如果不指定,则一次性获取三种计费 */ + + + + /** + * Year, Month, Dynamic 如果不指定,则一次性获取三种计费 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买UMem的时长,默认值为1 */ + + + + /** + * 购买UMem的时长,默认值为1 + */ @UCloudParam("Quantity") private Integer quantity; - + + public String getRegion() { return region; } @@ -63,7 +94,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -71,7 +102,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -79,7 +110,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getSize() { return size; } @@ -87,7 +118,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getType() { return type; } @@ -95,7 +126,7 @@ public String getType() { public void setType(String type) { this.type = type; } - + public String getChargeType() { return chargeType; } @@ -103,7 +134,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -111,4 +142,14 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemPriceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemPriceResponse.java index f631a5c5..4185fc1a 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemPriceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemPriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUMemPriceResponse extends Response { - /** 价格 参数见 UMemPriceSet */ + + + /** + * 价格 参数见 UMemPriceSet + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,43 +41,65 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UMemPriceSet extends Response { + + + /** + * Year, Month, Dynamic,Trial + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 现价 + */ + @SerializedName("Price") + private Integer price; + + + + /** + * 原价 + */ + @SerializedName("OriginalPrice") + private Integer originalPrice; + + + public String getChargeType() { + return chargeType; + } - public static class UMemPriceSet extends Response { + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getPrice() { + return price; + } + + public void setPrice(Integer price) { + this.price = price; + } + + public Integer getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(Integer originalPrice) { + this.originalPrice = originalPrice; + } + + } +} - /** Year, Month, Dynamic,Trial */ - @SerializedName("ChargeType") - private String chargeType; - /** 现价 */ - @SerializedName("Price") - private Integer price; - /** 原价 */ - @SerializedName("OriginalPrice") - private Integer originalPrice; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Integer getPrice() { - return price; - } - public void setPrice(Integer price) { - this.price = price; - } - public Integer getOriginalPrice() { - return originalPrice; - } - public void setOriginalPrice(Integer originalPrice) { - this.originalPrice = originalPrice; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemRequest.java index c7f23aff..78a7d274 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemRequest.java @@ -1,58 +1,89 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUMemRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 协议类型: memcache, redis */ + + + + /** + * 协议类型: memcache, redis + */ @NotEmpty @UCloudParam("Protocol") private String protocol; - - /** 分页显示的起始偏移, 默认值为0 */ + + + + /** + * 分页显示的起始偏移, 默认值为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 分页显示的条目数, 默认值为20 */ + + + + /** + * 分页显示的条目数, 默认值为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 资源ID */ + + + + /** + * 资源ID + */ @UCloudParam("ResourceId") private String resourceId; - + + public String getRegion() { return region; } @@ -60,7 +91,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -68,7 +99,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -76,7 +107,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getProtocol() { return protocol; } @@ -84,7 +115,7 @@ public String getProtocol() { public void setProtocol(String protocol) { this.protocol = protocol; } - + public Integer getOffset() { return offset; } @@ -92,7 +123,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -100,7 +131,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getResourceId() { return resourceId; } @@ -108,4 +139,14 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemResponse.java index 269e154a..a9c5a07e 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUMemResponse extends Response { - /** 根据过滤条件得到的总数 */ + + + /** + * 根据过滤条件得到的总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** UMem实例列表, 详细参见UMemDataSet */ + + + + /** + * UMem实例列表, 详细参见UMemDataSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,633 +57,848 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - - public static class UMemDataSet extends Response { - - /** 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html) */ - @SerializedName("Zone") - private String zone; - - /** 是否拥有只读Slave “Yes” 包含 “No” 不包含 */ - @SerializedName("OwnSlave") - private String ownSlave; - - /** UMEM实例列表 UMemSlaveDataSet 如果没有slave,则没有该字段 */ - @SerializedName("DataSet") - private List dataSet; - - /** 表示实例是主库还是从库,master,slave 仅主备redis返回该项参数 */ - @SerializedName("Role") - private String role; - - /** 主备redis和分布式redis运维时间 0 //0点 1 //1点 以此类推 单机版memcache不返回该项 */ - @SerializedName("RewriteTime") - private Integer rewriteTime; - - /** vpc */ - @SerializedName("VPCId") - private String vpcId; - - /** 子网 */ - @SerializedName("SubnetId") - private String subnetId; - - /** 资源ID */ - @SerializedName("ResourceId") - private String resourceId; - - /** 资源名称 */ - @SerializedName("Name") - private String name; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 到期时间 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 空间类型:single(无热备),double(热备) */ - @SerializedName("Type") - private String type; - - /** 协议类型: memcache, redis */ - @SerializedName("Protocol") - private String protocol; - - /** 容量单位GB */ - @SerializedName("Size") - private Integer size; - - /** 使用量单位MB */ - @SerializedName("UsedSize") - private Integer usedSize; - - /** - * 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 - * DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 - * ConfigFail // 配置失败Restarting // 重启中 SetPasswordFail //设置密码失败 - */ - @SerializedName("State") - private String state; - - /** 计费模式,Year, Month, Dynamic, Trial */ - @SerializedName("ChargeType") - private String chargeType; - - /** IP端口信息请,参见UMemSpaceAddressSet */ - @SerializedName("Address") - private List address; - - /** 业务组名称 */ - @SerializedName("Tag") - private String tag; - - /** distributed: 分布式版Redis,或者分布式Memcache;single:主备版Redis,或者单机Memcache;performance:高性能版 */ - @SerializedName("ResourceType") - private String resourceType; - - /** 节点的配置ID */ - @SerializedName("ConfigId") - private String configId; - - /** 是否需要自动备份,enable,disable */ - @SerializedName("AutoBackup") - private String autoBackup; - - /** 自动备份开始时间,单位小时计,范围[0-23] */ - @SerializedName("BackupTime") - private Integer backupTime; - - /** 是否开启高可用,enable,disable */ - @SerializedName("HighAvailability") - private String highAvailability; - - /** Redis版本信息 */ - @SerializedName("Version") - private String version; - - /** 跨机房URedis,slave redis所在可用区,参见 [可用区列表](../summary/regionlist.html) */ - @SerializedName("SlaveZone") - private String slaveZone; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getOwnSlave() { - return ownSlave; - } - - public void setOwnSlave(String ownSlave) { - this.ownSlave = ownSlave; - } - - public List getDataSet() { - return dataSet; - } - - public void setDataSet(List dataSet) { - this.dataSet = dataSet; - } - - public String getRole() { - return role; - } - - public void setRole(String role) { - this.role = role; - } - - public Integer getRewriteTime() { - return rewriteTime; - } - - public void setRewriteTime(Integer rewriteTime) { - this.rewriteTime = rewriteTime; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public String getResourceId() { - return resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public Integer getExpireTime() { - return expireTime; - } - - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol; - } - - public Integer getSize() { - return size; - } - - public void setSize(Integer size) { - this.size = size; - } - - public Integer getUsedSize() { - return usedSize; - } - - public void setUsedSize(Integer usedSize) { - this.usedSize = usedSize; - } - - public String getState() { - return state; - } - - public void setState(String state) { - this.state = state; - } - - public String getChargeType() { - return chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - - public List getAddress() { - return address; - } - - public void setAddress(List address) { - this.address = address; - } - - public String getTag() { - return tag; - } - - public void setTag(String tag) { - this.tag = tag; - } - - public String getResourceType() { - return resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public String getConfigId() { - return configId; - } - - public void setConfigId(String configId) { - this.configId = configId; - } - - public String getAutoBackup() { - return autoBackup; - } - - public void setAutoBackup(String autoBackup) { - this.autoBackup = autoBackup; - } - - public Integer getBackupTime() { - return backupTime; - } - - public void setBackupTime(Integer backupTime) { - this.backupTime = backupTime; - } - - public String getHighAvailability() { - return highAvailability; - } - - public void setHighAvailability(String highAvailability) { - this.highAvailability = highAvailability; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public String getSlaveZone() { - return slaveZone; - } - - public void setSlaveZone(String slaveZone) { - this.slaveZone = slaveZone; - } + + public static class UMemDataSet extends Response { + + + /** + * 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html) + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 是否拥有只读Slave +“Yes” 包含 +“No” 不包含 + */ + @SerializedName("OwnSlave") + private String ownSlave; + + + + /** + * UMEM实例列表 UMemSlaveDataSet 如果没有slave,则没有该字段 + */ + @SerializedName("DataSet") + private List dataSet; + + + + /** + * 表示实例是主库还是从库,master,slave +仅主备redis返回该项参数 + */ + @SerializedName("Role") + private String role; + + + + /** + * 主备redis和分布式redis运维时间 +0 //0点 +1 //1点 +以此类推 +单机版memcache不返回该项 + */ + @SerializedName("RewriteTime") + private Integer rewriteTime; + + + + /** + * vpc + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 子网 + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * 资源ID + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 资源名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 到期时间 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 空间类型:single(无热备),double(热备) + */ + @SerializedName("Type") + private String type; + + + + /** + * 协议类型: memcache, redis + */ + @SerializedName("Protocol") + private String protocol; + + + + /** + * 容量单位GB + */ + @SerializedName("Size") + private Integer size; + + + + /** + * 使用量单位MB + */ + @SerializedName("UsedSize") + private Integer usedSize; + + + + /** + * 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中 +SetPasswordFail //设置密码失败 + */ + @SerializedName("State") + private String state; + + + + /** + * 计费模式,Year, Month, Dynamic, Trial + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * IP端口信息请,参见UMemSpaceAddressSet + */ + @SerializedName("Address") + private List address; + + + + /** + * 业务组名称 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * distributed: 分布式版Redis,或者分布式Memcache;single:主备版Redis,或者单机Memcache;performance:高性能版 + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 节点的配置ID + */ + @SerializedName("ConfigId") + private String configId; + + + + /** + * 是否需要自动备份,enable,disable + */ + @SerializedName("AutoBackup") + private String autoBackup; + + + + /** + * 自动备份开始时间,单位小时计,范围[0-23] + */ + @SerializedName("BackupTime") + private Integer backupTime; + + + + /** + * 是否开启高可用,enable,disable + */ + @SerializedName("HighAvailability") + private String highAvailability; + + + + /** + * Redis版本信息 + */ + @SerializedName("Version") + private String version; + + + + /** + * 跨机房URedis,slave redis所在可用区,参见 [可用区列表](../summary/regionlist.html) + */ + @SerializedName("SlaveZone") + private String slaveZone; + + + public String getZone() { + return zone; } - public static class UMemSlaveDataSet extends Response { - - /** 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html) */ - @SerializedName("Zone") - private String zone; - - /** 子网 */ - @SerializedName("SubnetId") - private String subnetId; - - /** vpc */ - @SerializedName("VPCId") - private String vpcId; - - /** */ - @SerializedName("VirtualIP") - private String virtualIP; - - /** 主备Redis返回运维时间 0//0点 1 //1点 以此类推 */ - @SerializedName("RewriteTime") - private Integer rewriteTime; - - /** 主实例id */ - @SerializedName("MasterGroupId") - private String masterGroupId; - - /** 资源id */ - @SerializedName("GroupId") - private String groupId; - - /** 端口 */ - @SerializedName("Port") - private Integer port; - - /** 实力大小 */ - @SerializedName("MemorySize") - private Integer memorySize; - - /** 资源名称 */ - @SerializedName("GroupName") - private String groupName; - - /** 表示实例是主库还是从库,master,slave */ - @SerializedName("Role") - private String role; - - /** 修改时间 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** 资源名称 */ - @SerializedName("Name") - private String name; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 到期时间 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 容量单位GB */ - @SerializedName("Size") - private Integer size; - - /** 使用量单位MB */ - @SerializedName("UsedSize") - private Integer usedSize; + public void setZone(String zone) { + this.zone = zone; + } + + public String getOwnSlave() { + return ownSlave; + } - /** - * 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 - * DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 - * ConfigFail // 配置失败Restarting // 重启中 SetPasswordFail //设置密码失败 - */ - @SerializedName("State") - private String state; + public void setOwnSlave(String ownSlave) { + this.ownSlave = ownSlave; + } + + public List getDataSet() { + return dataSet; + } - /** 计费模式,Year, Month, Dynamic, Trial */ - @SerializedName("ChargeType") - private String chargeType; + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public String getRole() { + return role; + } - /** 业务组名称 */ - @SerializedName("Tag") - private String tag; + public void setRole(String role) { + this.role = role; + } + + public Integer getRewriteTime() { + return rewriteTime; + } - /** distributed: 分布式版Redis,或者分布式Memcache;single:主备版Redis,或者单机Memcache;performance:高性能版 */ - @SerializedName("ResourceType") - private String resourceType; + public void setRewriteTime(Integer rewriteTime) { + this.rewriteTime = rewriteTime; + } + + public String getVPCId() { + return vpcId; + } - /** 节点的配置ID */ - @SerializedName("ConfigId") - private String configId; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } - /** Redis版本信息 */ - @SerializedName("Version") - private String version; + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getResourceId() { + return resourceId; + } - public String getZone() { - return zone; - } + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getName() { + return name; + } - public void setZone(String zone) { - this.zone = zone; - } + public void setName(String name) { + this.name = name; + } + + public Integer getCreateTime() { + return createTime; + } - public String getSubnetId() { - return subnetId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getType() { + return type; + } - public String getVPCId() { - return vpcId; - } + public void setType(String type) { + this.type = type; + } + + public String getProtocol() { + return protocol; + } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public Integer getSize() { + return size; + } - public String getVirtualIP() { - return virtualIP; - } + public void setSize(Integer size) { + this.size = size; + } + + public Integer getUsedSize() { + return usedSize; + } - public void setVirtualIP(String virtualIP) { - this.virtualIP = virtualIP; - } + public void setUsedSize(Integer usedSize) { + this.usedSize = usedSize; + } + + public String getState() { + return state; + } - public Integer getRewriteTime() { - return rewriteTime; - } + public void setState(String state) { + this.state = state; + } + + public String getChargeType() { + return chargeType; + } - public void setRewriteTime(Integer rewriteTime) { - this.rewriteTime = rewriteTime; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public List getAddress() { + return address; + } - public String getMasterGroupId() { - return masterGroupId; - } + public void setAddress(List address) { + this.address = address; + } + + public String getTag() { + return tag; + } - public void setMasterGroupId(String masterGroupId) { - this.masterGroupId = masterGroupId; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getResourceType() { + return resourceType; + } - public String getGroupId() { - return groupId; - } + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getConfigId() { + return configId; + } - public void setGroupId(String groupId) { - this.groupId = groupId; - } + public void setConfigId(String configId) { + this.configId = configId; + } + + public String getAutoBackup() { + return autoBackup; + } - public Integer getPort() { - return port; - } + public void setAutoBackup(String autoBackup) { + this.autoBackup = autoBackup; + } + + public Integer getBackupTime() { + return backupTime; + } - public void setPort(Integer port) { - this.port = port; - } + public void setBackupTime(Integer backupTime) { + this.backupTime = backupTime; + } + + public String getHighAvailability() { + return highAvailability; + } - public Integer getMemorySize() { - return memorySize; - } + public void setHighAvailability(String highAvailability) { + this.highAvailability = highAvailability; + } + + public String getVersion() { + return version; + } - public void setMemorySize(Integer memorySize) { - this.memorySize = memorySize; - } + public void setVersion(String version) { + this.version = version; + } + + public String getSlaveZone() { + return slaveZone; + } - public String getGroupName() { - return groupName; - } + public void setSlaveZone(String slaveZone) { + this.slaveZone = slaveZone; + } + + } + public static class UMemSlaveDataSet extends Response { + + + /** + * 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html) + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 子网 + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * vpc + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * + */ + @SerializedName("VirtualIP") + private String virtualIP; + + + + /** + * 主备Redis返回运维时间 0//0点 1 //1点 以此类推 + */ + @SerializedName("RewriteTime") + private Integer rewriteTime; + + + + /** + * 主实例id + */ + @SerializedName("MasterGroupId") + private String masterGroupId; + + + + /** + * 资源id + */ + @SerializedName("GroupId") + private String groupId; + + + + /** + * 端口 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * 实力大小 + */ + @SerializedName("MemorySize") + private Integer memorySize; + + + + /** + * 资源名称 + */ + @SerializedName("GroupName") + private String groupName; + + + + /** + * 表示实例是主库还是从库,master,slave + */ + @SerializedName("Role") + private String role; + + + + /** + * 修改时间 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 资源名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 到期时间 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 容量单位GB + */ + @SerializedName("Size") + private Integer size; + + + + /** + * 使用量单位MB + */ + @SerializedName("UsedSize") + private Integer usedSize; + + + + /** + * 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中 +SetPasswordFail //设置密码失败 + */ + @SerializedName("State") + private String state; + + + + /** + * 计费模式,Year, Month, Dynamic, Trial + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 业务组名称 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * distributed: 分布式版Redis,或者分布式Memcache;single:主备版Redis,或者单机Memcache;performance:高性能版 + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 节点的配置ID + */ + @SerializedName("ConfigId") + private String configId; + + + + /** + * Redis版本信息 + */ + @SerializedName("Version") + private String version; + + + public String getZone() { + return zone; + } - public void setGroupName(String groupName) { - this.groupName = groupName; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getSubnetId() { + return subnetId; + } - public String getRole() { - return role; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getVPCId() { + return vpcId; + } - public void setRole(String role) { - this.role = role; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getVirtualIP() { + return virtualIP; + } - public Integer getModifyTime() { - return modifyTime; - } + public void setVirtualIP(String virtualIP) { + this.virtualIP = virtualIP; + } + + public Integer getRewriteTime() { + return rewriteTime; + } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } + public void setRewriteTime(Integer rewriteTime) { + this.rewriteTime = rewriteTime; + } + + public String getMasterGroupId() { + return masterGroupId; + } - public String getName() { - return name; - } + public void setMasterGroupId(String masterGroupId) { + this.masterGroupId = masterGroupId; + } + + public String getGroupId() { + return groupId; + } - public void setName(String name) { - this.name = name; - } + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public Integer getPort() { + return port; + } - public Integer getCreateTime() { - return createTime; - } + public void setPort(Integer port) { + this.port = port; + } + + public Integer getMemorySize() { + return memorySize; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setMemorySize(Integer memorySize) { + this.memorySize = memorySize; + } + + public String getGroupName() { + return groupName; + } - public Integer getExpireTime() { - return expireTime; - } + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public String getRole() { + return role; + } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } + public void setRole(String role) { + this.role = role; + } + + public Integer getModifyTime() { + return modifyTime; + } - public Integer getSize() { - return size; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public String getName() { + return name; + } - public void setSize(Integer size) { - this.size = size; - } + public void setName(String name) { + this.name = name; + } + + public Integer getCreateTime() { + return createTime; + } - public Integer getUsedSize() { - return usedSize; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public void setUsedSize(Integer usedSize) { - this.usedSize = usedSize; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getSize() { + return size; + } - public String getState() { - return state; - } + public void setSize(Integer size) { + this.size = size; + } + + public Integer getUsedSize() { + return usedSize; + } - public void setState(String state) { - this.state = state; - } + public void setUsedSize(Integer usedSize) { + this.usedSize = usedSize; + } + + public String getState() { + return state; + } - public String getChargeType() { - return chargeType; - } + public void setState(String state) { + this.state = state; + } + + public String getChargeType() { + return chargeType; + } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getTag() { + return tag; + } - public String getTag() { - return tag; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getResourceType() { + return resourceType; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getConfigId() { + return configId; + } - public String getResourceType() { - return resourceType; - } + public void setConfigId(String configId) { + this.configId = configId; + } + + public String getVersion() { + return version; + } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } + public void setVersion(String version) { + this.version = version; + } + + } + public static class UMemSpaceAddressSet extends Response { + + + /** + * UMem实例访问IP + */ + @SerializedName("IP") + private String ip; + + + + /** + * UMem实例访问Port + */ + @SerializedName("Port") + private Integer port; + + + public String getIP() { + return ip; + } - public String getConfigId() { - return configId; - } + public void setIP(String ip) { + this.ip = ip; + } + + public Integer getPort() { + return port; + } - public void setConfigId(String configId) { - this.configId = configId; + public void setPort(Integer port) { + this.port = port; + } + } +} - public String getVersion() { - return version; - } - public void setVersion(String version) { - this.version = version; - } - } - public static class UMemSpaceAddressSet extends Response { - /** UMem实例访问IP */ - @SerializedName("IP") - private String ip; - /** UMem实例访问Port */ - @SerializedName("Port") - private Integer port; - public String getIP() { - return ip; - } - public void setIP(String ip) { - this.ip = ip; - } - public Integer getPort() { - return port; - } - public void setPort(Integer port) { - this.port = port; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemSpaceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemSpaceRequest.java index d5184494..c84edc68 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemSpaceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemSpaceRequest.java @@ -1,54 +1,88 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUMemSpaceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 数据偏移量, 默认为0 */ + + + + /** + * 数据偏移量, 默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度, 默认为20 */ + + + + /** + * 返回数据长度, 默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 内存空间ID (无ID,则获取所有) */ + + + + /** + * 内存空间ID (无ID,则获取所有) + */ @UCloudParam("SpaceId") private String spaceId; - - /** 协议类型: memcache, redis */ + + + + /** + * 协议类型: memcache, redis + */ @UCloudParam("Protocol") private String protocol; - + + public String getRegion() { return region; } @@ -56,7 +90,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -64,7 +98,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -72,7 +106,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getOffset() { return offset; } @@ -80,7 +114,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -88,7 +122,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getSpaceId() { return spaceId; } @@ -96,7 +130,7 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } - + public String getProtocol() { return protocol; } @@ -104,4 +138,14 @@ public String getProtocol() { public void setProtocol(String protocol) { this.protocol = protocol; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemSpaceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemSpaceResponse.java index ca4bc774..c2dee1fe 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemSpaceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemSpaceResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUMemSpaceResponse extends Response { - /** JSON 格式的UMem内存空间实例列表, 详细参见 UMemSpaceSet */ + + + /** + * JSON 格式的UMem内存空间实例列表, 详细参见 UMemSpaceSet + */ @SerializedName("DataSet") private List dataSet; - - /** 根据过滤条件得到的总数 */ + + + + /** + * 根据过滤条件得到的总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,226 +57,311 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - - public static class UMemSpaceAddressSet extends Response { - - /** UMem实例访问IP */ - @SerializedName("IP") - private String ip; - - /** UMem实例访问Port */ - @SerializedName("Port") - private Integer port; - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } + + public static class UMemSpaceAddressSet extends Response { + + + /** + * UMem实例访问IP + */ + @SerializedName("IP") + private String ip; + + + + /** + * UMem实例访问Port + */ + @SerializedName("Port") + private Integer port; + + + public String getIP() { + return ip; } - public static class UMemSpaceSet extends Response { - - /** 可用区,参见[可用区列表](../summary/regionlist.html) */ - @SerializedName("Zone") - private String zone; - - /** */ - @SerializedName("Tag") - private String tag; - - /** 运维时间 0 //0点 1 //1点 依次类推 */ - @SerializedName("RewriteTime") - private Integer rewriteTime; - - /** 内存空间ID */ - @SerializedName("SpaceId") - private String spaceId; - - /** */ - @SerializedName("SubnetId") - private String subnetId; - - /** */ - @SerializedName("VPCId") - private String vpcId; - - /** 内存空间名称 */ - @SerializedName("Name") - private String name; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 到期时间 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 空间类型:single(无热备),double(热备) */ - @SerializedName("Type") - private String type; - - /** 协议类型: memcache, redis */ - @SerializedName("Protocol") - private String protocol; - - /** 容量单位GB */ - @SerializedName("Size") - private Integer size; - - /** 使用量单位MB */ - @SerializedName("UsedSize") - private Integer usedSize; - - /** Starting:创建中 Running:运行中 Fail:失败 */ - @SerializedName("State") - private String state; - - /** Year, Month, Dynamic, Trial */ - @SerializedName("ChargeType") - private String chargeType; - - /** IP端口信息请参见 UMemSpaceAddressSet */ - @SerializedName("Address") - private List address; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getTag() { - return tag; - } - - public void setTag(String tag) { - this.tag = tag; - } - - public Integer getRewriteTime() { - return rewriteTime; - } - - public void setRewriteTime(Integer rewriteTime) { - this.rewriteTime = rewriteTime; - } + public void setIP(String ip) { + this.ip = ip; + } + + public Integer getPort() { + return port; + } - public String getSpaceId() { - return spaceId; - } + public void setPort(Integer port) { + this.port = port; + } + + } + public static class UMemSpaceSet extends Response { + + + /** + * 可用区,参见[可用区列表](../summary/regionlist.html) + */ + @SerializedName("Zone") + private String zone; + + + + /** + * + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 运维时间 +0 //0点 +1 //1点 +依次类推 + */ + @SerializedName("RewriteTime") + private Integer rewriteTime; + + + + /** + * 内存空间ID + */ + @SerializedName("SpaceId") + private String spaceId; + + + + /** + * + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 内存空间名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 到期时间 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 空间类型:single(无热备),double(热备) + */ + @SerializedName("Type") + private String type; + + + + /** + * 协议类型: memcache, redis + */ + @SerializedName("Protocol") + private String protocol; + + + + /** + * 容量单位GB + */ + @SerializedName("Size") + private Integer size; + + + + /** + * 使用量单位MB + */ + @SerializedName("UsedSize") + private Integer usedSize; + + + + /** + * Starting:创建中 Running:运行中 Fail:失败 + */ + @SerializedName("State") + private String state; + + + + /** + * Year, Month, Dynamic, Trial + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * IP端口信息请参见 UMemSpaceAddressSet + */ + @SerializedName("Address") + private List address; + + + public String getZone() { + return zone; + } - public void setSpaceId(String spaceId) { - this.spaceId = spaceId; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getTag() { + return tag; + } - public String getSubnetId() { - return subnetId; - } + public void setTag(String tag) { + this.tag = tag; + } + + public Integer getRewriteTime() { + return rewriteTime; + } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } + public void setRewriteTime(Integer rewriteTime) { + this.rewriteTime = rewriteTime; + } + + public String getSpaceId() { + return spaceId; + } - public String getVPCId() { - return vpcId; - } + public void setSpaceId(String spaceId) { + this.spaceId = spaceId; + } + + public String getSubnetId() { + return subnetId; + } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getVPCId() { + return vpcId; + } - public String getName() { - return name; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getName() { + return name; + } - public void setName(String name) { - this.name = name; - } + public void setName(String name) { + this.name = name; + } + + public Integer getCreateTime() { + return createTime; + } - public Integer getCreateTime() { - return createTime; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getType() { + return type; + } - public Integer getExpireTime() { - return expireTime; - } + public void setType(String type) { + this.type = type; + } + + public String getProtocol() { + return protocol; + } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public Integer getSize() { + return size; + } - public String getType() { - return type; - } + public void setSize(Integer size) { + this.size = size; + } + + public Integer getUsedSize() { + return usedSize; + } - public void setType(String type) { - this.type = type; - } + public void setUsedSize(Integer usedSize) { + this.usedSize = usedSize; + } + + public String getState() { + return state; + } - public String getProtocol() { - return protocol; - } + public void setState(String state) { + this.state = state; + } + + public String getChargeType() { + return chargeType; + } - public void setProtocol(String protocol) { - this.protocol = protocol; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public List getAddress() { + return address; + } - public Integer getSize() { - return size; + public void setAddress(List address) { + this.address = address; + } + } +} - public void setSize(Integer size) { - this.size = size; - } - public Integer getUsedSize() { - return usedSize; - } - public void setUsedSize(Integer usedSize) { - this.usedSize = usedSize; - } - public String getState() { - return state; - } - public void setState(String state) { - this.state = state; - } - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public List getAddress() { - return address; - } - public void setAddress(List address) { - this.address = address; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemUpgradePriceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemUpgradePriceRequest.java index bf7a578e..46ed7356 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemUpgradePriceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemUpgradePriceRequest.java @@ -1,56 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUMemUpgradePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 购买UMem大小,单位:GB */ + + + + /** + * 购买UMem大小,单位:GB + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 空间类型:single(无热备),double(热备)(默认: double) */ + + + + /** + * 空间类型:single(无热备),double(热备)(默认: double) + */ @NotEmpty @UCloudParam("Type") private String type; - - /** 需要升级的空间的SpaceId */ + + + + /** + * 需要升级的空间的SpaceId + */ @NotEmpty @UCloudParam("SpaceId") private String spaceId; - + + public String getRegion() { return region; } @@ -58,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -66,7 +93,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -74,7 +101,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getSize() { return size; } @@ -82,7 +109,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getType() { return type; } @@ -90,7 +117,7 @@ public String getType() { public void setType(String type) { this.type = type; } - + public String getSpaceId() { return spaceId; } @@ -98,4 +125,14 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemUpgradePriceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemUpgradePriceResponse.java index 56d1be49..2d5e65c1 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemUpgradePriceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemUpgradePriceResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUMemUpgradePriceResponse extends Response { - /** 价格 */ + + + /** + * 价格 + */ @SerializedName("Price") private Integer price; - - /** 原价 */ + + + + /** + * 原价 + */ @SerializedName("OriginalPrice") private Integer originalPrice; - + + public Integer getPrice() { return price; } @@ -35,7 +49,7 @@ public Integer getPrice() { public void setPrice(Integer price) { this.price = price; } - + public Integer getOriginalPrice() { return originalPrice; } @@ -43,4 +57,14 @@ public Integer getOriginalPrice() { public void setOriginalPrice(Integer originalPrice) { this.originalPrice = originalPrice; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheGroupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheGroupRequest.java index 37b14e7a..8ff4bdfa 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheGroupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheGroupRequest.java @@ -1,50 +1,80 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUMemcacheGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 组的ID,如果指定则获取描述,否则为列表操 作,需指定Offset/Limit */ + + + + /** + * 组的ID,如果指定则获取描述,否则为列表操 作,需指定Offset/Limit + */ @UCloudParam("GroupId") private String groupId; - - /** 分页显示的起始偏移, 默认值为0 */ + + + + /** + * 分页显示的起始偏移, 默认值为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 分页显示的条目数, 默认值为20 */ + + + + /** + * 分页显示的条目数, 默认值为20 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -52,7 +82,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -60,7 +90,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -68,7 +98,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -76,7 +106,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public Integer getOffset() { return offset; } @@ -84,7 +114,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -92,4 +122,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheGroupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheGroupResponse.java index 5afbc205..96eb0730 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheGroupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheGroupResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUMemcacheGroupResponse extends Response { - /** 组的总的节点个数 */ + + + /** + * 组的总的节点个数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 组列表,参见 UMemcacheGroupSet */ + + + + /** + * 组列表,参见 UMemcacheGroupSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,179 +57,241 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UMemcacheGroupSet extends Response { + + + /** + * 组ID + */ + @SerializedName("GroupId") + private String groupId; + + + + /** + * 组名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 节点的配置ID + */ + @SerializedName("ConfigId") + private String configId; + + + + /** + * 节点的虚拟IP地址 + */ + @SerializedName("VirtualIP") + private String virtualIP; + + + + /** + * 节点分配的服务端口 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * 容量单位GB + */ + @SerializedName("Size") + private Integer size; + + + + /** + * 使用量单位MB + */ + @SerializedName("UsedSize") + private Integer usedSize; + + + + /** + * Memcache版本信息,默认为1.4.31 + */ + @SerializedName("Version") + private String version; + + + + /** + * 状态标记 Creating // 初始化中 CreateFail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中 + */ + @SerializedName("State") + private String state; + + + + /** + * 创建时间 (UNIX时间戳) + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间 (UNIX时间戳) + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 过期时间 (UNIX时间戳) + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 计费类型:Year,Month,Dynamic 默认Dynamic + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 业务组名称 + */ + @SerializedName("Tag") + private String tag; + + + public String getGroupId() { + return groupId; + } - public static class UMemcacheGroupSet extends Response { - - /** 组ID */ - @SerializedName("GroupId") - private String groupId; - - /** 组名称 */ - @SerializedName("Name") - private String name; - - /** 节点的配置ID */ - @SerializedName("ConfigId") - private String configId; - - /** 节点的虚拟IP地址 */ - @SerializedName("VirtualIP") - private String virtualIP; - - /** 节点分配的服务端口 */ - @SerializedName("Port") - private Integer port; - - /** 容量单位GB */ - @SerializedName("Size") - private Integer size; - - /** 使用量单位MB */ - @SerializedName("UsedSize") - private Integer usedSize; - - /** Memcache版本信息,默认为1.4.31 */ - @SerializedName("Version") - private String version; - - /** - * 状态标记 Creating // 初始化中 CreateFail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 - * Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // - * 重启中 - */ - @SerializedName("State") - private String state; - - /** 创建时间 (UNIX时间戳) */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 修改时间 (UNIX时间戳) */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** 过期时间 (UNIX时间戳) */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 计费类型:Year,Month,Dynamic 默认Dynamic */ - @SerializedName("ChargeType") - private String chargeType; - - /** 业务组名称 */ - @SerializedName("Tag") - private String tag; - - public String getGroupId() { - return groupId; - } - - public void setGroupId(String groupId) { - this.groupId = groupId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getConfigId() { - return configId; - } - - public void setConfigId(String configId) { - this.configId = configId; - } + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public String getName() { + return name; + } - public String getVirtualIP() { - return virtualIP; - } + public void setName(String name) { + this.name = name; + } + + public String getConfigId() { + return configId; + } - public void setVirtualIP(String virtualIP) { - this.virtualIP = virtualIP; - } + public void setConfigId(String configId) { + this.configId = configId; + } + + public String getVirtualIP() { + return virtualIP; + } - public Integer getPort() { - return port; - } + public void setVirtualIP(String virtualIP) { + this.virtualIP = virtualIP; + } + + public Integer getPort() { + return port; + } - public void setPort(Integer port) { - this.port = port; - } + public void setPort(Integer port) { + this.port = port; + } + + public Integer getSize() { + return size; + } - public Integer getSize() { - return size; - } + public void setSize(Integer size) { + this.size = size; + } + + public Integer getUsedSize() { + return usedSize; + } - public void setSize(Integer size) { - this.size = size; - } + public void setUsedSize(Integer usedSize) { + this.usedSize = usedSize; + } + + public String getVersion() { + return version; + } - public Integer getUsedSize() { - return usedSize; - } + public void setVersion(String version) { + this.version = version; + } + + public String getState() { + return state; + } - public void setUsedSize(Integer usedSize) { - this.usedSize = usedSize; - } + public void setState(String state) { + this.state = state; + } + + public Integer getCreateTime() { + return createTime; + } - public String getVersion() { - return version; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public void setVersion(String version) { - this.version = version; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public String getState() { - return state; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getChargeType() { + return chargeType; + } - public void setState(String state) { - this.state = state; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getTag() { + return tag; + } - public Integer getCreateTime() { - return createTime; + public void setTag(String tag) { + this.tag = tag; + } + } +} - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getModifyTime() { - return modifyTime; - } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - public Integer getExpireTime() { - return expireTime; - } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcachePriceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcachePriceRequest.java index 1891a454..2461cbec 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcachePriceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcachePriceRequest.java @@ -1,56 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUMemcachePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 容量大小,单位:GB 取值范围[1-32] */ + + + + /** + * 容量大小,单位:GB 取值范围[1-32] + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 计费模式,Year, Month, Dynamic,默认: Dynamic 默认: 获取所有计费模式的价格 */ + + + + /** + * 计费模式,Year, Month, Dynamic,默认: Dynamic 默认: 获取所有计费模式的价格 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买umemcache的时长,默认值为1 */ + + + + /** + * 购买umemcache的时长,默认值为1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 空间类型:single(无热备),double(热备)(默认: double) */ + + + + /** + * 空间类型:single(无热备),double(热备)(默认: double) + */ @UCloudParam("Type") private String type; - + + public String getRegion() { return region; } @@ -58,7 +92,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -66,7 +100,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -74,7 +108,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getSize() { return size; } @@ -82,7 +116,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getChargeType() { return chargeType; } @@ -90,7 +124,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -98,7 +132,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getType() { return type; } @@ -106,4 +140,14 @@ public String getType() { public void setType(String type) { this.type = type; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcachePriceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcachePriceResponse.java index d6ec79e4..a46cf798 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcachePriceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcachePriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUMemcachePriceResponse extends Response { - /** 价格列表, 参见 UMemcachePriceSet */ + + + /** + * 价格列表, 参见 UMemcachePriceSet + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,55 +41,81 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class UMemcachePriceSet extends Response { + + + /** + * 计费模式,Year, Month, Dynamic + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 总价格 + */ + @SerializedName("Price") + private Integer price; + + + + /** + * 产品列表价 + */ + @SerializedName("ListPrice") + private Integer listPrice; + + + + /** + * 原价 + */ + @SerializedName("OriginalPrice") + private Integer originalPrice; + + + public String getChargeType() { + return chargeType; + } - public static class UMemcachePriceSet extends Response { + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getPrice() { + return price; + } - /** 计费模式,Year, Month, Dynamic */ - @SerializedName("ChargeType") - private String chargeType; + public void setPrice(Integer price) { + this.price = price; + } + + public Integer getListPrice() { + return listPrice; + } - /** 总价格 */ - @SerializedName("Price") - private Integer price; + public void setListPrice(Integer listPrice) { + this.listPrice = listPrice; + } + + public Integer getOriginalPrice() { + return originalPrice; + } - /** 产品列表价 */ - @SerializedName("ListPrice") - private Integer listPrice; + public void setOriginalPrice(Integer originalPrice) { + this.originalPrice = originalPrice; + } + + } +} - /** 原价 */ - @SerializedName("OriginalPrice") - private Integer originalPrice; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Integer getPrice() { - return price; - } - public void setPrice(Integer price) { - this.price = price; - } - public Integer getListPrice() { - return listPrice; - } - public void setListPrice(Integer listPrice) { - this.listPrice = listPrice; - } - public Integer getOriginalPrice() { - return originalPrice; - } - public void setOriginalPrice(Integer originalPrice) { - this.originalPrice = originalPrice; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceRequest.java index 49492f5e..e109e624 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceRequest.java @@ -1,35 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUMemcacheUpgradePriceRequest extends Request { - /** 购买umemcache大小,单位:GB */ + + + /** + * 购买umemcache大小,单位:GB + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 需要升级的空间的GroupId,请参考DescribeUMemcacheGroup接口 */ + + + + /** + * 需要升级的空间的GroupId,请参考DescribeUMemcacheGroup接口 + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - + + public Integer getSize() { return size; } @@ -37,7 +51,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getGroupId() { return groupId; } @@ -45,4 +59,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceResponse.java index ddf07088..b99a9784 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUMemcacheUpgradePriceResponse extends Response { - /** 价格,单位:元 */ + + + /** + * 价格,单位:元 + */ @SerializedName("Price") private Double price; - + + public Double getPrice() { return price; } @@ -31,4 +41,14 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupRequest.java index 7684c5be..ed767eef 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupRequest.java @@ -1,46 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeURedisBackupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 分页显示的起始偏移, 默认值为0 */ + + + + /** + * 分页显示的起始偏移, 默认值为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 分页显示的条目数, 默认值为10 */ + + + + /** + * 分页显示的条目数, 默认值为10 + */ @UCloudParam("Limit") private Integer limit; - - /** 组的ID */ + + + + /** + * 组的ID + */ @UCloudParam("GroupId") private String groupId; - + + public String getRegion() { return region; } @@ -48,7 +74,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -56,7 +82,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getOffset() { return offset; } @@ -64,7 +90,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -72,7 +98,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getGroupId() { return groupId; } @@ -80,4 +106,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupResponse.java index 57da8858..eb434a61 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeURedisBackupResponse extends Response { - /** 用户名下总的备份个数 */ + + + /** + * 用户名下总的备份个数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 备份列表 参见 URedisBackupSet */ + + + + /** + * 备份列表 参见 URedisBackupSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,115 +57,161 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class URedisBackupSet extends Response { + + + /** + * 备份ID + */ + @SerializedName("BackupId") + private String backupId; + + + + /** + * 可用区,参见[可用区列表](../summary/regionlist.html) + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 对应的实例ID + */ + @SerializedName("GroupId") + private String groupId; + + + + /** + * 组名称 + */ + @SerializedName("GroupName") + private String groupName; + + + + /** + * 备份的名称 + */ + @SerializedName("BackupName") + private String backupName; + + + + /** + * 备份时间 (UNIX时间戳) + */ + @SerializedName("BackupTime") + private Integer backupTime; + + + + /** + * 备份文件大小, 以字节为单位 + */ + @SerializedName("BackupSize") + private Integer backupSize; + + + + /** + * 备份类型: Manual 手动 Auto 自动 + */ + @SerializedName("BackupType") + private String backupType; + + + + /** + * 备份的状态: Backuping 备份中 Success 备份成功 Error 备份失败 Expired 备份过期 + */ + @SerializedName("State") + private String state; + + + public String getBackupId() { + return backupId; + } - public static class URedisBackupSet extends Response { - - /** 备份ID */ - @SerializedName("BackupId") - private String backupId; - - /** 可用区,参见[可用区列表](../summary/regionlist.html) */ - @SerializedName("Zone") - private String zone; - - /** 对应的实例ID */ - @SerializedName("GroupId") - private String groupId; - - /** 组名称 */ - @SerializedName("GroupName") - private String groupName; - - /** 备份的名称 */ - @SerializedName("BackupName") - private String backupName; - - /** 备份时间 (UNIX时间戳) */ - @SerializedName("BackupTime") - private Integer backupTime; - - /** 备份文件大小, 以字节为单位 */ - @SerializedName("BackupSize") - private Integer backupSize; - - /** 备份类型: Manual 手动 Auto 自动 */ - @SerializedName("BackupType") - private String backupType; - - /** 备份的状态: Backuping 备份中 Success 备份成功 Error 备份失败 Expired 备份过期 */ - @SerializedName("State") - private String state; - - public String getBackupId() { - return backupId; - } + public void setBackupId(String backupId) { + this.backupId = backupId; + } + + public String getZone() { + return zone; + } - public void setBackupId(String backupId) { - this.backupId = backupId; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getGroupId() { + return groupId; + } - public String getZone() { - return zone; - } + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public String getGroupName() { + return groupName; + } - public void setZone(String zone) { - this.zone = zone; - } + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public String getBackupName() { + return backupName; + } - public String getGroupId() { - return groupId; - } + public void setBackupName(String backupName) { + this.backupName = backupName; + } + + public Integer getBackupTime() { + return backupTime; + } - public void setGroupId(String groupId) { - this.groupId = groupId; - } + public void setBackupTime(Integer backupTime) { + this.backupTime = backupTime; + } + + public Integer getBackupSize() { + return backupSize; + } - public String getGroupName() { - return groupName; - } + public void setBackupSize(Integer backupSize) { + this.backupSize = backupSize; + } + + public String getBackupType() { + return backupType; + } - public void setGroupName(String groupName) { - this.groupName = groupName; - } + public void setBackupType(String backupType) { + this.backupType = backupType; + } + + public String getState() { + return state; + } - public String getBackupName() { - return backupName; + public void setState(String state) { + this.state = state; + } + } +} - public void setBackupName(String backupName) { - this.backupName = backupName; - } - public Integer getBackupTime() { - return backupTime; - } - public void setBackupTime(Integer backupTime) { - this.backupTime = backupTime; - } - public Integer getBackupSize() { - return backupSize; - } - public void setBackupSize(Integer backupSize) { - this.backupSize = backupSize; - } - public String getBackupType() { - return backupType; - } - public void setBackupType(String backupType) { - this.backupType = backupType; - } - public String getState() { - return state; - } - public void setState(String state) { - this.state = state; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupURLRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupURLRequest.java index 89ca0ea4..4716af1a 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupURLRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupURLRequest.java @@ -1,55 +1,89 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeURedisBackupURLRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 备份ID */ + + + + /** + * 备份ID + */ @NotEmpty @UCloudParam("BackupId") private String backupId; - - /** 是否是跨机房URedis(默认false) */ + + + + /** + * 是否是跨机房URedis(默认false) + */ @UCloudParam("RegionFlag") private Boolean regionFlag; - - /** 实例名称 */ + + + + /** + * 实例名称 + */ @UCloudParam("GroupId") private String groupId; - - /** 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) */ + + + + /** + * 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + */ @UCloudParam("SlaveZone") private String slaveZone; - + + public String getRegion() { return region; } @@ -57,7 +91,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +99,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -73,7 +107,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getBackupId() { return backupId; } @@ -81,7 +115,7 @@ public String getBackupId() { public void setBackupId(String backupId) { this.backupId = backupId; } - + public Boolean getRegionFlag() { return regionFlag; } @@ -89,7 +123,7 @@ public Boolean getRegionFlag() { public void setRegionFlag(Boolean regionFlag) { this.regionFlag = regionFlag; } - + public String getGroupId() { return groupId; } @@ -97,7 +131,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public String getSlaveZone() { return slaveZone; } @@ -105,4 +139,14 @@ public String getSlaveZone() { public void setSlaveZone(String slaveZone) { this.slaveZone = slaveZone; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupURLResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupURLResponse.java index 05f1d290..03fe91ac 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupURLResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisBackupURLResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeURedisBackupURLResponse extends Response { - /** 备份文件公网的地址 */ + + + /** + * 备份文件公网的地址 + */ @SerializedName("BackupURL") private String backupURL; - - /** 备份文件公网的地址 */ + + + + /** + * 备份文件公网的地址 + */ @SerializedName("BackupPath") private String backupPath; - + + public String getBackupURL() { return backupURL; } @@ -35,7 +49,7 @@ public String getBackupURL() { public void setBackupURL(String backupURL) { this.backupURL = backupURL; } - + public String getBackupPath() { return backupPath; } @@ -43,4 +57,14 @@ public String getBackupPath() { public void setBackupPath(String backupPath) { this.backupPath = backupPath; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisConfigRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisConfigRequest.java index 03f71418..5c71dc6c 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisConfigRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisConfigRequest.java @@ -1,60 +1,98 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeURedisConfigRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 是否是跨机房URedis(默认false) */ + + + + /** + * 是否是跨机房URedis(默认false) + */ @NotEmpty @UCloudParam("RegionFlag") private Boolean regionFlag; - - /** Redis版本号 */ + + + + /** + * Redis版本号 + */ @UCloudParam("Version") private String version; - - /** 配置文件ID */ + + + + /** + * 配置文件ID + */ @UCloudParam("ConfigId") private String configId; - - /** 页显示的起始偏移, 默认值为0 */ + + + + /** + * 页显示的起始偏移, 默认值为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 页显示的条目数, 默认值为10 */ + + + + /** + * 页显示的条目数, 默认值为10 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -62,7 +100,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -70,7 +108,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -78,7 +116,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Boolean getRegionFlag() { return regionFlag; } @@ -86,7 +124,7 @@ public Boolean getRegionFlag() { public void setRegionFlag(Boolean regionFlag) { this.regionFlag = regionFlag; } - + public String getVersion() { return version; } @@ -94,7 +132,7 @@ public String getVersion() { public void setVersion(String version) { this.version = version; } - + public String getConfigId() { return configId; } @@ -102,7 +140,7 @@ public String getConfigId() { public void setConfigId(String configId) { this.configId = configId; } - + public Integer getOffset() { return offset; } @@ -110,7 +148,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -118,4 +156,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisConfigResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisConfigResponse.java index 40799bb3..5a56460f 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisConfigResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisConfigResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeURedisConfigResponse extends Response { - /** 根据过滤条件得到的总数 */ + + + /** + * 根据过滤条件得到的总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 配置文件列表 参见 URedisConfigSet */ + + + + /** + * 配置文件列表 参见 URedisConfigSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,127 +57,177 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class URedisConfigSet extends Response { + + + /** + * Zone + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 配置ID + */ + @SerializedName("ConfigId") + private String configId; + + + + /** + * 配置名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 配置描述 + */ + @SerializedName("Description") + private String description; + + + + /** + * 配置对应的Redis版本 + */ + @SerializedName("Version") + private String version; + + + + /** + * 置是否可以修改 + */ + @SerializedName("IsModify") + private String isModify; + + + + /** + * 配置所处的状态 + */ + @SerializedName("State") + private String state; + + + + /** + * 创建时间 (UNIX时间戳) + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间 (UNIX时间戳) + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 是否是跨机房URedis(默认false) + */ + @SerializedName("RegionFlag") + private Boolean regionFlag; + + + public String getZone() { + return zone; + } - public static class URedisConfigSet extends Response { - - /** Zone */ - @SerializedName("Zone") - private String zone; - - /** 配置ID */ - @SerializedName("ConfigId") - private String configId; - - /** 配置名称 */ - @SerializedName("Name") - private String name; - - /** 配置描述 */ - @SerializedName("Description") - private String description; - - /** 配置对应的Redis版本 */ - @SerializedName("Version") - private String version; - - /** 置是否可以修改 */ - @SerializedName("IsModify") - private String isModify; - - /** 配置所处的状态 */ - @SerializedName("State") - private String state; - - /** 创建时间 (UNIX时间戳) */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 修改时间 (UNIX时间戳) */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** 是否是跨机房URedis(默认false) */ - @SerializedName("RegionFlag") - private Boolean regionFlag; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getConfigId() { + return configId; + } - public String getConfigId() { - return configId; - } + public void setConfigId(String configId) { + this.configId = configId; + } + + public String getName() { + return name; + } - public void setConfigId(String configId) { - this.configId = configId; - } + public void setName(String name) { + this.name = name; + } + + public String getDescription() { + return description; + } - public String getName() { - return name; - } + public void setDescription(String description) { + this.description = description; + } + + public String getVersion() { + return version; + } - public void setName(String name) { - this.name = name; - } + public void setVersion(String version) { + this.version = version; + } + + public String getIsModify() { + return isModify; + } - public String getDescription() { - return description; - } + public void setIsModify(String isModify) { + this.isModify = isModify; + } + + public String getState() { + return state; + } - public void setDescription(String description) { - this.description = description; - } + public void setState(String state) { + this.state = state; + } + + public Integer getCreateTime() { + return createTime; + } - public String getVersion() { - return version; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public void setVersion(String version) { - this.version = version; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public Boolean getRegionFlag() { + return regionFlag; + } - public String getIsModify() { - return isModify; + public void setRegionFlag(Boolean regionFlag) { + this.regionFlag = regionFlag; + } + } +} - public void setIsModify(String isModify) { - this.isModify = isModify; - } - public String getState() { - return state; - } - public void setState(String state) { - this.state = state; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getModifyTime() { - return modifyTime; - } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - public Boolean getRegionFlag() { - return regionFlag; - } - public void setRegionFlag(Boolean regionFlag) { - this.regionFlag = regionFlag; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisGroupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisGroupRequest.java index 948b3df0..620177b8 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisGroupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisGroupRequest.java @@ -1,53 +1,80 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeURedisGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 组的ID,如果指定则获取描述,否则为列表操 作,需指定Offset/Limit */ + + + + /** + * 组的ID,如果指定则获取描述,否则为列表操 作,需指定Offset/Limit + */ @UCloudParam("GroupId") private String groupId; - - /** 分页显示的起始偏移, 默认值为0 */ + + + + /** + * 分页显示的起始偏移, 默认值为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 分页显示的条目数, 默认值为20 */ + + + + /** + * 分页显示的条目数, 默认值为20 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -55,7 +82,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -63,7 +90,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -71,7 +98,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -79,7 +106,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public Integer getOffset() { return offset; } @@ -87,7 +114,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -95,4 +122,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisGroupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisGroupResponse.java index f2548337..c8a54eae 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisGroupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisGroupResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeURedisGroupResponse extends Response { - /** 组的总的节点个数 */ + + + /** + * 组的总的节点个数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 组列表 参见 URedisGroupSet */ + + + + /** + * 组列表 参见 URedisGroupSet + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,334 +57,449 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class URedisGroupSet extends Response { + + + /** + * 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html) + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 返回运维时间 0 //0点 1 //1点 以此类推 + */ + @SerializedName("RewriteTime") + private Integer rewriteTime; + + + + /** + * 实例类型 + */ + @SerializedName("Role") + private String role; + + + + /** + * vpcid + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * subnetid + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * 组ID + */ + @SerializedName("GroupId") + private String groupId; + + + + /** + * 组名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 空间类型:single(无热备),double(热备) + */ + @SerializedName("Type") + private String type; + + + + /** + * 协议 + */ + @SerializedName("Protocol") + private String protocol; + + + + /** + * 容量单位GB + */ + @SerializedName("MemorySize") + private Integer memorySize; + + + + /** + * 组名称 + */ + @SerializedName("GroupName") + private String groupName; + + + + /** + * 节点的配置ID + */ + @SerializedName("ConfigId") + private String configId; + + + + /** + * 节点的虚拟IP地址 + */ + @SerializedName("VirtualIP") + private String virtualIP; + + + + /** + * 节点分配的服务端口 + */ + @SerializedName("Port") + private Integer port; + + + + /** + * 容量单位GB + */ + @SerializedName("Size") + private Integer size; + + + + /** + * 使用量单位MB + */ + @SerializedName("UsedSize") + private Integer usedSize; + + + + /** + * 是否需要自动备份,enable,disable + */ + @SerializedName("AutoBackup") + private String autoBackup; + + + + /** + * 组自动备份开始时间,单位小时计,范围[0-23] + */ + @SerializedName("BackupTime") + private Integer backupTime; + + + + /** + * 是否开启高可用,enable,disable + */ + @SerializedName("HighAvailability") + private String highAvailability; + + + + /** + * Redis版本信息 + */ + @SerializedName("Version") + private String version; + + + + /** + * 过期时间 (UNIX时间戳) + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 计费类型:Year,Month,Dynamic 默认Dynamic + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 状态标记 Creating // 初始化中 CreateFail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败 + */ + @SerializedName("State") + private String state; + + + + /** + * 创建时间 (UNIX时间戳) + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间 (UNIX时间戳) + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 业务组名称 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 跨机房URedis,slave redis所在可用区,参见 [可用区列表](../summary/regionlist.html) + */ + @SerializedName("SlaveZone") + private String slaveZone; + + + public String getZone() { + return zone; + } - public static class URedisGroupSet extends Response { - - /** 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html) */ - @SerializedName("Zone") - private String zone; - - /** 返回运维时间 0 //0点 1 //1点 以此类推 */ - @SerializedName("RewriteTime") - private Integer rewriteTime; - - /** 实例类型 */ - @SerializedName("Role") - private String role; - - /** vpcid */ - @SerializedName("VPCId") - private String vpcId; - - /** subnetid */ - @SerializedName("SubnetId") - private String subnetId; - - /** 组ID */ - @SerializedName("GroupId") - private String groupId; - - /** 组名称 */ - @SerializedName("Name") - private String name; - - /** 空间类型:single(无热备),double(热备) */ - @SerializedName("Type") - private String type; - - /** 协议 */ - @SerializedName("Protocol") - private String protocol; - - /** 容量单位GB */ - @SerializedName("MemorySize") - private Integer memorySize; - - /** 组名称 */ - @SerializedName("GroupName") - private String groupName; - - /** 节点的配置ID */ - @SerializedName("ConfigId") - private String configId; - - /** 节点的虚拟IP地址 */ - @SerializedName("VirtualIP") - private String virtualIP; - - /** 节点分配的服务端口 */ - @SerializedName("Port") - private Integer port; - - /** 容量单位GB */ - @SerializedName("Size") - private Integer size; - - /** 使用量单位MB */ - @SerializedName("UsedSize") - private Integer usedSize; - - /** 是否需要自动备份,enable,disable */ - @SerializedName("AutoBackup") - private String autoBackup; - - /** 组自动备份开始时间,单位小时计,范围[0-23] */ - @SerializedName("BackupTime") - private Integer backupTime; - - /** 是否开启高可用,enable,disable */ - @SerializedName("HighAvailability") - private String highAvailability; - - /** Redis版本信息 */ - @SerializedName("Version") - private String version; - - /** 过期时间 (UNIX时间戳) */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 计费类型:Year,Month,Dynamic 默认Dynamic */ - @SerializedName("ChargeType") - private String chargeType; - - /** - * 状态标记 Creating // 初始化中 CreateFail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 - * Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败 - */ - @SerializedName("State") - private String state; - - /** 创建时间 (UNIX时间戳) */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 修改时间 (UNIX时间戳) */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** 业务组名称 */ - @SerializedName("Tag") - private String tag; - - /** 跨机房URedis,slave redis所在可用区,参见 [可用区列表](../summary/regionlist.html) */ - @SerializedName("SlaveZone") - private String slaveZone; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public Integer getRewriteTime() { - return rewriteTime; - } - - public void setRewriteTime(Integer rewriteTime) { - this.rewriteTime = rewriteTime; - } - - public String getRole() { - return role; - } - - public void setRole(String role) { - this.role = role; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public String getGroupId() { - return groupId; - } - - public void setGroupId(String groupId) { - this.groupId = groupId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol; - } - - public Integer getMemorySize() { - return memorySize; - } + public void setZone(String zone) { + this.zone = zone; + } + + public Integer getRewriteTime() { + return rewriteTime; + } - public void setMemorySize(Integer memorySize) { - this.memorySize = memorySize; - } + public void setRewriteTime(Integer rewriteTime) { + this.rewriteTime = rewriteTime; + } + + public String getRole() { + return role; + } - public String getGroupName() { - return groupName; - } + public void setRole(String role) { + this.role = role; + } + + public String getVPCId() { + return vpcId; + } - public void setGroupName(String groupName) { - this.groupName = groupName; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } - public String getConfigId() { - return configId; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getGroupId() { + return groupId; + } - public void setConfigId(String configId) { - this.configId = configId; - } + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public String getName() { + return name; + } - public String getVirtualIP() { - return virtualIP; - } + public void setName(String name) { + this.name = name; + } + + public String getType() { + return type; + } - public void setVirtualIP(String virtualIP) { - this.virtualIP = virtualIP; - } + public void setType(String type) { + this.type = type; + } + + public String getProtocol() { + return protocol; + } - public Integer getPort() { - return port; - } + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public Integer getMemorySize() { + return memorySize; + } - public void setPort(Integer port) { - this.port = port; - } + public void setMemorySize(Integer memorySize) { + this.memorySize = memorySize; + } + + public String getGroupName() { + return groupName; + } - public Integer getSize() { - return size; - } + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public String getConfigId() { + return configId; + } - public void setSize(Integer size) { - this.size = size; - } + public void setConfigId(String configId) { + this.configId = configId; + } + + public String getVirtualIP() { + return virtualIP; + } - public Integer getUsedSize() { - return usedSize; - } + public void setVirtualIP(String virtualIP) { + this.virtualIP = virtualIP; + } + + public Integer getPort() { + return port; + } - public void setUsedSize(Integer usedSize) { - this.usedSize = usedSize; - } + public void setPort(Integer port) { + this.port = port; + } + + public Integer getSize() { + return size; + } - public String getAutoBackup() { - return autoBackup; - } + public void setSize(Integer size) { + this.size = size; + } + + public Integer getUsedSize() { + return usedSize; + } - public void setAutoBackup(String autoBackup) { - this.autoBackup = autoBackup; - } + public void setUsedSize(Integer usedSize) { + this.usedSize = usedSize; + } + + public String getAutoBackup() { + return autoBackup; + } - public Integer getBackupTime() { - return backupTime; - } + public void setAutoBackup(String autoBackup) { + this.autoBackup = autoBackup; + } + + public Integer getBackupTime() { + return backupTime; + } - public void setBackupTime(Integer backupTime) { - this.backupTime = backupTime; - } + public void setBackupTime(Integer backupTime) { + this.backupTime = backupTime; + } + + public String getHighAvailability() { + return highAvailability; + } - public String getHighAvailability() { - return highAvailability; - } + public void setHighAvailability(String highAvailability) { + this.highAvailability = highAvailability; + } + + public String getVersion() { + return version; + } - public void setHighAvailability(String highAvailability) { - this.highAvailability = highAvailability; - } + public void setVersion(String version) { + this.version = version; + } + + public Integer getExpireTime() { + return expireTime; + } - public String getVersion() { - return version; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getChargeType() { + return chargeType; + } - public void setVersion(String version) { - this.version = version; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getState() { + return state; + } - public Integer getExpireTime() { - return expireTime; - } + public void setState(String state) { + this.state = state; + } + + public Integer getCreateTime() { + return createTime; + } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public String getChargeType() { - return chargeType; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public String getTag() { + return tag; + } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getSlaveZone() { + return slaveZone; + } - public String getState() { - return state; + public void setSlaveZone(String slaveZone) { + this.slaveZone = slaveZone; + } + } +} - public void setState(String state) { - this.state = state; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getModifyTime() { - return modifyTime; - } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - public String getSlaveZone() { - return slaveZone; - } - public void setSlaveZone(String slaveZone) { - this.slaveZone = slaveZone; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisPriceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisPriceRequest.java index 4ee0703d..54e7089c 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisPriceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisPriceRequest.java @@ -1,60 +1,98 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeURedisPriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 量大小,单位:GB 取值范围[1-32] */ + + + + /** + * 量大小,单位:GB 取值范围[1-32] + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 计费模式,Year, Month, Dynamic;如果不指定,则一次性获取三种计费 */ + + + + /** + * 计费模式,Year, Month, Dynamic;如果不指定,则一次性获取三种计费 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 计费模式为Dynamic时,购买的时长, 默认为1 */ + + + + /** + * 计费模式为Dynamic时,购买的时长, 默认为1 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 是否是跨机房URedis(默认false) */ + + + + /** + * 是否是跨机房URedis(默认false) + */ @UCloudParam("RegionFlag") private Boolean regionFlag; - - /** 产品类型:MS_Redis(标准主备版),S_Redis(从库),默认为MS_Redis */ + + + + /** + * 产品类型:MS_Redis(标准主备版),S_Redis(从库),默认为MS_Redis + */ @UCloudParam("ProductType") private String productType; - + + public String getRegion() { return region; } @@ -62,7 +100,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -70,7 +108,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -78,7 +116,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getSize() { return size; } @@ -86,7 +124,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getChargeType() { return chargeType; } @@ -94,7 +132,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -102,7 +140,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public Boolean getRegionFlag() { return regionFlag; } @@ -110,7 +148,7 @@ public Boolean getRegionFlag() { public void setRegionFlag(Boolean regionFlag) { this.regionFlag = regionFlag; } - + public String getProductType() { return productType; } @@ -118,4 +156,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisPriceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisPriceResponse.java index 910d4f2d..4dcf6ef7 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisPriceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisPriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeURedisPriceResponse extends Response { - /** 价格 参数见 UMemPriceSet */ + + + /** + * 价格 参数见 UMemPriceSet + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,55 +41,81 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class URedisPriceSet extends Response { + + + /** + * 原价 + */ + @SerializedName("OriginalPrice") + private Integer originalPrice; + + + + /** + * Year, Month, Dynamic,Trial + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 产品列表价 + */ + @SerializedName("ListPrice") + private Integer listPrice; + + + + /** + * 总价格 + */ + @SerializedName("Price") + private Integer price; + + + public Integer getOriginalPrice() { + return originalPrice; + } - public static class URedisPriceSet extends Response { + public void setOriginalPrice(Integer originalPrice) { + this.originalPrice = originalPrice; + } + + public String getChargeType() { + return chargeType; + } - /** 原价 */ - @SerializedName("OriginalPrice") - private Integer originalPrice; + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getListPrice() { + return listPrice; + } - /** Year, Month, Dynamic,Trial */ - @SerializedName("ChargeType") - private String chargeType; + public void setListPrice(Integer listPrice) { + this.listPrice = listPrice; + } + + public Integer getPrice() { + return price; + } - /** 产品列表价 */ - @SerializedName("ListPrice") - private Integer listPrice; + public void setPrice(Integer price) { + this.price = price; + } + + } +} - /** 总价格 */ - @SerializedName("Price") - private Integer price; - public Integer getOriginalPrice() { - return originalPrice; - } - public void setOriginalPrice(Integer originalPrice) { - this.originalPrice = originalPrice; - } - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Integer getListPrice() { - return listPrice; - } - public void setListPrice(Integer listPrice) { - this.listPrice = listPrice; - } - public Integer getPrice() { - return price; - } - public void setPrice(Integer price) { - this.price = price; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisSlowlogRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisSlowlogRequest.java index f3298821..bf108183 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisSlowlogRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisSlowlogRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeURedisSlowlogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 资源ID */ + + + + /** + * 资源ID + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - - /** 分页显示的条目数,默认为10 */ + + + + /** + * 分页显示的条目数,默认为10 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -74,7 +100,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public Integer getLimit() { return limit; } @@ -82,4 +108,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisSlowlogResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisSlowlogResponse.java index b285b175..9178cee4 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisSlowlogResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisSlowlogResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeURedisSlowlogResponse extends Response { - /** 总条目数 */ + + + /** + * 总条目数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 条目数据 */ + + + + /** + * 条目数据 + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,43 +57,65 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class URedisSlowlogSet extends Response { + + + /** + * 查询发生的时间 + */ + @SerializedName("StartTime") + private Integer startTime; + + + + /** + * 查询消耗的时间 + */ + @SerializedName("SpendTime") + private Integer spendTime; + + + + /** + * 查询命令 + */ + @SerializedName("Command") + private String command; + + + public Integer getStartTime() { + return startTime; + } - public static class URedisSlowlogSet extends Response { + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getSpendTime() { + return spendTime; + } + + public void setSpendTime(Integer spendTime) { + this.spendTime = spendTime; + } + + public String getCommand() { + return command; + } + + public void setCommand(String command) { + this.command = command; + } + + } +} - /** 查询发生的时间 */ - @SerializedName("StartTime") - private Integer startTime; - /** 查询消耗的时间 */ - @SerializedName("SpendTime") - private Integer spendTime; - /** 查询命令 */ - @SerializedName("Command") - private String command; - public Integer getStartTime() { - return startTime; - } - public void setStartTime(Integer startTime) { - this.startTime = startTime; - } - public Integer getSpendTime() { - return spendTime; - } - public void setSpendTime(Integer spendTime) { - this.spendTime = spendTime; - } - public String getCommand() { - return command; - } - public void setCommand(String command) { - this.command = command; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisUpgradePriceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisUpgradePriceRequest.java index 339a2401..c2e37465 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisUpgradePriceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisUpgradePriceRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeURedisUpgradePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 购买uredis大小,单位:GB,范围是[1-32] */ + + + + /** + * 购买uredis大小,单位:GB,范围是[1-32] + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 要升级的空间的GroupId,请参考DescribeURedisGroup接口 */ + + + + /** + * 要升级的空间的GroupId,请参考DescribeURedisGroup接口 + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -54,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public Integer getSize() { return size; } @@ -62,7 +84,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getGroupId() { return groupId; } @@ -70,4 +92,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisUpgradePriceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisUpgradePriceResponse.java index 0b0a7c38..fbf4ed2e 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisUpgradePriceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisUpgradePriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeURedisUpgradePriceResponse extends Response { - /** 扩容差价,单位: 元,保留小数点后两位有效数字 */ + + + /** + * 扩容差价,单位: 元,保留小数点后两位有效数字 + */ @SerializedName("Price") private Double price; - + + public Double getPrice() { return price; } @@ -31,4 +41,14 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisVersionRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisVersionRequest.java index 83ffa6ef..41721e0f 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisVersionRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisVersionRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeURedisVersionRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -49,7 +67,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -57,4 +75,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisVersionResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisVersionResponse.java index 686a503f..eb932cb5 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisVersionResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisVersionResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeURedisVersionResponse extends Response { - /** 组列表 参见 URedisVersionSet */ + + + /** + * 组列表 参见 URedisVersionSet + */ @SerializedName("DataSet") private List dataSet; - - /** 总版本个数 */ + + + + /** + * 总版本个数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,19 +57,33 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class URedisVersionSet extends Response { + + + /** + * Redis版本 + */ + @SerializedName("Version") + private String version; + + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + } +} + + + + + - public static class URedisVersionSet extends Response { - /** Redis版本 */ - @SerializedName("Version") - private String version; - public String getVersion() { - return version; - } - public void setVersion(String version) { - this.version = version; - } - } -} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/FlushallURedisGroupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/FlushallURedisGroupRequest.java index 19fd85a1..f997a4a1 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/FlushallURedisGroupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/FlushallURedisGroupRequest.java @@ -1,65 +1,107 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class FlushallURedisGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 组的ID */ + + + + /** + * 组的ID + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - - /** FlushDb或FlushAll */ + + + + /** + * FlushDb或FlushAll + */ @NotEmpty @UCloudParam("FlushType") private String flushType; - - /** 清空的db,FlushType为FlushDb,此项为必传项 */ + + + + /** + * 清空的db,FlushType为FlushDb,此项为必传项 + */ @UCloudParam("DbNum") private Integer dbNum; - - /** company_id */ + + + + /** + * company_id + */ @UCloudParam("TopOrganizationId") private Integer topOrganizationId; - - /** OrganizationId */ + + + + /** + * OrganizationId + */ @UCloudParam("OrganizationId") private Integer organizationId; - - /** 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) */ + + + + /** + * 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + */ @UCloudParam("SlaveZone") private String slaveZone; - + + public String getRegion() { return region; } @@ -67,7 +109,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -75,7 +117,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -83,7 +125,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -91,7 +133,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public String getFlushType() { return flushType; } @@ -99,7 +141,7 @@ public String getFlushType() { public void setFlushType(String flushType) { this.flushType = flushType; } - + public Integer getDbNum() { return dbNum; } @@ -107,7 +149,7 @@ public Integer getDbNum() { public void setDbNum(Integer dbNum) { this.dbNum = dbNum; } - + public Integer getTopOrganizationId() { return topOrganizationId; } @@ -115,7 +157,7 @@ public Integer getTopOrganizationId() { public void setTopOrganizationId(Integer topOrganizationId) { this.topOrganizationId = topOrganizationId; } - + public Integer getOrganizationId() { return organizationId; } @@ -123,7 +165,7 @@ public Integer getOrganizationId() { public void setOrganizationId(Integer organizationId) { this.organizationId = organizationId; } - + public String getSlaveZone() { return slaveZone; } @@ -131,4 +173,14 @@ public String getSlaveZone() { public void setSlaveZone(String slaveZone) { this.slaveZone = slaveZone; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/FlushallURedisGroupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/FlushallURedisGroupResponse.java index ae8671bb..eb68a188 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/FlushallURedisGroupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/FlushallURedisGroupResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class FlushallURedisGroupResponse extends Response {} +public class FlushallURedisGroupResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/GetUMemSpaceStateRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/GetUMemSpaceStateRequest.java index d45e2b57..f06e70a9 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/GetUMemSpaceStateRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/GetUMemSpaceStateRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUMemSpaceStateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 内存空间ID */ + + + + /** + * 内存空间ID + */ @NotEmpty @UCloudParam("SpaceId") private String spaceId; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -53,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -61,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSpaceId() { return spaceId; } @@ -69,4 +91,14 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/GetUMemSpaceStateResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/GetUMemSpaceStateResponse.java index 9b568980..3d997dd4 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/GetUMemSpaceStateResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/GetUMemSpaceStateResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUMemSpaceStateResponse extends Response { - /** Starting:创建中 Running:运行中 Fail:失败 */ + + + /** + * Starting:创建中 Running:运行中 Fail:失败 + */ @SerializedName("State") private String state; - + + public String getState() { return state; } @@ -31,4 +41,14 @@ public String getState() { public void setState(String state) { this.state = state; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ISolationURedisGroupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ISolationURedisGroupRequest.java index 89a1f494..6d6b4714 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ISolationURedisGroupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ISolationURedisGroupRequest.java @@ -1,56 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ISolationURedisGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 组的ID */ + + + + /** + * 组的ID + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - - /** UNBind(关闭)或Bind(打开) */ + + + + /** + * UNBind(关闭)或Bind(打开) + */ @NotEmpty @UCloudParam("TransformType") private String transformType; - - /** 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) */ + + + + /** + * 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + */ @UCloudParam("SlaveZone") private String slaveZone; - + + public String getRegion() { return region; } @@ -58,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -66,7 +93,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -74,7 +101,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -82,7 +109,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public String getTransformType() { return transformType; } @@ -90,7 +117,7 @@ public String getTransformType() { public void setTransformType(String transformType) { this.transformType = transformType; } - + public String getSlaveZone() { return slaveZone; } @@ -98,4 +125,14 @@ public String getSlaveZone() { public void setSlaveZone(String slaveZone) { this.slaveZone = slaveZone; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ISolationURedisGroupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ISolationURedisGroupResponse.java index 7a05352e..d45dbd31 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ISolationURedisGroupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ISolationURedisGroupResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ISolationURedisGroupResponse extends Response {} +public class ISolationURedisGroupResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyUMemSpaceNameRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyUMemSpaceNameRequest.java index 6a02f40f..55b2a952 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyUMemSpaceNameRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyUMemSpaceNameRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUMemSpaceNameRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** UMem内存空间ID */ + + + + /** + * UMem内存空间ID + */ @NotEmpty @UCloudParam("SpaceId") private String spaceId; - - /** 新的名称,长度(6<=size<=63) */ + + + + /** + * 新的名称,长度(6<=size<=63) + */ @NotEmpty @UCloudParam("Name") private String name; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSpaceId() { return spaceId; } @@ -74,7 +100,7 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } - + public String getName() { return name; } @@ -82,4 +108,14 @@ public String getName() { public void setName(String name) { this.name = name; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyUMemSpaceNameResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyUMemSpaceNameResponse.java index cb605d9e..7ec268ac 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyUMemSpaceNameResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyUMemSpaceNameResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUMemSpaceNameResponse extends Response {} +public class ModifyUMemSpaceNameResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisConfigRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisConfigRequest.java index d63a1d18..6bbb3acc 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisConfigRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisConfigRequest.java @@ -1,65 +1,100 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyURedisConfigRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 配置文件的ID */ + + + + /** + * 配置文件的ID + */ @NotEmpty @UCloudParam("ConfigId") private String configId; - - /** 参数名称 */ + + + + /** + * 参数名称 + */ @NotEmpty @UCloudParam("Key") private String key; - - /** 对应参数的值 */ + + + + /** + * 对应参数的值 + */ @NotEmpty @UCloudParam("Value") private String value; - - /** 如果实例使用默认配置创建,修改配置信息需要填写GroupId */ + + + + /** + * 如果实例使用默认配置创建,修改配置信息需要填写GroupId + */ @UCloudParam("GroupId") private String groupId; - - /** 是否是跨机房URedis(默认false) */ + + + + /** + * 是否是跨机房URedis(默认false) + */ @UCloudParam("RegionFlag") private Boolean regionFlag; - + + public String getRegion() { return region; } @@ -67,7 +102,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -75,7 +110,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -83,7 +118,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getConfigId() { return configId; } @@ -91,7 +126,7 @@ public String getConfigId() { public void setConfigId(String configId) { this.configId = configId; } - + public String getKey() { return key; } @@ -99,7 +134,7 @@ public String getKey() { public void setKey(String key) { this.key = key; } - + public String getValue() { return value; } @@ -107,7 +142,7 @@ public String getValue() { public void setValue(String value) { this.value = value; } - + public String getGroupId() { return groupId; } @@ -115,7 +150,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public Boolean getRegionFlag() { return regionFlag; } @@ -123,4 +158,14 @@ public Boolean getRegionFlag() { public void setRegionFlag(Boolean regionFlag) { this.regionFlag = regionFlag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisConfigResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisConfigResponse.java index 3303794b..47dd564d 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisConfigResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisConfigResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyURedisConfigResponse extends Response {} +public class ModifyURedisConfigResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupNameRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupNameRequest.java index a86c7938..f41b81b6 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupNameRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupNameRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyURedisGroupNameRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 组的ID */ + + + + /** + * 组的ID + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - - /** Redis组名称 (范围[6-63],只能包含英文、数字以及符号-和_) */ + + + + /** + * Redis组名称 (范围[6-63],只能包含英文、数字以及符号-和_) + */ @NotEmpty @UCloudParam("Name") private String name; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -54,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -62,7 +84,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public String getName() { return name; } @@ -70,4 +92,14 @@ public String getName() { public void setName(String name) { this.name = name; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupNameResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupNameResponse.java index a5978c9c..8ce31ce9 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupNameResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupNameResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyURedisGroupNameResponse extends Response {} +public class ModifyURedisGroupNameResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupPasswordRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupPasswordRequest.java index bb1ef53e..e9e4df78 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupPasswordRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupPasswordRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyURedisGroupPasswordRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 组的ID */ + + + + /** + * 组的ID + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - - /** 新密码字符串,要求长度为6~36个字符,且只能包含英文、数字以及-和下划线;并且需要base64加密;如要取消密码,此值为空字符串, */ + + + + /** + * 新密码字符串,要求长度为6~36个字符,且只能包含英文、数字以及-和下划线;并且需要base64加密;如要取消密码,此值为空字符串, + */ @NotEmpty @UCloudParam("Password") private String password; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -66,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -74,7 +100,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public String getPassword() { return password; } @@ -82,4 +108,14 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupPasswordResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupPasswordResponse.java index f399b494..46ea33c5 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupPasswordResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ModifyURedisGroupPasswordResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyURedisGroupPasswordResponse extends Response {} +public class ModifyURedisGroupPasswordResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RemoveUDRedisDataRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RemoveUDRedisDataRequest.java index b7dd98f9..9e7f7523 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RemoveUDRedisDataRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RemoveUDRedisDataRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RemoveUDRedisDataRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 实例id */ + + + + /** + * 实例id + */ @NotEmpty @UCloudParam("SpaceId") private String spaceId; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -54,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -62,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSpaceId() { return spaceId; } @@ -70,4 +92,14 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RemoveUDRedisDataResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RemoveUDRedisDataResponse.java index ffd9166c..0a20c8a4 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RemoveUDRedisDataResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RemoveUDRedisDataResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RemoveUDRedisDataResponse extends Response {} +public class RemoveUDRedisDataResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUMemSpaceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUMemSpaceRequest.java index 46585a66..83b52153 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUMemSpaceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUMemSpaceRequest.java @@ -1,60 +1,91 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ResizeUMemSpaceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UMem 内存空间Id */ + + + + /** + * UMem 内存空间Id + */ @NotEmpty @UCloudParam("SpaceId") private String spaceId; - - /** 内存大小, 单位:GB (需要大于原size,<= 1024) */ + + + + /** + * 内存大小, 单位:GB (需要大于原size,<= 1024) + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** 空间类型:single(无热备),double(热备)(默认: double) */ + + + + /** + * 空间类型:single(无热备),double(热备)(默认: double) + */ @UCloudParam("Type") private String type; - - /** 使用的代金券Id */ + + + + /** + * 使用的代金券Id + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -62,7 +93,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -70,7 +101,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -78,7 +109,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSpaceId() { return spaceId; } @@ -86,7 +117,7 @@ public String getSpaceId() { public void setSpaceId(String spaceId) { this.spaceId = spaceId; } - + public Integer getSize() { return size; } @@ -94,7 +125,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getType() { return type; } @@ -102,7 +133,7 @@ public String getType() { public void setType(String type) { this.type = type; } - + public String getCouponId() { return couponId; } @@ -110,4 +141,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUMemSpaceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUMemSpaceResponse.java index d1ae57e6..a00522d3 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUMemSpaceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUMemSpaceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ResizeUMemSpaceResponse extends Response {} +public class ResizeUMemSpaceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeURedisGroupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeURedisGroupRequest.java index 90993cd0..471f6173 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeURedisGroupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeURedisGroupRequest.java @@ -1,60 +1,98 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ResizeURedisGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 组ID */ + + + + /** + * 组ID + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - - /** 内存大小, 单位:GB (需要大于原size,且小于等于32) 目前仅支持1/2/4/8/16/32 G 六种容量规格 */ + + + + /** + * 内存大小, 单位:GB (需要大于原size,且小于等于32) 目前仅支持1/2/4/8/16/32 G 六种容量规格 + */ @NotEmpty @UCloudParam("Size") private Integer size; - - /** */ + + + + /** + * + */ @UCloudParam("ChargeType") private String chargeType; - - /** 空间类型:single(无热备),double(热备)(默认: double) */ + + + + /** + * 空间类型:single(无热备),double(热备)(默认: double) + */ @UCloudParam("Type") private String type; - - /** 代金券ID 请参考DescribeCoupon接口 */ + + + + /** + * 代金券ID 请参考DescribeCoupon接口 + */ @UCloudParam("CouponId") private Integer couponId; - + + public String getRegion() { return region; } @@ -62,7 +100,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -70,7 +108,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -78,7 +116,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -86,7 +124,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public Integer getSize() { return size; } @@ -94,7 +132,7 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - + public String getChargeType() { return chargeType; } @@ -102,7 +140,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getType() { return type; } @@ -110,7 +148,7 @@ public String getType() { public void setType(String type) { this.type = type; } - + public Integer getCouponId() { return couponId; } @@ -118,4 +156,14 @@ public Integer getCouponId() { public void setCouponId(Integer couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeURedisGroupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeURedisGroupResponse.java index 108959b4..080796a4 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeURedisGroupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeURedisGroupResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ResizeURedisGroupResponse extends Response {} +public class ResizeURedisGroupResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartUMemcacheGroupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartUMemcacheGroupRequest.java index f081fa67..2a650a36 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartUMemcacheGroupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartUMemcacheGroupRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RestartUMemcacheGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 组的ID */ + + + + /** + * 组的ID + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -54,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -62,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -70,4 +92,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartUMemcacheGroupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartUMemcacheGroupResponse.java index 2b28e6bd..a66aca82 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartUMemcacheGroupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartUMemcacheGroupResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RestartUMemcacheGroupResponse extends Response {} +public class RestartUMemcacheGroupResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartURedisGroupRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartURedisGroupRequest.java index 6c4837d3..7eddec49 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartURedisGroupRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartURedisGroupRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RestartURedisGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 资源ID */ + + + + /** + * 资源ID + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -53,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -61,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -69,4 +91,14 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartURedisGroupResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartURedisGroupResponse.java index b0bb6032..0ea25e6a 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartURedisGroupResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/RestartURedisGroupResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RestartURedisGroupResponse extends Response {} +public class RestartURedisGroupResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisBackupStrategyRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisBackupStrategyRequest.java index f73b12a2..ec224994 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisBackupStrategyRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisBackupStrategyRequest.java @@ -1,59 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateURedisBackupStrategyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 组的ID */ + + + + /** + * 组的ID + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - - /** 备份时间,默认为0 */ + + + + /** + * 备份时间,默认为0 + */ @NotEmpty @UCloudParam("BackupTime") private String backupTime; - - /** 是否打开默认备份功能。enable(打开),disable(关闭),默认enable */ + + + + /** + * 是否打开默认备份功能。enable(打开),disable(关闭),默认enable + */ @UCloudParam("AutoBackup") private String autoBackup; - - /** 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) */ + + + + /** + * 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + */ @UCloudParam("SlaveZone") private String slaveZone; - + + public String getRegion() { return region; } @@ -61,7 +92,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -69,7 +100,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -77,7 +108,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -85,7 +116,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public String getBackupTime() { return backupTime; } @@ -93,7 +124,7 @@ public String getBackupTime() { public void setBackupTime(String backupTime) { this.backupTime = backupTime; } - + public String getAutoBackup() { return autoBackup; } @@ -101,7 +132,7 @@ public String getAutoBackup() { public void setAutoBackup(String autoBackup) { this.autoBackup = autoBackup; } - + public String getSlaveZone() { return slaveZone; } @@ -109,4 +140,14 @@ public String getSlaveZone() { public void setSlaveZone(String slaveZone) { this.slaveZone = slaveZone; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisBackupStrategyResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisBackupStrategyResponse.java index 6fd1ad14..17cf18b8 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisBackupStrategyResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisBackupStrategyResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateURedisBackupStrategyResponse extends Response {} +public class UpdateURedisBackupStrategyResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisRewriteTimeRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisRewriteTimeRequest.java index 47f0d473..d405b858 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisRewriteTimeRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisRewriteTimeRequest.java @@ -1,56 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateURedisRewriteTimeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例名称 */ + + + + /** + * 实例名称 + */ @NotEmpty @UCloudParam("GroupId") private String groupId; - - /** 重写时间 */ + + + + /** + * 重写时间 + */ @NotEmpty @UCloudParam("RewriteTime") private Integer rewriteTime; - - /** 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) */ + + + + /** + * 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + */ @UCloudParam("SlaveZone") private String slaveZone; - + + public String getRegion() { return region; } @@ -58,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -66,7 +93,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -74,7 +101,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupId() { return groupId; } @@ -82,7 +109,7 @@ public String getGroupId() { public void setGroupId(String groupId) { this.groupId = groupId; } - + public Integer getRewriteTime() { return rewriteTime; } @@ -90,7 +117,7 @@ public Integer getRewriteTime() { public void setRewriteTime(Integer rewriteTime) { this.rewriteTime = rewriteTime; } - + public String getSlaveZone() { return slaveZone; } @@ -98,4 +125,14 @@ public String getSlaveZone() { public void setSlaveZone(String slaveZone) { this.slaveZone = slaveZone; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisRewriteTimeResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisRewriteTimeResponse.java index d803a640..d5db6806 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisRewriteTimeResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/UpdateURedisRewriteTimeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umem.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateURedisRewriteTimeResponse extends Response {} +public class UpdateURedisRewriteTimeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index 891f233f..1686efa5 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-umongodb - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClient.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClient.java index 6890dc7b..9ec8538a 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClient.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.umongodb.client; @@ -17,264 +19,369 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.umongodb.models.BackupUMongoDBClusterRequest; import cn.ucloud.umongodb.models.BackupUMongoDBClusterResponse; + + + import cn.ucloud.umongodb.models.CreateUMongoDBConfigTemplateRequest; import cn.ucloud.umongodb.models.CreateUMongoDBConfigTemplateResponse; + + + import cn.ucloud.umongodb.models.DescribeUMongoDBBackupURLRequest; import cn.ucloud.umongodb.models.DescribeUMongoDBBackupURLResponse; + + + import cn.ucloud.umongodb.models.DescribeUMongoDBInstanceRequest; import cn.ucloud.umongodb.models.DescribeUMongoDBInstanceResponse; + + + import cn.ucloud.umongodb.models.GetUMongoDBBackupParamRequest; import cn.ucloud.umongodb.models.GetUMongoDBBackupParamResponse; + + + import cn.ucloud.umongodb.models.GetUMongoDBCfgTempItemRequest; import cn.ucloud.umongodb.models.GetUMongoDBCfgTempItemResponse; + + + import cn.ucloud.umongodb.models.GetUMongoDBRecoverTimeRangeRequest; import cn.ucloud.umongodb.models.GetUMongoDBRecoverTimeRangeResponse; + + + import cn.ucloud.umongodb.models.ListUMongoDBBackupRequest; import cn.ucloud.umongodb.models.ListUMongoDBBackupResponse; + + + import cn.ucloud.umongodb.models.ListUMongoDBConfigTemplateRequest; import cn.ucloud.umongodb.models.ListUMongoDBConfigTemplateResponse; + + + import cn.ucloud.umongodb.models.ListUMongoDBMachineTypeRequest; import cn.ucloud.umongodb.models.ListUMongoDBMachineTypeResponse; + + + import cn.ucloud.umongodb.models.ListUMongoDBVersionRequest; import cn.ucloud.umongodb.models.ListUMongoDBVersionResponse; + + + import cn.ucloud.umongodb.models.ModifyUMongoDBAdminPasswordRequest; import cn.ucloud.umongodb.models.ModifyUMongoDBAdminPasswordResponse; + + + import cn.ucloud.umongodb.models.ModifyUMongoDBAttributeRequest; import cn.ucloud.umongodb.models.ModifyUMongoDBAttributeResponse; + + + import cn.ucloud.umongodb.models.ModifyUMongoDBBackupParamRequest; import cn.ucloud.umongodb.models.ModifyUMongoDBBackupParamResponse; + + + import cn.ucloud.umongodb.models.RestartUMongoDBClusterRequest; import cn.ucloud.umongodb.models.RestartUMongoDBClusterResponse; + + + import cn.ucloud.umongodb.models.StartUMongoDBClusterRequest; import cn.ucloud.umongodb.models.StartUMongoDBClusterResponse; + + + import cn.ucloud.umongodb.models.StopUMongoDBClusterRequest; import cn.ucloud.umongodb.models.StopUMongoDBClusterResponse; -/** This client is used to call actions of **UMongoDB** service */ +/** + * This client is used to call actions of **UMongoDB** service + */ public class UMongoDBClient extends DefaultClient implements UMongoDBClientInterface { public UMongoDBClient(Config config, Credential credential) { super(config, credential); } - - /** - * BackupUMongoDBCluster - 备份集群数据库 - * - * @param request Request object - * @throws UCloudException Exception - */ - public BackupUMongoDBClusterResponse backupUMongoDBCluster(BackupUMongoDBClusterRequest request) - throws UCloudException { - request.setAction("BackupUMongoDBCluster"); - return (BackupUMongoDBClusterResponse) - this.invoke(request, BackupUMongoDBClusterResponse.class); - } - - /** - * CreateUMongoDBConfigTemplate - 创建配置模板 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUMongoDBConfigTemplateResponse createUMongoDBConfigTemplate( - CreateUMongoDBConfigTemplateRequest request) throws UCloudException { - request.setAction("CreateUMongoDBConfigTemplate"); - return (CreateUMongoDBConfigTemplateResponse) - this.invoke(request, CreateUMongoDBConfigTemplateResponse.class); - } - - /** - * DescribeUMongoDBBackupURL - 获取实例备份下载链接 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUMongoDBBackupURLResponse describeUMongoDBBackupURL( - DescribeUMongoDBBackupURLRequest request) throws UCloudException { - request.setAction("DescribeUMongoDBBackupURL"); - return (DescribeUMongoDBBackupURLResponse) - this.invoke(request, DescribeUMongoDBBackupURLResponse.class); - } - - /** - * DescribeUMongoDBInstance - 描述MongoDB实例 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUMongoDBInstanceResponse describeUMongoDBInstance( - DescribeUMongoDBInstanceRequest request) throws UCloudException { - request.setAction("DescribeUMongoDBInstance"); - return (DescribeUMongoDBInstanceResponse) - this.invoke(request, DescribeUMongoDBInstanceResponse.class); - } - - /** - * GetUMongoDBBackupParam - 获取实例备份策略 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUMongoDBBackupParamResponse getUMongoDBBackupParam( - GetUMongoDBBackupParamRequest request) throws UCloudException { - request.setAction("GetUMongoDBBackupParam"); - return (GetUMongoDBBackupParamResponse) - this.invoke(request, GetUMongoDBBackupParamResponse.class); - } - - /** - * GetUMongoDBCfgTempItem - 获取配置模板内容 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUMongoDBCfgTempItemResponse getUMongoDBCfgTempItem( - GetUMongoDBCfgTempItemRequest request) throws UCloudException { - request.setAction("GetUMongoDBCfgTempItem"); - return (GetUMongoDBCfgTempItemResponse) - this.invoke(request, GetUMongoDBCfgTempItemResponse.class); - } - - /** - * GetUMongoDBRecoverTimeRange - 获取UMongoDB可回档时间范围 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUMongoDBRecoverTimeRangeResponse getUMongoDBRecoverTimeRange( - GetUMongoDBRecoverTimeRangeRequest request) throws UCloudException { - request.setAction("GetUMongoDBRecoverTimeRange"); - return (GetUMongoDBRecoverTimeRangeResponse) - this.invoke(request, GetUMongoDBRecoverTimeRangeResponse.class); - } - - /** - * ListUMongoDBBackup - 实例备份列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUMongoDBBackupResponse listUMongoDBBackup(ListUMongoDBBackupRequest request) - throws UCloudException { - request.setAction("ListUMongoDBBackup"); - return (ListUMongoDBBackupResponse) this.invoke(request, ListUMongoDBBackupResponse.class); - } - - /** - * ListUMongoDBConfigTemplate - 拉取配置模板 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUMongoDBConfigTemplateResponse listUMongoDBConfigTemplate( - ListUMongoDBConfigTemplateRequest request) throws UCloudException { - request.setAction("ListUMongoDBConfigTemplate"); - return (ListUMongoDBConfigTemplateResponse) - this.invoke(request, ListUMongoDBConfigTemplateResponse.class); - } - - /** - * ListUMongoDBMachineType - 获取UmongDB支持机器类型列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUMongoDBMachineTypeResponse listUMongoDBMachineType( - ListUMongoDBMachineTypeRequest request) throws UCloudException { - request.setAction("ListUMongoDBMachineType"); - return (ListUMongoDBMachineTypeResponse) - this.invoke(request, ListUMongoDBMachineTypeResponse.class); - } - - /** - * ListUMongoDBVersion - 获取UMongoDB支持版本列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUMongoDBVersionResponse listUMongoDBVersion(ListUMongoDBVersionRequest request) - throws UCloudException { - request.setAction("ListUMongoDBVersion"); - return (ListUMongoDBVersionResponse) - this.invoke(request, ListUMongoDBVersionResponse.class); - } - - /** - * ModifyUMongoDBAdminPassword - 修改MongoDB集群root密码 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUMongoDBAdminPasswordResponse modifyUMongoDBAdminPassword( - ModifyUMongoDBAdminPasswordRequest request) throws UCloudException { - request.setAction("ModifyUMongoDBAdminPassword"); - return (ModifyUMongoDBAdminPasswordResponse) - this.invoke(request, ModifyUMongoDBAdminPasswordResponse.class); - } - - /** - * ModifyUMongoDBAttribute - 修改umongodb集群名称 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUMongoDBAttributeResponse modifyUMongoDBAttribute( - ModifyUMongoDBAttributeRequest request) throws UCloudException { - request.setAction("ModifyUMongoDBAttribute"); - return (ModifyUMongoDBAttributeResponse) - this.invoke(request, ModifyUMongoDBAttributeResponse.class); - } - - /** - * ModifyUMongoDBBackupParam - 修改实例备份策略 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUMongoDBBackupParamResponse modifyUMongoDBBackupParam( - ModifyUMongoDBBackupParamRequest request) throws UCloudException { - request.setAction("ModifyUMongoDBBackupParam"); - return (ModifyUMongoDBBackupParamResponse) - this.invoke(request, ModifyUMongoDBBackupParamResponse.class); - } - - /** - * RestartUMongoDBCluster - 重启集群 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RestartUMongoDBClusterResponse restartUMongoDBCluster( - RestartUMongoDBClusterRequest request) throws UCloudException { - request.setAction("RestartUMongoDBCluster"); - return (RestartUMongoDBClusterResponse) - this.invoke(request, RestartUMongoDBClusterResponse.class); - } - - /** - * StartUMongoDBCluster - 启动集群 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StartUMongoDBClusterResponse startUMongoDBCluster(StartUMongoDBClusterRequest request) - throws UCloudException { - request.setAction("StartUMongoDBCluster"); - return (StartUMongoDBClusterResponse) - this.invoke(request, StartUMongoDBClusterResponse.class); - } - - /** - * StopUMongoDBCluster - 停止集群 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StopUMongoDBClusterResponse stopUMongoDBCluster(StopUMongoDBClusterRequest request) - throws UCloudException { - request.setAction("StopUMongoDBCluster"); - return (StopUMongoDBClusterResponse) - this.invoke(request, StopUMongoDBClusterResponse.class); - } + + + + + + + /** + * BackupUMongoDBCluster - 备份集群数据库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUMongoDBClusterResponse backupUMongoDBCluster(BackupUMongoDBClusterRequest request) throws UCloudException { + request.setAction("BackupUMongoDBCluster"); + return (BackupUMongoDBClusterResponse) this.invoke(request, BackupUMongoDBClusterResponse.class); + } + + + + + + + /** + * CreateUMongoDBConfigTemplate - 创建配置模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUMongoDBConfigTemplateResponse createUMongoDBConfigTemplate(CreateUMongoDBConfigTemplateRequest request) throws UCloudException { + request.setAction("CreateUMongoDBConfigTemplate"); + return (CreateUMongoDBConfigTemplateResponse) this.invoke(request, CreateUMongoDBConfigTemplateResponse.class); + } + + + + + + + /** + * DescribeUMongoDBBackupURL - 获取实例备份下载链接 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUMongoDBBackupURLResponse describeUMongoDBBackupURL(DescribeUMongoDBBackupURLRequest request) throws UCloudException { + request.setAction("DescribeUMongoDBBackupURL"); + return (DescribeUMongoDBBackupURLResponse) this.invoke(request, DescribeUMongoDBBackupURLResponse.class); + } + + + + + + + /** + * DescribeUMongoDBInstance - 描述MongoDB实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUMongoDBInstanceResponse describeUMongoDBInstance(DescribeUMongoDBInstanceRequest request) throws UCloudException { + request.setAction("DescribeUMongoDBInstance"); + return (DescribeUMongoDBInstanceResponse) this.invoke(request, DescribeUMongoDBInstanceResponse.class); + } + + + + + + + /** + * GetUMongoDBBackupParam - 获取实例备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUMongoDBBackupParamResponse getUMongoDBBackupParam(GetUMongoDBBackupParamRequest request) throws UCloudException { + request.setAction("GetUMongoDBBackupParam"); + return (GetUMongoDBBackupParamResponse) this.invoke(request, GetUMongoDBBackupParamResponse.class); + } + + + + + + + /** + * GetUMongoDBCfgTempItem - 获取配置模板内容 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUMongoDBCfgTempItemResponse getUMongoDBCfgTempItem(GetUMongoDBCfgTempItemRequest request) throws UCloudException { + request.setAction("GetUMongoDBCfgTempItem"); + return (GetUMongoDBCfgTempItemResponse) this.invoke(request, GetUMongoDBCfgTempItemResponse.class); + } + + + + + + + /** + * GetUMongoDBRecoverTimeRange - 获取UMongoDB可回档时间范围 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUMongoDBRecoverTimeRangeResponse getUMongoDBRecoverTimeRange(GetUMongoDBRecoverTimeRangeRequest request) throws UCloudException { + request.setAction("GetUMongoDBRecoverTimeRange"); + return (GetUMongoDBRecoverTimeRangeResponse) this.invoke(request, GetUMongoDBRecoverTimeRangeResponse.class); + } + + + + + + + /** + * ListUMongoDBBackup - 实例备份列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUMongoDBBackupResponse listUMongoDBBackup(ListUMongoDBBackupRequest request) throws UCloudException { + request.setAction("ListUMongoDBBackup"); + return (ListUMongoDBBackupResponse) this.invoke(request, ListUMongoDBBackupResponse.class); + } + + + + + + + /** + * ListUMongoDBConfigTemplate - 拉取配置模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUMongoDBConfigTemplateResponse listUMongoDBConfigTemplate(ListUMongoDBConfigTemplateRequest request) throws UCloudException { + request.setAction("ListUMongoDBConfigTemplate"); + return (ListUMongoDBConfigTemplateResponse) this.invoke(request, ListUMongoDBConfigTemplateResponse.class); + } + + + + + + + /** + * ListUMongoDBMachineType - 获取UmongDB支持机器类型列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUMongoDBMachineTypeResponse listUMongoDBMachineType(ListUMongoDBMachineTypeRequest request) throws UCloudException { + request.setAction("ListUMongoDBMachineType"); + return (ListUMongoDBMachineTypeResponse) this.invoke(request, ListUMongoDBMachineTypeResponse.class); + } + + + + + + + /** + * ListUMongoDBVersion - 获取UMongoDB支持版本列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUMongoDBVersionResponse listUMongoDBVersion(ListUMongoDBVersionRequest request) throws UCloudException { + request.setAction("ListUMongoDBVersion"); + return (ListUMongoDBVersionResponse) this.invoke(request, ListUMongoDBVersionResponse.class); + } + + + + + + + /** + * ModifyUMongoDBAdminPassword - 修改MongoDB集群root密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUMongoDBAdminPasswordResponse modifyUMongoDBAdminPassword(ModifyUMongoDBAdminPasswordRequest request) throws UCloudException { + request.setAction("ModifyUMongoDBAdminPassword"); + return (ModifyUMongoDBAdminPasswordResponse) this.invoke(request, ModifyUMongoDBAdminPasswordResponse.class); + } + + + + + + + /** + * ModifyUMongoDBAttribute - 修改umongodb集群名称 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUMongoDBAttributeResponse modifyUMongoDBAttribute(ModifyUMongoDBAttributeRequest request) throws UCloudException { + request.setAction("ModifyUMongoDBAttribute"); + return (ModifyUMongoDBAttributeResponse) this.invoke(request, ModifyUMongoDBAttributeResponse.class); + } + + + + + + + /** + * ModifyUMongoDBBackupParam - 修改实例备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUMongoDBBackupParamResponse modifyUMongoDBBackupParam(ModifyUMongoDBBackupParamRequest request) throws UCloudException { + request.setAction("ModifyUMongoDBBackupParam"); + return (ModifyUMongoDBBackupParamResponse) this.invoke(request, ModifyUMongoDBBackupParamResponse.class); + } + + + + + + + /** + * RestartUMongoDBCluster - 重启集群 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestartUMongoDBClusterResponse restartUMongoDBCluster(RestartUMongoDBClusterRequest request) throws UCloudException { + request.setAction("RestartUMongoDBCluster"); + return (RestartUMongoDBClusterResponse) this.invoke(request, RestartUMongoDBClusterResponse.class); + } + + + + + + + /** + * StartUMongoDBCluster - 启动集群 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartUMongoDBClusterResponse startUMongoDBCluster(StartUMongoDBClusterRequest request) throws UCloudException { + request.setAction("StartUMongoDBCluster"); + return (StartUMongoDBClusterResponse) this.invoke(request, StartUMongoDBClusterResponse.class); + } + + + + + + + /** + * StopUMongoDBCluster - 停止集群 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUMongoDBClusterResponse stopUMongoDBCluster(StopUMongoDBClusterRequest request) throws UCloudException { + request.setAction("StopUMongoDBCluster"); + return (StopUMongoDBClusterResponse) this.invoke(request, StopUMongoDBClusterResponse.class); + } } diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClientInterface.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClientInterface.java index 05ae166a..26bef184 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClientInterface.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClientInterface.java @@ -1,208 +1,331 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.umongodb.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.umongodb.models.BackupUMongoDBClusterRequest; import cn.ucloud.umongodb.models.BackupUMongoDBClusterResponse; + + + import cn.ucloud.umongodb.models.CreateUMongoDBConfigTemplateRequest; import cn.ucloud.umongodb.models.CreateUMongoDBConfigTemplateResponse; + + + import cn.ucloud.umongodb.models.DescribeUMongoDBBackupURLRequest; import cn.ucloud.umongodb.models.DescribeUMongoDBBackupURLResponse; + + + import cn.ucloud.umongodb.models.DescribeUMongoDBInstanceRequest; import cn.ucloud.umongodb.models.DescribeUMongoDBInstanceResponse; + + + import cn.ucloud.umongodb.models.GetUMongoDBBackupParamRequest; import cn.ucloud.umongodb.models.GetUMongoDBBackupParamResponse; + + + import cn.ucloud.umongodb.models.GetUMongoDBCfgTempItemRequest; import cn.ucloud.umongodb.models.GetUMongoDBCfgTempItemResponse; + + + import cn.ucloud.umongodb.models.GetUMongoDBRecoverTimeRangeRequest; import cn.ucloud.umongodb.models.GetUMongoDBRecoverTimeRangeResponse; + + + import cn.ucloud.umongodb.models.ListUMongoDBBackupRequest; import cn.ucloud.umongodb.models.ListUMongoDBBackupResponse; + + + import cn.ucloud.umongodb.models.ListUMongoDBConfigTemplateRequest; import cn.ucloud.umongodb.models.ListUMongoDBConfigTemplateResponse; + + + import cn.ucloud.umongodb.models.ListUMongoDBMachineTypeRequest; import cn.ucloud.umongodb.models.ListUMongoDBMachineTypeResponse; + + + import cn.ucloud.umongodb.models.ListUMongoDBVersionRequest; import cn.ucloud.umongodb.models.ListUMongoDBVersionResponse; + + + import cn.ucloud.umongodb.models.ModifyUMongoDBAdminPasswordRequest; import cn.ucloud.umongodb.models.ModifyUMongoDBAdminPasswordResponse; + + + import cn.ucloud.umongodb.models.ModifyUMongoDBAttributeRequest; import cn.ucloud.umongodb.models.ModifyUMongoDBAttributeResponse; + + + import cn.ucloud.umongodb.models.ModifyUMongoDBBackupParamRequest; import cn.ucloud.umongodb.models.ModifyUMongoDBBackupParamResponse; + + + import cn.ucloud.umongodb.models.RestartUMongoDBClusterRequest; import cn.ucloud.umongodb.models.RestartUMongoDBClusterResponse; + + + import cn.ucloud.umongodb.models.StartUMongoDBClusterRequest; import cn.ucloud.umongodb.models.StartUMongoDBClusterResponse; + + + import cn.ucloud.umongodb.models.StopUMongoDBClusterRequest; import cn.ucloud.umongodb.models.StopUMongoDBClusterResponse; -/** This client is used to call actions of **UMongoDB** service */ +/** + * This client is used to call actions of **UMongoDB** service + */ public interface UMongoDBClientInterface extends Client { - + + + + + + /** * BackupUMongoDBCluster - 备份集群数据库 * * @param request Request object * @throws UCloudException Exception */ - public BackupUMongoDBClusterResponse backupUMongoDBCluster(BackupUMongoDBClusterRequest request) - throws UCloudException; - + public BackupUMongoDBClusterResponse backupUMongoDBCluster(BackupUMongoDBClusterRequest request) throws UCloudException; + + + + + + /** * CreateUMongoDBConfigTemplate - 创建配置模板 * * @param request Request object * @throws UCloudException Exception */ - public CreateUMongoDBConfigTemplateResponse createUMongoDBConfigTemplate( - CreateUMongoDBConfigTemplateRequest request) throws UCloudException; - + public CreateUMongoDBConfigTemplateResponse createUMongoDBConfigTemplate(CreateUMongoDBConfigTemplateRequest request) throws UCloudException; + + + + + + /** * DescribeUMongoDBBackupURL - 获取实例备份下载链接 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUMongoDBBackupURLResponse describeUMongoDBBackupURL( - DescribeUMongoDBBackupURLRequest request) throws UCloudException; - + public DescribeUMongoDBBackupURLResponse describeUMongoDBBackupURL(DescribeUMongoDBBackupURLRequest request) throws UCloudException; + + + + + + /** * DescribeUMongoDBInstance - 描述MongoDB实例 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUMongoDBInstanceResponse describeUMongoDBInstance( - DescribeUMongoDBInstanceRequest request) throws UCloudException; - + public DescribeUMongoDBInstanceResponse describeUMongoDBInstance(DescribeUMongoDBInstanceRequest request) throws UCloudException; + + + + + + /** * GetUMongoDBBackupParam - 获取实例备份策略 * * @param request Request object * @throws UCloudException Exception */ - public GetUMongoDBBackupParamResponse getUMongoDBBackupParam( - GetUMongoDBBackupParamRequest request) throws UCloudException; - + public GetUMongoDBBackupParamResponse getUMongoDBBackupParam(GetUMongoDBBackupParamRequest request) throws UCloudException; + + + + + + /** * GetUMongoDBCfgTempItem - 获取配置模板内容 * * @param request Request object * @throws UCloudException Exception */ - public GetUMongoDBCfgTempItemResponse getUMongoDBCfgTempItem( - GetUMongoDBCfgTempItemRequest request) throws UCloudException; - + public GetUMongoDBCfgTempItemResponse getUMongoDBCfgTempItem(GetUMongoDBCfgTempItemRequest request) throws UCloudException; + + + + + + /** * GetUMongoDBRecoverTimeRange - 获取UMongoDB可回档时间范围 * * @param request Request object * @throws UCloudException Exception */ - public GetUMongoDBRecoverTimeRangeResponse getUMongoDBRecoverTimeRange( - GetUMongoDBRecoverTimeRangeRequest request) throws UCloudException; - + public GetUMongoDBRecoverTimeRangeResponse getUMongoDBRecoverTimeRange(GetUMongoDBRecoverTimeRangeRequest request) throws UCloudException; + + + + + + /** * ListUMongoDBBackup - 实例备份列表 * * @param request Request object * @throws UCloudException Exception */ - public ListUMongoDBBackupResponse listUMongoDBBackup(ListUMongoDBBackupRequest request) - throws UCloudException; - + public ListUMongoDBBackupResponse listUMongoDBBackup(ListUMongoDBBackupRequest request) throws UCloudException; + + + + + + /** * ListUMongoDBConfigTemplate - 拉取配置模板 * * @param request Request object * @throws UCloudException Exception */ - public ListUMongoDBConfigTemplateResponse listUMongoDBConfigTemplate( - ListUMongoDBConfigTemplateRequest request) throws UCloudException; - + public ListUMongoDBConfigTemplateResponse listUMongoDBConfigTemplate(ListUMongoDBConfigTemplateRequest request) throws UCloudException; + + + + + + /** * ListUMongoDBMachineType - 获取UmongDB支持机器类型列表 * * @param request Request object * @throws UCloudException Exception */ - public ListUMongoDBMachineTypeResponse listUMongoDBMachineType( - ListUMongoDBMachineTypeRequest request) throws UCloudException; - + public ListUMongoDBMachineTypeResponse listUMongoDBMachineType(ListUMongoDBMachineTypeRequest request) throws UCloudException; + + + + + + /** * ListUMongoDBVersion - 获取UMongoDB支持版本列表 * * @param request Request object * @throws UCloudException Exception */ - public ListUMongoDBVersionResponse listUMongoDBVersion(ListUMongoDBVersionRequest request) - throws UCloudException; - + public ListUMongoDBVersionResponse listUMongoDBVersion(ListUMongoDBVersionRequest request) throws UCloudException; + + + + + + /** * ModifyUMongoDBAdminPassword - 修改MongoDB集群root密码 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUMongoDBAdminPasswordResponse modifyUMongoDBAdminPassword( - ModifyUMongoDBAdminPasswordRequest request) throws UCloudException; - + public ModifyUMongoDBAdminPasswordResponse modifyUMongoDBAdminPassword(ModifyUMongoDBAdminPasswordRequest request) throws UCloudException; + + + + + + /** * ModifyUMongoDBAttribute - 修改umongodb集群名称 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUMongoDBAttributeResponse modifyUMongoDBAttribute( - ModifyUMongoDBAttributeRequest request) throws UCloudException; - + public ModifyUMongoDBAttributeResponse modifyUMongoDBAttribute(ModifyUMongoDBAttributeRequest request) throws UCloudException; + + + + + + /** * ModifyUMongoDBBackupParam - 修改实例备份策略 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUMongoDBBackupParamResponse modifyUMongoDBBackupParam( - ModifyUMongoDBBackupParamRequest request) throws UCloudException; - + public ModifyUMongoDBBackupParamResponse modifyUMongoDBBackupParam(ModifyUMongoDBBackupParamRequest request) throws UCloudException; + + + + + + /** * RestartUMongoDBCluster - 重启集群 * * @param request Request object * @throws UCloudException Exception */ - public RestartUMongoDBClusterResponse restartUMongoDBCluster( - RestartUMongoDBClusterRequest request) throws UCloudException; - + public RestartUMongoDBClusterResponse restartUMongoDBCluster(RestartUMongoDBClusterRequest request) throws UCloudException; + + + + + + /** * StartUMongoDBCluster - 启动集群 * * @param request Request object * @throws UCloudException Exception */ - public StartUMongoDBClusterResponse startUMongoDBCluster(StartUMongoDBClusterRequest request) - throws UCloudException; - + public StartUMongoDBClusterResponse startUMongoDBCluster(StartUMongoDBClusterRequest request) throws UCloudException; + + + + + + /** * StopUMongoDBCluster - 停止集群 * * @param request Request object * @throws UCloudException Exception */ - public StopUMongoDBClusterResponse stopUMongoDBCluster(StopUMongoDBClusterRequest request) - throws UCloudException; + public StopUMongoDBClusterResponse stopUMongoDBCluster(StopUMongoDBClusterRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBClusterRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBClusterRequest.java index c15f6fe8..328f6eaf 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBClusterRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBClusterRequest.java @@ -1,45 +1,69 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class BackupUMongoDBClusterRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 实例ID */ + + + + /** + * 实例ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** 备份名称 */ + + + + /** + * 备份名称 + */ @NotEmpty @UCloudParam("BackupName") private String backupName; - + + + + public String getRegion() { return region; } @@ -47,7 +71,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -55,7 +79,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getClusterId() { return clusterId; } @@ -63,7 +87,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public String getBackupName() { return backupName; } @@ -71,4 +95,15 @@ public String getBackupName() { public void setBackupName(String backupName) { this.backupName = backupName; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBClusterResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBClusterResponse.java index 1df3a701..772af61e 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBClusterResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBClusterResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class BackupUMongoDBClusterResponse extends Response { - /** 备份ID */ + + + /** + * 备份ID + */ @SerializedName("BackupId") private String backupId; - - /** 实例ID */ + + + + /** + * 实例ID + */ @SerializedName("ClusterId") private String clusterId; - + + public String getBackupId() { return backupId; } @@ -35,7 +49,7 @@ public String getBackupId() { public void setBackupId(String backupId) { this.backupId = backupId; } - + public String getClusterId() { return clusterId; } @@ -43,4 +57,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/CreateUMongoDBConfigTemplateRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/CreateUMongoDBConfigTemplateRequest.java index 01d28be8..9319438b 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/CreateUMongoDBConfigTemplateRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/CreateUMongoDBConfigTemplateRequest.java @@ -1,61 +1,92 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUMongoDBConfigTemplateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 模板名称 */ + + + + /** + * 模板名称 + */ @NotEmpty @UCloudParam("TemplateName") private String templateName; - - /** 集群类型 */ + + + + /** + * 集群类型 + */ @NotEmpty @UCloudParam("ClusterType") private String clusterType; - - /** mongo版本 */ + + + + /** + * mongo版本 + */ @NotEmpty @UCloudParam("MongodbVersion") private String mongodbVersion; - - /** 基础模板 */ + + + + /** + * 基础模板 + */ @NotEmpty @UCloudParam("BaseTemplateId") private String baseTemplateId; - - /** 模板描述 */ + + + + /** + * 模板描述 + */ @UCloudParam("Description") private String description; - + + public String getRegion() { return region; } @@ -63,7 +94,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -71,7 +102,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getTemplateName() { return templateName; } @@ -79,7 +110,7 @@ public String getTemplateName() { public void setTemplateName(String templateName) { this.templateName = templateName; } - + public String getClusterType() { return clusterType; } @@ -87,7 +118,7 @@ public String getClusterType() { public void setClusterType(String clusterType) { this.clusterType = clusterType; } - + public String getMongodbVersion() { return mongodbVersion; } @@ -95,7 +126,7 @@ public String getMongodbVersion() { public void setMongodbVersion(String mongodbVersion) { this.mongodbVersion = mongodbVersion; } - + public String getBaseTemplateId() { return baseTemplateId; } @@ -103,7 +134,7 @@ public String getBaseTemplateId() { public void setBaseTemplateId(String baseTemplateId) { this.baseTemplateId = baseTemplateId; } - + public String getDescription() { return description; } @@ -111,4 +142,14 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/CreateUMongoDBConfigTemplateResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/CreateUMongoDBConfigTemplateResponse.java index a99256fd..d9e6731d 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/CreateUMongoDBConfigTemplateResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/CreateUMongoDBConfigTemplateResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUMongoDBConfigTemplateResponse extends Response { - /** 模板Id */ + + + /** + * 模板Id + */ @SerializedName("TemplateId") private String templateId; - + + public String getTemplateId() { return templateId; } @@ -31,4 +41,14 @@ public String getTemplateId() { public void setTemplateId(String templateId) { this.templateId = templateId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBBackupURLRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBBackupURLRequest.java index 388ee9f5..769fc1f8 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBBackupURLRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBBackupURLRequest.java @@ -1,59 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUMongoDBBackupURLRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 集群ID */ + + + + /** + * 集群ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** 文件备份ID */ + + + + /** + * 文件备份ID + */ @UCloudParam("BackupId") private String backupId; - - /** 打包ID */ + + + + /** + * 打包ID + */ @UCloudParam("PackageId") private Integer packageId; - - /** 备份链接过期时间(单位秒) */ + + + + /** + * 备份链接过期时间(单位秒) + */ @UCloudParam("ValidTime") private Integer validTime; - + + public String getRegion() { return region; } @@ -61,7 +92,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -69,7 +100,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -77,7 +108,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -85,7 +116,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public String getBackupId() { return backupId; } @@ -93,7 +124,7 @@ public String getBackupId() { public void setBackupId(String backupId) { this.backupId = backupId; } - + public Integer getPackageId() { return packageId; } @@ -101,7 +132,7 @@ public Integer getPackageId() { public void setPackageId(Integer packageId) { this.packageId = packageId; } - + public Integer getValidTime() { return validTime; } @@ -109,4 +140,14 @@ public Integer getValidTime() { public void setValidTime(Integer validTime) { this.validTime = validTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBBackupURLResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBBackupURLResponse.java index db9d96d6..bcdf9236 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBBackupURLResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBBackupURLResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeUMongoDBBackupURLResponse extends Response { - /** 备份文件公网地址 */ + + + /** + * 备份文件公网地址 + */ @SerializedName("InternetAddress") private String internetAddress; - - /** 备份文件内网地址 */ + + + + /** + * 备份文件内网地址 + */ @SerializedName("IntranetAddress") private String intranetAddress; - + + public String getInternetAddress() { return internetAddress; } @@ -35,7 +49,7 @@ public String getInternetAddress() { public void setInternetAddress(String internetAddress) { this.internetAddress = internetAddress; } - + public String getIntranetAddress() { return intranetAddress; } @@ -43,4 +57,14 @@ public String getIntranetAddress() { public void setIntranetAddress(String intranetAddress) { this.intranetAddress = intranetAddress; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBInstanceRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBInstanceRequest.java index 6ccdc91e..89952462 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBInstanceRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBInstanceRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUMongoDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例资源ID */ + + + + /** + * 实例资源ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** 集群类型,ReplicaSet:副本集,SharedCluster:分片集群 */ + + + + /** + * 集群类型,ReplicaSet:副本集,SharedCluster:分片集群 + */ @UCloudParam("ClusterType") private String clusterType; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -60,7 +83,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -68,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -76,7 +99,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public String getClusterType() { return clusterType; } @@ -84,4 +107,14 @@ public String getClusterType() { public void setClusterType(String clusterType) { this.clusterType = clusterType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBInstanceResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBInstanceResponse.java index 2160c849..9d15cb40 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBInstanceResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBInstanceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUMongoDBInstanceResponse extends Response { - /** 副本集信息 */ + + + /** + * 副本集信息 + */ @SerializedName("ClusterInfo") private ClusterInfo clusterInfo; - + + public ClusterInfo getClusterInfo() { return clusterInfo; } @@ -32,640 +41,842 @@ public ClusterInfo getClusterInfo() { public void setClusterInfo(ClusterInfo clusterInfo) { this.clusterInfo = clusterInfo; } - - public static class ClusterInfo extends Response { - - /** 可用区 */ - @SerializedName("Zone") - private String zone; - - /** */ - @SerializedName("ZoneId") - private Integer zoneId; - - /** 集群类型,ReplicaSet :副本集,SharedCluster:分片集 */ - @SerializedName("ClusterType") - private String clusterType; - - /** 集群ID */ - @SerializedName("ClusterId") - private String clusterId; - - /** 实例名称 */ - @SerializedName("InstanceName") - private String instanceName; - - /** - * 副本集/分片集群状态标记 - * Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, - * StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 - */ - @SerializedName("State") - private String state; - - /** 副本集的Mongodb的版本 */ - @SerializedName("DBVersion") - private String dbVersion; - - /** 磁盘空间(GB), 默认根据配置机型 */ - @SerializedName("DiskSpace") - private Integer diskSpace; - - /** 计算规格 */ - @SerializedName("MachineTypeId") - private String machineTypeId; - - /** DB实例创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** ConfigSrv信息 */ - @SerializedName("ConfigReplicaInfo") - private ReplicaInfo configReplicaInfo; - - /** 数据副本信息 */ - @SerializedName("DataReplicaInfos") - private List dataReplicaInfos; - - /** Mongos节点信息 */ - @SerializedName("MongosInfo") - private List mongosInfo; - - /** 副本集的访问地址 */ - @SerializedName("ConnectURL") - private String connectURL; - - /** DB实例删除时间 */ - @SerializedName("DeleteTime") - private Integer deleteTime; - - /** 子网ID */ - @SerializedName("SubnetId") - private String subnetId; - - /** VPC的ID */ - @SerializedName("VPCId") - private String vpcId; - - /** 分片数量,分片集有效 */ - @SerializedName("ShardCount") - private Integer shardCount; - - /** 每分片节点数量,分片集有效 */ - @SerializedName("ShardNodeCount") - private Integer shardNodeCount; - - /** Mongos节点数量,分片集有效 */ - @SerializedName("MongosCount") - private Integer mongosCount; - - /** Config配置集群节点数量,分片集有效 */ - @SerializedName("ConfigNodeCount") - private Integer configNodeCount; - - /** Config配置集群节点配置,分片集有效 */ - @SerializedName("ConfigMachineType") - private String configMachineType; - - /** 实例业务组 */ - @SerializedName("Tag") - private String tag; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public Integer getZoneId() { - return zoneId; - } - - public void setZoneId(Integer zoneId) { - this.zoneId = zoneId; - } - - public String getClusterType() { - return clusterType; - } - - public void setClusterType(String clusterType) { - this.clusterType = clusterType; - } - - public String getClusterId() { - return clusterId; - } - - public void setClusterId(String clusterId) { - this.clusterId = clusterId; - } - - public String getInstanceName() { - return instanceName; - } - - public void setInstanceName(String instanceName) { - this.instanceName = instanceName; - } - - public String getState() { - return state; - } - - public void setState(String state) { - this.state = state; - } - - public String getDBVersion() { - return dbVersion; - } - - public void setDBVersion(String dbVersion) { - this.dbVersion = dbVersion; - } - - public Integer getDiskSpace() { - return diskSpace; - } - - public void setDiskSpace(Integer diskSpace) { - this.diskSpace = diskSpace; - } - - public String getMachineTypeId() { - return machineTypeId; - } - - public void setMachineTypeId(String machineTypeId) { - this.machineTypeId = machineTypeId; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public ReplicaInfo getConfigReplicaInfo() { - return configReplicaInfo; - } - - public void setConfigReplicaInfo(ReplicaInfo configReplicaInfo) { - this.configReplicaInfo = configReplicaInfo; - } - - public List getDataReplicaInfos() { - return dataReplicaInfos; - } - - public void setDataReplicaInfos(List dataReplicaInfos) { - this.dataReplicaInfos = dataReplicaInfos; - } - - public List getMongosInfo() { - return mongosInfo; - } - - public void setMongosInfo(List mongosInfo) { - this.mongosInfo = mongosInfo; - } - - public String getConnectURL() { - return connectURL; - } - - public void setConnectURL(String connectURL) { - this.connectURL = connectURL; - } - - public Integer getDeleteTime() { - return deleteTime; - } - - public void setDeleteTime(Integer deleteTime) { - this.deleteTime = deleteTime; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public Integer getShardCount() { - return shardCount; - } - - public void setShardCount(Integer shardCount) { - this.shardCount = shardCount; - } - - public Integer getShardNodeCount() { - return shardNodeCount; - } - - public void setShardNodeCount(Integer shardNodeCount) { - this.shardNodeCount = shardNodeCount; - } - - public Integer getMongosCount() { - return mongosCount; - } - - public void setMongosCount(Integer mongosCount) { - this.mongosCount = mongosCount; - } - - public Integer getConfigNodeCount() { - return configNodeCount; - } - - public void setConfigNodeCount(Integer configNodeCount) { - this.configNodeCount = configNodeCount; - } - - public String getConfigMachineType() { - return configMachineType; - } - - public void setConfigMachineType(String configMachineType) { - this.configMachineType = configMachineType; - } - - public String getTag() { - return tag; - } - - public void setTag(String tag) { - this.tag = tag; - } + + public static class ClusterInfo extends Response { + + + /** + * 可用区 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * + */ + @SerializedName("ZoneId") + private Integer zoneId; + + + + /** + * 集群类型,ReplicaSet :副本集,SharedCluster:分片集 + */ + @SerializedName("ClusterType") + private String clusterType; + + + + /** + * 集群ID + */ + @SerializedName("ClusterId") + private String clusterId; + + + + /** + * 实例名称 + */ + @SerializedName("InstanceName") + private String instanceName; + + + + /** + * 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + */ + @SerializedName("State") + private String state; + + + + /** + * 副本集的Mongodb的版本 + */ + @SerializedName("DBVersion") + private String dbVersion; + + + + /** + * 磁盘空间(GB), 默认根据配置机型 + */ + @SerializedName("DiskSpace") + private Integer diskSpace; + + + + /** + * 计算规格 + */ + @SerializedName("MachineTypeId") + private String machineTypeId; + + + + /** + * DB实例创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * ConfigSrv信息 + */ + @SerializedName("ConfigReplicaInfo") + private ReplicaInfo configReplicaInfo; + + + + /** + * 数据副本信息 + */ + @SerializedName("DataReplicaInfos") + private List dataReplicaInfos; + + + + /** + * Mongos节点信息 + */ + @SerializedName("MongosInfo") + private List mongosInfo; + + + + /** + * 副本集的访问地址 + */ + @SerializedName("ConnectURL") + private String connectURL; + + + + /** + * DB实例删除时间 + */ + @SerializedName("DeleteTime") + private Integer deleteTime; + + + + /** + * 子网ID + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * VPC的ID + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 分片数量,分片集有效 + */ + @SerializedName("ShardCount") + private Integer shardCount; + + + + /** + * 每分片节点数量,分片集有效 + */ + @SerializedName("ShardNodeCount") + private Integer shardNodeCount; + + + + /** + * Mongos节点数量,分片集有效 + */ + @SerializedName("MongosCount") + private Integer mongosCount; + + + + /** + * Config配置集群节点数量,分片集有效 + */ + @SerializedName("ConfigNodeCount") + private Integer configNodeCount; + + + + /** + * Config配置集群节点配置,分片集有效 + */ + @SerializedName("ConfigMachineType") + private String configMachineType; + + + + /** + * 实例业务组 + */ + @SerializedName("Tag") + private String tag; + + + public String getZone() { + return zone; } - public static class DiskInfo extends Response { - - /** 磁盘id */ - @SerializedName("DiskId") - private String diskId; - - /** 磁盘容量单位GB */ - @SerializedName("DiskSize") - private Integer diskSize; - - public String getDiskId() { - return diskId; - } - - public void setDiskId(String diskId) { - this.diskId = diskId; - } - - public Integer getDiskSize() { - return diskSize; - } - - public void setDiskSize(Integer diskSize) { - this.diskSize = diskSize; - } + public void setZone(String zone) { + this.zone = zone; + } + + public Integer getZoneId() { + return zoneId; } - public static class NodeInfo extends Response { - - /** 可用区 */ - @SerializedName("Zone") - private String zone; - - /** 可用区ID */ - @SerializedName("ZoneId") - private Integer zoneId; - - /** 节点ID */ - @SerializedName("NodeId") - private String nodeId; - - /** 节点角色,Primary/Secondary/Arbiter/Startup等等 */ - @SerializedName("NodeRole") - private String nodeRole; - - /** 节点类型 */ - @SerializedName("NodeType") - private String nodeType; - - /** - * 副本集/分片集群状态标记 - * Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, - * StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 - */ - @SerializedName("State") - private String state; - - /** 副本集的Mongodb的版本 */ - @SerializedName("DBVersion") - private String dbVersion; - - /** 节点所属副本集ID */ - @SerializedName("ClusterId") - private String clusterId; - - /** 虚拟节点ID */ - @SerializedName("VirtualClusterId") - private String virtualClusterId; - - /** 机型信息 */ - @SerializedName("MachineType") - private String machineType; - - /** 机型信息ID */ - @SerializedName("MachineTypeId") - private String machineTypeId; - - /** DB实例创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 数据盘信息 */ - @SerializedName("DataDisk") - private DiskInfo dataDisk; - - /** 系统盘信息 */ - @SerializedName("SysDisk") - private DiskInfo sysDisk; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public Integer getZoneId() { - return zoneId; - } - - public void setZoneId(Integer zoneId) { - this.zoneId = zoneId; - } - - public String getNodeId() { - return nodeId; - } - - public void setNodeId(String nodeId) { - this.nodeId = nodeId; - } - - public String getNodeRole() { - return nodeRole; - } + public void setZoneId(Integer zoneId) { + this.zoneId = zoneId; + } + + public String getClusterType() { + return clusterType; + } - public void setNodeRole(String nodeRole) { - this.nodeRole = nodeRole; - } + public void setClusterType(String clusterType) { + this.clusterType = clusterType; + } + + public String getClusterId() { + return clusterId; + } - public String getNodeType() { - return nodeType; - } + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getInstanceName() { + return instanceName; + } - public void setNodeType(String nodeType) { - this.nodeType = nodeType; - } + public void setInstanceName(String instanceName) { + this.instanceName = instanceName; + } + + public String getState() { + return state; + } - public String getState() { - return state; - } + public void setState(String state) { + this.state = state; + } + + public String getDBVersion() { + return dbVersion; + } - public void setState(String state) { - this.state = state; - } + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public Integer getDiskSpace() { + return diskSpace; + } - public String getDBVersion() { - return dbVersion; - } + public void setDiskSpace(Integer diskSpace) { + this.diskSpace = diskSpace; + } + + public String getMachineTypeId() { + return machineTypeId; + } - public void setDBVersion(String dbVersion) { - this.dbVersion = dbVersion; - } + public void setMachineTypeId(String machineTypeId) { + this.machineTypeId = machineTypeId; + } + + public Integer getCreateTime() { + return createTime; + } - public String getClusterId() { - return clusterId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public ReplicaInfo getConfigReplicaInfo() { + return configReplicaInfo; + } - public void setClusterId(String clusterId) { - this.clusterId = clusterId; - } + public void setConfigReplicaInfo(ReplicaInfo configReplicaInfo) { + this.configReplicaInfo = configReplicaInfo; + } + + public List getDataReplicaInfos() { + return dataReplicaInfos; + } - public String getVirtualClusterId() { - return virtualClusterId; - } + public void setDataReplicaInfos(List dataReplicaInfos) { + this.dataReplicaInfos = dataReplicaInfos; + } + + public List getMongosInfo() { + return mongosInfo; + } - public void setVirtualClusterId(String virtualClusterId) { - this.virtualClusterId = virtualClusterId; - } + public void setMongosInfo(List mongosInfo) { + this.mongosInfo = mongosInfo; + } + + public String getConnectURL() { + return connectURL; + } - public String getMachineType() { - return machineType; - } + public void setConnectURL(String connectURL) { + this.connectURL = connectURL; + } + + public Integer getDeleteTime() { + return deleteTime; + } - public void setMachineType(String machineType) { - this.machineType = machineType; - } + public void setDeleteTime(Integer deleteTime) { + this.deleteTime = deleteTime; + } + + public String getSubnetId() { + return subnetId; + } - public String getMachineTypeId() { - return machineTypeId; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getVPCId() { + return vpcId; + } - public void setMachineTypeId(String machineTypeId) { - this.machineTypeId = machineTypeId; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public Integer getShardCount() { + return shardCount; + } - public Integer getCreateTime() { - return createTime; - } + public void setShardCount(Integer shardCount) { + this.shardCount = shardCount; + } + + public Integer getShardNodeCount() { + return shardNodeCount; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setShardNodeCount(Integer shardNodeCount) { + this.shardNodeCount = shardNodeCount; + } + + public Integer getMongosCount() { + return mongosCount; + } - public DiskInfo getDataDisk() { - return dataDisk; - } + public void setMongosCount(Integer mongosCount) { + this.mongosCount = mongosCount; + } + + public Integer getConfigNodeCount() { + return configNodeCount; + } - public void setDataDisk(DiskInfo dataDisk) { - this.dataDisk = dataDisk; - } + public void setConfigNodeCount(Integer configNodeCount) { + this.configNodeCount = configNodeCount; + } + + public String getConfigMachineType() { + return configMachineType; + } - public DiskInfo getSysDisk() { - return sysDisk; - } + public void setConfigMachineType(String configMachineType) { + this.configMachineType = configMachineType; + } + + public String getTag() { + return tag; + } - public void setSysDisk(DiskInfo sysDisk) { - this.sysDisk = sysDisk; - } + public void setTag(String tag) { + this.tag = tag; + } + + } + public static class DiskInfo extends Response { + + + /** + * 磁盘id + */ + @SerializedName("DiskId") + private String diskId; + + + + /** + * 磁盘容量单位GB + */ + @SerializedName("DiskSize") + private Integer diskSize; + + + public String getDiskId() { + return diskId; } - public static class ReplicaInfo extends Response { + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public Integer getDiskSize() { + return diskSize; + } - /** 副本集ID */ - @SerializedName("ReplicaId") - private String replicaId; + public void setDiskSize(Integer diskSize) { + this.diskSize = diskSize; + } + + } + public static class NodeInfo extends Response { + + + /** + * 可用区 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 可用区ID + */ + @SerializedName("ZoneId") + private Integer zoneId; + + + + /** + * 节点ID + */ + @SerializedName("NodeId") + private String nodeId; + + + + /** + * 节点角色,Primary/Secondary/Arbiter/Startup等等 + */ + @SerializedName("NodeRole") + private String nodeRole; + + + + /** + * 节点类型 + */ + @SerializedName("NodeType") + private String nodeType; + + + + /** + * 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + */ + @SerializedName("State") + private String state; + + + + /** + * 副本集的Mongodb的版本 + */ + @SerializedName("DBVersion") + private String dbVersion; + + + + /** + * 节点所属副本集ID + */ + @SerializedName("ClusterId") + private String clusterId; + + + + /** + * 虚拟节点ID + */ + @SerializedName("VirtualClusterId") + private String virtualClusterId; + + + + /** + * 机型信息 + */ + @SerializedName("MachineType") + private String machineType; + + + + /** + * 机型信息ID + */ + @SerializedName("MachineTypeId") + private String machineTypeId; + + + + /** + * DB实例创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 数据盘信息 + */ + @SerializedName("DataDisk") + private DiskInfo dataDisk; + + + + /** + * 系统盘信息 + */ + @SerializedName("SysDisk") + private DiskInfo sysDisk; + + + public String getZone() { + return zone; + } - /** 集群ID */ - @SerializedName("ClusterId") - private String clusterId; + public void setZone(String zone) { + this.zone = zone; + } + + public Integer getZoneId() { + return zoneId; + } - /** 副本类型,ConfigRepl或者DataRepl */ - @SerializedName("ReplicaType") - private String replicaType; + public void setZoneId(Integer zoneId) { + this.zoneId = zoneId; + } + + public String getNodeId() { + return nodeId; + } - /** - * 副本集/分片集群状态标记 - * Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, - * StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 - */ - @SerializedName("State") - private String state; + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public String getNodeRole() { + return nodeRole; + } - /** 机器类型 */ - @SerializedName("MachineType") - private String machineType; + public void setNodeRole(String nodeRole) { + this.nodeRole = nodeRole; + } + + public String getNodeType() { + return nodeType; + } - /** 机器类型Id */ - @SerializedName("MachineTypeId") - private String machineTypeId; + public void setNodeType(String nodeType) { + this.nodeType = nodeType; + } + + public String getState() { + return state; + } - /** 隔离组ID */ - @SerializedName("IsolationGroupId") - private String isolationGroupId; + public void setState(String state) { + this.state = state; + } + + public String getDBVersion() { + return dbVersion; + } - /** 副本集下的节点信息 */ - @SerializedName("NodeInfos") - private List nodeInfos; + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public String getClusterId() { + return clusterId; + } - /** 副本集下的节点数量 */ - @SerializedName("NodeCount") - private Integer nodeCount; + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getVirtualClusterId() { + return virtualClusterId; + } - /** 副本集创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; + public void setVirtualClusterId(String virtualClusterId) { + this.virtualClusterId = virtualClusterId; + } + + public String getMachineType() { + return machineType; + } - /** 副本集删除时间 */ - @SerializedName("DeleteTime") - private Integer deleteTime; + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getMachineTypeId() { + return machineTypeId; + } - /** 副本集修改时间 */ - @SerializedName("ModifyTime") - private Integer modifyTime; + public void setMachineTypeId(String machineTypeId) { + this.machineTypeId = machineTypeId; + } + + public Integer getCreateTime() { + return createTime; + } - public String getReplicaId() { - return replicaId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public DiskInfo getDataDisk() { + return dataDisk; + } - public void setReplicaId(String replicaId) { - this.replicaId = replicaId; - } + public void setDataDisk(DiskInfo dataDisk) { + this.dataDisk = dataDisk; + } + + public DiskInfo getSysDisk() { + return sysDisk; + } - public String getClusterId() { - return clusterId; - } + public void setSysDisk(DiskInfo sysDisk) { + this.sysDisk = sysDisk; + } + + } + public static class ReplicaInfo extends Response { + + + /** + * 副本集ID + */ + @SerializedName("ReplicaId") + private String replicaId; + + + + /** + * 集群ID + */ + @SerializedName("ClusterId") + private String clusterId; + + + + /** + * 副本类型,ConfigRepl或者DataRepl + */ + @SerializedName("ReplicaType") + private String replicaType; + + + + /** + * 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + */ + @SerializedName("State") + private String state; + + + + /** + * 机器类型 + */ + @SerializedName("MachineType") + private String machineType; + + + + /** + * 机器类型Id + */ + @SerializedName("MachineTypeId") + private String machineTypeId; + + + + /** + * 隔离组ID + */ + @SerializedName("IsolationGroupId") + private String isolationGroupId; + + + + /** + * 副本集下的节点信息 + */ + @SerializedName("NodeInfos") + private List nodeInfos; + + + + /** + * 副本集下的节点数量 + */ + @SerializedName("NodeCount") + private Integer nodeCount; + + + + /** + * 副本集创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 副本集删除时间 + */ + @SerializedName("DeleteTime") + private Integer deleteTime; + + + + /** + * 副本集修改时间 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + public String getReplicaId() { + return replicaId; + } - public void setClusterId(String clusterId) { - this.clusterId = clusterId; - } + public void setReplicaId(String replicaId) { + this.replicaId = replicaId; + } + + public String getClusterId() { + return clusterId; + } - public String getReplicaType() { - return replicaType; - } + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getReplicaType() { + return replicaType; + } - public void setReplicaType(String replicaType) { - this.replicaType = replicaType; - } + public void setReplicaType(String replicaType) { + this.replicaType = replicaType; + } + + public String getState() { + return state; + } - public String getState() { - return state; - } + public void setState(String state) { + this.state = state; + } + + public String getMachineType() { + return machineType; + } - public void setState(String state) { - this.state = state; - } + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getMachineTypeId() { + return machineTypeId; + } - public String getMachineType() { - return machineType; - } + public void setMachineTypeId(String machineTypeId) { + this.machineTypeId = machineTypeId; + } + + public String getIsolationGroupId() { + return isolationGroupId; + } - public void setMachineType(String machineType) { - this.machineType = machineType; - } + public void setIsolationGroupId(String isolationGroupId) { + this.isolationGroupId = isolationGroupId; + } + + public List getNodeInfos() { + return nodeInfos; + } - public String getMachineTypeId() { - return machineTypeId; - } + public void setNodeInfos(List nodeInfos) { + this.nodeInfos = nodeInfos; + } + + public Integer getNodeCount() { + return nodeCount; + } - public void setMachineTypeId(String machineTypeId) { - this.machineTypeId = machineTypeId; - } + public void setNodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + } + + public Integer getCreateTime() { + return createTime; + } - public String getIsolationGroupId() { - return isolationGroupId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getDeleteTime() { + return deleteTime; + } - public void setIsolationGroupId(String isolationGroupId) { - this.isolationGroupId = isolationGroupId; - } + public void setDeleteTime(Integer deleteTime) { + this.deleteTime = deleteTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public List getNodeInfos() { - return nodeInfos; + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + } +} - public void setNodeInfos(List nodeInfos) { - this.nodeInfos = nodeInfos; - } - public Integer getNodeCount() { - return nodeCount; - } - public void setNodeCount(Integer nodeCount) { - this.nodeCount = nodeCount; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getDeleteTime() { - return deleteTime; - } - public void setDeleteTime(Integer deleteTime) { - this.deleteTime = deleteTime; - } - public Integer getModifyTime() { - return modifyTime; - } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - } -} diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamRequest.java index 5570d434..b88f5e86 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUMongoDBBackupParamRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 实例ID */ + + + + /** + * 实例ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - + + public String getRegion() { return region; } @@ -42,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -50,7 +68,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getClusterId() { return clusterId; } @@ -58,4 +76,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamResponse.java index e0260fde..79590af0 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUMongoDBBackupParamResponse extends Response { - /** 备份策略信息 */ + + + /** + * 备份策略信息 + */ @SerializedName("DataSet") private BackupParam dataSet; - + + public BackupParam getDataSet() { return dataSet; } @@ -31,67 +41,97 @@ public BackupParam getDataSet() { public void setDataSet(BackupParam dataSet) { this.dataSet = dataSet; } + + public static class BackupParam extends Response { + + + /** + * 实例ID + */ + @SerializedName("ClusterId") + private String clusterId; + + + + /** + * 自动备份预期周几 (1-7 表示 周一到周末,多个数据用','分割,eg: 3,7) + */ + @SerializedName("AutoBackupToggleWeek") + private String autoBackupToggleWeek; + + + + /** + * 自动备份预期时间范围 (24小时制,精确到分钟,00:00~23:59) + */ + @SerializedName("AutoBackupToggleTime") + private String autoBackupToggleTime; + + + + /** + * 自动备份保存份数 + */ + @SerializedName("AutoBackupCopies") + private Integer autoBackupCopies; + + + + /** + * 手动备份保存份数 + */ + @SerializedName("ManualBackupCopies") + private Integer manualBackupCopies; + + + public String getClusterId() { + return clusterId; + } - public static class BackupParam extends Response { - - /** 实例ID */ - @SerializedName("ClusterId") - private String clusterId; - - /** 自动备份预期周几 (1-7 表示 周一到周末,多个数据用','分割,eg: 3,7) */ - @SerializedName("AutoBackupToggleWeek") - private String autoBackupToggleWeek; + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getAutoBackupToggleWeek() { + return autoBackupToggleWeek; + } - /** 自动备份预期时间范围 (24小时制,精确到分钟,00:00~23:59) */ - @SerializedName("AutoBackupToggleTime") - private String autoBackupToggleTime; + public void setAutoBackupToggleWeek(String autoBackupToggleWeek) { + this.autoBackupToggleWeek = autoBackupToggleWeek; + } + + public String getAutoBackupToggleTime() { + return autoBackupToggleTime; + } - /** 自动备份保存份数 */ - @SerializedName("AutoBackupCopies") - private Integer autoBackupCopies; + public void setAutoBackupToggleTime(String autoBackupToggleTime) { + this.autoBackupToggleTime = autoBackupToggleTime; + } + + public Integer getAutoBackupCopies() { + return autoBackupCopies; + } - /** 手动备份保存份数 */ - @SerializedName("ManualBackupCopies") - private Integer manualBackupCopies; + public void setAutoBackupCopies(Integer autoBackupCopies) { + this.autoBackupCopies = autoBackupCopies; + } + + public Integer getManualBackupCopies() { + return manualBackupCopies; + } - public String getClusterId() { - return clusterId; + public void setManualBackupCopies(Integer manualBackupCopies) { + this.manualBackupCopies = manualBackupCopies; + } + } +} - public void setClusterId(String clusterId) { - this.clusterId = clusterId; - } - public String getAutoBackupToggleWeek() { - return autoBackupToggleWeek; - } - public void setAutoBackupToggleWeek(String autoBackupToggleWeek) { - this.autoBackupToggleWeek = autoBackupToggleWeek; - } - public String getAutoBackupToggleTime() { - return autoBackupToggleTime; - } - public void setAutoBackupToggleTime(String autoBackupToggleTime) { - this.autoBackupToggleTime = autoBackupToggleTime; - } - public Integer getAutoBackupCopies() { - return autoBackupCopies; - } - public void setAutoBackupCopies(Integer autoBackupCopies) { - this.autoBackupCopies = autoBackupCopies; - } - public Integer getManualBackupCopies() { - return manualBackupCopies; - } - public void setManualBackupCopies(Integer manualBackupCopies) { - this.manualBackupCopies = manualBackupCopies; - } - } -} diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBCfgTempItemRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBCfgTempItemRequest.java index 2ae8e6f2..55c893a6 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBCfgTempItemRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBCfgTempItemRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUMongoDBCfgTempItemRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 配置模板Id */ + + + + /** + * 配置模板Id + */ @NotEmpty @UCloudParam("TemplateId") private String templateId; - + + public String getRegion() { return region; } @@ -44,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -52,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getTemplateId() { return templateId; } @@ -60,4 +75,14 @@ public String getTemplateId() { public void setTemplateId(String templateId) { this.templateId = templateId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBCfgTempItemResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBCfgTempItemResponse.java index fd1b6c81..f8444398 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBCfgTempItemResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBCfgTempItemResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUMongoDBCfgTempItemResponse extends Response { - /** 配置模板项 */ + + + /** + * 配置模板项 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,250 +41,340 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class ConfigOptions extends Response { + + + /** + * mongo版本 + */ + @SerializedName("MongodbVersion") + private String mongodbVersion; + + + + /** + * 配置选项名 + */ + @SerializedName("OptionName") + private String optionName; + + + + /** + * 配置选项类型 string,int,bool + */ + @SerializedName("OptionValueType") + private String optionValueType; + + + + /** + * 配置选项值范围 + */ + @SerializedName("OptionValues") + private String optionValues; + + + + /** + * 默认值 + */ + @SerializedName("OptionDefaultValue") + private String optionDefaultValue; + + + + /** + * 是否为默认选项 + */ + @SerializedName("IsDefaultOption") + private Boolean isDefaultOption; + + + + /** + * 是否可修改 + */ + @SerializedName("EnableModify") + private Boolean enableModify; + + + + /** + * 是否前端展示 + */ + @SerializedName("EnableDisplay") + private Boolean enableDisplay; + + + + /** + * 是否需重启 + */ + @SerializedName("ForceRestart") + private Boolean forceRestart; + + + + /** + * 选项值格式 + */ + @SerializedName("OptionFormatType") + private String optionFormatType; + + + + /** + * 允许应用类型 + */ + @SerializedName("AllowedApplyType") + private String allowedApplyType; + + + + /** + * 描述 + */ + @SerializedName("Description") + private String description; + + + public String getMongodbVersion() { + return mongodbVersion; + } - public static class ConfigOptions extends Response { - - /** mongo版本 */ - @SerializedName("MongodbVersion") - private String mongodbVersion; - - /** 配置选项名 */ - @SerializedName("OptionName") - private String optionName; - - /** 配置选项类型 string,int,bool */ - @SerializedName("OptionValueType") - private String optionValueType; - - /** 配置选项值范围 */ - @SerializedName("OptionValues") - private String optionValues; - - /** 默认值 */ - @SerializedName("OptionDefaultValue") - private String optionDefaultValue; - - /** 是否为默认选项 */ - @SerializedName("IsDefaultOption") - private Boolean isDefaultOption; - - /** 是否可修改 */ - @SerializedName("EnableModify") - private Boolean enableModify; - - /** 是否前端展示 */ - @SerializedName("EnableDisplay") - private Boolean enableDisplay; - - /** 是否需重启 */ - @SerializedName("ForceRestart") - private Boolean forceRestart; - - /** 选项值格式 */ - @SerializedName("OptionFormatType") - private String optionFormatType; - - /** 允许应用类型 */ - @SerializedName("AllowedApplyType") - private String allowedApplyType; - - /** 描述 */ - @SerializedName("Description") - private String description; - - public String getMongodbVersion() { - return mongodbVersion; - } - - public void setMongodbVersion(String mongodbVersion) { - this.mongodbVersion = mongodbVersion; - } - - public String getOptionName() { - return optionName; - } - - public void setOptionName(String optionName) { - this.optionName = optionName; - } - - public String getOptionValueType() { - return optionValueType; - } - - public void setOptionValueType(String optionValueType) { - this.optionValueType = optionValueType; - } - - public String getOptionValues() { - return optionValues; - } - - public void setOptionValues(String optionValues) { - this.optionValues = optionValues; - } - - public String getOptionDefaultValue() { - return optionDefaultValue; - } - - public void setOptionDefaultValue(String optionDefaultValue) { - this.optionDefaultValue = optionDefaultValue; - } - - public Boolean getIsDefaultOption() { - return isDefaultOption; - } - - public void setIsDefaultOption(Boolean isDefaultOption) { - this.isDefaultOption = isDefaultOption; - } - - public Boolean getEnableModify() { - return enableModify; - } - - public void setEnableModify(Boolean enableModify) { - this.enableModify = enableModify; - } - - public Boolean getEnableDisplay() { - return enableDisplay; - } - - public void setEnableDisplay(Boolean enableDisplay) { - this.enableDisplay = enableDisplay; - } - - public Boolean getForceRestart() { - return forceRestart; - } - - public void setForceRestart(Boolean forceRestart) { - this.forceRestart = forceRestart; - } - - public String getOptionFormatType() { - return optionFormatType; - } - - public void setOptionFormatType(String optionFormatType) { - this.optionFormatType = optionFormatType; - } - - public String getAllowedApplyType() { - return allowedApplyType; - } + public void setMongodbVersion(String mongodbVersion) { + this.mongodbVersion = mongodbVersion; + } + + public String getOptionName() { + return optionName; + } - public void setAllowedApplyType(String allowedApplyType) { - this.allowedApplyType = allowedApplyType; - } + public void setOptionName(String optionName) { + this.optionName = optionName; + } + + public String getOptionValueType() { + return optionValueType; + } - public String getDescription() { - return description; - } + public void setOptionValueType(String optionValueType) { + this.optionValueType = optionValueType; + } + + public String getOptionValues() { + return optionValues; + } - public void setDescription(String description) { - this.description = description; - } + public void setOptionValues(String optionValues) { + this.optionValues = optionValues; + } + + public String getOptionDefaultValue() { + return optionDefaultValue; } - public static class ConfigTemplateItem extends Response { + public void setOptionDefaultValue(String optionDefaultValue) { + this.optionDefaultValue = optionDefaultValue; + } + + public Boolean getIsDefaultOption() { + return isDefaultOption; + } - /** itemId */ - @SerializedName("ItemId") - private String itemId; + public void setIsDefaultOption(Boolean isDefaultOption) { + this.isDefaultOption = isDefaultOption; + } + + public Boolean getEnableModify() { + return enableModify; + } - /** 模板ID */ - @SerializedName("TemplateId") - private String templateId; + public void setEnableModify(Boolean enableModify) { + this.enableModify = enableModify; + } + + public Boolean getEnableDisplay() { + return enableDisplay; + } - /** 配置名称 */ - @SerializedName("ConfigName") - private String configName; + public void setEnableDisplay(Boolean enableDisplay) { + this.enableDisplay = enableDisplay; + } + + public Boolean getForceRestart() { + return forceRestart; + } - /** 配置值 */ - @SerializedName("ConfigValue") - private String configValue; + public void setForceRestart(Boolean forceRestart) { + this.forceRestart = forceRestart; + } + + public String getOptionFormatType() { + return optionFormatType; + } - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; + public void setOptionFormatType(String optionFormatType) { + this.optionFormatType = optionFormatType; + } + + public String getAllowedApplyType() { + return allowedApplyType; + } - /** 修改时间 */ - @SerializedName("ModifyTime") - private Integer modifyTime; + public void setAllowedApplyType(String allowedApplyType) { + this.allowedApplyType = allowedApplyType; + } + + public String getDescription() { + return description; + } - /** 配置选项 */ - @SerializedName("ConfigOption") - private ConfigOptions configOption; + public void setDescription(String description) { + this.description = description; + } + + } + public static class ConfigTemplateItem extends Response { + + + /** + * itemId + */ + @SerializedName("ItemId") + private String itemId; + + + + /** + * 模板ID + */ + @SerializedName("TemplateId") + private String templateId; + + + + /** + * 配置名称 + */ + @SerializedName("ConfigName") + private String configName; + + + + /** + * 配置值 + */ + @SerializedName("ConfigValue") + private String configValue; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 配置选项 + */ + @SerializedName("ConfigOption") + private ConfigOptions configOption; + + + + /** + * 节点类型: DataNode:数据节点 | ConfigSrvNode:配置节点 | MongosNode:路由节点 + */ + @SerializedName("NodeType") + private String nodeType; + + + public String getItemId() { + return itemId; + } - /** 节点类型: DataNode:数据节点 | ConfigSrvNode:配置节点 | MongosNode:路由节点 */ - @SerializedName("NodeType") - private String nodeType; + public void setItemId(String itemId) { + this.itemId = itemId; + } + + public String getTemplateId() { + return templateId; + } - public String getItemId() { - return itemId; - } + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + public String getConfigName() { + return configName; + } - public void setItemId(String itemId) { - this.itemId = itemId; - } + public void setConfigName(String configName) { + this.configName = configName; + } + + public String getConfigValue() { + return configValue; + } - public String getTemplateId() { - return templateId; - } + public void setConfigValue(String configValue) { + this.configValue = configValue; + } + + public Integer getCreateTime() { + return createTime; + } - public void setTemplateId(String templateId) { - this.templateId = templateId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public String getConfigName() { - return configName; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public ConfigOptions getConfigOption() { + return configOption; + } - public void setConfigName(String configName) { - this.configName = configName; - } + public void setConfigOption(ConfigOptions configOption) { + this.configOption = configOption; + } + + public String getNodeType() { + return nodeType; + } - public String getConfigValue() { - return configValue; + public void setNodeType(String nodeType) { + this.nodeType = nodeType; + } + } +} - public void setConfigValue(String configValue) { - this.configValue = configValue; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getModifyTime() { - return modifyTime; - } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - public ConfigOptions getConfigOption() { - return configOption; - } - public void setConfigOption(ConfigOptions configOption) { - this.configOption = configOption; - } - public String getNodeType() { - return nodeType; - } - public void setNodeType(String nodeType) { - this.nodeType = nodeType; - } - } -} diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBRecoverTimeRangeRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBRecoverTimeRangeRequest.java index bed57d81..641c5796 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBRecoverTimeRangeRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBRecoverTimeRangeRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUMongoDBRecoverTimeRangeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 集群id */ + + + + /** + * 集群id + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -73,4 +92,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBRecoverTimeRangeResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBRecoverTimeRangeResponse.java index 11564b87..f3ac4bd7 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBRecoverTimeRangeResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBRecoverTimeRangeResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUMongoDBRecoverTimeRangeResponse extends Response { - /** 最早可回档时间点 */ + + + /** + * 最早可回档时间点 + */ @SerializedName("EarliestTime") private Integer earliestTime; - - /** 最晚可回档时间点 */ + + + + /** + * 最晚可回档时间点 + */ @SerializedName("LatestTime") private Integer latestTime; - + + public Integer getEarliestTime() { return earliestTime; } @@ -35,7 +49,7 @@ public Integer getEarliestTime() { public void setEarliestTime(Integer earliestTime) { this.earliestTime = earliestTime; } - + public Integer getLatestTime() { return latestTime; } @@ -43,4 +57,14 @@ public Integer getLatestTime() { public void setLatestTime(Integer latestTime) { this.latestTime = latestTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupRequest.java index 7c8afcc2..208033a3 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUMongoDBBackupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 实例ID */ + + + + /** + * 实例ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - + + public String getRegion() { return region; } @@ -42,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -50,7 +68,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getClusterId() { return clusterId; } @@ -58,4 +76,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupResponse.java index 794e93c6..c8d18db8 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUMongoDBBackupResponse extends Response { - /** 备份列表 */ + + + /** + * 备份列表 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,103 +41,145 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class BackupInfo extends Response { + + + /** + * 备份ID + */ + @SerializedName("BackupId") + private String backupId; + + + + /** + * 备份名称 + */ + @SerializedName("BackupName") + private String backupName; + + + + /** + * 实例ID + */ + @SerializedName("ClusterId") + private String clusterId; + + + + /** + * 备份状态 + */ + @SerializedName("State") + private String state; + + + + /** + * 备份数据大小 + */ + @SerializedName("BackupSize") + private Integer backupSize; + + + + /** + * 备份类型 + */ + @SerializedName("BackupType") + private String backupType; + + + + /** + * 备份开始时间 + */ + @SerializedName("StartTime") + private Integer startTime; + + + + /** + * 备份结束时间 + */ + @SerializedName("EndTime") + private Integer endTime; + + + public String getBackupId() { + return backupId; + } - public static class BackupInfo extends Response { - - /** 备份ID */ - @SerializedName("BackupId") - private String backupId; - - /** 备份名称 */ - @SerializedName("BackupName") - private String backupName; - - /** 实例ID */ - @SerializedName("ClusterId") - private String clusterId; - - /** 备份状态 */ - @SerializedName("State") - private String state; - - /** 备份数据大小 */ - @SerializedName("BackupSize") - private Integer backupSize; - - /** 备份类型 */ - @SerializedName("BackupType") - private String backupType; - - /** 备份开始时间 */ - @SerializedName("StartTime") - private Integer startTime; - - /** 备份结束时间 */ - @SerializedName("EndTime") - private Integer endTime; + public void setBackupId(String backupId) { + this.backupId = backupId; + } + + public String getBackupName() { + return backupName; + } - public String getBackupId() { - return backupId; - } + public void setBackupName(String backupName) { + this.backupName = backupName; + } + + public String getClusterId() { + return clusterId; + } - public void setBackupId(String backupId) { - this.backupId = backupId; - } + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getState() { + return state; + } - public String getBackupName() { - return backupName; - } + public void setState(String state) { + this.state = state; + } + + public Integer getBackupSize() { + return backupSize; + } - public void setBackupName(String backupName) { - this.backupName = backupName; - } + public void setBackupSize(Integer backupSize) { + this.backupSize = backupSize; + } + + public String getBackupType() { + return backupType; + } - public String getClusterId() { - return clusterId; - } + public void setBackupType(String backupType) { + this.backupType = backupType; + } + + public Integer getStartTime() { + return startTime; + } - public void setClusterId(String clusterId) { - this.clusterId = clusterId; - } + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } - public String getState() { - return state; + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + } +} - public void setState(String state) { - this.state = state; - } - public Integer getBackupSize() { - return backupSize; - } - public void setBackupSize(Integer backupSize) { - this.backupSize = backupSize; - } - public String getBackupType() { - return backupType; - } - public void setBackupType(String backupType) { - this.backupType = backupType; - } - public Integer getStartTime() { - return startTime; - } - public void setStartTime(Integer startTime) { - this.startTime = startTime; - } - public Integer getEndTime() { - return endTime; - } - public void setEndTime(Integer endTime) { - this.endTime = endTime; - } - } -} diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBConfigTemplateRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBConfigTemplateRequest.java index 5e02da86..4369e43c 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBConfigTemplateRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBConfigTemplateRequest.java @@ -1,37 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUMongoDBConfigTemplateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + public String getRegion() { return region; } @@ -39,7 +50,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -47,4 +58,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBConfigTemplateResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBConfigTemplateResponse.java index b07b548d..00dfdc68 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBConfigTemplateResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBConfigTemplateResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUMongoDBConfigTemplateResponse extends Response { - /** 配置模板列表 */ + + + /** + * 配置模板列表 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,115 +41,161 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class ConfigTemplate extends Response { + + + /** + * 模板ID + */ + @SerializedName("TemplateId") + private String templateId; + + + + /** + * 模板名称 + */ + @SerializedName("TemplateName") + private String templateName; + + + + /** + * mongo版本 + */ + @SerializedName("MongodbVersion") + private String mongodbVersion; + + + + /** + * 集群类型 + */ + @SerializedName("ClusterType") + private String clusterType; + + + + /** + * 模板类型 UsersTemplate DefaultTemplate + */ + @SerializedName("TemplateType") + private String templateType; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 删除时间 + */ + @SerializedName("DeleteTime") + private Integer deleteTime; + + + + /** + * 模板描述 + */ + @SerializedName("Description") + private String description; + + + public String getTemplateId() { + return templateId; + } - public static class ConfigTemplate extends Response { - - /** 模板ID */ - @SerializedName("TemplateId") - private String templateId; - - /** 模板名称 */ - @SerializedName("TemplateName") - private String templateName; - - /** mongo版本 */ - @SerializedName("MongodbVersion") - private String mongodbVersion; - - /** 集群类型 */ - @SerializedName("ClusterType") - private String clusterType; - - /** 模板类型 UsersTemplate DefaultTemplate */ - @SerializedName("TemplateType") - private String templateType; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 修改时间 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** 删除时间 */ - @SerializedName("DeleteTime") - private Integer deleteTime; - - /** 模板描述 */ - @SerializedName("Description") - private String description; - - public String getTemplateId() { - return templateId; - } + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + public String getTemplateName() { + return templateName; + } - public void setTemplateId(String templateId) { - this.templateId = templateId; - } + public void setTemplateName(String templateName) { + this.templateName = templateName; + } + + public String getMongodbVersion() { + return mongodbVersion; + } - public String getTemplateName() { - return templateName; - } + public void setMongodbVersion(String mongodbVersion) { + this.mongodbVersion = mongodbVersion; + } + + public String getClusterType() { + return clusterType; + } - public void setTemplateName(String templateName) { - this.templateName = templateName; - } + public void setClusterType(String clusterType) { + this.clusterType = clusterType; + } + + public String getTemplateType() { + return templateType; + } - public String getMongodbVersion() { - return mongodbVersion; - } + public void setTemplateType(String templateType) { + this.templateType = templateType; + } + + public Integer getCreateTime() { + return createTime; + } - public void setMongodbVersion(String mongodbVersion) { - this.mongodbVersion = mongodbVersion; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public String getClusterType() { - return clusterType; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public Integer getDeleteTime() { + return deleteTime; + } - public void setClusterType(String clusterType) { - this.clusterType = clusterType; - } + public void setDeleteTime(Integer deleteTime) { + this.deleteTime = deleteTime; + } + + public String getDescription() { + return description; + } - public String getTemplateType() { - return templateType; + public void setDescription(String description) { + this.description = description; + } + } +} - public void setTemplateType(String templateType) { - this.templateType = templateType; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getModifyTime() { - return modifyTime; - } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - public Integer getDeleteTime() { - return deleteTime; - } - public void setDeleteTime(Integer deleteTime) { - this.deleteTime = deleteTime; - } - public String getDescription() { - return description; - } - public void setDescription(String description) { - this.description = description; - } - } -} diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBMachineTypeRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBMachineTypeRequest.java index b31e7ff6..93b9476b 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBMachineTypeRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBMachineTypeRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUMongoDBMachineTypeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + public String getRegion() { return region; } @@ -44,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -52,7 +67,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -60,4 +75,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBMachineTypeResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBMachineTypeResponse.java index 521c95b0..4dc54a9e 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBMachineTypeResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBMachineTypeResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUMongoDBMachineTypeResponse extends Response { - /** */ + + + /** + * + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,79 +41,113 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class MongodbMachineType extends Response { + + + /** + * 机器类型ID o.mongo2m.medium,o.mongo2m.xlarge + */ + @SerializedName("MachineTypeId") + private String machineTypeId; + + + + /** + * 配置简称 2C4G + */ + @SerializedName("Description") + private String description; + + + + /** + * cpu核数 + */ + @SerializedName("Cpu") + private Integer cpu; + + + + /** + * 内存用量(GB) + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * 机器类型,N/O + */ + @SerializedName("UHhostMachineType") + private String uHhostMachineType; + + + + /** + * 配置分组,2m , 4m + */ + @SerializedName("Group") + private String group; + + + public String getMachineTypeId() { + return machineTypeId; + } - public static class MongodbMachineType extends Response { - - /** 机器类型ID o.mongo2m.medium,o.mongo2m.xlarge */ - @SerializedName("MachineTypeId") - private String machineTypeId; - - /** 配置简称 2C4G */ - @SerializedName("Description") - private String description; - - /** cpu核数 */ - @SerializedName("Cpu") - private Integer cpu; - - /** 内存用量(GB) */ - @SerializedName("Memory") - private Integer memory; + public void setMachineTypeId(String machineTypeId) { + this.machineTypeId = machineTypeId; + } + + public String getDescription() { + return description; + } - /** 机器类型,N/O */ - @SerializedName("UHhostMachineType") - private String uHhostMachineType; + public void setDescription(String description) { + this.description = description; + } + + public Integer getCpu() { + return cpu; + } - /** 配置分组,2m , 4m */ - @SerializedName("Group") - private String group; + public void setCpu(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } - public String getMachineTypeId() { - return machineTypeId; - } + public void setMemory(Integer memory) { + this.memory = memory; + } + + public String getUHhostMachineType() { + return uHhostMachineType; + } - public void setMachineTypeId(String machineTypeId) { - this.machineTypeId = machineTypeId; - } + public void setUHhostMachineType(String uHhostMachineType) { + this.uHhostMachineType = uHhostMachineType; + } + + public String getGroup() { + return group; + } - public String getDescription() { - return description; + public void setGroup(String group) { + this.group = group; + } + } +} - public void setDescription(String description) { - this.description = description; - } - public Integer getCpu() { - return cpu; - } - public void setCpu(Integer cpu) { - this.cpu = cpu; - } - public Integer getMemory() { - return memory; - } - public void setMemory(Integer memory) { - this.memory = memory; - } - public String getUHhostMachineType() { - return uHhostMachineType; - } - public void setUHhostMachineType(String uHhostMachineType) { - this.uHhostMachineType = uHhostMachineType; - } - public String getGroup() { - return group; - } - public void setGroup(String group) { - this.group = group; - } - } -} diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBVersionRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBVersionRequest.java index d23e9027..abbc7370 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBVersionRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBVersionRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUMongoDBVersionRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + public String getRegion() { return region; } @@ -44,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -52,7 +67,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -60,4 +75,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBVersionResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBVersionResponse.java index 3dda3e22..0a12d7c8 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBVersionResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBVersionResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUMongoDBVersionResponse extends Response { - /** */ + + + /** + * + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,19 +41,33 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class MongoDBVersion extends Response { + + + /** + * MongoDB版本 + */ + @SerializedName("DBVersion") + private String dbVersion; + + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + } +} + + + + + - public static class MongoDBVersion extends Response { - /** MongoDB版本 */ - @SerializedName("DBVersion") - private String dbVersion; - public String getDBVersion() { - return dbVersion; - } - public void setDBVersion(String dbVersion) { - this.dbVersion = dbVersion; - } - } -} diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAdminPasswordRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAdminPasswordRequest.java index ebc12364..7a266d62 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAdminPasswordRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAdminPasswordRequest.java @@ -1,52 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUMongoDBAdminPasswordRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 集群ID */ + + + + /** + * 集群ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** 集群新密码(密码格式使用BASE64编码) */ + + + + /** + * 集群新密码(密码格式使用BASE64编码) + */ @NotEmpty @UCloudParam("Password") private String password; - + + public String getRegion() { return region; } @@ -54,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -62,7 +85,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -70,7 +93,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -78,7 +101,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public String getPassword() { return password; } @@ -86,4 +109,14 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAdminPasswordResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAdminPasswordResponse.java index 38bea48b..f0a733ea 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAdminPasswordResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAdminPasswordResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUMongoDBAdminPasswordResponse extends Response {} +public class ModifyUMongoDBAdminPasswordResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAttributeRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAttributeRequest.java index c0d3a83c..f67c3eec 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAttributeRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAttributeRequest.java @@ -1,55 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUMongoDBAttributeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 集群id */ + + + + /** + * 集群id + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** 集群新名称(输入长度为6~63位名称) */ + + + + /** + * 集群新名称(输入长度为6~63位名称) + */ @UCloudParam("Name") private String name; - - /** 集群备注(Name和RemarkName必传其一) */ + + + + /** + * 集群备注(Name和RemarkName必传其一) + */ @UCloudParam("RemarkName") private String remarkName; - + + public String getRegion() { return region; } @@ -57,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -73,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -81,7 +108,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public String getName() { return name; } @@ -89,7 +116,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getRemarkName() { return remarkName; } @@ -97,4 +124,14 @@ public String getRemarkName() { public void setRemarkName(String remarkName) { this.remarkName = remarkName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAttributeResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAttributeResponse.java index 3fccbbff..8b9d12f6 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAttributeResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUMongoDBAttributeResponse extends Response {} +public class ModifyUMongoDBAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBBackupParamRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBBackupParamRequest.java index 051bcc27..995c8c15 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBBackupParamRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBBackupParamRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUMongoDBBackupParamRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 实例ID */ + + + + /** + * 实例ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - - /** 自动备份预期星期几(1~7),默认 3,7 (周三,周日) */ + + + + /** + * 自动备份预期星期几(1~7),默认 3,7 (周三,周日) + */ @UCloudParam("AutoBackupToggleWeek") private String autoBackupToggleWeek; - - /** 自动备份预期开始时间范围(00:00~23:59),默认 5:00~6:00 */ + + + + /** + * 自动备份预期开始时间范围(00:00~23:59),默认 5:00~6:00 + */ @UCloudParam("AutoBackupToggleTime") private String autoBackupToggleTime; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -58,7 +84,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getClusterId() { return clusterId; } @@ -66,7 +92,7 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } - + public String getAutoBackupToggleWeek() { return autoBackupToggleWeek; } @@ -74,7 +100,7 @@ public String getAutoBackupToggleWeek() { public void setAutoBackupToggleWeek(String autoBackupToggleWeek) { this.autoBackupToggleWeek = autoBackupToggleWeek; } - + public String getAutoBackupToggleTime() { return autoBackupToggleTime; } @@ -82,4 +108,14 @@ public String getAutoBackupToggleTime() { public void setAutoBackupToggleTime(String autoBackupToggleTime) { this.autoBackupToggleTime = autoBackupToggleTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBBackupParamResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBBackupParamResponse.java index 19c5ce6e..2d1a638d 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBBackupParamResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBBackupParamResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUMongoDBBackupParamResponse extends Response {} +public class ModifyUMongoDBBackupParamResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/RestartUMongoDBClusterRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/RestartUMongoDBClusterRequest.java index 9bd7adff..b3522110 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/RestartUMongoDBClusterRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/RestartUMongoDBClusterRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RestartUMongoDBClusterRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 集群ID */ + + + + /** + * 集群ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -73,4 +92,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/RestartUMongoDBClusterResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/RestartUMongoDBClusterResponse.java index a4bead56..bb4c4f30 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/RestartUMongoDBClusterResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/RestartUMongoDBClusterResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class RestartUMongoDBClusterResponse extends Response { - /** 集群ID */ + + + /** + * 集群ID + */ @SerializedName("ClusterId") private String clusterId; - + + public String getClusterId() { return clusterId; } @@ -31,4 +41,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StartUMongoDBClusterRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StartUMongoDBClusterRequest.java index 7d32b84d..d4c6d8f3 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StartUMongoDBClusterRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StartUMongoDBClusterRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class StartUMongoDBClusterRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 集群ID */ + + + + /** + * 集群ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -73,4 +92,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StartUMongoDBClusterResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StartUMongoDBClusterResponse.java index 70a8d7e3..26bb27be 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StartUMongoDBClusterResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StartUMongoDBClusterResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class StartUMongoDBClusterResponse extends Response { - /** 集群ID */ + + + /** + * 集群ID + */ @SerializedName("ClusterId") private String clusterId; - + + public String getClusterId() { return clusterId; } @@ -31,4 +41,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StopUMongoDBClusterRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StopUMongoDBClusterRequest.java index 997180fc..9dad9c07 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StopUMongoDBClusterRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StopUMongoDBClusterRequest.java @@ -1,47 +1,68 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class StopUMongoDBClusterRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 集群ID */ + + + + /** + * 集群ID + */ @NotEmpty @UCloudParam("ClusterId") private String clusterId; - + + + + public String getRegion() { return region; } @@ -49,7 +70,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +78,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +86,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getClusterId() { return clusterId; } @@ -73,4 +94,15 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StopUMongoDBClusterResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StopUMongoDBClusterResponse.java index 8977a081..62947953 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StopUMongoDBClusterResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/StopUMongoDBClusterResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.umongodb.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class StopUMongoDBClusterResponse extends Response { - /** 集群ID */ + + + /** + * 集群ID + */ @SerializedName("ClusterId") private String clusterId; - + + public String getClusterId() { return clusterId; } @@ -31,4 +41,14 @@ public String getClusterId() { public void setClusterId(String clusterId) { this.clusterId = clusterId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index c4deaec8..b144ef4f 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-unet - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/client/UNetClient.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/client/UNetClient.java index 2c8c06a7..90cc1ff5 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/client/UNetClient.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/client/UNetClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.unet.client; @@ -17,482 +19,726 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.unet.models.AllocateEIPRequest; import cn.ucloud.unet.models.AllocateEIPResponse; + + + import cn.ucloud.unet.models.AllocateShareBandwidthRequest; import cn.ucloud.unet.models.AllocateShareBandwidthResponse; + + + import cn.ucloud.unet.models.AssociateEIPWithShareBandwidthRequest; import cn.ucloud.unet.models.AssociateEIPWithShareBandwidthResponse; + + + import cn.ucloud.unet.models.BindEIPRequest; import cn.ucloud.unet.models.BindEIPResponse; + + + import cn.ucloud.unet.models.CreateBandwidthPackageRequest; import cn.ucloud.unet.models.CreateBandwidthPackageResponse; + + + import cn.ucloud.unet.models.CreateFirewallRequest; import cn.ucloud.unet.models.CreateFirewallResponse; + + + import cn.ucloud.unet.models.DeleteBandwidthPackageRequest; import cn.ucloud.unet.models.DeleteBandwidthPackageResponse; + + + import cn.ucloud.unet.models.DeleteFirewallRequest; import cn.ucloud.unet.models.DeleteFirewallResponse; + + + import cn.ucloud.unet.models.DescribeBandwidthPackageRequest; import cn.ucloud.unet.models.DescribeBandwidthPackageResponse; + + + import cn.ucloud.unet.models.DescribeBandwidthUsageRequest; import cn.ucloud.unet.models.DescribeBandwidthUsageResponse; + + + import cn.ucloud.unet.models.DescribeEIPRequest; import cn.ucloud.unet.models.DescribeEIPResponse; + + + import cn.ucloud.unet.models.DescribeFirewallRequest; +import cn.ucloud.unet.models.DescribeFirewallResponse; + + + import cn.ucloud.unet.models.DescribeFirewallResourceRequest; import cn.ucloud.unet.models.DescribeFirewallResourceResponse; -import cn.ucloud.unet.models.DescribeFirewallResponse; -import cn.ucloud.unet.models.DescribeShareBandwidthPriceRequest; -import cn.ucloud.unet.models.DescribeShareBandwidthPriceResponse; + + + import cn.ucloud.unet.models.DescribeShareBandwidthRequest; import cn.ucloud.unet.models.DescribeShareBandwidthResponse; + + + +import cn.ucloud.unet.models.DescribeShareBandwidthPriceRequest; +import cn.ucloud.unet.models.DescribeShareBandwidthPriceResponse; + + + import cn.ucloud.unet.models.DescribeShareBandwidthUpdatePriceRequest; import cn.ucloud.unet.models.DescribeShareBandwidthUpdatePriceResponse; + + + import cn.ucloud.unet.models.DisassociateEIPWithShareBandwidthRequest; import cn.ucloud.unet.models.DisassociateEIPWithShareBandwidthResponse; + + + import cn.ucloud.unet.models.DisassociateFirewallRequest; import cn.ucloud.unet.models.DisassociateFirewallResponse; + + + +import cn.ucloud.unet.models.GetEIPExclusiveUTPInfoRequest; +import cn.ucloud.unet.models.GetEIPExclusiveUTPInfoResponse; + + + import cn.ucloud.unet.models.GetEIPPayModeRequest; import cn.ucloud.unet.models.GetEIPPayModeResponse; + + + import cn.ucloud.unet.models.GetEIPPriceRequest; import cn.ucloud.unet.models.GetEIPPriceResponse; + + + import cn.ucloud.unet.models.GetEIPUpgradePriceRequest; import cn.ucloud.unet.models.GetEIPUpgradePriceResponse; + + + import cn.ucloud.unet.models.GetThroughputDailyBillingInfoRequest; import cn.ucloud.unet.models.GetThroughputDailyBillingInfoResponse; + + + import cn.ucloud.unet.models.GrantFirewallRequest; import cn.ucloud.unet.models.GrantFirewallResponse; + + + import cn.ucloud.unet.models.ModifyEIPBandwidthRequest; import cn.ucloud.unet.models.ModifyEIPBandwidthResponse; + + + import cn.ucloud.unet.models.ModifyEIPWeightRequest; import cn.ucloud.unet.models.ModifyEIPWeightResponse; + + + import cn.ucloud.unet.models.ReleaseEIPRequest; import cn.ucloud.unet.models.ReleaseEIPResponse; + + + import cn.ucloud.unet.models.ReleaseShareBandwidthRequest; import cn.ucloud.unet.models.ReleaseShareBandwidthResponse; + + + import cn.ucloud.unet.models.ResizeShareBandwidthRequest; import cn.ucloud.unet.models.ResizeShareBandwidthResponse; + + + import cn.ucloud.unet.models.SetEIPPayModeRequest; import cn.ucloud.unet.models.SetEIPPayModeResponse; + + + import cn.ucloud.unet.models.UnBindEIPRequest; import cn.ucloud.unet.models.UnBindEIPResponse; + + + import cn.ucloud.unet.models.UpdateEIPAttributeRequest; import cn.ucloud.unet.models.UpdateEIPAttributeResponse; -import cn.ucloud.unet.models.UpdateFirewallAttributeRequest; -import cn.ucloud.unet.models.UpdateFirewallAttributeResponse; + + + import cn.ucloud.unet.models.UpdateFirewallRequest; import cn.ucloud.unet.models.UpdateFirewallResponse; + + + +import cn.ucloud.unet.models.UpdateFirewallAttributeRequest; +import cn.ucloud.unet.models.UpdateFirewallAttributeResponse; -/** This client is used to call actions of **UNet** service */ +/** + * This client is used to call actions of **UNet** service + */ public class UNetClient extends DefaultClient implements UNetClientInterface { public UNetClient(Config config, Credential credential) { super(config, credential); } - - /** - * AllocateEIP - 申请弹性IP - * - * @param request Request object - * @throws UCloudException Exception - */ - public AllocateEIPResponse allocateEIP(AllocateEIPRequest request) throws UCloudException { - request.setAction("AllocateEIP"); - return (AllocateEIPResponse) this.invoke(request, AllocateEIPResponse.class); - } - - /** - * AllocateShareBandwidth - 开通共享带宽 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AllocateShareBandwidthResponse allocateShareBandwidth( - AllocateShareBandwidthRequest request) throws UCloudException { - request.setAction("AllocateShareBandwidth"); - return (AllocateShareBandwidthResponse) - this.invoke(request, AllocateShareBandwidthResponse.class); - } - - /** - * AssociateEIPWithShareBandwidth - 将EIP加入共享带宽 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AssociateEIPWithShareBandwidthResponse associateEIPWithShareBandwidth( - AssociateEIPWithShareBandwidthRequest request) throws UCloudException { - request.setAction("AssociateEIPWithShareBandwidth"); - return (AssociateEIPWithShareBandwidthResponse) - this.invoke(request, AssociateEIPWithShareBandwidthResponse.class); - } - - /** - * BindEIP - 绑定弹性IP - * - * @param request Request object - * @throws UCloudException Exception - */ - public BindEIPResponse bindEIP(BindEIPRequest request) throws UCloudException { - request.setAction("BindEIP"); - return (BindEIPResponse) this.invoke(request, BindEIPResponse.class); - } - - /** - * CreateBandwidthPackage - 创建带宽包 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateBandwidthPackageResponse createBandwidthPackage( - CreateBandwidthPackageRequest request) throws UCloudException { - request.setAction("CreateBandwidthPackage"); - return (CreateBandwidthPackageResponse) - this.invoke(request, CreateBandwidthPackageResponse.class); - } - - /** - * CreateFirewall - 创建防火墙 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateFirewallResponse createFirewall(CreateFirewallRequest request) - throws UCloudException { - request.setAction("CreateFirewall"); - return (CreateFirewallResponse) this.invoke(request, CreateFirewallResponse.class); - } - - /** - * DeleteBandwidthPackage - 删除带宽包 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteBandwidthPackageResponse deleteBandwidthPackage( - DeleteBandwidthPackageRequest request) throws UCloudException { - request.setAction("DeleteBandwidthPackage"); - return (DeleteBandwidthPackageResponse) - this.invoke(request, DeleteBandwidthPackageResponse.class); - } - - /** - * DeleteFirewall - 删除防火墙 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteFirewallResponse deleteFirewall(DeleteFirewallRequest request) - throws UCloudException { - request.setAction("DeleteFirewall"); - return (DeleteFirewallResponse) this.invoke(request, DeleteFirewallResponse.class); - } - - /** - * DescribeBandwidthPackage - 获取带宽包信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeBandwidthPackageResponse describeBandwidthPackage( - DescribeBandwidthPackageRequest request) throws UCloudException { - request.setAction("DescribeBandwidthPackage"); - return (DescribeBandwidthPackageResponse) - this.invoke(request, DescribeBandwidthPackageResponse.class); - } - - /** - * DescribeBandwidthUsage - 获取带宽用量 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeBandwidthUsageResponse describeBandwidthUsage( - DescribeBandwidthUsageRequest request) throws UCloudException { - request.setAction("DescribeBandwidthUsage"); - return (DescribeBandwidthUsageResponse) - this.invoke(request, DescribeBandwidthUsageResponse.class); - } - - /** - * DescribeEIP - 获取弹性IP信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeEIPResponse describeEIP(DescribeEIPRequest request) throws UCloudException { - request.setAction("DescribeEIP"); - return (DescribeEIPResponse) this.invoke(request, DescribeEIPResponse.class); - } - - /** - * DescribeFirewall - 获取防火墙信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeFirewallResponse describeFirewall(DescribeFirewallRequest request) - throws UCloudException { - request.setAction("DescribeFirewall"); - return (DescribeFirewallResponse) this.invoke(request, DescribeFirewallResponse.class); - } - - /** - * DescribeFirewallResource - 获取防火墙绑定资源 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeFirewallResourceResponse describeFirewallResource( - DescribeFirewallResourceRequest request) throws UCloudException { - request.setAction("DescribeFirewallResource"); - return (DescribeFirewallResourceResponse) - this.invoke(request, DescribeFirewallResourceResponse.class); - } - - /** - * DescribeShareBandwidth - 获取共享带宽信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeShareBandwidthResponse describeShareBandwidth( - DescribeShareBandwidthRequest request) throws UCloudException { - request.setAction("DescribeShareBandwidth"); - return (DescribeShareBandwidthResponse) - this.invoke(request, DescribeShareBandwidthResponse.class); - } - - /** - * DescribeShareBandwidthPrice - 获取共享带宽价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeShareBandwidthPriceResponse describeShareBandwidthPrice( - DescribeShareBandwidthPriceRequest request) throws UCloudException { - request.setAction("DescribeShareBandwidthPrice"); - return (DescribeShareBandwidthPriceResponse) - this.invoke(request, DescribeShareBandwidthPriceResponse.class); - } - - /** - * DescribeShareBandwidthUpdatePrice - 获取共享带宽升级价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeShareBandwidthUpdatePriceResponse describeShareBandwidthUpdatePrice( - DescribeShareBandwidthUpdatePriceRequest request) throws UCloudException { - request.setAction("DescribeShareBandwidthUpdatePrice"); - return (DescribeShareBandwidthUpdatePriceResponse) - this.invoke(request, DescribeShareBandwidthUpdatePriceResponse.class); - } - - /** - * DisassociateEIPWithShareBandwidth - 将EIP移出共享带宽 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DisassociateEIPWithShareBandwidthResponse disassociateEIPWithShareBandwidth( - DisassociateEIPWithShareBandwidthRequest request) throws UCloudException { - request.setAction("DisassociateEIPWithShareBandwidth"); - return (DisassociateEIPWithShareBandwidthResponse) - this.invoke(request, DisassociateEIPWithShareBandwidthResponse.class); - } - - /** - * DisassociateFirewall - 解绑防火墙 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DisassociateFirewallResponse disassociateFirewall(DisassociateFirewallRequest request) - throws UCloudException { - request.setAction("DisassociateFirewall"); - return (DisassociateFirewallResponse) - this.invoke(request, DisassociateFirewallResponse.class); - } - - /** - * GetEIPPayMode - 获取弹性IP计费方式 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetEIPPayModeResponse getEIPPayMode(GetEIPPayModeRequest request) - throws UCloudException { - request.setAction("GetEIPPayMode"); - return (GetEIPPayModeResponse) this.invoke(request, GetEIPPayModeResponse.class); - } - - /** - * GetEIPPrice - 获取弹性IP价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetEIPPriceResponse getEIPPrice(GetEIPPriceRequest request) throws UCloudException { - request.setAction("GetEIPPrice"); - return (GetEIPPriceResponse) this.invoke(request, GetEIPPriceResponse.class); - } - - /** - * GetEIPUpgradePrice - 获取弹性IP带宽改动价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetEIPUpgradePriceResponse getEIPUpgradePrice(GetEIPUpgradePriceRequest request) - throws UCloudException { - request.setAction("GetEIPUpgradePrice"); - return (GetEIPUpgradePriceResponse) this.invoke(request, GetEIPUpgradePriceResponse.class); - } - - /** - * GetThroughputDailyBillingInfo - 获取流量计费EIP每日流量计费信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetThroughputDailyBillingInfoResponse getThroughputDailyBillingInfo( - GetThroughputDailyBillingInfoRequest request) throws UCloudException { - request.setAction("GetThroughputDailyBillingInfo"); - return (GetThroughputDailyBillingInfoResponse) - this.invoke(request, GetThroughputDailyBillingInfoResponse.class); - } - - /** - * GrantFirewall - 应用防火墙 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GrantFirewallResponse grantFirewall(GrantFirewallRequest request) - throws UCloudException { - request.setAction("GrantFirewall"); - return (GrantFirewallResponse) this.invoke(request, GrantFirewallResponse.class); - } - - /** - * ModifyEIPBandwidth - 调整弹性IP带宽 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyEIPBandwidthResponse modifyEIPBandwidth(ModifyEIPBandwidthRequest request) - throws UCloudException { - request.setAction("ModifyEIPBandwidth"); - return (ModifyEIPBandwidthResponse) this.invoke(request, ModifyEIPBandwidthResponse.class); - } - - /** - * ModifyEIPWeight - 修改弹性IP出口权重 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyEIPWeightResponse modifyEIPWeight(ModifyEIPWeightRequest request) - throws UCloudException { - request.setAction("ModifyEIPWeight"); - return (ModifyEIPWeightResponse) this.invoke(request, ModifyEIPWeightResponse.class); - } - - /** - * ReleaseEIP - 释放弹性IP - * - * @param request Request object - * @throws UCloudException Exception - */ - public ReleaseEIPResponse releaseEIP(ReleaseEIPRequest request) throws UCloudException { - request.setAction("ReleaseEIP"); - return (ReleaseEIPResponse) this.invoke(request, ReleaseEIPResponse.class); - } - - /** - * ReleaseShareBandwidth - 关闭共享带宽 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ReleaseShareBandwidthResponse releaseShareBandwidth(ReleaseShareBandwidthRequest request) - throws UCloudException { - request.setAction("ReleaseShareBandwidth"); - return (ReleaseShareBandwidthResponse) - this.invoke(request, ReleaseShareBandwidthResponse.class); - } - - /** - * ResizeShareBandwidth - 调整共享带宽 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ResizeShareBandwidthResponse resizeShareBandwidth(ResizeShareBandwidthRequest request) - throws UCloudException { - request.setAction("ResizeShareBandwidth"); - return (ResizeShareBandwidthResponse) - this.invoke(request, ResizeShareBandwidthResponse.class); - } - - /** - * SetEIPPayMode - 设置弹性IP计费方式 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SetEIPPayModeResponse setEIPPayMode(SetEIPPayModeRequest request) - throws UCloudException { - request.setAction("SetEIPPayMode"); - return (SetEIPPayModeResponse) this.invoke(request, SetEIPPayModeResponse.class); - } - - /** - * UnBindEIP - 解绑弹性IP - * - * @param request Request object - * @throws UCloudException Exception - */ - public UnBindEIPResponse unBindEIP(UnBindEIPRequest request) throws UCloudException { - request.setAction("UnBindEIP"); - return (UnBindEIPResponse) this.invoke(request, UnBindEIPResponse.class); - } - - /** - * UpdateEIPAttribute - 更新弹性IP属性 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateEIPAttributeResponse updateEIPAttribute(UpdateEIPAttributeRequest request) - throws UCloudException { - request.setAction("UpdateEIPAttribute"); - return (UpdateEIPAttributeResponse) this.invoke(request, UpdateEIPAttributeResponse.class); - } - - /** - * UpdateFirewall - 更新防火墙规则 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateFirewallResponse updateFirewall(UpdateFirewallRequest request) - throws UCloudException { - request.setAction("UpdateFirewall"); - return (UpdateFirewallResponse) this.invoke(request, UpdateFirewallResponse.class); - } - - /** - * UpdateFirewallAttribute - 更新防火墙属性 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateFirewallAttributeResponse updateFirewallAttribute( - UpdateFirewallAttributeRequest request) throws UCloudException { - request.setAction("UpdateFirewallAttribute"); - return (UpdateFirewallAttributeResponse) - this.invoke(request, UpdateFirewallAttributeResponse.class); - } + + + + + + + /** + * AllocateEIP - 申请弹性IP + * + * @param request Request object + * @throws UCloudException Exception + */ + public AllocateEIPResponse allocateEIP(AllocateEIPRequest request) throws UCloudException { + request.setAction("AllocateEIP"); + return (AllocateEIPResponse) this.invoke(request, AllocateEIPResponse.class); + } + + + + + + + /** + * AllocateShareBandwidth - 开通共享带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AllocateShareBandwidthResponse allocateShareBandwidth(AllocateShareBandwidthRequest request) throws UCloudException { + request.setAction("AllocateShareBandwidth"); + return (AllocateShareBandwidthResponse) this.invoke(request, AllocateShareBandwidthResponse.class); + } + + + + + + + /** + * AssociateEIPWithShareBandwidth - 将EIP加入共享带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AssociateEIPWithShareBandwidthResponse associateEIPWithShareBandwidth(AssociateEIPWithShareBandwidthRequest request) throws UCloudException { + request.setAction("AssociateEIPWithShareBandwidth"); + return (AssociateEIPWithShareBandwidthResponse) this.invoke(request, AssociateEIPWithShareBandwidthResponse.class); + } + + + + + + + /** + * BindEIP - 绑定弹性IP + * + * @param request Request object + * @throws UCloudException Exception + */ + public BindEIPResponse bindEIP(BindEIPRequest request) throws UCloudException { + request.setAction("BindEIP"); + return (BindEIPResponse) this.invoke(request, BindEIPResponse.class); + } + + + + + + + /** + * CreateBandwidthPackage - 创建带宽包 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateBandwidthPackageResponse createBandwidthPackage(CreateBandwidthPackageRequest request) throws UCloudException { + request.setAction("CreateBandwidthPackage"); + return (CreateBandwidthPackageResponse) this.invoke(request, CreateBandwidthPackageResponse.class); + } + + + + + + + /** + * CreateFirewall - 创建防火墙 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateFirewallResponse createFirewall(CreateFirewallRequest request) throws UCloudException { + request.setAction("CreateFirewall"); + return (CreateFirewallResponse) this.invoke(request, CreateFirewallResponse.class); + } + + + + + + + /** + * DeleteBandwidthPackage - 删除带宽包 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteBandwidthPackageResponse deleteBandwidthPackage(DeleteBandwidthPackageRequest request) throws UCloudException { + request.setAction("DeleteBandwidthPackage"); + return (DeleteBandwidthPackageResponse) this.invoke(request, DeleteBandwidthPackageResponse.class); + } + + + + + + + /** + * DeleteFirewall - 删除防火墙 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteFirewallResponse deleteFirewall(DeleteFirewallRequest request) throws UCloudException { + request.setAction("DeleteFirewall"); + return (DeleteFirewallResponse) this.invoke(request, DeleteFirewallResponse.class); + } + + + + + + + /** + * DescribeBandwidthPackage - 获取带宽包信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeBandwidthPackageResponse describeBandwidthPackage(DescribeBandwidthPackageRequest request) throws UCloudException { + request.setAction("DescribeBandwidthPackage"); + return (DescribeBandwidthPackageResponse) this.invoke(request, DescribeBandwidthPackageResponse.class); + } + + + + + + + /** + * DescribeBandwidthUsage - 获取带宽用量 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeBandwidthUsageResponse describeBandwidthUsage(DescribeBandwidthUsageRequest request) throws UCloudException { + request.setAction("DescribeBandwidthUsage"); + return (DescribeBandwidthUsageResponse) this.invoke(request, DescribeBandwidthUsageResponse.class); + } + + + + + + + /** + * DescribeEIP - 获取弹性IP信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeEIPResponse describeEIP(DescribeEIPRequest request) throws UCloudException { + request.setAction("DescribeEIP"); + return (DescribeEIPResponse) this.invoke(request, DescribeEIPResponse.class); + } + + + + + + + /** + * DescribeFirewall - 获取防火墙信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeFirewallResponse describeFirewall(DescribeFirewallRequest request) throws UCloudException { + request.setAction("DescribeFirewall"); + return (DescribeFirewallResponse) this.invoke(request, DescribeFirewallResponse.class); + } + + + + + + + /** + * DescribeFirewallResource - 获取防火墙绑定资源 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeFirewallResourceResponse describeFirewallResource(DescribeFirewallResourceRequest request) throws UCloudException { + request.setAction("DescribeFirewallResource"); + return (DescribeFirewallResourceResponse) this.invoke(request, DescribeFirewallResourceResponse.class); + } + + + + + + + /** + * DescribeShareBandwidth - 获取共享带宽信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeShareBandwidthResponse describeShareBandwidth(DescribeShareBandwidthRequest request) throws UCloudException { + request.setAction("DescribeShareBandwidth"); + return (DescribeShareBandwidthResponse) this.invoke(request, DescribeShareBandwidthResponse.class); + } + + + + + + + /** + * DescribeShareBandwidthPrice - 获取共享带宽价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeShareBandwidthPriceResponse describeShareBandwidthPrice(DescribeShareBandwidthPriceRequest request) throws UCloudException { + request.setAction("DescribeShareBandwidthPrice"); + return (DescribeShareBandwidthPriceResponse) this.invoke(request, DescribeShareBandwidthPriceResponse.class); + } + + + + + + + /** + * DescribeShareBandwidthUpdatePrice - 获取共享带宽升级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeShareBandwidthUpdatePriceResponse describeShareBandwidthUpdatePrice(DescribeShareBandwidthUpdatePriceRequest request) throws UCloudException { + request.setAction("DescribeShareBandwidthUpdatePrice"); + return (DescribeShareBandwidthUpdatePriceResponse) this.invoke(request, DescribeShareBandwidthUpdatePriceResponse.class); + } + + + + + + + /** + * DisassociateEIPWithShareBandwidth - 将EIP移出共享带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DisassociateEIPWithShareBandwidthResponse disassociateEIPWithShareBandwidth(DisassociateEIPWithShareBandwidthRequest request) throws UCloudException { + request.setAction("DisassociateEIPWithShareBandwidth"); + return (DisassociateEIPWithShareBandwidthResponse) this.invoke(request, DisassociateEIPWithShareBandwidthResponse.class); + } + + + + + + + /** + * DisassociateFirewall - 解绑防火墙 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DisassociateFirewallResponse disassociateFirewall(DisassociateFirewallRequest request) throws UCloudException { + request.setAction("DisassociateFirewall"); + return (DisassociateFirewallResponse) this.invoke(request, DisassociateFirewallResponse.class); + } + + + + + + + /** + * GetEIPExclusiveUTPInfo - 获取EIP专属流量包信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetEIPExclusiveUTPInfoResponse getEIPExclusiveUTPInfo(GetEIPExclusiveUTPInfoRequest request) throws UCloudException { + request.setAction("GetEIPExclusiveUTPInfo"); + return (GetEIPExclusiveUTPInfoResponse) this.invoke(request, GetEIPExclusiveUTPInfoResponse.class); + } + + + + + + + /** + * GetEIPPayMode - 获取弹性IP计费方式 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetEIPPayModeResponse getEIPPayMode(GetEIPPayModeRequest request) throws UCloudException { + request.setAction("GetEIPPayMode"); + return (GetEIPPayModeResponse) this.invoke(request, GetEIPPayModeResponse.class); + } + + + + + + + /** + * GetEIPPrice - 获取弹性IP价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetEIPPriceResponse getEIPPrice(GetEIPPriceRequest request) throws UCloudException { + request.setAction("GetEIPPrice"); + return (GetEIPPriceResponse) this.invoke(request, GetEIPPriceResponse.class); + } + + + + + + + /** + * GetEIPUpgradePrice - 获取弹性IP带宽改动价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetEIPUpgradePriceResponse getEIPUpgradePrice(GetEIPUpgradePriceRequest request) throws UCloudException { + request.setAction("GetEIPUpgradePrice"); + return (GetEIPUpgradePriceResponse) this.invoke(request, GetEIPUpgradePriceResponse.class); + } + + + + + + + /** + * GetThroughputDailyBillingInfo - 获取流量计费EIP每日流量计费信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetThroughputDailyBillingInfoResponse getThroughputDailyBillingInfo(GetThroughputDailyBillingInfoRequest request) throws UCloudException { + request.setAction("GetThroughputDailyBillingInfo"); + return (GetThroughputDailyBillingInfoResponse) this.invoke(request, GetThroughputDailyBillingInfoResponse.class); + } + + + + + + + /** + * GrantFirewall - 应用防火墙 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GrantFirewallResponse grantFirewall(GrantFirewallRequest request) throws UCloudException { + request.setAction("GrantFirewall"); + return (GrantFirewallResponse) this.invoke(request, GrantFirewallResponse.class); + } + + + + + + + /** + * ModifyEIPBandwidth - 调整弹性IP带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyEIPBandwidthResponse modifyEIPBandwidth(ModifyEIPBandwidthRequest request) throws UCloudException { + request.setAction("ModifyEIPBandwidth"); + return (ModifyEIPBandwidthResponse) this.invoke(request, ModifyEIPBandwidthResponse.class); + } + + + + + + + /** + * ModifyEIPWeight - 修改弹性IP出口权重 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyEIPWeightResponse modifyEIPWeight(ModifyEIPWeightRequest request) throws UCloudException { + request.setAction("ModifyEIPWeight"); + return (ModifyEIPWeightResponse) this.invoke(request, ModifyEIPWeightResponse.class); + } + + + + + + + /** + * ReleaseEIP - 释放弹性IP + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReleaseEIPResponse releaseEIP(ReleaseEIPRequest request) throws UCloudException { + request.setAction("ReleaseEIP"); + return (ReleaseEIPResponse) this.invoke(request, ReleaseEIPResponse.class); + } + + + + + + + /** + * ReleaseShareBandwidth - 关闭共享带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReleaseShareBandwidthResponse releaseShareBandwidth(ReleaseShareBandwidthRequest request) throws UCloudException { + request.setAction("ReleaseShareBandwidth"); + return (ReleaseShareBandwidthResponse) this.invoke(request, ReleaseShareBandwidthResponse.class); + } + + + + + + + /** + * ResizeShareBandwidth - 调整共享带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResizeShareBandwidthResponse resizeShareBandwidth(ResizeShareBandwidthRequest request) throws UCloudException { + request.setAction("ResizeShareBandwidth"); + return (ResizeShareBandwidthResponse) this.invoke(request, ResizeShareBandwidthResponse.class); + } + + + + + + + /** + * SetEIPPayMode - 设置弹性IP计费方式 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SetEIPPayModeResponse setEIPPayMode(SetEIPPayModeRequest request) throws UCloudException { + request.setAction("SetEIPPayMode"); + return (SetEIPPayModeResponse) this.invoke(request, SetEIPPayModeResponse.class); + } + + + + + + + /** + * UnBindEIP - 解绑弹性IP + * + * @param request Request object + * @throws UCloudException Exception + */ + public UnBindEIPResponse unBindEIP(UnBindEIPRequest request) throws UCloudException { + request.setAction("UnBindEIP"); + return (UnBindEIPResponse) this.invoke(request, UnBindEIPResponse.class); + } + + + + + + + /** + * UpdateEIPAttribute - 更新弹性IP属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateEIPAttributeResponse updateEIPAttribute(UpdateEIPAttributeRequest request) throws UCloudException { + request.setAction("UpdateEIPAttribute"); + return (UpdateEIPAttributeResponse) this.invoke(request, UpdateEIPAttributeResponse.class); + } + + + + + + + /** + * UpdateFirewall - 更新防火墙规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateFirewallResponse updateFirewall(UpdateFirewallRequest request) throws UCloudException { + request.setAction("UpdateFirewall"); + return (UpdateFirewallResponse) this.invoke(request, UpdateFirewallResponse.class); + } + + + + + + + /** + * UpdateFirewallAttribute - 更新防火墙属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateFirewallAttributeResponse updateFirewallAttribute(UpdateFirewallAttributeRequest request) throws UCloudException { + request.setAction("UpdateFirewallAttribute"); + return (UpdateFirewallAttributeResponse) this.invoke(request, UpdateFirewallAttributeResponse.class); + } } diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/client/UNetClientInterface.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/client/UNetClientInterface.java index fd204e11..97f867ff 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/client/UNetClientInterface.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/client/UNetClientInterface.java @@ -1,90 +1,203 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.unet.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.unet.models.AllocateEIPRequest; import cn.ucloud.unet.models.AllocateEIPResponse; + + + import cn.ucloud.unet.models.AllocateShareBandwidthRequest; import cn.ucloud.unet.models.AllocateShareBandwidthResponse; + + + import cn.ucloud.unet.models.AssociateEIPWithShareBandwidthRequest; import cn.ucloud.unet.models.AssociateEIPWithShareBandwidthResponse; + + + import cn.ucloud.unet.models.BindEIPRequest; import cn.ucloud.unet.models.BindEIPResponse; + + + import cn.ucloud.unet.models.CreateBandwidthPackageRequest; import cn.ucloud.unet.models.CreateBandwidthPackageResponse; + + + import cn.ucloud.unet.models.CreateFirewallRequest; import cn.ucloud.unet.models.CreateFirewallResponse; + + + import cn.ucloud.unet.models.DeleteBandwidthPackageRequest; import cn.ucloud.unet.models.DeleteBandwidthPackageResponse; + + + import cn.ucloud.unet.models.DeleteFirewallRequest; import cn.ucloud.unet.models.DeleteFirewallResponse; + + + import cn.ucloud.unet.models.DescribeBandwidthPackageRequest; import cn.ucloud.unet.models.DescribeBandwidthPackageResponse; + + + import cn.ucloud.unet.models.DescribeBandwidthUsageRequest; import cn.ucloud.unet.models.DescribeBandwidthUsageResponse; + + + import cn.ucloud.unet.models.DescribeEIPRequest; import cn.ucloud.unet.models.DescribeEIPResponse; + + + import cn.ucloud.unet.models.DescribeFirewallRequest; +import cn.ucloud.unet.models.DescribeFirewallResponse; + + + import cn.ucloud.unet.models.DescribeFirewallResourceRequest; import cn.ucloud.unet.models.DescribeFirewallResourceResponse; -import cn.ucloud.unet.models.DescribeFirewallResponse; -import cn.ucloud.unet.models.DescribeShareBandwidthPriceRequest; -import cn.ucloud.unet.models.DescribeShareBandwidthPriceResponse; + + + import cn.ucloud.unet.models.DescribeShareBandwidthRequest; import cn.ucloud.unet.models.DescribeShareBandwidthResponse; + + + +import cn.ucloud.unet.models.DescribeShareBandwidthPriceRequest; +import cn.ucloud.unet.models.DescribeShareBandwidthPriceResponse; + + + import cn.ucloud.unet.models.DescribeShareBandwidthUpdatePriceRequest; import cn.ucloud.unet.models.DescribeShareBandwidthUpdatePriceResponse; + + + import cn.ucloud.unet.models.DisassociateEIPWithShareBandwidthRequest; import cn.ucloud.unet.models.DisassociateEIPWithShareBandwidthResponse; + + + import cn.ucloud.unet.models.DisassociateFirewallRequest; import cn.ucloud.unet.models.DisassociateFirewallResponse; + + + +import cn.ucloud.unet.models.GetEIPExclusiveUTPInfoRequest; +import cn.ucloud.unet.models.GetEIPExclusiveUTPInfoResponse; + + + import cn.ucloud.unet.models.GetEIPPayModeRequest; import cn.ucloud.unet.models.GetEIPPayModeResponse; + + + import cn.ucloud.unet.models.GetEIPPriceRequest; import cn.ucloud.unet.models.GetEIPPriceResponse; + + + import cn.ucloud.unet.models.GetEIPUpgradePriceRequest; import cn.ucloud.unet.models.GetEIPUpgradePriceResponse; + + + import cn.ucloud.unet.models.GetThroughputDailyBillingInfoRequest; import cn.ucloud.unet.models.GetThroughputDailyBillingInfoResponse; + + + import cn.ucloud.unet.models.GrantFirewallRequest; import cn.ucloud.unet.models.GrantFirewallResponse; + + + import cn.ucloud.unet.models.ModifyEIPBandwidthRequest; import cn.ucloud.unet.models.ModifyEIPBandwidthResponse; + + + import cn.ucloud.unet.models.ModifyEIPWeightRequest; import cn.ucloud.unet.models.ModifyEIPWeightResponse; + + + import cn.ucloud.unet.models.ReleaseEIPRequest; import cn.ucloud.unet.models.ReleaseEIPResponse; + + + import cn.ucloud.unet.models.ReleaseShareBandwidthRequest; import cn.ucloud.unet.models.ReleaseShareBandwidthResponse; + + + import cn.ucloud.unet.models.ResizeShareBandwidthRequest; import cn.ucloud.unet.models.ResizeShareBandwidthResponse; + + + import cn.ucloud.unet.models.SetEIPPayModeRequest; import cn.ucloud.unet.models.SetEIPPayModeResponse; + + + import cn.ucloud.unet.models.UnBindEIPRequest; import cn.ucloud.unet.models.UnBindEIPResponse; + + + import cn.ucloud.unet.models.UpdateEIPAttributeRequest; import cn.ucloud.unet.models.UpdateEIPAttributeResponse; -import cn.ucloud.unet.models.UpdateFirewallAttributeRequest; -import cn.ucloud.unet.models.UpdateFirewallAttributeResponse; + + + import cn.ucloud.unet.models.UpdateFirewallRequest; import cn.ucloud.unet.models.UpdateFirewallResponse; + + + +import cn.ucloud.unet.models.UpdateFirewallAttributeRequest; +import cn.ucloud.unet.models.UpdateFirewallAttributeResponse; -/** This client is used to call actions of **UNet** service */ +/** + * This client is used to call actions of **UNet** service + */ public interface UNetClientInterface extends Client { - + + + + + + /** * AllocateEIP - 申请弹性IP * @@ -92,25 +205,38 @@ public interface UNetClientInterface extends Client { * @throws UCloudException Exception */ public AllocateEIPResponse allocateEIP(AllocateEIPRequest request) throws UCloudException; - + + + + + + /** * AllocateShareBandwidth - 开通共享带宽 * * @param request Request object * @throws UCloudException Exception */ - public AllocateShareBandwidthResponse allocateShareBandwidth( - AllocateShareBandwidthRequest request) throws UCloudException; - + public AllocateShareBandwidthResponse allocateShareBandwidth(AllocateShareBandwidthRequest request) throws UCloudException; + + + + + + /** * AssociateEIPWithShareBandwidth - 将EIP加入共享带宽 * * @param request Request object * @throws UCloudException Exception */ - public AssociateEIPWithShareBandwidthResponse associateEIPWithShareBandwidth( - AssociateEIPWithShareBandwidthRequest request) throws UCloudException; - + public AssociateEIPWithShareBandwidthResponse associateEIPWithShareBandwidth(AssociateEIPWithShareBandwidthRequest request) throws UCloudException; + + + + + + /** * BindEIP - 绑定弹性IP * @@ -118,61 +244,90 @@ public AssociateEIPWithShareBandwidthResponse associateEIPWithShareBandwidth( * @throws UCloudException Exception */ public BindEIPResponse bindEIP(BindEIPRequest request) throws UCloudException; - + + + + + + /** * CreateBandwidthPackage - 创建带宽包 * * @param request Request object * @throws UCloudException Exception */ - public CreateBandwidthPackageResponse createBandwidthPackage( - CreateBandwidthPackageRequest request) throws UCloudException; - + public CreateBandwidthPackageResponse createBandwidthPackage(CreateBandwidthPackageRequest request) throws UCloudException; + + + + + + /** * CreateFirewall - 创建防火墙 * * @param request Request object * @throws UCloudException Exception */ - public CreateFirewallResponse createFirewall(CreateFirewallRequest request) - throws UCloudException; - + public CreateFirewallResponse createFirewall(CreateFirewallRequest request) throws UCloudException; + + + + + + /** * DeleteBandwidthPackage - 删除带宽包 * * @param request Request object * @throws UCloudException Exception */ - public DeleteBandwidthPackageResponse deleteBandwidthPackage( - DeleteBandwidthPackageRequest request) throws UCloudException; - + public DeleteBandwidthPackageResponse deleteBandwidthPackage(DeleteBandwidthPackageRequest request) throws UCloudException; + + + + + + /** * DeleteFirewall - 删除防火墙 * * @param request Request object * @throws UCloudException Exception */ - public DeleteFirewallResponse deleteFirewall(DeleteFirewallRequest request) - throws UCloudException; - + public DeleteFirewallResponse deleteFirewall(DeleteFirewallRequest request) throws UCloudException; + + + + + + /** * DescribeBandwidthPackage - 获取带宽包信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeBandwidthPackageResponse describeBandwidthPackage( - DescribeBandwidthPackageRequest request) throws UCloudException; - + public DescribeBandwidthPackageResponse describeBandwidthPackage(DescribeBandwidthPackageRequest request) throws UCloudException; + + + + + + /** * DescribeBandwidthUsage - 获取带宽用量 * * @param request Request object * @throws UCloudException Exception */ - public DescribeBandwidthUsageResponse describeBandwidthUsage( - DescribeBandwidthUsageRequest request) throws UCloudException; - + public DescribeBandwidthUsageResponse describeBandwidthUsage(DescribeBandwidthUsageRequest request) throws UCloudException; + + + + + + /** * DescribeEIP - 获取弹性IP信息 * @@ -180,70 +335,116 @@ public DescribeBandwidthUsageResponse describeBandwidthUsage( * @throws UCloudException Exception */ public DescribeEIPResponse describeEIP(DescribeEIPRequest request) throws UCloudException; - + + + + + + /** * DescribeFirewall - 获取防火墙信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeFirewallResponse describeFirewall(DescribeFirewallRequest request) - throws UCloudException; - + public DescribeFirewallResponse describeFirewall(DescribeFirewallRequest request) throws UCloudException; + + + + + + /** * DescribeFirewallResource - 获取防火墙绑定资源 * * @param request Request object * @throws UCloudException Exception */ - public DescribeFirewallResourceResponse describeFirewallResource( - DescribeFirewallResourceRequest request) throws UCloudException; - + public DescribeFirewallResourceResponse describeFirewallResource(DescribeFirewallResourceRequest request) throws UCloudException; + + + + + + /** * DescribeShareBandwidth - 获取共享带宽信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeShareBandwidthResponse describeShareBandwidth( - DescribeShareBandwidthRequest request) throws UCloudException; - + public DescribeShareBandwidthResponse describeShareBandwidth(DescribeShareBandwidthRequest request) throws UCloudException; + + + + + + /** * DescribeShareBandwidthPrice - 获取共享带宽价格 * * @param request Request object * @throws UCloudException Exception */ - public DescribeShareBandwidthPriceResponse describeShareBandwidthPrice( - DescribeShareBandwidthPriceRequest request) throws UCloudException; - + public DescribeShareBandwidthPriceResponse describeShareBandwidthPrice(DescribeShareBandwidthPriceRequest request) throws UCloudException; + + + + + + /** * DescribeShareBandwidthUpdatePrice - 获取共享带宽升级价格 * * @param request Request object * @throws UCloudException Exception */ - public DescribeShareBandwidthUpdatePriceResponse describeShareBandwidthUpdatePrice( - DescribeShareBandwidthUpdatePriceRequest request) throws UCloudException; - + public DescribeShareBandwidthUpdatePriceResponse describeShareBandwidthUpdatePrice(DescribeShareBandwidthUpdatePriceRequest request) throws UCloudException; + + + + + + /** * DisassociateEIPWithShareBandwidth - 将EIP移出共享带宽 * * @param request Request object * @throws UCloudException Exception */ - public DisassociateEIPWithShareBandwidthResponse disassociateEIPWithShareBandwidth( - DisassociateEIPWithShareBandwidthRequest request) throws UCloudException; - + public DisassociateEIPWithShareBandwidthResponse disassociateEIPWithShareBandwidth(DisassociateEIPWithShareBandwidthRequest request) throws UCloudException; + + + + + + /** * DisassociateFirewall - 解绑防火墙 * * @param request Request object * @throws UCloudException Exception */ - public DisassociateFirewallResponse disassociateFirewall(DisassociateFirewallRequest request) - throws UCloudException; - + public DisassociateFirewallResponse disassociateFirewall(DisassociateFirewallRequest request) throws UCloudException; + + + + + + + /** + * GetEIPExclusiveUTPInfo - 获取EIP专属流量包信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetEIPExclusiveUTPInfoResponse getEIPExclusiveUTPInfo(GetEIPExclusiveUTPInfoRequest request) throws UCloudException; + + + + + + /** * GetEIPPayMode - 获取弹性IP计费方式 * @@ -251,7 +452,12 @@ public DisassociateFirewallResponse disassociateFirewall(DisassociateFirewallReq * @throws UCloudException Exception */ public GetEIPPayModeResponse getEIPPayMode(GetEIPPayModeRequest request) throws UCloudException; - + + + + + + /** * GetEIPPrice - 获取弹性IP价格 * @@ -259,25 +465,38 @@ public DisassociateFirewallResponse disassociateFirewall(DisassociateFirewallReq * @throws UCloudException Exception */ public GetEIPPriceResponse getEIPPrice(GetEIPPriceRequest request) throws UCloudException; - + + + + + + /** * GetEIPUpgradePrice - 获取弹性IP带宽改动价格 * * @param request Request object * @throws UCloudException Exception */ - public GetEIPUpgradePriceResponse getEIPUpgradePrice(GetEIPUpgradePriceRequest request) - throws UCloudException; - + public GetEIPUpgradePriceResponse getEIPUpgradePrice(GetEIPUpgradePriceRequest request) throws UCloudException; + + + + + + /** * GetThroughputDailyBillingInfo - 获取流量计费EIP每日流量计费信息 * * @param request Request object * @throws UCloudException Exception */ - public GetThroughputDailyBillingInfoResponse getThroughputDailyBillingInfo( - GetThroughputDailyBillingInfoRequest request) throws UCloudException; - + public GetThroughputDailyBillingInfoResponse getThroughputDailyBillingInfo(GetThroughputDailyBillingInfoRequest request) throws UCloudException; + + + + + + /** * GrantFirewall - 应用防火墙 * @@ -285,25 +504,38 @@ public GetThroughputDailyBillingInfoResponse getThroughputDailyBillingInfo( * @throws UCloudException Exception */ public GrantFirewallResponse grantFirewall(GrantFirewallRequest request) throws UCloudException; - + + + + + + /** * ModifyEIPBandwidth - 调整弹性IP带宽 * * @param request Request object * @throws UCloudException Exception */ - public ModifyEIPBandwidthResponse modifyEIPBandwidth(ModifyEIPBandwidthRequest request) - throws UCloudException; - + public ModifyEIPBandwidthResponse modifyEIPBandwidth(ModifyEIPBandwidthRequest request) throws UCloudException; + + + + + + /** * ModifyEIPWeight - 修改弹性IP出口权重 * * @param request Request object * @throws UCloudException Exception */ - public ModifyEIPWeightResponse modifyEIPWeight(ModifyEIPWeightRequest request) - throws UCloudException; - + public ModifyEIPWeightResponse modifyEIPWeight(ModifyEIPWeightRequest request) throws UCloudException; + + + + + + /** * ReleaseEIP - 释放弹性IP * @@ -311,25 +543,38 @@ public ModifyEIPWeightResponse modifyEIPWeight(ModifyEIPWeightRequest request) * @throws UCloudException Exception */ public ReleaseEIPResponse releaseEIP(ReleaseEIPRequest request) throws UCloudException; - + + + + + + /** * ReleaseShareBandwidth - 关闭共享带宽 * * @param request Request object * @throws UCloudException Exception */ - public ReleaseShareBandwidthResponse releaseShareBandwidth(ReleaseShareBandwidthRequest request) - throws UCloudException; - + public ReleaseShareBandwidthResponse releaseShareBandwidth(ReleaseShareBandwidthRequest request) throws UCloudException; + + + + + + /** * ResizeShareBandwidth - 调整共享带宽 * * @param request Request object * @throws UCloudException Exception */ - public ResizeShareBandwidthResponse resizeShareBandwidth(ResizeShareBandwidthRequest request) - throws UCloudException; - + public ResizeShareBandwidthResponse resizeShareBandwidth(ResizeShareBandwidthRequest request) throws UCloudException; + + + + + + /** * SetEIPPayMode - 设置弹性IP计费方式 * @@ -337,7 +582,12 @@ public ResizeShareBandwidthResponse resizeShareBandwidth(ResizeShareBandwidthReq * @throws UCloudException Exception */ public SetEIPPayModeResponse setEIPPayMode(SetEIPPayModeRequest request) throws UCloudException; - + + + + + + /** * UnBindEIP - 解绑弹性IP * @@ -345,31 +595,43 @@ public ResizeShareBandwidthResponse resizeShareBandwidth(ResizeShareBandwidthReq * @throws UCloudException Exception */ public UnBindEIPResponse unBindEIP(UnBindEIPRequest request) throws UCloudException; - + + + + + + /** * UpdateEIPAttribute - 更新弹性IP属性 * * @param request Request object * @throws UCloudException Exception */ - public UpdateEIPAttributeResponse updateEIPAttribute(UpdateEIPAttributeRequest request) - throws UCloudException; - + public UpdateEIPAttributeResponse updateEIPAttribute(UpdateEIPAttributeRequest request) throws UCloudException; + + + + + + /** * UpdateFirewall - 更新防火墙规则 * * @param request Request object * @throws UCloudException Exception */ - public UpdateFirewallResponse updateFirewall(UpdateFirewallRequest request) - throws UCloudException; - + public UpdateFirewallResponse updateFirewall(UpdateFirewallRequest request) throws UCloudException; + + + + + + /** * UpdateFirewallAttribute - 更新防火墙属性 * * @param request Request object * @throws UCloudException Exception */ - public UpdateFirewallAttributeResponse updateFirewallAttribute( - UpdateFirewallAttributeRequest request) throws UCloudException; + public UpdateFirewallAttributeResponse updateFirewallAttribute(UpdateFirewallAttributeRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateEIPRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateEIPRequest.java index 07ecc1f5..33f091c0 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateEIPRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateEIPRequest.java @@ -1,90 +1,143 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AllocateEIPRequest extends Request { - /** 地域。 */ + + + /** + * 地域。 + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + */ @UCloudParam("ProjectId") private String projectId; - + + + /** * 弹性IP线路,枚举值:国际线路, International;BGP线路:Bgp;精品BGP:BGPPro。 - * - *

使用BGP线路的地域:北京二、上海金融云、上海二、广州等,其他地域均使用国际线路。 使用BGPPro线路的地域:香港 + +使用BGP线路的地域:北京二、上海金融云、上海二、广州等,其他地域均使用国际线路。 +使用BGPPro线路的地域:香港 */ @NotEmpty @UCloudParam("OperatorName") private String operatorName; - + + + /** - * 弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: - * 流量计费[1-300],带宽计费[1-10000] + * 弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-10000] */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - - /** 业务组名称, 默认为 "Default" */ + + + + /** + * 业务组名称, 默认为 "Default" + */ @UCloudParam("Tag") private String tag; - - /** 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费,默认为按月付费。 */ + + + + /** + * 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费,默认为按月付费。 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买的时长, 默认: 1 */ + + + + /** + * 购买的时长, 默认: 1 + */ @UCloudParam("Quantity") private Integer quantity; - + + + /** - * 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. 默认为 - * "Bandwidth".“PostAccurateBandwidth”:带宽后付费模式 + * 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. 默认为 "Bandwidth".“PostAccurateBandwidth”:带宽后付费模式 */ @UCloudParam("PayMode") private String payMode; - - /** 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效 */ + + + + /** + * 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效 + */ @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - - /** 弹性IP的名称, 默认为 "EIP" */ + + + + /** + * 弹性IP的名称, 默认为 "EIP" + */ @UCloudParam("Name") private String name; - - /** 购买EIP数量,默认值为1 */ + + + + /** + * 购买EIP数量,默认值为1 + */ @UCloudParam("Count") private Integer count; - - /** 弹性IP的备注, 默认为空 */ + + + + /** + * 弹性IP的备注, 默认为空 + */ @UCloudParam("Remark") private String remark; - - /** 代金券ID, 默认不使用 */ + + + + + + /** + * 代金券ID, 默认不使用 + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -92,7 +145,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -100,7 +153,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getOperatorName() { return operatorName; } @@ -108,7 +161,7 @@ public String getOperatorName() { public void setOperatorName(String operatorName) { this.operatorName = operatorName; } - + public Integer getBandwidth() { return bandwidth; } @@ -116,7 +169,7 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } - + public String getTag() { return tag; } @@ -124,7 +177,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getChargeType() { return chargeType; } @@ -132,7 +185,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -140,7 +193,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getPayMode() { return payMode; } @@ -148,7 +201,7 @@ public String getPayMode() { public void setPayMode(String payMode) { this.payMode = payMode; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -156,7 +209,7 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } - + public String getName() { return name; } @@ -164,7 +217,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public Integer getCount() { return count; } @@ -172,7 +225,7 @@ public Integer getCount() { public void setCount(Integer count) { this.count = count; } - + public String getRemark() { return remark; } @@ -180,7 +233,8 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + + public String getCouponId() { return couponId; } @@ -188,4 +242,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateEIPResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateEIPResponse.java index c2859592..78e3c8bf 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateEIPResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateEIPResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class AllocateEIPResponse extends Response { - /** 申请到的EIP资源详情 参见 UnetAllocateEIPSet */ + + + /** + * 申请到的EIP资源详情 参见 UnetAllocateEIPSet + */ @SerializedName("EIPSet") private List eipSet; - + + public List getEIPSet() { return eipSet; } @@ -32,58 +41,84 @@ public List getEIPSet() { public void setEIPSet(List eipSet) { this.eipSet = eipSet; } + + public static class UnetAllocateEIPSet extends Response { + + + /** + * 申请到的EIP资源ID + */ + @SerializedName("EIPId") + private String eipId; + + + + /** + * 申请到的IPv4地址. + */ + @SerializedName("EIPAddr") + private List eipAddr; + + + public String getEIPId() { + return eipId; + } - public static class UnetAllocateEIPSet extends Response { - - /** 申请到的EIP资源ID */ - @SerializedName("EIPId") - private String eipId; - - /** 申请到的IPv4地址. */ - @SerializedName("EIPAddr") - private List eipAddr; + public void setEIPId(String eipId) { + this.eipId = eipId; + } + + public List getEIPAddr() { + return eipAddr; + } - public String getEIPId() { - return eipId; + public void setEIPAddr(List eipAddr) { + this.eipAddr = eipAddr; + } + } + public static class UnetEIPAddrSet extends Response { + + + /** + * 运营商信息如: 国际: International, BGP: BGP + */ + @SerializedName("OperatorName") + private String operatorName; + + + + /** + * IP地址 + */ + @SerializedName("IP") + private String ip; + + + public String getOperatorName() { + return operatorName; + } - public void setEIPId(String eipId) { - this.eipId = eipId; - } + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public String getIP() { + return ip; + } - public List getEIPAddr() { - return eipAddr; + public void setIP(String ip) { + this.ip = ip; + } + } +} + - public void setEIPAddr(List eipAddr) { - this.eipAddr = eipAddr; - } - } - public static class UnetEIPAddrSet extends Response { - /** 运营商信息如: 国际: International, BGP: BGP */ - @SerializedName("OperatorName") - private String operatorName; - /** IP地址 */ - @SerializedName("IP") - private String ip; - public String getOperatorName() { - return operatorName; - } - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; - } - public String getIP() { - return ip; - } - public void setIP(String ip) { - this.ip = ip; - } - } -} diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateShareBandwidthRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateShareBandwidthRequest.java index e8b9a104..36d7ea0a 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateShareBandwidthRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateShareBandwidthRequest.java @@ -1,64 +1,101 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AllocateShareBandwidthRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + */ @UCloudParam("ProjectId") private String projectId; - - /** 共享带宽名字 */ + + + + /** + * 共享带宽名字 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 付费方式:Year 按年,Month 按月,Dynamic 按时; */ + + + + /** + * 付费方式:Year 按年,Month 按月,Dynamic 按时; + */ @NotEmpty @UCloudParam("ChargeType") private String chargeType; - - /** 共享带宽值 */ + + + + /** + * 共享带宽值 + */ @NotEmpty @UCloudParam("ShareBandwidth") private Integer shareBandwidth; - - /** 购买时长 */ + + + + /** + * 购买时长 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 共享带宽类型,IPv4或者IPv6,不传默认IPv4 */ + + + + + + /** + * 共享带宽类型,IPv4或者IPv6,不传默认IPv4 + */ @UCloudParam("IPVersion") private String ipVersion; - + + + /** - * 共享带宽线路:BGP 国内多线,International 国际多线,ChinaMobile 移动单线,Unicom 联通单线,Telecom 电信单线,BGPPro - * 精品BGP(仅香港支持精品BGP) + * 共享带宽线路:BGP 国内多线,International 国际多线,ChinaMobile 移动单线,Unicom 联通单线,Telecom 电信单线,BGPPro 精品BGP(仅香港支持精品BGP) */ @UCloudParam("OperatorName") private String operatorName; - + + public String getRegion() { return region; } @@ -66,7 +103,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -74,7 +111,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -82,7 +119,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getChargeType() { return chargeType; } @@ -90,7 +127,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getShareBandwidth() { return shareBandwidth; } @@ -98,7 +135,7 @@ public Integer getShareBandwidth() { public void setShareBandwidth(Integer shareBandwidth) { this.shareBandwidth = shareBandwidth; } - + public Integer getQuantity() { return quantity; } @@ -106,7 +143,8 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + + public String getIPVersion() { return ipVersion; } @@ -114,7 +152,7 @@ public String getIPVersion() { public void setIPVersion(String ipVersion) { this.ipVersion = ipVersion; } - + public String getOperatorName() { return operatorName; } @@ -122,4 +160,14 @@ public String getOperatorName() { public void setOperatorName(String operatorName) { this.operatorName = operatorName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateShareBandwidthResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateShareBandwidthResponse.java index 74fb7220..1efdbf6b 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateShareBandwidthResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AllocateShareBandwidthResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class AllocateShareBandwidthResponse extends Response { - /** 共享带宽资源Id */ + + + /** + * 共享带宽资源Id + */ @SerializedName("ShareBandwidthId") private String shareBandwidthId; - + + public String getShareBandwidthId() { return shareBandwidthId; } @@ -31,4 +41,14 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AssociateEIPWithShareBandwidthRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AssociateEIPWithShareBandwidthRequest.java index ed0f6a4e..48e6eebe 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AssociateEIPWithShareBandwidthRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AssociateEIPWithShareBandwidthRequest.java @@ -1,49 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class AssociateEIPWithShareBandwidthRequest extends Request { - /** 地域。 */ + + + /** + * 地域。 + */ @NotEmpty @UCloudParam("Region") private String region; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 - /** 项目ID。不填写为默认项目,子帐号必须填写。 */ + */ @UCloudParam("ProjectId") private String projectId; - - /** 要加入共享带宽的EIP的资源Id */ + + + + /** + * 要加入共享带宽的EIP的资源Id + */ @NotEmpty @UCloudParam("EIPIds") private List eipIds; - - /** 共享带宽ID */ + + + + /** + * 共享带宽ID + */ @NotEmpty @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - - /** 共享带宽类型,IPv4或者IPv6,不传默认IPv4 */ + + + + /** + * 共享带宽类型,IPv4或者IPv6,不传默认IPv4 + */ @UCloudParam("IPVersion") private String ipVersion; - + + public String getRegion() { return region; } @@ -51,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -59,7 +85,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getEIPIds() { return eipIds; } @@ -67,7 +93,7 @@ public List getEIPIds() { public void setEIPIds(List eipIds) { this.eipIds = eipIds; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -75,7 +101,7 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } - + public String getIPVersion() { return ipVersion; } @@ -83,4 +109,14 @@ public String getIPVersion() { public void setIPVersion(String ipVersion) { this.ipVersion = ipVersion; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AssociateEIPWithShareBandwidthResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AssociateEIPWithShareBandwidthResponse.java index 112c89d9..348bb13e 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AssociateEIPWithShareBandwidthResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/AssociateEIPWithShareBandwidthResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class AssociateEIPWithShareBandwidthResponse extends Response {} +public class AssociateEIPWithShareBandwidthResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/BindEIPRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/BindEIPRequest.java index d07fa101..5cdb1f12 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/BindEIPRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/BindEIPRequest.java @@ -1,57 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class BindEIPRequest extends Request { - /** 地域 */ + + + /** + * 地域 + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写 */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写 + */ @UCloudParam("ProjectId") private String projectId; - - /** 弹性IP的资源Id */ + + + + /** + * 弹性IP的资源Id + */ @NotEmpty @UCloudParam("EIPId") private String eipId; - + + + /** - * 弹性IP请求绑定的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: - * 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:natgw;udb:udb;vpngw:ipsec - * vpn;ucdr:云灾备;dbaudit:数据库审计;uni:虚拟网卡;cube,Cube容器。如果EIP为普通带宽计费,且带宽值高于2G,则只允许绑定在快杰型云主机和ULB + * 弹性IP请求绑定的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:natgw;udb:udb;vpngw:ipsec vpn;ucdr:云灾备;dbaudit:数据库审计;uni:虚拟网卡;cube,Cube容器。如果EIP为普通带宽计费,且带宽值高于2G,则只允许绑定在快杰型云主机和ULB */ @NotEmpty @UCloudParam("ResourceType") private String resourceType; - - /** 弹性IP请求绑定的资源ID */ + + + + /** + * 弹性IP请求绑定的资源ID + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - - /** EIP与内网IP进行绑定时需要传入UNI下未绑定过EIP的内网IP */ + + + + /** + * EIP与内网IP进行绑定时需要传入UNI下未绑定过EIP的内网IP + */ @UCloudParam("PrivateIP") private String privateIP; - + + public String getRegion() { return region; } @@ -59,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -67,7 +93,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getEIPId() { return eipId; } @@ -75,7 +101,7 @@ public String getEIPId() { public void setEIPId(String eipId) { this.eipId = eipId; } - + public String getResourceType() { return resourceType; } @@ -83,7 +109,7 @@ public String getResourceType() { public void setResourceType(String resourceType) { this.resourceType = resourceType; } - + public String getResourceId() { return resourceId; } @@ -91,7 +117,7 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } - + public String getPrivateIP() { return privateIP; } @@ -99,4 +125,14 @@ public String getPrivateIP() { public void setPrivateIP(String privateIP) { this.privateIP = privateIP; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/BindEIPResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/BindEIPResponse.java index d488b2fb..1ec9b122 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/BindEIPResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/BindEIPResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class BindEIPResponse extends Response {} +public class BindEIPResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateBandwidthPackageRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateBandwidthPackageRequest.java index 14a6dff5..88fa0194 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateBandwidthPackageRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateBandwidthPackageRequest.java @@ -1,53 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateBandwidthPackageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 带宽大小(单位Mbps), 取值范围[2,800] (最大值受地域限制) */ + + + + /** + * 带宽大小(单位Mbps), 取值范围[2,800] (最大值受地域限制) + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - - /** 所绑定弹性IP的资源ID */ + + + + /** + * 所绑定弹性IP的资源ID + */ @NotEmpty @UCloudParam("EIPId") private String eipId; - - /** 带宽包有效时长, 取值范围为大于0的整数, 即该带宽包在EnableTime到 EnableTime+TimeRange时间段内生效 */ + + + + /** + * 带宽包有效时长, 取值范围为大于0的整数, 即该带宽包在EnableTime到 EnableTime+TimeRange时间段内生效 + */ @NotEmpty @UCloudParam("TimeRange") private Integer timeRange; - - /** 生效时间, 格式为 Unix timestamp, 默认为立即开通 */ + + + + /** + * 生效时间, 格式为 Unix timestamp, 默认为立即开通 + */ @UCloudParam("EnableTime") private Integer enableTime; - - /** 代金券ID */ + + + + /** + * 代金券ID + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -55,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public Integer getBandwidth() { return bandwidth; } @@ -63,7 +93,7 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } - + public String getEIPId() { return eipId; } @@ -71,7 +101,7 @@ public String getEIPId() { public void setEIPId(String eipId) { this.eipId = eipId; } - + public Integer getTimeRange() { return timeRange; } @@ -79,7 +109,7 @@ public Integer getTimeRange() { public void setTimeRange(Integer timeRange) { this.timeRange = timeRange; } - + public Integer getEnableTime() { return enableTime; } @@ -87,7 +117,7 @@ public Integer getEnableTime() { public void setEnableTime(Integer enableTime) { this.enableTime = enableTime; } - + public String getCouponId() { return couponId; } @@ -95,4 +125,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateBandwidthPackageResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateBandwidthPackageResponse.java index dda981e4..1576a7e1 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateBandwidthPackageResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateBandwidthPackageResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateBandwidthPackageResponse extends Response { - /** 所创建带宽包的资源ID */ + + + /** + * 所创建带宽包的资源ID + */ @SerializedName("BandwidthPackageId") private String bandwidthPackageId; - + + public String getBandwidthPackageId() { return bandwidthPackageId; } @@ -31,4 +41,14 @@ public String getBandwidthPackageId() { public void setBandwidthPackageId(String bandwidthPackageId) { this.bandwidthPackageId = bandwidthPackageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateFirewallRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateFirewallRequest.java index e73c237c..d75a1e40 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateFirewallRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateFirewallRequest.java @@ -1,55 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateFirewallRequest extends Request { - /** 地域 */ + + + /** + * 地域 + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写 */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写 + */ @UCloudParam("ProjectId") private String projectId; - + + + /** * 防火墙规则,例如:TCP|22|192.168.1.1/22|DROP|LOW|禁用22端口,第一个参数代表协议:第二个参数代表端口号,第三个参数为ip,第四个参数为ACCEPT(接受)和DROP(拒绝),第五个参数优先级:HIGH(高),MEDIUM(中),LOW(低),第六个参数为该条规则的自定义备注,bj1不支持添加备注 */ @NotEmpty @UCloudParam("Rule") private List rule; - - /** 防火墙名称 */ + + + + /** + * 防火墙名称 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 防火墙业务组,默认为Default */ + + + + /** + * 防火墙业务组,默认为Default + */ @UCloudParam("Tag") private String tag; - - /** 防火墙描述,默认为空 */ + + + + /** + * 防火墙描述,默认为空 + */ @UCloudParam("Remark") private String remark; - + + public String getRegion() { return region; } @@ -57,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -65,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getRule() { return rule; } @@ -73,7 +100,7 @@ public List getRule() { public void setRule(List rule) { this.rule = rule; } - + public String getName() { return name; } @@ -81,7 +108,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getTag() { return tag; } @@ -89,7 +116,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -97,4 +124,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateFirewallResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateFirewallResponse.java index 145cfbc9..c5947139 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateFirewallResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/CreateFirewallResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateFirewallResponse extends Response { - /** 防火墙ID */ + + + /** + * 防火墙ID + */ @SerializedName("FWId") private String fwId; - + + public String getFWId() { return fwId; } @@ -31,4 +41,14 @@ public String getFWId() { public void setFWId(String fwId) { this.fwId = fwId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteBandwidthPackageRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteBandwidthPackageRequest.java index 47cb7cff..8fc1b8a6 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteBandwidthPackageRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteBandwidthPackageRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteBandwidthPackageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 带宽包资源ID */ + + + + /** + * 带宽包资源ID + */ @NotEmpty @UCloudParam("BandwidthPackageId") private String bandwidthPackageId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getBandwidthPackageId() { return bandwidthPackageId; } @@ -57,4 +75,14 @@ public String getBandwidthPackageId() { public void setBandwidthPackageId(String bandwidthPackageId) { this.bandwidthPackageId = bandwidthPackageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteBandwidthPackageResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteBandwidthPackageResponse.java index a12fa1a5..f27bb2fb 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteBandwidthPackageResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteBandwidthPackageResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteBandwidthPackageResponse extends Response {} +public class DeleteBandwidthPackageResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteFirewallRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteFirewallRequest.java index 6808e233..80b01764 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteFirewallRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteFirewallRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteFirewallRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙资源ID */ + + + + /** + * 防火墙资源ID + */ @NotEmpty @UCloudParam("FWId") private String fwId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFWId() { return fwId; } @@ -57,4 +75,14 @@ public String getFWId() { public void setFWId(String fwId) { this.fwId = fwId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteFirewallResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteFirewallResponse.java index 56e5da10..7e6d5d5b 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteFirewallResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DeleteFirewallResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteFirewallResponse extends Response {} +public class DeleteFirewallResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthPackageRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthPackageRequest.java index cd692d0b..f630bc26 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthPackageRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthPackageRequest.java @@ -1,42 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeBandwidthPackageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 返回数据分页值, 取值范围为 [0,10000000] 之间的整数, 默认为20 */ + + + + /** + * 返回数据分页值, 取值范围为 [0,10000000] 之间的整数, 默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 返回数据偏移量, 默认为0 */ + + + + /** + * 返回数据偏移量, 默认为0 + */ @UCloudParam("Offset") private Integer offset; - + + public String getRegion() { return region; } @@ -44,7 +66,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -52,7 +74,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getLimit() { return limit; } @@ -60,7 +82,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -68,4 +90,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthPackageResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthPackageResponse.java index e6a1d746..791b89a5 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthPackageResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthPackageResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeBandwidthPackageResponse extends Response { - /** 满足条件的带宽包总数 */ + + + /** + * 满足条件的带宽包总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 带宽包详细信息, 参见 UnetBandwidthPackageSet */ + + + + /** + * 带宽包详细信息, 参见 UnetBandwidthPackageSet + */ @SerializedName("DataSets") private List dataSets; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSets() { return dataSets; } @@ -44,118 +57,164 @@ public List getDataSets() { public void setDataSets(List dataSets) { this.dataSets = dataSets; } - - public static class EIPAddrSet extends Response { - - /** 运营商信息, 枚举值为: BGP: BGP; International: 国际. */ - @SerializedName("OperatorName") - private String operatorName; - - /** 弹性IP地址 */ - @SerializedName("IP") - private String ip; - - public String getOperatorName() { - return operatorName; - } - - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; - } - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } + + public static class EIPAddrSet extends Response { + + + /** + * 运营商信息, 枚举值为: BGP: BGP; International: 国际. + */ + @SerializedName("OperatorName") + private String operatorName; + + + + /** + * 弹性IP地址 + */ + @SerializedName("IP") + private String ip; + + + public String getOperatorName() { + return operatorName; } - public static class UnetBandwidthPackageSet extends Response { - - /** 带宽包的资源ID */ - @SerializedName("BandwidthPackageId") - private String bandwidthPackageId; - - /** 生效时间, 格式为 Unix Timestamp */ - @SerializedName("EnableTime") - private Integer enableTime; - - /** 失效时间, 格式为 Unix Timestamp */ - @SerializedName("DisableTime") - private Integer disableTime; - - /** 创建时间, 格式为 Unix Timestamp */ - @SerializedName("CreateTime") - private Integer createTime; + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public String getIP() { + return ip; + } - /** 带宽包的临时带宽值, 单位Mbps */ - @SerializedName("Bandwidth") - private Integer bandwidth; + public void setIP(String ip) { + this.ip = ip; + } + + } + public static class UnetBandwidthPackageSet extends Response { + + + /** + * 带宽包的资源ID + */ + @SerializedName("BandwidthPackageId") + private String bandwidthPackageId; + + + + /** + * 生效时间, 格式为 Unix Timestamp + */ + @SerializedName("EnableTime") + private Integer enableTime; + + + + /** + * 失效时间, 格式为 Unix Timestamp + */ + @SerializedName("DisableTime") + private Integer disableTime; + + + + /** + * 创建时间, 格式为 Unix Timestamp + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 带宽包的临时带宽值, 单位Mbps + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * 带宽包所绑定弹性IP的资源ID + */ + @SerializedName("EIPId") + private String eipId; + + + + /** + * 带宽包所绑定弹性IP的详细信息,只有当EIPId对应双线IP时, EIPAddr的长度为2, 其他情况, EIPAddr长度均为1.参见 EIPAddrSet + */ + @SerializedName("EIPAddr") + private List eipAddr; + + + public String getBandwidthPackageId() { + return bandwidthPackageId; + } - /** 带宽包所绑定弹性IP的资源ID */ - @SerializedName("EIPId") - private String eipId; + public void setBandwidthPackageId(String bandwidthPackageId) { + this.bandwidthPackageId = bandwidthPackageId; + } + + public Integer getEnableTime() { + return enableTime; + } - /** 带宽包所绑定弹性IP的详细信息,只有当EIPId对应双线IP时, EIPAddr的长度为2, 其他情况, EIPAddr长度均为1.参见 EIPAddrSet */ - @SerializedName("EIPAddr") - private List eipAddr; + public void setEnableTime(Integer enableTime) { + this.enableTime = enableTime; + } + + public Integer getDisableTime() { + return disableTime; + } - public String getBandwidthPackageId() { - return bandwidthPackageId; - } + public void setDisableTime(Integer disableTime) { + this.disableTime = disableTime; + } + + public Integer getCreateTime() { + return createTime; + } - public void setBandwidthPackageId(String bandwidthPackageId) { - this.bandwidthPackageId = bandwidthPackageId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getBandwidth() { + return bandwidth; + } - public Integer getEnableTime() { - return enableTime; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getEIPId() { + return eipId; + } - public void setEnableTime(Integer enableTime) { - this.enableTime = enableTime; - } + public void setEIPId(String eipId) { + this.eipId = eipId; + } + + public List getEIPAddr() { + return eipAddr; + } - public Integer getDisableTime() { - return disableTime; + public void setEIPAddr(List eipAddr) { + this.eipAddr = eipAddr; + } + } +} - public void setDisableTime(Integer disableTime) { - this.disableTime = disableTime; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getBandwidth() { - return bandwidth; - } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } - public String getEIPId() { - return eipId; - } - public void setEIPId(String eipId) { - this.eipId = eipId; - } - public List getEIPAddr() { - return eipAddr; - } - public void setEIPAddr(List eipAddr) { - this.eipAddr = eipAddr; - } - } -} diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthUsageRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthUsageRequest.java index ee1bc8c7..d97e42a7 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthUsageRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthUsageRequest.java @@ -1,47 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeBandwidthUsageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 返回数据分页值, 取值范围为 [0,10000000] 之间的整数, 默认为20 */ + + + + /** + * 返回数据分页值, 取值范围为 [0,10000000] 之间的整数, 默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 返回数据偏移量, 默认为0 */ + + + + /** + * 返回数据偏移量, 默认为0 + */ @UCloudParam("OffSet") private Integer offSet; - - /** 弹性IP的资源Id. 如果为空, 则返回当前 Region中符合条件的所有EIP的带宽用量, n为自然数 */ + + + + /** + * 弹性IP的资源Id. 如果为空, 则返回当前 Region中符合条件的所有EIP的带宽用量, n为自然数 + */ @UCloudParam("EIPIds") private List eipIds; - + + public String getRegion() { return region; } @@ -49,7 +74,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +82,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getLimit() { return limit; } @@ -65,7 +90,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffSet() { return offSet; } @@ -73,7 +98,7 @@ public Integer getOffSet() { public void setOffSet(Integer offSet) { this.offSet = offSet; } - + public List getEIPIds() { return eipIds; } @@ -81,4 +106,14 @@ public List getEIPIds() { public void setEIPIds(List eipIds) { this.eipIds = eipIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthUsageResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthUsageResponse.java index 6bd7f25b..3ca15db4 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthUsageResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeBandwidthUsageResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeBandwidthUsageResponse extends Response { - /** EIPSet中的元素个数 */ + + + /** + * EIPSet中的元素个数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 单个弹性IP的带宽用量详细信息, 详见 UnetBandwidthUsageEIPSet, 如没有弹性IP资源则没有该返回值。 */ + + + + /** + * 单个弹性IP的带宽用量详细信息, 详见 UnetBandwidthUsageEIPSet, 如没有弹性IP资源则没有该返回值。 + */ @SerializedName("EIPSet") private List eipSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getEIPSet() { return eipSet; } @@ -44,31 +57,49 @@ public List getEIPSet() { public void setEIPSet(List eipSet) { this.eipSet = eipSet; } + + public static class UnetBandwidthUsageEIPSet extends Response { + + + /** + * 最近5分钟带宽用量, 单位Mbps + */ + @SerializedName("CurBandwidth") + private Double curBandwidth; + + + + /** + * 弹性IP资源ID + */ + @SerializedName("EIPId") + private String eipId; + + + public Double getCurBandwidth() { + return curBandwidth; + } + + public void setCurBandwidth(Double curBandwidth) { + this.curBandwidth = curBandwidth; + } + + public String getEIPId() { + return eipId; + } + + public void setEIPId(String eipId) { + this.eipId = eipId; + } + + } +} + + - public static class UnetBandwidthUsageEIPSet extends Response { - /** 最近5分钟带宽用量, 单位Mbps */ - @SerializedName("CurBandwidth") - private Double curBandwidth; - /** 弹性IP资源ID */ - @SerializedName("EIPId") - private String eipId; - public Double getCurBandwidth() { - return curBandwidth; - } - public void setCurBandwidth(Double curBandwidth) { - this.curBandwidth = curBandwidth; - } - public String getEIPId() { - return eipId; - } - public void setEIPId(String eipId) { - this.eipId = eipId; - } - } -} diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeEIPRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeEIPRequest.java index e48ac263..a14687a9 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeEIPRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeEIPRequest.java @@ -1,51 +1,80 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeEIPRequest extends Request { - /** 地域 */ + + + /** + * 地域 + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写 */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写 + */ @UCloudParam("ProjectId") private String projectId; - - /** 弹性IP的资源ID如果为空, 则返回当前 Region中符合条件的的所有EIP */ + + + + /** + * 弹性IP的资源ID如果为空, 则返回当前 Region中符合条件的的所有EIP + */ @UCloudParam("EIPIds") private List eipIds; - - /** 数据偏移量, 默认为0 */ + + + + /** + * 数据偏移量, 默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 数据分页值, 默认为20 */ + + + + /** + * 数据分页值, 默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** IP地址,支持通过ip查询,如果ip与EIP都传,会取并集查询 */ + + + + /** + * IP地址,支持通过ip查询,如果ip与EIP都传,会取并集查询 + */ @UCloudParam("IPs") private List iPs; - + + public String getRegion() { return region; } @@ -53,7 +82,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -61,7 +90,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getEIPIds() { return eipIds; } @@ -69,7 +98,7 @@ public List getEIPIds() { public void setEIPIds(List eipIds) { this.eipIds = eipIds; } - + public Integer getOffset() { return offset; } @@ -77,7 +106,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -85,7 +114,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public List getIPs() { return iPs; } @@ -93,4 +122,14 @@ public List getIPs() { public void setIPs(List iPs) { this.iPs = iPs; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeEIPResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeEIPResponse.java index 924b7315..7046b731 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeEIPResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeEIPResponse.java @@ -1,42 +1,63 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeEIPResponse extends Response { - /** 满足条件的弹性IP总数 */ + + + /** + * 满足条件的弹性IP总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 未绑定的弹性IP总数 */ + + + + /** + * 未绑定的弹性IP总数 + */ @SerializedName("UnbindCount") private Integer unbindCount; - - /** 满足条件的弹性IP带宽总和, 单位Mbps */ + + + + /** + * 满足条件的弹性IP带宽总和, 单位Mbps + */ @SerializedName("TotalBandwidth") private Integer totalBandwidth; - - /** 弹性IP列表, 每项参数详见 UnetEIPSet */ + + + + /** + * 弹性IP列表, 每项参数详见 UnetEIPSet + */ @SerializedName("EIPSet") private List eipSet; - + + public Integer getTotalCount() { return totalCount; } @@ -44,7 +65,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public Integer getUnbindCount() { return unbindCount; } @@ -52,7 +73,7 @@ public Integer getUnbindCount() { public void setUnbindCount(Integer unbindCount) { this.unbindCount = unbindCount; } - + public Integer getTotalBandwidth() { return totalBandwidth; } @@ -60,7 +81,7 @@ public Integer getTotalBandwidth() { public void setTotalBandwidth(Integer totalBandwidth) { this.totalBandwidth = totalBandwidth; } - + public List getEIPSet() { return eipSet; } @@ -68,412 +89,541 @@ public List getEIPSet() { public void setEIPSet(List eipSet) { this.eipSet = eipSet; } - - public static class EIPBinding extends Response { - - /** 外网ip */ - @SerializedName("EIP") - private String eip; - - /** 内网ip */ - @SerializedName("PrivateIP") - private String privateIP; - - /** 内网ip类型:PrimaryIP(默认)、SecondaryIP(非默认) */ - @SerializedName("PrivateIPType") - private String privateIPType; - - public String getEIP() { - return eip; - } - - public void setEIP(String eip) { - this.eip = eip; - } - - public String getPrivateIP() { - return privateIP; - } - - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } - - public String getPrivateIPType() { - return privateIPType; - } - - public void setPrivateIPType(String privateIPType) { - this.privateIPType = privateIPType; - } + + public static class EIPBinding extends Response { + + + /** + * 外网ip + */ + @SerializedName("EIP") + private String eip; + + + + /** + * 内网ip + */ + @SerializedName("PrivateIP") + private String privateIP; + + + + /** + * 内网ip类型:PrimaryIP(默认)、SecondaryIP(非默认) + */ + @SerializedName("PrivateIPType") + private String privateIPType; + + + public String getEIP() { + return eip; } - public static class ShareBandwidthSet extends Response { - - /** 共享带宽带宽值 */ - @SerializedName("ShareBandwidth") - private Integer shareBandwidth; - - /** 共享带宽的资源名称 */ - @SerializedName("ShareBandwidthName") - private String shareBandwidthName; - - /** 共享带宽ID */ - @SerializedName("ShareBandwidthId") - private String shareBandwidthId; - - public Integer getShareBandwidth() { - return shareBandwidth; - } - - public void setShareBandwidth(Integer shareBandwidth) { - this.shareBandwidth = shareBandwidth; - } - - public String getShareBandwidthName() { - return shareBandwidthName; - } - - public void setShareBandwidthName(String shareBandwidthName) { - this.shareBandwidthName = shareBandwidthName; - } - - public String getShareBandwidthId() { - return shareBandwidthId; - } - - public void setShareBandwidthId(String shareBandwidthId) { - this.shareBandwidthId = shareBandwidthId; - } + public void setEIP(String eip) { + this.eip = eip; } - - public static class UnetEIPAddrSet extends Response { - - /** 运营商信息如: 国际: International, BGP: BGP */ - @SerializedName("OperatorName") - private String operatorName; - - /** IP地址 */ - @SerializedName("IP") - private String ip; - - public String getOperatorName() { - return operatorName; - } - - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; - } - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } + + public String getPrivateIP() { + return privateIP; } - public static class UnetEIPResourceSet extends Response { - - /** - * 已绑定的资源类型, 枚举值为: uhost, 云主机;natgw:NAT网关;ulb:负载均衡器;upm: 物理机; hadoophost: - * 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;vpngw:IPSec - * VPN;ucdr:云灾备;dbaudit:数据库审计,uni:虚拟网卡。 - */ - @SerializedName("ResourceType") - private String resourceType; - - /** 已绑定的资源名称 */ - @SerializedName("ResourceName") - private String resourceName; - - /** 已绑定资源的资源ID */ - @SerializedName("ResourceID") - private String resourceID; - - /** 资源绑定的虚拟网卡的类型。uni,虚拟网卡。 */ - @SerializedName("SubResourceType") - private String subResourceType; - - /** 资源绑定的虚拟网卡的名称 */ - @SerializedName("SubResourceName") - private String subResourceName; - - /** 资源绑定的虚拟网卡的ID */ - @SerializedName("SubResourceId") - private String subResourceId; - - /** 弹性IP的资源ID */ - @SerializedName("EIPId") - private String eipId; - - public String getResourceType() { - return resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public String getResourceName() { - return resourceName; - } - - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } - - public String getResourceID() { - return resourceID; - } - - public void setResourceID(String resourceID) { - this.resourceID = resourceID; - } - - public String getSubResourceType() { - return subResourceType; - } - - public void setSubResourceType(String subResourceType) { - this.subResourceType = subResourceType; - } - - public String getSubResourceName() { - return subResourceName; - } - - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } - - public String getSubResourceId() { - return subResourceId; - } - - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } - - public String getEIPId() { - return eipId; - } - - public void setEIPId(String eipId) { - this.eipId = eipId; - } + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + public String getPrivateIPType() { + return privateIPType; } - public static class UnetEIPSet extends Response { - - /** 弹性IP的资源ID */ - @SerializedName("EIPId") - private String eipId; - - /** 外网出口权重, 默认为50, 范围[0-100] */ - @SerializedName("Weight") - private Integer weight; - - /** 带宽模式, 枚举值为: 0: 非共享带宽模式, 1: 共享带宽模式 */ - @SerializedName("BandwidthType") - private Integer bandwidthType; - - /** 弹性IP的带宽, 单位为Mbps, 当BandwidthType=1时, 该处显示为共享带宽值. 当BandwidthType=0时, 该处显示这个弹性IP的带宽. */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - /** 弹性IP的资源绑定状态, 枚举值为: used: 已绑定, free: 未绑定, freeze: 已冻结 */ - @SerializedName("Status") - private String status; - - /** - * 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按小时付费; Trial, 试用. 按小时付费和试用这两种付费模式需要开通权限. - */ - @SerializedName("ChargeType") - private String chargeType; - - /** 弹性IP的创建时间, 格式为Unix Timestamp */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 弹性IP的到期时间, 格式为Unix Timestamp */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 弹性IP的详细信息列表, 具体结构见下方 UnetEIPResourceSet */ - @SerializedName("Resource") - private UnetEIPResourceSet resource; - - /** 弹性IP的详细信息列表, 具体结构见下方 UnetEIPAddrSet */ - @SerializedName("EIPAddr") - private List eipAddr; - - /** 弹性IP的名称,缺省值为 "EIP" */ - @SerializedName("Name") - private String name; - - /** 弹性IP的业务组标识, 缺省值为 "Default" */ - @SerializedName("Tag") - private String tag; - - /** 弹性IP的备注, 缺省值为 "" */ - @SerializedName("Remark") - private String remark; + public void setPrivateIPType(String privateIPType) { + this.privateIPType = privateIPType; + } + + } + public static class ShareBandwidthSet extends Response { + + + /** + * 共享带宽带宽值 + */ + @SerializedName("ShareBandwidth") + private Integer shareBandwidth; + + + + /** + * 共享带宽的资源名称 + */ + @SerializedName("ShareBandwidthName") + private String shareBandwidthName; + + + + /** + * 共享带宽ID + */ + @SerializedName("ShareBandwidthId") + private String shareBandwidthId; + + + public Integer getShareBandwidth() { + return shareBandwidth; + } - /** - * 弹性IP的计费模式, 枚举值为: "Bandwidth", 带宽计费; "Traffic", 流量计费; "ShareBandwidth",共享带宽模式. 默认为 - * "Bandwidth". - */ - @SerializedName("PayMode") - private String payMode; + public void setShareBandwidth(Integer shareBandwidth) { + this.shareBandwidth = shareBandwidth; + } + + public String getShareBandwidthName() { + return shareBandwidthName; + } - /** 共享带宽信息 参见 ShareBandwidthSet */ - @SerializedName("ShareBandwidthSet") - private ShareBandwidthSet shareBandwidthSet; + public void setShareBandwidthName(String shareBandwidthName) { + this.shareBandwidthName = shareBandwidthName; + } + + public String getShareBandwidthId() { + return shareBandwidthId; + } - /** 弹性IP是否到期 */ - @SerializedName("Expire") - private Boolean expire; + public void setShareBandwidthId(String shareBandwidthId) { + this.shareBandwidthId = shareBandwidthId; + } + + } + public static class UnetEIPAddrSet extends Response { + + + /** + * 运营商信息如: 国际: International, BGP: BGP + */ + @SerializedName("OperatorName") + private String operatorName; + + + + /** + * IP地址 + */ + @SerializedName("IP") + private String ip; + + + public String getOperatorName() { + return operatorName; + } - /** EIP绑定内网IP关系数据 */ - @SerializedName("EIPBinding") - private EIPBinding eipBinding; + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public String getIP() { + return ip; + } - public String getEIPId() { - return eipId; - } + public void setIP(String ip) { + this.ip = ip; + } + + } + public static class UnetEIPResourceSet extends Response { + + + /** + * 已绑定的资源类型, 枚举值为: uhost, 云主机;natgw:NAT网关;ulb:负载均衡器;upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;vpngw:IPSec VPN;ucdr:云灾备;dbaudit:数据库审计,uni:虚拟网卡。 + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 已绑定的资源名称 + */ + @SerializedName("ResourceName") + private String resourceName; + + + + /** + * 已绑定资源的资源ID + */ + @SerializedName("ResourceID") + private String resourceID; + + + + /** + * 资源绑定的虚拟网卡的类型。uni,虚拟网卡。 + */ + @SerializedName("SubResourceType") + private String subResourceType; + + + + /** + * 资源绑定的虚拟网卡的名称 + */ + @SerializedName("SubResourceName") + private String subResourceName; + + + + /** + * 资源绑定的虚拟网卡的ID + */ + @SerializedName("SubResourceId") + private String subResourceId; + + + + /** + * 弹性IP的资源ID + */ + @SerializedName("EIPId") + private String eipId; + + + public String getResourceType() { + return resourceType; + } - public void setEIPId(String eipId) { - this.eipId = eipId; - } + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getResourceName() { + return resourceName; + } - public Integer getWeight() { - return weight; - } + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getResourceID() { + return resourceID; + } - public void setWeight(Integer weight) { - this.weight = weight; - } + public void setResourceID(String resourceID) { + this.resourceID = resourceID; + } + + public String getSubResourceType() { + return subResourceType; + } - public Integer getBandwidthType() { - return bandwidthType; - } + public void setSubResourceType(String subResourceType) { + this.subResourceType = subResourceType; + } + + public String getSubResourceName() { + return subResourceName; + } - public void setBandwidthType(Integer bandwidthType) { - this.bandwidthType = bandwidthType; - } + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getSubResourceId() { + return subResourceId; + } - public Integer getBandwidth() { - return bandwidth; - } + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public String getEIPId() { + return eipId; + } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } + public void setEIPId(String eipId) { + this.eipId = eipId; + } + + } + public static class UnetEIPSet extends Response { + + + /** + * 弹性IP的资源ID + */ + @SerializedName("EIPId") + private String eipId; + + + + /** + * 外网出口权重, 默认为50, 范围[0-100] + */ + @SerializedName("Weight") + private Integer weight; + + + + /** + * 带宽模式, 枚举值为: 0: 非共享带宽模式, 1: 共享带宽模式 + */ + @SerializedName("BandwidthType") + private Integer bandwidthType; + + + + /** + * 弹性IP的带宽, 单位为Mbps, 当BandwidthType=1时, 该处显示为共享带宽值. 当BandwidthType=0时, 该处显示这个弹性IP的带宽. + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * 弹性IP的资源绑定状态, 枚举值为: used: 已绑定, free: 未绑定, freeze: 已冻结 + */ + @SerializedName("Status") + private String status; + + + + /** + * 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按小时付费; Trial, 试用. 按小时付费和试用这两种付费模式需要开通权限. + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 弹性IP的创建时间, 格式为Unix Timestamp + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 弹性IP的到期时间, 格式为Unix Timestamp + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 弹性IP的详细信息列表, 具体结构见下方 UnetEIPResourceSet + */ + @SerializedName("Resource") + private UnetEIPResourceSet resource; + + + + /** + * 弹性IP的详细信息列表, 具体结构见下方 UnetEIPAddrSet + */ + @SerializedName("EIPAddr") + private List eipAddr; + + + + /** + * 弹性IP的名称,缺省值为 "EIP" + */ + @SerializedName("Name") + private String name; + + + + /** + * 弹性IP的业务组标识, 缺省值为 "Default" + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 弹性IP的备注, 缺省值为 "" + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 弹性IP的计费模式, 枚举值为: "Bandwidth", 带宽计费; "Traffic", 流量计费; "ShareBandwidth",共享带宽模式. 默认为 "Bandwidth". + */ + @SerializedName("PayMode") + private String payMode; + + + + /** + * 共享带宽信息 参见 ShareBandwidthSet + */ + @SerializedName("ShareBandwidthSet") + private ShareBandwidthSet shareBandwidthSet; + + + + /** + * 弹性IP是否到期 + */ + @SerializedName("Expire") + private Boolean expire; + + + + /** + * EIP绑定内网IP关系数据 + */ + @SerializedName("EIPBinding") + private EIPBinding eipBinding; + + + public String getEIPId() { + return eipId; + } - public String getStatus() { - return status; - } + public void setEIPId(String eipId) { + this.eipId = eipId; + } + + public Integer getWeight() { + return weight; + } - public void setStatus(String status) { - this.status = status; - } + public void setWeight(Integer weight) { + this.weight = weight; + } + + public Integer getBandwidthType() { + return bandwidthType; + } - public String getChargeType() { - return chargeType; - } + public void setBandwidthType(Integer bandwidthType) { + this.bandwidthType = bandwidthType; + } + + public Integer getBandwidth() { + return bandwidth; + } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getStatus() { + return status; + } - public Integer getCreateTime() { - return createTime; - } + public void setStatus(String status) { + this.status = status; + } + + public String getChargeType() { + return chargeType; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getCreateTime() { + return createTime; + } - public Integer getExpireTime() { - return expireTime; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public UnetEIPResourceSet getResource() { + return resource; + } - public UnetEIPResourceSet getResource() { - return resource; - } + public void setResource(UnetEIPResourceSet resource) { + this.resource = resource; + } + + public List getEIPAddr() { + return eipAddr; + } - public void setResource(UnetEIPResourceSet resource) { - this.resource = resource; - } + public void setEIPAddr(List eipAddr) { + this.eipAddr = eipAddr; + } + + public String getName() { + return name; + } - public List getEIPAddr() { - return eipAddr; - } + public void setName(String name) { + this.name = name; + } + + public String getTag() { + return tag; + } - public void setEIPAddr(List eipAddr) { - this.eipAddr = eipAddr; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } - public String getName() { - return name; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getPayMode() { + return payMode; + } - public void setName(String name) { - this.name = name; - } + public void setPayMode(String payMode) { + this.payMode = payMode; + } + + public ShareBandwidthSet getShareBandwidthSet() { + return shareBandwidthSet; + } - public String getTag() { - return tag; - } + public void setShareBandwidthSet(ShareBandwidthSet shareBandwidthSet) { + this.shareBandwidthSet = shareBandwidthSet; + } + + public Boolean getExpire() { + return expire; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setExpire(Boolean expire) { + this.expire = expire; + } + + public EIPBinding getEIPBinding() { + return eipBinding; + } - public String getRemark() { - return remark; + public void setEIPBinding(EIPBinding eipBinding) { + this.eipBinding = eipBinding; + } + } +} - public void setRemark(String remark) { - this.remark = remark; - } - public String getPayMode() { - return payMode; - } - public void setPayMode(String payMode) { - this.payMode = payMode; - } - public ShareBandwidthSet getShareBandwidthSet() { - return shareBandwidthSet; - } - public void setShareBandwidthSet(ShareBandwidthSet shareBandwidthSet) { - this.shareBandwidthSet = shareBandwidthSet; - } - public Boolean getExpire() { - return expire; - } - public void setExpire(Boolean expire) { - this.expire = expire; - } - public EIPBinding getEIPBinding() { - return eipBinding; - } - public void setEIPBinding(EIPBinding eipBinding) { - this.eipBinding = eipBinding; - } - } -} diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallRequest.java index 67071685..8e6fcee0 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallRequest.java @@ -1,57 +1,88 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeFirewallRequest extends Request { - /** 地域 */ + + + /** + * 地域 + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写 */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写 + */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙ID,默认为返回所有防火墙 */ + + + + /** + * 防火墙ID,默认为返回所有防火墙 + */ @UCloudParam("FWId") private String fwId; - + + + /** - * 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机;“uni”,虚拟网卡; "upm",物理云主机; - * "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计. + * 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机;“uni”,虚拟网卡; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计. */ @UCloudParam("ResourceType") private String resourceType; - - /** 绑定防火墙组的资源ID */ + + + + /** + * 绑定防火墙组的资源ID + */ @UCloudParam("ResourceId") private String resourceId; - - /** 返回数据长度,默认为20,最大10000000 */ + + + + /** + * 返回数据长度,默认为20,最大10000000 + */ @UCloudParam("Limit") private Integer limit; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - + + public String getRegion() { return region; } @@ -59,7 +90,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -67,7 +98,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFWId() { return fwId; } @@ -75,7 +106,7 @@ public String getFWId() { public void setFWId(String fwId) { this.fwId = fwId; } - + public String getResourceType() { return resourceType; } @@ -83,7 +114,7 @@ public String getResourceType() { public void setResourceType(String resourceType) { this.resourceType = resourceType; } - + public String getResourceId() { return resourceId; } @@ -91,7 +122,7 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } - + public Integer getLimit() { return limit; } @@ -99,7 +130,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -107,4 +138,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallResourceRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallResourceRequest.java index 11a8ea61..e4fcad0f 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallResourceRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallResourceRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeFirewallResourceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙ID */ + + + + /** + * 防火墙ID + */ @NotEmpty @UCloudParam("FWId") private String fwId; - - /** 返回数据长度,默认为20,最大1000 */ + + + + /** + * 返回数据长度,默认为20,最大1000 + */ @UCloudParam("Limit") private Integer limit; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -60,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFWId() { return fwId; } @@ -68,7 +91,7 @@ public String getFWId() { public void setFWId(String fwId) { this.fwId = fwId; } - + public Integer getLimit() { return limit; } @@ -76,7 +99,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -84,4 +107,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallResourceResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallResourceResponse.java index f6580666..8ee1de51 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallResourceResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallResourceResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeFirewallResourceResponse extends Response { - /** 资源列表,见 ResourceSet */ + + + /** + * 资源列表,见 ResourceSet + */ @SerializedName("ResourceSet") private List resourceSet; - - /** 绑定资源总数 */ + + + + /** + * 绑定资源总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getResourceSet() { return resourceSet; } @@ -36,7 +49,7 @@ public List getResourceSet() { public void setResourceSet(List resourceSet) { this.resourceSet = resourceSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,142 +57,193 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class ResourceSet extends Response { + + + /** + * 可用区 + */ + @SerializedName("Zone") + private Integer zone; + + + + /** + * 资源绑定的虚拟网卡的名称 + */ + @SerializedName("SubResourceName") + private String subResourceName; + + + + /** + * 资源绑定的虚拟网卡的ID + */ + @SerializedName("SubResourceId") + private String subResourceId; + + + + /** + * 资源绑定的虚拟网卡的类型,“uni”,虚拟网卡。 + */ + @SerializedName("SubResourceType") + private String subResourceType; + + + + /** + * 名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 内网IP + */ + @SerializedName("PrivateIP") + private String privateIP; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 绑定该防火墙的资源id + */ + @SerializedName("ResourceID") + private String resourceID; + + + + /** + * 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,“uni”,虚拟网卡。 + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 状态 + */ + @SerializedName("Status") + private Integer status; + + + + /** + * 业务组 + */ + @SerializedName("Tag") + private String tag; + + + public Integer getZone() { + return zone; + } - public static class ResourceSet extends Response { - - /** 可用区 */ - @SerializedName("Zone") - private Integer zone; - - /** 资源绑定的虚拟网卡的名称 */ - @SerializedName("SubResourceName") - private String subResourceName; - - /** 资源绑定的虚拟网卡的ID */ - @SerializedName("SubResourceId") - private String subResourceId; - - /** 资源绑定的虚拟网卡的类型,“uni”,虚拟网卡。 */ - @SerializedName("SubResourceType") - private String subResourceType; - - /** 名称 */ - @SerializedName("Name") - private String name; - - /** 内网IP */ - @SerializedName("PrivateIP") - private String privateIP; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** 绑定该防火墙的资源id */ - @SerializedName("ResourceID") - private String resourceID; - - /** - * 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; - * "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,“uni”,虚拟网卡。 - */ - @SerializedName("ResourceType") - private String resourceType; - - /** 状态 */ - @SerializedName("Status") - private Integer status; - - /** 业务组 */ - @SerializedName("Tag") - private String tag; - - public Integer getZone() { - return zone; - } - - public void setZone(Integer zone) { - this.zone = zone; - } - - public String getSubResourceName() { - return subResourceName; - } + public void setZone(Integer zone) { + this.zone = zone; + } + + public String getSubResourceName() { + return subResourceName; + } - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getSubResourceId() { + return subResourceId; + } - public String getSubResourceId() { - return subResourceId; - } + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public String getSubResourceType() { + return subResourceType; + } - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } + public void setSubResourceType(String subResourceType) { + this.subResourceType = subResourceType; + } + + public String getName() { + return name; + } - public String getSubResourceType() { - return subResourceType; - } + public void setName(String name) { + this.name = name; + } + + public String getPrivateIP() { + return privateIP; + } - public void setSubResourceType(String subResourceType) { - this.subResourceType = subResourceType; - } + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + public String getRemark() { + return remark; + } - public String getName() { - return name; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getResourceID() { + return resourceID; + } - public void setName(String name) { - this.name = name; - } + public void setResourceID(String resourceID) { + this.resourceID = resourceID; + } + + public String getResourceType() { + return resourceType; + } - public String getPrivateIP() { - return privateIP; - } + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public Integer getStatus() { + return status; + } - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } + public void setStatus(Integer status) { + this.status = status; + } + + public String getTag() { + return tag; + } - public String getRemark() { - return remark; + public void setTag(String tag) { + this.tag = tag; + } + } +} - public void setRemark(String remark) { - this.remark = remark; - } - public String getResourceID() { - return resourceID; - } - public void setResourceID(String resourceID) { - this.resourceID = resourceID; - } - public String getResourceType() { - return resourceType; - } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - public Integer getStatus() { - return status; - } - public void setStatus(Integer status) { - this.status = status; - } - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - } -} diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallResponse.java index 3269fffe..ff2f26ad 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeFirewallResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeFirewallResponse extends Response { - /** 获取的防火墙组详细信息 参见 FirewallDataSet */ + + + /** + * 获取的防火墙组详细信息 参见 FirewallDataSet + */ @SerializedName("DataSet") private List dataSet; - - /** 防火墙资源数量 */ + + + + /** + * 防火墙资源数量 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,193 +57,260 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class FirewallDataSet extends Response { + + + /** + * 防火墙ID + */ + @SerializedName("FWId") + private String fwId; + + + + /** + * 安全组ID(即将废弃) + */ + @SerializedName("GroupId") + private String groupId; + + + + /** + * 防火墙名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 防火墙业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 防火墙备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 防火墙绑定资源数量 + */ + @SerializedName("ResourceCount") + private Integer resourceCount; + + + + /** + * 防火墙组创建时间,格式为Unix Timestamp + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 防火墙组类型,枚举值为: "user defined", 用户自定义防火墙; "recommend web", 默认Web防火墙; "recommend non web", 默认非Web防火墙 + */ + @SerializedName("Type") + private String type; + + + + /** + * 防火墙组中的规则列表,参见 FirewallRuleSet + */ + @SerializedName("Rule") + private List rule; + + + public String getFWId() { + return fwId; + } - public static class FirewallDataSet extends Response { - - /** 防火墙ID */ - @SerializedName("FWId") - private String fwId; - - /** 安全组ID(即将废弃) */ - @SerializedName("GroupId") - private String groupId; - - /** 防火墙名称 */ - @SerializedName("Name") - private String name; - - /** 防火墙业务组 */ - @SerializedName("Tag") - private String tag; - - /** 防火墙备注 */ - @SerializedName("Remark") - private String remark; - - /** 防火墙绑定资源数量 */ - @SerializedName("ResourceCount") - private Integer resourceCount; - - /** 防火墙组创建时间,格式为Unix Timestamp */ - @SerializedName("CreateTime") - private Integer createTime; - - /** - * 防火墙组类型,枚举值为: "user defined", 用户自定义防火墙; "recommend web", 默认Web防火墙; "recommend non web", - * 默认非Web防火墙 - */ - @SerializedName("Type") - private String type; - - /** 防火墙组中的规则列表,参见 FirewallRuleSet */ - @SerializedName("Rule") - private List rule; - - public String getFWId() { - return fwId; - } - - public void setFWId(String fwId) { - this.fwId = fwId; - } - - public String getGroupId() { - return groupId; - } - - public void setGroupId(String groupId) { - this.groupId = groupId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getTag() { - return tag; - } - - public void setTag(String tag) { - this.tag = tag; - } - - public String getRemark() { - return remark; - } - - public void setRemark(String remark) { - this.remark = remark; - } + public void setFWId(String fwId) { + this.fwId = fwId; + } + + public String getGroupId() { + return groupId; + } - public Integer getResourceCount() { - return resourceCount; - } + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public String getName() { + return name; + } - public void setResourceCount(Integer resourceCount) { - this.resourceCount = resourceCount; - } + public void setName(String name) { + this.name = name; + } + + public String getTag() { + return tag; + } - public Integer getCreateTime() { - return createTime; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getResourceCount() { + return resourceCount; + } - public String getType() { - return type; - } + public void setResourceCount(Integer resourceCount) { + this.resourceCount = resourceCount; + } + + public Integer getCreateTime() { + return createTime; + } - public void setType(String type) { - this.type = type; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getType() { + return type; + } - public List getRule() { - return rule; - } + public void setType(String type) { + this.type = type; + } + + public List getRule() { + return rule; + } - public void setRule(List rule) { - this.rule = rule; + public void setRule(List rule) { + this.rule = rule; + } + } + public static class FirewallRuleSet extends Response { + + + /** + * 源地址 + */ + @SerializedName("SrcIP") + private String srcIP; + + + + /** + * 优先级 + */ + @SerializedName("Priority") + private String priority; + + + + /** + * 协议类型 + */ + @SerializedName("ProtocolType") + private String protocolType; + + + + /** + * 目标端口 + */ + @SerializedName("DstPort") + private String dstPort; + + + + /** + * 防火墙动作 + */ + @SerializedName("RuleAction") + private String ruleAction; + + + + /** + * 防火墙规则备注 + */ + @SerializedName("Remark") + private String remark; + + + public String getSrcIP() { + return srcIP; } - public static class FirewallRuleSet extends Response { - - /** 源地址 */ - @SerializedName("SrcIP") - private String srcIP; - - /** 优先级 */ - @SerializedName("Priority") - private String priority; - - /** 协议类型 */ - @SerializedName("ProtocolType") - private String protocolType; - - /** 目标端口 */ - @SerializedName("DstPort") - private String dstPort; + public void setSrcIP(String srcIP) { + this.srcIP = srcIP; + } + + public String getPriority() { + return priority; + } - /** 防火墙动作 */ - @SerializedName("RuleAction") - private String ruleAction; + public void setPriority(String priority) { + this.priority = priority; + } + + public String getProtocolType() { + return protocolType; + } - /** 防火墙规则备注 */ - @SerializedName("Remark") - private String remark; + public void setProtocolType(String protocolType) { + this.protocolType = protocolType; + } + + public String getDstPort() { + return dstPort; + } - public String getSrcIP() { - return srcIP; - } + public void setDstPort(String dstPort) { + this.dstPort = dstPort; + } + + public String getRuleAction() { + return ruleAction; + } - public void setSrcIP(String srcIP) { - this.srcIP = srcIP; - } + public void setRuleAction(String ruleAction) { + this.ruleAction = ruleAction; + } + + public String getRemark() { + return remark; + } - public String getPriority() { - return priority; + public void setRemark(String remark) { + this.remark = remark; + } + } +} - public void setPriority(String priority) { - this.priority = priority; - } - public String getProtocolType() { - return protocolType; - } - public void setProtocolType(String protocolType) { - this.protocolType = protocolType; - } - public String getDstPort() { - return dstPort; - } - public void setDstPort(String dstPort) { - this.dstPort = dstPort; - } - public String getRuleAction() { - return ruleAction; - } - public void setRuleAction(String ruleAction) { - this.ruleAction = ruleAction; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - } -} diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthPriceRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthPriceRequest.java index a7832029..848b0750 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthPriceRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthPriceRequest.java @@ -1,55 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeShareBandwidthPriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 付费方式, 预付费:Year 按年,Month 按月,Dynamic 按需; */ + + + + /** + * 付费方式, 预付费:Year 按年,Month 按月,Dynamic 按需; + */ @NotEmpty @UCloudParam("ChargeType") private String chargeType; - - /** 共享带宽值 */ + + + + /** + * 共享带宽值 + */ @NotEmpty @UCloudParam("ShareBandwidth") private Integer shareBandwidth; - - /** 购买数量 */ + + + + /** + * 购买数量 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 香港地域支持:BGPPro和International。其他地域无需填写该字段 */ + + + + /** + * 香港地域支持:BGPPro和International。其他地域无需填写该字段 + */ @UCloudParam("OperatorName") private String operatorName; - + + public String getRegion() { return region; } @@ -57,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -65,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getChargeType() { return chargeType; } @@ -73,7 +100,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getShareBandwidth() { return shareBandwidth; } @@ -81,7 +108,7 @@ public Integer getShareBandwidth() { public void setShareBandwidth(Integer shareBandwidth) { this.shareBandwidth = shareBandwidth; } - + public Integer getQuantity() { return quantity; } @@ -89,7 +116,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getOperatorName() { return operatorName; } @@ -97,4 +124,14 @@ public String getOperatorName() { public void setOperatorName(String operatorName) { this.operatorName = operatorName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthPriceResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthPriceResponse.java index 86cd8871..390d49d7 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthPriceResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthPriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeShareBandwidthPriceResponse extends Response { - /** 共享带宽总价格 */ + + + /** + * 共享带宽总价格 + */ @SerializedName("TotalPrice") private Integer totalPrice; - + + public Integer getTotalPrice() { return totalPrice; } @@ -31,4 +41,14 @@ public Integer getTotalPrice() { public void setTotalPrice(Integer totalPrice) { this.totalPrice = totalPrice; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthRequest.java index a3eff847..0e272a0a 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthRequest.java @@ -1,39 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeShareBandwidthRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 需要返回的共享带宽Id */ + + + + /** + * 需要返回的共享带宽Id + */ @UCloudParam("ShareBandwidthIds") private List shareBandwidthIds; - + + public String getRegion() { return region; } @@ -41,7 +58,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getShareBandwidthIds() { return shareBandwidthIds; } @@ -57,4 +74,14 @@ public List getShareBandwidthIds() { public void setShareBandwidthIds(List shareBandwidthIds) { this.shareBandwidthIds = shareBandwidthIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthResponse.java index 309cd89a..4c044cde 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeShareBandwidthResponse extends Response { - /** 共享带宽信息组 参见 UnetShareBandwidthSet */ + + + /** + * 共享带宽信息组 参见 UnetShareBandwidthSet + */ @SerializedName("DataSet") private List dataSet; - - /** 符合条件的共享带宽总数,大于等于返回DataSet长度 */ + + + + /** + * 符合条件的共享带宽总数,大于等于返回DataSet长度 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,169 +57,231 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - - public static class EIPAddrSet extends Response { - - /** 运营商信息, 枚举值为: BGP: BGP; International: 国际. */ - @SerializedName("OperatorName") - private String operatorName; - - /** 弹性IP地址 */ - @SerializedName("IP") - private String ip; - - public String getOperatorName() { - return operatorName; - } - - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; - } - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } + + public static class EIPAddrSet extends Response { + + + /** + * 运营商信息, 枚举值为: BGP: BGP; International: 国际. + */ + @SerializedName("OperatorName") + private String operatorName; + + + + /** + * 弹性IP地址 + */ + @SerializedName("IP") + private String ip; + + + public String getOperatorName() { + return operatorName; } - public static class EIPSetData extends Response { - - /** EIP带宽值 */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - /** EIP的IP信息,详情见EIPAddrSet */ - @SerializedName("EIPAddr") - private List eipAddr; - - /** EIP资源Id */ - @SerializedName("EIPId") - private String eipId; - - public Integer getBandwidth() { - return bandwidth; - } - - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public String getIP() { + return ip; + } - public List getEIPAddr() { - return eipAddr; + public void setIP(String ip) { + this.ip = ip; + } + } + public static class EIPSetData extends Response { + + + /** + * EIP带宽值 + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * EIP的IP信息,详情见EIPAddrSet + */ + @SerializedName("EIPAddr") + private List eipAddr; + + + + /** + * EIP资源Id + */ + @SerializedName("EIPId") + private String eipId; + + + public Integer getBandwidth() { + return bandwidth; + } - public void setEIPAddr(List eipAddr) { - this.eipAddr = eipAddr; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public List getEIPAddr() { + return eipAddr; + } - public String getEIPId() { - return eipId; - } + public void setEIPAddr(List eipAddr) { + this.eipAddr = eipAddr; + } + + public String getEIPId() { + return eipId; + } - public void setEIPId(String eipId) { - this.eipId = eipId; + public void setEIPId(String eipId) { + this.eipId = eipId; + } + } + public static class UnetShareBandwidthSet extends Response { + + + /** + * 共享带宽类型 + */ + @SerializedName("IPVersion") + private String ipVersion; + + + + /** + * 共享带宽值(预付费)/共享带宽峰值(后付费), 单位Mbps + */ + @SerializedName("ShareBandwidth") + private Integer shareBandwidth; + + + + /** + * 共享带宽的资源ID + */ + @SerializedName("ShareBandwidthId") + private String shareBandwidthId; + + + + /** + * 付费方式, 预付费:Year 按年,Month 按月,Dynamic 按需;后付费:PostPay(按月) + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 创建时间, 格式为Unix Timestamp + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 过期时间, 格式为Unix Timestamp + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * EIP信息,详情见 EIPSetData + */ + @SerializedName("EIPSet") + private List eipSet; + + + + /** + * 共享带宽名称 + */ + @SerializedName("Name") + private String name; + + + public String getIPVersion() { + return ipVersion; } - public static class UnetShareBandwidthSet extends Response { - - /** 共享带宽类型 */ - @SerializedName("IPVersion") - private String ipVersion; - - /** 共享带宽值(预付费)/共享带宽峰值(后付费), 单位Mbps */ - @SerializedName("ShareBandwidth") - private Integer shareBandwidth; - - /** 共享带宽的资源ID */ - @SerializedName("ShareBandwidthId") - private String shareBandwidthId; - - /** 付费方式, 预付费:Year 按年,Month 按月,Dynamic 按需;后付费:PostPay(按月) */ - @SerializedName("ChargeType") - private String chargeType; - - /** 创建时间, 格式为Unix Timestamp */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 过期时间, 格式为Unix Timestamp */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** EIP信息,详情见 EIPSetData */ - @SerializedName("EIPSet") - private List eipSet; - - /** 共享带宽名称 */ - @SerializedName("Name") - private String name; + public void setIPVersion(String ipVersion) { + this.ipVersion = ipVersion; + } + + public Integer getShareBandwidth() { + return shareBandwidth; + } - public String getIPVersion() { - return ipVersion; - } + public void setShareBandwidth(Integer shareBandwidth) { + this.shareBandwidth = shareBandwidth; + } + + public String getShareBandwidthId() { + return shareBandwidthId; + } - public void setIPVersion(String ipVersion) { - this.ipVersion = ipVersion; - } + public void setShareBandwidthId(String shareBandwidthId) { + this.shareBandwidthId = shareBandwidthId; + } + + public String getChargeType() { + return chargeType; + } - public Integer getShareBandwidth() { - return shareBandwidth; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getCreateTime() { + return createTime; + } - public void setShareBandwidth(Integer shareBandwidth) { - this.shareBandwidth = shareBandwidth; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public String getShareBandwidthId() { - return shareBandwidthId; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public List getEIPSet() { + return eipSet; + } - public void setShareBandwidthId(String shareBandwidthId) { - this.shareBandwidthId = shareBandwidthId; - } + public void setEIPSet(List eipSet) { + this.eipSet = eipSet; + } + + public String getName() { + return name; + } - public String getChargeType() { - return chargeType; + public void setName(String name) { + this.name = name; + } + } +} - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getExpireTime() { - return expireTime; - } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } - public List getEIPSet() { - return eipSet; - } - public void setEIPSet(List eipSet) { - this.eipSet = eipSet; - } - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - } -} diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthUpdatePriceRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthUpdatePriceRequest.java index 956ea54b..b475ca7c 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthUpdatePriceRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthUpdatePriceRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeShareBandwidthUpdatePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 共享带宽Id */ + + + + /** + * 共享带宽Id + */ @NotEmpty @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - - /** 共享带宽值 */ + + + + /** + * 共享带宽值 + */ @NotEmpty @UCloudParam("ShareBandwidth") private Integer shareBandwidth; - + + public String getRegion() { return region; } @@ -42,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -50,7 +68,7 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } - + public Integer getShareBandwidth() { return shareBandwidth; } @@ -58,4 +76,14 @@ public Integer getShareBandwidth() { public void setShareBandwidth(Integer shareBandwidth) { this.shareBandwidth = shareBandwidth; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthUpdatePriceResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthUpdatePriceResponse.java index a4d18e0a..9889c061 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthUpdatePriceResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthUpdatePriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeShareBandwidthUpdatePriceResponse extends Response { - /** 共享带宽升降级价格 */ + + + /** + * 共享带宽升降级价格 + */ @SerializedName("Price") private Double price; - + + public Double getPrice() { return price; } @@ -31,4 +41,14 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateEIPWithShareBandwidthRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateEIPWithShareBandwidthRequest.java index 9a213d06..8d3fe735 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateEIPWithShareBandwidthRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateEIPWithShareBandwidthRequest.java @@ -1,57 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DisassociateEIPWithShareBandwidthRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 共享带宽ID */ + + + + /** + * 共享带宽ID + */ @NotEmpty @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - - /** 移出共享带宽后,EIP的外网带宽, 单位为Mbps. 各地域带宽范围如下: 流量计费[1-200],带宽计费[1-800] */ + + + + /** + * 移出共享带宽后,EIP的外网带宽, 单位为Mbps. 各地域带宽范围如下: 流量计费[1-200],带宽计费[1-800] + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - - /** EIP的资源Id;默认移出该共享带宽下所有的EIP */ + + + + /** + * EIP的资源Id;默认移出该共享带宽下所有的EIP + */ @UCloudParam("EIPIds") private List eipIds; - - /** 移出共享带宽后,EIP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; 默认为 "Bandwidth". */ + + + + /** + * 移出共享带宽后,EIP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; 默认为 "Bandwidth". + */ @UCloudParam("PayMode") private String payMode; - - /** 共享带宽类型,IPv4或者IPv6,不传默认IPv4 */ + + + + /** + * 共享带宽类型,IPv4或者IPv6,不传默认IPv4 + */ @UCloudParam("IPVersion") private String ipVersion; - + + public String getRegion() { return region; } @@ -59,7 +92,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -67,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -75,7 +108,7 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } - + public Integer getBandwidth() { return bandwidth; } @@ -83,7 +116,7 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } - + public List getEIPIds() { return eipIds; } @@ -91,7 +124,7 @@ public List getEIPIds() { public void setEIPIds(List eipIds) { this.eipIds = eipIds; } - + public String getPayMode() { return payMode; } @@ -99,7 +132,7 @@ public String getPayMode() { public void setPayMode(String payMode) { this.payMode = payMode; } - + public String getIPVersion() { return ipVersion; } @@ -107,4 +140,14 @@ public String getIPVersion() { public void setIPVersion(String ipVersion) { this.ipVersion = ipVersion; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateEIPWithShareBandwidthResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateEIPWithShareBandwidthResponse.java index 8d4a00ed..9e32158c 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateEIPWithShareBandwidthResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateEIPWithShareBandwidthResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DisassociateEIPWithShareBandwidthResponse extends Response {} +public class DisassociateEIPWithShareBandwidthResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateFirewallRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateFirewallRequest.java index 6e3f2f96..574a1343 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateFirewallRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateFirewallRequest.java @@ -1,52 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DisassociateFirewallRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙ID */ + + + + /** + * 防火墙ID + */ @NotEmpty @UCloudParam("FWId") private String fwId; - - /** 需要解绑的资源ID */ + + + + /** + * 需要解绑的资源ID + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - - /** 资源类型:ULB 表示负载均衡 */ + + + + /** + * 资源类型:ULB 表示负载均衡 + */ @NotEmpty @UCloudParam("ResourceType") private String resourceType; - + + public String getRegion() { return region; } @@ -54,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -62,7 +85,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFWId() { return fwId; } @@ -70,7 +93,7 @@ public String getFWId() { public void setFWId(String fwId) { this.fwId = fwId; } - + public String getResourceId() { return resourceId; } @@ -78,7 +101,7 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } - + public String getResourceType() { return resourceType; } @@ -86,4 +109,14 @@ public String getResourceType() { public void setResourceType(String resourceType) { this.resourceType = resourceType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateFirewallResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateFirewallResponse.java index 62e98c83..f2596ad7 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateFirewallResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DisassociateFirewallResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DisassociateFirewallResponse extends Response {} +public class DisassociateFirewallResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPExclusiveUTPInfoRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPExclusiveUTPInfoRequest.java new file mode 100644 index 00000000..dae30995 --- /dev/null +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPExclusiveUTPInfoRequest.java @@ -0,0 +1,105 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.unet.models; + +import java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +public class GetEIPExclusiveUTPInfoRequest extends Request { + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Region") + private String region; + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + + + /** + * EIP资源Id + */ + @NotEmpty + @UCloudParam("EIPId") + private String eipId; + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getEIPId() { + return eipId; + } + + public void setEIPId(String eipId) { + this.eipId = eipId; + } + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPExclusiveUTPInfoResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPExclusiveUTPInfoResponse.java new file mode 100644 index 00000000..9ce6834b --- /dev/null +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPExclusiveUTPInfoResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package cn.ucloud.unet.models; + +import java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +public class GetEIPExclusiveUTPInfoResponse extends Response { + + + + /** + * EIP专属流量包信息 + */ + @SerializedName("EIPExclusiveInfo") + private EIPExclusiveInfo eipExclusiveInfo; + + + public EIPExclusiveInfo getEIPExclusiveInfo() { + return eipExclusiveInfo; + } + + public void setEIPExclusiveInfo(EIPExclusiveInfo eipExclusiveInfo) { + this.eipExclusiveInfo = eipExclusiveInfo; + } + + public static class EIPExclusiveInfo extends Response { + + + /** + * EIP资源Id + */ + @SerializedName("EIPId") + private String eipId; + + + + /** + * + */ + @SerializedName("AccountId") + private Integer accountId; + + + + /** + * 专属流量包总规格(单位MB) + */ + @SerializedName("TotalSize") + private Integer totalSize; + + + + /** + * 专属流量包剩余可用规格(单位MB) + */ + @SerializedName("AvailableSize") + private Integer availableSize; + + + + /** + * 专属流量包上次重置时间 + */ + @SerializedName("LastResetTime") + private Integer lastResetTime; + + + + /** + * 专属流量包下次重置时间 + */ + @SerializedName("NextResetTime") + private Integer nextResetTime; + + + + /** + * 专属流量包重置策略枚举:Day、Month、Year + */ + @SerializedName("ResetPolicy") + private String resetPolicy; + + + + /** + * 资源创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + public String getEIPId() { + return eipId; + } + + public void setEIPId(String eipId) { + this.eipId = eipId; + } + + public Integer getAccountId() { + return accountId; + } + + public void setAccountId(Integer accountId) { + this.accountId = accountId; + } + + public Integer getTotalSize() { + return totalSize; + } + + public void setTotalSize(Integer totalSize) { + this.totalSize = totalSize; + } + + public Integer getAvailableSize() { + return availableSize; + } + + public void setAvailableSize(Integer availableSize) { + this.availableSize = availableSize; + } + + public Integer getLastResetTime() { + return lastResetTime; + } + + public void setLastResetTime(Integer lastResetTime) { + this.lastResetTime = lastResetTime; + } + + public Integer getNextResetTime() { + return nextResetTime; + } + + public void setNextResetTime(Integer nextResetTime) { + this.nextResetTime = nextResetTime; + } + + public String getResetPolicy() { + return resetPolicy; + } + + public void setResetPolicy(String resetPolicy) { + this.resetPolicy = resetPolicy; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + } +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPayModeRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPayModeRequest.java index 1cec035b..b118f3d4 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPayModeRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPayModeRequest.java @@ -1,40 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetEIPPayModeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 弹性IP的资源Id */ + + + + /** + * 弹性IP的资源Id + */ @NotEmpty @UCloudParam("EIPId") private List eipId; - + + public String getRegion() { return region; } @@ -42,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -50,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getEIPId() { return eipId; } @@ -58,4 +75,14 @@ public List getEIPId() { public void setEIPId(List eipId) { this.eipId = eipId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPayModeResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPayModeResponse.java index ee6010af..1453693a 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPayModeResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPayModeResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetEIPPayModeResponse extends Response { - /** EIP的计费模式, 参见 EIPPayModeSet */ + + + /** + * EIP的计费模式, 参见 EIPPayModeSet + */ @SerializedName("EIPPayMode") private List eipPayMode; - + + public List getEIPPayMode() { return eipPayMode; } @@ -32,31 +41,49 @@ public List getEIPPayMode() { public void setEIPPayMode(List eipPayMode) { this.eipPayMode = eipPayMode; } + + public static class EIPPayModeSet extends Response { + + + /** + * EIP的资源ID + */ + @SerializedName("EIPId") + private String eipId; + + + + /** + * EIP的计费模式. 枚举值为:Bandwidth, 带宽计费;Traffic, 流量计费; "ShareBandwidth",共享带宽模式 + */ + @SerializedName("EIPPayMode") + private String eipPayMode; + + + public String getEIPId() { + return eipId; + } + + public void setEIPId(String eipId) { + this.eipId = eipId; + } + + public String getEIPPayMode() { + return eipPayMode; + } + + public void setEIPPayMode(String eipPayMode) { + this.eipPayMode = eipPayMode; + } + + } +} + + - public static class EIPPayModeSet extends Response { - /** EIP的资源ID */ - @SerializedName("EIPId") - private String eipId; - /** EIP的计费模式. 枚举值为:Bandwidth, 带宽计费;Traffic, 流量计费; "ShareBandwidth",共享带宽模式 */ - @SerializedName("EIPPayMode") - private String eipPayMode; - public String getEIPId() { - return eipId; - } - public void setEIPId(String eipId) { - this.eipId = eipId; - } - public String getEIPPayMode() { - return eipPayMode; - } - public void setEIPPayMode(String eipPayMode) { - this.eipPayMode = eipPayMode; - } - } -} diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPriceRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPriceRequest.java index e9a1cf53..74b693f4 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPriceRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPriceRequest.java @@ -1,61 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetEIPPriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - + + + /** - * 弹性IP的线路如下: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp - * cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International - * kr-seoul:International us-ws:International ge-fra:International sg:International - * tw-kh:International.其他海外线路均为 International,泉州为移动单线cn-qz:ChinaMobile + * 弹性IP的线路如下: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International,泉州为移动单线cn-qz:ChinaMobile */ @NotEmpty @UCloudParam("OperatorName") private String operatorName; - - /** 弹性IP的外网带宽, 单位为Mbps, 范围 [0-800] */ + + + + /** + * 弹性IP的外网带宽, 单位为Mbps, 范围 [0-800] + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - - /** 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费; 默认为获取三种价格 */ + + + + /** + * 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费; 默认为获取三种价格 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 弹性IP计费方式r. 枚举值为: Traffic, 流量计费; Bandwidth, 带宽计费; "ShareBandwidth",共享带宽模式. 默认为Bandwidth */ + + + + /** + * 弹性IP计费方式r. 枚举值为: Traffic, 流量计费; Bandwidth, 带宽计费; "ShareBandwidth",共享带宽模式. 默认为Bandwidth + */ @UCloudParam("PayMode") private String payMode; - - /** 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末 */ + + + + /** + * 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末 + */ @UCloudParam("Quantity") private Integer quantity; - + + public String getRegion() { return region; } @@ -63,7 +92,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -71,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getOperatorName() { return operatorName; } @@ -79,7 +108,7 @@ public String getOperatorName() { public void setOperatorName(String operatorName) { this.operatorName = operatorName; } - + public Integer getBandwidth() { return bandwidth; } @@ -87,7 +116,7 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } - + public String getChargeType() { return chargeType; } @@ -95,7 +124,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getPayMode() { return payMode; } @@ -103,7 +132,7 @@ public String getPayMode() { public void setPayMode(String payMode) { this.payMode = payMode; } - + public Integer getQuantity() { return quantity; } @@ -111,4 +140,14 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPriceResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPriceResponse.java index 1f0aa185..72c8f920 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPriceResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPPriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetEIPPriceResponse extends Response { - /** 弹性IP价格详情 详情见 EIPPriceDetailSet */ + + + /** + * 弹性IP价格详情 详情见 EIPPriceDetailSet + */ @SerializedName("PriceSet") private List priceSet; - + + public List getPriceSet() { return priceSet; } @@ -32,55 +41,81 @@ public List getPriceSet() { public void setPriceSet(List priceSet) { this.priceSet = priceSet; } + + public static class EIPPriceDetailSet extends Response { + + + /** + * 弹性IP付费方式 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 购买弹性IP的实际价格, 单位"元" + */ + @SerializedName("Price") + private Double price; + + + + /** + * 弹性IP的原价,单位“元” + */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + + + /** + * 资源有效期, 以Unix Timestamp表示 + */ + @SerializedName("PurchaseValue") + private Integer purchaseValue; + + + public String getChargeType() { + return chargeType; + } - public static class EIPPriceDetailSet extends Response { + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } - /** 弹性IP付费方式 */ - @SerializedName("ChargeType") - private String chargeType; + public void setPrice(Double price) { + this.price = price; + } + + public Double getOriginalPrice() { + return originalPrice; + } - /** 购买弹性IP的实际价格, 单位"元" */ - @SerializedName("Price") - private Double price; + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + + public Integer getPurchaseValue() { + return purchaseValue; + } - /** 弹性IP的原价,单位“元” */ - @SerializedName("OriginalPrice") - private Double originalPrice; + public void setPurchaseValue(Integer purchaseValue) { + this.purchaseValue = purchaseValue; + } + + } +} - /** 资源有效期, 以Unix Timestamp表示 */ - @SerializedName("PurchaseValue") - private Integer purchaseValue; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Double getPrice() { - return price; - } - public void setPrice(Double price) { - this.price = price; - } - public Double getOriginalPrice() { - return originalPrice; - } - public void setOriginalPrice(Double originalPrice) { - this.originalPrice = originalPrice; - } - public Integer getPurchaseValue() { - return purchaseValue; - } - public void setPurchaseValue(Integer purchaseValue) { - this.purchaseValue = purchaseValue; - } - } -} diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPUpgradePriceRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPUpgradePriceRequest.java index e723c74e..8314ffb1 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPUpgradePriceRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPUpgradePriceRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetEIPUpgradePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 弹性IP的资源ID */ + + + + /** + * 弹性IP的资源ID + */ @NotEmpty @UCloudParam("EIPId") private String eipId; - - /** 弹性IP的外网带宽, 单位为Mbps, 范围 [1-800] */ + + + + /** + * 弹性IP的外网带宽, 单位为Mbps, 范围 [1-800] + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -54,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getEIPId() { return eipId; } @@ -62,7 +84,7 @@ public String getEIPId() { public void setEIPId(String eipId) { this.eipId = eipId; } - + public Integer getBandwidth() { return bandwidth; } @@ -70,4 +92,14 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPUpgradePriceResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPUpgradePriceResponse.java index 2220ade5..b1654129 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPUpgradePriceResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetEIPUpgradePriceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetEIPUpgradePriceResponse extends Response { - /** 调整带宽后的EIP价格, 单位为"元", 如需退费此处为负值 */ + + + /** + * 调整带宽后的EIP价格, 单位为"元", 如需退费此处为负值 + */ @SerializedName("Price") private Double price; - + + public Double getPrice() { return price; } @@ -31,4 +41,14 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetThroughputDailyBillingInfoRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetThroughputDailyBillingInfoRequest.java index e673f7de..d344b0f1 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetThroughputDailyBillingInfoRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetThroughputDailyBillingInfoRequest.java @@ -1,52 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetThroughputDailyBillingInfoRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** EIP的资源ID */ + + + + /** + * EIP的资源ID + */ @NotEmpty @UCloudParam("EIPId") private String eipId; - - /** 查询开始时间时间戳 */ + + + + /** + * 查询开始时间时间戳 + */ @NotEmpty @UCloudParam("StartTime") private Integer startTime; - - /** 查询结束时间时间戳 */ + + + + /** + * 查询结束时间时间戳 + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - + + public String getRegion() { return region; } @@ -54,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -62,7 +85,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getEIPId() { return eipId; } @@ -70,7 +93,7 @@ public String getEIPId() { public void setEIPId(String eipId) { this.eipId = eipId; } - + public Integer getStartTime() { return startTime; } @@ -78,7 +101,7 @@ public Integer getStartTime() { public void setStartTime(Integer startTime) { this.startTime = startTime; } - + public Integer getEndTime() { return endTime; } @@ -86,4 +109,14 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetThroughputDailyBillingInfoResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetThroughputDailyBillingInfoResponse.java index 3c474509..1fa4b407 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetThroughputDailyBillingInfoResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GetThroughputDailyBillingInfoResponse.java @@ -1,38 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetThroughputDailyBillingInfoResponse extends Response { - /** EIP流量计费信息,详见模型ThroughputDailyBillingInfo */ + + + /** + * EIP流量计费信息,详见模型ThroughputDailyBillingInfo + */ @SerializedName("Stats") private List stats; - - /** 计费总流量 */ + + + + + + /** + * 计费总流量 + */ @SerializedName("TotalOut") private Integer totalOut; - - /** 资源ID */ + + + + /** + * 资源ID + */ @SerializedName("EIPId") private String eipId; - + + public List getStats() { return stats; } @@ -40,7 +59,8 @@ public List getStats() { public void setStats(List stats) { this.stats = stats; } - + + public Integer getTotalOut() { return totalOut; } @@ -48,7 +68,7 @@ public Integer getTotalOut() { public void setTotalOut(Integer totalOut) { this.totalOut = totalOut; } - + public String getEIPId() { return eipId; } @@ -56,55 +76,81 @@ public String getEIPId() { public void setEIPId(String eipId) { this.eipId = eipId; } + + public static class ThroughputDailyBillingInfo extends Response { + + + /** + * 计费开始时间 + */ + @SerializedName("StartTime") + private Integer startTime; + + + + /** + * 计费结束时间 + */ + @SerializedName("EndTime") + private Integer endTime; + + + + /** + * 计费流量,单位“GB” + */ + @SerializedName("QuantityOut") + private Integer quantityOut; + + + + /** + * 是否已计费,“Yes”或者“No” + */ + @SerializedName("BillingState") + private String billingState; + + + public Integer getStartTime() { + return startTime; + } - public static class ThroughputDailyBillingInfo extends Response { + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } - /** 计费开始时间 */ - @SerializedName("StartTime") - private Integer startTime; + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public Integer getQuantityOut() { + return quantityOut; + } - /** 计费结束时间 */ - @SerializedName("EndTime") - private Integer endTime; + public void setQuantityOut(Integer quantityOut) { + this.quantityOut = quantityOut; + } + + public String getBillingState() { + return billingState; + } - /** 计费流量,单位“GB” */ - @SerializedName("QuantityOut") - private Integer quantityOut; + public void setBillingState(String billingState) { + this.billingState = billingState; + } + + } +} - /** 是否已计费,“Yes”或者“No” */ - @SerializedName("BillingState") - private String billingState; - public Integer getStartTime() { - return startTime; - } - public void setStartTime(Integer startTime) { - this.startTime = startTime; - } - public Integer getEndTime() { - return endTime; - } - public void setEndTime(Integer endTime) { - this.endTime = endTime; - } - public Integer getQuantityOut() { - return quantityOut; - } - public void setQuantityOut(Integer quantityOut) { - this.quantityOut = quantityOut; - } - public String getBillingState() { - return billingState; - } - public void setBillingState(String billingState) { - this.billingState = billingState; - } - } -} diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GrantFirewallRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GrantFirewallRequest.java index c48cb31d..88ff6992 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GrantFirewallRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GrantFirewallRequest.java @@ -1,56 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GrantFirewallRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙资源ID */ + + + + /** + * 防火墙资源ID + */ @NotEmpty @UCloudParam("FWId") private String fwId; - + + + /** - * 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; - * "fortresshost",堡垒机; - * "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,”uni“,虚拟网卡,“cube”,Cube容器实例。 + * 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,”uni“,虚拟网卡,“cube”,Cube容器实例。 */ @NotEmpty @UCloudParam("ResourceType") private String resourceType; - - /** 所应用资源ID */ + + + + /** + * 所应用资源ID + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - + + public String getRegion() { return region; } @@ -58,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -66,7 +85,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFWId() { return fwId; } @@ -74,7 +93,7 @@ public String getFWId() { public void setFWId(String fwId) { this.fwId = fwId; } - + public String getResourceType() { return resourceType; } @@ -82,7 +101,7 @@ public String getResourceType() { public void setResourceType(String resourceType) { this.resourceType = resourceType; } - + public String getResourceId() { return resourceId; } @@ -90,4 +109,14 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GrantFirewallResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GrantFirewallResponse.java index c83e7cf1..4eed467e 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GrantFirewallResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/GrantFirewallResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class GrantFirewallResponse extends Response {} +public class GrantFirewallResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPBandwidthRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPBandwidthRequest.java index 2b5243d7..46ca6ec1 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPBandwidthRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPBandwidthRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyEIPBandwidthRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 弹性IP的资源ID */ + + + + /** + * 弹性IP的资源ID + */ @NotEmpty @UCloudParam("EIPId") private String eipId; - - /** 弹性IP的外网带宽, 单位为Mbps. 各地域的带宽值范围如下:流量计费[1-200],带宽计费[1-800] */ + + + + /** + * 弹性IP的外网带宽, 单位为Mbps. 各地域的带宽值范围如下:流量计费[1-200],带宽计费[1-800] + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -54,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getEIPId() { return eipId; } @@ -62,7 +84,7 @@ public String getEIPId() { public void setEIPId(String eipId) { this.eipId = eipId; } - + public Integer getBandwidth() { return bandwidth; } @@ -70,4 +92,14 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPBandwidthResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPBandwidthResponse.java index da9a180a..ecf490b6 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPBandwidthResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPBandwidthResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyEIPBandwidthResponse extends Response {} +public class ModifyEIPBandwidthResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPWeightRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPWeightRequest.java index 735e2a43..95106f2c 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPWeightRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPWeightRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyEIPWeightRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 弹性IP的资源ID */ + + + + /** + * 弹性IP的资源ID + */ @NotEmpty @UCloudParam("EIPId") private String eipId; - + + + /** - * 外网出口权重, 范围[0-100] 取值为0时, 该弹性IP不会被使用. 取值为100时, 同主机下只会使用这个弹性IP,其他弹性IP不会被使用 - * 请勿将多个绑定在同一资源的弹性IP设置为相同权重 + * 外网出口权重, 范围[0-100] 取值为0时, 该弹性IP不会被使用. 取值为100时, 同主机下只会使用这个弹性IP,其他弹性IP不会被使用 请勿将多个绑定在同一资源的弹性IP设置为相同权重 */ @NotEmpty @UCloudParam("Weight") private Integer weight; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getEIPId() { return eipId; } @@ -65,7 +84,7 @@ public String getEIPId() { public void setEIPId(String eipId) { this.eipId = eipId; } - + public Integer getWeight() { return weight; } @@ -73,4 +92,14 @@ public Integer getWeight() { public void setWeight(Integer weight) { this.weight = weight; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPWeightResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPWeightResponse.java index de798c02..cc43a0d6 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPWeightResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ModifyEIPWeightResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyEIPWeightResponse extends Response {} +public class ModifyEIPWeightResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseEIPRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseEIPRequest.java index 18761e2a..8807aa26 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseEIPRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseEIPRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ReleaseEIPRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 弹性IP的资源ID */ + + + + /** + * 弹性IP的资源ID + */ @NotEmpty @UCloudParam("EIPId") private String eipId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getEIPId() { return eipId; } @@ -57,4 +75,14 @@ public String getEIPId() { public void setEIPId(String eipId) { this.eipId = eipId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseEIPResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseEIPResponse.java index c40e4edd..2f40d60c 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseEIPResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseEIPResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ReleaseEIPResponse extends Response {} +public class ReleaseEIPResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseShareBandwidthRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseShareBandwidthRequest.java index e2b7b9a1..6a17d0f6 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseShareBandwidthRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseShareBandwidthRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ReleaseShareBandwidthRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 共享带宽ID */ + + + + /** + * 共享带宽ID + */ @NotEmpty @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - - /** 关闭共享带宽后,各EIP恢复为的带宽值 */ + + + + /** + * 关闭共享带宽后,各EIP恢复为的带宽值 + */ @NotEmpty @UCloudParam("EIPBandwidth") private Integer eipBandwidth; - - /** 默认为 Bandwidth 带宽计费 */ + + + + /** + * 默认为 Bandwidth 带宽计费 + */ @UCloudParam("PayMode") private String payMode; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -58,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -66,7 +92,7 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } - + public Integer getEIPBandwidth() { return eipBandwidth; } @@ -74,7 +100,7 @@ public Integer getEIPBandwidth() { public void setEIPBandwidth(Integer eipBandwidth) { this.eipBandwidth = eipBandwidth; } - + public String getPayMode() { return payMode; } @@ -82,4 +108,14 @@ public String getPayMode() { public void setPayMode(String payMode) { this.payMode = payMode; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseShareBandwidthResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseShareBandwidthResponse.java index 5594c112..a12c8d3e 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseShareBandwidthResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ReleaseShareBandwidthResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ReleaseShareBandwidthResponse extends Response {} +public class ReleaseShareBandwidthResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ResizeShareBandwidthRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ResizeShareBandwidthRequest.java index d86d5860..0cabcd9c 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ResizeShareBandwidthRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ResizeShareBandwidthRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ResizeShareBandwidthRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 带宽值,单位为Mb,范围 [20-5000] (最大值受地域限制) */ + + + + /** + * 带宽值,单位为Mb,范围 [20-5000] (最大值受地域限制) + */ @NotEmpty @UCloudParam("ShareBandwidth") private Integer shareBandwidth; - - /** 共享带宽的Id */ + + + + /** + * 共享带宽的Id + */ @NotEmpty @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getShareBandwidth() { return shareBandwidth; } @@ -65,7 +84,7 @@ public Integer getShareBandwidth() { public void setShareBandwidth(Integer shareBandwidth) { this.shareBandwidth = shareBandwidth; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -73,4 +92,14 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ResizeShareBandwidthResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ResizeShareBandwidthResponse.java index 701b2cef..e25d2706 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ResizeShareBandwidthResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/ResizeShareBandwidthResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ResizeShareBandwidthResponse extends Response {} +public class ResizeShareBandwidthResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/SetEIPPayModeRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/SetEIPPayModeRequest.java index 899c905f..88834f07 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/SetEIPPayModeRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/SetEIPPayModeRequest.java @@ -1,49 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class SetEIPPayModeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 弹性IP的资源Id */ + + + + /** + * 弹性IP的资源Id + */ @NotEmpty @UCloudParam("EIPId") private String eipId; - - /** 计费模式. 枚举值:"Traffic", 流量计费模式; "Bandwidth", 带宽计费模式 */ + + + + /** + * 计费模式. 枚举值:"Traffic", 流量计费模式; "Bandwidth", 带宽计费模式 + */ @NotEmpty @UCloudParam("PayMode") private String payMode; - - /** 调整的目标带宽值, 单位Mbps. 各地域的带宽值范围如下: 流量计费[1-200],其余情况[1-800] */ + + + + /** + * 调整的目标带宽值, 单位Mbps. 各地域的带宽值范围如下: 流量计费[1-200],其余情况[1-800] + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - + + public String getRegion() { return region; } @@ -51,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -59,7 +85,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getEIPId() { return eipId; } @@ -67,7 +93,7 @@ public String getEIPId() { public void setEIPId(String eipId) { this.eipId = eipId; } - + public String getPayMode() { return payMode; } @@ -75,7 +101,7 @@ public String getPayMode() { public void setPayMode(String payMode) { this.payMode = payMode; } - + public Integer getBandwidth() { return bandwidth; } @@ -83,4 +109,14 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/SetEIPPayModeResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/SetEIPPayModeResponse.java index f72ccc1e..f8277934 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/SetEIPPayModeResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/SetEIPPayModeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class SetEIPPayModeResponse extends Response {} +public class SetEIPPayModeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UnBindEIPRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UnBindEIPRequest.java index b07bc4ff..3baa2e6e 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UnBindEIPRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UnBindEIPRequest.java @@ -1,53 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UnBindEIPRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 弹性IP的资源Id */ + + + + /** + * 弹性IP的资源Id + */ @NotEmpty @UCloudParam("EIPId") private String eipId; - + + + /** - * 弹性IP请求解绑的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: - * 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:NAT网关;udb:udb;vpngw:ipsec - * vpn;ucdr:云灾备;dbaudit:数据库审计; + * 弹性IP请求解绑的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:NAT网关;udb:udb;vpngw:ipsec vpn;ucdr:云灾备;dbaudit:数据库审计; */ @NotEmpty @UCloudParam("ResourceType") private String resourceType; - - /** 弹性IP请求解绑的资源ID */ + + + + /** + * 弹性IP请求解绑的资源ID + */ @NotEmpty @UCloudParam("ResourceId") private String resourceId; - + + public String getRegion() { return region; } @@ -55,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -63,7 +85,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getEIPId() { return eipId; } @@ -71,7 +93,7 @@ public String getEIPId() { public void setEIPId(String eipId) { this.eipId = eipId; } - + public String getResourceType() { return resourceType; } @@ -79,7 +101,7 @@ public String getResourceType() { public void setResourceType(String resourceType) { this.resourceType = resourceType; } - + public String getResourceId() { return resourceId; } @@ -87,4 +109,14 @@ public String getResourceId() { public void setResourceId(String resourceId) { this.resourceId = resourceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UnBindEIPResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UnBindEIPResponse.java index a579bd0f..887cd846 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UnBindEIPResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UnBindEIPResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UnBindEIPResponse extends Response {} +public class UnBindEIPResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateEIPAttributeRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateEIPAttributeRequest.java index cf7260ab..ac1d2e88 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateEIPAttributeRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateEIPAttributeRequest.java @@ -1,54 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateEIPAttributeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** EIP资源ID */ + + + + /** + * EIP资源ID + */ @NotEmpty @UCloudParam("EIPId") private String eipId; - - /** 名字(Name Tag Remark都为空则报错) */ + + + + /** + * 名字(Name Tag Remark都为空则报错) + */ @UCloudParam("Name") private String name; - - /** 业务 */ + + + + /** + * 业务 + */ @UCloudParam("Tag") private String tag; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - + + public String getRegion() { return region; } @@ -56,7 +83,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -64,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getEIPId() { return eipId; } @@ -72,7 +99,7 @@ public String getEIPId() { public void setEIPId(String eipId) { this.eipId = eipId; } - + public String getName() { return name; } @@ -80,7 +107,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getTag() { return tag; } @@ -88,7 +115,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -96,4 +123,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateEIPAttributeResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateEIPAttributeResponse.java index 061906d5..b4da7396 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateEIPAttributeResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateEIPAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateEIPAttributeResponse extends Response {} +public class UpdateEIPAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallAttributeRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallAttributeRequest.java index 2dbbd6cd..bb1a7724 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallAttributeRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallAttributeRequest.java @@ -1,51 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateFirewallAttributeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙资源ID */ + + + + /** + * 防火墙资源ID + */ @NotEmpty @UCloudParam("FWId") private String fwId; - - /** 防火墙名称,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 */ + + + + /** + * 防火墙名称,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 + */ @UCloudParam("Name") private String name; - - /** 防火墙业务组,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 */ + + + + /** + * 防火墙业务组,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 + */ @UCloudParam("Tag") private String tag; - - /** 防火墙备注,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 */ + + + + /** + * 防火墙备注,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 + */ @UCloudParam("Remark") private String remark; - + + public String getRegion() { return region; } @@ -53,7 +83,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -61,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFWId() { return fwId; } @@ -69,7 +99,7 @@ public String getFWId() { public void setFWId(String fwId) { this.fwId = fwId; } - + public String getName() { return name; } @@ -77,7 +107,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getTag() { return tag; } @@ -85,7 +115,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -93,4 +123,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallAttributeResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallAttributeResponse.java index de12f731..47eadf66 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallAttributeResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateFirewallAttributeResponse extends Response {} +public class UpdateFirewallAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallRequest.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallRequest.java index 065b8020..cb717029 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallRequest.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UpdateFirewallRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 防火墙资源ID */ + + + + /** + * 防火墙资源ID + */ @NotEmpty @UCloudParam("FWId") private String fwId; - + + + /** * 防火墙规则,例如:TCP|22|192.168.1.1/22|DROP|LOW|禁用22端口,第一个参数代表协议:第二个参数代表端口号,第三个参数为ip,第四个参数为ACCEPT(接受)和DROP(拒绝),第五个参数优先级:HIGH(高),MEDIUM(中),LOW(低),第六个参数为该条规则的自定义备注 */ @NotEmpty @UCloudParam("Rule") private List rule; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getFWId() { return fwId; } @@ -65,7 +84,7 @@ public String getFWId() { public void setFWId(String fwId) { this.fwId = fwId; } - + public List getRule() { return rule; } @@ -73,4 +92,14 @@ public List getRule() { public void setRule(List rule) { this.rule = rule; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallResponse.java index d9312cf2..77a8d0b0 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/UpdateFirewallResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.unet.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class UpdateFirewallResponse extends Response { - /** 防火墙id */ + + + /** + * 防火墙id + */ @SerializedName("FWId") private String fwId; - + + public String getFWId() { return fwId; } @@ -31,4 +41,14 @@ public String getFWId() { public void setFWId(String fwId) { this.fwId = fwId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index 432afff4..90deb7f4 100644 --- a/ucloud-sdk-java-upgsql/pom.xml +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-upgsql - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClient.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClient.java index 912cf648..4dd30a88 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClient.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.upgsql.client; @@ -17,422 +19,600 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.upgsql.models.BackupUPgSQLLogRequest; import cn.ucloud.upgsql.models.BackupUPgSQLLogResponse; + + + import cn.ucloud.upgsql.models.CreateUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.CreateUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.CreateUPgSQLParamTemplateRequest; import cn.ucloud.upgsql.models.CreateUPgSQLParamTemplateResponse; + + + import cn.ucloud.upgsql.models.CreateUPgSQLReadonlyRequest; import cn.ucloud.upgsql.models.CreateUPgSQLReadonlyResponse; + + + import cn.ucloud.upgsql.models.DeleteUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.DeleteUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.DeleteUPgSQLParamTemplateRequest; import cn.ucloud.upgsql.models.DeleteUPgSQLParamTemplateResponse; + + + import cn.ucloud.upgsql.models.DownloadUPgSQLParamTemplateRequest; import cn.ucloud.upgsql.models.DownloadUPgSQLParamTemplateResponse; + + + import cn.ucloud.upgsql.models.GetUPgSQLBackupStrategyRequest; import cn.ucloud.upgsql.models.GetUPgSQLBackupStrategyResponse; + + + import cn.ucloud.upgsql.models.GetUPgSQLBackupURLRequest; import cn.ucloud.upgsql.models.GetUPgSQLBackupURLResponse; + + + +import cn.ucloud.upgsql.models.GetUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.GetUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.GetUPgSQLInstanceLogRequest; import cn.ucloud.upgsql.models.GetUPgSQLInstanceLogResponse; + + + import cn.ucloud.upgsql.models.GetUPgSQLInstancePriceRequest; import cn.ucloud.upgsql.models.GetUPgSQLInstancePriceResponse; -import cn.ucloud.upgsql.models.GetUPgSQLInstanceRequest; -import cn.ucloud.upgsql.models.GetUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.GetUPgSQLParamTemplateRequest; import cn.ucloud.upgsql.models.GetUPgSQLParamTemplateResponse; + + + import cn.ucloud.upgsql.models.GetUPgSQLUpgradePriceRequest; import cn.ucloud.upgsql.models.GetUPgSQLUpgradePriceResponse; + + + import cn.ucloud.upgsql.models.ListUPgSQLBackupRequest; import cn.ucloud.upgsql.models.ListUPgSQLBackupResponse; + + + import cn.ucloud.upgsql.models.ListUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.ListUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.ListUPgSQLLogRequest; import cn.ucloud.upgsql.models.ListUPgSQLLogResponse; + + + import cn.ucloud.upgsql.models.ListUPgSQLMachineTypeRequest; import cn.ucloud.upgsql.models.ListUPgSQLMachineTypeResponse; + + + import cn.ucloud.upgsql.models.ListUPgSQLVersionRequest; import cn.ucloud.upgsql.models.ListUPgSQLVersionResponse; + + + import cn.ucloud.upgsql.models.RestartUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.RestartUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.StartUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.StartUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.StopUPgSQLCreatingReadonlyRequest; import cn.ucloud.upgsql.models.StopUPgSQLCreatingReadonlyResponse; + + + import cn.ucloud.upgsql.models.StopUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.StopUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.UpdateUPgSQLAttributeRequest; import cn.ucloud.upgsql.models.UpdateUPgSQLAttributeResponse; + + + import cn.ucloud.upgsql.models.UpdateUPgSQLBackupStrategyRequest; import cn.ucloud.upgsql.models.UpdateUPgSQLBackupStrategyResponse; + + + import cn.ucloud.upgsql.models.UpdateUPgSQLPasswordRequest; import cn.ucloud.upgsql.models.UpdateUPgSQLPasswordResponse; + + + import cn.ucloud.upgsql.models.UpgradeUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.UpgradeUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.UploadUPgSQLParamTemplateRequest; import cn.ucloud.upgsql.models.UploadUPgSQLParamTemplateResponse; -/** This client is used to call actions of **UPgSQL** service */ +/** + * This client is used to call actions of **UPgSQL** service + */ public class UPgSQLClient extends DefaultClient implements UPgSQLClientInterface { public UPgSQLClient(Config config, Credential credential) { super(config, credential); } - - /** - * BackupUPgSQLLog - 备份日志包 - * - * @param request Request object - * @throws UCloudException Exception - */ - public BackupUPgSQLLogResponse backupUPgSQLLog(BackupUPgSQLLogRequest request) - throws UCloudException { - request.setAction("BackupUPgSQLLog"); - return (BackupUPgSQLLogResponse) this.invoke(request, BackupUPgSQLLogResponse.class); - } - - /** - * CreateUPgSQLInstance - 创建PG云数据库 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUPgSQLInstanceResponse createUPgSQLInstance(CreateUPgSQLInstanceRequest request) - throws UCloudException { - request.setAction("CreateUPgSQLInstance"); - return (CreateUPgSQLInstanceResponse) - this.invoke(request, CreateUPgSQLInstanceResponse.class); - } - - /** - * CreateUPgSQLParamTemplate - 创建PG参数模板 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUPgSQLParamTemplateResponse createUPgSQLParamTemplate( - CreateUPgSQLParamTemplateRequest request) throws UCloudException { - request.setAction("CreateUPgSQLParamTemplate"); - return (CreateUPgSQLParamTemplateResponse) - this.invoke(request, CreateUPgSQLParamTemplateResponse.class); - } - - /** - * CreateUPgSQLReadonly - 创建PG从库 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUPgSQLReadonlyResponse createUPgSQLReadonly(CreateUPgSQLReadonlyRequest request) - throws UCloudException { - request.setAction("CreateUPgSQLReadonly"); - return (CreateUPgSQLReadonlyResponse) - this.invoke(request, CreateUPgSQLReadonlyResponse.class); - } - - /** - * DeleteUPgSQLInstance - 删除PG实例 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUPgSQLInstanceResponse deleteUPgSQLInstance(DeleteUPgSQLInstanceRequest request) - throws UCloudException { - request.setAction("DeleteUPgSQLInstance"); - return (DeleteUPgSQLInstanceResponse) - this.invoke(request, DeleteUPgSQLInstanceResponse.class); - } - - /** - * DeleteUPgSQLParamTemplate - 删除参数模板 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUPgSQLParamTemplateResponse deleteUPgSQLParamTemplate( - DeleteUPgSQLParamTemplateRequest request) throws UCloudException { - request.setAction("DeleteUPgSQLParamTemplate"); - return (DeleteUPgSQLParamTemplateResponse) - this.invoke(request, DeleteUPgSQLParamTemplateResponse.class); - } - - /** - * DownloadUPgSQLParamTemplate - 下载参数模板信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DownloadUPgSQLParamTemplateResponse downloadUPgSQLParamTemplate( - DownloadUPgSQLParamTemplateRequest request) throws UCloudException { - request.setAction("DownloadUPgSQLParamTemplate"); - return (DownloadUPgSQLParamTemplateResponse) - this.invoke(request, DownloadUPgSQLParamTemplateResponse.class); - } - - /** - * GetUPgSQLBackupStrategy - 获取备份策略 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPgSQLBackupStrategyResponse getUPgSQLBackupStrategy( - GetUPgSQLBackupStrategyRequest request) throws UCloudException { - request.setAction("GetUPgSQLBackupStrategy"); - return (GetUPgSQLBackupStrategyResponse) - this.invoke(request, GetUPgSQLBackupStrategyResponse.class); - } - - /** - * GetUPgSQLBackupURL - 获取备份下载地址 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPgSQLBackupURLResponse getUPgSQLBackupURL(GetUPgSQLBackupURLRequest request) - throws UCloudException { - request.setAction("GetUPgSQLBackupURL"); - return (GetUPgSQLBackupURLResponse) this.invoke(request, GetUPgSQLBackupURLResponse.class); - } - - /** - * GetUPgSQLInstance - 获取云数据库实例描述 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPgSQLInstanceResponse getUPgSQLInstance(GetUPgSQLInstanceRequest request) - throws UCloudException { - request.setAction("GetUPgSQLInstance"); - return (GetUPgSQLInstanceResponse) this.invoke(request, GetUPgSQLInstanceResponse.class); - } - - /** - * GetUPgSQLInstanceLog - 查询日志 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPgSQLInstanceLogResponse getUPgSQLInstanceLog(GetUPgSQLInstanceLogRequest request) - throws UCloudException { - request.setAction("GetUPgSQLInstanceLog"); - return (GetUPgSQLInstanceLogResponse) - this.invoke(request, GetUPgSQLInstanceLogResponse.class); - } - - /** - * GetUPgSQLInstancePrice - 获取创建PG云数据库价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPgSQLInstancePriceResponse getUPgSQLInstancePrice( - GetUPgSQLInstancePriceRequest request) throws UCloudException { - request.setAction("GetUPgSQLInstancePrice"); - return (GetUPgSQLInstancePriceResponse) - this.invoke(request, GetUPgSQLInstancePriceResponse.class); - } - - /** - * GetUPgSQLParamTemplate - 获取模板信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPgSQLParamTemplateResponse getUPgSQLParamTemplate( - GetUPgSQLParamTemplateRequest request) throws UCloudException { - request.setAction("GetUPgSQLParamTemplate"); - return (GetUPgSQLParamTemplateResponse) - this.invoke(request, GetUPgSQLParamTemplateResponse.class); - } - - /** - * GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPgSQLUpgradePriceResponse getUPgSQLUpgradePrice(GetUPgSQLUpgradePriceRequest request) - throws UCloudException { - request.setAction("GetUPgSQLUpgradePrice"); - return (GetUPgSQLUpgradePriceResponse) - this.invoke(request, GetUPgSQLUpgradePriceResponse.class); - } - - /** - * ListUPgSQLBackup - 获取备份列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUPgSQLBackupResponse listUPgSQLBackup(ListUPgSQLBackupRequest request) - throws UCloudException { - request.setAction("ListUPgSQLBackup"); - return (ListUPgSQLBackupResponse) this.invoke(request, ListUPgSQLBackupResponse.class); - } - - /** - * ListUPgSQLInstance - 获取云数据库列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUPgSQLInstanceResponse listUPgSQLInstance(ListUPgSQLInstanceRequest request) - throws UCloudException { - request.setAction("ListUPgSQLInstance"); - return (ListUPgSQLInstanceResponse) this.invoke(request, ListUPgSQLInstanceResponse.class); - } - - /** - * ListUPgSQLLog - 获取数据库日志 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUPgSQLLogResponse listUPgSQLLog(ListUPgSQLLogRequest request) - throws UCloudException { - request.setAction("ListUPgSQLLog"); - return (ListUPgSQLLogResponse) this.invoke(request, ListUPgSQLLogResponse.class); - } - - /** - * ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUPgSQLMachineTypeResponse listUPgSQLMachineType(ListUPgSQLMachineTypeRequest request) - throws UCloudException { - request.setAction("ListUPgSQLMachineType"); - return (ListUPgSQLMachineTypeResponse) - this.invoke(request, ListUPgSQLMachineTypeResponse.class); - } - - /** - * ListUPgSQLVersion - 获取UPgSQL支持版本列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListUPgSQLVersionResponse listUPgSQLVersion(ListUPgSQLVersionRequest request) - throws UCloudException { - request.setAction("ListUPgSQLVersion"); - return (ListUPgSQLVersionResponse) this.invoke(request, ListUPgSQLVersionResponse.class); - } - - /** - * RestartUPgSQLInstance - 重启PG实例 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RestartUPgSQLInstanceResponse restartUPgSQLInstance(RestartUPgSQLInstanceRequest request) - throws UCloudException { - request.setAction("RestartUPgSQLInstance"); - return (RestartUPgSQLInstanceResponse) - this.invoke(request, RestartUPgSQLInstanceResponse.class); - } - - /** - * StartUPgSQLInstance - 启动PG实例 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StartUPgSQLInstanceResponse startUPgSQLInstance(StartUPgSQLInstanceRequest request) - throws UCloudException { - request.setAction("StartUPgSQLInstance"); - return (StartUPgSQLInstanceResponse) - this.invoke(request, StartUPgSQLInstanceResponse.class); - } - - /** - * StopUPgSQLCreatingReadonly - 停止正在创建的从库 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StopUPgSQLCreatingReadonlyResponse stopUPgSQLCreatingReadonly( - StopUPgSQLCreatingReadonlyRequest request) throws UCloudException { - request.setAction("StopUPgSQLCreatingReadonly"); - return (StopUPgSQLCreatingReadonlyResponse) - this.invoke(request, StopUPgSQLCreatingReadonlyResponse.class); - } - - /** - * StopUPgSQLInstance - 关闭PG实例 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StopUPgSQLInstanceResponse stopUPgSQLInstance(StopUPgSQLInstanceRequest request) - throws UCloudException { - request.setAction("StopUPgSQLInstance"); - return (StopUPgSQLInstanceResponse) this.invoke(request, StopUPgSQLInstanceResponse.class); - } - - /** - * UpdateUPgSQLAttribute - 更新数据库属性 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUPgSQLAttributeResponse updateUPgSQLAttribute(UpdateUPgSQLAttributeRequest request) - throws UCloudException { - request.setAction("UpdateUPgSQLAttribute"); - return (UpdateUPgSQLAttributeResponse) - this.invoke(request, UpdateUPgSQLAttributeResponse.class); - } - - /** - * UpdateUPgSQLBackupStrategy - 修改备份策略 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUPgSQLBackupStrategyResponse updateUPgSQLBackupStrategy( - UpdateUPgSQLBackupStrategyRequest request) throws UCloudException { - request.setAction("UpdateUPgSQLBackupStrategy"); - return (UpdateUPgSQLBackupStrategyResponse) - this.invoke(request, UpdateUPgSQLBackupStrategyResponse.class); - } - - /** - * UpdateUPgSQLPassword - 更新数据库密码 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUPgSQLPasswordResponse updateUPgSQLPassword(UpdateUPgSQLPasswordRequest request) - throws UCloudException { - request.setAction("UpdateUPgSQLPassword"); - return (UpdateUPgSQLPasswordResponse) - this.invoke(request, UpdateUPgSQLPasswordResponse.class); - } - - /** - * UpgradeUPgSQLInstance - 硬件规格升降级 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpgradeUPgSQLInstanceResponse upgradeUPgSQLInstance(UpgradeUPgSQLInstanceRequest request) - throws UCloudException { - request.setAction("UpgradeUPgSQLInstance"); - return (UpgradeUPgSQLInstanceResponse) - this.invoke(request, UpgradeUPgSQLInstanceResponse.class); - } - - /** - * UploadUPgSQLParamTemplate - 上传参数模板 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UploadUPgSQLParamTemplateResponse uploadUPgSQLParamTemplate( - UploadUPgSQLParamTemplateRequest request) throws UCloudException { - request.setAction("UploadUPgSQLParamTemplate"); - return (UploadUPgSQLParamTemplateResponse) - this.invoke(request, UploadUPgSQLParamTemplateResponse.class); - } + + + + + + + /** + * BackupUPgSQLLog - 备份日志包 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUPgSQLLogResponse backupUPgSQLLog(BackupUPgSQLLogRequest request) throws UCloudException { + request.setAction("BackupUPgSQLLog"); + return (BackupUPgSQLLogResponse) this.invoke(request, BackupUPgSQLLogResponse.class); + } + + + + + + + /** + * CreateUPgSQLInstance - 创建PG云数据库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLInstanceResponse createUPgSQLInstance(CreateUPgSQLInstanceRequest request) throws UCloudException { + request.setAction("CreateUPgSQLInstance"); + return (CreateUPgSQLInstanceResponse) this.invoke(request, CreateUPgSQLInstanceResponse.class); + } + + + + + + + /** + * CreateUPgSQLParamTemplate - 创建PG参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLParamTemplateResponse createUPgSQLParamTemplate(CreateUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("CreateUPgSQLParamTemplate"); + return (CreateUPgSQLParamTemplateResponse) this.invoke(request, CreateUPgSQLParamTemplateResponse.class); + } + + + + + + + /** + * CreateUPgSQLReadonly - 创建PG从库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLReadonlyResponse createUPgSQLReadonly(CreateUPgSQLReadonlyRequest request) throws UCloudException { + request.setAction("CreateUPgSQLReadonly"); + return (CreateUPgSQLReadonlyResponse) this.invoke(request, CreateUPgSQLReadonlyResponse.class); + } + + + + + + + /** + * DeleteUPgSQLInstance - 删除PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPgSQLInstanceResponse deleteUPgSQLInstance(DeleteUPgSQLInstanceRequest request) throws UCloudException { + request.setAction("DeleteUPgSQLInstance"); + return (DeleteUPgSQLInstanceResponse) this.invoke(request, DeleteUPgSQLInstanceResponse.class); + } + + + + + + + /** + * DeleteUPgSQLParamTemplate - 删除参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPgSQLParamTemplateResponse deleteUPgSQLParamTemplate(DeleteUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("DeleteUPgSQLParamTemplate"); + return (DeleteUPgSQLParamTemplateResponse) this.invoke(request, DeleteUPgSQLParamTemplateResponse.class); + } + + + + + + + /** + * DownloadUPgSQLParamTemplate - 下载参数模板信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadUPgSQLParamTemplateResponse downloadUPgSQLParamTemplate(DownloadUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("DownloadUPgSQLParamTemplate"); + return (DownloadUPgSQLParamTemplateResponse) this.invoke(request, DownloadUPgSQLParamTemplateResponse.class); + } + + + + + + + /** + * GetUPgSQLBackupStrategy - 获取备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLBackupStrategyResponse getUPgSQLBackupStrategy(GetUPgSQLBackupStrategyRequest request) throws UCloudException { + request.setAction("GetUPgSQLBackupStrategy"); + return (GetUPgSQLBackupStrategyResponse) this.invoke(request, GetUPgSQLBackupStrategyResponse.class); + } + + + + + + + /** + * GetUPgSQLBackupURL - 获取备份下载地址 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLBackupURLResponse getUPgSQLBackupURL(GetUPgSQLBackupURLRequest request) throws UCloudException { + request.setAction("GetUPgSQLBackupURL"); + return (GetUPgSQLBackupURLResponse) this.invoke(request, GetUPgSQLBackupURLResponse.class); + } + + + + + + + /** + * GetUPgSQLInstance - 获取云数据库实例描述 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceResponse getUPgSQLInstance(GetUPgSQLInstanceRequest request) throws UCloudException { + request.setAction("GetUPgSQLInstance"); + return (GetUPgSQLInstanceResponse) this.invoke(request, GetUPgSQLInstanceResponse.class); + } + + + + + + + /** + * GetUPgSQLInstanceLog - 查询日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceLogResponse getUPgSQLInstanceLog(GetUPgSQLInstanceLogRequest request) throws UCloudException { + request.setAction("GetUPgSQLInstanceLog"); + return (GetUPgSQLInstanceLogResponse) this.invoke(request, GetUPgSQLInstanceLogResponse.class); + } + + + + + + + /** + * GetUPgSQLInstancePrice - 获取创建PG云数据库价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstancePriceResponse getUPgSQLInstancePrice(GetUPgSQLInstancePriceRequest request) throws UCloudException { + request.setAction("GetUPgSQLInstancePrice"); + return (GetUPgSQLInstancePriceResponse) this.invoke(request, GetUPgSQLInstancePriceResponse.class); + } + + + + + + + /** + * GetUPgSQLParamTemplate - 获取模板信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLParamTemplateResponse getUPgSQLParamTemplate(GetUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("GetUPgSQLParamTemplate"); + return (GetUPgSQLParamTemplateResponse) this.invoke(request, GetUPgSQLParamTemplateResponse.class); + } + + + + + + + /** + * GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLUpgradePriceResponse getUPgSQLUpgradePrice(GetUPgSQLUpgradePriceRequest request) throws UCloudException { + request.setAction("GetUPgSQLUpgradePrice"); + return (GetUPgSQLUpgradePriceResponse) this.invoke(request, GetUPgSQLUpgradePriceResponse.class); + } + + + + + + + /** + * ListUPgSQLBackup - 获取备份列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLBackupResponse listUPgSQLBackup(ListUPgSQLBackupRequest request) throws UCloudException { + request.setAction("ListUPgSQLBackup"); + return (ListUPgSQLBackupResponse) this.invoke(request, ListUPgSQLBackupResponse.class); + } + + + + + + + /** + * ListUPgSQLInstance - 获取云数据库列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLInstanceResponse listUPgSQLInstance(ListUPgSQLInstanceRequest request) throws UCloudException { + request.setAction("ListUPgSQLInstance"); + return (ListUPgSQLInstanceResponse) this.invoke(request, ListUPgSQLInstanceResponse.class); + } + + + + + + + /** + * ListUPgSQLLog - 获取数据库日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLLogResponse listUPgSQLLog(ListUPgSQLLogRequest request) throws UCloudException { + request.setAction("ListUPgSQLLog"); + return (ListUPgSQLLogResponse) this.invoke(request, ListUPgSQLLogResponse.class); + } + + + + + + + /** + * ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLMachineTypeResponse listUPgSQLMachineType(ListUPgSQLMachineTypeRequest request) throws UCloudException { + request.setAction("ListUPgSQLMachineType"); + return (ListUPgSQLMachineTypeResponse) this.invoke(request, ListUPgSQLMachineTypeResponse.class); + } + + + + + + + /** + * ListUPgSQLVersion - 获取UPgSQL支持版本列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLVersionResponse listUPgSQLVersion(ListUPgSQLVersionRequest request) throws UCloudException { + request.setAction("ListUPgSQLVersion"); + return (ListUPgSQLVersionResponse) this.invoke(request, ListUPgSQLVersionResponse.class); + } + + + + + + + /** + * RestartUPgSQLInstance - 重启PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestartUPgSQLInstanceResponse restartUPgSQLInstance(RestartUPgSQLInstanceRequest request) throws UCloudException { + request.setAction("RestartUPgSQLInstance"); + return (RestartUPgSQLInstanceResponse) this.invoke(request, RestartUPgSQLInstanceResponse.class); + } + + + + + + + /** + * StartUPgSQLInstance - 启动PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartUPgSQLInstanceResponse startUPgSQLInstance(StartUPgSQLInstanceRequest request) throws UCloudException { + request.setAction("StartUPgSQLInstance"); + return (StartUPgSQLInstanceResponse) this.invoke(request, StartUPgSQLInstanceResponse.class); + } + + + + + + + /** + * StopUPgSQLCreatingReadonly - 停止正在创建的从库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUPgSQLCreatingReadonlyResponse stopUPgSQLCreatingReadonly(StopUPgSQLCreatingReadonlyRequest request) throws UCloudException { + request.setAction("StopUPgSQLCreatingReadonly"); + return (StopUPgSQLCreatingReadonlyResponse) this.invoke(request, StopUPgSQLCreatingReadonlyResponse.class); + } + + + + + + + /** + * StopUPgSQLInstance - 关闭PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUPgSQLInstanceResponse stopUPgSQLInstance(StopUPgSQLInstanceRequest request) throws UCloudException { + request.setAction("StopUPgSQLInstance"); + return (StopUPgSQLInstanceResponse) this.invoke(request, StopUPgSQLInstanceResponse.class); + } + + + + + + + /** + * UpdateUPgSQLAttribute - 更新数据库属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLAttributeResponse updateUPgSQLAttribute(UpdateUPgSQLAttributeRequest request) throws UCloudException { + request.setAction("UpdateUPgSQLAttribute"); + return (UpdateUPgSQLAttributeResponse) this.invoke(request, UpdateUPgSQLAttributeResponse.class); + } + + + + + + + /** + * UpdateUPgSQLBackupStrategy - 修改备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLBackupStrategyResponse updateUPgSQLBackupStrategy(UpdateUPgSQLBackupStrategyRequest request) throws UCloudException { + request.setAction("UpdateUPgSQLBackupStrategy"); + return (UpdateUPgSQLBackupStrategyResponse) this.invoke(request, UpdateUPgSQLBackupStrategyResponse.class); + } + + + + + + + /** + * UpdateUPgSQLPassword - 更新数据库密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLPasswordResponse updateUPgSQLPassword(UpdateUPgSQLPasswordRequest request) throws UCloudException { + request.setAction("UpdateUPgSQLPassword"); + return (UpdateUPgSQLPasswordResponse) this.invoke(request, UpdateUPgSQLPasswordResponse.class); + } + + + + + + + /** + * UpgradeUPgSQLInstance - 硬件规格升降级 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpgradeUPgSQLInstanceResponse upgradeUPgSQLInstance(UpgradeUPgSQLInstanceRequest request) throws UCloudException { + request.setAction("UpgradeUPgSQLInstance"); + return (UpgradeUPgSQLInstanceResponse) this.invoke(request, UpgradeUPgSQLInstanceResponse.class); + } + + + + + + + /** + * UploadUPgSQLParamTemplate - 上传参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UploadUPgSQLParamTemplateResponse uploadUPgSQLParamTemplate(UploadUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("UploadUPgSQLParamTemplate"); + return (UploadUPgSQLParamTemplateResponse) this.invoke(request, UploadUPgSQLParamTemplateResponse.class); + } } diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClientInterface.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClientInterface.java index 6d6b2800..9bb6f8c8 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClientInterface.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClientInterface.java @@ -1,224 +1,381 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.upgsql.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.upgsql.models.BackupUPgSQLLogRequest; import cn.ucloud.upgsql.models.BackupUPgSQLLogResponse; + + + import cn.ucloud.upgsql.models.CreateUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.CreateUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.CreateUPgSQLParamTemplateRequest; import cn.ucloud.upgsql.models.CreateUPgSQLParamTemplateResponse; + + + import cn.ucloud.upgsql.models.CreateUPgSQLReadonlyRequest; import cn.ucloud.upgsql.models.CreateUPgSQLReadonlyResponse; + + + import cn.ucloud.upgsql.models.DeleteUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.DeleteUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.DeleteUPgSQLParamTemplateRequest; import cn.ucloud.upgsql.models.DeleteUPgSQLParamTemplateResponse; + + + import cn.ucloud.upgsql.models.DownloadUPgSQLParamTemplateRequest; import cn.ucloud.upgsql.models.DownloadUPgSQLParamTemplateResponse; + + + import cn.ucloud.upgsql.models.GetUPgSQLBackupStrategyRequest; import cn.ucloud.upgsql.models.GetUPgSQLBackupStrategyResponse; + + + import cn.ucloud.upgsql.models.GetUPgSQLBackupURLRequest; import cn.ucloud.upgsql.models.GetUPgSQLBackupURLResponse; + + + +import cn.ucloud.upgsql.models.GetUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.GetUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.GetUPgSQLInstanceLogRequest; import cn.ucloud.upgsql.models.GetUPgSQLInstanceLogResponse; + + + import cn.ucloud.upgsql.models.GetUPgSQLInstancePriceRequest; import cn.ucloud.upgsql.models.GetUPgSQLInstancePriceResponse; -import cn.ucloud.upgsql.models.GetUPgSQLInstanceRequest; -import cn.ucloud.upgsql.models.GetUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.GetUPgSQLParamTemplateRequest; import cn.ucloud.upgsql.models.GetUPgSQLParamTemplateResponse; + + + import cn.ucloud.upgsql.models.GetUPgSQLUpgradePriceRequest; import cn.ucloud.upgsql.models.GetUPgSQLUpgradePriceResponse; + + + import cn.ucloud.upgsql.models.ListUPgSQLBackupRequest; import cn.ucloud.upgsql.models.ListUPgSQLBackupResponse; + + + import cn.ucloud.upgsql.models.ListUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.ListUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.ListUPgSQLLogRequest; import cn.ucloud.upgsql.models.ListUPgSQLLogResponse; + + + import cn.ucloud.upgsql.models.ListUPgSQLMachineTypeRequest; import cn.ucloud.upgsql.models.ListUPgSQLMachineTypeResponse; + + + import cn.ucloud.upgsql.models.ListUPgSQLVersionRequest; import cn.ucloud.upgsql.models.ListUPgSQLVersionResponse; + + + import cn.ucloud.upgsql.models.RestartUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.RestartUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.StartUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.StartUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.StopUPgSQLCreatingReadonlyRequest; import cn.ucloud.upgsql.models.StopUPgSQLCreatingReadonlyResponse; + + + import cn.ucloud.upgsql.models.StopUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.StopUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.UpdateUPgSQLAttributeRequest; import cn.ucloud.upgsql.models.UpdateUPgSQLAttributeResponse; + + + import cn.ucloud.upgsql.models.UpdateUPgSQLBackupStrategyRequest; import cn.ucloud.upgsql.models.UpdateUPgSQLBackupStrategyResponse; + + + import cn.ucloud.upgsql.models.UpdateUPgSQLPasswordRequest; import cn.ucloud.upgsql.models.UpdateUPgSQLPasswordResponse; + + + import cn.ucloud.upgsql.models.UpgradeUPgSQLInstanceRequest; import cn.ucloud.upgsql.models.UpgradeUPgSQLInstanceResponse; + + + import cn.ucloud.upgsql.models.UploadUPgSQLParamTemplateRequest; import cn.ucloud.upgsql.models.UploadUPgSQLParamTemplateResponse; -/** This client is used to call actions of **UPgSQL** service */ +/** + * This client is used to call actions of **UPgSQL** service + */ public interface UPgSQLClientInterface extends Client { - + + + + + + /** * BackupUPgSQLLog - 备份日志包 * * @param request Request object * @throws UCloudException Exception */ - public BackupUPgSQLLogResponse backupUPgSQLLog(BackupUPgSQLLogRequest request) - throws UCloudException; - + public BackupUPgSQLLogResponse backupUPgSQLLog(BackupUPgSQLLogRequest request) throws UCloudException; + + + + + + /** * CreateUPgSQLInstance - 创建PG云数据库 * * @param request Request object * @throws UCloudException Exception */ - public CreateUPgSQLInstanceResponse createUPgSQLInstance(CreateUPgSQLInstanceRequest request) - throws UCloudException; - + public CreateUPgSQLInstanceResponse createUPgSQLInstance(CreateUPgSQLInstanceRequest request) throws UCloudException; + + + + + + /** * CreateUPgSQLParamTemplate - 创建PG参数模板 * * @param request Request object * @throws UCloudException Exception */ - public CreateUPgSQLParamTemplateResponse createUPgSQLParamTemplate( - CreateUPgSQLParamTemplateRequest request) throws UCloudException; - + public CreateUPgSQLParamTemplateResponse createUPgSQLParamTemplate(CreateUPgSQLParamTemplateRequest request) throws UCloudException; + + + + + + /** * CreateUPgSQLReadonly - 创建PG从库 * * @param request Request object * @throws UCloudException Exception */ - public CreateUPgSQLReadonlyResponse createUPgSQLReadonly(CreateUPgSQLReadonlyRequest request) - throws UCloudException; - + public CreateUPgSQLReadonlyResponse createUPgSQLReadonly(CreateUPgSQLReadonlyRequest request) throws UCloudException; + + + + + + /** * DeleteUPgSQLInstance - 删除PG实例 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUPgSQLInstanceResponse deleteUPgSQLInstance(DeleteUPgSQLInstanceRequest request) - throws UCloudException; - + public DeleteUPgSQLInstanceResponse deleteUPgSQLInstance(DeleteUPgSQLInstanceRequest request) throws UCloudException; + + + + + + /** * DeleteUPgSQLParamTemplate - 删除参数模板 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUPgSQLParamTemplateResponse deleteUPgSQLParamTemplate( - DeleteUPgSQLParamTemplateRequest request) throws UCloudException; - + public DeleteUPgSQLParamTemplateResponse deleteUPgSQLParamTemplate(DeleteUPgSQLParamTemplateRequest request) throws UCloudException; + + + + + + /** * DownloadUPgSQLParamTemplate - 下载参数模板信息 * * @param request Request object * @throws UCloudException Exception */ - public DownloadUPgSQLParamTemplateResponse downloadUPgSQLParamTemplate( - DownloadUPgSQLParamTemplateRequest request) throws UCloudException; - + public DownloadUPgSQLParamTemplateResponse downloadUPgSQLParamTemplate(DownloadUPgSQLParamTemplateRequest request) throws UCloudException; + + + + + + /** * GetUPgSQLBackupStrategy - 获取备份策略 * * @param request Request object * @throws UCloudException Exception */ - public GetUPgSQLBackupStrategyResponse getUPgSQLBackupStrategy( - GetUPgSQLBackupStrategyRequest request) throws UCloudException; - + public GetUPgSQLBackupStrategyResponse getUPgSQLBackupStrategy(GetUPgSQLBackupStrategyRequest request) throws UCloudException; + + + + + + /** * GetUPgSQLBackupURL - 获取备份下载地址 * * @param request Request object * @throws UCloudException Exception */ - public GetUPgSQLBackupURLResponse getUPgSQLBackupURL(GetUPgSQLBackupURLRequest request) - throws UCloudException; - + public GetUPgSQLBackupURLResponse getUPgSQLBackupURL(GetUPgSQLBackupURLRequest request) throws UCloudException; + + + + + + /** * GetUPgSQLInstance - 获取云数据库实例描述 * * @param request Request object * @throws UCloudException Exception */ - public GetUPgSQLInstanceResponse getUPgSQLInstance(GetUPgSQLInstanceRequest request) - throws UCloudException; - + public GetUPgSQLInstanceResponse getUPgSQLInstance(GetUPgSQLInstanceRequest request) throws UCloudException; + + + + + + /** * GetUPgSQLInstanceLog - 查询日志 * * @param request Request object * @throws UCloudException Exception */ - public GetUPgSQLInstanceLogResponse getUPgSQLInstanceLog(GetUPgSQLInstanceLogRequest request) - throws UCloudException; - + public GetUPgSQLInstanceLogResponse getUPgSQLInstanceLog(GetUPgSQLInstanceLogRequest request) throws UCloudException; + + + + + + /** * GetUPgSQLInstancePrice - 获取创建PG云数据库价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUPgSQLInstancePriceResponse getUPgSQLInstancePrice( - GetUPgSQLInstancePriceRequest request) throws UCloudException; - + public GetUPgSQLInstancePriceResponse getUPgSQLInstancePrice(GetUPgSQLInstancePriceRequest request) throws UCloudException; + + + + + + /** * GetUPgSQLParamTemplate - 获取模板信息 * * @param request Request object * @throws UCloudException Exception */ - public GetUPgSQLParamTemplateResponse getUPgSQLParamTemplate( - GetUPgSQLParamTemplateRequest request) throws UCloudException; - + public GetUPgSQLParamTemplateResponse getUPgSQLParamTemplate(GetUPgSQLParamTemplateRequest request) throws UCloudException; + + + + + + /** - * GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格 + * GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUPgSQLUpgradePriceResponse getUPgSQLUpgradePrice(GetUPgSQLUpgradePriceRequest request) - throws UCloudException; - + public GetUPgSQLUpgradePriceResponse getUPgSQLUpgradePrice(GetUPgSQLUpgradePriceRequest request) throws UCloudException; + + + + + + /** * ListUPgSQLBackup - 获取备份列表 * * @param request Request object * @throws UCloudException Exception */ - public ListUPgSQLBackupResponse listUPgSQLBackup(ListUPgSQLBackupRequest request) - throws UCloudException; - + public ListUPgSQLBackupResponse listUPgSQLBackup(ListUPgSQLBackupRequest request) throws UCloudException; + + + + + + /** * ListUPgSQLInstance - 获取云数据库列表 * * @param request Request object * @throws UCloudException Exception */ - public ListUPgSQLInstanceResponse listUPgSQLInstance(ListUPgSQLInstanceRequest request) - throws UCloudException; - + public ListUPgSQLInstanceResponse listUPgSQLInstance(ListUPgSQLInstanceRequest request) throws UCloudException; + + + + + + /** * ListUPgSQLLog - 获取数据库日志 * @@ -226,103 +383,147 @@ public ListUPgSQLInstanceResponse listUPgSQLInstance(ListUPgSQLInstanceRequest r * @throws UCloudException Exception */ public ListUPgSQLLogResponse listUPgSQLLog(ListUPgSQLLogRequest request) throws UCloudException; - + + + + + + /** * ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表 * * @param request Request object * @throws UCloudException Exception */ - public ListUPgSQLMachineTypeResponse listUPgSQLMachineType(ListUPgSQLMachineTypeRequest request) - throws UCloudException; - + public ListUPgSQLMachineTypeResponse listUPgSQLMachineType(ListUPgSQLMachineTypeRequest request) throws UCloudException; + + + + + + /** * ListUPgSQLVersion - 获取UPgSQL支持版本列表 * * @param request Request object * @throws UCloudException Exception */ - public ListUPgSQLVersionResponse listUPgSQLVersion(ListUPgSQLVersionRequest request) - throws UCloudException; - + public ListUPgSQLVersionResponse listUPgSQLVersion(ListUPgSQLVersionRequest request) throws UCloudException; + + + + + + /** * RestartUPgSQLInstance - 重启PG实例 * * @param request Request object * @throws UCloudException Exception */ - public RestartUPgSQLInstanceResponse restartUPgSQLInstance(RestartUPgSQLInstanceRequest request) - throws UCloudException; - + public RestartUPgSQLInstanceResponse restartUPgSQLInstance(RestartUPgSQLInstanceRequest request) throws UCloudException; + + + + + + /** * StartUPgSQLInstance - 启动PG实例 * * @param request Request object * @throws UCloudException Exception */ - public StartUPgSQLInstanceResponse startUPgSQLInstance(StartUPgSQLInstanceRequest request) - throws UCloudException; - + public StartUPgSQLInstanceResponse startUPgSQLInstance(StartUPgSQLInstanceRequest request) throws UCloudException; + + + + + + /** * StopUPgSQLCreatingReadonly - 停止正在创建的从库 * * @param request Request object * @throws UCloudException Exception */ - public StopUPgSQLCreatingReadonlyResponse stopUPgSQLCreatingReadonly( - StopUPgSQLCreatingReadonlyRequest request) throws UCloudException; - + public StopUPgSQLCreatingReadonlyResponse stopUPgSQLCreatingReadonly(StopUPgSQLCreatingReadonlyRequest request) throws UCloudException; + + + + + + /** * StopUPgSQLInstance - 关闭PG实例 * * @param request Request object * @throws UCloudException Exception */ - public StopUPgSQLInstanceResponse stopUPgSQLInstance(StopUPgSQLInstanceRequest request) - throws UCloudException; - + public StopUPgSQLInstanceResponse stopUPgSQLInstance(StopUPgSQLInstanceRequest request) throws UCloudException; + + + + + + /** * UpdateUPgSQLAttribute - 更新数据库属性 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUPgSQLAttributeResponse updateUPgSQLAttribute(UpdateUPgSQLAttributeRequest request) - throws UCloudException; - + public UpdateUPgSQLAttributeResponse updateUPgSQLAttribute(UpdateUPgSQLAttributeRequest request) throws UCloudException; + + + + + + /** * UpdateUPgSQLBackupStrategy - 修改备份策略 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUPgSQLBackupStrategyResponse updateUPgSQLBackupStrategy( - UpdateUPgSQLBackupStrategyRequest request) throws UCloudException; - + public UpdateUPgSQLBackupStrategyResponse updateUPgSQLBackupStrategy(UpdateUPgSQLBackupStrategyRequest request) throws UCloudException; + + + + + + /** * UpdateUPgSQLPassword - 更新数据库密码 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUPgSQLPasswordResponse updateUPgSQLPassword(UpdateUPgSQLPasswordRequest request) - throws UCloudException; - + public UpdateUPgSQLPasswordResponse updateUPgSQLPassword(UpdateUPgSQLPasswordRequest request) throws UCloudException; + + + + + + /** * UpgradeUPgSQLInstance - 硬件规格升降级 * * @param request Request object * @throws UCloudException Exception */ - public UpgradeUPgSQLInstanceResponse upgradeUPgSQLInstance(UpgradeUPgSQLInstanceRequest request) - throws UCloudException; - + public UpgradeUPgSQLInstanceResponse upgradeUPgSQLInstance(UpgradeUPgSQLInstanceRequest request) throws UCloudException; + + + + + + /** * UploadUPgSQLParamTemplate - 上传参数模板 * * @param request Request object * @throws UCloudException Exception */ - public UploadUPgSQLParamTemplateResponse uploadUPgSQLParamTemplate( - UploadUPgSQLParamTemplateRequest request) throws UCloudException; + public UploadUPgSQLParamTemplateResponse uploadUPgSQLParamTemplate(UploadUPgSQLParamTemplateRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/BackupUPgSQLLogRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/BackupUPgSQLLogRequest.java index 53186c52..79ec69fc 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/BackupUPgSQLLogRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/BackupUPgSQLLogRequest.java @@ -1,69 +1,108 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class BackupUPgSQLLogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 备份导出文件名称 */ + + + + /** + * 备份导出文件名称 + */ @NotEmpty @UCloudParam("BackupName") private String backupName; - - /** 备份查询结果文件名称 */ + + + + /** + * 备份查询结果文件名称 + */ @NotEmpty @UCloudParam("BackupFile") private String backupFile; - - /** 资源ID */ + + + + /** + * 资源ID + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - - /** 日志类型:slow(慢日志),error(错误日志) */ + + + + /** + * 日志类型:slow(慢日志),error(错误日志) + */ @UCloudParam("LogType") private String logType; - - /** 日志开始时间 */ + + + + /** + * 日志开始时间 + */ @UCloudParam("BeginTime") private Integer beginTime; - - /** 日志结束时间 */ + + + + /** + * 日志结束时间 + */ @UCloudParam("EndTime") private Integer endTime; - + + public String getRegion() { return region; } @@ -71,7 +110,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -79,7 +118,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -87,7 +126,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getBackupName() { return backupName; } @@ -95,7 +134,7 @@ public String getBackupName() { public void setBackupName(String backupName) { this.backupName = backupName; } - + public String getBackupFile() { return backupFile; } @@ -103,7 +142,7 @@ public String getBackupFile() { public void setBackupFile(String backupFile) { this.backupFile = backupFile; } - + public String getInstanceID() { return instanceID; } @@ -111,7 +150,7 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } - + public String getLogType() { return logType; } @@ -119,7 +158,7 @@ public String getLogType() { public void setLogType(String logType) { this.logType = logType; } - + public Integer getBeginTime() { return beginTime; } @@ -127,7 +166,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -135,4 +174,14 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/BackupUPgSQLLogResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/BackupUPgSQLLogResponse.java index af853359..1369dbcb 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/BackupUPgSQLLogResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/BackupUPgSQLLogResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class BackupUPgSQLLogResponse extends Response {} +public class BackupUPgSQLLogResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLInstanceRequest.java index fc959c9b..acd319e2 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLInstanceRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLInstanceRequest.java @@ -1,91 +1,146 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUPgSQLInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例名称,至少6位 */ + + + + /** + * 实例名称,至少6位 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** PostgreSQL的版本,pg10.4:postgresql-10.4,pg13.4:postgresql-13.4 */ + + + + /** + * PostgreSQL的版本,pg10.4:postgresql-10.4,pg13.4:postgresql-13.4 + */ @NotEmpty @UCloudParam("DBVersion") private String dbVersion; - - /** DB实例使用的配置参数组id */ + + + + /** + * DB实例使用的配置参数组id + */ @NotEmpty @UCloudParam("ParamGroupID") private Integer paramGroupID; - - /** 管理员密码 */ + + + + /** + * 管理员密码 + */ @NotEmpty @UCloudParam("AdminPassword") private String adminPassword; - - /** 端口默认为5432 */ + + + + /** + * 端口默认为5432 + */ @NotEmpty @UCloudParam("Port") private Integer port; - - /** 磁盘空间(GB) */ + + + + /** + * 磁盘空间(GB) + */ @NotEmpty @UCloudParam("DiskSpace") private String diskSpace; - - /** 机器配置类型,2核4G的机器:o.pgsql2m.medium */ + + + + /** + * 机器配置类型,2核4G的机器:o.pgsql2m.medium + */ @NotEmpty @UCloudParam("MachineType") private String machineType; - - /** 子网ID */ + + + + /** + * 子网ID + */ @NotEmpty @UCloudParam("SubnetID") private String subnetID; - - /** VPC的ID */ + + + + /** + * VPC的ID + */ @NotEmpty @UCloudParam("VPCID") private String vpcid; - - /** UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 默认是"Normal" */ + + + + /** + * UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 默认是"Normal" + */ @UCloudParam("InstanceMode") private String instanceMode; - + + public String getRegion() { return region; } @@ -93,7 +148,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -101,7 +156,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -109,7 +164,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -117,7 +172,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getDBVersion() { return dbVersion; } @@ -125,7 +180,7 @@ public String getDBVersion() { public void setDBVersion(String dbVersion) { this.dbVersion = dbVersion; } - + public Integer getParamGroupID() { return paramGroupID; } @@ -133,7 +188,7 @@ public Integer getParamGroupID() { public void setParamGroupID(Integer paramGroupID) { this.paramGroupID = paramGroupID; } - + public String getAdminPassword() { return adminPassword; } @@ -141,7 +196,7 @@ public String getAdminPassword() { public void setAdminPassword(String adminPassword) { this.adminPassword = adminPassword; } - + public Integer getPort() { return port; } @@ -149,7 +204,7 @@ public Integer getPort() { public void setPort(Integer port) { this.port = port; } - + public String getDiskSpace() { return diskSpace; } @@ -157,7 +212,7 @@ public String getDiskSpace() { public void setDiskSpace(String diskSpace) { this.diskSpace = diskSpace; } - + public String getMachineType() { return machineType; } @@ -165,7 +220,7 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } - + public String getSubnetID() { return subnetID; } @@ -173,7 +228,7 @@ public String getSubnetID() { public void setSubnetID(String subnetID) { this.subnetID = subnetID; } - + public String getVPCID() { return vpcid; } @@ -181,7 +236,7 @@ public String getVPCID() { public void setVPCID(String vpcid) { this.vpcid = vpcid; } - + public String getInstanceMode() { return instanceMode; } @@ -189,4 +244,14 @@ public String getInstanceMode() { public void setInstanceMode(String instanceMode) { this.instanceMode = instanceMode; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLInstanceResponse.java index fc89d140..03baa874 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLInstanceResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLInstanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUPgSQLInstanceResponse extends Response { - /** 资源ID */ + + + /** + * 资源ID + */ @SerializedName("InstanceID") private String instanceID; - + + public String getInstanceID() { return instanceID; } @@ -31,4 +41,14 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLParamTemplateRequest.java index 4a28f58e..aeffd759 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLParamTemplateRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLParamTemplateRequest.java @@ -1,61 +1,92 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUPgSQLParamTemplateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 模板名称 */ + + + + /** + * 模板名称 + */ @NotEmpty @UCloudParam("GroupName") private String groupName; - - /** 基准模板 */ + + + + /** + * 基准模板 + */ @NotEmpty @UCloudParam("SrcGroupID") private Integer srcGroupID; - - /** 什么版本,以及类型的DB */ + + + + /** + * 什么版本,以及类型的DB + */ @NotEmpty @UCloudParam("DBVersion") private String dbVersion; - - /** 描述信息 */ + + + + /** + * 描述信息 + */ @UCloudParam("Description") private String description; - + + public String getRegion() { return region; } @@ -63,7 +94,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -71,7 +102,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -79,7 +110,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupName() { return groupName; } @@ -87,7 +118,7 @@ public String getGroupName() { public void setGroupName(String groupName) { this.groupName = groupName; } - + public Integer getSrcGroupID() { return srcGroupID; } @@ -95,7 +126,7 @@ public Integer getSrcGroupID() { public void setSrcGroupID(Integer srcGroupID) { this.srcGroupID = srcGroupID; } - + public String getDBVersion() { return dbVersion; } @@ -103,7 +134,7 @@ public String getDBVersion() { public void setDBVersion(String dbVersion) { this.dbVersion = dbVersion; } - + public String getDescription() { return description; } @@ -111,4 +142,14 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLParamTemplateResponse.java index b6f9bf02..0a650a18 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLParamTemplateResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLParamTemplateResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUPgSQLParamTemplateResponse extends Response { - /** 创建的模板ID */ + + + /** + * 创建的模板ID + */ @SerializedName("GroupID") private Integer groupID; - + + public Integer getGroupID() { return groupID; } @@ -31,4 +41,14 @@ public Integer getGroupID() { public void setGroupID(Integer groupID) { this.groupID = groupID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyRequest.java index 65485ed4..67a24159 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyRequest.java @@ -1,75 +1,119 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUPgSQLReadonlyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** Db名称 */ + + + + /** + * Db名称 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** DB端口 */ + + + + /** + * DB端口 + */ @NotEmpty @UCloudParam("Port") private Integer port; - - /** 磁盘空间 */ + + + + /** + * 磁盘空间 + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; + + + + /** + * 机器配置类型,2核4G的机器:o.pgsql2m.medium - /** 机器配置类型,2核4G的机器:o.pgsql2m.medium */ + */ @NotEmpty @UCloudParam("MachineType") private String machineType; - - /** 同步的源库 */ + + + + /** + * 同步的源库 + */ @NotEmpty @UCloudParam("SrcInstanceID") private String srcInstanceID; - - /** 子网ID */ + + + + /** + * 子网ID + */ @UCloudParam("SubnetID") private String subnetID; - - /** VPCID */ + + + + /** + * VPCID + */ @UCloudParam("VPCID") private String vpcid; - + + public String getRegion() { return region; } @@ -77,7 +121,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -85,7 +129,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -93,7 +137,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -101,7 +145,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public Integer getPort() { return port; } @@ -109,7 +153,7 @@ public Integer getPort() { public void setPort(Integer port) { this.port = port; } - + public Integer getDiskSpace() { return diskSpace; } @@ -117,7 +161,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public String getMachineType() { return machineType; } @@ -125,7 +169,7 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } - + public String getSrcInstanceID() { return srcInstanceID; } @@ -133,7 +177,7 @@ public String getSrcInstanceID() { public void setSrcInstanceID(String srcInstanceID) { this.srcInstanceID = srcInstanceID; } - + public String getSubnetID() { return subnetID; } @@ -141,7 +185,7 @@ public String getSubnetID() { public void setSubnetID(String subnetID) { this.subnetID = subnetID; } - + public String getVPCID() { return vpcid; } @@ -149,4 +193,14 @@ public String getVPCID() { public void setVPCID(String vpcid) { this.vpcid = vpcid; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyResponse.java index 1c74f095..a5829992 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUPgSQLReadonlyResponse extends Response { - /** 资源ID */ + + + /** + * 资源ID + */ @SerializedName("InstanceID") private String instanceID; - + + public String getInstanceID() { return instanceID; } @@ -31,4 +41,14 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLInstanceRequest.java index 763a7e7e..2d92a85a 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLInstanceRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLInstanceRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUPgSQLInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例ID */ + + + + /** + * 实例ID + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -73,4 +92,14 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLInstanceResponse.java index 595b7415..ffa973ca 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLInstanceResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUPgSQLInstanceResponse extends Response {} +public class DeleteUPgSQLInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLParamTemplateRequest.java index 7f879dd8..01c9089a 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLParamTemplateRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLParamTemplateRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUPgSQLParamTemplateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 模板ID */ + + + + /** + * 模板ID + */ @NotEmpty @UCloudParam("GroupID") private Integer groupID; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getGroupID() { return groupID; } @@ -73,4 +92,14 @@ public Integer getGroupID() { public void setGroupID(Integer groupID) { this.groupID = groupID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLParamTemplateResponse.java index 733a70c5..44b47adf 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLParamTemplateResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLParamTemplateResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUPgSQLParamTemplateResponse extends Response {} +public class DeleteUPgSQLParamTemplateResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DownloadUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DownloadUPgSQLParamTemplateRequest.java index bbb07cc0..01b0ef1a 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DownloadUPgSQLParamTemplateRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DownloadUPgSQLParamTemplateRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DownloadUPgSQLParamTemplateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 参数模板id */ + + + + /** + * 参数模板id + */ @NotEmpty @UCloudParam("GroupID") private Integer groupID; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getGroupID() { return groupID; } @@ -73,4 +92,14 @@ public Integer getGroupID() { public void setGroupID(Integer groupID) { this.groupID = groupID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DownloadUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DownloadUPgSQLParamTemplateResponse.java index 381ab504..0e75c0c8 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DownloadUPgSQLParamTemplateResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DownloadUPgSQLParamTemplateResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DownloadUPgSQLParamTemplateResponse extends Response { - /** base64编码过的 */ + + + /** + * base64编码过的 + */ @SerializedName("Content") private String content; - + + public String getContent() { return content; } @@ -31,4 +41,14 @@ public String getContent() { public void setContent(String content) { this.content = content; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupStrategyRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupStrategyRequest.java index d6349f9d..11debfc9 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupStrategyRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupStrategyRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPgSQLBackupStrategyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id */ + + + + /** + * DB实例Id + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -73,4 +92,14 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupStrategyResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupStrategyResponse.java index 01519cd6..ad6f2fa8 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupStrategyResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupStrategyResponse.java @@ -1,37 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUPgSQLBackupStrategyResponse extends Response { - /** 自动备份预计开始时间范围 */ + + + /** + * 自动备份预计开始时间范围 + */ @SerializedName("BackupTimeRange") private String backupTimeRange; - - /** 自动备份预期星期几(1~7)开始 */ + + + + /** + * 自动备份预期星期几(1~7)开始 + */ @SerializedName("BackupWeek") private String backupWeek; - - /** 默认的备份方式 */ + + + + /** + * 默认的备份方式 + */ @SerializedName("BackupMethod") private String backupMethod; - + + public String getBackupTimeRange() { return backupTimeRange; } @@ -39,7 +57,7 @@ public String getBackupTimeRange() { public void setBackupTimeRange(String backupTimeRange) { this.backupTimeRange = backupTimeRange; } - + public String getBackupWeek() { return backupWeek; } @@ -47,7 +65,7 @@ public String getBackupWeek() { public void setBackupWeek(String backupWeek) { this.backupWeek = backupWeek; } - + public String getBackupMethod() { return backupMethod; } @@ -55,4 +73,14 @@ public String getBackupMethod() { public void setBackupMethod(String backupMethod) { this.backupMethod = backupMethod; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupURLRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupURLRequest.java index b90e822a..fb6cc22d 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupURLRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupURLRequest.java @@ -1,52 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPgSQLBackupURLRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id */ + + + + /** + * DB实例Id + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - - /** 备份Id */ + + + + /** + * 备份Id + */ @NotEmpty @UCloudParam("BackupID") private String backupID; - + + public String getRegion() { return region; } @@ -54,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -62,7 +85,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -70,7 +93,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -78,7 +101,7 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } - + public String getBackupID() { return backupID; } @@ -86,4 +109,14 @@ public String getBackupID() { public void setBackupID(String backupID) { this.backupID = backupID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupURLResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupURLResponse.java index 6a5afd4f..ffb507df 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupURLResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupURLResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUPgSQLBackupURLResponse extends Response { - /** DB实例备份文件公网的地址 */ + + + /** + * DB实例备份文件公网的地址 + */ @SerializedName("BackupPath") private String backupPath; - - /** DB实例备份文件内网的地址 */ + + + + /** + * DB实例备份文件内网的地址 + */ @SerializedName("InnerBackupPath") private String innerBackupPath; - + + public String getBackupPath() { return backupPath; } @@ -35,7 +49,7 @@ public String getBackupPath() { public void setBackupPath(String backupPath) { this.backupPath = backupPath; } - + public String getInnerBackupPath() { return innerBackupPath; } @@ -43,4 +57,14 @@ public String getInnerBackupPath() { public void setInnerBackupPath(String innerBackupPath) { this.innerBackupPath = innerBackupPath; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceLogRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceLogRequest.java index a8241984..fd4212d0 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceLogRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceLogRequest.java @@ -1,72 +1,111 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPgSQLInstanceLogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 可用区 */ + + + + /** + * 可用区 + */ @NotEmpty @UCloudParam("ZoneID") private Integer zoneID; - - /** 实例ClusterID */ + + + + /** + * 实例ClusterID + */ @NotEmpty @UCloudParam("DBId") private String dbId; - - /** 日志类型 */ + + + + /** + * 日志类型 + */ @NotEmpty @UCloudParam("LogType") private String logType; - - /** */ + + + + /** + * + */ @NotEmpty @UCloudParam("CompanyID") private Integer companyID; - - /** */ + + + + /** + * + */ @NotEmpty @UCloudParam("AccountID") private Integer accountID; - - /** 起始时间,需使用时间戳 */ + + + + /** + * 起始时间,需使用时间戳 + */ @NotEmpty @UCloudParam("BeginTime") private Integer beginTime; - - /** 结束时间,需使用时间戳,结束时间需大于起始时间 */ + + + + /** + * 结束时间,需使用时间戳,结束时间需大于起始时间 + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - + + public String getRegion() { return region; } @@ -74,7 +113,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -82,7 +121,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getZoneID() { return zoneID; } @@ -90,7 +129,7 @@ public Integer getZoneID() { public void setZoneID(Integer zoneID) { this.zoneID = zoneID; } - + public String getDBId() { return dbId; } @@ -98,7 +137,7 @@ public String getDBId() { public void setDBId(String dbId) { this.dbId = dbId; } - + public String getLogType() { return logType; } @@ -106,7 +145,7 @@ public String getLogType() { public void setLogType(String logType) { this.logType = logType; } - + public Integer getCompanyID() { return companyID; } @@ -114,7 +153,7 @@ public Integer getCompanyID() { public void setCompanyID(Integer companyID) { this.companyID = companyID; } - + public Integer getAccountID() { return accountID; } @@ -122,7 +161,7 @@ public Integer getAccountID() { public void setAccountID(Integer accountID) { this.accountID = accountID; } - + public Integer getBeginTime() { return beginTime; } @@ -130,7 +169,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -138,4 +177,14 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceLogResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceLogResponse.java index 27427f79..9f8f0e7e 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceLogResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceLogResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUPgSQLInstanceLogResponse extends Response { - /** 返回的日志信息 */ + + + /** + * 返回的日志信息 + */ @SerializedName("Log") private String log; - + + public String getLog() { return log; } @@ -31,4 +41,14 @@ public String getLog() { public void setLog(String log) { this.log = log; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstancePriceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstancePriceRequest.java index da283dc2..e217082f 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstancePriceRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstancePriceRequest.java @@ -1,65 +1,100 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPgSQLInstancePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 机器配置类型 参考2C4G机器:o.pgsql2m.medium */ + + + + /** + * 机器配置类型 参考2C4G机器:o.pgsql2m.medium + */ @NotEmpty @UCloudParam("MachineType") private String machineType; - - /** 磁盘空间(GB) */ + + + + /** + * 磁盘空间(GB) + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; - - /** UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 */ + + + + /** + * UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 + */ @NotEmpty @UCloudParam("InstanceMode") private String instanceMode; - - /** 计费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限)。默认为月付 */ + + + + /** + * 计费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限)。默认为月付 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。 */ + + + + /** + * 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。 + */ @UCloudParam("Quantity") private Integer quantity; - + + public String getRegion() { return region; } @@ -67,7 +102,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -75,7 +110,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -83,7 +118,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getMachineType() { return machineType; } @@ -91,7 +126,7 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } - + public Integer getDiskSpace() { return diskSpace; } @@ -99,7 +134,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public String getInstanceMode() { return instanceMode; } @@ -107,7 +142,7 @@ public String getInstanceMode() { public void setInstanceMode(String instanceMode) { this.instanceMode = instanceMode; } - + public String getChargeType() { return chargeType; } @@ -115,7 +150,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -123,4 +158,14 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstancePriceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstancePriceResponse.java index fbf56ece..84dad3b0 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstancePriceResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstancePriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUPgSQLInstancePriceResponse extends Response { - /** 价格列表 */ + + + /** + * 价格列表 + */ @SerializedName("PriceSet") private List priceSet; - + + public List getPriceSet() { return priceSet; } @@ -32,43 +41,65 @@ public List getPriceSet() { public void setPriceSet(List priceSet) { this.priceSet = priceSet; } + + public static class UPgSQLInstancePriceSet extends Response { + + + /** + * 计费类型,Year,Month,Dynamic。 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 实际价格,单位:元,保留小数点后两位有效数字。 + */ + @SerializedName("Price") + private Double price; + + + + /** + * 购买原价,单位:元。 + */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + + public String getChargeType() { + return chargeType; + } - public static class UPgSQLInstancePriceSet extends Response { + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } + + public Double getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + + } +} - /** 计费类型,Year,Month,Dynamic。 */ - @SerializedName("ChargeType") - private String chargeType; - /** 实际价格,单位:元,保留小数点后两位有效数字。 */ - @SerializedName("Price") - private Double price; - /** 购买原价,单位:元。 */ - @SerializedName("OriginalPrice") - private Double originalPrice; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Double getPrice() { - return price; - } - public void setPrice(Double price) { - this.price = price; - } - public Double getOriginalPrice() { - return originalPrice; - } - public void setOriginalPrice(Double originalPrice) { - this.originalPrice = originalPrice; - } - } -} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceRequest.java index e29d1d48..4236b260 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPgSQLInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 资源ID */ + + + + /** + * 资源ID + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - + + public String getRegion() { return region; } @@ -48,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -56,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -64,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -72,4 +91,14 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceResponse.java index 1f6651fe..df8bc4cc 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUPgSQLInstanceResponse extends Response { - /** */ + + + /** + * + */ @SerializedName("DataSet") private UDBInstance dataSet; - + + public UDBInstance getDataSet() { return dataSet; } @@ -31,338 +41,449 @@ public UDBInstance getDataSet() { public void setDataSet(UDBInstance dataSet) { this.dataSet = dataSet; } + + public static class UDBInstance extends Response { + + + /** + * DB实例所在可用区 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 跨可用区高可用备库所在可用区 + */ + @SerializedName("BackupZone") + private String backupZone; + + + + /** + * DB实例id + */ + @SerializedName("InstanceID") + private String instanceID; + + + + /** + * 实例名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * DB 版本 + */ + @SerializedName("DBVersion") + private String dbVersion; + + + + /** + * DB实例使用的配置参数组id + */ + @SerializedName("ParamGroupID") + private Integer paramGroupID; + + + + /** + * 管理员帐户名,默认root + */ + @SerializedName("AdminUser") + private String adminUser; + + + + /** + * DBip + */ + @SerializedName("IP") + private String ip; + + + + /** + * DB port + */ + @SerializedName("Port") + private Integer port; + + + + /** + * VPC的ID + */ + @SerializedName("VPCID") + private String vpcid; + + + + /** + * 子网ID + */ + @SerializedName("SubnetID") + private String subnetID; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 备份文件保留的数量,默认7次 + */ + @SerializedName("BackupCount") + private Integer backupCount; + + + + /** + * 备份开始时间,单位小时计,默认3点 + */ + @SerializedName("BackupBeginTime") + private Integer backupBeginTime; + + + + /** + * 备份的时间段,范围[0,23] + */ + @SerializedName("BackupTimeRange") + private Integer backupTimeRange; + + + + /** + * 用于设置备份策略的备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能 + */ + @SerializedName("BackupDate") + private String backupDate; + + + + /** + * DB状态标记 Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover fail:恢复失败 + */ + @SerializedName("State") + private String state; + + + + /** + * DB实例创建时间,采用UTC计时时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * DB实例修改时间,采用UTC计时时间戳 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * DB实例过期时间,采用UTC计时时间戳 + */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + + + /** + * 内存限制(MB),默认根据配置机型 + */ + @SerializedName("MemoryLimit") + private Integer memoryLimit; + + + + /** + * 磁盘空间(GB), 默认根据配置机型 + */ + @SerializedName("DiskSpace") + private Integer diskSpace; + + + + /** + * DB实例磁盘已使用空间,单位GB + */ + @SerializedName("DiskUsedSize") + private Double diskUsedSize; + + + + /** + * DB实例数据文件大小,单位GB + */ + @SerializedName("DataFileSize") + private Double dataFileSize; + + + + /** + * DB实例系统文件大小,单位GB + */ + @SerializedName("SystemFileSize") + private Double systemFileSize; + + + + /** + * DB实例日志文件大小,单位GB + */ + @SerializedName("LogFileSize") + private Double logFileSize; + + + + /** + * Normal/HA,普通/高可用 + */ + @SerializedName("InstanceMode") + private String instanceMode; + + + public String getZone() { + return zone; + } - public static class UDBInstance extends Response { - - /** DB实例所在可用区 */ - @SerializedName("Zone") - private String zone; - - /** 跨可用区高可用备库所在可用区 */ - @SerializedName("BackupZone") - private String backupZone; - - /** DB实例id */ - @SerializedName("InstanceID") - private String instanceID; - - /** 实例名称 */ - @SerializedName("Name") - private String name; - - /** DB 版本 */ - @SerializedName("DBVersion") - private String dbVersion; - - /** DB实例使用的配置参数组id */ - @SerializedName("ParamGroupID") - private Integer paramGroupID; - - /** 管理员帐户名,默认root */ - @SerializedName("AdminUser") - private String adminUser; - - /** DBip */ - @SerializedName("IP") - private String ip; - - /** DB port */ - @SerializedName("Port") - private Integer port; - - /** VPC的ID */ - @SerializedName("VPCID") - private String vpcid; - - /** 子网ID */ - @SerializedName("SubnetID") - private String subnetID; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** 备份文件保留的数量,默认7次 */ - @SerializedName("BackupCount") - private Integer backupCount; - - /** 备份开始时间,单位小时计,默认3点 */ - @SerializedName("BackupBeginTime") - private Integer backupBeginTime; - - /** 备份的时间段,范围[0,23] */ - @SerializedName("BackupTimeRange") - private Integer backupTimeRange; - - /** - * 用于设置备份策略的备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 - * 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能 - */ - @SerializedName("BackupDate") - private String backupDate; - - /** - * DB状态标记 - * Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover - * fail:恢复失败 - */ - @SerializedName("State") - private String state; - - /** DB实例创建时间,采用UTC计时时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** DB实例修改时间,采用UTC计时时间戳 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** DB实例过期时间,采用UTC计时时间戳 */ - @SerializedName("ExpiredTime") - private Integer expiredTime; - - /** 内存限制(MB),默认根据配置机型 */ - @SerializedName("MemoryLimit") - private Integer memoryLimit; - - /** 磁盘空间(GB), 默认根据配置机型 */ - @SerializedName("DiskSpace") - private Integer diskSpace; - - /** DB实例磁盘已使用空间,单位GB */ - @SerializedName("DiskUsedSize") - private Double diskUsedSize; - - /** DB实例数据文件大小,单位GB */ - @SerializedName("DataFileSize") - private Double dataFileSize; - - /** DB实例系统文件大小,单位GB */ - @SerializedName("SystemFileSize") - private Double systemFileSize; - - /** DB实例日志文件大小,单位GB */ - @SerializedName("LogFileSize") - private Double logFileSize; - - /** Normal/HA,普通/高可用 */ - @SerializedName("InstanceMode") - private String instanceMode; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getBackupZone() { - return backupZone; - } - - public void setBackupZone(String backupZone) { - this.backupZone = backupZone; - } - - public String getInstanceID() { - return instanceID; - } - - public void setInstanceID(String instanceID) { - this.instanceID = instanceID; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getDBVersion() { - return dbVersion; - } - - public void setDBVersion(String dbVersion) { - this.dbVersion = dbVersion; - } - - public Integer getParamGroupID() { - return paramGroupID; - } - - public void setParamGroupID(Integer paramGroupID) { - this.paramGroupID = paramGroupID; - } - - public String getAdminUser() { - return adminUser; - } - - public void setAdminUser(String adminUser) { - this.adminUser = adminUser; - } - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public String getVPCID() { - return vpcid; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getBackupZone() { + return backupZone; + } - public void setVPCID(String vpcid) { - this.vpcid = vpcid; - } + public void setBackupZone(String backupZone) { + this.backupZone = backupZone; + } + + public String getInstanceID() { + return instanceID; + } - public String getSubnetID() { - return subnetID; - } + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getName() { + return name; + } - public void setSubnetID(String subnetID) { - this.subnetID = subnetID; - } + public void setName(String name) { + this.name = name; + } + + public String getDBVersion() { + return dbVersion; + } - public String getRemark() { - return remark; - } + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public Integer getParamGroupID() { + return paramGroupID; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setParamGroupID(Integer paramGroupID) { + this.paramGroupID = paramGroupID; + } + + public String getAdminUser() { + return adminUser; + } - public Integer getBackupCount() { - return backupCount; - } + public void setAdminUser(String adminUser) { + this.adminUser = adminUser; + } + + public String getIP() { + return ip; + } - public void setBackupCount(Integer backupCount) { - this.backupCount = backupCount; - } + public void setIP(String ip) { + this.ip = ip; + } + + public Integer getPort() { + return port; + } - public Integer getBackupBeginTime() { - return backupBeginTime; - } + public void setPort(Integer port) { + this.port = port; + } + + public String getVPCID() { + return vpcid; + } - public void setBackupBeginTime(Integer backupBeginTime) { - this.backupBeginTime = backupBeginTime; - } + public void setVPCID(String vpcid) { + this.vpcid = vpcid; + } + + public String getSubnetID() { + return subnetID; + } - public Integer getBackupTimeRange() { - return backupTimeRange; - } + public void setSubnetID(String subnetID) { + this.subnetID = subnetID; + } + + public String getRemark() { + return remark; + } - public void setBackupTimeRange(Integer backupTimeRange) { - this.backupTimeRange = backupTimeRange; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getBackupCount() { + return backupCount; + } - public String getBackupDate() { - return backupDate; - } + public void setBackupCount(Integer backupCount) { + this.backupCount = backupCount; + } + + public Integer getBackupBeginTime() { + return backupBeginTime; + } - public void setBackupDate(String backupDate) { - this.backupDate = backupDate; - } + public void setBackupBeginTime(Integer backupBeginTime) { + this.backupBeginTime = backupBeginTime; + } + + public Integer getBackupTimeRange() { + return backupTimeRange; + } - public String getState() { - return state; - } + public void setBackupTimeRange(Integer backupTimeRange) { + this.backupTimeRange = backupTimeRange; + } + + public String getBackupDate() { + return backupDate; + } - public void setState(String state) { - this.state = state; - } + public void setBackupDate(String backupDate) { + this.backupDate = backupDate; + } + + public String getState() { + return state; + } - public Integer getCreateTime() { - return createTime; - } + public void setState(String state) { + this.state = state; + } + + public Integer getCreateTime() { + return createTime; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public Integer getModifyTime() { - return modifyTime; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public Integer getMemoryLimit() { + return memoryLimit; + } - public Integer getExpiredTime() { - return expiredTime; - } + public void setMemoryLimit(Integer memoryLimit) { + this.memoryLimit = memoryLimit; + } + + public Integer getDiskSpace() { + return diskSpace; + } - public void setExpiredTime(Integer expiredTime) { - this.expiredTime = expiredTime; - } + public void setDiskSpace(Integer diskSpace) { + this.diskSpace = diskSpace; + } + + public Double getDiskUsedSize() { + return diskUsedSize; + } - public Integer getMemoryLimit() { - return memoryLimit; - } + public void setDiskUsedSize(Double diskUsedSize) { + this.diskUsedSize = diskUsedSize; + } + + public Double getDataFileSize() { + return dataFileSize; + } - public void setMemoryLimit(Integer memoryLimit) { - this.memoryLimit = memoryLimit; - } + public void setDataFileSize(Double dataFileSize) { + this.dataFileSize = dataFileSize; + } + + public Double getSystemFileSize() { + return systemFileSize; + } - public Integer getDiskSpace() { - return diskSpace; - } + public void setSystemFileSize(Double systemFileSize) { + this.systemFileSize = systemFileSize; + } + + public Double getLogFileSize() { + return logFileSize; + } - public void setDiskSpace(Integer diskSpace) { - this.diskSpace = diskSpace; - } + public void setLogFileSize(Double logFileSize) { + this.logFileSize = logFileSize; + } + + public String getInstanceMode() { + return instanceMode; + } - public Double getDiskUsedSize() { - return diskUsedSize; + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } + } +} - public void setDiskUsedSize(Double diskUsedSize) { - this.diskUsedSize = diskUsedSize; - } - public Double getDataFileSize() { - return dataFileSize; - } - public void setDataFileSize(Double dataFileSize) { - this.dataFileSize = dataFileSize; - } - public Double getSystemFileSize() { - return systemFileSize; - } - public void setSystemFileSize(Double systemFileSize) { - this.systemFileSize = systemFileSize; - } - public Double getLogFileSize() { - return logFileSize; - } - public void setLogFileSize(Double logFileSize) { - this.logFileSize = logFileSize; - } - public String getInstanceMode() { - return instanceMode; - } - public void setInstanceMode(String instanceMode) { - this.instanceMode = instanceMode; - } - } -} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLParamTemplateRequest.java index fede08e1..a36d3ef4 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLParamTemplateRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLParamTemplateRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPgSQLParamTemplateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 模板ID */ + + + + /** + * 模板ID + */ @NotEmpty @UCloudParam("GroupID") private Integer groupID; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getGroupID() { return groupID; } @@ -73,4 +92,14 @@ public Integer getGroupID() { public void setGroupID(Integer groupID) { this.groupID = groupID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLParamTemplateResponse.java index 87a0b559..834c474a 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLParamTemplateResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLParamTemplateResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUPgSQLParamTemplateResponse extends Response { - /** 参数列表 */ + + + /** + * 参数列表 + */ @SerializedName("Data") private List data; - + + public List getData() { return data; } @@ -32,91 +41,129 @@ public List getData() { public void setData(List data) { this.data = data; } + + public static class Param extends Response { + + + /** + * 参数Key + */ + @SerializedName("Key") + private String key; + + + + /** + * 参数值 + */ + @SerializedName("Value") + private String value; + + + + /** + * 值类型 + */ + @SerializedName("ValueType") + private Integer valueType; + + + + /** + * 允许的值 + */ + @SerializedName("AllowedVal") + private String allowedVal; + + + + /** + * 允许类型 + */ + @SerializedName("ApplyType") + private Integer applyType; + + + + /** + * 是否可以修改 + */ + @SerializedName("Modifiable") + private Boolean modifiable; + + + + /** + * 参数格式类型 + */ + @SerializedName("FormatType") + private Integer formatType; + + + public String getKey() { + return key; + } - public static class Param extends Response { - - /** 参数Key */ - @SerializedName("Key") - private String key; - - /** 参数值 */ - @SerializedName("Value") - private String value; - - /** 值类型 */ - @SerializedName("ValueType") - private Integer valueType; - - /** 允许的值 */ - @SerializedName("AllowedVal") - private String allowedVal; - - /** 允许类型 */ - @SerializedName("ApplyType") - private Integer applyType; - - /** 是否可以修改 */ - @SerializedName("Modifiable") - private Boolean modifiable; + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } - /** 参数格式类型 */ - @SerializedName("FormatType") - private Integer formatType; + public void setValue(String value) { + this.value = value; + } + + public Integer getValueType() { + return valueType; + } - public String getKey() { - return key; - } + public void setValueType(Integer valueType) { + this.valueType = valueType; + } + + public String getAllowedVal() { + return allowedVal; + } - public void setKey(String key) { - this.key = key; - } + public void setAllowedVal(String allowedVal) { + this.allowedVal = allowedVal; + } + + public Integer getApplyType() { + return applyType; + } - public String getValue() { - return value; - } + public void setApplyType(Integer applyType) { + this.applyType = applyType; + } + + public Boolean getModifiable() { + return modifiable; + } - public void setValue(String value) { - this.value = value; - } + public void setModifiable(Boolean modifiable) { + this.modifiable = modifiable; + } + + public Integer getFormatType() { + return formatType; + } - public Integer getValueType() { - return valueType; + public void setFormatType(Integer formatType) { + this.formatType = formatType; + } + } +} - public void setValueType(Integer valueType) { - this.valueType = valueType; - } - public String getAllowedVal() { - return allowedVal; - } - public void setAllowedVal(String allowedVal) { - this.allowedVal = allowedVal; - } - public Integer getApplyType() { - return applyType; - } - public void setApplyType(Integer applyType) { - this.applyType = applyType; - } - public Boolean getModifiable() { - return modifiable; - } - public void setModifiable(Boolean modifiable) { - this.modifiable = modifiable; - } - public Integer getFormatType() { - return formatType; - } - public void setFormatType(Integer formatType) { - this.formatType = formatType; - } - } -} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLUpgradePriceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLUpgradePriceRequest.java index 5d929a90..d94c4c98 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLUpgradePriceRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLUpgradePriceRequest.java @@ -1,61 +1,92 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPgSQLUpgradePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 资源ID */ + + + + /** + * 资源ID + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - - /** 磁盘空间(GB) */ + + + + /** + * 磁盘空间(GB) + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; - - /** 机器配置类型 */ + + + + /** + * 机器配置类型 + */ @NotEmpty @UCloudParam("MachineType") private String machineType; - - /** UDB实例模式类型, 可选值如下: "normal": 普通版UDB实例 "ha": 高可用版UDB实例 默认是"normal" */ + + + + /** + * UDB实例模式类型, 可选值如下: "normal": 普通版UDB实例 "ha": 高可用版UDB实例 默认是"normal" + */ @UCloudParam("InstanceMode") private String instanceMode; - + + public String getRegion() { return region; } @@ -63,7 +94,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -71,7 +102,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -79,7 +110,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -87,7 +118,7 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } - + public Integer getDiskSpace() { return diskSpace; } @@ -95,7 +126,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public String getMachineType() { return machineType; } @@ -103,7 +134,7 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } - + public String getInstanceMode() { return instanceMode; } @@ -111,4 +142,14 @@ public String getInstanceMode() { public void setInstanceMode(String instanceMode) { this.instanceMode = instanceMode; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLUpgradePriceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLUpgradePriceResponse.java index c8752dbc..06902a34 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLUpgradePriceResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLUpgradePriceResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUPgSQLUpgradePriceResponse extends Response { - /** 规格调整差价。精确到小数点后2位。 */ + + + /** + * 规格调整差价。精确到小数点后2位。 + */ @SerializedName("Price") private Double price; - - /** 限时优惠的折前原价 */ + + + + /** + * 限时优惠的折前原价 + */ @SerializedName("OriginalPrice") private Double originalPrice; - + + public Double getPrice() { return price; } @@ -35,7 +49,7 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } - + public Double getOriginalPrice() { return originalPrice; } @@ -43,4 +57,14 @@ public Double getOriginalPrice() { public void setOriginalPrice(Double originalPrice) { this.originalPrice = originalPrice; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLBackupRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLBackupRequest.java index 96193e61..b4483a64 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLBackupRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLBackupRequest.java @@ -1,59 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUPgSQLBackupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id */ + + + + /** + * DB实例Id + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - - /** 备份类型,默认值是0(0:表示全部,1:自动备份,2:手动备份 */ + + + + /** + * 备份类型,默认值是0(0:表示全部,1:自动备份,2:手动备份 + */ @UCloudParam("BackupType") private Integer backupType; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20,最大100 */ + + + + /** + * 返回数据长度,默认为20,最大100 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -61,7 +92,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -69,7 +100,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -77,7 +108,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -85,7 +116,7 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } - + public Integer getBackupType() { return backupType; } @@ -93,7 +124,7 @@ public Integer getBackupType() { public void setBackupType(Integer backupType) { this.backupType = backupType; } - + public Integer getOffset() { return offset; } @@ -101,7 +132,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -109,4 +140,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLBackupResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLBackupResponse.java index c2784c7d..e04bc985 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLBackupResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLBackupResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUPgSQLBackupResponse extends Response { - /** 备份信息列表.修参数 */ + + + /** + * 备份信息列表.修参数 + */ @SerializedName("DataSet") private List dataSet; - - /** 总个数 */ + + + + /** + * 总个数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,115 +57,161 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class UPgSQLBackup extends Response { + + + /** + * 备份所在地域 + */ + @SerializedName("Region") + private String region; + + + + /** + * DB实例Id + */ + @SerializedName("InstanceID") + private String instanceID; + + + + /** + * 备份id + */ + @SerializedName("BackupID") + private String backupID; + + + + /** + * 备份名称 + */ + @SerializedName("BackupName") + private String backupName; + + + + /** + * 备份时间(Unix时间戳) + */ + @SerializedName("BackupStartTime") + private Integer backupStartTime; + + + + /** + * 备份文件大小(字节) + */ + @SerializedName("BackupSize") + private Integer backupSize; + + + + /** + * 备份类型,手动或者自动 + */ + @SerializedName("BackupType") + private Integer backupType; + + + + /** + * 备份状态 (Backuping:备份中,Success:备份成功, Failed:备份失败, Expired:备份过期) + */ + @SerializedName("State") + private String state; + + + + /** + * 备份完成时间(Unix时间戳) + */ + @SerializedName("BackupEndTime") + private Integer backupEndTime; + + + public String getRegion() { + return region; + } - public static class UPgSQLBackup extends Response { - - /** 备份所在地域 */ - @SerializedName("Region") - private String region; - - /** DB实例Id */ - @SerializedName("InstanceID") - private String instanceID; - - /** 备份id */ - @SerializedName("BackupID") - private String backupID; - - /** 备份名称 */ - @SerializedName("BackupName") - private String backupName; - - /** 备份时间(Unix时间戳) */ - @SerializedName("BackupStartTime") - private Integer backupStartTime; - - /** 备份文件大小(字节) */ - @SerializedName("BackupSize") - private Integer backupSize; - - /** 备份类型,手动或者自动 */ - @SerializedName("BackupType") - private Integer backupType; - - /** 备份状态 (Backuping:备份中,Success:备份成功, Failed:备份失败, Expired:备份过期) */ - @SerializedName("State") - private String state; - - /** 备份完成时间(Unix时间戳) */ - @SerializedName("BackupEndTime") - private Integer backupEndTime; - - public String getRegion() { - return region; - } + public void setRegion(String region) { + this.region = region; + } + + public String getInstanceID() { + return instanceID; + } - public void setRegion(String region) { - this.region = region; - } + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getBackupID() { + return backupID; + } - public String getInstanceID() { - return instanceID; - } + public void setBackupID(String backupID) { + this.backupID = backupID; + } + + public String getBackupName() { + return backupName; + } - public void setInstanceID(String instanceID) { - this.instanceID = instanceID; - } + public void setBackupName(String backupName) { + this.backupName = backupName; + } + + public Integer getBackupStartTime() { + return backupStartTime; + } - public String getBackupID() { - return backupID; - } + public void setBackupStartTime(Integer backupStartTime) { + this.backupStartTime = backupStartTime; + } + + public Integer getBackupSize() { + return backupSize; + } - public void setBackupID(String backupID) { - this.backupID = backupID; - } + public void setBackupSize(Integer backupSize) { + this.backupSize = backupSize; + } + + public Integer getBackupType() { + return backupType; + } - public String getBackupName() { - return backupName; - } + public void setBackupType(Integer backupType) { + this.backupType = backupType; + } + + public String getState() { + return state; + } - public void setBackupName(String backupName) { - this.backupName = backupName; - } + public void setState(String state) { + this.state = state; + } + + public Integer getBackupEndTime() { + return backupEndTime; + } - public Integer getBackupStartTime() { - return backupStartTime; + public void setBackupEndTime(Integer backupEndTime) { + this.backupEndTime = backupEndTime; + } + } +} - public void setBackupStartTime(Integer backupStartTime) { - this.backupStartTime = backupStartTime; - } - public Integer getBackupSize() { - return backupSize; - } - public void setBackupSize(Integer backupSize) { - this.backupSize = backupSize; - } - public Integer getBackupType() { - return backupType; - } - public void setBackupType(Integer backupType) { - this.backupType = backupType; - } - public String getState() { - return state; - } - public void setState(String state) { - this.state = state; - } - public Integer getBackupEndTime() { - return backupEndTime; - } - public void setBackupEndTime(Integer backupEndTime) { - this.backupEndTime = backupEndTime; - } - } -} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLInstanceRequest.java index 303715a3..294bed00 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLInstanceRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLInstanceRequest.java @@ -1,41 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUPgSQLInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + public String getRegion() { return region; } @@ -43,7 +58,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -51,7 +66,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -59,4 +74,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLInstanceResponse.java index c4a43d2c..898c645b 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLInstanceResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLInstanceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUPgSQLInstanceResponse extends Response { - /** 数据库信息列表 */ + + + /** + * 数据库信息列表 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,342 +41,452 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - - public static class UDBInstanceSet extends Response { - - /** 可用区 */ - @SerializedName("Zone") - private String zone; - - /** 资源ID */ - @SerializedName("InstanceID") - private String instanceID; - - /** 实例名称 */ - @SerializedName("Name") - private String name; - - /** 实例的版本,包括postgresql-10.4,postgresql-13.4 */ - @SerializedName("DBVersion") - private String dbVersion; - - /** normal/ha/readonly,普通/高可用/只读从库 */ - @SerializedName("InstanceMode") - private String instanceMode; - - /** - * 实例状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中, - * Running:运行,Stopping:关闭中,Stopped:已关闭,Deleted: 已删除,Upgrading: 升级中 - * ,Promoting:提升为主库进行中,Recovering:恢复中,RecoverFailed:恢复失败,StartFailed:启动失败,ShutdownFailed:关闭失败,Deleting:删除中,DeleteFailed:删除失败 - */ - @SerializedName("State") - private String state; - - /** 机器规格,格式为nCmG,n代表cpu核数,m代表内存大小(GB) */ - @SerializedName("MachineType") - private String machineType; - - /** VPC的ID */ - @SerializedName("VPCID") - private String vpcid; - - /** 子网ID */ - @SerializedName("SubnetID") - private String subnetID; - - /** DB实例创建时间,采用UTC计时时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** DB实例过期时间,采用UTC计时时间戳 */ - @SerializedName("ExpiredTime") - private Integer expiredTime; - - /** DB实例ip */ - @SerializedName("IP") - private String ip; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** 从库列表 */ - @SerializedName("DataSet") - private List dataSet; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getInstanceID() { - return instanceID; - } - - public void setInstanceID(String instanceID) { - this.instanceID = instanceID; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getDBVersion() { - return dbVersion; - } - - public void setDBVersion(String dbVersion) { - this.dbVersion = dbVersion; - } - - public String getInstanceMode() { - return instanceMode; - } - - public void setInstanceMode(String instanceMode) { - this.instanceMode = instanceMode; - } - - public String getState() { - return state; - } - - public void setState(String state) { - this.state = state; - } - - public String getMachineType() { - return machineType; - } - - public void setMachineType(String machineType) { - this.machineType = machineType; - } - - public String getVPCID() { - return vpcid; - } - - public void setVPCID(String vpcid) { - this.vpcid = vpcid; - } - - public String getSubnetID() { - return subnetID; - } - - public void setSubnetID(String subnetID) { - this.subnetID = subnetID; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public Integer getExpiredTime() { - return expiredTime; - } - - public void setExpiredTime(Integer expiredTime) { - this.expiredTime = expiredTime; - } - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } - - public String getRemark() { - return remark; - } - - public void setRemark(String remark) { - this.remark = remark; - } - - public List getDataSet() { - return dataSet; - } - - public void setDataSet(List dataSet) { - this.dataSet = dataSet; - } + + public static class UDBInstanceSet extends Response { + + + /** + * 可用区 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 资源ID + */ + @SerializedName("InstanceID") + private String instanceID; + + + + /** + * 实例名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 实例的版本,包括postgresql-10.4,postgresql-13.4 + */ + @SerializedName("DBVersion") + private String dbVersion; + + + + /** + * normal/ha/readonly,普通/高可用/只读从库 + */ + @SerializedName("InstanceMode") + private String instanceMode; + + + + /** + * 实例状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中, Running:运行,Stopping:关闭中,Stopped:已关闭,Deleted: 已删除,Upgrading: 升级中 ,Promoting:提升为主库进行中,Recovering:恢复中,RecoverFailed:恢复失败,StartFailed:启动失败,ShutdownFailed:关闭失败,Deleting:删除中,DeleteFailed:删除失败 + */ + @SerializedName("State") + private String state; + + + + /** + * 机器规格,格式为nCmG,n代表cpu核数,m代表内存大小(GB) + */ + @SerializedName("MachineType") + private String machineType; + + + + /** + * VPC的ID + */ + @SerializedName("VPCID") + private String vpcid; + + + + /** + * 子网ID + */ + @SerializedName("SubnetID") + private String subnetID; + + + + /** + * DB实例创建时间,采用UTC计时时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * DB实例过期时间,采用UTC计时时间戳 + */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + + + /** + * DB实例ip + */ + @SerializedName("IP") + private String ip; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 从库列表 + */ + @SerializedName("DataSet") + private List dataSet; + + + public String getZone() { + return zone; } - public static class UDBReadonlyInstance extends Response { - - /** 可用区 */ - @SerializedName("Zone") - private String zone; - - /** 资源ID */ - @SerializedName("InstanceID") - private String instanceID; - - /** 实例名称 */ - @SerializedName("Name") - private String name; - - /** 实例的版本,包括postgresql-10.4,postgresql-13.4 */ - @SerializedName("DBVersion") - private String dbVersion; + public void setZone(String zone) { + this.zone = zone; + } + + public String getInstanceID() { + return instanceID; + } - /** normal/ha/readonly,普通/高可用/只读从库 */ - @SerializedName("InstanceMode") - private String instanceMode; + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getName() { + return name; + } - /** - * 实例状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中, - * Running:运行,Stopping:关闭中,Stopped:已关闭,Deleted: 已删除,Upgrading: 升级中 - * ,Promoting:提升为主库进行中,Recovering:恢复中,RecoverFailed:恢复失败,StartFailed:启动失败,ShutdownFailed:关闭失败,Deleting:删除中,DeleteFailed:删除失败 - */ - @SerializedName("State") - private String state; + public void setName(String name) { + this.name = name; + } + + public String getDBVersion() { + return dbVersion; + } - /** 机器规格,格式为nCmG,n代表cpu核数,m代表内存大小(GB) */ - @SerializedName("MachineType") - private String machineType; + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public String getInstanceMode() { + return instanceMode; + } - /** VPC的ID */ - @SerializedName("VPCID") - private String vpcid; + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } + + public String getState() { + return state; + } - /** 子网ID */ - @SerializedName("SubnetID") - private String subnetID; + public void setState(String state) { + this.state = state; + } + + public String getMachineType() { + return machineType; + } - /** DB实例创建时间,采用UTC计时时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getVPCID() { + return vpcid; + } - /** DB实例过期时间,采用UTC计时时间戳 */ - @SerializedName("ExpiredTime") - private Integer expiredTime; + public void setVPCID(String vpcid) { + this.vpcid = vpcid; + } + + public String getSubnetID() { + return subnetID; + } - /** DB实例ip */ - @SerializedName("IP") - private String ip; + public void setSubnetID(String subnetID) { + this.subnetID = subnetID; + } + + public Integer getCreateTime() { + return createTime; + } - /** 备注 */ - @SerializedName("Remark") - private String remark; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } - public String getZone() { - return zone; - } + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public String getIP() { + return ip; + } - public void setZone(String zone) { - this.zone = zone; - } + public void setIP(String ip) { + this.ip = ip; + } + + public String getRemark() { + return remark; + } - public String getInstanceID() { - return instanceID; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public List getDataSet() { + return dataSet; + } - public void setInstanceID(String instanceID) { - this.instanceID = instanceID; - } + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + } + public static class UDBReadonlyInstance extends Response { + + + /** + * 可用区 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 资源ID + */ + @SerializedName("InstanceID") + private String instanceID; + + + + /** + * 实例名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 实例的版本,包括postgresql-10.4,postgresql-13.4 + */ + @SerializedName("DBVersion") + private String dbVersion; + + + + /** + * normal/ha/readonly,普通/高可用/只读从库 + */ + @SerializedName("InstanceMode") + private String instanceMode; + + + + /** + * 实例状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中, Running:运行,Stopping:关闭中,Stopped:已关闭,Deleted: 已删除,Upgrading: 升级中 ,Promoting:提升为主库进行中,Recovering:恢复中,RecoverFailed:恢复失败,StartFailed:启动失败,ShutdownFailed:关闭失败,Deleting:删除中,DeleteFailed:删除失败 + */ + @SerializedName("State") + private String state; + + + + /** + * 机器规格,格式为nCmG,n代表cpu核数,m代表内存大小(GB) + */ + @SerializedName("MachineType") + private String machineType; + + + + /** + * VPC的ID + */ + @SerializedName("VPCID") + private String vpcid; + + + + /** + * 子网ID + */ + @SerializedName("SubnetID") + private String subnetID; + + + + /** + * DB实例创建时间,采用UTC计时时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * DB实例过期时间,采用UTC计时时间戳 + */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + + + /** + * DB实例ip + */ + @SerializedName("IP") + private String ip; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + public String getZone() { + return zone; + } - public String getName() { - return name; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getInstanceID() { + return instanceID; + } - public void setName(String name) { - this.name = name; - } + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getName() { + return name; + } - public String getDBVersion() { - return dbVersion; - } + public void setName(String name) { + this.name = name; + } + + public String getDBVersion() { + return dbVersion; + } - public void setDBVersion(String dbVersion) { - this.dbVersion = dbVersion; - } + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public String getInstanceMode() { + return instanceMode; + } - public String getInstanceMode() { - return instanceMode; - } + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } + + public String getState() { + return state; + } - public void setInstanceMode(String instanceMode) { - this.instanceMode = instanceMode; - } + public void setState(String state) { + this.state = state; + } + + public String getMachineType() { + return machineType; + } - public String getState() { - return state; - } + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getVPCID() { + return vpcid; + } - public void setState(String state) { - this.state = state; - } + public void setVPCID(String vpcid) { + this.vpcid = vpcid; + } + + public String getSubnetID() { + return subnetID; + } - public String getMachineType() { - return machineType; - } + public void setSubnetID(String subnetID) { + this.subnetID = subnetID; + } + + public Integer getCreateTime() { + return createTime; + } - public void setMachineType(String machineType) { - this.machineType = machineType; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } - public String getVPCID() { - return vpcid; - } + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public String getIP() { + return ip; + } - public void setVPCID(String vpcid) { - this.vpcid = vpcid; - } + public void setIP(String ip) { + this.ip = ip; + } + + public String getRemark() { + return remark; + } - public String getSubnetID() { - return subnetID; + public void setRemark(String remark) { + this.remark = remark; + } + } +} - public void setSubnetID(String subnetID) { - this.subnetID = subnetID; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getExpiredTime() { - return expiredTime; - } - public void setExpiredTime(Integer expiredTime) { - this.expiredTime = expiredTime; - } - public String getIP() { - return ip; - } - public void setIP(String ip) { - this.ip = ip; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - } -} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLLogRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLLogRequest.java index 07a3cf71..c07019e9 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLLogRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLLogRequest.java @@ -1,57 +1,84 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUPgSQLLogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 查询的日志开始的时间戳 */ + + + + /** + * 查询的日志开始的时间戳 + */ @NotEmpty @UCloudParam("BeginTime") private Integer beginTime; - - /** 查询日志的结束时间戳 */ + + + + /** + * 查询日志的结束时间戳 + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 资源ID */ + + + + /** + * 资源ID + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - + + public String getRegion() { return region; } @@ -59,7 +86,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -67,7 +94,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -75,7 +102,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getBeginTime() { return beginTime; } @@ -83,7 +110,7 @@ public Integer getBeginTime() { public void setBeginTime(Integer beginTime) { this.beginTime = beginTime; } - + public Integer getEndTime() { return endTime; } @@ -91,7 +118,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public String getInstanceID() { return instanceID; } @@ -99,4 +126,14 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLLogResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLLogResponse.java index 0e58db50..bdabab0f 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLLogResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLLogResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUPgSQLLogResponse extends Response { - /** 数据库日志信息列表 */ + + + /** + * 数据库日志信息列表 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,55 +41,81 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class LogSet extends Response { + + + /** + * + */ + @SerializedName("BeginTime") + private Integer beginTime; + + + + /** + * + */ + @SerializedName("EndTime") + private Integer endTime; + + + + /** + * + */ + @SerializedName("Name") + private String name; + + + + /** + * + */ + @SerializedName("Size") + private Integer size; + + + public Integer getBeginTime() { + return beginTime; + } - public static class LogSet extends Response { + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } - /** */ - @SerializedName("BeginTime") - private Integer beginTime; + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public String getName() { + return name; + } - /** */ - @SerializedName("EndTime") - private Integer endTime; + public void setName(String name) { + this.name = name; + } + + public Integer getSize() { + return size; + } - /** */ - @SerializedName("Name") - private String name; + public void setSize(Integer size) { + this.size = size; + } + + } +} - /** */ - @SerializedName("Size") - private Integer size; - public Integer getBeginTime() { - return beginTime; - } - public void setBeginTime(Integer beginTime) { - this.beginTime = beginTime; - } - public Integer getEndTime() { - return endTime; - } - public void setEndTime(Integer endTime) { - this.endTime = endTime; - } - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public Integer getSize() { - return size; - } - public void setSize(Integer size) { - this.size = size; - } - } -} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLMachineTypeRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLMachineTypeRequest.java index 1b73d9d8..6e2ab4a8 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLMachineTypeRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLMachineTypeRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUPgSQLMachineTypeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + public String getRegion() { return region; } @@ -44,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -52,7 +67,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -60,4 +75,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLMachineTypeResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLMachineTypeResponse.java index f0157962..a5df5f5f 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLMachineTypeResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLMachineTypeResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUPgSQLMachineTypeResponse extends Response { - /** */ + + + /** + * + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,67 +41,97 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class PgSQLMachineType extends Response { + + + /** + * 机器类型ID + */ + @SerializedName("ID") + private String id; + + + + /** + * 格式为nCmG,n代表cpu核数,m代表内存大小(GB) + */ + @SerializedName("Description") + private String description; + + + + /** + * cpu核数 + */ + @SerializedName("Cpu") + private Integer cpu; + + + + /** + * 内存用量(GB) + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * 机器类型,N/O + */ + @SerializedName("Os") + private String os; + + + public String getID() { + return id; + } - public static class PgSQLMachineType extends Response { - - /** 机器类型ID */ - @SerializedName("ID") - private String id; - - /** 格式为nCmG,n代表cpu核数,m代表内存大小(GB) */ - @SerializedName("Description") - private String description; + public void setID(String id) { + this.id = id; + } + + public String getDescription() { + return description; + } - /** cpu核数 */ - @SerializedName("Cpu") - private Integer cpu; + public void setDescription(String description) { + this.description = description; + } + + public Integer getCpu() { + return cpu; + } - /** 内存用量(GB) */ - @SerializedName("Memory") - private Integer memory; + public void setCpu(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } - /** 机器类型,N/O */ - @SerializedName("Os") - private String os; + public void setMemory(Integer memory) { + this.memory = memory; + } + + public String getOs() { + return os; + } - public String getID() { - return id; + public void setOs(String os) { + this.os = os; + } + } +} - public void setID(String id) { - this.id = id; - } - public String getDescription() { - return description; - } - public void setDescription(String description) { - this.description = description; - } - public Integer getCpu() { - return cpu; - } - public void setCpu(Integer cpu) { - this.cpu = cpu; - } - public Integer getMemory() { - return memory; - } - public void setMemory(Integer memory) { - this.memory = memory; - } - public String getOs() { - return os; - } - public void setOs(String os) { - this.os = os; - } - } -} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLVersionRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLVersionRequest.java index a11f1b5d..31eb05a2 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLVersionRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLVersionRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListUPgSQLVersionRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + public String getRegion() { return region; } @@ -44,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -52,7 +67,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -60,4 +75,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLVersionResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLVersionResponse.java index b1d238fd..ec248dba 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLVersionResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLVersionResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListUPgSQLVersionResponse extends Response { - /** postgresql版本信息 */ + + + /** + * postgresql版本信息 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,31 +41,49 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class PgSQLVersion extends Response { + + + /** + * PgSQL版本 + */ + @SerializedName("DBVersion") + private String dbVersion; + + + + /** + * 2位二进制控制是否开放单点和高可用,前一位控制单点是否开放,后一位控制高可用,例如"01"代表只开放高可用,"10"代表只开放单点,"11"代表全开放 + */ + @SerializedName("Available") + private String available; + + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public String getAvailable() { + return available; + } + + public void setAvailable(String available) { + this.available = available; + } + + } +} + + - public static class PgSQLVersion extends Response { - /** PgSQL版本 */ - @SerializedName("DBVersion") - private String dbVersion; - /** 2位二进制控制是否开放单点和高可用,前一位控制单点是否开放,后一位控制高可用,例如"01"代表只开放高可用,"10"代表只开放单点,"11"代表全开放 */ - @SerializedName("Available") - private String available; - public String getDBVersion() { - return dbVersion; - } - public void setDBVersion(String dbVersion) { - this.dbVersion = dbVersion; - } - public String getAvailable() { - return available; - } - public void setAvailable(String available) { - this.available = available; - } - } -} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/RestartUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/RestartUPgSQLInstanceRequest.java index 46b33d86..93514e96 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/RestartUPgSQLInstanceRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/RestartUPgSQLInstanceRequest.java @@ -1,55 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RestartUPgSQLInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例ID */ + + + + /** + * 实例ID + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - - /** 是否一并重启主机 */ + + + + /** + * 是否一并重启主机 + */ @UCloudParam("RestartHost") private Boolean restartHost; - - /** 是否强制重启 */ + + + + /** + * 是否强制重启 + */ @UCloudParam("ForceToRestart") private Boolean forceToRestart; - + + public String getRegion() { return region; } @@ -57,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -73,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -81,7 +108,7 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } - + public Boolean getRestartHost() { return restartHost; } @@ -89,7 +116,7 @@ public Boolean getRestartHost() { public void setRestartHost(Boolean restartHost) { this.restartHost = restartHost; } - + public Boolean getForceToRestart() { return forceToRestart; } @@ -97,4 +124,14 @@ public Boolean getForceToRestart() { public void setForceToRestart(Boolean forceToRestart) { this.forceToRestart = forceToRestart; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/RestartUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/RestartUPgSQLInstanceResponse.java index abea9e27..0329fe1e 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/RestartUPgSQLInstanceResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/RestartUPgSQLInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class RestartUPgSQLInstanceResponse extends Response {} +public class RestartUPgSQLInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StartUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StartUPgSQLInstanceRequest.java index 1cbccf4e..623d1177 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StartUPgSQLInstanceRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StartUPgSQLInstanceRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class StartUPgSQLInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例ID */ + + + + /** + * 实例ID + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -73,4 +92,14 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StartUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StartUPgSQLInstanceResponse.java index c99772c4..1a738d2e 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StartUPgSQLInstanceResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StartUPgSQLInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class StartUPgSQLInstanceResponse extends Response {} +public class StartUPgSQLInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLCreatingReadonlyRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLCreatingReadonlyRequest.java index 037bbdc9..b0502bde 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLCreatingReadonlyRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLCreatingReadonlyRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class StopUPgSQLCreatingReadonlyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 停止创建从库 */ + + + + /** + * 停止创建从库 + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -73,4 +92,14 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLCreatingReadonlyResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLCreatingReadonlyResponse.java index 55429047..66837376 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLCreatingReadonlyResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLCreatingReadonlyResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class StopUPgSQLCreatingReadonlyResponse extends Response {} +public class StopUPgSQLCreatingReadonlyResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLInstanceRequest.java index 7649d3c4..ac282430 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLInstanceRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLInstanceRequest.java @@ -1,55 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class StopUPgSQLInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 实例ID */ + + + + /** + * 实例ID + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - - /** 是否将主机一并关闭 */ + + + + /** + * 是否将主机一并关闭 + */ @UCloudParam("StopHost") private Boolean stopHost; - - /** 是否强制关闭 */ + + + + /** + * 是否强制关闭 + */ @UCloudParam("ForceToStop") private Boolean forceToStop; - + + public String getRegion() { return region; } @@ -57,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -73,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -81,7 +108,7 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } - + public Boolean getStopHost() { return stopHost; } @@ -89,7 +116,7 @@ public Boolean getStopHost() { public void setStopHost(Boolean stopHost) { this.stopHost = stopHost; } - + public Boolean getForceToStop() { return forceToStop; } @@ -97,4 +124,14 @@ public Boolean getForceToStop() { public void setForceToStop(Boolean forceToStop) { this.forceToStop = forceToStop; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLInstanceResponse.java index c5184b18..5a59a309 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLInstanceResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class StopUPgSQLInstanceResponse extends Response {} +public class StopUPgSQLInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLAttributeRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLAttributeRequest.java index db33a606..705c14a7 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLAttributeRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLAttributeRequest.java @@ -1,55 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUPgSQLAttributeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id */ + + + + /** + * DB实例Id + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - - /** 新的db名字(不能为空字符串) */ + + + + /** + * 新的db名字(不能为空字符串) + */ @UCloudParam("Name") private String name; - - /** 新的备注信息 */ + + + + /** + * 新的备注信息 + */ @UCloudParam("Remark") private String remark; - + + public String getRegion() { return region; } @@ -57,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -73,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -81,7 +108,7 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } - + public String getName() { return name; } @@ -89,7 +116,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getRemark() { return remark; } @@ -97,4 +124,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLAttributeResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLAttributeResponse.java index e7daeca7..a8246be4 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLAttributeResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUPgSQLAttributeResponse extends Response {} +public class UpdateUPgSQLAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLBackupStrategyRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLBackupStrategyRequest.java index 2be3414f..15afd8f7 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLBackupStrategyRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLBackupStrategyRequest.java @@ -1,59 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUPgSQLBackupStrategyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id */ + + + + /** + * DB实例Id + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - - /** 自动备份预计开始时间范围(00:00~23:59),例如:(3:00~4:00) */ + + + + /** + * 自动备份预计开始时间范围(00:00~23:59),例如:(3:00~4:00) + */ @UCloudParam("BackupTimeRange") private String backupTimeRange; - - /** 自动备份预期星期几(1~7)开始。默认1,2,3,4,5,6,7(星期一到星期日) */ + + + + /** + * 自动备份预期星期几(1~7)开始。默认1,2,3,4,5,6,7(星期一到星期日) + */ @UCloudParam("BackupWeek") private String backupWeek; - - /** 选择默认的备份方式 */ + + + + /** + * 选择默认的备份方式 + */ @UCloudParam("BackupMethod") private String backupMethod; - + + public String getRegion() { return region; } @@ -61,7 +92,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -69,7 +100,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -77,7 +108,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -85,7 +116,7 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } - + public String getBackupTimeRange() { return backupTimeRange; } @@ -93,7 +124,7 @@ public String getBackupTimeRange() { public void setBackupTimeRange(String backupTimeRange) { this.backupTimeRange = backupTimeRange; } - + public String getBackupWeek() { return backupWeek; } @@ -101,7 +132,7 @@ public String getBackupWeek() { public void setBackupWeek(String backupWeek) { this.backupWeek = backupWeek; } - + public String getBackupMethod() { return backupMethod; } @@ -109,4 +140,14 @@ public String getBackupMethod() { public void setBackupMethod(String backupMethod) { this.backupMethod = backupMethod; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLBackupStrategyResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLBackupStrategyResponse.java index 85560bc2..97765475 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLBackupStrategyResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLBackupStrategyResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUPgSQLBackupStrategyResponse extends Response {} +public class UpdateUPgSQLBackupStrategyResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordRequest.java index c0d5358a..f74dc139 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordRequest.java @@ -1,52 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUPgSQLPasswordRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** DB实例Id */ + + + + /** + * DB实例Id + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - - /** 新的db密码 */ + + + + /** + * 新的db密码 + */ @NotEmpty @UCloudParam("Password") private String password; - + + public String getRegion() { return region; } @@ -54,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -62,7 +85,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -70,7 +93,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -78,7 +101,7 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } - + public String getPassword() { return password; } @@ -86,4 +109,14 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordResponse.java index 552873d9..72785712 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUPgSQLPasswordResponse extends Response {} +public class UpdateUPgSQLPasswordResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceRequest.java index 36ef2bfd..8e9bbd9e 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceRequest.java @@ -1,57 +1,84 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpgradeUPgSQLInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 资源ID */ + + + + /** + * 资源ID + */ @NotEmpty @UCloudParam("InstanceID") private String instanceID; - - /** 磁盘空间(GB) */ + + + + /** + * 磁盘空间(GB) + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; - - /** 机器配置类型 */ + + + + /** + * 机器配置类型 + */ @NotEmpty @UCloudParam("MachineType") private String machineType; - + + public String getRegion() { return region; } @@ -59,7 +86,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -67,7 +94,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -75,7 +102,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceID() { return instanceID; } @@ -83,7 +110,7 @@ public String getInstanceID() { public void setInstanceID(String instanceID) { this.instanceID = instanceID; } - + public Integer getDiskSpace() { return diskSpace; } @@ -91,7 +118,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public String getMachineType() { return machineType; } @@ -99,4 +126,14 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceResponse.java index 31c1f3dc..9a038435 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpgradeUPgSQLInstanceResponse extends Response {} +public class UpgradeUPgSQLInstanceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UploadUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UploadUPgSQLParamTemplateRequest.java index e0dfd60a..45e94cd1 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UploadUPgSQLParamTemplateRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UploadUPgSQLParamTemplateRequest.java @@ -1,65 +1,100 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UploadUPgSQLParamTemplateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 模板名称 */ + + + + /** + * 模板名称 + */ @NotEmpty @UCloudParam("GroupName") private String groupName; - - /** 应用的DB版本 */ + + + + /** + * 应用的DB版本 + */ @NotEmpty @UCloudParam("DBVersion") private String dbVersion; - - /** base64编码过的 */ + + + + /** + * base64编码过的 + */ @NotEmpty @UCloudParam("Content") private String content; - - /** 模板描述 */ + + + + /** + * 模板描述 + */ @UCloudParam("Description") private String description; - - /** 版本 */ + + + + /** + * 版本 + */ @UCloudParam("ParamGroupType") private String paramGroupType; - + + public String getRegion() { return region; } @@ -67,7 +102,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -75,7 +110,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -83,7 +118,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getGroupName() { return groupName; } @@ -91,7 +126,7 @@ public String getGroupName() { public void setGroupName(String groupName) { this.groupName = groupName; } - + public String getDBVersion() { return dbVersion; } @@ -99,7 +134,7 @@ public String getDBVersion() { public void setDBVersion(String dbVersion) { this.dbVersion = dbVersion; } - + public String getContent() { return content; } @@ -107,7 +142,7 @@ public String getContent() { public void setContent(String content) { this.content = content; } - + public String getDescription() { return description; } @@ -115,7 +150,7 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } - + public String getParamGroupType() { return paramGroupType; } @@ -123,4 +158,14 @@ public String getParamGroupType() { public void setParamGroupType(String paramGroupType) { this.paramGroupType = paramGroupType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UploadUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UploadUPgSQLParamTemplateResponse.java index f0417a64..9e9a1da0 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UploadUPgSQLParamTemplateResponse.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UploadUPgSQLParamTemplateResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.upgsql.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class UploadUPgSQLParamTemplateResponse extends Response { - /** 生成的模板ID */ + + + /** + * 生成的模板ID + */ @SerializedName("GroupID") private Integer groupID; - + + public Integer getGroupID() { return groupID; } @@ -31,4 +41,14 @@ public Integer getGroupID() { public void setGroupID(Integer groupID) { this.groupID = groupID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index c19d85c7..5fa7e687 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-uphone - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/client/UPhoneClient.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/client/UPhoneClient.java index b40fbb3a..0b3714d4 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/client/UPhoneClient.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/client/UPhoneClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uphone.client; @@ -17,800 +19,1167 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + +import cn.ucloud.uphone.models.CreateUPhoneRequest; +import cn.ucloud.uphone.models.CreateUPhoneResponse; + + + import cn.ucloud.uphone.models.CreateUPhoneAppRequest; import cn.ucloud.uphone.models.CreateUPhoneAppResponse; + + + import cn.ucloud.uphone.models.CreateUPhoneAppVersionRequest; import cn.ucloud.uphone.models.CreateUPhoneAppVersionResponse; + + + import cn.ucloud.uphone.models.CreateUPhoneImageRequest; import cn.ucloud.uphone.models.CreateUPhoneImageResponse; -import cn.ucloud.uphone.models.CreateUPhoneRequest; -import cn.ucloud.uphone.models.CreateUPhoneResponse; + + + import cn.ucloud.uphone.models.CreateUPhoneServerRequest; import cn.ucloud.uphone.models.CreateUPhoneServerResponse; -import cn.ucloud.uphone.models.DeleteUPhoneImageRequest; -import cn.ucloud.uphone.models.DeleteUPhoneImageResponse; + + + import cn.ucloud.uphone.models.DeleteUPhoneRequest; import cn.ucloud.uphone.models.DeleteUPhoneResponse; + + + +import cn.ucloud.uphone.models.DeleteUPhoneImageRequest; +import cn.ucloud.uphone.models.DeleteUPhoneImageResponse; + + + import cn.ucloud.uphone.models.DeleteUPhoneServerRequest; import cn.ucloud.uphone.models.DeleteUPhoneServerResponse; + + + import cn.ucloud.uphone.models.DeleteUPhoneShareBandwidthRequest; import cn.ucloud.uphone.models.DeleteUPhoneShareBandwidthResponse; + + + +import cn.ucloud.uphone.models.DescribeUPhoneRequest; +import cn.ucloud.uphone.models.DescribeUPhoneResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneAppRequest; import cn.ucloud.uphone.models.DescribeUPhoneAppResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneAppVersionRequest; import cn.ucloud.uphone.models.DescribeUPhoneAppVersionResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneCitiesRequest; import cn.ucloud.uphone.models.DescribeUPhoneCitiesResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneDetailByAppRequest; import cn.ucloud.uphone.models.DescribeUPhoneDetailByAppResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneEipListRequest; import cn.ucloud.uphone.models.DescribeUPhoneEipListResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneImageRequest; import cn.ucloud.uphone.models.DescribeUPhoneImageResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneIpRegionsRequest; import cn.ucloud.uphone.models.DescribeUPhoneIpRegionsResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneJobRequest; import cn.ucloud.uphone.models.DescribeUPhoneJobResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneModelRequest; import cn.ucloud.uphone.models.DescribeUPhoneModelResponse; -import cn.ucloud.uphone.models.DescribeUPhoneRequest; -import cn.ucloud.uphone.models.DescribeUPhoneResponse; -import cn.ucloud.uphone.models.DescribeUPhoneServerModelRequest; -import cn.ucloud.uphone.models.DescribeUPhoneServerModelResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneServerRequest; import cn.ucloud.uphone.models.DescribeUPhoneServerResponse; + + + +import cn.ucloud.uphone.models.DescribeUPhoneServerModelRequest; +import cn.ucloud.uphone.models.DescribeUPhoneServerModelResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneShareBandwidthRequest; import cn.ucloud.uphone.models.DescribeUPhoneShareBandwidthResponse; + + + import cn.ucloud.uphone.models.GetUPhoneAllowanceRequest; import cn.ucloud.uphone.models.GetUPhoneAllowanceResponse; + + + import cn.ucloud.uphone.models.GetUPhoneBandwidthUpgradePriceRequest; import cn.ucloud.uphone.models.GetUPhoneBandwidthUpgradePriceResponse; + + + import cn.ucloud.uphone.models.GetUPhonePriceRequest; import cn.ucloud.uphone.models.GetUPhonePriceResponse; + + + import cn.ucloud.uphone.models.GetUPhoneRenewPriceRequest; import cn.ucloud.uphone.models.GetUPhoneRenewPriceResponse; + + + import cn.ucloud.uphone.models.GetUPhoneScreenCaptureRequest; import cn.ucloud.uphone.models.GetUPhoneScreenCaptureResponse; + + + import cn.ucloud.uphone.models.GetUPhoneServerPriceRequest; import cn.ucloud.uphone.models.GetUPhoneServerPriceResponse; + + + import cn.ucloud.uphone.models.GetUPhoneServerRenewPriceRequest; import cn.ucloud.uphone.models.GetUPhoneServerRenewPriceResponse; + + + import cn.ucloud.uphone.models.GetUPhoneShareBandwidthUpgradePriceRequest; import cn.ucloud.uphone.models.GetUPhoneShareBandwidthUpgradePriceResponse; + + + import cn.ucloud.uphone.models.ImportFileRequest; import cn.ucloud.uphone.models.ImportFileResponse; + + + import cn.ucloud.uphone.models.InstallUPhoneAppVersionRequest; import cn.ucloud.uphone.models.InstallUPhoneAppVersionResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneBandwidthRequest; import cn.ucloud.uphone.models.ModifyUPhoneBandwidthResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneNameRequest; import cn.ucloud.uphone.models.ModifyUPhoneNameResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneRemarkRequest; import cn.ucloud.uphone.models.ModifyUPhoneRemarkResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneServerNameRequest; import cn.ucloud.uphone.models.ModifyUPhoneServerNameResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneServerRemarkRequest; import cn.ucloud.uphone.models.ModifyUPhoneServerRemarkResponse; + + + +import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthRequest; +import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthNameRequest; import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthNameResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthRemarkRequest; import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthRemarkResponse; -import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthRequest; -import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthResponse; + + + import cn.ucloud.uphone.models.PoweroffUPhoneRequest; import cn.ucloud.uphone.models.PoweroffUPhoneResponse; + + + import cn.ucloud.uphone.models.PoweronUPhoneRequest; import cn.ucloud.uphone.models.PoweronUPhoneResponse; + + + import cn.ucloud.uphone.models.RebootUPhoneRequest; import cn.ucloud.uphone.models.RebootUPhoneResponse; + + + import cn.ucloud.uphone.models.RenewUPhoneRequest; import cn.ucloud.uphone.models.RenewUPhoneResponse; + + + import cn.ucloud.uphone.models.ResetUPhoneRequest; import cn.ucloud.uphone.models.ResetUPhoneResponse; + + + import cn.ucloud.uphone.models.RunAsyncCommandRequest; import cn.ucloud.uphone.models.RunAsyncCommandResponse; + + + import cn.ucloud.uphone.models.RunSyncCommandRequest; import cn.ucloud.uphone.models.RunSyncCommandResponse; + + + import cn.ucloud.uphone.models.SetUPhoneCallbackRequest; import cn.ucloud.uphone.models.SetUPhoneCallbackResponse; + + + import cn.ucloud.uphone.models.SetUPhoneConfigRequest; import cn.ucloud.uphone.models.SetUPhoneConfigResponse; + + + import cn.ucloud.uphone.models.SetUPhoneGPSRequest; import cn.ucloud.uphone.models.SetUPhoneGPSResponse; + + + import cn.ucloud.uphone.models.SetUPhoneManagerModeRequest; import cn.ucloud.uphone.models.SetUPhoneManagerModeResponse; + + + import cn.ucloud.uphone.models.SetUPhoneRootModeRequest; import cn.ucloud.uphone.models.SetUPhoneRootModeResponse; + + + import cn.ucloud.uphone.models.SetUPhoneTokenRequest; import cn.ucloud.uphone.models.SetUPhoneTokenResponse; + + + import cn.ucloud.uphone.models.UnInstallUPhoneAppVersionRequest; import cn.ucloud.uphone.models.UnInstallUPhoneAppVersionResponse; + + + import cn.ucloud.uphone.models.UpdateUPhoneImageRequest; import cn.ucloud.uphone.models.UpdateUPhoneImageResponse; -/** This client is used to call actions of **UPhone** service */ +/** + * This client is used to call actions of **UPhone** service + */ public class UPhoneClient extends DefaultClient implements UPhoneClientInterface { public UPhoneClient(Config config, Credential credential) { super(config, credential); } - - /** - * CreateUPhone - 创建云手机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUPhoneResponse createUPhone(CreateUPhoneRequest request) throws UCloudException { - request.setAction("CreateUPhone"); - return (CreateUPhoneResponse) this.invoke(request, CreateUPhoneResponse.class); - } - - /** - * CreateUPhoneApp - 创建云手机应用 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUPhoneAppResponse createUPhoneApp(CreateUPhoneAppRequest request) - throws UCloudException { - request.setAction("CreateUPhoneApp"); - return (CreateUPhoneAppResponse) this.invoke(request, CreateUPhoneAppResponse.class); - } - - /** - * CreateUPhoneAppVersion - 创建云手机应用版本 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUPhoneAppVersionResponse createUPhoneAppVersion( - CreateUPhoneAppVersionRequest request) throws UCloudException { - request.setAction("CreateUPhoneAppVersion"); - return (CreateUPhoneAppVersionResponse) - this.invoke(request, CreateUPhoneAppVersionResponse.class); - } - - /** - * CreateUPhoneImage - 创建云手机镜像 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUPhoneImageResponse createUPhoneImage(CreateUPhoneImageRequest request) - throws UCloudException { - request.setAction("CreateUPhoneImage"); - return (CreateUPhoneImageResponse) this.invoke(request, CreateUPhoneImageResponse.class); - } - - /** - * CreateUPhoneServer - 创建云手机服务器 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUPhoneServerResponse createUPhoneServer(CreateUPhoneServerRequest request) - throws UCloudException { - request.setAction("CreateUPhoneServer"); - return (CreateUPhoneServerResponse) this.invoke(request, CreateUPhoneServerResponse.class); - } - - /** - * DeleteUPhone - 删除云手机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUPhoneResponse deleteUPhone(DeleteUPhoneRequest request) throws UCloudException { - request.setAction("DeleteUPhone"); - return (DeleteUPhoneResponse) this.invoke(request, DeleteUPhoneResponse.class); - } - - /** - * DeleteUPhoneImage - 删除自制云手机镜像。 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUPhoneImageResponse deleteUPhoneImage(DeleteUPhoneImageRequest request) - throws UCloudException { - request.setAction("DeleteUPhoneImage"); - return (DeleteUPhoneImageResponse) this.invoke(request, DeleteUPhoneImageResponse.class); - } - - /** - * DeleteUPhoneServer - 删除云手机服务器 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUPhoneServerResponse deleteUPhoneServer(DeleteUPhoneServerRequest request) - throws UCloudException { - request.setAction("DeleteUPhoneServer"); - return (DeleteUPhoneServerResponse) this.invoke(request, DeleteUPhoneServerResponse.class); - } - - /** - * DeleteUPhoneShareBandwidth - 删除云手机共享带宽 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUPhoneShareBandwidthResponse deleteUPhoneShareBandwidth( - DeleteUPhoneShareBandwidthRequest request) throws UCloudException { - request.setAction("DeleteUPhoneShareBandwidth"); - return (DeleteUPhoneShareBandwidthResponse) - this.invoke(request, DeleteUPhoneShareBandwidthResponse.class); - } - - /** - * DescribeUPhone - 获取云手机列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneResponse describeUPhone(DescribeUPhoneRequest request) - throws UCloudException { - request.setAction("DescribeUPhone"); - return (DescribeUPhoneResponse) this.invoke(request, DescribeUPhoneResponse.class); - } - - /** - * DescribeUPhoneApp - 获取应用列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneAppResponse describeUPhoneApp(DescribeUPhoneAppRequest request) - throws UCloudException { - request.setAction("DescribeUPhoneApp"); - return (DescribeUPhoneAppResponse) this.invoke(request, DescribeUPhoneAppResponse.class); - } - - /** - * DescribeUPhoneAppVersion - 获取应用版本列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneAppVersionResponse describeUPhoneAppVersion( - DescribeUPhoneAppVersionRequest request) throws UCloudException { - request.setAction("DescribeUPhoneAppVersion"); - return (DescribeUPhoneAppVersionResponse) - this.invoke(request, DescribeUPhoneAppVersionResponse.class); - } - - /** - * DescribeUPhoneCities - 获取云手机城市列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneCitiesResponse describeUPhoneCities(DescribeUPhoneCitiesRequest request) - throws UCloudException { - request.setAction("DescribeUPhoneCities"); - return (DescribeUPhoneCitiesResponse) - this.invoke(request, DescribeUPhoneCitiesResponse.class); - } - - /** - * DescribeUPhoneDetailByApp - 查询应用所安装的云手机列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneDetailByAppResponse describeUPhoneDetailByApp( - DescribeUPhoneDetailByAppRequest request) throws UCloudException { - request.setAction("DescribeUPhoneDetailByApp"); - return (DescribeUPhoneDetailByAppResponse) - this.invoke(request, DescribeUPhoneDetailByAppResponse.class); - } - - /** - * DescribeUPhoneEipList - 获取云手机Eip列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneEipListResponse describeUPhoneEipList(DescribeUPhoneEipListRequest request) - throws UCloudException { - request.setAction("DescribeUPhoneEipList"); - return (DescribeUPhoneEipListResponse) - this.invoke(request, DescribeUPhoneEipListResponse.class); - } - - /** - * DescribeUPhoneImage - 获取云手机镜像信息列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneImageResponse describeUPhoneImage(DescribeUPhoneImageRequest request) - throws UCloudException { - request.setAction("DescribeUPhoneImage"); - return (DescribeUPhoneImageResponse) - this.invoke(request, DescribeUPhoneImageResponse.class); - } - - /** - * DescribeUPhoneIpRegions - 获取云手机所在城市支持绑定独立IP的地域列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneIpRegionsResponse describeUPhoneIpRegions( - DescribeUPhoneIpRegionsRequest request) throws UCloudException { - request.setAction("DescribeUPhoneIpRegions"); - return (DescribeUPhoneIpRegionsResponse) - this.invoke(request, DescribeUPhoneIpRegionsResponse.class); - } - - /** - * DescribeUPhoneJob - 查询Job的执行状态。 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneJobResponse describeUPhoneJob(DescribeUPhoneJobRequest request) - throws UCloudException { - request.setAction("DescribeUPhoneJob"); - return (DescribeUPhoneJobResponse) this.invoke(request, DescribeUPhoneJobResponse.class); - } - - /** - * DescribeUPhoneModel - 获取云手机规格列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneModelResponse describeUPhoneModel(DescribeUPhoneModelRequest request) - throws UCloudException { - request.setAction("DescribeUPhoneModel"); - return (DescribeUPhoneModelResponse) - this.invoke(request, DescribeUPhoneModelResponse.class); - } - - /** - * DescribeUPhoneServer - 获取云手机服务器列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneServerResponse describeUPhoneServer(DescribeUPhoneServerRequest request) - throws UCloudException { - request.setAction("DescribeUPhoneServer"); - return (DescribeUPhoneServerResponse) - this.invoke(request, DescribeUPhoneServerResponse.class); - } - - /** - * DescribeUPhoneServerModel - 获取ServerModel列表。 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneServerModelResponse describeUPhoneServerModel( - DescribeUPhoneServerModelRequest request) throws UCloudException { - request.setAction("DescribeUPhoneServerModel"); - return (DescribeUPhoneServerModelResponse) - this.invoke(request, DescribeUPhoneServerModelResponse.class); - } - - /** - * DescribeUPhoneShareBandwidth - 获取共享带宽列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUPhoneShareBandwidthResponse describeUPhoneShareBandwidth( - DescribeUPhoneShareBandwidthRequest request) throws UCloudException { - request.setAction("DescribeUPhoneShareBandwidth"); - return (DescribeUPhoneShareBandwidthResponse) - this.invoke(request, DescribeUPhoneShareBandwidthResponse.class); - } - - /** - * GetUPhoneAllowance - 获取云手机创建余量 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPhoneAllowanceResponse getUPhoneAllowance(GetUPhoneAllowanceRequest request) - throws UCloudException { - request.setAction("GetUPhoneAllowance"); - return (GetUPhoneAllowanceResponse) this.invoke(request, GetUPhoneAllowanceResponse.class); - } - - /** - * GetUPhoneBandwidthUpgradePrice - 获取云手机带宽升降级价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPhoneBandwidthUpgradePriceResponse getUPhoneBandwidthUpgradePrice( - GetUPhoneBandwidthUpgradePriceRequest request) throws UCloudException { - request.setAction("GetUPhoneBandwidthUpgradePrice"); - return (GetUPhoneBandwidthUpgradePriceResponse) - this.invoke(request, GetUPhoneBandwidthUpgradePriceResponse.class); - } - - /** - * GetUPhonePrice - 获取云手机价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPhonePriceResponse getUPhonePrice(GetUPhonePriceRequest request) - throws UCloudException { - request.setAction("GetUPhonePrice"); - return (GetUPhonePriceResponse) this.invoke(request, GetUPhonePriceResponse.class); - } - - /** - * GetUPhoneRenewPrice - 获取云手机续费价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPhoneRenewPriceResponse getUPhoneRenewPrice(GetUPhoneRenewPriceRequest request) - throws UCloudException { - request.setAction("GetUPhoneRenewPrice"); - return (GetUPhoneRenewPriceResponse) - this.invoke(request, GetUPhoneRenewPriceResponse.class); - } - - /** - * GetUPhoneScreenCapture - 云手机截屏 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPhoneScreenCaptureResponse getUPhoneScreenCapture( - GetUPhoneScreenCaptureRequest request) throws UCloudException { - request.setAction("GetUPhoneScreenCapture"); - return (GetUPhoneScreenCaptureResponse) - this.invoke(request, GetUPhoneScreenCaptureResponse.class); - } - - /** - * GetUPhoneServerPrice - 获取云手机服务器价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPhoneServerPriceResponse getUPhoneServerPrice(GetUPhoneServerPriceRequest request) - throws UCloudException { - request.setAction("GetUPhoneServerPrice"); - return (GetUPhoneServerPriceResponse) - this.invoke(request, GetUPhoneServerPriceResponse.class); - } - - /** - * GetUPhoneServerRenewPrice - 获取云手机服务器续费价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPhoneServerRenewPriceResponse getUPhoneServerRenewPrice( - GetUPhoneServerRenewPriceRequest request) throws UCloudException { - request.setAction("GetUPhoneServerRenewPrice"); - return (GetUPhoneServerRenewPriceResponse) - this.invoke(request, GetUPhoneServerRenewPriceResponse.class); - } - - /** - * GetUPhoneShareBandwidthUpgradePrice - 获取云手机共享带宽升降级价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUPhoneShareBandwidthUpgradePriceResponse getUPhoneShareBandwidthUpgradePrice( - GetUPhoneShareBandwidthUpgradePriceRequest request) throws UCloudException { - request.setAction("GetUPhoneShareBandwidthUpgradePrice"); - return (GetUPhoneShareBandwidthUpgradePriceResponse) - this.invoke(request, GetUPhoneShareBandwidthUpgradePriceResponse.class); - } - - /** - * ImportFile - 上传文件 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ImportFileResponse importFile(ImportFileRequest request) throws UCloudException { - request.setAction("ImportFile"); - return (ImportFileResponse) this.invoke(request, ImportFileResponse.class); - } - - /** - * InstallUPhoneAppVersion - 安装云手机应用版本 - * - * @param request Request object - * @throws UCloudException Exception - */ - public InstallUPhoneAppVersionResponse installUPhoneAppVersion( - InstallUPhoneAppVersionRequest request) throws UCloudException { - request.setAction("InstallUPhoneAppVersion"); - return (InstallUPhoneAppVersionResponse) - this.invoke(request, InstallUPhoneAppVersionResponse.class); - } - - /** - * ModifyUPhoneBandwidth - 修改云手机带宽 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUPhoneBandwidthResponse modifyUPhoneBandwidth(ModifyUPhoneBandwidthRequest request) - throws UCloudException { - request.setAction("ModifyUPhoneBandwidth"); - return (ModifyUPhoneBandwidthResponse) - this.invoke(request, ModifyUPhoneBandwidthResponse.class); - } - - /** - * ModifyUPhoneName - 修改云手机名称 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUPhoneNameResponse modifyUPhoneName(ModifyUPhoneNameRequest request) - throws UCloudException { - request.setAction("ModifyUPhoneName"); - return (ModifyUPhoneNameResponse) this.invoke(request, ModifyUPhoneNameResponse.class); - } - - /** - * ModifyUPhoneRemark - 修改云手机备注信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUPhoneRemarkResponse modifyUPhoneRemark(ModifyUPhoneRemarkRequest request) - throws UCloudException { - request.setAction("ModifyUPhoneRemark"); - return (ModifyUPhoneRemarkResponse) this.invoke(request, ModifyUPhoneRemarkResponse.class); - } - - /** - * ModifyUPhoneServerName - 修改云手机服务器名称 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUPhoneServerNameResponse modifyUPhoneServerName( - ModifyUPhoneServerNameRequest request) throws UCloudException { - request.setAction("ModifyUPhoneServerName"); - return (ModifyUPhoneServerNameResponse) - this.invoke(request, ModifyUPhoneServerNameResponse.class); - } - - /** - * ModifyUPhoneServerRemark - 修改云手机服务器备注信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUPhoneServerRemarkResponse modifyUPhoneServerRemark( - ModifyUPhoneServerRemarkRequest request) throws UCloudException { - request.setAction("ModifyUPhoneServerRemark"); - return (ModifyUPhoneServerRemarkResponse) - this.invoke(request, ModifyUPhoneServerRemarkResponse.class); - } - - /** - * ModifyUPhoneShareBandwidth - 修改云手机共享带宽 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUPhoneShareBandwidthResponse modifyUPhoneShareBandwidth( - ModifyUPhoneShareBandwidthRequest request) throws UCloudException { - request.setAction("ModifyUPhoneShareBandwidth"); - return (ModifyUPhoneShareBandwidthResponse) - this.invoke(request, ModifyUPhoneShareBandwidthResponse.class); - } - - /** - * ModifyUPhoneShareBandwidthName - 修改云手机共享带宽名称 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUPhoneShareBandwidthNameResponse modifyUPhoneShareBandwidthName( - ModifyUPhoneShareBandwidthNameRequest request) throws UCloudException { - request.setAction("ModifyUPhoneShareBandwidthName"); - return (ModifyUPhoneShareBandwidthNameResponse) - this.invoke(request, ModifyUPhoneShareBandwidthNameResponse.class); - } - - /** - * ModifyUPhoneShareBandwidthRemark - 修改云手机共享带宽备注 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyUPhoneShareBandwidthRemarkResponse modifyUPhoneShareBandwidthRemark( - ModifyUPhoneShareBandwidthRemarkRequest request) throws UCloudException { - request.setAction("ModifyUPhoneShareBandwidthRemark"); - return (ModifyUPhoneShareBandwidthRemarkResponse) - this.invoke(request, ModifyUPhoneShareBandwidthRemarkResponse.class); - } - - /** - * PoweroffUPhone - 关闭云手机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public PoweroffUPhoneResponse poweroffUPhone(PoweroffUPhoneRequest request) - throws UCloudException { - request.setAction("PoweroffUPhone"); - return (PoweroffUPhoneResponse) this.invoke(request, PoweroffUPhoneResponse.class); - } - - /** - * PoweronUPhone - 开启云手机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public PoweronUPhoneResponse poweronUPhone(PoweronUPhoneRequest request) - throws UCloudException { - request.setAction("PoweronUPhone"); - return (PoweronUPhoneResponse) this.invoke(request, PoweronUPhoneResponse.class); - } - - /** - * RebootUPhone - 重启云手机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RebootUPhoneResponse rebootUPhone(RebootUPhoneRequest request) throws UCloudException { - request.setAction("RebootUPhone"); - return (RebootUPhoneResponse) this.invoke(request, RebootUPhoneResponse.class); - } - - /** - * RenewUPhone - 一键新机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RenewUPhoneResponse renewUPhone(RenewUPhoneRequest request) throws UCloudException { - request.setAction("RenewUPhone"); - return (RenewUPhoneResponse) this.invoke(request, RenewUPhoneResponse.class); - } - - /** - * ResetUPhone - 重置云手机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ResetUPhoneResponse resetUPhone(ResetUPhoneRequest request) throws UCloudException { - request.setAction("ResetUPhone"); - return (ResetUPhoneResponse) this.invoke(request, ResetUPhoneResponse.class); - } - - /** - * RunAsyncCommand - 执行异步shell命令 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RunAsyncCommandResponse runAsyncCommand(RunAsyncCommandRequest request) - throws UCloudException { - request.setAction("RunAsyncCommand"); - return (RunAsyncCommandResponse) this.invoke(request, RunAsyncCommandResponse.class); - } - - /** - * RunSyncCommand - 执行同步shell命令 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RunSyncCommandResponse runSyncCommand(RunSyncCommandRequest request) - throws UCloudException { - request.setAction("RunSyncCommand"); - return (RunSyncCommandResponse) this.invoke(request, RunSyncCommandResponse.class); - } - - /** - * SetUPhoneCallback - 设置云手机异步操作回调 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SetUPhoneCallbackResponse setUPhoneCallback(SetUPhoneCallbackRequest request) - throws UCloudException { - request.setAction("SetUPhoneCallback"); - return (SetUPhoneCallbackResponse) this.invoke(request, SetUPhoneCallbackResponse.class); - } - - /** - * SetUPhoneConfig - 设置云手机参数 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SetUPhoneConfigResponse setUPhoneConfig(SetUPhoneConfigRequest request) - throws UCloudException { - request.setAction("SetUPhoneConfig"); - return (SetUPhoneConfigResponse) this.invoke(request, SetUPhoneConfigResponse.class); - } - - /** - * SetUPhoneGPS - 设置云手机GPS信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SetUPhoneGPSResponse setUPhoneGPS(SetUPhoneGPSRequest request) throws UCloudException { - request.setAction("SetUPhoneGPS"); - return (SetUPhoneGPSResponse) this.invoke(request, SetUPhoneGPSResponse.class); - } - - /** - * SetUPhoneManagerMode - 设置云手机管理模式 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SetUPhoneManagerModeResponse setUPhoneManagerMode(SetUPhoneManagerModeRequest request) - throws UCloudException { - request.setAction("SetUPhoneManagerMode"); - return (SetUPhoneManagerModeResponse) - this.invoke(request, SetUPhoneManagerModeResponse.class); - } - - /** - * SetUPhoneRootMode - 设置云手机Root模式 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SetUPhoneRootModeResponse setUPhoneRootMode(SetUPhoneRootModeRequest request) - throws UCloudException { - request.setAction("SetUPhoneRootMode"); - return (SetUPhoneRootModeResponse) this.invoke(request, SetUPhoneRootModeResponse.class); - } - - /** - * SetUPhoneToken - 设置云手机RTC连接Token - * - * @param request Request object - * @throws UCloudException Exception - */ - public SetUPhoneTokenResponse setUPhoneToken(SetUPhoneTokenRequest request) - throws UCloudException { - request.setAction("SetUPhoneToken"); - return (SetUPhoneTokenResponse) this.invoke(request, SetUPhoneTokenResponse.class); - } - - /** - * UnInstallUPhoneAppVersion - 卸载云手机应用版本 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UnInstallUPhoneAppVersionResponse unInstallUPhoneAppVersion( - UnInstallUPhoneAppVersionRequest request) throws UCloudException { - request.setAction("UnInstallUPhoneAppVersion"); - return (UnInstallUPhoneAppVersionResponse) - this.invoke(request, UnInstallUPhoneAppVersionResponse.class); - } - - /** - * UpdateUPhoneImage - 更新云手机镜像信息。 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUPhoneImageResponse updateUPhoneImage(UpdateUPhoneImageRequest request) - throws UCloudException { - request.setAction("UpdateUPhoneImage"); - return (UpdateUPhoneImageResponse) this.invoke(request, UpdateUPhoneImageResponse.class); - } + + + + + + + /** + * CreateUPhone - 创建云手机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPhoneResponse createUPhone(CreateUPhoneRequest request) throws UCloudException { + request.setAction("CreateUPhone"); + return (CreateUPhoneResponse) this.invoke(request, CreateUPhoneResponse.class); + } + + + + + + + /** + * CreateUPhoneApp - 创建云手机应用 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPhoneAppResponse createUPhoneApp(CreateUPhoneAppRequest request) throws UCloudException { + request.setAction("CreateUPhoneApp"); + return (CreateUPhoneAppResponse) this.invoke(request, CreateUPhoneAppResponse.class); + } + + + + + + + /** + * CreateUPhoneAppVersion - 创建云手机应用版本 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPhoneAppVersionResponse createUPhoneAppVersion(CreateUPhoneAppVersionRequest request) throws UCloudException { + request.setAction("CreateUPhoneAppVersion"); + return (CreateUPhoneAppVersionResponse) this.invoke(request, CreateUPhoneAppVersionResponse.class); + } + + + + + + + /** + * CreateUPhoneImage - 创建云手机镜像 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPhoneImageResponse createUPhoneImage(CreateUPhoneImageRequest request) throws UCloudException { + request.setAction("CreateUPhoneImage"); + return (CreateUPhoneImageResponse) this.invoke(request, CreateUPhoneImageResponse.class); + } + + + + + + + /** + * CreateUPhoneServer - 创建云手机服务器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPhoneServerResponse createUPhoneServer(CreateUPhoneServerRequest request) throws UCloudException { + request.setAction("CreateUPhoneServer"); + return (CreateUPhoneServerResponse) this.invoke(request, CreateUPhoneServerResponse.class); + } + + + + + + + /** + * DeleteUPhone - 删除云手机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPhoneResponse deleteUPhone(DeleteUPhoneRequest request) throws UCloudException { + request.setAction("DeleteUPhone"); + return (DeleteUPhoneResponse) this.invoke(request, DeleteUPhoneResponse.class); + } + + + + + + + /** + * DeleteUPhoneImage - 删除自制云手机镜像。 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPhoneImageResponse deleteUPhoneImage(DeleteUPhoneImageRequest request) throws UCloudException { + request.setAction("DeleteUPhoneImage"); + return (DeleteUPhoneImageResponse) this.invoke(request, DeleteUPhoneImageResponse.class); + } + + + + + + + /** + * DeleteUPhoneServer - 删除云手机服务器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPhoneServerResponse deleteUPhoneServer(DeleteUPhoneServerRequest request) throws UCloudException { + request.setAction("DeleteUPhoneServer"); + return (DeleteUPhoneServerResponse) this.invoke(request, DeleteUPhoneServerResponse.class); + } + + + + + + + /** + * DeleteUPhoneShareBandwidth - 删除云手机共享带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPhoneShareBandwidthResponse deleteUPhoneShareBandwidth(DeleteUPhoneShareBandwidthRequest request) throws UCloudException { + request.setAction("DeleteUPhoneShareBandwidth"); + return (DeleteUPhoneShareBandwidthResponse) this.invoke(request, DeleteUPhoneShareBandwidthResponse.class); + } + + + + + + + /** + * DescribeUPhone - 获取云手机列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneResponse describeUPhone(DescribeUPhoneRequest request) throws UCloudException { + request.setAction("DescribeUPhone"); + return (DescribeUPhoneResponse) this.invoke(request, DescribeUPhoneResponse.class); + } + + + + + + + /** + * DescribeUPhoneApp - 获取应用列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneAppResponse describeUPhoneApp(DescribeUPhoneAppRequest request) throws UCloudException { + request.setAction("DescribeUPhoneApp"); + return (DescribeUPhoneAppResponse) this.invoke(request, DescribeUPhoneAppResponse.class); + } + + + + + + + /** + * DescribeUPhoneAppVersion - 获取应用版本列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneAppVersionResponse describeUPhoneAppVersion(DescribeUPhoneAppVersionRequest request) throws UCloudException { + request.setAction("DescribeUPhoneAppVersion"); + return (DescribeUPhoneAppVersionResponse) this.invoke(request, DescribeUPhoneAppVersionResponse.class); + } + + + + + + + /** + * DescribeUPhoneCities - 获取云手机城市列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneCitiesResponse describeUPhoneCities(DescribeUPhoneCitiesRequest request) throws UCloudException { + request.setAction("DescribeUPhoneCities"); + return (DescribeUPhoneCitiesResponse) this.invoke(request, DescribeUPhoneCitiesResponse.class); + } + + + + + + + /** + * DescribeUPhoneDetailByApp - 查询应用所安装的云手机列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneDetailByAppResponse describeUPhoneDetailByApp(DescribeUPhoneDetailByAppRequest request) throws UCloudException { + request.setAction("DescribeUPhoneDetailByApp"); + return (DescribeUPhoneDetailByAppResponse) this.invoke(request, DescribeUPhoneDetailByAppResponse.class); + } + + + + + + + /** + * DescribeUPhoneEipList - 获取云手机Eip列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneEipListResponse describeUPhoneEipList(DescribeUPhoneEipListRequest request) throws UCloudException { + request.setAction("DescribeUPhoneEipList"); + return (DescribeUPhoneEipListResponse) this.invoke(request, DescribeUPhoneEipListResponse.class); + } + + + + + + + /** + * DescribeUPhoneImage - 获取云手机镜像信息列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneImageResponse describeUPhoneImage(DescribeUPhoneImageRequest request) throws UCloudException { + request.setAction("DescribeUPhoneImage"); + return (DescribeUPhoneImageResponse) this.invoke(request, DescribeUPhoneImageResponse.class); + } + + + + + + + /** + * DescribeUPhoneIpRegions - 获取云手机所在城市支持绑定独立IP的地域列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneIpRegionsResponse describeUPhoneIpRegions(DescribeUPhoneIpRegionsRequest request) throws UCloudException { + request.setAction("DescribeUPhoneIpRegions"); + return (DescribeUPhoneIpRegionsResponse) this.invoke(request, DescribeUPhoneIpRegionsResponse.class); + } + + + + + + + /** + * DescribeUPhoneJob - 查询Job的执行状态。 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneJobResponse describeUPhoneJob(DescribeUPhoneJobRequest request) throws UCloudException { + request.setAction("DescribeUPhoneJob"); + return (DescribeUPhoneJobResponse) this.invoke(request, DescribeUPhoneJobResponse.class); + } + + + + + + + /** + * DescribeUPhoneModel - 获取云手机规格列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneModelResponse describeUPhoneModel(DescribeUPhoneModelRequest request) throws UCloudException { + request.setAction("DescribeUPhoneModel"); + return (DescribeUPhoneModelResponse) this.invoke(request, DescribeUPhoneModelResponse.class); + } + + + + + + + /** + * DescribeUPhoneServer - 获取云手机服务器列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneServerResponse describeUPhoneServer(DescribeUPhoneServerRequest request) throws UCloudException { + request.setAction("DescribeUPhoneServer"); + return (DescribeUPhoneServerResponse) this.invoke(request, DescribeUPhoneServerResponse.class); + } + + + + + + + /** + * DescribeUPhoneServerModel - 获取ServerModel列表。 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneServerModelResponse describeUPhoneServerModel(DescribeUPhoneServerModelRequest request) throws UCloudException { + request.setAction("DescribeUPhoneServerModel"); + return (DescribeUPhoneServerModelResponse) this.invoke(request, DescribeUPhoneServerModelResponse.class); + } + + + + + + + /** + * DescribeUPhoneShareBandwidth - 获取共享带宽列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPhoneShareBandwidthResponse describeUPhoneShareBandwidth(DescribeUPhoneShareBandwidthRequest request) throws UCloudException { + request.setAction("DescribeUPhoneShareBandwidth"); + return (DescribeUPhoneShareBandwidthResponse) this.invoke(request, DescribeUPhoneShareBandwidthResponse.class); + } + + + + + + + /** + * GetUPhoneAllowance - 获取云手机创建余量 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPhoneAllowanceResponse getUPhoneAllowance(GetUPhoneAllowanceRequest request) throws UCloudException { + request.setAction("GetUPhoneAllowance"); + return (GetUPhoneAllowanceResponse) this.invoke(request, GetUPhoneAllowanceResponse.class); + } + + + + + + + /** + * GetUPhoneBandwidthUpgradePrice - 获取云手机带宽升降级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPhoneBandwidthUpgradePriceResponse getUPhoneBandwidthUpgradePrice(GetUPhoneBandwidthUpgradePriceRequest request) throws UCloudException { + request.setAction("GetUPhoneBandwidthUpgradePrice"); + return (GetUPhoneBandwidthUpgradePriceResponse) this.invoke(request, GetUPhoneBandwidthUpgradePriceResponse.class); + } + + + + + + + /** + * GetUPhonePrice - 获取云手机价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPhonePriceResponse getUPhonePrice(GetUPhonePriceRequest request) throws UCloudException { + request.setAction("GetUPhonePrice"); + return (GetUPhonePriceResponse) this.invoke(request, GetUPhonePriceResponse.class); + } + + + + + + + /** + * GetUPhoneRenewPrice - 获取云手机续费价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPhoneRenewPriceResponse getUPhoneRenewPrice(GetUPhoneRenewPriceRequest request) throws UCloudException { + request.setAction("GetUPhoneRenewPrice"); + return (GetUPhoneRenewPriceResponse) this.invoke(request, GetUPhoneRenewPriceResponse.class); + } + + + + + + + /** + * GetUPhoneScreenCapture - 云手机截屏 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPhoneScreenCaptureResponse getUPhoneScreenCapture(GetUPhoneScreenCaptureRequest request) throws UCloudException { + request.setAction("GetUPhoneScreenCapture"); + return (GetUPhoneScreenCaptureResponse) this.invoke(request, GetUPhoneScreenCaptureResponse.class); + } + + + + + + + /** + * GetUPhoneServerPrice - 获取云手机服务器价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPhoneServerPriceResponse getUPhoneServerPrice(GetUPhoneServerPriceRequest request) throws UCloudException { + request.setAction("GetUPhoneServerPrice"); + return (GetUPhoneServerPriceResponse) this.invoke(request, GetUPhoneServerPriceResponse.class); + } + + + + + + + /** + * GetUPhoneServerRenewPrice - 获取云手机服务器续费价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPhoneServerRenewPriceResponse getUPhoneServerRenewPrice(GetUPhoneServerRenewPriceRequest request) throws UCloudException { + request.setAction("GetUPhoneServerRenewPrice"); + return (GetUPhoneServerRenewPriceResponse) this.invoke(request, GetUPhoneServerRenewPriceResponse.class); + } + + + + + + + /** + * GetUPhoneShareBandwidthUpgradePrice - 获取云手机共享带宽升降级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPhoneShareBandwidthUpgradePriceResponse getUPhoneShareBandwidthUpgradePrice(GetUPhoneShareBandwidthUpgradePriceRequest request) throws UCloudException { + request.setAction("GetUPhoneShareBandwidthUpgradePrice"); + return (GetUPhoneShareBandwidthUpgradePriceResponse) this.invoke(request, GetUPhoneShareBandwidthUpgradePriceResponse.class); + } + + + + + + + /** + * ImportFile - 上传文件 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ImportFileResponse importFile(ImportFileRequest request) throws UCloudException { + request.setAction("ImportFile"); + return (ImportFileResponse) this.invoke(request, ImportFileResponse.class); + } + + + + + + + /** + * InstallUPhoneAppVersion - 安装云手机应用版本 + * + * @param request Request object + * @throws UCloudException Exception + */ + public InstallUPhoneAppVersionResponse installUPhoneAppVersion(InstallUPhoneAppVersionRequest request) throws UCloudException { + request.setAction("InstallUPhoneAppVersion"); + return (InstallUPhoneAppVersionResponse) this.invoke(request, InstallUPhoneAppVersionResponse.class); + } + + + + + + + /** + * ModifyUPhoneBandwidth - 修改云手机带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPhoneBandwidthResponse modifyUPhoneBandwidth(ModifyUPhoneBandwidthRequest request) throws UCloudException { + request.setAction("ModifyUPhoneBandwidth"); + return (ModifyUPhoneBandwidthResponse) this.invoke(request, ModifyUPhoneBandwidthResponse.class); + } + + + + + + + /** + * ModifyUPhoneName - 修改云手机名称 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPhoneNameResponse modifyUPhoneName(ModifyUPhoneNameRequest request) throws UCloudException { + request.setAction("ModifyUPhoneName"); + return (ModifyUPhoneNameResponse) this.invoke(request, ModifyUPhoneNameResponse.class); + } + + + + + + + /** + * ModifyUPhoneRemark - 修改云手机备注信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPhoneRemarkResponse modifyUPhoneRemark(ModifyUPhoneRemarkRequest request) throws UCloudException { + request.setAction("ModifyUPhoneRemark"); + return (ModifyUPhoneRemarkResponse) this.invoke(request, ModifyUPhoneRemarkResponse.class); + } + + + + + + + /** + * ModifyUPhoneServerName - 修改云手机服务器名称 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPhoneServerNameResponse modifyUPhoneServerName(ModifyUPhoneServerNameRequest request) throws UCloudException { + request.setAction("ModifyUPhoneServerName"); + return (ModifyUPhoneServerNameResponse) this.invoke(request, ModifyUPhoneServerNameResponse.class); + } + + + + + + + /** + * ModifyUPhoneServerRemark - 修改云手机服务器备注信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPhoneServerRemarkResponse modifyUPhoneServerRemark(ModifyUPhoneServerRemarkRequest request) throws UCloudException { + request.setAction("ModifyUPhoneServerRemark"); + return (ModifyUPhoneServerRemarkResponse) this.invoke(request, ModifyUPhoneServerRemarkResponse.class); + } + + + + + + + /** + * ModifyUPhoneShareBandwidth - 修改云手机共享带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPhoneShareBandwidthResponse modifyUPhoneShareBandwidth(ModifyUPhoneShareBandwidthRequest request) throws UCloudException { + request.setAction("ModifyUPhoneShareBandwidth"); + return (ModifyUPhoneShareBandwidthResponse) this.invoke(request, ModifyUPhoneShareBandwidthResponse.class); + } + + + + + + + /** + * ModifyUPhoneShareBandwidthName - 修改云手机共享带宽名称 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPhoneShareBandwidthNameResponse modifyUPhoneShareBandwidthName(ModifyUPhoneShareBandwidthNameRequest request) throws UCloudException { + request.setAction("ModifyUPhoneShareBandwidthName"); + return (ModifyUPhoneShareBandwidthNameResponse) this.invoke(request, ModifyUPhoneShareBandwidthNameResponse.class); + } + + + + + + + /** + * ModifyUPhoneShareBandwidthRemark - 修改云手机共享带宽备注 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPhoneShareBandwidthRemarkResponse modifyUPhoneShareBandwidthRemark(ModifyUPhoneShareBandwidthRemarkRequest request) throws UCloudException { + request.setAction("ModifyUPhoneShareBandwidthRemark"); + return (ModifyUPhoneShareBandwidthRemarkResponse) this.invoke(request, ModifyUPhoneShareBandwidthRemarkResponse.class); + } + + + + + + + /** + * PoweroffUPhone - 关闭云手机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public PoweroffUPhoneResponse poweroffUPhone(PoweroffUPhoneRequest request) throws UCloudException { + request.setAction("PoweroffUPhone"); + return (PoweroffUPhoneResponse) this.invoke(request, PoweroffUPhoneResponse.class); + } + + + + + + + /** + * PoweronUPhone - 开启云手机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public PoweronUPhoneResponse poweronUPhone(PoweronUPhoneRequest request) throws UCloudException { + request.setAction("PoweronUPhone"); + return (PoweronUPhoneResponse) this.invoke(request, PoweronUPhoneResponse.class); + } + + + + + + + /** + * RebootUPhone - 重启云手机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RebootUPhoneResponse rebootUPhone(RebootUPhoneRequest request) throws UCloudException { + request.setAction("RebootUPhone"); + return (RebootUPhoneResponse) this.invoke(request, RebootUPhoneResponse.class); + } + + + + + + + /** + * RenewUPhone - 一键新机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RenewUPhoneResponse renewUPhone(RenewUPhoneRequest request) throws UCloudException { + request.setAction("RenewUPhone"); + return (RenewUPhoneResponse) this.invoke(request, RenewUPhoneResponse.class); + } + + + + + + + /** + * ResetUPhone - 重置云手机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResetUPhoneResponse resetUPhone(ResetUPhoneRequest request) throws UCloudException { + request.setAction("ResetUPhone"); + return (ResetUPhoneResponse) this.invoke(request, ResetUPhoneResponse.class); + } + + + + + + + /** + * RunAsyncCommand - 执行异步shell命令 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RunAsyncCommandResponse runAsyncCommand(RunAsyncCommandRequest request) throws UCloudException { + request.setAction("RunAsyncCommand"); + return (RunAsyncCommandResponse) this.invoke(request, RunAsyncCommandResponse.class); + } + + + + + + + /** + * RunSyncCommand - 执行同步shell命令 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RunSyncCommandResponse runSyncCommand(RunSyncCommandRequest request) throws UCloudException { + request.setAction("RunSyncCommand"); + return (RunSyncCommandResponse) this.invoke(request, RunSyncCommandResponse.class); + } + + + + + + + /** + * SetUPhoneCallback - 设置云手机异步操作回调 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SetUPhoneCallbackResponse setUPhoneCallback(SetUPhoneCallbackRequest request) throws UCloudException { + request.setAction("SetUPhoneCallback"); + return (SetUPhoneCallbackResponse) this.invoke(request, SetUPhoneCallbackResponse.class); + } + + + + + + + /** + * SetUPhoneConfig - 设置云手机参数 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SetUPhoneConfigResponse setUPhoneConfig(SetUPhoneConfigRequest request) throws UCloudException { + request.setAction("SetUPhoneConfig"); + return (SetUPhoneConfigResponse) this.invoke(request, SetUPhoneConfigResponse.class); + } + + + + + + + /** + * SetUPhoneGPS - 设置云手机GPS信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SetUPhoneGPSResponse setUPhoneGPS(SetUPhoneGPSRequest request) throws UCloudException { + request.setAction("SetUPhoneGPS"); + return (SetUPhoneGPSResponse) this.invoke(request, SetUPhoneGPSResponse.class); + } + + + + + + + /** + * SetUPhoneManagerMode - 设置云手机管理模式 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SetUPhoneManagerModeResponse setUPhoneManagerMode(SetUPhoneManagerModeRequest request) throws UCloudException { + request.setAction("SetUPhoneManagerMode"); + return (SetUPhoneManagerModeResponse) this.invoke(request, SetUPhoneManagerModeResponse.class); + } + + + + + + + /** + * SetUPhoneRootMode - 设置云手机Root模式 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SetUPhoneRootModeResponse setUPhoneRootMode(SetUPhoneRootModeRequest request) throws UCloudException { + request.setAction("SetUPhoneRootMode"); + return (SetUPhoneRootModeResponse) this.invoke(request, SetUPhoneRootModeResponse.class); + } + + + + + + + /** + * SetUPhoneToken - 设置云手机RTC连接Token + * + * @param request Request object + * @throws UCloudException Exception + */ + public SetUPhoneTokenResponse setUPhoneToken(SetUPhoneTokenRequest request) throws UCloudException { + request.setAction("SetUPhoneToken"); + return (SetUPhoneTokenResponse) this.invoke(request, SetUPhoneTokenResponse.class); + } + + + + + + + /** + * UnInstallUPhoneAppVersion - 卸载云手机应用版本 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UnInstallUPhoneAppVersionResponse unInstallUPhoneAppVersion(UnInstallUPhoneAppVersionRequest request) throws UCloudException { + request.setAction("UnInstallUPhoneAppVersion"); + return (UnInstallUPhoneAppVersionResponse) this.invoke(request, UnInstallUPhoneAppVersionResponse.class); + } + + + + + + + /** + * UpdateUPhoneImage - 更新云手机镜像信息。 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPhoneImageResponse updateUPhoneImage(UpdateUPhoneImageRequest request) throws UCloudException { + request.setAction("UpdateUPhoneImage"); + return (UpdateUPhoneImageResponse) this.invoke(request, UpdateUPhoneImageResponse.class); + } } diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/client/UPhoneClientInterface.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/client/UPhoneClientInterface.java index 17b3c5db..ea96a505 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/client/UPhoneClientInterface.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/client/UPhoneClientInterface.java @@ -1,134 +1,308 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uphone.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + +import cn.ucloud.uphone.models.CreateUPhoneRequest; +import cn.ucloud.uphone.models.CreateUPhoneResponse; + + + import cn.ucloud.uphone.models.CreateUPhoneAppRequest; import cn.ucloud.uphone.models.CreateUPhoneAppResponse; + + + import cn.ucloud.uphone.models.CreateUPhoneAppVersionRequest; import cn.ucloud.uphone.models.CreateUPhoneAppVersionResponse; + + + import cn.ucloud.uphone.models.CreateUPhoneImageRequest; import cn.ucloud.uphone.models.CreateUPhoneImageResponse; -import cn.ucloud.uphone.models.CreateUPhoneRequest; -import cn.ucloud.uphone.models.CreateUPhoneResponse; + + + import cn.ucloud.uphone.models.CreateUPhoneServerRequest; import cn.ucloud.uphone.models.CreateUPhoneServerResponse; -import cn.ucloud.uphone.models.DeleteUPhoneImageRequest; -import cn.ucloud.uphone.models.DeleteUPhoneImageResponse; + + + import cn.ucloud.uphone.models.DeleteUPhoneRequest; import cn.ucloud.uphone.models.DeleteUPhoneResponse; + + + +import cn.ucloud.uphone.models.DeleteUPhoneImageRequest; +import cn.ucloud.uphone.models.DeleteUPhoneImageResponse; + + + import cn.ucloud.uphone.models.DeleteUPhoneServerRequest; import cn.ucloud.uphone.models.DeleteUPhoneServerResponse; + + + import cn.ucloud.uphone.models.DeleteUPhoneShareBandwidthRequest; import cn.ucloud.uphone.models.DeleteUPhoneShareBandwidthResponse; + + + +import cn.ucloud.uphone.models.DescribeUPhoneRequest; +import cn.ucloud.uphone.models.DescribeUPhoneResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneAppRequest; import cn.ucloud.uphone.models.DescribeUPhoneAppResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneAppVersionRequest; import cn.ucloud.uphone.models.DescribeUPhoneAppVersionResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneCitiesRequest; import cn.ucloud.uphone.models.DescribeUPhoneCitiesResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneDetailByAppRequest; import cn.ucloud.uphone.models.DescribeUPhoneDetailByAppResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneEipListRequest; import cn.ucloud.uphone.models.DescribeUPhoneEipListResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneImageRequest; import cn.ucloud.uphone.models.DescribeUPhoneImageResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneIpRegionsRequest; import cn.ucloud.uphone.models.DescribeUPhoneIpRegionsResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneJobRequest; import cn.ucloud.uphone.models.DescribeUPhoneJobResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneModelRequest; import cn.ucloud.uphone.models.DescribeUPhoneModelResponse; -import cn.ucloud.uphone.models.DescribeUPhoneRequest; -import cn.ucloud.uphone.models.DescribeUPhoneResponse; -import cn.ucloud.uphone.models.DescribeUPhoneServerModelRequest; -import cn.ucloud.uphone.models.DescribeUPhoneServerModelResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneServerRequest; import cn.ucloud.uphone.models.DescribeUPhoneServerResponse; + + + +import cn.ucloud.uphone.models.DescribeUPhoneServerModelRequest; +import cn.ucloud.uphone.models.DescribeUPhoneServerModelResponse; + + + import cn.ucloud.uphone.models.DescribeUPhoneShareBandwidthRequest; import cn.ucloud.uphone.models.DescribeUPhoneShareBandwidthResponse; + + + import cn.ucloud.uphone.models.GetUPhoneAllowanceRequest; import cn.ucloud.uphone.models.GetUPhoneAllowanceResponse; + + + import cn.ucloud.uphone.models.GetUPhoneBandwidthUpgradePriceRequest; import cn.ucloud.uphone.models.GetUPhoneBandwidthUpgradePriceResponse; + + + import cn.ucloud.uphone.models.GetUPhonePriceRequest; import cn.ucloud.uphone.models.GetUPhonePriceResponse; + + + import cn.ucloud.uphone.models.GetUPhoneRenewPriceRequest; import cn.ucloud.uphone.models.GetUPhoneRenewPriceResponse; + + + import cn.ucloud.uphone.models.GetUPhoneScreenCaptureRequest; import cn.ucloud.uphone.models.GetUPhoneScreenCaptureResponse; + + + import cn.ucloud.uphone.models.GetUPhoneServerPriceRequest; import cn.ucloud.uphone.models.GetUPhoneServerPriceResponse; + + + import cn.ucloud.uphone.models.GetUPhoneServerRenewPriceRequest; import cn.ucloud.uphone.models.GetUPhoneServerRenewPriceResponse; + + + import cn.ucloud.uphone.models.GetUPhoneShareBandwidthUpgradePriceRequest; import cn.ucloud.uphone.models.GetUPhoneShareBandwidthUpgradePriceResponse; + + + import cn.ucloud.uphone.models.ImportFileRequest; import cn.ucloud.uphone.models.ImportFileResponse; + + + import cn.ucloud.uphone.models.InstallUPhoneAppVersionRequest; import cn.ucloud.uphone.models.InstallUPhoneAppVersionResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneBandwidthRequest; import cn.ucloud.uphone.models.ModifyUPhoneBandwidthResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneNameRequest; import cn.ucloud.uphone.models.ModifyUPhoneNameResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneRemarkRequest; import cn.ucloud.uphone.models.ModifyUPhoneRemarkResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneServerNameRequest; import cn.ucloud.uphone.models.ModifyUPhoneServerNameResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneServerRemarkRequest; import cn.ucloud.uphone.models.ModifyUPhoneServerRemarkResponse; + + + +import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthRequest; +import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthNameRequest; import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthNameResponse; + + + import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthRemarkRequest; import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthRemarkResponse; -import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthRequest; -import cn.ucloud.uphone.models.ModifyUPhoneShareBandwidthResponse; + + + import cn.ucloud.uphone.models.PoweroffUPhoneRequest; import cn.ucloud.uphone.models.PoweroffUPhoneResponse; + + + import cn.ucloud.uphone.models.PoweronUPhoneRequest; import cn.ucloud.uphone.models.PoweronUPhoneResponse; + + + import cn.ucloud.uphone.models.RebootUPhoneRequest; import cn.ucloud.uphone.models.RebootUPhoneResponse; + + + import cn.ucloud.uphone.models.RenewUPhoneRequest; import cn.ucloud.uphone.models.RenewUPhoneResponse; + + + import cn.ucloud.uphone.models.ResetUPhoneRequest; import cn.ucloud.uphone.models.ResetUPhoneResponse; + + + import cn.ucloud.uphone.models.RunAsyncCommandRequest; import cn.ucloud.uphone.models.RunAsyncCommandResponse; + + + import cn.ucloud.uphone.models.RunSyncCommandRequest; import cn.ucloud.uphone.models.RunSyncCommandResponse; + + + import cn.ucloud.uphone.models.SetUPhoneCallbackRequest; import cn.ucloud.uphone.models.SetUPhoneCallbackResponse; + + + import cn.ucloud.uphone.models.SetUPhoneConfigRequest; import cn.ucloud.uphone.models.SetUPhoneConfigResponse; + + + import cn.ucloud.uphone.models.SetUPhoneGPSRequest; import cn.ucloud.uphone.models.SetUPhoneGPSResponse; + + + import cn.ucloud.uphone.models.SetUPhoneManagerModeRequest; import cn.ucloud.uphone.models.SetUPhoneManagerModeResponse; + + + import cn.ucloud.uphone.models.SetUPhoneRootModeRequest; import cn.ucloud.uphone.models.SetUPhoneRootModeResponse; + + + import cn.ucloud.uphone.models.SetUPhoneTokenRequest; import cn.ucloud.uphone.models.SetUPhoneTokenResponse; + + + import cn.ucloud.uphone.models.UnInstallUPhoneAppVersionRequest; import cn.ucloud.uphone.models.UnInstallUPhoneAppVersionResponse; + + + import cn.ucloud.uphone.models.UpdateUPhoneImageRequest; import cn.ucloud.uphone.models.UpdateUPhoneImageResponse; -/** This client is used to call actions of **UPhone** service */ +/** + * This client is used to call actions of **UPhone** service + */ public interface UPhoneClientInterface extends Client { - + + + + + + /** * CreateUPhone - 创建云手机 * @@ -136,43 +310,64 @@ public interface UPhoneClientInterface extends Client { * @throws UCloudException Exception */ public CreateUPhoneResponse createUPhone(CreateUPhoneRequest request) throws UCloudException; - + + + + + + /** * CreateUPhoneApp - 创建云手机应用 * * @param request Request object * @throws UCloudException Exception */ - public CreateUPhoneAppResponse createUPhoneApp(CreateUPhoneAppRequest request) - throws UCloudException; - + public CreateUPhoneAppResponse createUPhoneApp(CreateUPhoneAppRequest request) throws UCloudException; + + + + + + /** * CreateUPhoneAppVersion - 创建云手机应用版本 * * @param request Request object * @throws UCloudException Exception */ - public CreateUPhoneAppVersionResponse createUPhoneAppVersion( - CreateUPhoneAppVersionRequest request) throws UCloudException; - + public CreateUPhoneAppVersionResponse createUPhoneAppVersion(CreateUPhoneAppVersionRequest request) throws UCloudException; + + + + + + /** * CreateUPhoneImage - 创建云手机镜像 * * @param request Request object * @throws UCloudException Exception */ - public CreateUPhoneImageResponse createUPhoneImage(CreateUPhoneImageRequest request) - throws UCloudException; - + public CreateUPhoneImageResponse createUPhoneImage(CreateUPhoneImageRequest request) throws UCloudException; + + + + + + /** * CreateUPhoneServer - 创建云手机服务器 * * @param request Request object * @throws UCloudException Exception */ - public CreateUPhoneServerResponse createUPhoneServer(CreateUPhoneServerRequest request) - throws UCloudException; - + public CreateUPhoneServerResponse createUPhoneServer(CreateUPhoneServerRequest request) throws UCloudException; + + + + + + /** * DeleteUPhone - 删除云手机 * @@ -180,223 +375,324 @@ public CreateUPhoneServerResponse createUPhoneServer(CreateUPhoneServerRequest r * @throws UCloudException Exception */ public DeleteUPhoneResponse deleteUPhone(DeleteUPhoneRequest request) throws UCloudException; - + + + + + + /** * DeleteUPhoneImage - 删除自制云手机镜像。 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUPhoneImageResponse deleteUPhoneImage(DeleteUPhoneImageRequest request) - throws UCloudException; - + public DeleteUPhoneImageResponse deleteUPhoneImage(DeleteUPhoneImageRequest request) throws UCloudException; + + + + + + /** * DeleteUPhoneServer - 删除云手机服务器 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUPhoneServerResponse deleteUPhoneServer(DeleteUPhoneServerRequest request) - throws UCloudException; - + public DeleteUPhoneServerResponse deleteUPhoneServer(DeleteUPhoneServerRequest request) throws UCloudException; + + + + + + /** * DeleteUPhoneShareBandwidth - 删除云手机共享带宽 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUPhoneShareBandwidthResponse deleteUPhoneShareBandwidth( - DeleteUPhoneShareBandwidthRequest request) throws UCloudException; - + public DeleteUPhoneShareBandwidthResponse deleteUPhoneShareBandwidth(DeleteUPhoneShareBandwidthRequest request) throws UCloudException; + + + + + + /** * DescribeUPhone - 获取云手机列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneResponse describeUPhone(DescribeUPhoneRequest request) - throws UCloudException; - + public DescribeUPhoneResponse describeUPhone(DescribeUPhoneRequest request) throws UCloudException; + + + + + + /** * DescribeUPhoneApp - 获取应用列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneAppResponse describeUPhoneApp(DescribeUPhoneAppRequest request) - throws UCloudException; - + public DescribeUPhoneAppResponse describeUPhoneApp(DescribeUPhoneAppRequest request) throws UCloudException; + + + + + + /** * DescribeUPhoneAppVersion - 获取应用版本列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneAppVersionResponse describeUPhoneAppVersion( - DescribeUPhoneAppVersionRequest request) throws UCloudException; - + public DescribeUPhoneAppVersionResponse describeUPhoneAppVersion(DescribeUPhoneAppVersionRequest request) throws UCloudException; + + + + + + /** * DescribeUPhoneCities - 获取云手机城市列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneCitiesResponse describeUPhoneCities(DescribeUPhoneCitiesRequest request) - throws UCloudException; - + public DescribeUPhoneCitiesResponse describeUPhoneCities(DescribeUPhoneCitiesRequest request) throws UCloudException; + + + + + + /** * DescribeUPhoneDetailByApp - 查询应用所安装的云手机列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneDetailByAppResponse describeUPhoneDetailByApp( - DescribeUPhoneDetailByAppRequest request) throws UCloudException; - + public DescribeUPhoneDetailByAppResponse describeUPhoneDetailByApp(DescribeUPhoneDetailByAppRequest request) throws UCloudException; + + + + + + /** * DescribeUPhoneEipList - 获取云手机Eip列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneEipListResponse describeUPhoneEipList(DescribeUPhoneEipListRequest request) - throws UCloudException; - + public DescribeUPhoneEipListResponse describeUPhoneEipList(DescribeUPhoneEipListRequest request) throws UCloudException; + + + + + + /** * DescribeUPhoneImage - 获取云手机镜像信息列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneImageResponse describeUPhoneImage(DescribeUPhoneImageRequest request) - throws UCloudException; - + public DescribeUPhoneImageResponse describeUPhoneImage(DescribeUPhoneImageRequest request) throws UCloudException; + + + + + + /** * DescribeUPhoneIpRegions - 获取云手机所在城市支持绑定独立IP的地域列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneIpRegionsResponse describeUPhoneIpRegions( - DescribeUPhoneIpRegionsRequest request) throws UCloudException; - + public DescribeUPhoneIpRegionsResponse describeUPhoneIpRegions(DescribeUPhoneIpRegionsRequest request) throws UCloudException; + + + + + + /** * DescribeUPhoneJob - 查询Job的执行状态。 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneJobResponse describeUPhoneJob(DescribeUPhoneJobRequest request) - throws UCloudException; - + public DescribeUPhoneJobResponse describeUPhoneJob(DescribeUPhoneJobRequest request) throws UCloudException; + + + + + + /** * DescribeUPhoneModel - 获取云手机规格列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneModelResponse describeUPhoneModel(DescribeUPhoneModelRequest request) - throws UCloudException; - + public DescribeUPhoneModelResponse describeUPhoneModel(DescribeUPhoneModelRequest request) throws UCloudException; + + + + + + /** * DescribeUPhoneServer - 获取云手机服务器列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneServerResponse describeUPhoneServer(DescribeUPhoneServerRequest request) - throws UCloudException; - + public DescribeUPhoneServerResponse describeUPhoneServer(DescribeUPhoneServerRequest request) throws UCloudException; + + + + + + /** * DescribeUPhoneServerModel - 获取ServerModel列表。 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneServerModelResponse describeUPhoneServerModel( - DescribeUPhoneServerModelRequest request) throws UCloudException; - + public DescribeUPhoneServerModelResponse describeUPhoneServerModel(DescribeUPhoneServerModelRequest request) throws UCloudException; + + + + + + /** * DescribeUPhoneShareBandwidth - 获取共享带宽列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUPhoneShareBandwidthResponse describeUPhoneShareBandwidth( - DescribeUPhoneShareBandwidthRequest request) throws UCloudException; - + public DescribeUPhoneShareBandwidthResponse describeUPhoneShareBandwidth(DescribeUPhoneShareBandwidthRequest request) throws UCloudException; + + + + + + /** * GetUPhoneAllowance - 获取云手机创建余量 * * @param request Request object * @throws UCloudException Exception */ - public GetUPhoneAllowanceResponse getUPhoneAllowance(GetUPhoneAllowanceRequest request) - throws UCloudException; - + public GetUPhoneAllowanceResponse getUPhoneAllowance(GetUPhoneAllowanceRequest request) throws UCloudException; + + + + + + /** * GetUPhoneBandwidthUpgradePrice - 获取云手机带宽升降级价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUPhoneBandwidthUpgradePriceResponse getUPhoneBandwidthUpgradePrice( - GetUPhoneBandwidthUpgradePriceRequest request) throws UCloudException; - + public GetUPhoneBandwidthUpgradePriceResponse getUPhoneBandwidthUpgradePrice(GetUPhoneBandwidthUpgradePriceRequest request) throws UCloudException; + + + + + + /** * GetUPhonePrice - 获取云手机价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUPhonePriceResponse getUPhonePrice(GetUPhonePriceRequest request) - throws UCloudException; - + public GetUPhonePriceResponse getUPhonePrice(GetUPhonePriceRequest request) throws UCloudException; + + + + + + /** * GetUPhoneRenewPrice - 获取云手机续费价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUPhoneRenewPriceResponse getUPhoneRenewPrice(GetUPhoneRenewPriceRequest request) - throws UCloudException; - + public GetUPhoneRenewPriceResponse getUPhoneRenewPrice(GetUPhoneRenewPriceRequest request) throws UCloudException; + + + + + + /** * GetUPhoneScreenCapture - 云手机截屏 * * @param request Request object * @throws UCloudException Exception */ - public GetUPhoneScreenCaptureResponse getUPhoneScreenCapture( - GetUPhoneScreenCaptureRequest request) throws UCloudException; - + public GetUPhoneScreenCaptureResponse getUPhoneScreenCapture(GetUPhoneScreenCaptureRequest request) throws UCloudException; + + + + + + /** * GetUPhoneServerPrice - 获取云手机服务器价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUPhoneServerPriceResponse getUPhoneServerPrice(GetUPhoneServerPriceRequest request) - throws UCloudException; - + public GetUPhoneServerPriceResponse getUPhoneServerPrice(GetUPhoneServerPriceRequest request) throws UCloudException; + + + + + + /** * GetUPhoneServerRenewPrice - 获取云手机服务器续费价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUPhoneServerRenewPriceResponse getUPhoneServerRenewPrice( - GetUPhoneServerRenewPriceRequest request) throws UCloudException; - + public GetUPhoneServerRenewPriceResponse getUPhoneServerRenewPrice(GetUPhoneServerRenewPriceRequest request) throws UCloudException; + + + + + + /** * GetUPhoneShareBandwidthUpgradePrice - 获取云手机共享带宽升降级价格 * * @param request Request object * @throws UCloudException Exception */ - public GetUPhoneShareBandwidthUpgradePriceResponse getUPhoneShareBandwidthUpgradePrice( - GetUPhoneShareBandwidthUpgradePriceRequest request) throws UCloudException; - + public GetUPhoneShareBandwidthUpgradePriceResponse getUPhoneShareBandwidthUpgradePrice(GetUPhoneShareBandwidthUpgradePriceRequest request) throws UCloudException; + + + + + + /** * ImportFile - 上传文件 * @@ -404,97 +700,142 @@ public GetUPhoneShareBandwidthUpgradePriceResponse getUPhoneShareBandwidthUpgrad * @throws UCloudException Exception */ public ImportFileResponse importFile(ImportFileRequest request) throws UCloudException; - + + + + + + /** * InstallUPhoneAppVersion - 安装云手机应用版本 * * @param request Request object * @throws UCloudException Exception */ - public InstallUPhoneAppVersionResponse installUPhoneAppVersion( - InstallUPhoneAppVersionRequest request) throws UCloudException; - + public InstallUPhoneAppVersionResponse installUPhoneAppVersion(InstallUPhoneAppVersionRequest request) throws UCloudException; + + + + + + /** * ModifyUPhoneBandwidth - 修改云手机带宽 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUPhoneBandwidthResponse modifyUPhoneBandwidth(ModifyUPhoneBandwidthRequest request) - throws UCloudException; - + public ModifyUPhoneBandwidthResponse modifyUPhoneBandwidth(ModifyUPhoneBandwidthRequest request) throws UCloudException; + + + + + + /** * ModifyUPhoneName - 修改云手机名称 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUPhoneNameResponse modifyUPhoneName(ModifyUPhoneNameRequest request) - throws UCloudException; - + public ModifyUPhoneNameResponse modifyUPhoneName(ModifyUPhoneNameRequest request) throws UCloudException; + + + + + + /** * ModifyUPhoneRemark - 修改云手机备注信息 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUPhoneRemarkResponse modifyUPhoneRemark(ModifyUPhoneRemarkRequest request) - throws UCloudException; - + public ModifyUPhoneRemarkResponse modifyUPhoneRemark(ModifyUPhoneRemarkRequest request) throws UCloudException; + + + + + + /** * ModifyUPhoneServerName - 修改云手机服务器名称 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUPhoneServerNameResponse modifyUPhoneServerName( - ModifyUPhoneServerNameRequest request) throws UCloudException; - + public ModifyUPhoneServerNameResponse modifyUPhoneServerName(ModifyUPhoneServerNameRequest request) throws UCloudException; + + + + + + /** * ModifyUPhoneServerRemark - 修改云手机服务器备注信息 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUPhoneServerRemarkResponse modifyUPhoneServerRemark( - ModifyUPhoneServerRemarkRequest request) throws UCloudException; - + public ModifyUPhoneServerRemarkResponse modifyUPhoneServerRemark(ModifyUPhoneServerRemarkRequest request) throws UCloudException; + + + + + + /** * ModifyUPhoneShareBandwidth - 修改云手机共享带宽 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUPhoneShareBandwidthResponse modifyUPhoneShareBandwidth( - ModifyUPhoneShareBandwidthRequest request) throws UCloudException; - + public ModifyUPhoneShareBandwidthResponse modifyUPhoneShareBandwidth(ModifyUPhoneShareBandwidthRequest request) throws UCloudException; + + + + + + /** * ModifyUPhoneShareBandwidthName - 修改云手机共享带宽名称 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUPhoneShareBandwidthNameResponse modifyUPhoneShareBandwidthName( - ModifyUPhoneShareBandwidthNameRequest request) throws UCloudException; - + public ModifyUPhoneShareBandwidthNameResponse modifyUPhoneShareBandwidthName(ModifyUPhoneShareBandwidthNameRequest request) throws UCloudException; + + + + + + /** * ModifyUPhoneShareBandwidthRemark - 修改云手机共享带宽备注 * * @param request Request object * @throws UCloudException Exception */ - public ModifyUPhoneShareBandwidthRemarkResponse modifyUPhoneShareBandwidthRemark( - ModifyUPhoneShareBandwidthRemarkRequest request) throws UCloudException; - + public ModifyUPhoneShareBandwidthRemarkResponse modifyUPhoneShareBandwidthRemark(ModifyUPhoneShareBandwidthRemarkRequest request) throws UCloudException; + + + + + + /** * PoweroffUPhone - 关闭云手机 * * @param request Request object * @throws UCloudException Exception */ - public PoweroffUPhoneResponse poweroffUPhone(PoweroffUPhoneRequest request) - throws UCloudException; - + public PoweroffUPhoneResponse poweroffUPhone(PoweroffUPhoneRequest request) throws UCloudException; + + + + + + /** * PoweronUPhone - 开启云手机 * @@ -502,7 +843,12 @@ public PoweroffUPhoneResponse poweroffUPhone(PoweroffUPhoneRequest request) * @throws UCloudException Exception */ public PoweronUPhoneResponse poweronUPhone(PoweronUPhoneRequest request) throws UCloudException; - + + + + + + /** * RebootUPhone - 重启云手机 * @@ -510,7 +856,12 @@ public PoweroffUPhoneResponse poweroffUPhone(PoweroffUPhoneRequest request) * @throws UCloudException Exception */ public RebootUPhoneResponse rebootUPhone(RebootUPhoneRequest request) throws UCloudException; - + + + + + + /** * RenewUPhone - 一键新机 * @@ -518,7 +869,12 @@ public PoweroffUPhoneResponse poweroffUPhone(PoweroffUPhoneRequest request) * @throws UCloudException Exception */ public RenewUPhoneResponse renewUPhone(RenewUPhoneRequest request) throws UCloudException; - + + + + + + /** * ResetUPhone - 重置云手机 * @@ -526,43 +882,64 @@ public PoweroffUPhoneResponse poweroffUPhone(PoweroffUPhoneRequest request) * @throws UCloudException Exception */ public ResetUPhoneResponse resetUPhone(ResetUPhoneRequest request) throws UCloudException; - + + + + + + /** * RunAsyncCommand - 执行异步shell命令 * * @param request Request object * @throws UCloudException Exception */ - public RunAsyncCommandResponse runAsyncCommand(RunAsyncCommandRequest request) - throws UCloudException; - + public RunAsyncCommandResponse runAsyncCommand(RunAsyncCommandRequest request) throws UCloudException; + + + + + + /** * RunSyncCommand - 执行同步shell命令 * * @param request Request object * @throws UCloudException Exception */ - public RunSyncCommandResponse runSyncCommand(RunSyncCommandRequest request) - throws UCloudException; - + public RunSyncCommandResponse runSyncCommand(RunSyncCommandRequest request) throws UCloudException; + + + + + + /** * SetUPhoneCallback - 设置云手机异步操作回调 * * @param request Request object * @throws UCloudException Exception */ - public SetUPhoneCallbackResponse setUPhoneCallback(SetUPhoneCallbackRequest request) - throws UCloudException; - + public SetUPhoneCallbackResponse setUPhoneCallback(SetUPhoneCallbackRequest request) throws UCloudException; + + + + + + /** * SetUPhoneConfig - 设置云手机参数 * * @param request Request object * @throws UCloudException Exception */ - public SetUPhoneConfigResponse setUPhoneConfig(SetUPhoneConfigRequest request) - throws UCloudException; - + public SetUPhoneConfigResponse setUPhoneConfig(SetUPhoneConfigRequest request) throws UCloudException; + + + + + + /** * SetUPhoneGPS - 设置云手机GPS信息 * @@ -570,49 +947,69 @@ public SetUPhoneConfigResponse setUPhoneConfig(SetUPhoneConfigRequest request) * @throws UCloudException Exception */ public SetUPhoneGPSResponse setUPhoneGPS(SetUPhoneGPSRequest request) throws UCloudException; - + + + + + + /** * SetUPhoneManagerMode - 设置云手机管理模式 * * @param request Request object * @throws UCloudException Exception */ - public SetUPhoneManagerModeResponse setUPhoneManagerMode(SetUPhoneManagerModeRequest request) - throws UCloudException; - + public SetUPhoneManagerModeResponse setUPhoneManagerMode(SetUPhoneManagerModeRequest request) throws UCloudException; + + + + + + /** * SetUPhoneRootMode - 设置云手机Root模式 * * @param request Request object * @throws UCloudException Exception */ - public SetUPhoneRootModeResponse setUPhoneRootMode(SetUPhoneRootModeRequest request) - throws UCloudException; - + public SetUPhoneRootModeResponse setUPhoneRootMode(SetUPhoneRootModeRequest request) throws UCloudException; + + + + + + /** * SetUPhoneToken - 设置云手机RTC连接Token * * @param request Request object * @throws UCloudException Exception */ - public SetUPhoneTokenResponse setUPhoneToken(SetUPhoneTokenRequest request) - throws UCloudException; - + public SetUPhoneTokenResponse setUPhoneToken(SetUPhoneTokenRequest request) throws UCloudException; + + + + + + /** * UnInstallUPhoneAppVersion - 卸载云手机应用版本 * * @param request Request object * @throws UCloudException Exception */ - public UnInstallUPhoneAppVersionResponse unInstallUPhoneAppVersion( - UnInstallUPhoneAppVersionRequest request) throws UCloudException; - + public UnInstallUPhoneAppVersionResponse unInstallUPhoneAppVersion(UnInstallUPhoneAppVersionRequest request) throws UCloudException; + + + + + + /** * UpdateUPhoneImage - 更新云手机镜像信息。 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUPhoneImageResponse updateUPhoneImage(UpdateUPhoneImageRequest request) - throws UCloudException; + public UpdateUPhoneImageResponse updateUPhoneImage(UpdateUPhoneImageRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppRequest.java index 48ac0bc5..f3565daf 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppRequest.java @@ -1,45 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUPhoneAppRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 应用名称。 */ + + + + /** + * 应用名称。 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 应用描述。 */ + + + + /** + * 应用描述。 + */ @UCloudParam("Description") private String description; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -47,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -55,7 +76,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getDescription() { return description; } @@ -63,7 +84,8 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } - + + public String getProductType() { return productType; } @@ -71,4 +93,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppResponse.java index 88b187ab..6f6f76c7 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUPhoneAppResponse extends Response { - /** 应用的唯一标识ID */ + + + /** + * 应用的唯一标识ID + */ @SerializedName("AppId") private String appId; - + + public String getAppId() { return appId; } @@ -31,4 +41,14 @@ public String getAppId() { public void setAppId(String appId) { this.appId = appId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppVersionRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppVersionRequest.java index 361d7f64..c6c1476f 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppVersionRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppVersionRequest.java @@ -1,55 +1,88 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUPhoneAppVersionRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 应用版本名称,最大字符长度为255。 */ + + + + /** + * 应用版本名称,最大字符长度为255。 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 应用的唯一标识ID。 */ + + + + /** + * 应用的唯一标识ID。 + */ @NotEmpty @UCloudParam("AppId") private String appId; - - /** 应用版本相关的Apk文件存放的公网URL地址。 */ + + + + /** + * 应用版本相关的Apk文件存放的公网URL地址。 + */ @NotEmpty @UCloudParam("URL") private String url; - - /** 应用版本描述。 */ + + + + /** + * 应用版本描述。 + */ @UCloudParam("Description") private String description; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + + + + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -57,7 +90,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -65,7 +98,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getAppId() { return appId; } @@ -73,7 +106,7 @@ public String getAppId() { public void setAppId(String appId) { this.appId = appId; } - + public String getURL() { return url; } @@ -81,7 +114,7 @@ public String getURL() { public void setURL(String url) { this.url = url; } - + public String getDescription() { return description; } @@ -89,7 +122,10 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } - + + + + public String getProductType() { return productType; } @@ -97,4 +133,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppVersionResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppVersionResponse.java index 2315c9c4..da5f86f6 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppVersionResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneAppVersionResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUPhoneAppVersionResponse extends Response { - /** 应用版本的唯一标识ID */ + + + /** + * 应用版本的唯一标识ID + */ @SerializedName("AppVersionId") private String appVersionId; - + + public String getAppVersionId() { return appVersionId; } @@ -31,4 +41,14 @@ public String getAppVersionId() { public void setAppVersionId(String appVersionId) { this.appVersionId = appVersionId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneImageRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneImageRequest.java index dcd05b6c..67678a02 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneImageRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneImageRequest.java @@ -1,56 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUPhoneImageRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 手机实例的资源ID */ + + + + /** + * 手机实例的资源ID + */ @NotEmpty @UCloudParam("UPhoneId") private String uPhoneId; - - /** 镜像名称。长度为2~128个英文或中文字符。 */ + + + + /** + * 镜像名称。长度为2~128个英文或中文字符。 + */ @NotEmpty @UCloudParam("Name") private String name; - + + + /** * 城市Id,通过[获取城市列表](https://cms-docs.ucloudadmin.com/api/uphone-api/describe_u_phone_cities)获取 */ @UCloudParam("CityId") private String cityId; - - /** 镜像的描述信息。长度为2~256个英文或中文字符 */ + + + + /** + * 镜像的描述信息。长度为2~256个英文或中文字符 + */ @UCloudParam("Description") private String description; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -58,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPhoneId() { return uPhoneId; } @@ -66,7 +91,7 @@ public String getUPhoneId() { public void setUPhoneId(String uPhoneId) { this.uPhoneId = uPhoneId; } - + public String getName() { return name; } @@ -74,7 +99,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getCityId() { return cityId; } @@ -82,7 +107,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getDescription() { return description; } @@ -90,7 +115,7 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } - + public String getProductType() { return productType; } @@ -98,4 +123,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneImageResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneImageResponse.java index d7377c94..9e63f7df 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneImageResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneImageResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUPhoneImageResponse extends Response { - /** 云手机自定义镜像资源 ID */ + + + /** + * 云手机自定义镜像资源 ID + */ @SerializedName("ImageId") private String imageId; - - /** 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 */ + + + + /** + * 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 + */ @SerializedName("JobId") private String jobId; - + + public String getImageId() { return imageId; } @@ -35,7 +49,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getJobId() { return jobId; } @@ -43,4 +57,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneRequest.java index e0eb931b..0dec6afb 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneRequest.java @@ -1,105 +1,186 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUPhoneRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机实例名称,默认:UPhone。如果同时创建多个,则增加数字后缀,如UPhone-1 */ + + + + /** + * 云手机实例名称,默认:UPhone。如果同时创建多个,则增加数字后缀,如UPhone-1 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表]()查询支持的云手机规格。 */ + + + + /** + * 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表]()查询支持的云手机规格。 + */ @NotEmpty @UCloudParam("UPhoneModelName") private String uPhoneModelName; - - /** 云手机镜像ID,不超过32个字节。可通过[查询手机镜像]()查询云手机规格对应的镜像ID。 */ + + + + /** + * 云手机镜像ID,不超过32个字节。可通过[查询手机镜像]()查询云手机规格对应的镜像ID。 + */ @NotEmpty @UCloudParam("ImageId") private String imageId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取;新增一个oversea虚拟城市,可以用来绑定海外独立IP */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取;新增一个oversea虚拟城市,可以用来绑定海外独立IP + */ @NotEmpty @UCloudParam("CityId") private String cityId; - - /** 创建云手机的个数 */ + + + + /** + * 创建云手机的个数 + */ @NotEmpty @UCloudParam("UPhoneCount") private Integer uPhoneCount; - - /** 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付 */ + + + + + + /** + * 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长。默认值: 1。月付时,此参数传0,代表购买至月末。 */ + + + + /** + * 购买时长。默认值: 1。月付时,此参数传0,代表购买至月末。 + */ @UCloudParam("Quantity") private String quantity; - - /** 购买独立IP必须有此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 购买独立IP必须有此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("IpDestRegion") private String ipDestRegion; - - /** 业务组。默认:Default(Default即为未分组)。请遵照[[api:uhost-api:specification|字段规范]]设定业务组。 */ + + + + /** + * 业务组。默认:Default(Default即为未分组)。请遵照[[api:uhost-api:specification|字段规范]]设定业务组。 + */ @UCloudParam("Tag") private String tag; - - /** 绑定独立IP */ + + + + /** + * 绑定独立IP + */ @UCloudParam("BindIp") private Boolean bindIp; - - /** 独立IP参数。需要独立IP的比例。eg: [4:1]->4, [3:1]->3。 */ + + + + + + + + /** + * 独立IP参数。需要独立IP的比例。eg: [4:1]->4, [3:1]->3。 + */ @UCloudParam("IpProportion") private Integer ipProportion; - - /** 共享带宽名称,可以在创建新的共享带宽时指定一个名称 */ + + + + /** + * 共享带宽名称,可以在创建新的共享带宽时指定一个名称 + */ @UCloudParam("ShareBandwidthName") private String shareBandwidthName; - - /** 共享带宽ID,使用现有共享带宽时需要传入此参数 */ + + + + /** + * 共享带宽ID,使用现有共享带宽时需要传入此参数 + */ @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - - /** 使用区域全局共享带宽 */ + + + + /** + * 使用区域全局共享带宽 + */ @UCloudParam("UseGlobalBws") private Boolean useGlobalBws; - - /** 单个云手机独立IP网络带宽,单位Kbps;CityId为oversea时不生效;手机规格为UPhone Store和UPhone Live时不生效 */ + + + + /** + * 单个云手机独立IP网络带宽,单位Kbps;CityId为oversea时不生效;手机规格为UPhone Store和UPhone Live时不生效 + */ @UCloudParam("UPhoneBandwidth") private Integer uPhoneBandwidth; - - /** 使用Kbps限速 */ + + + + /** + * 使用Kbps限速 + */ @UCloudParam("UseKbps") private Boolean useKbps; - - /** 云手机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看。注:代金券对带宽不适用,仅适用于云手机计费 */ + + + + /** + * 云手机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看。注:代金券对带宽不适用,仅适用于云手机计费 + */ @UCloudParam("CouponId") private String couponId; - + + public String getProjectId() { return projectId; } @@ -107,7 +188,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -115,7 +196,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getUPhoneModelName() { return uPhoneModelName; } @@ -123,7 +204,7 @@ public String getUPhoneModelName() { public void setUPhoneModelName(String uPhoneModelName) { this.uPhoneModelName = uPhoneModelName; } - + public String getImageId() { return imageId; } @@ -131,7 +212,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getCityId() { return cityId; } @@ -139,7 +220,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public Integer getUPhoneCount() { return uPhoneCount; } @@ -147,7 +228,8 @@ public Integer getUPhoneCount() { public void setUPhoneCount(Integer uPhoneCount) { this.uPhoneCount = uPhoneCount; } - + + public String getChargeType() { return chargeType; } @@ -155,7 +237,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getQuantity() { return quantity; } @@ -163,7 +245,7 @@ public String getQuantity() { public void setQuantity(String quantity) { this.quantity = quantity; } - + public String getIpDestRegion() { return ipDestRegion; } @@ -171,7 +253,7 @@ public String getIpDestRegion() { public void setIpDestRegion(String ipDestRegion) { this.ipDestRegion = ipDestRegion; } - + public String getTag() { return tag; } @@ -179,7 +261,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public Boolean getBindIp() { return bindIp; } @@ -187,7 +269,9 @@ public Boolean getBindIp() { public void setBindIp(Boolean bindIp) { this.bindIp = bindIp; } - + + + public Integer getIpProportion() { return ipProportion; } @@ -195,7 +279,7 @@ public Integer getIpProportion() { public void setIpProportion(Integer ipProportion) { this.ipProportion = ipProportion; } - + public String getShareBandwidthName() { return shareBandwidthName; } @@ -203,7 +287,7 @@ public String getShareBandwidthName() { public void setShareBandwidthName(String shareBandwidthName) { this.shareBandwidthName = shareBandwidthName; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -211,7 +295,7 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } - + public Boolean getUseGlobalBws() { return useGlobalBws; } @@ -219,7 +303,7 @@ public Boolean getUseGlobalBws() { public void setUseGlobalBws(Boolean useGlobalBws) { this.useGlobalBws = useGlobalBws; } - + public Integer getUPhoneBandwidth() { return uPhoneBandwidth; } @@ -227,7 +311,7 @@ public Integer getUPhoneBandwidth() { public void setUPhoneBandwidth(Integer uPhoneBandwidth) { this.uPhoneBandwidth = uPhoneBandwidth; } - + public Boolean getUseKbps() { return useKbps; } @@ -235,7 +319,7 @@ public Boolean getUseKbps() { public void setUseKbps(Boolean useKbps) { this.useKbps = useKbps; } - + public String getCouponId() { return couponId; } @@ -243,4 +327,14 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneResponse.java index f29c7024..fb2a1991 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class CreateUPhoneResponse extends Response { - /** 任务ID,用来查询创建云手机任务状态 */ + + + /** + * 任务ID,用来查询创建云手机任务状态 + */ @SerializedName("JobId") private String jobId; - - /** 【数组】创建的云手机ID */ + + + + /** + * 【数组】创建的云手机ID + */ @SerializedName("UPhoneIds") private List uPhoneIds; - + + public String getJobId() { return jobId; } @@ -36,7 +49,7 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -44,4 +57,14 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneServerRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneServerRequest.java index 1cf66a51..41b9023f 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneServerRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneServerRequest.java @@ -1,98 +1,154 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateUPhoneServerRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机服务器实例名称。默认:UPhone。请遵照字段规范设定实例名称。 */ + + + + /** + * 云手机服务器实例名称。默认:UPhone。请遵照字段规范设定实例名称。 + */ @NotEmpty @UCloudParam("Name") private String name; - + + + /** * 云手机服务器规格名称,不超过64个字节。可通过[查询云手机服务器规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_server_model - * )查询支持的云手机服务器规格。 +)查询支持的云手机服务器规格。 */ @NotEmpty @UCloudParam("ServerModelName") private String serverModelName; - + + + /** * 云手机规格名称,不超过64个字节。可通过[查询云手机规格列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_model - * )查询支持的云手机规格。 +)查询支持的云手机规格。 */ @NotEmpty @UCloudParam("UPhoneModelName") private String uPhoneModelName; - + + + /** * 云手机镜像ID,不超过32个字节。可通过[查询手机镜像](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_image)查询云手机规格对应的镜像ID。 */ @NotEmpty @UCloudParam("ImageId") private String imageId; - - /** 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取 + */ @NotEmpty @UCloudParam("CityId") private String cityId; - - /** 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付 */ + + + + /** + * 计费模式。枚举值为: +> 年 Year,按年付费; +> Month,按月付费; +> Dynamic,按小时预付费; +默认为月付 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长。默认值: 1。月付时,此参数传0,代表购买至月末。 */ + + + + /** + * 购买时长。默认值: 1。月付时,此参数传0,代表购买至月末。 + */ @UCloudParam("Quantity") private String quantity; - - /** */ + + + + /** + * + */ @UCloudParam("NetworkInterface") private List networkInterface; - - /** 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("IpDestRegion") private String ipDestRegion; - - /** 独立IP参数。共享带宽值大小。传此参数需要和IpProportion同时传。 */ + + + + /** + * 独立IP参数。共享带宽值大小。传此参数需要和IpProportion同时传。 + */ @UCloudParam("ShareBandwidth") private Integer shareBandwidth; - - /** 独立IP参数。需要独立IP的比例。eg: [4:1]->4, [3:1]->3。 */ + + + + /** + * 独立IP参数。需要独立IP的比例。eg: [4:1]->4, [3:1]->3。 + */ @UCloudParam("IpProportion") private Integer ipProportion; - - /** 业务组。默认:Default(Default即为未分组)。请遵照[[api:uhost-api:specification|字段规范]]设定业务组。 */ + + + + /** + * 业务组。默认:Default(Default即为未分组)。请遵照[[api:uhost-api:specification|字段规范]]设定业务组。 + */ @UCloudParam("Tag") private String tag; - - /** 云手机服务器代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看。注:代金券对带宽不适用,仅适用于云手机服务器计费 */ + + + + /** + * 云手机服务器代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看。注:代金券对带宽不适用,仅适用于云手机服务器计费 + */ @UCloudParam("CouponId") private String couponId; - + + public String getProjectId() { return projectId; } @@ -100,7 +156,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -108,7 +164,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getServerModelName() { return serverModelName; } @@ -116,7 +172,7 @@ public String getServerModelName() { public void setServerModelName(String serverModelName) { this.serverModelName = serverModelName; } - + public String getUPhoneModelName() { return uPhoneModelName; } @@ -124,7 +180,7 @@ public String getUPhoneModelName() { public void setUPhoneModelName(String uPhoneModelName) { this.uPhoneModelName = uPhoneModelName; } - + public String getImageId() { return imageId; } @@ -132,7 +188,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getCityId() { return cityId; } @@ -140,7 +196,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getChargeType() { return chargeType; } @@ -148,7 +204,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getQuantity() { return quantity; } @@ -156,7 +212,7 @@ public String getQuantity() { public void setQuantity(String quantity) { this.quantity = quantity; } - + public List getNetworkInterface() { return networkInterface; } @@ -164,7 +220,7 @@ public List getNetworkInterface() { public void setNetworkInterface(List networkInterface) { this.networkInterface = networkInterface; } - + public String getIpDestRegion() { return ipDestRegion; } @@ -172,7 +228,7 @@ public String getIpDestRegion() { public void setIpDestRegion(String ipDestRegion) { this.ipDestRegion = ipDestRegion; } - + public Integer getShareBandwidth() { return shareBandwidth; } @@ -180,7 +236,7 @@ public Integer getShareBandwidth() { public void setShareBandwidth(Integer shareBandwidth) { this.shareBandwidth = shareBandwidth; } - + public Integer getIpProportion() { return ipProportion; } @@ -188,7 +244,7 @@ public Integer getIpProportion() { public void setIpProportion(Integer ipProportion) { this.ipProportion = ipProportion; } - + public String getTag() { return tag; } @@ -196,7 +252,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getCouponId() { return couponId; } @@ -204,6 +260,29 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } - - public static class NetworkInterface extends Request {} + + public static class NetworkInterface extends Request { + + + + + + + + + + + + + + } } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneServerResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneServerResponse.java index 5f3d74b4..625ea4d3 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneServerResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/CreateUPhoneServerResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUPhoneServerResponse extends Response { - /** 云手机服务器的实例 ID */ + + + /** + * 云手机服务器的实例 ID + */ @SerializedName("ServerId") private String serverId; - + + public String getServerId() { return serverId; } @@ -31,4 +41,14 @@ public String getServerId() { public void setServerId(String serverId) { this.serverId = serverId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneImageRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneImageRequest.java index 1bda4a00..41748c2c 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneImageRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneImageRequest.java @@ -1,41 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUPhoneImageRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机自定义镜像资源ID */ + + + + /** + * 云手机自定义镜像资源ID + */ @NotEmpty @UCloudParam("ImageId") private String imageId; - - /** 枚举值【必填项】。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 */ + + + + /** + * 枚举值【必填项】。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -43,7 +58,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageId() { return imageId; } @@ -51,7 +66,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getProductType() { return productType; } @@ -59,4 +74,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneImageResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneImageResponse.java index a2435a50..2ced8524 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneImageResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneImageResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DeleteUPhoneImageResponse extends Response { - /** 云手机自定义镜像资源ID */ + + + /** + * 云手机自定义镜像资源ID + */ @SerializedName("ImageId") private String imageId; - + + public String getImageId() { return imageId; } @@ -31,4 +41,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneRequest.java index 2c49a9c6..536f19ed 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneRequest.java @@ -1,49 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DeleteUPhoneRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** - * 【数组】云手机实例的资源 ID,N<200;调用方式举例:UPhoneIds.0=希望获取信息的云手机 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 - * UPhoneId + * 【数组】云手机实例的资源 ID,N<200;调用方式举例:UPhoneIds.0=希望获取信息的云手机 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 */ + + + + /** + * 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -51,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -59,7 +74,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public String getCityId() { return cityId; } @@ -67,7 +82,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -75,4 +90,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneResponse.java index 00f6c1b2..9c9833b1 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DeleteUPhoneResponse extends Response { - /** 任务ID,用来查询删除云手机任务状态 */ + + + /** + * 任务ID,用来查询删除云手机任务状态 + */ @SerializedName("JobId") private String jobId; - + + public String getJobId() { return jobId; } @@ -31,4 +41,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneServerRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneServerRequest.java index e15c2d55..ab576cc9 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneServerRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneServerRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUPhoneServerRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机服务器的实例ID 可通过 [DescribeUPhoneServer]()获取 */ + + + + /** + * 云手机服务器的实例ID 可通过 [DescribeUPhoneServer]()获取 + */ @NotEmpty @UCloudParam("ServerId") private String serverId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @NotEmpty @UCloudParam("CityId") private String cityId; - - /** 删除云手机服务器时是否释放绑定的EIP。默认为false。 */ + + + + /** + * 删除云手机服务器时是否释放绑定的EIP。默认为false。 + */ @UCloudParam("ReleaseEIP") private Boolean releaseEIP; - - /** 删除云手机服务器时是否同时删除挂载的数据盘。默认为false。 */ + + + + /** + * 删除云手机服务器时是否同时删除挂载的数据盘。默认为false。 + */ @UCloudParam("ReleaseUDisk") private Boolean releaseUDisk; - + + public String getProjectId() { return projectId; } @@ -52,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getServerId() { return serverId; } @@ -60,7 +83,7 @@ public String getServerId() { public void setServerId(String serverId) { this.serverId = serverId; } - + public String getCityId() { return cityId; } @@ -68,7 +91,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public Boolean getReleaseEIP() { return releaseEIP; } @@ -76,7 +99,7 @@ public Boolean getReleaseEIP() { public void setReleaseEIP(Boolean releaseEIP) { this.releaseEIP = releaseEIP; } - + public Boolean getReleaseUDisk() { return releaseUDisk; } @@ -84,4 +107,14 @@ public Boolean getReleaseUDisk() { public void setReleaseUDisk(Boolean releaseUDisk) { this.releaseUDisk = releaseUDisk; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneServerResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneServerResponse.java index 2a57eff7..c5a31e6e 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneServerResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneServerResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUPhoneServerResponse extends Response {} +public class DeleteUPhoneServerResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneShareBandwidthRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneShareBandwidthRequest.java index 88993494..96e89a56 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneShareBandwidthRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneShareBandwidthRequest.java @@ -1,37 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteUPhoneShareBandwidthRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 共享带宽ID */ + + + + /** + * 共享带宽ID + */ @NotEmpty @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - + + public String getProjectId() { return projectId; } @@ -39,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -47,4 +58,14 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneShareBandwidthResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneShareBandwidthResponse.java index a144ca60..508a4b09 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneShareBandwidthResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DeleteUPhoneShareBandwidthResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUPhoneShareBandwidthResponse extends Response {} +public class DeleteUPhoneShareBandwidthResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppRequest.java index ac76b19c..ee59e7c0 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppRequest.java @@ -1,48 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.uphone.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.uphone.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class DescribeUPhoneAppRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 数组】应用的唯一标识 ID,调用方式举例:AppIds.0=希望获取应用信息的应用 1,AppIds.1=应用 2。 如果不传入,则返回当前 城市 所有符合条件的应用列表。 */ + + + + /** + * 数组】应用的唯一标识 ID,调用方式举例:AppIds.0=希望获取应用信息的应用 1,AppIds.1=应用 2。 如果不传入,则返回当前 城市 所有符合条件的应用列表。 + */ @UCloudParam("AppIds") private List appIds; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20,最大100 */ + + + + /** + * 返回数据长度,默认为20,最大100 + */ @UCloudParam("Limit") private Integer limit; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -50,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getAppIds() { return appIds; } @@ -58,7 +83,7 @@ public List getAppIds() { public void setAppIds(List appIds) { this.appIds = appIds; } - + public Integer getOffset() { return offset; } @@ -66,7 +91,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -74,7 +99,8 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + + public String getProductType() { return productType; } @@ -82,4 +108,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppResponse.java index 40cea5b3..a34b911a 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneAppResponse extends Response { - /** AppInstance总数 */ + + + /** + * AppInstance总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 云手机应用实例列表,每项参数可见数据模型 [AppInstance](#appInstance) */ + + + + /** + * 云手机应用实例列表,每项参数可见数据模型 [AppInstance](#appInstance) + */ @SerializedName("Apps") private List apps; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getApps() { return apps; } @@ -44,67 +57,97 @@ public List getApps() { public void setApps(List apps) { this.apps = apps; } + + public static class AppInstance extends Response { + + + /** + * 应用的唯一标识ID + */ + @SerializedName("AppId") + private String appId; + + + + /** + * 应用名称。 + */ + @SerializedName("AppName") + private String appName; + + + + /** + * 创建时间,格式为Unix时间戳。 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间,格式为Unix时间戳。 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 应用描述。 + */ + @SerializedName("Description") + private String description; + + + public String getAppId() { + return appId; + } - public static class AppInstance extends Response { - - /** 应用的唯一标识ID */ - @SerializedName("AppId") - private String appId; - - /** 应用名称。 */ - @SerializedName("AppName") - private String appName; + public void setAppId(String appId) { + this.appId = appId; + } + + public String getAppName() { + return appName; + } - /** 创建时间,格式为Unix时间戳。 */ - @SerializedName("CreateTime") - private Integer createTime; + public void setAppName(String appName) { + this.appName = appName; + } + + public Integer getCreateTime() { + return createTime; + } - /** 修改时间,格式为Unix时间戳。 */ - @SerializedName("ModifyTime") - private Integer modifyTime; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - /** 应用描述。 */ - @SerializedName("Description") - private String description; + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public String getDescription() { + return description; + } - public String getAppId() { - return appId; + public void setDescription(String description) { + this.description = description; + } + } +} - public void setAppId(String appId) { - this.appId = appId; - } - public String getAppName() { - return appName; - } - public void setAppName(String appName) { - this.appName = appName; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getModifyTime() { - return modifyTime; - } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - public String getDescription() { - return description; - } - public void setDescription(String description) { - this.description = description; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppVersionRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppVersionRequest.java index f5888a40..6f4f0f39 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppVersionRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppVersionRequest.java @@ -1,59 +1,89 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.uphone.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.uphone.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class DescribeUPhoneAppVersionRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** - * 【数组】应用版本的唯一标识 ID,调用方式举例:AppVersionIds.0=希望获取应用版本信息的应用版本 1,AppVersionIds.1=应用版本 2。 如果不传入,则返回当前 - * 城市 所有符合条件的应用版本列表。 + * 【数组】应用版本的唯一标识 ID,调用方式举例:AppVersionIds.0=希望获取应用版本信息的应用版本 1,AppVersionIds.1=应用版本 2。 如果不传入,则返回当前 城市 所有符合条件的应用版本列表。 */ @UCloudParam("AppVersionIds") private List appVersionIds; - - /** 应用的唯一标识ID */ + + + + /** + * 应用的唯一标识ID + */ @UCloudParam("AppId") private String appId; - - /** 云手机Id。此参数表示查询手机上所安装的应用版本。 */ + + + + /** + * 云手机Id。此参数表示查询手机上所安装的应用版本。 + */ @UCloudParam("UPhoneId") private String uPhoneId; - - /** 返回数据长度,默认为20,最大100 */ + + + + /** + * 返回数据长度,默认为20,最大100 + */ @UCloudParam("Limit") private Integer limit; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -61,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getAppVersionIds() { return appVersionIds; } @@ -69,7 +99,7 @@ public List getAppVersionIds() { public void setAppVersionIds(List appVersionIds) { this.appVersionIds = appVersionIds; } - + public String getAppId() { return appId; } @@ -77,7 +107,7 @@ public String getAppId() { public void setAppId(String appId) { this.appId = appId; } - + public String getUPhoneId() { return uPhoneId; } @@ -85,7 +115,7 @@ public String getUPhoneId() { public void setUPhoneId(String uPhoneId) { this.uPhoneId = uPhoneId; } - + public Integer getLimit() { return limit; } @@ -93,7 +123,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -101,7 +131,8 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + + public String getProductType() { return productType; } @@ -109,4 +140,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppVersionResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppVersionResponse.java index 6b9130d6..e570a469 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppVersionResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneAppVersionResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneAppVersionResponse extends Response { - /** AppVersionInstance总数 */ + + + /** + * AppVersionInstance总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 云手机应用版本实例列表,每项参数可见数据模型 [AppVersionInstance](#AppVersionInstance) */ + + + + /** + * 云手机应用版本实例列表,每项参数可见数据模型 [AppVersionInstance](#AppVersionInstance) + */ @SerializedName("AppVersions") private List appVersions; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getAppVersions() { return appVersions; } @@ -44,103 +57,146 @@ public List getAppVersions() { public void setAppVersions(List appVersions) { this.appVersions = appVersions; } + + public static class AppVersionInstance extends Response { + + + /** + * 应用的唯一标识ID + */ + @SerializedName("AppId") + private String appId; + + + + /** + * 应用版本的唯一标识ID + */ + @SerializedName("AppVersionId") + private String appVersionId; + + + + /** + * 应用版本名。 + */ + @SerializedName("AppVersionName") + private String appVersionName; + + + + /** + * 应用包名。 + */ + @SerializedName("PackageName") + private String packageName; + + + + /** + * 应用版本相关的Apk文件存放的公网URL地址。 + + */ + @SerializedName("URL") + private String url; + + + + /** + * 创建时间,格式为Unix时间戳。 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间,格式为Unix时间戳。 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 应用版本描述。 + */ + @SerializedName("Description") + private String description; + + + public String getAppId() { + return appId; + } - public static class AppVersionInstance extends Response { - - /** 应用的唯一标识ID */ - @SerializedName("AppId") - private String appId; - - /** 应用版本的唯一标识ID */ - @SerializedName("AppVersionId") - private String appVersionId; - - /** 应用版本名。 */ - @SerializedName("AppVersionName") - private String appVersionName; - - /** 应用包名。 */ - @SerializedName("PackageName") - private String packageName; - - /** 应用版本相关的Apk文件存放的公网URL地址。 */ - @SerializedName("URL") - private String url; - - /** 创建时间,格式为Unix时间戳。 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 修改时间,格式为Unix时间戳。 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** 应用版本描述。 */ - @SerializedName("Description") - private String description; + public void setAppId(String appId) { + this.appId = appId; + } + + public String getAppVersionId() { + return appVersionId; + } - public String getAppId() { - return appId; - } + public void setAppVersionId(String appVersionId) { + this.appVersionId = appVersionId; + } + + public String getAppVersionName() { + return appVersionName; + } - public void setAppId(String appId) { - this.appId = appId; - } + public void setAppVersionName(String appVersionName) { + this.appVersionName = appVersionName; + } + + public String getPackageName() { + return packageName; + } - public String getAppVersionId() { - return appVersionId; - } + public void setPackageName(String packageName) { + this.packageName = packageName; + } + + public String getURL() { + return url; + } - public void setAppVersionId(String appVersionId) { - this.appVersionId = appVersionId; - } + public void setURL(String url) { + this.url = url; + } + + public Integer getCreateTime() { + return createTime; + } - public String getAppVersionName() { - return appVersionName; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public void setAppVersionName(String appVersionName) { - this.appVersionName = appVersionName; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public String getDescription() { + return description; + } - public String getPackageName() { - return packageName; + public void setDescription(String description) { + this.description = description; + } + } +} - public void setPackageName(String packageName) { - this.packageName = packageName; - } - public String getURL() { - return url; - } - public void setURL(String url) { - this.url = url; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getModifyTime() { - return modifyTime; - } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - public String getDescription() { - return description; - } - public void setDescription(String description) { - this.description = description; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneCitiesRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneCitiesRequest.java index f6c0d267..e72544e3 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneCitiesRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneCitiesRequest.java @@ -1,32 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class DescribeUPhoneCitiesRequest extends Request { - /** */ + + + /** + * + */ @UCloudParam("ProjectId") private String projectId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -34,7 +49,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getProductType() { return productType; } @@ -42,4 +57,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneCitiesResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneCitiesResponse.java index ab49ced0..f9ac1622 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneCitiesResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneCitiesResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneCitiesResponse extends Response { - /** 云手机城市实例列表,每项参数可见数据模型 [CityInstance](#CityInstance) */ + + + /** + * 云手机城市实例列表,每项参数可见数据模型 [CityInstance](#CityInstance) + */ @SerializedName("UPhoneCities") private List uPhoneCities; - + + public List getUPhoneCities() { return uPhoneCities; } @@ -32,71 +41,97 @@ public List getUPhoneCities() { public void setUPhoneCities(List uPhoneCities) { this.uPhoneCities = uPhoneCities; } + + public static class CityInstance extends Response { + + + /** + * 城市Id,eg: cn-shanghai, cn-jinan + */ + @SerializedName("CityId") + private String cityId; + + + + /** + * 城市名称,eg:上海二、济南市 + */ + @SerializedName("CityName") + private String cityName; + + + + /** + * 表示该城市资源是否售罄 + */ + @SerializedName("IsSoldOut") + private Boolean isSoldOut; + + + + /** + * 城市类型。枚举值:
* CENTER,中心城市
* EDGE,边缘计算城市 + */ + @SerializedName("CityType") + private String cityType; + + + + /** + * 城市别名。如cn-sh2 + */ + @SerializedName("CityAlias") + private String cityAlias; + + + public String getCityId() { + return cityId; + } - public static class CityInstance extends Response { - - /** 城市Id,eg: cn-shanghai, cn-jinan */ - @SerializedName("CityId") - private String cityId; - - /** 城市名称,eg:上海二、济南市 */ - @SerializedName("CityName") - private String cityName; + public void setCityId(String cityId) { + this.cityId = cityId; + } + + public String getCityName() { + return cityName; + } - /** 表示该城市资源是否售罄 */ - @SerializedName("IsSoldOut") - private Boolean isSoldOut; + public void setCityName(String cityName) { + this.cityName = cityName; + } + + public Boolean getIsSoldOut() { + return isSoldOut; + } - /** - * 城市类型。枚举值:
- * * CENTER,中心城市
- * * EDGE,边缘计算城市 - */ - @SerializedName("CityType") - private String cityType; + public void setIsSoldOut(Boolean isSoldOut) { + this.isSoldOut = isSoldOut; + } + + public String getCityType() { + return cityType; + } - /** 城市别名。如cn-sh2 */ - @SerializedName("CityAlias") - private String cityAlias; + public void setCityType(String cityType) { + this.cityType = cityType; + } + + public String getCityAlias() { + return cityAlias; + } - public String getCityId() { - return cityId; + public void setCityAlias(String cityAlias) { + this.cityAlias = cityAlias; + } + } +} - public void setCityId(String cityId) { - this.cityId = cityId; - } - public String getCityName() { - return cityName; - } - public void setCityName(String cityName) { - this.cityName = cityName; - } - public Boolean getIsSoldOut() { - return isSoldOut; - } - public void setIsSoldOut(Boolean isSoldOut) { - this.isSoldOut = isSoldOut; - } - public String getCityType() { - return cityType; - } - public void setCityType(String cityType) { - this.cityType = cityType; - } - public String getCityAlias() { - return cityAlias; - } - public void setCityAlias(String cityAlias) { - this.cityAlias = cityAlias; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneDetailByAppRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneDetailByAppRequest.java index 6947984d..a3ace5fa 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneDetailByAppRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneDetailByAppRequest.java @@ -1,53 +1,80 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUPhoneDetailByAppRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 应用的唯一标识ID */ + + + + /** + * 应用的唯一标识ID + */ @NotEmpty @UCloudParam("AppId") private String appId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20,最大100 */ + + + + /** + * 返回数据长度,默认为20,最大100 + */ @UCloudParam("Limit") private Integer limit; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -55,7 +82,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getAppId() { return appId; } @@ -63,7 +90,7 @@ public String getAppId() { public void setAppId(String appId) { this.appId = appId; } - + public String getCityId() { return cityId; } @@ -71,7 +98,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public Integer getOffset() { return offset; } @@ -79,7 +106,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -87,7 +114,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getProductType() { return productType; } @@ -95,4 +122,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneDetailByAppResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneDetailByAppResponse.java index 481790cf..3b704913 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneDetailByAppResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneDetailByAppResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneDetailByAppResponse extends Response { - /** UPhoneWithAppVersion总数 */ + + + /** + * UPhoneWithAppVersion总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 带有应用版本的云手机实例,具体参数见数据模型 [UPhoneDetailInstanc](#UPhoneDetailInstanc) */ + + + + /** + * 带有应用版本的云手机实例,具体参数见数据模型 [UPhoneDetailInstanc](#UPhoneDetailInstanc) + */ @SerializedName("UPhoneDetails") private List uPhoneDetails; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getUPhoneDetails() { return uPhoneDetails; } @@ -44,323 +57,438 @@ public List getUPhoneDetails() { public void setUPhoneDetails(List uPhoneDetails) { this.uPhoneDetails = uPhoneDetails; } - - public static class AppVersionInstance extends Response { - - /** 应用的唯一标识ID */ - @SerializedName("AppId") - private String appId; - - /** 应用版本的唯一标识ID */ - @SerializedName("AppVersionId") - private String appVersionId; - - /** 应用版本名。 */ - @SerializedName("AppVersionName") - private String appVersionName; - - /** 应用包名。 */ - @SerializedName("PackageName") - private String packageName; - - /** 应用版本相关的Apk文件存放的公网URL地址。 */ - @SerializedName("URL") - private String url; - - /** 创建时间,格式为Unix时间戳。 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 修改时间,格式为Unix时间戳。 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** 应用版本描述。 */ - @SerializedName("Description") - private String description; - - public String getAppId() { - return appId; - } - - public void setAppId(String appId) { - this.appId = appId; - } - - public String getAppVersionId() { - return appVersionId; - } - - public void setAppVersionId(String appVersionId) { - this.appVersionId = appVersionId; - } - - public String getAppVersionName() { - return appVersionName; - } - - public void setAppVersionName(String appVersionName) { - this.appVersionName = appVersionName; - } - - public String getPackageName() { - return packageName; - } - - public void setPackageName(String packageName) { - this.packageName = packageName; - } - - public String getURL() { - return url; - } - - public void setURL(String url) { - this.url = url; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public Integer getModifyTime() { - return modifyTime; - } - - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } + + public static class AppVersionInstance extends Response { + + + /** + * 应用的唯一标识ID + */ + @SerializedName("AppId") + private String appId; + + + + /** + * 应用版本的唯一标识ID + */ + @SerializedName("AppVersionId") + private String appVersionId; + + + + /** + * 应用版本名。 + */ + @SerializedName("AppVersionName") + private String appVersionName; + + + + /** + * 应用包名。 + */ + @SerializedName("PackageName") + private String packageName; + + + + /** + * 应用版本相关的Apk文件存放的公网URL地址。 + + */ + @SerializedName("URL") + private String url; + + + + /** + * 创建时间,格式为Unix时间戳。 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间,格式为Unix时间戳。 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 应用版本描述。 + */ + @SerializedName("Description") + private String description; + + + public String getAppId() { + return appId; } - public static class UPhoneDetailInstance extends Response { - - /** 云手机的名称,不超过65个字符。 */ - @SerializedName("UPhoneName") - private String uPhoneName; - - /** 云手机的唯一标识,不超过32个字节。 */ - @SerializedName("UPhoneId") - private String uPhoneId; - - /** 云手机规格名称 */ - @SerializedName("UPhoneModelName") - private String uPhoneModelName; - - /** 虚拟CPU核数。 */ - @SerializedName("CPU") - private Integer cpu; - - /** 内存大小。单位MB */ - @SerializedName("Memory") - private Integer memory; - - /** 磁盘大小,单位: GB */ - @SerializedName("DiskSize") - private Integer diskSize; - - /** 分辨率 */ - @SerializedName("Resolution") - private String resolution; - - /** 刷新率 */ - @SerializedName("Refresh") - private Integer refresh; - - /** 云手机所在的服务器ID,不超过32个字节。 */ - @SerializedName("ServerId") - private String serverId; - - /** 云手机镜像ID,不超过32个字节。 */ - @SerializedName("ImageId") - private String imageId; - - /** 云手机镜像系统,如"Android armv8" */ - @SerializedName("OsType") - private String osType; - - /** - * 云手机状态
- * * 启动中: STARTING;
- * * 运行中: RUNNING;
- * * 关机中: STOPPING;
- * * 关机: STOPPED
- * * 重启中: REBOOTING;
- * * 重置中: RESETTING;
- * * 启动失败: START_FAILED;
- * * 关机失败: STOP_FAILED;
- * * 重启失败: REBOOT_FAILED;
- * * 重置失败: RESET_FAILED;
- * * 未知状态:UNDEFINED或"" - */ - @SerializedName("State") - private String state; - - /** 城市Id,eg: cn-shanghai, cn-jinan */ - @SerializedName("CityId") - private String cityId; - - /** 城市名称,eg:上海二、济南市 */ - @SerializedName("CityName") - private String cityName; - - /** 创建时间,格式为Unix时间戳。 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** 应用版本实例,每项参数可见数据模型 [AppVersionInstance](#AppVersionInstance) */ - @SerializedName("AppVersion") - private AppVersionInstance appVersion; - - public String getUPhoneName() { - return uPhoneName; - } + public void setAppId(String appId) { + this.appId = appId; + } + + public String getAppVersionId() { + return appVersionId; + } - public void setUPhoneName(String uPhoneName) { - this.uPhoneName = uPhoneName; - } + public void setAppVersionId(String appVersionId) { + this.appVersionId = appVersionId; + } + + public String getAppVersionName() { + return appVersionName; + } - public String getUPhoneId() { - return uPhoneId; - } + public void setAppVersionName(String appVersionName) { + this.appVersionName = appVersionName; + } + + public String getPackageName() { + return packageName; + } - public void setUPhoneId(String uPhoneId) { - this.uPhoneId = uPhoneId; - } + public void setPackageName(String packageName) { + this.packageName = packageName; + } + + public String getURL() { + return url; + } - public String getUPhoneModelName() { - return uPhoneModelName; - } + public void setURL(String url) { + this.url = url; + } + + public Integer getCreateTime() { + return createTime; + } - public void setUPhoneModelName(String uPhoneModelName) { - this.uPhoneModelName = uPhoneModelName; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public Integer getCPU() { - return cpu; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public String getDescription() { + return description; + } - public void setCPU(Integer cpu) { - this.cpu = cpu; - } + public void setDescription(String description) { + this.description = description; + } + + } + public static class UPhoneDetailInstance extends Response { + + + /** + * 云手机的名称,不超过65个字符。 + + */ + @SerializedName("UPhoneName") + private String uPhoneName; + + + + /** + * 云手机的唯一标识,不超过32个字节。 + + */ + @SerializedName("UPhoneId") + private String uPhoneId; + + + + /** + * 云手机规格名称 + + */ + @SerializedName("UPhoneModelName") + private String uPhoneModelName; + + + + /** + * 虚拟CPU核数。 + + */ + @SerializedName("CPU") + private Integer cpu; + + + + /** + * 内存大小。单位MB + + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * 磁盘大小,单位: GB + + */ + @SerializedName("DiskSize") + private Integer diskSize; + + + + /** + * 分辨率 + + */ + @SerializedName("Resolution") + private String resolution; + + + + /** + * 刷新率 + + */ + @SerializedName("Refresh") + private Integer refresh; + + + + /** + * 云手机所在的服务器ID,不超过32个字节。 + + */ + @SerializedName("ServerId") + private String serverId; + + + + /** + * 云手机镜像ID,不超过32个字节。 + + */ + @SerializedName("ImageId") + private String imageId; + + + + /** + * 云手机镜像系统,如"Android armv8" + + */ + @SerializedName("OsType") + private String osType; + + + + /** + * 云手机状态
* 启动中: STARTING;
* 运行中: RUNNING;
* 关机中: STOPPING;
* 关机: STOPPED
* 重启中: REBOOTING;
* 重置中: RESETTING;
* 启动失败: START_FAILED;
* 关机失败: STOP_FAILED;
* 重启失败: REBOOT_FAILED;
* 重置失败: RESET_FAILED;
* 未知状态:UNDEFINED或"" + + */ + @SerializedName("State") + private String state; + + + + /** + * 城市Id,eg: cn-shanghai, cn-jinan + + */ + @SerializedName("CityId") + private String cityId; + + + + /** + * 城市名称,eg:上海二、济南市 + + */ + @SerializedName("CityName") + private String cityName; + + + + /** + * 创建时间,格式为Unix时间戳。 + + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 备注 + + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 应用版本实例,每项参数可见数据模型 [AppVersionInstance](#AppVersionInstance) + + */ + @SerializedName("AppVersion") + private AppVersionInstance appVersion; + + + public String getUPhoneName() { + return uPhoneName; + } - public Integer getMemory() { - return memory; - } + public void setUPhoneName(String uPhoneName) { + this.uPhoneName = uPhoneName; + } + + public String getUPhoneId() { + return uPhoneId; + } - public void setMemory(Integer memory) { - this.memory = memory; - } + public void setUPhoneId(String uPhoneId) { + this.uPhoneId = uPhoneId; + } + + public String getUPhoneModelName() { + return uPhoneModelName; + } - public Integer getDiskSize() { - return diskSize; - } + public void setUPhoneModelName(String uPhoneModelName) { + this.uPhoneModelName = uPhoneModelName; + } + + public Integer getCPU() { + return cpu; + } - public void setDiskSize(Integer diskSize) { - this.diskSize = diskSize; - } + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } - public String getResolution() { - return resolution; - } + public void setMemory(Integer memory) { + this.memory = memory; + } + + public Integer getDiskSize() { + return diskSize; + } - public void setResolution(String resolution) { - this.resolution = resolution; - } + public void setDiskSize(Integer diskSize) { + this.diskSize = diskSize; + } + + public String getResolution() { + return resolution; + } - public Integer getRefresh() { - return refresh; - } + public void setResolution(String resolution) { + this.resolution = resolution; + } + + public Integer getRefresh() { + return refresh; + } - public void setRefresh(Integer refresh) { - this.refresh = refresh; - } + public void setRefresh(Integer refresh) { + this.refresh = refresh; + } + + public String getServerId() { + return serverId; + } - public String getServerId() { - return serverId; - } + public void setServerId(String serverId) { + this.serverId = serverId; + } + + public String getImageId() { + return imageId; + } - public void setServerId(String serverId) { - this.serverId = serverId; - } + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getOsType() { + return osType; + } - public String getImageId() { - return imageId; - } + public void setOsType(String osType) { + this.osType = osType; + } + + public String getState() { + return state; + } - public void setImageId(String imageId) { - this.imageId = imageId; - } + public void setState(String state) { + this.state = state; + } + + public String getCityId() { + return cityId; + } - public String getOsType() { - return osType; - } + public void setCityId(String cityId) { + this.cityId = cityId; + } + + public String getCityName() { + return cityName; + } - public void setOsType(String osType) { - this.osType = osType; - } + public void setCityName(String cityName) { + this.cityName = cityName; + } + + public Integer getCreateTime() { + return createTime; + } - public String getState() { - return state; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getRemark() { + return remark; + } - public void setState(String state) { - this.state = state; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public AppVersionInstance getAppVersion() { + return appVersion; + } - public String getCityId() { - return cityId; + public void setAppVersion(AppVersionInstance appVersion) { + this.appVersion = appVersion; + } + } +} - public void setCityId(String cityId) { - this.cityId = cityId; - } - public String getCityName() { - return cityName; - } - public void setCityName(String cityName) { - this.cityName = cityName; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - public AppVersionInstance getAppVersion() { - return appVersion; - } - public void setAppVersion(AppVersionInstance appVersion) { - this.appVersion = appVersion; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneEipListRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneEipListRequest.java index 7540a08f..766d8b5c 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneEipListRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneEipListRequest.java @@ -1,39 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class DescribeUPhoneEipListRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** Eip所属区域,没有该参数表示获取所有区域 */ + + + + /** + * Eip所属区域,没有该参数表示获取所有区域 + */ @UCloudParam("Region") private String region; - - /** 云手机与Eip绑定比例,没有该参数表示获取所有绑定比例 */ + + + + /** + * 云手机与Eip绑定比例,没有该参数表示获取所有绑定比例 + */ @UCloudParam("Proportion") private String proportion; - + + public String getProjectId() { return projectId; } @@ -41,7 +57,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getRegion() { return region; } @@ -49,7 +65,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProportion() { return proportion; } @@ -57,4 +73,14 @@ public String getProportion() { public void setProportion(String proportion) { this.proportion = proportion; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneEipListResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneEipListResponse.java index 138dc8bd..62bfc80d 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneEipListResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneEipListResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneEipListResponse extends Response { - /** Eip信息列表 */ + + + /** + * Eip信息列表 + */ @SerializedName("EipInfos") private List eipInfos; - - /** Eip信息数量 */ + + + + /** + * Eip信息数量 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getEipInfos() { return eipInfos; } @@ -36,7 +49,7 @@ public List getEipInfos() { public void setEipInfos(List eipInfos) { this.eipInfos = eipInfos; } - + public Integer getTotalCount() { return totalCount; } @@ -44,151 +57,209 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class EipInfo extends Response { + + + /** + * Eip所属区域 + */ + @SerializedName("Region") + private String region; + + + + /** + * Eip资源ID + */ + @SerializedName("EipId") + private String eipId; + + + + /** + * Eip地址 + */ + @SerializedName("EipIp") + private String eipIp; + + + + /** + * Eip名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * Eip备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 云手机与Eip绑定比例 + */ + @SerializedName("Proportion") + private Integer proportion; + + + + /** + * 创建时间;格式为Unix时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 到期时间;格式为Unix时间戳 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 绑定的云手机ID + */ + @SerializedName("UPhoneIds") + private List uPhoneIds; + + + + /** + * 当前绑定云手机数量 + */ + @SerializedName("BindCount") + private Integer bindCount; + + + + /** + * 剩余可绑定手机数量 + */ + @SerializedName("RemainCount") + private Integer remainCount; + + + public String getRegion() { + return region; + } - public static class EipInfo extends Response { - - /** Eip所属区域 */ - @SerializedName("Region") - private String region; - - /** Eip资源ID */ - @SerializedName("EipId") - private String eipId; - - /** Eip地址 */ - @SerializedName("EipIp") - private String eipIp; - - /** Eip名称 */ - @SerializedName("Name") - private String name; - - /** Eip备注 */ - @SerializedName("Remark") - private String remark; - - /** 云手机与Eip绑定比例 */ - @SerializedName("Proportion") - private Integer proportion; - - /** 创建时间;格式为Unix时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 到期时间;格式为Unix时间戳 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付 */ - @SerializedName("ChargeType") - private String chargeType; - - /** 绑定的云手机ID */ - @SerializedName("UPhoneIds") - private List uPhoneIds; - - /** 当前绑定云手机数量 */ - @SerializedName("BindCount") - private Integer bindCount; - - /** 剩余可绑定手机数量 */ - @SerializedName("RemainCount") - private Integer remainCount; - - public String getRegion() { - return region; - } - - public void setRegion(String region) { - this.region = region; - } - - public String getEipId() { - return eipId; - } - - public void setEipId(String eipId) { - this.eipId = eipId; - } + public void setRegion(String region) { + this.region = region; + } + + public String getEipId() { + return eipId; + } - public String getEipIp() { - return eipIp; - } + public void setEipId(String eipId) { + this.eipId = eipId; + } + + public String getEipIp() { + return eipIp; + } - public void setEipIp(String eipIp) { - this.eipIp = eipIp; - } + public void setEipIp(String eipIp) { + this.eipIp = eipIp; + } + + public String getName() { + return name; + } - public String getName() { - return name; - } + public void setName(String name) { + this.name = name; + } + + public String getRemark() { + return remark; + } - public void setName(String name) { - this.name = name; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getProportion() { + return proportion; + } - public String getRemark() { - return remark; - } + public void setProportion(Integer proportion) { + this.proportion = proportion; + } + + public Integer getCreateTime() { + return createTime; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public Integer getProportion() { - return proportion; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getChargeType() { + return chargeType; + } - public void setProportion(Integer proportion) { - this.proportion = proportion; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public List getUPhoneIds() { + return uPhoneIds; + } - public Integer getCreateTime() { - return createTime; - } + public void setUPhoneIds(List uPhoneIds) { + this.uPhoneIds = uPhoneIds; + } + + public Integer getBindCount() { + return bindCount; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setBindCount(Integer bindCount) { + this.bindCount = bindCount; + } + + public Integer getRemainCount() { + return remainCount; + } - public Integer getExpireTime() { - return expireTime; + public void setRemainCount(Integer remainCount) { + this.remainCount = remainCount; + } + } +} - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public List getUPhoneIds() { - return uPhoneIds; - } - public void setUPhoneIds(List uPhoneIds) { - this.uPhoneIds = uPhoneIds; - } - public Integer getBindCount() { - return bindCount; - } - public void setBindCount(Integer bindCount) { - this.bindCount = bindCount; - } - public Integer getRemainCount() { - return remainCount; - } - public void setRemainCount(Integer remainCount) { - this.remainCount = remainCount; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneImageRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneImageRequest.java index 1bc48f11..2f77d8f3 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneImageRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneImageRequest.java @@ -1,59 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.uphone.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.uphone.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class DescribeUPhoneImageRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** - * 希望获取的镜像类型,枚举值,不传则返回全部类型的镜像:
- * >标准镜像: BASE;
- * >自制镜像: CUSTOM;
+ * 希望获取的镜像类型,枚举值,不传则返回全部类型的镜像:
>标准镜像: BASE;
>自制镜像: CUSTOM;
*/ @UCloudParam("Type") private String type; - + + + /** - * 【数组】云手机镜像资源 ID,调用方式举例:ImageIds.0=希望获取信息的云手机镜像 1,ImageIds.1=云手机镜像 2。 如果不传入,则返回当前 城市 - * 所有符合条件的云手机镜像。 + * 【数组】云手机镜像资源 ID,调用方式举例:ImageIds.0=希望获取信息的云手机镜像 1,ImageIds.1=云手机镜像 2。 如果不传入,则返回当前 城市 所有符合条件的云手机镜像。 */ @UCloudParam("ImageIds") private List imageIds; - - /** 列表起始位置偏移量,默认为0 */ + + + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private String offset; - - /** 最大返回镜像数量,默认为20,最大100 */ + + + + /** + * 最大返回镜像数量,默认为20,最大100 + */ @UCloudParam("Limit") private String limit; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -61,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getType() { return type; } @@ -69,7 +91,7 @@ public String getType() { public void setType(String type) { this.type = type; } - + public List getImageIds() { return imageIds; } @@ -77,7 +99,8 @@ public List getImageIds() { public void setImageIds(List imageIds) { this.imageIds = imageIds; } - + + public String getOffset() { return offset; } @@ -85,7 +108,7 @@ public String getOffset() { public void setOffset(String offset) { this.offset = offset; } - + public String getLimit() { return limit; } @@ -93,7 +116,7 @@ public String getLimit() { public void setLimit(String limit) { this.limit = limit; } - + public String getProductType() { return productType; } @@ -101,4 +124,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneImageResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneImageResponse.java index 12fa9e02..5fb547ea 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneImageResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneImageResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneImageResponse extends Response { - /** 云手机镜像实例列表,具体参数见 [UPhoneImageInstance](#uphoneimageinstance) */ + + + /** + * 云手机镜像实例列表,具体参数见 [UPhoneImageInstance](#uphoneimageinstance) + */ @SerializedName("Images") private List images; - - /** UPhoneImageInstance总数 */ + + + + /** + * UPhoneImageInstance总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getImages() { return images; } @@ -36,7 +49,7 @@ public List getImages() { public void setImages(List images) { this.images = images; } - + public Integer getTotalCount() { return totalCount; } @@ -44,238 +57,309 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class AppVersionInstance extends Response { + + + /** + * 应用的唯一标识ID + */ + @SerializedName("AppId") + private String appId; + + + + /** + * 应用版本的唯一标识ID + */ + @SerializedName("AppVersionId") + private String appVersionId; + + + + /** + * 应用版本名。 + */ + @SerializedName("AppVersionName") + private String appVersionName; + + + + /** + * 应用包名。 + */ + @SerializedName("PackageName") + private String packageName; + + + + /** + * 应用版本相关的Apk文件存放的公网URL地址。 + + */ + @SerializedName("URL") + private String url; + + + + /** + * 创建时间,格式为Unix时间戳。 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间,格式为Unix时间戳。 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 应用版本描述。 + */ + @SerializedName("Description") + private String description; + + + public String getAppId() { + return appId; + } - public static class AppVersionInstance extends Response { - - /** 应用的唯一标识ID */ - @SerializedName("AppId") - private String appId; - - /** 应用版本的唯一标识ID */ - @SerializedName("AppVersionId") - private String appVersionId; - - /** 应用版本名。 */ - @SerializedName("AppVersionName") - private String appVersionName; - - /** 应用包名。 */ - @SerializedName("PackageName") - private String packageName; - - /** 应用版本相关的Apk文件存放的公网URL地址。 */ - @SerializedName("URL") - private String url; - - /** 创建时间,格式为Unix时间戳。 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 修改时间,格式为Unix时间戳。 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** 应用版本描述。 */ - @SerializedName("Description") - private String description; - - public String getAppId() { - return appId; - } - - public void setAppId(String appId) { - this.appId = appId; - } - - public String getAppVersionId() { - return appVersionId; - } - - public void setAppVersionId(String appVersionId) { - this.appVersionId = appVersionId; - } - - public String getAppVersionName() { - return appVersionName; - } - - public void setAppVersionName(String appVersionName) { - this.appVersionName = appVersionName; - } - - public String getPackageName() { - return packageName; - } - - public void setPackageName(String packageName) { - this.packageName = packageName; - } - - public String getURL() { - return url; - } - - public void setURL(String url) { - this.url = url; - } + public void setAppId(String appId) { + this.appId = appId; + } + + public String getAppVersionId() { + return appVersionId; + } - public Integer getCreateTime() { - return createTime; - } + public void setAppVersionId(String appVersionId) { + this.appVersionId = appVersionId; + } + + public String getAppVersionName() { + return appVersionName; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setAppVersionName(String appVersionName) { + this.appVersionName = appVersionName; + } + + public String getPackageName() { + return packageName; + } - public Integer getModifyTime() { - return modifyTime; - } + public void setPackageName(String packageName) { + this.packageName = packageName; + } + + public String getURL() { + return url; + } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } + public void setURL(String url) { + this.url = url; + } + + public Integer getCreateTime() { + return createTime; + } - public String getDescription() { - return description; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public void setDescription(String description) { - this.description = description; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public String getDescription() { + return description; } - public static class UPhoneImageInstance extends Response { - - /** 云手机镜像资源Id */ - @SerializedName("ImageId") - private String imageId; - - /** 云手机镜像名称 */ - @SerializedName("ImageName") - private String imageName; - - /** 云手机镜像系统 */ - @SerializedName("OsType") - private String osType; - - /** - * 云手机镜像类型,枚举值:
- * > 用户自制镜像: CUSTOM;
- * > 标准镜像: BASE;; - */ - @SerializedName("ImageType") - private String imageType; - - /** 创建时间,格式为Unix时间戳。 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 修改时间,格式为Unix时间戳。 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** - * 云手机镜像状态
- * * 制作中: 制作中;
- * * 可用的: CREATING;
- * * 制作失败: CREATE_FAILED;
- * * 上传中: UPLOADING
- * * 上传失败: UPLOAD_FAILED;
- * * 未知状态:UNDEFINED或"" - */ - @SerializedName("ImageState") - private String imageState; - - /** 云手机镜像描述信息 */ - @SerializedName("Description") - private String description; - - /** 云手机镜像创建时所属云手机资源 Id */ - @SerializedName("UPhoneId") - private String uPhoneId; - - /** 云手机镜像所安装的应用版本列表,具体参数见 [AppVersionInstance](#appversioninstance) */ - @SerializedName("AppVersions") - private List appVersions; - - public String getImageId() { - return imageId; - } + public void setDescription(String description) { + this.description = description; + } + + } + public static class UPhoneImageInstance extends Response { + + + /** + * 云手机镜像资源Id + */ + @SerializedName("ImageId") + private String imageId; + + + + /** + * 云手机镜像名称 + */ + @SerializedName("ImageName") + private String imageName; + + + + /** + * 云手机镜像系统 + */ + @SerializedName("OsType") + private String osType; + + + + /** + * 云手机镜像类型,枚举值:
> 用户自制镜像: CUSTOM;
> 标准镜像: BASE;; + */ + @SerializedName("ImageType") + private String imageType; + + + + /** + * 创建时间,格式为Unix时间戳。 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间,格式为Unix时间戳。 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 云手机镜像状态
* 制作中: 制作中;
* 可用的: CREATING;
* 制作失败: CREATE_FAILED;
* 上传中: UPLOADING
* 上传失败: UPLOAD_FAILED;
* 未知状态:UNDEFINED或"" + */ + @SerializedName("ImageState") + private String imageState; + + + + /** + * 云手机镜像描述信息 + */ + @SerializedName("Description") + private String description; + + + + /** + * 云手机镜像创建时所属云手机资源 Id + */ + @SerializedName("UPhoneId") + private String uPhoneId; + + + + /** + * 云手机镜像所安装的应用版本列表,具体参数见 [AppVersionInstance](#appversioninstance) + */ + @SerializedName("AppVersions") + private List appVersions; + + + public String getImageId() { + return imageId; + } - public void setImageId(String imageId) { - this.imageId = imageId; - } + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getImageName() { + return imageName; + } - public String getImageName() { - return imageName; - } + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public String getOsType() { + return osType; + } - public void setImageName(String imageName) { - this.imageName = imageName; - } + public void setOsType(String osType) { + this.osType = osType; + } + + public String getImageType() { + return imageType; + } - public String getOsType() { - return osType; - } + public void setImageType(String imageType) { + this.imageType = imageType; + } + + public Integer getCreateTime() { + return createTime; + } - public void setOsType(String osType) { - this.osType = osType; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - public String getImageType() { - return imageType; - } + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public String getImageState() { + return imageState; + } - public void setImageType(String imageType) { - this.imageType = imageType; - } + public void setImageState(String imageState) { + this.imageState = imageState; + } + + public String getDescription() { + return description; + } - public Integer getCreateTime() { - return createTime; - } + public void setDescription(String description) { + this.description = description; + } + + public String getUPhoneId() { + return uPhoneId; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setUPhoneId(String uPhoneId) { + this.uPhoneId = uPhoneId; + } + + public List getAppVersions() { + return appVersions; + } - public Integer getModifyTime() { - return modifyTime; + public void setAppVersions(List appVersions) { + this.appVersions = appVersions; + } + } +} - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - public String getImageState() { - return imageState; - } - public void setImageState(String imageState) { - this.imageState = imageState; - } - public String getDescription() { - return description; - } - public void setDescription(String description) { - this.description = description; - } - public String getUPhoneId() { - return uPhoneId; - } - public void setUPhoneId(String uPhoneId) { - this.uPhoneId = uPhoneId; - } - public List getAppVersions() { - return appVersions; - } - public void setAppVersions(List appVersions) { - this.appVersions = appVersions; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneIpRegionsRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneIpRegionsRequest.java index a0ff70d6..061fd821 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneIpRegionsRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneIpRegionsRequest.java @@ -1,43 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUPhoneIpRegionsRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** * 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取;新增一个oversea虚拟城市,用来获取所有支持的海外独立IP地域 */ @NotEmpty @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -45,7 +58,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCityId() { return cityId; } @@ -53,7 +66,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -61,4 +74,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneIpRegionsResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneIpRegionsResponse.java index fec2ff20..c274d2e5 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneIpRegionsResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneIpRegionsResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneIpRegionsResponse extends Response { - /** 独立IP地域信息。 */ + + + /** + * 独立IP地域信息。 + */ @SerializedName("Regions") private List regions; - - /** 总数量 */ + + + + /** + * 总数量 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getRegions() { return regions; } @@ -36,7 +49,7 @@ public List getRegions() { public void setRegions(List regions) { this.regions = regions; } - + public Integer getTotalCount() { return totalCount; } @@ -44,31 +57,49 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class IpRegion extends Response { + + + /** + * 已开通地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @SerializedName("Id") + private String id; + + + + /** + * 库存状态。枚举值:有库存:Available;无库存:SoldOut + */ + @SerializedName("StockStatus") + private String stockStatus; + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getStockStatus() { + return stockStatus; + } + + public void setStockStatus(String stockStatus) { + this.stockStatus = stockStatus; + } + + } +} + + - public static class IpRegion extends Response { - /** 已开通地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ - @SerializedName("Id") - private String id; - /** 库存状态。枚举值:有库存:Available;无库存:SoldOut */ - @SerializedName("StockStatus") - private String stockStatus; - public String getId() { - return id; - } - public void setId(String id) { - this.id = id; - } - public String getStockStatus() { - return stockStatus; - } - public void setStockStatus(String stockStatus) { - this.stockStatus = stockStatus; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneJobRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneJobRequest.java index b4e8751c..75a560a9 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneJobRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneJobRequest.java @@ -1,66 +1,100 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.uphone.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.uphone.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class DescribeUPhoneJobRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 【数组】Job 的唯一标识 Id,调用方式举例:JobIds.0=希望查询状态的 Job1,JobIds.1=Job2。 如果不传入,则返回当前 城市 所有符合条件的 Job 。 */ + + + + /** + * 【数组】Job 的唯一标识 Id,调用方式举例:JobIds.0=希望查询状态的 Job1,JobIds.1=Job2。 如果不传入,则返回当前 城市 所有符合条件的 Job 。 + */ @UCloudParam("JobIds") private List jobIds; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20,最大100 */ + + + + /** + * 返回数据长度,默认为20,最大100 + */ @UCloudParam("Limit") private Integer limit; - + + + /** - * Job状态,枚举值: 等待状态: PENDING; 运行状态: RUNNING; 成功状态: SUCCESS 失败状态: FAILED 部分成功状态:PARTIAL_SUCCESS + * Job状态,枚举值: +* 等待状态: PENDING; +* 运行状态: RUNNING; +* 成功状态: SUCCESS +* 失败状态: FAILED +* 部分成功状态:PARTIAL_SUCCESS */ @UCloudParam("State") private String state; - + + + /** - * 【数组】Job 类型,调用方式举例:JobTypes.0=希望查询的 Job 类型 1,JobTypes.1=Job 类型 2。 如果不传入,则返回当前 城市 所有符合条件的 Job - * 类型。Job 类型仅支持 - * INSTALL_APP、UNINSTALL_APP、RUN_ASYNC_COMMAND、CREATE_SERVER_AND_UPHONE、SET_UPHONE_GPS、SET_UPHONE_CONFIG、UPLOAD_FILE、DELETE_UPHONE + * 【数组】Job 类型,调用方式举例:JobTypes.0=希望查询的 Job 类型 1,JobTypes.1=Job 类型 2。 如果不传入,则返回当前 城市 所有符合条件的 Job 类型。Job 类型仅支持 INSTALL_APP、UNINSTALL_APP、RUN_ASYNC_COMMAND、CREATE_SERVER_AND_UPHONE、SET_UPHONE_GPS、SET_UPHONE_CONFIG、UPLOAD_FILE、DELETE_UPHONE */ @UCloudParam("Types") private List types; - - /** 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 */ + + + + /** + * 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -68,7 +102,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCityId() { return cityId; } @@ -76,7 +110,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public List getJobIds() { return jobIds; } @@ -84,7 +118,7 @@ public List getJobIds() { public void setJobIds(List jobIds) { this.jobIds = jobIds; } - + public Integer getOffset() { return offset; } @@ -92,7 +126,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -100,7 +134,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getState() { return state; } @@ -108,7 +142,7 @@ public String getState() { public void setState(String state) { this.state = state; } - + public List getTypes() { return types; } @@ -116,7 +150,7 @@ public List getTypes() { public void setTypes(List types) { this.types = types; } - + public String getProductType() { return productType; } @@ -124,4 +158,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneJobResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneJobResponse.java index 53fef35b..5a117c85 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneJobResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneJobResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneJobResponse extends Response { - /** Job信息,详情见数据结构Job(如果Status为等待中,此字段为空) */ + + + /** + * Job信息,详情见数据结构Job(如果Status为等待中,此字段为空) + */ @SerializedName("Jobs") private List jobs; - - /** Job总数 */ + + + + /** + * Job总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getJobs() { return jobs; } @@ -36,7 +49,7 @@ public List getJobs() { public void setJobs(List jobs) { this.jobs = jobs; } - + public Integer getTotalCount() { return totalCount; } @@ -44,214 +57,301 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class Job extends Response { + + + /** + * Job的唯一标识Id + */ + @SerializedName("JobId") + private String jobId; + + + + /** + * Job创建时间,格式为Unix时间戳。 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * Job处理开始时间,格式为Unix时间戳。 + */ + @SerializedName("BeginTime") + private Integer beginTime; + + + + /** + * Job处理结束时间,格式为Unix时间戳。 + */ + @SerializedName("EndTime") + private Integer endTime; + + + + /** + * 任务状态 +* 等待中:PENDING +* 运行中:RUNNING +* 成功:SUCCESS +* 部分成功:PARTIAL_SUCCESS +* 失败:FAILED + */ + @SerializedName("State") + private String state; + + + + /** + * Job类型,仅支持INSTALL_APP、UNINSTALL_APP、RUN_ASYNC_COMMAND。 + */ + @SerializedName("JobType") + private String jobType; + + + + /** + * Task信息,详情见数据结构Task(如果State为PENDING,此字段为空) + */ + @SerializedName("Tasks") + private List tasks; + + + + /** + * 安装/卸载Job相关的应用版本唯一标识 + */ + @SerializedName("AppVersionId") + private String appVersionId; + + + + /** + * 此Job相关的云手机唯一标识 + */ + @SerializedName("UPhoneIds") + private List uPhoneIds; + + + public String getJobId() { + return jobId; + } - public static class Job extends Response { - - /** Job的唯一标识Id */ - @SerializedName("JobId") - private String jobId; - - /** Job创建时间,格式为Unix时间戳。 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** Job处理开始时间,格式为Unix时间戳。 */ - @SerializedName("BeginTime") - private Integer beginTime; - - /** Job处理结束时间,格式为Unix时间戳。 */ - @SerializedName("EndTime") - private Integer endTime; - - /** 任务状态 等待中:PENDING 运行中:RUNNING 成功:SUCCESS 部分成功:PARTIAL_SUCCESS 失败:FAILED */ - @SerializedName("State") - private String state; - - /** Job类型,仅支持INSTALL_APP、UNINSTALL_APP、RUN_ASYNC_COMMAND。 */ - @SerializedName("JobType") - private String jobType; - - /** Task信息,详情见数据结构Task(如果State为PENDING,此字段为空) */ - @SerializedName("Tasks") - private List tasks; - - /** 安装/卸载Job相关的应用版本唯一标识 */ - @SerializedName("AppVersionId") - private String appVersionId; - - /** 此Job相关的云手机唯一标识 */ - @SerializedName("UPhoneIds") - private List uPhoneIds; - - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public Integer getBeginTime() { - return beginTime; - } - - public void setBeginTime(Integer beginTime) { - this.beginTime = beginTime; - } - - public Integer getEndTime() { - return endTime; - } - - public void setEndTime(Integer endTime) { - this.endTime = endTime; - } - - public String getState() { - return state; - } - - public void setState(String state) { - this.state = state; - } - - public String getJobType() { - return jobType; - } - - public void setJobType(String jobType) { - this.jobType = jobType; - } - - public List getTasks() { - return tasks; - } - - public void setTasks(List tasks) { - this.tasks = tasks; - } - - public String getAppVersionId() { - return appVersionId; - } - - public void setAppVersionId(String appVersionId) { - this.appVersionId = appVersionId; - } - - public List getUPhoneIds() { - return uPhoneIds; - } - - public void setUPhoneIds(List uPhoneIds) { - this.uPhoneIds = uPhoneIds; - } + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public Integer getCreateTime() { + return createTime; } - public static class Task extends Response { + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getBeginTime() { + return beginTime; + } - /** Task的唯一标识 */ - @SerializedName("TaskId") - private String taskId; + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } - /** 任务处理开始时间,格式为Unix时间戳。 */ - @SerializedName("BeginTime") - private Integer beginTime; + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public String getState() { + return state; + } - /** 任务处理结束时间,格式为Unix时间戳。 */ - @SerializedName("EndTime") - private Integer endTime; + public void setState(String state) { + this.state = state; + } + + public String getJobType() { + return jobType; + } - /** 任务状态 等待中:PENDING 运行中:RUNNING 成功:SUCCESS 失败:FAILED */ - @SerializedName("State") - private String state; + public void setJobType(String jobType) { + this.jobType = jobType; + } + + public List getTasks() { + return tasks; + } - /** Task错误信息 */ - @SerializedName("ErrorMsg") - private String errorMsg; + public void setTasks(List tasks) { + this.tasks = tasks; + } + + public String getAppVersionId() { + return appVersionId; + } - /** 异步任务执行结果 */ - @SerializedName("ExecuteMsg") - private String executeMsg; + public void setAppVersionId(String appVersionId) { + this.appVersionId = appVersionId; + } + + public List getUPhoneIds() { + return uPhoneIds; + } - /** 云手机的唯一标识,云手机相关任务包含此字段。 */ - @SerializedName("UPhoneId") - private String uPhoneId; + public void setUPhoneIds(List uPhoneIds) { + this.uPhoneIds = uPhoneIds; + } + + } + public static class Task extends Response { + + + /** + * Task的唯一标识 + */ + @SerializedName("TaskId") + private String taskId; + + + + /** + * 任务处理开始时间,格式为Unix时间戳。 + */ + @SerializedName("BeginTime") + private Integer beginTime; + + + + /** + * 任务处理结束时间,格式为Unix时间戳。 + */ + @SerializedName("EndTime") + private Integer endTime; + + + + /** + * 任务状态 +* 等待中:PENDING +* 运行中:RUNNING +* 成功:SUCCESS +* 失败:FAILED + */ + @SerializedName("State") + private String state; + + + + /** + * Task错误信息 + */ + @SerializedName("ErrorMsg") + private String errorMsg; + + + + /** + * 异步任务执行结果 + */ + @SerializedName("ExecuteMsg") + private String executeMsg; + + + + /** + * 云手机的唯一标识,云手机相关任务包含此字段。 + */ + @SerializedName("UPhoneId") + private String uPhoneId; + + + + /** + * 安装/卸载任务相关的应用版本唯一标识ID + */ + @SerializedName("AppVersionId") + private String appVersionId; + + + public String getTaskId() { + return taskId; + } - /** 安装/卸载任务相关的应用版本唯一标识ID */ - @SerializedName("AppVersionId") - private String appVersionId; + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public Integer getBeginTime() { + return beginTime; + } - public String getTaskId() { - return taskId; - } + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } - public void setTaskId(String taskId) { - this.taskId = taskId; - } + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public String getState() { + return state; + } - public Integer getBeginTime() { - return beginTime; - } + public void setState(String state) { + this.state = state; + } + + public String getErrorMsg() { + return errorMsg; + } - public void setBeginTime(Integer beginTime) { - this.beginTime = beginTime; - } + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public String getExecuteMsg() { + return executeMsg; + } - public Integer getEndTime() { - return endTime; - } + public void setExecuteMsg(String executeMsg) { + this.executeMsg = executeMsg; + } + + public String getUPhoneId() { + return uPhoneId; + } - public void setEndTime(Integer endTime) { - this.endTime = endTime; - } + public void setUPhoneId(String uPhoneId) { + this.uPhoneId = uPhoneId; + } + + public String getAppVersionId() { + return appVersionId; + } - public String getState() { - return state; + public void setAppVersionId(String appVersionId) { + this.appVersionId = appVersionId; + } + } +} - public void setState(String state) { - this.state = state; - } - public String getErrorMsg() { - return errorMsg; - } - public void setErrorMsg(String errorMsg) { - this.errorMsg = errorMsg; - } - public String getExecuteMsg() { - return executeMsg; - } - public void setExecuteMsg(String executeMsg) { - this.executeMsg = executeMsg; - } - public String getUPhoneId() { - return uPhoneId; - } - public void setUPhoneId(String uPhoneId) { - this.uPhoneId = uPhoneId; - } - public String getAppVersionId() { - return appVersionId; - } - public void setAppVersionId(String appVersionId) { - this.appVersionId = appVersionId; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneModelRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneModelRequest.java index 8404b1bd..7409d228 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneModelRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneModelRequest.java @@ -1,55 +1,79 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.uphone.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.uphone.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class DescribeUPhoneModelRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** - * 【数组】要获得信息的 UPhoneModel 名称。调用方式举例:UPhoneModelNames.0=希望获取信息的 - * UPhoneModel1,UPhoneModelNames.1=UPhoneModel2。 如果不传入,则返回当前 城市 所有符合条件的 UPhoneModel。 + * 【数组】要获得信息的 UPhoneModel 名称。调用方式举例:UPhoneModelNames.0=希望获取信息的 UPhoneModel1,UPhoneModelNames.1=UPhoneModel2。 如果不传入,则返回当前 城市 所有符合条件的 UPhoneModel。 */ @UCloudParam("UPhoneModelNames") private List uPhoneModelNames; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20,最大100 */ + + + + /** + * 返回数据长度,默认为20,最大100 + */ @UCloudParam("Limit") private Integer limit; - - /** 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 */ + + + + /** + * 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 + */ @UCloudParam("ProductType") private String productType; - - /** 使用场景:海外(OVERSEA),境内(INLAND) */ + + + + /** + * 使用场景:海外(OVERSEA),境内(INLAND) + */ @UCloudParam("Scene") private String scene; - + + public String getProjectId() { return projectId; } @@ -57,7 +81,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUPhoneModelNames() { return uPhoneModelNames; } @@ -65,7 +89,7 @@ public List getUPhoneModelNames() { public void setUPhoneModelNames(List uPhoneModelNames) { this.uPhoneModelNames = uPhoneModelNames; } - + public Integer getOffset() { return offset; } @@ -73,7 +97,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -81,7 +105,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getProductType() { return productType; } @@ -89,7 +113,7 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } - + public String getScene() { return scene; } @@ -97,4 +121,14 @@ public String getScene() { public void setScene(String scene) { this.scene = scene; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneModelResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneModelResponse.java index ccd8ff1b..a51f28b7 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneModelResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneModelResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneModelResponse extends Response { - /** UPhoneModelInstance总数 */ + + + /** + * UPhoneModelInstance总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** UPhoneModel实例列表,具体参数可见 UPhoneModelInstance */ + + + + /** + * UPhoneModel实例列表,具体参数可见 UPhoneModelInstance + */ @SerializedName("UPhoneModels") private List uPhoneModels; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getUPhoneModels() { return uPhoneModels; } @@ -44,103 +57,145 @@ public List getUPhoneModels() { public void setUPhoneModels(List uPhoneModels) { this.uPhoneModels = uPhoneModels; } + + public static class UPhoneModelInstance extends Response { + + + /** + * UPhoneModel名称 + */ + @SerializedName("UPhoneModelName") + private String uPhoneModelName; + + + + /** + * 虚拟CPU核数。 + */ + @SerializedName("CPU") + private Integer cpu; + + + + /** + * 内存大小。单位MB + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * 磁盘大小,单位: GB + */ + @SerializedName("DiskSize") + private Integer diskSize; + + + + /** + * 分辨率 + */ + @SerializedName("Resolution") + private String resolution; + + + + /** + * 刷新率 + */ + @SerializedName("Refresh") + private Integer refresh; + + + + /** + * DPI + */ + @SerializedName("Dpi") + private Integer dpi; + + + + /** + * 型号描述信息 + */ + @SerializedName("Description") + private String description; + + + public String getUPhoneModelName() { + return uPhoneModelName; + } - public static class UPhoneModelInstance extends Response { - - /** UPhoneModel名称 */ - @SerializedName("UPhoneModelName") - private String uPhoneModelName; - - /** 虚拟CPU核数。 */ - @SerializedName("CPU") - private Integer cpu; - - /** 内存大小。单位MB */ - @SerializedName("Memory") - private Integer memory; - - /** 磁盘大小,单位: GB */ - @SerializedName("DiskSize") - private Integer diskSize; - - /** 分辨率 */ - @SerializedName("Resolution") - private String resolution; - - /** 刷新率 */ - @SerializedName("Refresh") - private Integer refresh; - - /** DPI */ - @SerializedName("Dpi") - private Integer dpi; - - /** 型号描述信息 */ - @SerializedName("Description") - private String description; + public void setUPhoneModelName(String uPhoneModelName) { + this.uPhoneModelName = uPhoneModelName; + } + + public Integer getCPU() { + return cpu; + } - public String getUPhoneModelName() { - return uPhoneModelName; - } + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } - public void setUPhoneModelName(String uPhoneModelName) { - this.uPhoneModelName = uPhoneModelName; - } + public void setMemory(Integer memory) { + this.memory = memory; + } + + public Integer getDiskSize() { + return diskSize; + } - public Integer getCPU() { - return cpu; - } + public void setDiskSize(Integer diskSize) { + this.diskSize = diskSize; + } + + public String getResolution() { + return resolution; + } - public void setCPU(Integer cpu) { - this.cpu = cpu; - } + public void setResolution(String resolution) { + this.resolution = resolution; + } + + public Integer getRefresh() { + return refresh; + } - public Integer getMemory() { - return memory; - } + public void setRefresh(Integer refresh) { + this.refresh = refresh; + } + + public Integer getDpi() { + return dpi; + } - public void setMemory(Integer memory) { - this.memory = memory; - } + public void setDpi(Integer dpi) { + this.dpi = dpi; + } + + public String getDescription() { + return description; + } - public Integer getDiskSize() { - return diskSize; + public void setDescription(String description) { + this.description = description; + } + } +} - public void setDiskSize(Integer diskSize) { - this.diskSize = diskSize; - } - public String getResolution() { - return resolution; - } - public void setResolution(String resolution) { - this.resolution = resolution; - } - public Integer getRefresh() { - return refresh; - } - public void setRefresh(Integer refresh) { - this.refresh = refresh; - } - public Integer getDpi() { - return dpi; - } - public void setDpi(Integer dpi) { - this.dpi = dpi; - } - public String getDescription() { - return description; - } - public void setDescription(String description) { - this.description = description; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneRequest.java index c704846f..0faec741 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneRequest.java @@ -1,67 +1,103 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.uphone.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.uphone.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class DescribeUPhoneRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 枚举值。【必填项】表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 */ + + + + /** + * 枚举值。【必填项】表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 + */ @UCloudParam("ProductType") private String productType; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取,没有该参数表示获取所有城市 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取,没有该参数表示获取所有城市 + */ @UCloudParam("CityId") private String cityId; - - /** 云手机服务器的资源ID。 */ + + + + /** + * 云手机服务器的资源ID。 + */ @UCloudParam("ServerId") private String serverId; - + + + /** - * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望获取信息的云手机 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 - * UPhoneId。如果都不传入,则返回当前 城市 所有符合条件的云手机列表。 + * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望获取信息的云手机 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。如果都不传入,则返回当前 城市 所有符合条件的云手机列表。 */ @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为200,最大200 */ + + + + /** + * 返回数据长度,默认为200,最大200 + */ @UCloudParam("Limit") private Integer limit; - - /** 要查询的业务组名称 */ + + + + /** + * 要查询的业务组名称 + */ @UCloudParam("Tag") private String tag; - - /** 是否返回全部。如果有此参数,分页不生效。 */ + + + + /** + * 是否返回全部。如果有此参数,分页不生效。 + */ @UCloudParam("IsAll") private Boolean isAll; - + + public String getProjectId() { return projectId; } @@ -69,7 +105,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getProductType() { return productType; } @@ -77,7 +113,7 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } - + public String getCityId() { return cityId; } @@ -85,7 +121,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getServerId() { return serverId; } @@ -93,7 +129,7 @@ public String getServerId() { public void setServerId(String serverId) { this.serverId = serverId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -101,7 +137,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public Integer getOffset() { return offset; } @@ -109,7 +145,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -117,7 +153,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getTag() { return tag; } @@ -125,7 +161,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public Boolean getIsAll() { return isAll; } @@ -133,4 +169,14 @@ public Boolean getIsAll() { public void setIsAll(Boolean isAll) { this.isAll = isAll; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneResponse.java index 26fbe2d1..6cda33b5 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneResponse extends Response { - /** UPhoneInstance总数 */ + + + /** + * UPhoneInstance总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 云手机实例列表,每项参数可见数据模型 [UPhoneInstance](#UPhoneInstance) */ + + + + /** + * 云手机实例列表,每项参数可见数据模型 [UPhoneInstance](#UPhoneInstance) + */ @SerializedName("UPhones") private List uPhones; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getUPhones() { return uPhones; } @@ -44,380 +57,498 @@ public List getUPhones() { public void setUPhones(List uPhones) { this.uPhones = uPhones; } + + public static class UPhoneInstance extends Response { + + + /** + * 云手机的名称,不超过65个字符。 + */ + @SerializedName("UPhoneName") + private String uPhoneName; + + + + /** + * 云手机的唯一标识,不超过32个字节。 + */ + @SerializedName("UPhoneId") + private String uPhoneId; + + + + /** + * 云手机规格名称 + */ + @SerializedName("UPhoneModelName") + private String uPhoneModelName; + + + + /** + * 虚拟CPU核数。 + */ + @SerializedName("CPU") + private Double cpu; + + + + /** + * 内存大小。单位MB + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * 磁盘大小,单位: GB + */ + @SerializedName("DiskSize") + private Integer diskSize; + + + + /** + * 分辨率 + */ + @SerializedName("Resolution") + private String resolution; + + + + /** + * 刷新率 + */ + @SerializedName("Refresh") + private Integer refresh; + + + + /** + * 云手机所在的服务器ID,不超过32个字节。 + */ + @SerializedName("ServerId") + private String serverId; + + + + /** + * 云手机镜像ID,不超过32个字节。 + */ + @SerializedName("ImageId") + private String imageId; + + + + /** + * 云手机镜像系统,如"Android armv8" + */ + @SerializedName("OsType") + private String osType; + + + + /** + * 云手机状态
* 启动中: STARTING;
* 运行中: RUNNING;
* 关机中: STOPPING;
* 关机: STOPPED
* 重启中: REBOOTING;
* 重置中: RESETTING;
* 启动失败: START_FAILED;
* 关机失败: STOP_FAILED;
* 重启失败: REBOOT_FAILED;
* 重置失败: RESET_FAILED;
* 未知状态:UNDEFINED_STATE或"" + */ + @SerializedName("State") + private String state; + + + + /** + * 城市Id,eg: cn-shanghai, cn-jinan + */ + @SerializedName("CityId") + private String cityId; + + + + /** + * 城市名称,eg:上海二、济南市 + */ + @SerializedName("CityName") + private String cityName; + + + + /** + * 创建时间,格式为Unix时间戳。 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 业务组名称 + + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 云手机启动图片URL链接 + */ + @SerializedName("SplashScreen") + private String splashScreen; + + + + /** + * 云手机异步任务回调 + */ + @SerializedName("Callback") + private String callback; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 到期时间;格式为Unix时间戳 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * IP所属地域Id,eg: hk,th-bkk + */ + @SerializedName("IpRegion") + private String ipRegion; + + + + /** + * 云手机IP地址 + */ + @SerializedName("Ip") + private String ip; + + + + /** + * 云手机IP地址ID + */ + @SerializedName("EipId") + private String eipId; + + + + /** + * 所属共享带宽ID + */ + @SerializedName("ShareBandwidthId") + private String shareBandwidthId; + + + + /** + * 所属共享带宽名称 + */ + @SerializedName("ShareBandwidthName") + private String shareBandwidthName; + + + + /** + * 云手机的ADB信息 + */ + @SerializedName("ADB") + private String adb; + + + + /** + * 云手机带宽,单位Kbps + */ + @SerializedName("UPhoneBandwidth") + private Integer uPhoneBandwidth; + + + + /** + * 是否锁定带宽,true代表锁定不可更改,false代表未锁定可以修改带宽 + */ + @SerializedName("LockBandwidth") + private Boolean lockBandwidth; + + + + /** + * 云手机场景 + */ + @SerializedName("UPhoneScene") + private String uPhoneScene; + + + public String getUPhoneName() { + return uPhoneName; + } - public static class UPhoneInstance extends Response { - - /** 云手机的名称,不超过65个字符。 */ - @SerializedName("UPhoneName") - private String uPhoneName; - - /** 云手机的唯一标识,不超过32个字节。 */ - @SerializedName("UPhoneId") - private String uPhoneId; - - /** 云手机规格名称 */ - @SerializedName("UPhoneModelName") - private String uPhoneModelName; - - /** 虚拟CPU核数。 */ - @SerializedName("CPU") - private Double cpu; - - /** 内存大小。单位MB */ - @SerializedName("Memory") - private Integer memory; - - /** 磁盘大小,单位: GB */ - @SerializedName("DiskSize") - private Integer diskSize; - - /** 分辨率 */ - @SerializedName("Resolution") - private String resolution; - - /** 刷新率 */ - @SerializedName("Refresh") - private Integer refresh; - - /** 云手机所在的服务器ID,不超过32个字节。 */ - @SerializedName("ServerId") - private String serverId; - - /** 云手机镜像ID,不超过32个字节。 */ - @SerializedName("ImageId") - private String imageId; - - /** 云手机镜像系统,如"Android armv8" */ - @SerializedName("OsType") - private String osType; - - /** - * 云手机状态
- * * 启动中: STARTING;
- * * 运行中: RUNNING;
- * * 关机中: STOPPING;
- * * 关机: STOPPED
- * * 重启中: REBOOTING;
- * * 重置中: RESETTING;
- * * 启动失败: START_FAILED;
- * * 关机失败: STOP_FAILED;
- * * 重启失败: REBOOT_FAILED;
- * * 重置失败: RESET_FAILED;
- * * 未知状态:UNDEFINED_STATE或"" - */ - @SerializedName("State") - private String state; - - /** 城市Id,eg: cn-shanghai, cn-jinan */ - @SerializedName("CityId") - private String cityId; - - /** 城市名称,eg:上海二、济南市 */ - @SerializedName("CityName") - private String cityName; - - /** 创建时间,格式为Unix时间戳。 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 业务组名称 */ - @SerializedName("Tag") - private String tag; - - /** 云手机启动图片URL链接 */ - @SerializedName("SplashScreen") - private String splashScreen; - - /** 云手机异步任务回调 */ - @SerializedName("Callback") - private String callback; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付 */ - @SerializedName("ChargeType") - private String chargeType; - - /** 到期时间;格式为Unix时间戳 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** IP所属地域Id,eg: hk,th-bkk */ - @SerializedName("IpRegion") - private String ipRegion; - - /** 云手机IP地址 */ - @SerializedName("Ip") - private String ip; - - /** 云手机IP地址ID */ - @SerializedName("EipId") - private String eipId; - - /** 所属共享带宽ID */ - @SerializedName("ShareBandwidthId") - private String shareBandwidthId; - - /** 所属共享带宽名称 */ - @SerializedName("ShareBandwidthName") - private String shareBandwidthName; - - /** 云手机的ADB信息 */ - @SerializedName("ADB") - private String adb; - - /** 云手机带宽,单位Kbps */ - @SerializedName("UPhoneBandwidth") - private Integer uPhoneBandwidth; - - /** 是否锁定带宽,true代表锁定不可更改,false代表未锁定可以修改带宽 */ - @SerializedName("LockBandwidth") - private Boolean lockBandwidth; - - /** 云手机场景 */ - @SerializedName("UPhoneScene") - private String uPhoneScene; - - public String getUPhoneName() { - return uPhoneName; - } - - public void setUPhoneName(String uPhoneName) { - this.uPhoneName = uPhoneName; - } - - public String getUPhoneId() { - return uPhoneId; - } - - public void setUPhoneId(String uPhoneId) { - this.uPhoneId = uPhoneId; - } - - public String getUPhoneModelName() { - return uPhoneModelName; - } - - public void setUPhoneModelName(String uPhoneModelName) { - this.uPhoneModelName = uPhoneModelName; - } - - public Double getCPU() { - return cpu; - } - - public void setCPU(Double cpu) { - this.cpu = cpu; - } - - public Integer getMemory() { - return memory; - } - - public void setMemory(Integer memory) { - this.memory = memory; - } - - public Integer getDiskSize() { - return diskSize; - } - - public void setDiskSize(Integer diskSize) { - this.diskSize = diskSize; - } - - public String getResolution() { - return resolution; - } - - public void setResolution(String resolution) { - this.resolution = resolution; - } - - public Integer getRefresh() { - return refresh; - } - - public void setRefresh(Integer refresh) { - this.refresh = refresh; - } - - public String getServerId() { - return serverId; - } - - public void setServerId(String serverId) { - this.serverId = serverId; - } - - public String getImageId() { - return imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - } - - public String getOsType() { - return osType; - } - - public void setOsType(String osType) { - this.osType = osType; - } + public void setUPhoneName(String uPhoneName) { + this.uPhoneName = uPhoneName; + } + + public String getUPhoneId() { + return uPhoneId; + } - public String getState() { - return state; - } + public void setUPhoneId(String uPhoneId) { + this.uPhoneId = uPhoneId; + } + + public String getUPhoneModelName() { + return uPhoneModelName; + } - public void setState(String state) { - this.state = state; - } + public void setUPhoneModelName(String uPhoneModelName) { + this.uPhoneModelName = uPhoneModelName; + } + + public Double getCPU() { + return cpu; + } - public String getCityId() { - return cityId; - } + public void setCPU(Double cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } - public void setCityId(String cityId) { - this.cityId = cityId; - } + public void setMemory(Integer memory) { + this.memory = memory; + } + + public Integer getDiskSize() { + return diskSize; + } - public String getCityName() { - return cityName; - } + public void setDiskSize(Integer diskSize) { + this.diskSize = diskSize; + } + + public String getResolution() { + return resolution; + } - public void setCityName(String cityName) { - this.cityName = cityName; - } + public void setResolution(String resolution) { + this.resolution = resolution; + } + + public Integer getRefresh() { + return refresh; + } - public Integer getCreateTime() { - return createTime; - } + public void setRefresh(Integer refresh) { + this.refresh = refresh; + } + + public String getServerId() { + return serverId; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setServerId(String serverId) { + this.serverId = serverId; + } + + public String getImageId() { + return imageId; + } - public String getTag() { - return tag; - } + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getOsType() { + return osType; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setOsType(String osType) { + this.osType = osType; + } + + public String getState() { + return state; + } - public String getSplashScreen() { - return splashScreen; - } + public void setState(String state) { + this.state = state; + } + + public String getCityId() { + return cityId; + } - public void setSplashScreen(String splashScreen) { - this.splashScreen = splashScreen; - } + public void setCityId(String cityId) { + this.cityId = cityId; + } + + public String getCityName() { + return cityName; + } - public String getCallback() { - return callback; - } + public void setCityName(String cityName) { + this.cityName = cityName; + } + + public Integer getCreateTime() { + return createTime; + } - public void setCallback(String callback) { - this.callback = callback; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getTag() { + return tag; + } - public String getRemark() { - return remark; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getSplashScreen() { + return splashScreen; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setSplashScreen(String splashScreen) { + this.splashScreen = splashScreen; + } + + public String getCallback() { + return callback; + } - public String getChargeType() { - return chargeType; - } + public void setCallback(String callback) { + this.callback = callback; + } + + public String getRemark() { + return remark; + } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getChargeType() { + return chargeType; + } - public Integer getExpireTime() { - return expireTime; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getExpireTime() { + return expireTime; + } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getIpRegion() { + return ipRegion; + } - public String getIpRegion() { - return ipRegion; - } + public void setIpRegion(String ipRegion) { + this.ipRegion = ipRegion; + } + + public String getIp() { + return ip; + } - public void setIpRegion(String ipRegion) { - this.ipRegion = ipRegion; - } + public void setIp(String ip) { + this.ip = ip; + } + + public String getEipId() { + return eipId; + } - public String getIp() { - return ip; - } + public void setEipId(String eipId) { + this.eipId = eipId; + } + + public String getShareBandwidthId() { + return shareBandwidthId; + } - public void setIp(String ip) { - this.ip = ip; - } + public void setShareBandwidthId(String shareBandwidthId) { + this.shareBandwidthId = shareBandwidthId; + } + + public String getShareBandwidthName() { + return shareBandwidthName; + } - public String getEipId() { - return eipId; - } + public void setShareBandwidthName(String shareBandwidthName) { + this.shareBandwidthName = shareBandwidthName; + } + + public String getADB() { + return adb; + } - public void setEipId(String eipId) { - this.eipId = eipId; - } + public void setADB(String adb) { + this.adb = adb; + } + + public Integer getUPhoneBandwidth() { + return uPhoneBandwidth; + } - public String getShareBandwidthId() { - return shareBandwidthId; - } + public void setUPhoneBandwidth(Integer uPhoneBandwidth) { + this.uPhoneBandwidth = uPhoneBandwidth; + } + + public Boolean getLockBandwidth() { + return lockBandwidth; + } - public void setShareBandwidthId(String shareBandwidthId) { - this.shareBandwidthId = shareBandwidthId; - } + public void setLockBandwidth(Boolean lockBandwidth) { + this.lockBandwidth = lockBandwidth; + } + + public String getUPhoneScene() { + return uPhoneScene; + } - public String getShareBandwidthName() { - return shareBandwidthName; + public void setUPhoneScene(String uPhoneScene) { + this.uPhoneScene = uPhoneScene; + } + } +} - public void setShareBandwidthName(String shareBandwidthName) { - this.shareBandwidthName = shareBandwidthName; - } - public String getADB() { - return adb; - } - public void setADB(String adb) { - this.adb = adb; - } - public Integer getUPhoneBandwidth() { - return uPhoneBandwidth; - } - public void setUPhoneBandwidth(Integer uPhoneBandwidth) { - this.uPhoneBandwidth = uPhoneBandwidth; - } - public Boolean getLockBandwidth() { - return lockBandwidth; - } - public void setLockBandwidth(Boolean lockBandwidth) { - this.lockBandwidth = lockBandwidth; - } - public String getUPhoneScene() { - return uPhoneScene; - } - public void setUPhoneScene(String uPhoneScene) { - this.uPhoneScene = uPhoneScene; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerModelRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerModelRequest.java index 7ee72651..62386e7b 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerModelRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerModelRequest.java @@ -1,53 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeUPhoneServerModelRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @NotEmpty @UCloudParam("CityId") private String cityId; - + + + /** - * 【数组】要获得信息的 ServerModel 名称。调用方式举例:ServerModelNames.0=希望获取信息的 - * ServerModel1,ServerModelNames.1=ServerModel2。 如果不传入,则返回当前 城市 所有符合条件的 ServerModel。 + * 【数组】要获得信息的 ServerModel 名称。调用方式举例:ServerModelNames.0=希望获取信息的 ServerModel1,ServerModelNames.1=ServerModel2。 如果不传入,则返回当前 城市 所有符合条件的 ServerModel。 */ @UCloudParam("ServerModelNames") private List serverModelNames; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20,最大100 */ + + + + /** + * 返回数据长度,默认为20,最大100 + */ @UCloudParam("Limit") private Integer limit; - + + public String getProjectId() { return projectId; } @@ -55,7 +74,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCityId() { return cityId; } @@ -63,7 +82,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public List getServerModelNames() { return serverModelNames; } @@ -71,7 +90,7 @@ public List getServerModelNames() { public void setServerModelNames(List serverModelNames) { this.serverModelNames = serverModelNames; } - + public Integer getOffset() { return offset; } @@ -79,7 +98,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -87,4 +106,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerModelResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerModelResponse.java index d5eba984..5ec76c1f 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerModelResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerModelResponse.java @@ -1,38 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneServerModelResponse extends Response { - /** ServerModelInstance总数 */ + + + /** + * ServerModelInstance总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 服务器model的库存 */ + + + + /** + * 服务器model的库存 + */ @SerializedName("Stock") private List stock; - - /** ServerModel实例列表,每项参数可见数据模型 ServerModelInstance */ + + + + /** + * ServerModel实例列表,每项参数可见数据模型 ServerModelInstance + */ @SerializedName("ServerModels") private List serverModels; - + + public Integer getTotalCount() { return totalCount; } @@ -40,7 +57,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getStock() { return stock; } @@ -48,7 +65,7 @@ public List getStock() { public void setStock(List stock) { this.stock = stock; } - + public List getServerModels() { return serverModels; } @@ -56,202 +73,272 @@ public List getServerModels() { public void setServerModels(List serverModels) { this.serverModels = serverModels; } - - public static class ServerDiskSet extends Response { - - /** 磁盘类型。请参考磁盘类型。 */ - @SerializedName("DiskType") - private String diskType; - - /** - * 是否是系统盘。枚举值: - * - *

> True,是系统盘 - * - *

> False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 - */ - @SerializedName("IsBoot") - private Boolean isBoot; - - /** 磁盘大小,单位: GB */ - @SerializedName("Size") - private Integer size; - - public String getDiskType() { - return diskType; - } - - public void setDiskType(String diskType) { - this.diskType = diskType; - } - - public Boolean getIsBoot() { - return isBoot; - } - - public void setIsBoot(Boolean isBoot) { - this.isBoot = isBoot; - } - - public Integer getSize() { - return size; - } - - public void setSize(Integer size) { - this.size = size; - } + + public static class ServerDiskSet extends Response { + + + /** + * 磁盘类型。请参考磁盘类型。 + */ + @SerializedName("DiskType") + private String diskType; + + + + /** + * 是否是系统盘。枚举值: + +> True,是系统盘 + +> False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + */ + @SerializedName("IsBoot") + private Boolean isBoot; + + + + /** + * 磁盘大小,单位: GB + */ + @SerializedName("Size") + private Integer size; + + + public String getDiskType() { + return diskType; } - public static class ServerModelInstance extends Response { - - /** ServerModel名称 */ - @SerializedName("ServerModelName") - private String serverModelName; - - /** 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。 */ - @SerializedName("CPU") - private Integer cpu; - - /** 内存大小。单位:MB。 */ - @SerializedName("Memory") - private Integer memory; - - /** 磁盘信息见 UPhoneDiskSet */ - @SerializedName("DiskSet") - private List diskSet; - - /** GPU类型 */ - @SerializedName("GPUType") - private String gpuType; - - /** GPU个数 */ - @SerializedName("GPU") - private Integer gpu; - - /** 【数组】手机说明,包含该服务器规格所能创建的手机规格名及对应手机开数。每项参数可见数据模型 [UPhoneSpec](#UPhoneSpec) */ - @SerializedName("UPhoneSpecs") - private List uPhoneSpecs; - - /** 表示该机型是否上线,用于前端判断是否开放给用户。枚举值: >AVAILABLE,开放 >UNAVAILABLE, 不开放 */ - @SerializedName("ServerModelState") - private String serverModelState; - - public String getServerModelName() { - return serverModelName; - } - - public void setServerModelName(String serverModelName) { - this.serverModelName = serverModelName; - } - - public Integer getCPU() { - return cpu; - } - - public void setCPU(Integer cpu) { - this.cpu = cpu; - } + public void setDiskType(String diskType) { + this.diskType = diskType; + } + + public Boolean getIsBoot() { + return isBoot; + } - public Integer getMemory() { - return memory; - } + public void setIsBoot(Boolean isBoot) { + this.isBoot = isBoot; + } + + public Integer getSize() { + return size; + } - public void setMemory(Integer memory) { - this.memory = memory; + public void setSize(Integer size) { + this.size = size; + } + } + public static class ServerModelInstance extends Response { + + + /** + * ServerModel名称 + */ + @SerializedName("ServerModelName") + private String serverModelName; + + + + /** + * 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。 + */ + @SerializedName("CPU") + private Integer cpu; + + + + /** + * 内存大小。单位:MB。 + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * 磁盘信息见 UPhoneDiskSet + */ + @SerializedName("DiskSet") + private List diskSet; + + + + /** + * GPU类型 + */ + @SerializedName("GPUType") + private String gpuType; + + + + /** + * GPU个数 + */ + @SerializedName("GPU") + private Integer gpu; + + + + /** + * 【数组】手机说明,包含该服务器规格所能创建的手机规格名及对应手机开数。每项参数可见数据模型 [UPhoneSpec](#UPhoneSpec) + */ + @SerializedName("UPhoneSpecs") + private List uPhoneSpecs; + + + + /** + * 表示该机型是否上线,用于前端判断是否开放给用户。枚举值: +>AVAILABLE,开放 +>UNAVAILABLE, 不开放 + */ + @SerializedName("ServerModelState") + private String serverModelState; + + + public String getServerModelName() { + return serverModelName; + } - public List getDiskSet() { - return diskSet; - } + public void setServerModelName(String serverModelName) { + this.serverModelName = serverModelName; + } + + public Integer getCPU() { + return cpu; + } - public void setDiskSet(List diskSet) { - this.diskSet = diskSet; - } + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } - public String getGPUType() { - return gpuType; - } + public void setMemory(Integer memory) { + this.memory = memory; + } + + public List getDiskSet() { + return diskSet; + } - public void setGPUType(String gpuType) { - this.gpuType = gpuType; - } + public void setDiskSet(List diskSet) { + this.diskSet = diskSet; + } + + public String getGPUType() { + return gpuType; + } - public Integer getGPU() { - return gpu; - } + public void setGPUType(String gpuType) { + this.gpuType = gpuType; + } + + public Integer getGPU() { + return gpu; + } - public void setGPU(Integer gpu) { - this.gpu = gpu; - } + public void setGPU(Integer gpu) { + this.gpu = gpu; + } + + public List getUPhoneSpecs() { + return uPhoneSpecs; + } - public List getUPhoneSpecs() { - return uPhoneSpecs; - } + public void setUPhoneSpecs(List uPhoneSpecs) { + this.uPhoneSpecs = uPhoneSpecs; + } + + public String getServerModelState() { + return serverModelState; + } - public void setUPhoneSpecs(List uPhoneSpecs) { - this.uPhoneSpecs = uPhoneSpecs; + public void setServerModelState(String serverModelState) { + this.serverModelState = serverModelState; + } + } + public static class StockInfo extends Response { + + + /** + * ServerModel名称 + */ + @SerializedName("ModelName") + private String modelName; + + + + /** + * 资源余量 + */ + @SerializedName("StockCount") + private Integer stockCount; + + + public String getModelName() { + return modelName; + } - public String getServerModelState() { - return serverModelState; - } + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public Integer getStockCount() { + return stockCount; + } - public void setServerModelState(String serverModelState) { - this.serverModelState = serverModelState; + public void setStockCount(Integer stockCount) { + this.stockCount = stockCount; + } + } + public static class UPhoneSpec extends Response { + + + /** + * 手机规格名 + */ + @SerializedName("UPhoneModelName") + private String uPhoneModelName; + + + + /** + * 手机开数,即该服务器规格能生成对应手机规格的云手机个数 + */ + @SerializedName("UPhoneCount") + private Integer uPhoneCount; + + + public String getUPhoneModelName() { + return uPhoneModelName; } - public static class StockInfo extends Response { - - /** ServerModel名称 */ - @SerializedName("ModelName") - private String modelName; - - /** 资源余量 */ - @SerializedName("StockCount") - private Integer stockCount; - - public String getModelName() { - return modelName; - } + public void setUPhoneModelName(String uPhoneModelName) { + this.uPhoneModelName = uPhoneModelName; + } + + public Integer getUPhoneCount() { + return uPhoneCount; + } - public void setModelName(String modelName) { - this.modelName = modelName; + public void setUPhoneCount(Integer uPhoneCount) { + this.uPhoneCount = uPhoneCount; + } + } +} - public Integer getStockCount() { - return stockCount; - } - public void setStockCount(Integer stockCount) { - this.stockCount = stockCount; - } - } - public static class UPhoneSpec extends Response { - /** 手机规格名 */ - @SerializedName("UPhoneModelName") - private String uPhoneModelName; - /** 手机开数,即该服务器规格能生成对应手机规格的云手机个数 */ - @SerializedName("UPhoneCount") - private Integer uPhoneCount; - public String getUPhoneModelName() { - return uPhoneModelName; - } - public void setUPhoneModelName(String uPhoneModelName) { - this.uPhoneModelName = uPhoneModelName; - } - public Integer getUPhoneCount() { - return uPhoneCount; - } - public void setUPhoneCount(Integer uPhoneCount) { - this.uPhoneCount = uPhoneCount; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerRequest.java index 89ba2dc2..611d737f 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerRequest.java @@ -1,53 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeUPhoneServerRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @NotEmpty @UCloudParam("CityId") private String cityId; - + + + /** - * 【数组】云手机服务器的资源 ID,调用方式举例:ServerIds.0=希望获取信息的服务器 1,ServerIds.1=服务器 2。 如果不传入,则返回当前 城市 - * 所有符合条件的云手机服务器。 + * 【数组】云手机服务器的资源 ID,调用方式举例:ServerIds.0=希望获取信息的服务器 1,ServerIds.1=服务器 2。 如果不传入,则返回当前 城市 所有符合条件的云手机服务器。 */ @UCloudParam("ServerIds") private List serverIds; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20,最大100 */ + + + + /** + * 返回数据长度,默认为20,最大100 + */ @UCloudParam("Limit") private Integer limit; - + + public String getProjectId() { return projectId; } @@ -55,7 +74,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCityId() { return cityId; } @@ -63,7 +82,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public List getServerIds() { return serverIds; } @@ -71,7 +90,7 @@ public List getServerIds() { public void setServerIds(List serverIds) { this.serverIds = serverIds; } - + public Integer getOffset() { return offset; } @@ -79,7 +98,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -87,4 +106,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerResponse.java index 370be29c..f67f2a30 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneServerResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneServerResponse extends Response { - /** ServerInstance总数 */ + + + /** + * ServerInstance总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 云手机服务器列表,每项参数可见数据模型 [ServerInstance](#ServerInstance) */ + + + + /** + * 云手机服务器列表,每项参数可见数据模型 [ServerInstance](#ServerInstance) + */ @SerializedName("Servers") private List servers; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getServers() { return servers; } @@ -44,405 +57,537 @@ public List getServers() { public void setServers(List servers) { this.servers = servers; } - - public static class IpSet extends Response { - - /** IP地址 */ - @SerializedName("Ip") - private String ip; - - /** ipv4或者ipv6 */ - @SerializedName("IpMode") - private String ipMode; - - /** 共有或私有 */ - @SerializedName("IpType") - private String ipType; - - /** 运营商 */ - @SerializedName("Isp") - private String isp; - - public String getIp() { - return ip; - } - - public void setIp(String ip) { - this.ip = ip; - } - - public String getIpMode() { - return ipMode; - } - - public void setIpMode(String ipMode) { - this.ipMode = ipMode; - } - - public String getIpType() { - return ipType; - } - - public void setIpType(String ipType) { - this.ipType = ipType; - } - - public String getIsp() { - return isp; - } - - public void setIsp(String isp) { - this.isp = isp; - } + + public static class IpSet extends Response { + + + /** + * IP地址 + */ + @SerializedName("Ip") + private String ip; + + + + /** + * ipv4或者ipv6 + */ + @SerializedName("IpMode") + private String ipMode; + + + + /** + * 共有或私有 + */ + @SerializedName("IpType") + private String ipType; + + + + /** + * 运营商 + */ + @SerializedName("Isp") + private String isp; + + + public String getIp() { + return ip; } - public static class ServerDiskSet extends Response { - - /** 磁盘类型。请参考磁盘类型。 */ - @SerializedName("DiskType") - private String diskType; - - /** - * 是否是系统盘。枚举值: - * - *

> True,是系统盘 - * - *

> False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 - */ - @SerializedName("IsBoot") - private Boolean isBoot; - - /** 磁盘大小,单位: GB */ - @SerializedName("Size") - private Integer size; - - public String getDiskType() { - return diskType; - } - - public void setDiskType(String diskType) { - this.diskType = diskType; - } - - public Boolean getIsBoot() { - return isBoot; - } - - public void setIsBoot(Boolean isBoot) { - this.isBoot = isBoot; - } - - public Integer getSize() { - return size; - } - - public void setSize(Integer size) { - this.size = size; - } + public void setIp(String ip) { + this.ip = ip; + } + + public String getIpMode() { + return ipMode; } - public static class ServerInstance extends Response { - - /** 云手机服务器的唯一标识。 */ - @SerializedName("ServerId") - private String serverId; - - /** 云手机服务器名称。 */ - @SerializedName("ServerName") - private String serverName; - - /** 云服务器规格。 */ - @SerializedName("ServerModel") - private ServerModelInstance serverModel; - - /** 云手机规格名称。 */ - @SerializedName("UPhoneModelName") - private String uPhoneModelName; - - /** 创建时间,格式为Unix时间戳。 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 修改时间,格式为Unix时间戳。 */ - @SerializedName("ModifyTime") - private Integer modifyTime; - - /** 到期时间,格式为Unix时间戳。 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** - * 计费模式。枚举值为:
- * *Year,按年付费;
- * * Month,按月付费;
- * 默认为月付 - */ - @SerializedName("ChargeType") - private String chargeType; - - /** 城市Id,eg: cn-shanghai, cn-jinan */ - @SerializedName("CityId") - private String cityId; - - /** 城市名称,eg:上海二、济南市 */ - @SerializedName("CityName") - private String cityName; - - /** 云服务器备注。 */ - @SerializedName("Remark") - private String remark; - - /** 云手机开数。 */ - @SerializedName("UPhoneCount") - private Integer uPhoneCount; - - /** - * 实例状态,枚举值: 初始化: Initializing; 云手机创建中: UPhoneCreating; 运行中: Running; 删除中: Deleting; 创建失败: - * CreateFailed 未知(空字符串,获取状态超时或出错):"" - */ - @SerializedName("State") - private String state; - - /** 服务器IP信息 */ - @SerializedName("IpSet") - private List ipSet; - - public String getServerId() { - return serverId; - } - - public void setServerId(String serverId) { - this.serverId = serverId; - } - - public String getServerName() { - return serverName; - } - - public void setServerName(String serverName) { - this.serverName = serverName; - } - - public ServerModelInstance getServerModel() { - return serverModel; - } - - public void setServerModel(ServerModelInstance serverModel) { - this.serverModel = serverModel; - } - - public String getUPhoneModelName() { - return uPhoneModelName; - } - - public void setUPhoneModelName(String uPhoneModelName) { - this.uPhoneModelName = uPhoneModelName; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public Integer getModifyTime() { - return modifyTime; - } - - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; - } - - public Integer getExpireTime() { - return expireTime; - } - - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } - - public String getChargeType() { - return chargeType; - } - - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - - public String getCityId() { - return cityId; - } - - public void setCityId(String cityId) { - this.cityId = cityId; - } - - public String getCityName() { - return cityName; - } - - public void setCityName(String cityName) { - this.cityName = cityName; - } - - public String getRemark() { - return remark; - } - - public void setRemark(String remark) { - this.remark = remark; - } + public void setIpMode(String ipMode) { + this.ipMode = ipMode; + } + + public String getIpType() { + return ipType; + } - public Integer getUPhoneCount() { - return uPhoneCount; - } + public void setIpType(String ipType) { + this.ipType = ipType; + } + + public String getIsp() { + return isp; + } - public void setUPhoneCount(Integer uPhoneCount) { - this.uPhoneCount = uPhoneCount; - } + public void setIsp(String isp) { + this.isp = isp; + } + + } + public static class ServerDiskSet extends Response { + + + /** + * 磁盘类型。请参考磁盘类型。 + */ + @SerializedName("DiskType") + private String diskType; + + + + /** + * 是否是系统盘。枚举值: + +> True,是系统盘 + +> False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + */ + @SerializedName("IsBoot") + private Boolean isBoot; + + + + /** + * 磁盘大小,单位: GB + */ + @SerializedName("Size") + private Integer size; + + + public String getDiskType() { + return diskType; + } - public String getState() { - return state; - } + public void setDiskType(String diskType) { + this.diskType = diskType; + } + + public Boolean getIsBoot() { + return isBoot; + } - public void setState(String state) { - this.state = state; - } + public void setIsBoot(Boolean isBoot) { + this.isBoot = isBoot; + } + + public Integer getSize() { + return size; + } - public List getIpSet() { - return ipSet; - } + public void setSize(Integer size) { + this.size = size; + } + + } + public static class ServerInstance extends Response { + + + /** + * 云手机服务器的唯一标识。 + */ + @SerializedName("ServerId") + private String serverId; + + + + /** + * 云手机服务器名称。 + */ + @SerializedName("ServerName") + private String serverName; + + + + /** + * 云服务器规格。 + */ + @SerializedName("ServerModel") + private ServerModelInstance serverModel; + + + + /** + * 云手机规格名称。 + */ + @SerializedName("UPhoneModelName") + private String uPhoneModelName; + + + + /** + * 创建时间,格式为Unix时间戳。 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 修改时间,格式为Unix时间戳。 + */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + + + /** + * 到期时间,格式为Unix时间戳。 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 计费模式。枚举值为:
*Year,按年付费;
* Month,按月付费;
默认为月付 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 城市Id,eg: cn-shanghai, cn-jinan + */ + @SerializedName("CityId") + private String cityId; + + + + /** + * 城市名称,eg:上海二、济南市 + */ + @SerializedName("CityName") + private String cityName; + + + + /** + * 云服务器备注。 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 云手机开数。 + */ + @SerializedName("UPhoneCount") + private Integer uPhoneCount; + + + + /** + * 实例状态,枚举值: +* 初始化: Initializing; +* 云手机创建中: UPhoneCreating; +* 运行中: Running; +* 删除中: Deleting; +* 创建失败: CreateFailed +* 未知(空字符串,获取状态超时或出错):"" + */ + @SerializedName("State") + private String state; + + + + /** + * 服务器IP信息 + */ + @SerializedName("IpSet") + private List ipSet; + + + public String getServerId() { + return serverId; + } - public void setIpSet(List ipSet) { - this.ipSet = ipSet; - } + public void setServerId(String serverId) { + this.serverId = serverId; + } + + public String getServerName() { + return serverName; } - public static class ServerModelInstance extends Response { + public void setServerName(String serverName) { + this.serverName = serverName; + } + + public ServerModelInstance getServerModel() { + return serverModel; + } - /** ServerModel名称 */ - @SerializedName("ServerModelName") - private String serverModelName; + public void setServerModel(ServerModelInstance serverModel) { + this.serverModel = serverModel; + } + + public String getUPhoneModelName() { + return uPhoneModelName; + } - /** 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。 */ - @SerializedName("CPU") - private Integer cpu; + public void setUPhoneModelName(String uPhoneModelName) { + this.uPhoneModelName = uPhoneModelName; + } + + public Integer getCreateTime() { + return createTime; + } - /** 内存大小。单位:MB。 */ - @SerializedName("Memory") - private Integer memory; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } - /** 磁盘信息见 UPhoneDiskSet */ - @SerializedName("DiskSet") - private List diskSet; + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public Integer getExpireTime() { + return expireTime; + } - /** GPU类型 */ - @SerializedName("GPUType") - private String gpuType; + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getChargeType() { + return chargeType; + } - /** GPU个数 */ - @SerializedName("GPU") - private Integer gpu; + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getCityId() { + return cityId; + } - /** 【数组】手机说明,包含该服务器规格所能创建的手机规格名及对应手机开数。每项参数可见数据模型 [UPhoneSpec](#UPhoneSpec) */ - @SerializedName("UPhoneSpecs") - private List uPhoneSpecs; + public void setCityId(String cityId) { + this.cityId = cityId; + } + + public String getCityName() { + return cityName; + } - /** 表示该机型是否上线,用于前端判断是否开放给用户。枚举值: >AVAILABLE,开放 >UNAVAILABLE, 不开放 */ - @SerializedName("ServerModelState") - private String serverModelState; + public void setCityName(String cityName) { + this.cityName = cityName; + } + + public String getRemark() { + return remark; + } - public String getServerModelName() { - return serverModelName; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getUPhoneCount() { + return uPhoneCount; + } - public void setServerModelName(String serverModelName) { - this.serverModelName = serverModelName; - } + public void setUPhoneCount(Integer uPhoneCount) { + this.uPhoneCount = uPhoneCount; + } + + public String getState() { + return state; + } - public Integer getCPU() { - return cpu; - } + public void setState(String state) { + this.state = state; + } + + public List getIpSet() { + return ipSet; + } - public void setCPU(Integer cpu) { - this.cpu = cpu; - } + public void setIpSet(List ipSet) { + this.ipSet = ipSet; + } + + } + public static class ServerModelInstance extends Response { + + + /** + * ServerModel名称 + */ + @SerializedName("ServerModelName") + private String serverModelName; + + + + /** + * 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。 + */ + @SerializedName("CPU") + private Integer cpu; + + + + /** + * 内存大小。单位:MB。 + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * 磁盘信息见 UPhoneDiskSet + */ + @SerializedName("DiskSet") + private List diskSet; + + + + /** + * GPU类型 + */ + @SerializedName("GPUType") + private String gpuType; + + + + /** + * GPU个数 + */ + @SerializedName("GPU") + private Integer gpu; + + + + /** + * 【数组】手机说明,包含该服务器规格所能创建的手机规格名及对应手机开数。每项参数可见数据模型 [UPhoneSpec](#UPhoneSpec) + */ + @SerializedName("UPhoneSpecs") + private List uPhoneSpecs; + + + + /** + * 表示该机型是否上线,用于前端判断是否开放给用户。枚举值: +>AVAILABLE,开放 +>UNAVAILABLE, 不开放 + */ + @SerializedName("ServerModelState") + private String serverModelState; + + + public String getServerModelName() { + return serverModelName; + } - public Integer getMemory() { - return memory; - } + public void setServerModelName(String serverModelName) { + this.serverModelName = serverModelName; + } + + public Integer getCPU() { + return cpu; + } - public void setMemory(Integer memory) { - this.memory = memory; - } + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } - public List getDiskSet() { - return diskSet; - } + public void setMemory(Integer memory) { + this.memory = memory; + } + + public List getDiskSet() { + return diskSet; + } - public void setDiskSet(List diskSet) { - this.diskSet = diskSet; - } + public void setDiskSet(List diskSet) { + this.diskSet = diskSet; + } + + public String getGPUType() { + return gpuType; + } - public String getGPUType() { - return gpuType; - } + public void setGPUType(String gpuType) { + this.gpuType = gpuType; + } + + public Integer getGPU() { + return gpu; + } - public void setGPUType(String gpuType) { - this.gpuType = gpuType; - } + public void setGPU(Integer gpu) { + this.gpu = gpu; + } + + public List getUPhoneSpecs() { + return uPhoneSpecs; + } - public Integer getGPU() { - return gpu; - } + public void setUPhoneSpecs(List uPhoneSpecs) { + this.uPhoneSpecs = uPhoneSpecs; + } + + public String getServerModelState() { + return serverModelState; + } - public void setGPU(Integer gpu) { - this.gpu = gpu; - } + public void setServerModelState(String serverModelState) { + this.serverModelState = serverModelState; + } + + } + public static class UPhoneSpec extends Response { + + + /** + * 手机规格名 + */ + @SerializedName("UPhoneModelName") + private String uPhoneModelName; + + + + /** + * 手机开数,即该服务器规格能生成对应手机规格的云手机个数 + */ + @SerializedName("UPhoneCount") + private Integer uPhoneCount; + + + public String getUPhoneModelName() { + return uPhoneModelName; + } - public List getUPhoneSpecs() { - return uPhoneSpecs; - } + public void setUPhoneModelName(String uPhoneModelName) { + this.uPhoneModelName = uPhoneModelName; + } + + public Integer getUPhoneCount() { + return uPhoneCount; + } - public void setUPhoneSpecs(List uPhoneSpecs) { - this.uPhoneSpecs = uPhoneSpecs; + public void setUPhoneCount(Integer uPhoneCount) { + this.uPhoneCount = uPhoneCount; + } + } +} - public String getServerModelState() { - return serverModelState; - } - public void setServerModelState(String serverModelState) { - this.serverModelState = serverModelState; - } - } - public static class UPhoneSpec extends Response { - /** 手机规格名 */ - @SerializedName("UPhoneModelName") - private String uPhoneModelName; - /** 手机开数,即该服务器规格能生成对应手机规格的云手机个数 */ - @SerializedName("UPhoneCount") - private Integer uPhoneCount; - public String getUPhoneModelName() { - return uPhoneModelName; - } - public void setUPhoneModelName(String uPhoneModelName) { - this.uPhoneModelName = uPhoneModelName; - } - public Integer getUPhoneCount() { - return uPhoneCount; - } - public void setUPhoneCount(Integer uPhoneCount) { - this.uPhoneCount = uPhoneCount; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneShareBandwidthRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneShareBandwidthRequest.java index 29e3792d..fe8ebc88 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneShareBandwidthRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneShareBandwidthRequest.java @@ -1,41 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUPhoneShareBandwidthRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist);不传代表获取所有区域 */ + + + + /** + * 绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist);不传代表获取所有区域 + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 共享带宽ID,不传表示获取所有共享带宽信息 */ + + + + /** + * 共享带宽ID,不传表示获取所有共享带宽信息 + */ @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - + + public String getProjectId() { return projectId; } @@ -43,7 +58,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getRegion() { return region; } @@ -51,7 +66,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -59,4 +74,14 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneShareBandwidthResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneShareBandwidthResponse.java index dcf576ce..5e6610af 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneShareBandwidthResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/DescribeUPhoneShareBandwidthResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUPhoneShareBandwidthResponse extends Response { - /** 共享带宽信息 */ + + + /** + * 共享带宽信息 + */ @SerializedName("ShareBandwidth") private List shareBandwidth; - - /** 共享带宽总数量 */ + + + + /** + * 共享带宽总数量 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getShareBandwidth() { return shareBandwidth; } @@ -36,7 +49,7 @@ public List getShareBandwidth() { public void setShareBandwidth(List shareBandwidth) { this.shareBandwidth = shareBandwidth; } - + public Integer getTotalCount() { return totalCount; } @@ -44,151 +57,209 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class ShareBandwidthInfo extends Response { + + + /** + * 绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ + @SerializedName("Region") + private String region; + + + + /** + * 共享带宽ID + */ + @SerializedName("Id") + private String id; + + + + /** + * 云手机IP绑定比例 + */ + @SerializedName("IpProportion") + private Integer ipProportion; + + + + /** + * 带宽大小,单位M + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * 共享带宽名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 当前绑定IP数量 + */ + @SerializedName("IpCount") + private Integer ipCount; + + + + /** + * 当前绑定手机数量 + */ + @SerializedName("BindCount") + private Integer bindCount; + + + + /** + * 剩余可绑定手机数量 + */ + @SerializedName("RemainCount") + private Integer remainCount; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 创建时间;格式为Unix时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 到期时间;格式为Unix时间戳 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付 + */ + @SerializedName("ChargeType") + private String chargeType; + + + public String getRegion() { + return region; + } - public static class ShareBandwidthInfo extends Response { - - /** 绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ - @SerializedName("Region") - private String region; - - /** 共享带宽ID */ - @SerializedName("Id") - private String id; - - /** 云手机IP绑定比例 */ - @SerializedName("IpProportion") - private Integer ipProportion; - - /** 带宽大小,单位M */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - /** 共享带宽名称 */ - @SerializedName("Name") - private String name; - - /** 当前绑定IP数量 */ - @SerializedName("IpCount") - private Integer ipCount; - - /** 当前绑定手机数量 */ - @SerializedName("BindCount") - private Integer bindCount; - - /** 剩余可绑定手机数量 */ - @SerializedName("RemainCount") - private Integer remainCount; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** 创建时间;格式为Unix时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 到期时间;格式为Unix时间戳 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 计费模式。枚举值为: > 年 Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认为月付 */ - @SerializedName("ChargeType") - private String chargeType; - - public String getRegion() { - return region; - } - - public void setRegion(String region) { - this.region = region; - } - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } + public void setRegion(String region) { + this.region = region; + } + + public String getId() { + return id; + } - public Integer getIpProportion() { - return ipProportion; - } + public void setId(String id) { + this.id = id; + } + + public Integer getIpProportion() { + return ipProportion; + } - public void setIpProportion(Integer ipProportion) { - this.ipProportion = ipProportion; - } + public void setIpProportion(Integer ipProportion) { + this.ipProportion = ipProportion; + } + + public Integer getBandwidth() { + return bandwidth; + } - public Integer getBandwidth() { - return bandwidth; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getName() { + return name; + } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } + public void setName(String name) { + this.name = name; + } + + public Integer getIpCount() { + return ipCount; + } - public String getName() { - return name; - } + public void setIpCount(Integer ipCount) { + this.ipCount = ipCount; + } + + public Integer getBindCount() { + return bindCount; + } - public void setName(String name) { - this.name = name; - } + public void setBindCount(Integer bindCount) { + this.bindCount = bindCount; + } + + public Integer getRemainCount() { + return remainCount; + } - public Integer getIpCount() { - return ipCount; - } + public void setRemainCount(Integer remainCount) { + this.remainCount = remainCount; + } + + public String getRemark() { + return remark; + } - public void setIpCount(Integer ipCount) { - this.ipCount = ipCount; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getCreateTime() { + return createTime; + } - public Integer getBindCount() { - return bindCount; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public void setBindCount(Integer bindCount) { - this.bindCount = bindCount; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getChargeType() { + return chargeType; + } - public Integer getRemainCount() { - return remainCount; + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + } +} - public void setRemainCount(Integer remainCount) { - this.remainCount = remainCount; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Integer getExpireTime() { - return expireTime; - } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneAllowanceRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneAllowanceRequest.java index e66d80e0..734600d1 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneAllowanceRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneAllowanceRequest.java @@ -1,37 +1,48 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPhoneAllowanceRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @NotEmpty @UCloudParam("CityId") private String cityId; - + + public String getProjectId() { return projectId; } @@ -39,7 +50,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCityId() { return cityId; } @@ -47,4 +58,14 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneAllowanceResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneAllowanceResponse.java index 392d407c..18a95655 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneAllowanceResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneAllowanceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUPhoneAllowanceResponse extends Response { - /** 手机型号以及可创建数量 */ + + + /** + * 手机型号以及可创建数量 + */ @SerializedName("UPhoneAllowance") private List uPhoneAllowance; - + + public List getUPhoneAllowance() { return uPhoneAllowance; } @@ -32,31 +41,49 @@ public List getUPhoneAllowance() { public void setUPhoneAllowance(List uPhoneAllowance) { this.uPhoneAllowance = uPhoneAllowance; } + + public static class UPhoneAllowance extends Response { + + + /** + * 枚举值,云手机型号名称,取值:UPhone X,UPhone Plus,UPhone Pro + */ + @SerializedName("ModelName") + private String modelName; + + + + /** + * 可创建云手机个数 + */ + @SerializedName("Allowance") + private Integer allowance; + + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public Integer getAllowance() { + return allowance; + } + + public void setAllowance(Integer allowance) { + this.allowance = allowance; + } + + } +} + + - public static class UPhoneAllowance extends Response { - /** 枚举值,云手机型号名称,取值:UPhone X,UPhone Plus,UPhone Pro */ - @SerializedName("ModelName") - private String modelName; - /** 可创建云手机个数 */ - @SerializedName("Allowance") - private Integer allowance; - public String getModelName() { - return modelName; - } - public void setModelName(String modelName) { - this.modelName = modelName; - } - public Integer getAllowance() { - return allowance; - } - public void setAllowance(Integer allowance) { - this.allowance = allowance; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneBandwidthUpgradePriceRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneBandwidthUpgradePriceRequest.java index 26d924a4..6a1cbd84 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneBandwidthUpgradePriceRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneBandwidthUpgradePriceRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPhoneBandwidthUpgradePriceRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机ID */ + + + + /** + * 云手机ID + */ @NotEmpty @UCloudParam("UPhoneId") private String uPhoneId; - - /** 带宽大小,单位Kbps,必须是100的整数倍 */ + + + + /** + * 带宽大小,单位Kbps,必须是100的整数倍 + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - - /** 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 */ + + + + /** + * 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 + */ @NotEmpty @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -49,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPhoneId() { return uPhoneId; } @@ -57,7 +76,7 @@ public String getUPhoneId() { public void setUPhoneId(String uPhoneId) { this.uPhoneId = uPhoneId; } - + public Integer getBandwidth() { return bandwidth; } @@ -65,7 +84,7 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } - + public String getProductType() { return productType; } @@ -73,4 +92,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneBandwidthUpgradePriceResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneBandwidthUpgradePriceResponse.java index 405bc044..004e3eb0 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneBandwidthUpgradePriceResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneBandwidthUpgradePriceResponse.java @@ -1,37 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUPhoneBandwidthUpgradePriceResponse extends Response { - /** 规格调整差价。单位: 元,保留小数点后两位有效数字 */ + + + /** + * 规格调整差价。单位: 元,保留小数点后两位有效数字 + */ @SerializedName("Price") private Double price; - - /** 限时优惠的折前原价(即列表价乘以商务折扣后的单价) */ + + + + /** + * 限时优惠的折前原价(即列表价乘以商务折扣后的单价) + */ @SerializedName("OriginalPrice") private Double originalPrice; - - /** 产品列表价 */ + + + + /** + * 产品列表价 + */ @SerializedName("ListPrice") private Double listPrice; - + + public Double getPrice() { return price; } @@ -39,7 +57,7 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } - + public Double getOriginalPrice() { return originalPrice; } @@ -47,7 +65,7 @@ public Double getOriginalPrice() { public void setOriginalPrice(Double originalPrice) { this.originalPrice = originalPrice; } - + public Double getListPrice() { return listPrice; } @@ -55,4 +73,14 @@ public Double getListPrice() { public void setListPrice(Double listPrice) { this.listPrice = listPrice; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhonePriceRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhonePriceRequest.java index 22a7133f..5b818c7b 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhonePriceRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhonePriceRequest.java @@ -1,83 +1,138 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPhonePriceRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @NotEmpty @UCloudParam("CityId") private String cityId; - - /** 云手机规格名称 */ + + + + /** + * 云手机规格名称 + */ @UCloudParam("UPhoneModelName") private Integer uPhoneModelName; - - /** 云手机个数 */ + + + + + + /** + * 云手机个数 + */ @UCloudParam("UPhoneCount") private Integer uPhoneCount; - + + + /** * 计费模式。枚举值为: > Year,按年付费; > Month,按月付费;> Day,按天付费; > Dynamic,按小时预付费; 如果不传某个枚举值,默认返回年付、月付的价格组合集。 */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长。默认: 1。 月付时,此参数传0,代表了购买至月末。 */ + + + + /** + * 购买时长。默认: 1。 月付时,此参数传0,代表了购买至月末。 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("IpDestRegion") private String ipDestRegion; - - /** 购买独立IP需要此参数,其中一个ip的带宽值。 */ + + + + /** + * 购买独立IP需要此参数,其中一个ip的带宽值。 + */ @UCloudParam("INetBandwidth") private Integer iNetBandwidth; - - /** 购买独立IP需要此参数。需要的eip数量。 */ + + + + /** + * 购买独立IP需要此参数。需要的eip数量。 + */ @UCloudParam("IpCount") private Integer ipCount; - - /** 使用全局共享带宽 */ + + + + /** + * 使用全局共享带宽 + */ @UCloudParam("UseGlobalBws") private Boolean useGlobalBws; - - /** 购买独立IP并且使用全局共享带宽时需要此参数,带宽线路数量,与云手机数量一致 */ + + + + /** + * 购买独立IP并且使用全局共享带宽时需要此参数,带宽线路数量,与云手机数量一致 + */ @UCloudParam("BandwidthLine") private Integer bandwidthLine; - - /** 单个云手机带宽大小,单位Kbps,仅在UseKbps为true时生效 */ + + + + /** + * 单个云手机带宽大小,单位Kbps,仅在UseKbps为true时生效 + */ @UCloudParam("UPhoneBandwidth") private Integer uPhoneBandwidth; - - /** 使用Kbps单位带宽,仅在使用全局共享带宽时生效,值为true时BandwidthLine参数不再生效 */ + + + + /** + * 使用Kbps单位带宽,仅在使用全局共享带宽时生效,值为true时BandwidthLine参数不再生效 + */ @UCloudParam("UseKbps") private Boolean useKbps; - + + public String getProjectId() { return projectId; } @@ -85,7 +140,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCityId() { return cityId; } @@ -93,7 +148,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public Integer getUPhoneModelName() { return uPhoneModelName; } @@ -101,7 +156,8 @@ public Integer getUPhoneModelName() { public void setUPhoneModelName(Integer uPhoneModelName) { this.uPhoneModelName = uPhoneModelName; } - + + public Integer getUPhoneCount() { return uPhoneCount; } @@ -109,7 +165,7 @@ public Integer getUPhoneCount() { public void setUPhoneCount(Integer uPhoneCount) { this.uPhoneCount = uPhoneCount; } - + public String getChargeType() { return chargeType; } @@ -117,7 +173,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -125,7 +181,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getIpDestRegion() { return ipDestRegion; } @@ -133,7 +189,7 @@ public String getIpDestRegion() { public void setIpDestRegion(String ipDestRegion) { this.ipDestRegion = ipDestRegion; } - + public Integer getINetBandwidth() { return iNetBandwidth; } @@ -141,7 +197,7 @@ public Integer getINetBandwidth() { public void setINetBandwidth(Integer iNetBandwidth) { this.iNetBandwidth = iNetBandwidth; } - + public Integer getIpCount() { return ipCount; } @@ -149,7 +205,7 @@ public Integer getIpCount() { public void setIpCount(Integer ipCount) { this.ipCount = ipCount; } - + public Boolean getUseGlobalBws() { return useGlobalBws; } @@ -157,7 +213,7 @@ public Boolean getUseGlobalBws() { public void setUseGlobalBws(Boolean useGlobalBws) { this.useGlobalBws = useGlobalBws; } - + public Integer getBandwidthLine() { return bandwidthLine; } @@ -165,7 +221,7 @@ public Integer getBandwidthLine() { public void setBandwidthLine(Integer bandwidthLine) { this.bandwidthLine = bandwidthLine; } - + public Integer getUPhoneBandwidth() { return uPhoneBandwidth; } @@ -173,7 +229,7 @@ public Integer getUPhoneBandwidth() { public void setUPhoneBandwidth(Integer uPhoneBandwidth) { this.uPhoneBandwidth = uPhoneBandwidth; } - + public Boolean getUseKbps() { return useKbps; } @@ -181,4 +237,14 @@ public Boolean getUseKbps() { public void setUseKbps(Boolean useKbps) { this.useKbps = useKbps; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhonePriceResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhonePriceResponse.java index b19c9c71..30f6b5e5 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhonePriceResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhonePriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUPhonePriceResponse extends Response { - /** 价格列表,每项参数见UPhonePriceSet */ + + + /** + * 价格列表,每项参数见UPhonePriceSet + */ @SerializedName("PriceSet") private List priceSet; - + + public List getPriceSet() { return priceSet; } @@ -32,55 +41,84 @@ public List getPriceSet() { public void setPriceSet(List priceSet) { this.priceSet = priceSet; } + + public static class UPhonePriceSet extends Response { + + + /** + * 计费类型,枚举值:Year,Month,Dynamic + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 价格,单位: 元,保留小数点后两位有效数字 + + */ + @SerializedName("Price") + private Double price; + + + + /** + * 限时优惠的折前原价(即列表价乘以商务折扣后的单价) + + */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + + + /** + * 产品列表价 + + */ + @SerializedName("ListPrice") + private Double listPrice; + + + public String getChargeType() { + return chargeType; + } - public static class UPhonePriceSet extends Response { + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } - /** 计费类型,枚举值:Year,Month,Dynamic */ - @SerializedName("ChargeType") - private String chargeType; + public void setPrice(Double price) { + this.price = price; + } + + public Double getOriginalPrice() { + return originalPrice; + } - /** 价格,单位: 元,保留小数点后两位有效数字 */ - @SerializedName("Price") - private Double price; + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + + public Double getListPrice() { + return listPrice; + } - /** 限时优惠的折前原价(即列表价乘以商务折扣后的单价) */ - @SerializedName("OriginalPrice") - private Double originalPrice; + public void setListPrice(Double listPrice) { + this.listPrice = listPrice; + } + + } +} - /** 产品列表价 */ - @SerializedName("ListPrice") - private Double listPrice; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Double getPrice() { - return price; - } - public void setPrice(Double price) { - this.price = price; - } - public Double getOriginalPrice() { - return originalPrice; - } - public void setOriginalPrice(Double originalPrice) { - this.originalPrice = originalPrice; - } - public Double getListPrice() { - return listPrice; - } - public void setListPrice(Double listPrice) { - this.listPrice = listPrice; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneRenewPriceRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneRenewPriceRequest.java index ff2ef15f..6e1e40a6 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneRenewPriceRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneRenewPriceRequest.java @@ -1,45 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPhoneRenewPriceRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机的唯一标识,可通过[查询云手机列表]获取。 */ + + + + /** + * 云手机的唯一标识,可通过[查询云手机列表]获取。 + */ @NotEmpty @UCloudParam("UPhoneId") private String uPhoneId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 计费模式。枚举值为: > Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认返回全部计费方式对应的价格 */ + + + + /** + * 计费模式。枚举值为: > Year,按年付费; > Month,按月付费; > Dynamic,按小时预付费; 默认返回全部计费方式对应的价格 + */ @UCloudParam("ChargeType") private String chargeType; - + + public String getProjectId() { return projectId; } @@ -47,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPhoneId() { return uPhoneId; } @@ -55,7 +74,7 @@ public String getUPhoneId() { public void setUPhoneId(String uPhoneId) { this.uPhoneId = uPhoneId; } - + public String getCityId() { return cityId; } @@ -63,7 +82,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getChargeType() { return chargeType; } @@ -71,4 +90,14 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneRenewPriceResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneRenewPriceResponse.java index 492418a9..93051582 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneRenewPriceResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneRenewPriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUPhoneRenewPriceResponse extends Response { - /** 价格列表,具体参数见UPhonePriceSet */ + + + /** + * 价格列表,具体参数见UPhonePriceSet + */ @SerializedName("PriceSet") private List priceSet; - + + public List getPriceSet() { return priceSet; } @@ -32,55 +41,84 @@ public List getPriceSet() { public void setPriceSet(List priceSet) { this.priceSet = priceSet; } + + public static class UPhonePriceSet extends Response { + + + /** + * 计费类型,枚举值:Year,Month,Dynamic + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 价格,单位: 元,保留小数点后两位有效数字 + + */ + @SerializedName("Price") + private Double price; + + + + /** + * 限时优惠的折前原价(即列表价乘以商务折扣后的单价) + + */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + + + /** + * 产品列表价 + + */ + @SerializedName("ListPrice") + private Double listPrice; + + + public String getChargeType() { + return chargeType; + } - public static class UPhonePriceSet extends Response { + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } - /** 计费类型,枚举值:Year,Month,Dynamic */ - @SerializedName("ChargeType") - private String chargeType; + public void setPrice(Double price) { + this.price = price; + } + + public Double getOriginalPrice() { + return originalPrice; + } - /** 价格,单位: 元,保留小数点后两位有效数字 */ - @SerializedName("Price") - private Double price; + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + + public Double getListPrice() { + return listPrice; + } - /** 限时优惠的折前原价(即列表价乘以商务折扣后的单价) */ - @SerializedName("OriginalPrice") - private Double originalPrice; + public void setListPrice(Double listPrice) { + this.listPrice = listPrice; + } + + } +} - /** 产品列表价 */ - @SerializedName("ListPrice") - private Double listPrice; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Double getPrice() { - return price; - } - public void setPrice(Double price) { - this.price = price; - } - public Double getOriginalPrice() { - return originalPrice; - } - public void setOriginalPrice(Double originalPrice) { - this.originalPrice = originalPrice; - } - public Double getListPrice() { - return listPrice; - } - public void setListPrice(Double listPrice) { - this.listPrice = listPrice; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneScreenCaptureRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneScreenCaptureRequest.java index 0ac1631e..fd50db30 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneScreenCaptureRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneScreenCaptureRequest.java @@ -1,45 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPhoneScreenCaptureRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机ID */ + + + + /** + * 云手机ID + */ @NotEmpty @UCloudParam("UPhoneID") private String uPhoneID; - - /** 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -47,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPhoneID() { return uPhoneID; } @@ -55,7 +74,7 @@ public String getUPhoneID() { public void setUPhoneID(String uPhoneID) { this.uPhoneID = uPhoneID; } - + public String getCityId() { return cityId; } @@ -63,7 +82,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -71,4 +90,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneScreenCaptureResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneScreenCaptureResponse.java index 2c0efce3..c9f502b8 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneScreenCaptureResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneScreenCaptureResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUPhoneScreenCaptureResponse extends Response { - /** 云手机截图URL */ + + + /** + * 云手机截图URL + */ @SerializedName("URL") private String url; - + + public String getURL() { return url; } @@ -31,4 +41,14 @@ public String getURL() { public void setURL(String url) { this.url = url; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerPriceRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerPriceRequest.java index 005008b5..ebb7ddc1 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerPriceRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerPriceRequest.java @@ -1,70 +1,104 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPhoneServerPriceRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @NotEmpty @UCloudParam("CityId") private String cityId; - - /** 服务器规格名称 */ + + + + /** + * 服务器规格名称 + */ @NotEmpty @UCloudParam("ServerModelName") private String serverModelName; - + + + /** * 计费模式。枚举值为: - * - *

> Year,按年付费; - * - *

> Month,按月付费; - * - *

> Dynamic,按小时预付费; 如果不传某个枚举值,默认返回年付、月付的价格组合集。 + +> Year,按年付费; + +> Month,按月付费; + +> Dynamic,按小时预付费; +如果不传某个枚举值,默认返回年付、月付的价格组合集。 */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长。默认: 1。 月付时,此参数传0,代表了购买至月末。 */ + + + + /** + * 购买时长。默认: 1。 月付时,此参数传0,代表了购买至月末。 + */ @UCloudParam("Quantity") private Integer quantity; - - /** 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("IpDestRegion") private String ipDestRegion; - - /** 购买独立IP需要此参数。共享带宽总值。 */ + + + + /** + * 购买独立IP需要此参数。共享带宽总值。 + */ @UCloudParam("Bandwidth") private Integer bandwidth; - - /** 购买独立IP需要此参数。需要的eip数量。 */ + + + + /** + * 购买独立IP需要此参数。需要的eip数量。 + */ @UCloudParam("IpCount") private Integer ipCount; - + + public String getProjectId() { return projectId; } @@ -72,7 +106,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCityId() { return cityId; } @@ -80,7 +114,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getServerModelName() { return serverModelName; } @@ -88,7 +122,7 @@ public String getServerModelName() { public void setServerModelName(String serverModelName) { this.serverModelName = serverModelName; } - + public String getChargeType() { return chargeType; } @@ -96,7 +130,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -104,7 +138,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getIpDestRegion() { return ipDestRegion; } @@ -112,7 +146,7 @@ public String getIpDestRegion() { public void setIpDestRegion(String ipDestRegion) { this.ipDestRegion = ipDestRegion; } - + public Integer getBandwidth() { return bandwidth; } @@ -120,7 +154,7 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } - + public Integer getIpCount() { return ipCount; } @@ -128,4 +162,14 @@ public Integer getIpCount() { public void setIpCount(Integer ipCount) { this.ipCount = ipCount; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerPriceResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerPriceResponse.java index 42fe7669..f8ea7978 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerPriceResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerPriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUPhoneServerPriceResponse extends Response { - /** 价格列表,每项参数见UPhoneServerPriceSet */ + + + /** + * 价格列表,每项参数见UPhoneServerPriceSet + */ @SerializedName("PriceSet") private List priceSet; - + + public List getPriceSet() { return priceSet; } @@ -32,55 +41,81 @@ public List getPriceSet() { public void setPriceSet(List priceSet) { this.priceSet = priceSet; } + + public static class UPhoneServerPriceSet extends Response { + + + /** + * 计费类型,枚举值:Year,Month, Dynamic + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 价格,单位: 元,保留小数点后两位有效数字 + */ + @SerializedName("Price") + private Double price; + + + + /** + * 限时优惠的折前原价(即列表价乘以商务折扣后的单价) + */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + + + /** + * 产品列表价 + */ + @SerializedName("ListPrice") + private Double listPrice; + + + public String getChargeType() { + return chargeType; + } - public static class UPhoneServerPriceSet extends Response { + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } - /** 计费类型,枚举值:Year,Month, Dynamic */ - @SerializedName("ChargeType") - private String chargeType; + public void setPrice(Double price) { + this.price = price; + } + + public Double getOriginalPrice() { + return originalPrice; + } - /** 价格,单位: 元,保留小数点后两位有效数字 */ - @SerializedName("Price") - private Double price; + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + + public Double getListPrice() { + return listPrice; + } - /** 限时优惠的折前原价(即列表价乘以商务折扣后的单价) */ - @SerializedName("OriginalPrice") - private Double originalPrice; + public void setListPrice(Double listPrice) { + this.listPrice = listPrice; + } + + } +} - /** 产品列表价 */ - @SerializedName("ListPrice") - private Double listPrice; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Double getPrice() { - return price; - } - public void setPrice(Double price) { - this.price = price; - } - public Double getOriginalPrice() { - return originalPrice; - } - public void setOriginalPrice(Double originalPrice) { - this.originalPrice = originalPrice; - } - public Double getListPrice() { - return listPrice; - } - public void setListPrice(Double listPrice) { - this.listPrice = listPrice; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerRenewPriceRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerRenewPriceRequest.java index 7351f2cd..2aea5723 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerRenewPriceRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerRenewPriceRequest.java @@ -1,54 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPhoneServerRenewPriceRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机服务器的唯一标识,可通过[查询云手机服务器列表]()获取。 */ + + + + /** + * 云手机服务器的唯一标识,可通过[查询云手机服务器列表]()获取。 + */ @NotEmpty @UCloudParam("ServerId") private String serverId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @NotEmpty @UCloudParam("CityId") private String cityId; - + + + /** * 计费模式。枚举值为: - * - *

> Year,按年付费; - * - *

> Month,按月付费; - * - *

> Dynamic,按小时预付费; 默认返回全部计费方式对应的价格 + +> Year,按年付费; + +> Month,按月付费; + + > Dynamic,按小时预付费; +默认返回全部计费方式对应的价格 */ @UCloudParam("ChargeType") private String chargeType; - + + public String getProjectId() { return projectId; } @@ -56,7 +74,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getServerId() { return serverId; } @@ -64,7 +82,7 @@ public String getServerId() { public void setServerId(String serverId) { this.serverId = serverId; } - + public String getCityId() { return cityId; } @@ -72,7 +90,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getChargeType() { return chargeType; } @@ -80,4 +98,14 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerRenewPriceResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerRenewPriceResponse.java index e49b0634..07e4d5ec 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerRenewPriceResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneServerRenewPriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUPhoneServerRenewPriceResponse extends Response { - /** 价格列表,具体参数见UPhoneServerPriceSet */ + + + /** + * 价格列表,具体参数见UPhoneServerPriceSet + */ @SerializedName("PriceSet") private List priceSet; - + + public List getPriceSet() { return priceSet; } @@ -32,55 +41,81 @@ public List getPriceSet() { public void setPriceSet(List priceSet) { this.priceSet = priceSet; } + + public static class UPhoneServerPriceSet extends Response { + + + /** + * 计费类型,枚举值:Year,Month, Dynamic + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 价格,单位: 元,保留小数点后两位有效数字 + */ + @SerializedName("Price") + private Double price; + + + + /** + * 限时优惠的折前原价(即列表价乘以商务折扣后的单价) + */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + + + /** + * 产品列表价 + */ + @SerializedName("ListPrice") + private Double listPrice; + + + public String getChargeType() { + return chargeType; + } - public static class UPhoneServerPriceSet extends Response { + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } - /** 计费类型,枚举值:Year,Month, Dynamic */ - @SerializedName("ChargeType") - private String chargeType; + public void setPrice(Double price) { + this.price = price; + } + + public Double getOriginalPrice() { + return originalPrice; + } - /** 价格,单位: 元,保留小数点后两位有效数字 */ - @SerializedName("Price") - private Double price; + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + + public Double getListPrice() { + return listPrice; + } - /** 限时优惠的折前原价(即列表价乘以商务折扣后的单价) */ - @SerializedName("OriginalPrice") - private Double originalPrice; + public void setListPrice(Double listPrice) { + this.listPrice = listPrice; + } + + } +} - /** 产品列表价 */ - @SerializedName("ListPrice") - private Double listPrice; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Double getPrice() { - return price; - } - public void setPrice(Double price) { - this.price = price; - } - public Double getOriginalPrice() { - return originalPrice; - } - public void setOriginalPrice(Double originalPrice) { - this.originalPrice = originalPrice; - } - public Double getListPrice() { - return listPrice; - } - public void setListPrice(Double listPrice) { - this.listPrice = listPrice; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneShareBandwidthUpgradePriceRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneShareBandwidthUpgradePriceRequest.java index c0f0f871..349279c3 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneShareBandwidthUpgradePriceRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneShareBandwidthUpgradePriceRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetUPhoneShareBandwidthUpgradePriceRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 共享带宽的ID */ + + + + /** + * 共享带宽的ID + */ @NotEmpty @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - - /** 需要升降级的带宽,默认是当前带宽大小 */ + + + + /** + * 需要升降级的带宽,默认是当前带宽大小 + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - + + public String getProjectId() { return projectId; } @@ -44,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -52,7 +67,7 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } - + public Integer getBandwidth() { return bandwidth; } @@ -60,4 +75,14 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneShareBandwidthUpgradePriceResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneShareBandwidthUpgradePriceResponse.java index b0767159..5d3de234 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneShareBandwidthUpgradePriceResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/GetUPhoneShareBandwidthUpgradePriceResponse.java @@ -1,37 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetUPhoneShareBandwidthUpgradePriceResponse extends Response { - /** 规格调整差价。单位: 元,保留小数点后两位有效数字 */ + + + /** + * 规格调整差价。单位: 元,保留小数点后两位有效数字 + */ @SerializedName("Price") private Double price; - - /** 限时优惠的折前原价(即列表价乘以商务折扣后的单价) */ + + + + /** + * 限时优惠的折前原价(即列表价乘以商务折扣后的单价) + */ @SerializedName("OriginalPrice") private Double originalPrice; - - /** 产品列表价 */ + + + + /** + * 产品列表价 + */ @SerializedName("ListPrice") private Double listPrice; - + + public Double getPrice() { return price; } @@ -39,7 +57,7 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } - + public Double getOriginalPrice() { return originalPrice; } @@ -47,7 +65,7 @@ public Double getOriginalPrice() { public void setOriginalPrice(Double originalPrice) { this.originalPrice = originalPrice; } - + public Double getListPrice() { return listPrice; } @@ -55,4 +73,14 @@ public Double getListPrice() { public void setListPrice(Double listPrice) { this.listPrice = listPrice; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ImportFileRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ImportFileRequest.java index 73b812ce..496344b1 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ImportFileRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ImportFileRequest.java @@ -1,60 +1,91 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class ImportFileRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机ID */ + + + + /** + * 云手机ID + */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 文件名 */ + + + + /** + * 文件名 + */ @NotEmpty @UCloudParam("FileName") private String fileName; - - /** 文件下载链接 */ + + + + /** + * 文件下载链接 + */ @NotEmpty @UCloudParam("URL") private String url; - - /** 城市。 参见 [云手机城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities) */ + + + + /** + * 城市。 参见 [云手机城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities) + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 */ + + + + /** + * 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 + */ @UCloudParam("ProductType") private String productType; - - /** 上传文件为apk时,可强制指定32位还是64位运行 。armeabi-v7a(32位);不填为系统默认值(64位) */ + + + + /** + * 上传文件为apk时,可强制指定32位还是64位运行 +。armeabi-v7a(32位);不填为系统默认值(64位) + */ @UCloudParam("ABI") private String abi; - + + public String getProjectId() { return projectId; } @@ -62,7 +93,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -70,7 +101,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public String getFileName() { return fileName; } @@ -78,7 +109,7 @@ public String getFileName() { public void setFileName(String fileName) { this.fileName = fileName; } - + public String getURL() { return url; } @@ -86,7 +117,7 @@ public String getURL() { public void setURL(String url) { this.url = url; } - + public String getCityId() { return cityId; } @@ -94,7 +125,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -102,7 +133,7 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } - + public String getABI() { return abi; } @@ -110,4 +141,14 @@ public String getABI() { public void setABI(String abi) { this.abi = abi; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ImportFileResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ImportFileResponse.java index e4f0eb74..2863cb74 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ImportFileResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ImportFileResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ImportFileResponse extends Response { - /** 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 */ + + + /** + * 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 + */ @SerializedName("JobId") private String jobId; - + + public String getJobId() { return jobId; } @@ -31,4 +41,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/InstallUPhoneAppVersionRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/InstallUPhoneAppVersionRequest.java index c6883097..d8134c90 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/InstallUPhoneAppVersionRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/InstallUPhoneAppVersionRequest.java @@ -1,53 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class InstallUPhoneAppVersionRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 应用版本的唯一标识ID */ + + + + /** + * 应用版本的唯一标识ID + */ @NotEmpty @UCloudParam("AppVersionId") private String appVersionId; - + + + /** * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望安装应用的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -55,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getAppVersionId() { return appVersionId; } @@ -63,7 +83,7 @@ public String getAppVersionId() { public void setAppVersionId(String appVersionId) { this.appVersionId = appVersionId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -71,7 +91,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public String getCityId() { return cityId; } @@ -79,7 +99,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -87,4 +107,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/InstallUPhoneAppVersionResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/InstallUPhoneAppVersionResponse.java index 90dcc9d6..1879714c 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/InstallUPhoneAppVersionResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/InstallUPhoneAppVersionResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class InstallUPhoneAppVersionResponse extends Response { - /** 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 */ + + + /** + * 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 + */ @SerializedName("JobId") private String jobId; - + + public String getJobId() { return jobId; } @@ -31,4 +41,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneBandwidthRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneBandwidthRequest.java index 91cda8cc..f71e82f7 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneBandwidthRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneBandwidthRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUPhoneBandwidthRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机ID */ + + + + /** + * 云手机ID + */ @NotEmpty @UCloudParam("UPhoneId") private String uPhoneId; - - /** 带宽大小,单位Kbps,必须是100的整数倍 */ + + + + /** + * 带宽大小,单位Kbps,必须是100的整数倍 + */ @NotEmpty @UCloudParam("Bandwidth") private Integer bandwidth; - - /** 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 */ + + + + /** + * 枚举值。表示当前操作的产品类型,目前固定值【uphone】,表示云手机场景。 + */ @NotEmpty @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -49,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPhoneId() { return uPhoneId; } @@ -57,7 +76,7 @@ public String getUPhoneId() { public void setUPhoneId(String uPhoneId) { this.uPhoneId = uPhoneId; } - + public Integer getBandwidth() { return bandwidth; } @@ -65,7 +84,7 @@ public Integer getBandwidth() { public void setBandwidth(Integer bandwidth) { this.bandwidth = bandwidth; } - + public String getProductType() { return productType; } @@ -73,4 +92,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneBandwidthResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneBandwidthResponse.java index 1f9b248f..8f92456d 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneBandwidthResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneBandwidthResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUPhoneBandwidthResponse extends Response {} +public class ModifyUPhoneBandwidthResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneNameRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneNameRequest.java index 2e841007..3ee6d36d 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneNameRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneNameRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUPhoneNameRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机实例的资源ID */ + + + + /** + * 云手机实例的资源ID + */ @NotEmpty @UCloudParam("UPhoneId") private String uPhoneId; - - /** 云手机实例名称 */ + + + + /** + * 云手机实例名称 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - + + public String getProjectId() { return projectId; } @@ -48,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPhoneId() { return uPhoneId; } @@ -56,7 +75,7 @@ public String getUPhoneId() { public void setUPhoneId(String uPhoneId) { this.uPhoneId = uPhoneId; } - + public String getName() { return name; } @@ -64,7 +83,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getCityId() { return cityId; } @@ -72,4 +91,14 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneNameResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneNameResponse.java index 0bf808b4..ce4e4e42 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneNameResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneNameResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ModifyUPhoneNameResponse extends Response { - /** 云手机实例的资源ID */ + + + /** + * 云手机实例的资源ID + */ @SerializedName("UPhoneId") private String uPhoneId; - + + public String getUPhoneId() { return uPhoneId; } @@ -31,4 +41,14 @@ public String getUPhoneId() { public void setUPhoneId(String uPhoneId) { this.uPhoneId = uPhoneId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneRemarkRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneRemarkRequest.java index d6b3e6ca..f621ec75 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneRemarkRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneRemarkRequest.java @@ -1,45 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUPhoneRemarkRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机实例的资源ID */ + + + + /** + * 云手机实例的资源ID + */ @NotEmpty @UCloudParam("UPhoneId") private String uPhoneId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - + + public String getProjectId() { return projectId; } @@ -47,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPhoneId() { return uPhoneId; } @@ -55,7 +74,7 @@ public String getUPhoneId() { public void setUPhoneId(String uPhoneId) { this.uPhoneId = uPhoneId; } - + public String getCityId() { return cityId; } @@ -63,7 +82,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getRemark() { return remark; } @@ -71,4 +90,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneRemarkResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneRemarkResponse.java index 72583ae6..bb65c9bb 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneRemarkResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneRemarkResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ModifyUPhoneRemarkResponse extends Response { - /** 云手机实例的资源ID */ + + + /** + * 云手机实例的资源ID + */ @SerializedName("UPhoneId") private String uPhoneId; - + + public String getUPhoneId() { return uPhoneId; } @@ -31,4 +41,14 @@ public String getUPhoneId() { public void setUPhoneId(String uPhoneId) { this.uPhoneId = uPhoneId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerNameRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerNameRequest.java index aaeb650e..f8cad52e 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerNameRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerNameRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUPhoneServerNameRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @NotEmpty @UCloudParam("CityId") private String cityId; - - /** 云手机服务器的唯一标识 */ + + + + /** + * 云手机服务器的唯一标识 + */ @NotEmpty @UCloudParam("ServerId") private String serverId; - - /** 云手机服务器实例名称 */ + + + + /** + * 云手机服务器实例名称 + */ @UCloudParam("Name") private String name; - + + public String getProjectId() { return projectId; } @@ -48,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCityId() { return cityId; } @@ -56,7 +75,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getServerId() { return serverId; } @@ -64,7 +83,7 @@ public String getServerId() { public void setServerId(String serverId) { this.serverId = serverId; } - + public String getName() { return name; } @@ -72,4 +91,14 @@ public String getName() { public void setName(String name) { this.name = name; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerNameResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerNameResponse.java index 61d2805e..af4e0c78 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerNameResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerNameResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ModifyUPhoneServerNameResponse extends Response { - /** 云手机服务器的唯一标识 */ + + + /** + * 云手机服务器的唯一标识 + */ @SerializedName("ServerId") private String serverId; - + + public String getServerId() { return serverId; } @@ -31,4 +41,14 @@ public String getServerId() { public void setServerId(String serverId) { this.serverId = serverId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerRemarkRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerRemarkRequest.java index 2b59e4d1..5676b005 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerRemarkRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerRemarkRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUPhoneServerRemarkRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @NotEmpty @UCloudParam("CityId") private String cityId; - - /** 云手机服务器的唯一标识 */ + + + + /** + * 云手机服务器的唯一标识 + */ @NotEmpty @UCloudParam("ServerId") private String serverId; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - + + public String getProjectId() { return projectId; } @@ -48,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCityId() { return cityId; } @@ -56,7 +75,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getServerId() { return serverId; } @@ -64,7 +83,7 @@ public String getServerId() { public void setServerId(String serverId) { this.serverId = serverId; } - + public String getRemark() { return remark; } @@ -72,4 +91,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerRemarkResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerRemarkResponse.java index cd0c4ab3..34089fdf 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerRemarkResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneServerRemarkResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ModifyUPhoneServerRemarkResponse extends Response { - /** 云手机服务器的唯一标识 */ + + + /** + * 云手机服务器的唯一标识 + */ @SerializedName("ServerId") private String serverId; - + + public String getServerId() { return serverId; } @@ -31,4 +41,14 @@ public String getServerId() { public void setServerId(String serverId) { this.serverId = serverId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthNameRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthNameRequest.java index de113089..e0cef401 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthNameRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthNameRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUPhoneShareBandwidthNameRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 共享带宽ID */ + + + + /** + * 共享带宽ID + */ @NotEmpty @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - - /** 共享带宽名称 */ + + + + /** + * 共享带宽名称 + */ @NotEmpty @UCloudParam("Name") private String name; - + + public String getProjectId() { return projectId; } @@ -44,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -52,7 +67,7 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } - + public String getName() { return name; } @@ -60,4 +75,14 @@ public String getName() { public void setName(String name) { this.name = name; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthNameResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthNameResponse.java index f6179ca1..b9033dc6 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthNameResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthNameResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUPhoneShareBandwidthNameResponse extends Response {} +public class ModifyUPhoneShareBandwidthNameResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthRemarkRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthRemarkRequest.java index e337623e..4b4f1cad 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthRemarkRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthRemarkRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUPhoneShareBandwidthRemarkRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 共享带宽ID */ + + + + /** + * 共享带宽ID + */ @NotEmpty @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - - /** 共享带宽备注 */ + + + + /** + * 共享带宽备注 + */ @NotEmpty @UCloudParam("Remark") private String remark; - + + public String getProjectId() { return projectId; } @@ -44,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -52,7 +67,7 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } - + public String getRemark() { return remark; } @@ -60,4 +75,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthRemarkResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthRemarkResponse.java index 814a5861..2efacd40 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthRemarkResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthRemarkResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUPhoneShareBandwidthRemarkResponse extends Response {} +public class ModifyUPhoneShareBandwidthRemarkResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthRequest.java index 22eed521..f16dc3f8 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyUPhoneShareBandwidthRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 共享带宽ID */ + + + + /** + * 共享带宽ID + */ @NotEmpty @UCloudParam("ShareBandwidthId") private String shareBandwidthId; - - /** 共享带宽大小;单位M */ + + + + /** + * 共享带宽大小;单位M + */ @NotEmpty @UCloudParam("Bandwidth") private String bandwidth; - + + public String getProjectId() { return projectId; } @@ -44,7 +59,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getShareBandwidthId() { return shareBandwidthId; } @@ -52,7 +67,7 @@ public String getShareBandwidthId() { public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } - + public String getBandwidth() { return bandwidth; } @@ -60,4 +75,14 @@ public String getBandwidth() { public void setBandwidth(String bandwidth) { this.bandwidth = bandwidth; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthResponse.java index a7250147..6596fd83 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ModifyUPhoneShareBandwidthResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyUPhoneShareBandwidthResponse extends Response {} +public class ModifyUPhoneShareBandwidthResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweroffUPhoneRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweroffUPhoneRequest.java index be846c20..4c1f4861 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweroffUPhoneRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweroffUPhoneRequest.java @@ -1,48 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class PoweroffUPhoneRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望关闭的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -50,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -58,7 +74,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public String getCityId() { return cityId; } @@ -66,7 +82,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -74,4 +90,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweroffUPhoneResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweroffUPhoneResponse.java index 7d5130ae..bb1ee260 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweroffUPhoneResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweroffUPhoneResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class PoweroffUPhoneResponse extends Response { - /** 任务ID,用来查询当前任务状态 */ + + + /** + * 任务ID,用来查询当前任务状态 + */ @SerializedName("JobId") private String jobId; - + + public String getJobId() { return jobId; } @@ -31,4 +41,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweronUPhoneRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweronUPhoneRequest.java index b3f5b35e..df5dbabb 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweronUPhoneRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweronUPhoneRequest.java @@ -1,46 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class PoweronUPhoneRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 【数组】云手机实例的资源ID,调用方式举例:UPhoneIds.0=希望开启的云手机实例1的UPhoneId,UPhoneIds.1=云手机实例2的UPhoneId。 */ + + + + /** + * 【数组】云手机实例的资源ID,调用方式举例:UPhoneIds.0=希望开启的云手机实例1的UPhoneId,UPhoneIds.1=云手机实例2的UPhoneId。 + */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -48,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -56,7 +74,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public String getCityId() { return cityId; } @@ -64,7 +82,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -72,4 +90,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweronUPhoneResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweronUPhoneResponse.java index c4048d5d..1c4aec67 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweronUPhoneResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/PoweronUPhoneResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class PoweronUPhoneResponse extends Response { - /** 任务ID,用来查询当前任务状态 */ + + + /** + * 任务ID,用来查询当前任务状态 + */ @SerializedName("JobId") private String jobId; - + + public String getJobId() { return jobId; } @@ -31,4 +41,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RebootUPhoneRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RebootUPhoneRequest.java index 2b7a6c12..c5451da6 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RebootUPhoneRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RebootUPhoneRequest.java @@ -1,48 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class RebootUPhoneRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重启的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -50,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -58,7 +74,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public String getCityId() { return cityId; } @@ -66,7 +82,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -74,4 +90,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RebootUPhoneResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RebootUPhoneResponse.java index d43b1eac..cafb10d7 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RebootUPhoneResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RebootUPhoneResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class RebootUPhoneResponse extends Response { - /** 异步请求成功后返回JobId,用以查询Job状态 */ + + + /** + * 异步请求成功后返回JobId,用以查询Job状态 + */ @SerializedName("JobId") private String jobId; - + + public String getJobId() { return jobId; } @@ -31,4 +41,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RenewUPhoneRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RenewUPhoneRequest.java index 62567f66..97fc22e6 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RenewUPhoneRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RenewUPhoneRequest.java @@ -1,148 +1,264 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class RenewUPhoneRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重启的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - - /** 自定义设备参数设置的开关,true时会读取用户设置的下列设备参数信息;false时随机读取ucloud内置设备参数。默认false */ + + + + /** + * 自定义设备参数设置的开关,true时会读取用户设置的下列设备参数信息;false时随机读取ucloud内置设备参数。默认false + */ @UCloudParam("Customize") private Boolean customize; - - /** 品牌 */ + + + + /** + * 品牌 + */ @UCloudParam("Brand") private String brand; - - /** 设备型号 */ + + + + /** + * 设备型号 + */ @UCloudParam("Model") private String model; - - /** 厂商 */ + + + + /** + * 厂商 + */ @UCloudParam("Manufacture") private String manufacture; - - /** 序列号 */ + + + + /** + * 序列号 + */ @UCloudParam("SerialNumber") private String serialNumber; - - /** 基带版本 */ + + + + /** + * 基带版本 + */ @UCloudParam("BaseBand") private String baseBand; - - /** 主板名 */ + + + + /** + * 主板名 + */ @UCloudParam("Board") private String board; - - /** 显示的版本号 */ + + + + /** + * 显示的版本号 + */ @UCloudParam("DisplayID") private String displayID; - - /** 设备名 */ + + + + /** + * 设备名 + */ @UCloudParam("Device") private String device; - - /** 系统指纹 */ + + + + /** + * 系统指纹 + */ @UCloudParam("FingerPrint") private String fingerPrint; - - /** 产品名称 */ + + + + /** + * 产品名称 + */ @UCloudParam("ProductName") private String productName; - - /** build的版本号 */ + + + + /** + * build的版本号 + */ @UCloudParam("BuildID") private String buildID; - - /** 固件编译主机 */ + + + + /** + * 固件编译主机 + */ @UCloudParam("BuildHost") private String buildHost; - - /** bootloader版本号 */ + + + + /** + * bootloader版本号 + */ @UCloudParam("BootLoader") private String bootLoader; - - /** 系统标记 */ + + + + /** + * 系统标记 + */ @UCloudParam("BuildTags") private String buildTags; - - /** 版本增加说明 */ + + + + /** + * 版本增加说明 + */ @UCloudParam("BuildVersionInc") private String buildVersionInc; - - /** 串号 */ + + + + /** + * 串号 + */ @UCloudParam("IMEI") private String imei; - - /** 手机号码 */ + + + + /** + * 手机号码 + */ @UCloudParam("PhoneNumber") private String phoneNumber; - - /** SIM卡唯一标识 */ + + + + /** + * SIM卡唯一标识 + */ @UCloudParam("ICCID") private String iccid; - - /** 移动识别码 */ + + + + /** + * 移动识别码 + */ @UCloudParam("IMSI") private String imsi; - - /** 移动设备标识码软件 */ + + + + /** + * 移动设备标识码软件 + */ @UCloudParam("IMEISV") private String imeisv; - - /** 移动网络mac地址 */ + + + + /** + * 移动网络mac地址 + */ @UCloudParam("RadioMac") private String radioMac; - - /** 当前连接Wi-Fi名称 */ + + + + /** + * 当前连接Wi-Fi名称 + */ @UCloudParam("WiFiName") private String wiFiName; - - /** Wi-Fi 物理地址 */ + + + + /** + * Wi-Fi 物理地址 + */ @UCloudParam("BSSID") private String bssid; - - /** AOSP唯一标识 */ + + + + /** + * AOSP唯一标识 + */ @UCloudParam("AndroidID") private String androidID; - + + public String getProjectId() { return projectId; } @@ -150,7 +266,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -158,7 +274,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public String getCityId() { return cityId; } @@ -166,7 +282,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -174,7 +290,7 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } - + public Boolean getCustomize() { return customize; } @@ -182,7 +298,7 @@ public Boolean getCustomize() { public void setCustomize(Boolean customize) { this.customize = customize; } - + public String getBrand() { return brand; } @@ -190,7 +306,7 @@ public String getBrand() { public void setBrand(String brand) { this.brand = brand; } - + public String getModel() { return model; } @@ -198,7 +314,7 @@ public String getModel() { public void setModel(String model) { this.model = model; } - + public String getManufacture() { return manufacture; } @@ -206,7 +322,7 @@ public String getManufacture() { public void setManufacture(String manufacture) { this.manufacture = manufacture; } - + public String getSerialNumber() { return serialNumber; } @@ -214,7 +330,7 @@ public String getSerialNumber() { public void setSerialNumber(String serialNumber) { this.serialNumber = serialNumber; } - + public String getBaseBand() { return baseBand; } @@ -222,7 +338,7 @@ public String getBaseBand() { public void setBaseBand(String baseBand) { this.baseBand = baseBand; } - + public String getBoard() { return board; } @@ -230,7 +346,7 @@ public String getBoard() { public void setBoard(String board) { this.board = board; } - + public String getDisplayID() { return displayID; } @@ -238,7 +354,7 @@ public String getDisplayID() { public void setDisplayID(String displayID) { this.displayID = displayID; } - + public String getDevice() { return device; } @@ -246,7 +362,7 @@ public String getDevice() { public void setDevice(String device) { this.device = device; } - + public String getFingerPrint() { return fingerPrint; } @@ -254,7 +370,7 @@ public String getFingerPrint() { public void setFingerPrint(String fingerPrint) { this.fingerPrint = fingerPrint; } - + public String getProductName() { return productName; } @@ -262,7 +378,7 @@ public String getProductName() { public void setProductName(String productName) { this.productName = productName; } - + public String getBuildID() { return buildID; } @@ -270,7 +386,7 @@ public String getBuildID() { public void setBuildID(String buildID) { this.buildID = buildID; } - + public String getBuildHost() { return buildHost; } @@ -278,7 +394,7 @@ public String getBuildHost() { public void setBuildHost(String buildHost) { this.buildHost = buildHost; } - + public String getBootLoader() { return bootLoader; } @@ -286,7 +402,7 @@ public String getBootLoader() { public void setBootLoader(String bootLoader) { this.bootLoader = bootLoader; } - + public String getBuildTags() { return buildTags; } @@ -294,7 +410,7 @@ public String getBuildTags() { public void setBuildTags(String buildTags) { this.buildTags = buildTags; } - + public String getBuildVersionInc() { return buildVersionInc; } @@ -302,7 +418,7 @@ public String getBuildVersionInc() { public void setBuildVersionInc(String buildVersionInc) { this.buildVersionInc = buildVersionInc; } - + public String getIMEI() { return imei; } @@ -310,7 +426,7 @@ public String getIMEI() { public void setIMEI(String imei) { this.imei = imei; } - + public String getPhoneNumber() { return phoneNumber; } @@ -318,7 +434,7 @@ public String getPhoneNumber() { public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } - + public String getICCID() { return iccid; } @@ -326,7 +442,7 @@ public String getICCID() { public void setICCID(String iccid) { this.iccid = iccid; } - + public String getIMSI() { return imsi; } @@ -334,7 +450,7 @@ public String getIMSI() { public void setIMSI(String imsi) { this.imsi = imsi; } - + public String getIMEISV() { return imeisv; } @@ -342,7 +458,7 @@ public String getIMEISV() { public void setIMEISV(String imeisv) { this.imeisv = imeisv; } - + public String getRadioMac() { return radioMac; } @@ -350,7 +466,7 @@ public String getRadioMac() { public void setRadioMac(String radioMac) { this.radioMac = radioMac; } - + public String getWiFiName() { return wiFiName; } @@ -358,7 +474,7 @@ public String getWiFiName() { public void setWiFiName(String wiFiName) { this.wiFiName = wiFiName; } - + public String getBSSID() { return bssid; } @@ -366,7 +482,7 @@ public String getBSSID() { public void setBSSID(String bssid) { this.bssid = bssid; } - + public String getAndroidID() { return androidID; } @@ -374,4 +490,14 @@ public String getAndroidID() { public void setAndroidID(String androidID) { this.androidID = androidID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RenewUPhoneResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RenewUPhoneResponse.java index 7c9dfc6f..a1cb4503 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RenewUPhoneResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RenewUPhoneResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class RenewUPhoneResponse extends Response { - /** 任务ID,用来查询一键新机任务状态 */ + + + /** + * 任务ID,用来查询一键新机任务状态 + */ @SerializedName("JobId") private String jobId; - + + public String getJobId() { return jobId; } @@ -31,4 +41,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ResetUPhoneRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ResetUPhoneRequest.java index ff0b087b..214e03bc 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ResetUPhoneRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ResetUPhoneRequest.java @@ -1,52 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class ResetUPhoneRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - + + + /** * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重置的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - - /** 镜像ID,默认为空。不为空则手机会以填写的镜像进行重置,为空则手机会以重置前的镜像重置 */ + + + + /** + * 镜像ID,默认为空。不为空则手机会以填写的镜像进行重置,为空则手机会以重置前的镜像重置 + */ @UCloudParam("ImageId") private String imageId; - + + public String getProjectId() { return projectId; } @@ -54,7 +74,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -62,7 +82,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public String getCityId() { return cityId; } @@ -70,7 +90,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -78,7 +98,7 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } - + public String getImageId() { return imageId; } @@ -86,4 +106,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ResetUPhoneResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ResetUPhoneResponse.java index edd65863..0e9a3972 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ResetUPhoneResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/ResetUPhoneResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ResetUPhoneResponse extends Response { - /** 异步请求成功后返回JobId,用以查询Job状态 */ + + + /** + * 异步请求成功后返回JobId,用以查询Job状态 + */ @SerializedName("JobId") private String jobId; - + + public String getJobId() { return jobId; } @@ -31,4 +41,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunAsyncCommandRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunAsyncCommandRequest.java index 3404eb6e..4382182a 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunAsyncCommandRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunAsyncCommandRequest.java @@ -1,53 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class RunAsyncCommandRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 待执行的命令。 */ + + + + /** + * 待执行的命令。 + */ @NotEmpty @UCloudParam("Content") private String content; - + + + /** * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望执行命令的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -55,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getContent() { return content; } @@ -63,7 +83,7 @@ public String getContent() { public void setContent(String content) { this.content = content; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -71,7 +91,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public String getCityId() { return cityId; } @@ -79,7 +99,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -87,4 +107,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunAsyncCommandResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunAsyncCommandResponse.java index 39e5ecef..dc408a7b 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunAsyncCommandResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunAsyncCommandResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class RunAsyncCommandResponse extends Response { - /** 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 */ + + + /** + * 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 + */ @SerializedName("JobId") private String jobId; - + + public String getJobId() { return jobId; } @@ -31,4 +41,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunSyncCommandRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunSyncCommandRequest.java index 5d9e18a9..7ba8b821 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunSyncCommandRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunSyncCommandRequest.java @@ -1,53 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class RunSyncCommandRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 待执行的命令。 */ + + + + /** + * 待执行的命令。 + */ @NotEmpty @UCloudParam("Content") private String content; - + + + /** * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望执行命令的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -55,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getContent() { return content; } @@ -63,7 +83,7 @@ public String getContent() { public void setContent(String content) { this.content = content; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -71,7 +91,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public String getCityId() { return cityId; } @@ -79,7 +99,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -87,4 +107,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunSyncCommandResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunSyncCommandResponse.java index 3c399888..5da10ed3 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunSyncCommandResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/RunSyncCommandResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class RunSyncCommandResponse extends Response { - /** 云主机实例列表,每项参数可见数据模型 [UPhoneCommandResult](#UPhoneCommandResult) */ + + + /** + * 云主机实例列表,每项参数可见数据模型 [UPhoneCommandResult](#UPhoneCommandResult) + */ @SerializedName("Results") private List results; - + + public List getResults() { return results; } @@ -32,31 +41,49 @@ public List getResults() { public void setResults(List results) { this.results = results; } + + public static class UPhoneCommandResult extends Response { + + + /** + * 云手机实例的资源ID。 + */ + @SerializedName("UPhoneId") + private String uPhoneId; + + + + /** + * 同步shell命令的执行结果。 + */ + @SerializedName("ExecuteMsg") + private String executeMsg; + + + public String getUPhoneId() { + return uPhoneId; + } + + public void setUPhoneId(String uPhoneId) { + this.uPhoneId = uPhoneId; + } + + public String getExecuteMsg() { + return executeMsg; + } + + public void setExecuteMsg(String executeMsg) { + this.executeMsg = executeMsg; + } + + } +} + + - public static class UPhoneCommandResult extends Response { - /** 云手机实例的资源ID。 */ - @SerializedName("UPhoneId") - private String uPhoneId; - /** 同步shell命令的执行结果。 */ - @SerializedName("ExecuteMsg") - private String executeMsg; - public String getUPhoneId() { - return uPhoneId; - } - public void setUPhoneId(String uPhoneId) { - this.uPhoneId = uPhoneId; - } - public String getExecuteMsg() { - return executeMsg; - } - public void setExecuteMsg(String executeMsg) { - this.executeMsg = executeMsg; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneCallbackRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneCallbackRequest.java index f03b3869..6b4d6f10 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneCallbackRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneCallbackRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class SetUPhoneCallbackRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机ID。 */ + + + + /** + * 云手机ID。 + */ @NotEmpty @UCloudParam("UPhoneId") private String uPhoneId; - - /** 接收POST请求的http接口。Content-Type:application/json; charset=UTF-8,Accept:application/json。 */ + + + + /** + * 接收POST请求的http接口。Content-Type:application/json; charset=UTF-8,Accept:application/json。 + */ @NotEmpty @UCloudParam("URL") private String url; - - /** 城市ID */ + + + + /** + * 城市ID + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -52,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPhoneId() { return uPhoneId; } @@ -60,7 +83,7 @@ public String getUPhoneId() { public void setUPhoneId(String uPhoneId) { this.uPhoneId = uPhoneId; } - + public String getURL() { return url; } @@ -68,7 +91,7 @@ public String getURL() { public void setURL(String url) { this.url = url; } - + public String getCityId() { return cityId; } @@ -76,7 +99,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -84,4 +107,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneCallbackResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneCallbackResponse.java index 18119f58..827990f8 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneCallbackResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneCallbackResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class SetUPhoneCallbackResponse extends Response {} +public class SetUPhoneCallbackResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneConfigRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneConfigRequest.java index 3ea4c643..f1eceeba 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneConfigRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneConfigRequest.java @@ -1,66 +1,104 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class SetUPhoneConfigRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 */ + + + + /** + * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 + */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 云手机画面分辨率(宽x高) (例,1920x1080,中间是字母x)宽和高的取值范围[100,5000] */ + + + + /** + * 云手机画面分辨率(宽x高) (例,1920x1080,中间是字母x)宽和高的取值范围[100,5000] + */ @UCloudParam("Resolution") private String resolution; - - /** 云手机画面刷新率,即帧率(例,30)取值范围[1,200] */ + + + + /** + * 云手机画面刷新率,即帧率(例,30)取值范围[1,200] + */ @UCloudParam("Refresh") private String refresh; - - /** 云手机画面传输码率(例,8000)取值范围[100,50000] */ + + + + /** + * 云手机画面传输码率(例,8000)取值范围[100,50000] + */ @UCloudParam("Bitrate") private String bitrate; - - /** 异步请求开关,只有为1的时候才是异步,不填或者其他数值为同步 */ + + + + /** + * 异步请求开关,只有为1的时候才是异步,不填或者其他数值为同步 + */ @UCloudParam("Async") private String async; - - /** 云手机dpi,取值范围[100,1000] */ + + + + /** + * 云手机dpi,取值范围[100,1000] + */ @UCloudParam("Dpi") private String dpi; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -68,7 +106,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -76,7 +114,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public String getCityId() { return cityId; } @@ -84,7 +122,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getResolution() { return resolution; } @@ -92,7 +130,7 @@ public String getResolution() { public void setResolution(String resolution) { this.resolution = resolution; } - + public String getRefresh() { return refresh; } @@ -100,7 +138,7 @@ public String getRefresh() { public void setRefresh(String refresh) { this.refresh = refresh; } - + public String getBitrate() { return bitrate; } @@ -108,7 +146,7 @@ public String getBitrate() { public void setBitrate(String bitrate) { this.bitrate = bitrate; } - + public String getAsync() { return async; } @@ -116,7 +154,7 @@ public String getAsync() { public void setAsync(String async) { this.async = async; } - + public String getDpi() { return dpi; } @@ -124,7 +162,7 @@ public String getDpi() { public void setDpi(String dpi) { this.dpi = dpi; } - + public String getProductType() { return productType; } @@ -132,4 +170,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneConfigResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneConfigResponse.java index 43fd46f8..a19480a0 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneConfigResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneConfigResponse.java @@ -1,38 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class SetUPhoneConfigResponse extends Response { - /** request_uuid,唯一值,用于区分request */ + + + /** + * request_uuid,唯一值,用于区分request + */ @SerializedName("RequestId") private String requestId; - - /** 异步请求成功后返回JobId,用以查询Job状态 */ + + + + /** + * 异步请求成功后返回JobId,用以查询Job状态 + */ @SerializedName("JobId") private String jobId; - - /** 同步请求会返回命令行结果,异步请求该参数为空 */ + + + + /** + * 同步请求会返回命令行结果,异步请求该参数为空 + */ @SerializedName("Results") private List results; - + + public String getRequestId() { return requestId; } @@ -40,7 +57,7 @@ public String getRequestId() { public void setRequestId(String requestId) { this.requestId = requestId; } - + public String getJobId() { return jobId; } @@ -48,7 +65,7 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } - + public List getResults() { return results; } @@ -56,31 +73,49 @@ public List getResults() { public void setResults(List results) { this.results = results; } + + public static class Results extends Response { + + + /** + * + */ + @SerializedName("ExecuteMsg") + private String executeMsg; + + + + /** + * + */ + @SerializedName("UPhoneId") + private String uPhoneId; + + + public String getExecuteMsg() { + return executeMsg; + } + + public void setExecuteMsg(String executeMsg) { + this.executeMsg = executeMsg; + } + + public String getUPhoneId() { + return uPhoneId; + } + + public void setUPhoneId(String uPhoneId) { + this.uPhoneId = uPhoneId; + } + + } +} + + - public static class Results extends Response { - /** */ - @SerializedName("ExecuteMsg") - private String executeMsg; - /** */ - @SerializedName("UPhoneId") - private String uPhoneId; - public String getExecuteMsg() { - return executeMsg; - } - public void setExecuteMsg(String executeMsg) { - this.executeMsg = executeMsg; - } - public String getUPhoneId() { - return uPhoneId; - } - public void setUPhoneId(String uPhoneId) { - this.uPhoneId = uPhoneId; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneGPSRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneGPSRequest.java index 222b93ab..c9d4e5bd 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneGPSRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneGPSRequest.java @@ -1,44 +1,63 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ -package cn.ucloud.uphone.models; -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; +package cn.ucloud.uphone.models; import java.util.List; + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + public class SetUPhoneGPSRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** */ + + + + /** + * + */ @UCloudParam("UPhoneGPSs") private List uPhoneGPSs; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -46,7 +65,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCityId() { return cityId; } @@ -54,7 +73,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public List getUPhoneGPSs() { return uPhoneGPSs; } @@ -62,7 +81,7 @@ public List getUPhoneGPSs() { public void setUPhoneGPSs(List uPhoneGPSs) { this.uPhoneGPSs = uPhoneGPSs; } - + public String getProductType() { return productType; } @@ -70,67 +89,97 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + + public static class UPhoneGPSs extends Request { + + + /** + * 云手机ID + */ + @UCloudParam("UPhoneId") + private String uPhoneId; + + + + /** + * 经度:-180~180 + */ + @UCloudParam("Longitude") + private Double longitude; + + + + /** + * 纬度:-90~90 + */ + @UCloudParam("Latitude") + private Double latitude; + + + + /** + * 海拔 + */ + @UCloudParam("Altitude") + private Double altitude; + + + + /** + * GPS开关,true开启,false关闭,默认false + */ + @UCloudParam("Enabled") + private Boolean enabled; + + + public String getUPhoneId() { + return uPhoneId; + } - public static class UPhoneGPSs extends Request { - - /** 云手机ID */ - @UCloudParam("UPhoneId") - private String uPhoneId; - - /** 经度:-180~180 */ - @UCloudParam("Longitude") - private Double longitude; + public void setUPhoneId(String uPhoneId) { + this.uPhoneId = uPhoneId; + } + + public Double getLongitude() { + return longitude; + } - /** 纬度:-90~90 */ - @UCloudParam("Latitude") - private Double latitude; + public void setLongitude(Double longitude) { + this.longitude = longitude; + } + + public Double getLatitude() { + return latitude; + } - /** 海拔 */ - @UCloudParam("Altitude") - private Double altitude; + public void setLatitude(Double latitude) { + this.latitude = latitude; + } + + public Double getAltitude() { + return altitude; + } - /** GPS开关,true开启,false关闭,默认false */ - @UCloudParam("Enabled") - private Boolean enabled; + public void setAltitude(Double altitude) { + this.altitude = altitude; + } + + public Boolean getEnabled() { + return enabled; + } - public String getUPhoneId() { - return uPhoneId; + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + } +} - public void setUPhoneId(String uPhoneId) { - this.uPhoneId = uPhoneId; - } - public Double getLongitude() { - return longitude; - } - public void setLongitude(Double longitude) { - this.longitude = longitude; - } - public Double getLatitude() { - return latitude; - } - public void setLatitude(Double latitude) { - this.latitude = latitude; - } - public Double getAltitude() { - return altitude; - } - public void setAltitude(Double altitude) { - this.altitude = altitude; - } - public Boolean getEnabled() { - return enabled; - } - public void setEnabled(Boolean enabled) { - this.enabled = enabled; - } - } -} diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneGPSResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneGPSResponse.java index b7b416b6..8c72064f 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneGPSResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneGPSResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class SetUPhoneGPSResponse extends Response { - /** 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 */ + + + /** + * 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 + */ @SerializedName("JobId") private String jobId; - + + public String getJobId() { return jobId; } @@ -31,4 +41,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneManagerModeRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneManagerModeRequest.java index acacae0d..1ecf1f32 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneManagerModeRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneManagerModeRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class SetUPhoneManagerModeRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机实例的资源ID */ + + + + /** + * 云手机实例的资源ID + */ @NotEmpty @UCloudParam("UPhoneId") private String uPhoneId; - - /** 管理模式:管理员admin,普通用户user */ + + + + /** + * 管理模式:管理员admin,普通用户user + */ @NotEmpty @UCloudParam("Mode") private String mode; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -52,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPhoneId() { return uPhoneId; } @@ -60,7 +83,7 @@ public String getUPhoneId() { public void setUPhoneId(String uPhoneId) { this.uPhoneId = uPhoneId; } - + public String getMode() { return mode; } @@ -68,7 +91,7 @@ public String getMode() { public void setMode(String mode) { this.mode = mode; } - + public String getCityId() { return cityId; } @@ -76,7 +99,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -84,4 +107,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneManagerModeResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneManagerModeResponse.java index 024a421f..343a6a9a 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneManagerModeResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneManagerModeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class SetUPhoneManagerModeResponse extends Response {} +public class SetUPhoneManagerModeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneRootModeRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneRootModeRequest.java index 2e619369..13c12ecf 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneRootModeRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneRootModeRequest.java @@ -1,58 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class SetUPhoneRootModeRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - + + + /** * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重启的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** true则打开Root权限;false则关闭Root权限 */ + + + + /** + * true则打开Root权限;false则关闭Root权限 + */ @NotEmpty @UCloudParam("Root") private Boolean root; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - - /** 【数组】加入应用白名单的包名 */ + + + + /** + * 【数组】加入应用白名单的包名 + */ @UCloudParam("PkgNames") private List pkgNames; - + + public String getProjectId() { return projectId; } @@ -60,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -68,7 +92,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public Boolean getRoot() { return root; } @@ -76,7 +100,7 @@ public Boolean getRoot() { public void setRoot(Boolean root) { this.root = root; } - + public String getCityId() { return cityId; } @@ -84,7 +108,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -92,7 +116,7 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } - + public List getPkgNames() { return pkgNames; } @@ -100,4 +124,14 @@ public List getPkgNames() { public void setPkgNames(List pkgNames) { this.pkgNames = pkgNames; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneRootModeResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneRootModeResponse.java index 7c3ccf3e..3310835f 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneRootModeResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneRootModeResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class SetUPhoneRootModeResponse extends Response { - /** 异步请求成功后返回JobId,用以查询Job状态 */ + + + /** + * 异步请求成功后返回JobId,用以查询Job状态 + */ @SerializedName("JobId") private String jobId; - + + public String getJobId() { return jobId; } @@ -31,4 +41,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneTokenRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneTokenRequest.java index f1ed8f62..4fbd64b1 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneTokenRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneTokenRequest.java @@ -1,49 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class SetUPhoneTokenRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机ID */ + + + + /** + * 云手机ID + */ @NotEmpty @UCloudParam("UPhoneId") private String uPhoneId; - - /** 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** RTC连接Token,为空表示清空Token */ + + + + /** + * RTC连接Token,为空表示清空Token + */ @UCloudParam("Token") private String token; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -51,7 +74,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getUPhoneId() { return uPhoneId; } @@ -59,7 +82,7 @@ public String getUPhoneId() { public void setUPhoneId(String uPhoneId) { this.uPhoneId = uPhoneId; } - + public String getCityId() { return cityId; } @@ -67,7 +90,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getToken() { return token; } @@ -75,7 +98,7 @@ public String getToken() { public void setToken(String token) { this.token = token; } - + public String getProductType() { return productType; } @@ -83,4 +106,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneTokenResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneTokenResponse.java index ecd8d5bb..b58d238b 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneTokenResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/SetUPhoneTokenResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class SetUPhoneTokenResponse extends Response {} +public class SetUPhoneTokenResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UnInstallUPhoneAppVersionRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UnInstallUPhoneAppVersionRequest.java index 791f4ec9..0202e61d 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UnInstallUPhoneAppVersionRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UnInstallUPhoneAppVersionRequest.java @@ -1,53 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UnInstallUPhoneAppVersionRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 应用版本的唯一标识ID */ + + + + /** + * 应用版本的唯一标识ID + */ @NotEmpty @UCloudParam("AppVersionId") private String appVersionId; - + + + /** * 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望卸载应用的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。 */ @NotEmpty @UCloudParam("UPhoneIds") private List uPhoneIds; - - /** 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 */ + + + + /** + * 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取 + */ @UCloudParam("CityId") private String cityId; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -55,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getAppVersionId() { return appVersionId; } @@ -63,7 +83,7 @@ public String getAppVersionId() { public void setAppVersionId(String appVersionId) { this.appVersionId = appVersionId; } - + public List getUPhoneIds() { return uPhoneIds; } @@ -71,7 +91,7 @@ public List getUPhoneIds() { public void setUPhoneIds(List uPhoneIds) { this.uPhoneIds = uPhoneIds; } - + public String getCityId() { return cityId; } @@ -79,7 +99,7 @@ public String getCityId() { public void setCityId(String cityId) { this.cityId = cityId; } - + public String getProductType() { return productType; } @@ -87,4 +107,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UnInstallUPhoneAppVersionResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UnInstallUPhoneAppVersionResponse.java index af7b1644..8658c540 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UnInstallUPhoneAppVersionResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UnInstallUPhoneAppVersionResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class UnInstallUPhoneAppVersionResponse extends Response { - /** 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 */ + + + /** + * 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态 + */ @SerializedName("JobId") private String jobId; - + + public String getJobId() { return jobId; } @@ -31,4 +41,14 @@ public String getJobId() { public void setJobId(String jobId) { this.jobId = jobId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UpdateUPhoneImageRequest.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UpdateUPhoneImageRequest.java index 9895ad35..8853e1cf 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UpdateUPhoneImageRequest.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UpdateUPhoneImageRequest.java @@ -1,49 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUPhoneImageRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 云手机自定义镜像资源ID */ + + + + /** + * 云手机自定义镜像资源ID + */ @NotEmpty @UCloudParam("ImageId") private String imageId; - - /** 镜像名称。长度为2~128个英文或中文字符。 */ + + + + /** + * 镜像名称。长度为2~128个英文或中文字符。 + */ @UCloudParam("Name") private String name; - - /** 镜像的描述信息。长度为2~256个英文或中文字符 */ + + + + /** + * 镜像的描述信息。长度为2~256个英文或中文字符 + */ @UCloudParam("Description") private String description; - - /** 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 */ + + + + /** + * 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。 + */ @UCloudParam("ProductType") private String productType; - + + public String getProjectId() { return projectId; } @@ -51,7 +74,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageId() { return imageId; } @@ -59,7 +82,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getName() { return name; } @@ -67,7 +90,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getDescription() { return description; } @@ -75,7 +98,7 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } - + public String getProductType() { return productType; } @@ -83,4 +106,14 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UpdateUPhoneImageResponse.java b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UpdateUPhoneImageResponse.java index d6ef2a28..4e515c69 100644 --- a/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UpdateUPhoneImageResponse.java +++ b/ucloud-sdk-java-uphone/src/main/java/cn/ucloud/uphone/models/UpdateUPhoneImageResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphone.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class UpdateUPhoneImageResponse extends Response { - /** 云手机自定义镜像资源ID */ + + + /** + * 云手机自定义镜像资源ID + */ @SerializedName("ImageId") private String imageId; - + + public String getImageId() { return imageId; } @@ -31,4 +41,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index cfd5444c..eaa42487 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-uphost - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/client/UPHostClient.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/client/UPHostClient.java index 46872e5c..4f37e240 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/client/UPHostClient.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/client/UPHostClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uphost.client; @@ -17,292 +19,432 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; -import cn.ucloud.uphost.models.CreatePHostImageRequest; -import cn.ucloud.uphost.models.CreatePHostImageResponse; + + + import cn.ucloud.uphost.models.CreatePHostRequest; import cn.ucloud.uphost.models.CreatePHostResponse; + + + +import cn.ucloud.uphost.models.CreatePHostImageRequest; +import cn.ucloud.uphost.models.CreatePHostImageResponse; + + + import cn.ucloud.uphost.models.DescribeBaremetalMachineTypeRequest; import cn.ucloud.uphost.models.DescribeBaremetalMachineTypeResponse; + + + +import cn.ucloud.uphost.models.DescribePHostRequest; +import cn.ucloud.uphost.models.DescribePHostResponse; + + + import cn.ucloud.uphost.models.DescribePHostImageRequest; import cn.ucloud.uphost.models.DescribePHostImageResponse; + + + import cn.ucloud.uphost.models.DescribePHostMachineTypeRequest; import cn.ucloud.uphost.models.DescribePHostMachineTypeResponse; -import cn.ucloud.uphost.models.DescribePHostRequest; -import cn.ucloud.uphost.models.DescribePHostResponse; + + + import cn.ucloud.uphost.models.DescribePHostTagsRequest; import cn.ucloud.uphost.models.DescribePHostTagsResponse; + + + import cn.ucloud.uphost.models.GetPHostDiskUpgradePriceRequest; import cn.ucloud.uphost.models.GetPHostDiskUpgradePriceResponse; + + + import cn.ucloud.uphost.models.GetPHostPriceRequest; import cn.ucloud.uphost.models.GetPHostPriceResponse; + + + import cn.ucloud.uphost.models.ModifyPHostImageInfoRequest; import cn.ucloud.uphost.models.ModifyPHostImageInfoResponse; + + + import cn.ucloud.uphost.models.ModifyPHostInfoRequest; import cn.ucloud.uphost.models.ModifyPHostInfoResponse; + + + import cn.ucloud.uphost.models.PoweroffPHostRequest; import cn.ucloud.uphost.models.PoweroffPHostResponse; + + + import cn.ucloud.uphost.models.RebootPHostRequest; import cn.ucloud.uphost.models.RebootPHostResponse; + + + import cn.ucloud.uphost.models.ReinstallPHostRequest; import cn.ucloud.uphost.models.ReinstallPHostResponse; + + + import cn.ucloud.uphost.models.ResetPHostPasswordRequest; import cn.ucloud.uphost.models.ResetPHostPasswordResponse; + + + import cn.ucloud.uphost.models.ResizePHostAttachedDiskRequest; import cn.ucloud.uphost.models.ResizePHostAttachedDiskResponse; + + + import cn.ucloud.uphost.models.StartPHostRequest; import cn.ucloud.uphost.models.StartPHostResponse; + + + import cn.ucloud.uphost.models.StopPHostRequest; import cn.ucloud.uphost.models.StopPHostResponse; -import cn.ucloud.uphost.models.TerminatePHostImageRequest; -import cn.ucloud.uphost.models.TerminatePHostImageResponse; + + + import cn.ucloud.uphost.models.TerminatePHostRequest; import cn.ucloud.uphost.models.TerminatePHostResponse; + + + +import cn.ucloud.uphost.models.TerminatePHostImageRequest; +import cn.ucloud.uphost.models.TerminatePHostImageResponse; -/** This client is used to call actions of **UPHost** service */ +/** + * This client is used to call actions of **UPHost** service + */ public class UPHostClient extends DefaultClient implements UPHostClientInterface { public UPHostClient(Config config, Credential credential) { super(config, credential); } - - /** - * CreatePHost - 创建物理机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreatePHostResponse createPHost(CreatePHostRequest request) throws UCloudException { - request.setAction("CreatePHost"); - return (CreatePHostResponse) this.invoke(request, CreatePHostResponse.class); - } - - /** - * CreatePHostImage - 创建裸金属2.0用户自定义镜像 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreatePHostImageResponse createPHostImage(CreatePHostImageRequest request) - throws UCloudException { - request.setAction("CreatePHostImage"); - return (CreatePHostImageResponse) this.invoke(request, CreatePHostImageResponse.class); - } - - /** - * DescribeBaremetalMachineType - 获取裸金属机型的详细信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeBaremetalMachineTypeResponse describeBaremetalMachineType( - DescribeBaremetalMachineTypeRequest request) throws UCloudException { - request.setAction("DescribeBaremetalMachineType"); - return (DescribeBaremetalMachineTypeResponse) - this.invoke(request, DescribeBaremetalMachineTypeResponse.class); - } - - /** - * DescribePHost - 获取物理机信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribePHostResponse describePHost(DescribePHostRequest request) - throws UCloudException { - request.setAction("DescribePHost"); - return (DescribePHostResponse) this.invoke(request, DescribePHostResponse.class); - } - - /** - * DescribePHostImage - 获取物理机镜像 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribePHostImageResponse describePHostImage(DescribePHostImageRequest request) - throws UCloudException { - request.setAction("DescribePHostImage"); - return (DescribePHostImageResponse) this.invoke(request, DescribePHostImageResponse.class); - } - - /** - * DescribePHostMachineType - 获取物理云机型信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribePHostMachineTypeResponse describePHostMachineType( - DescribePHostMachineTypeRequest request) throws UCloudException { - request.setAction("DescribePHostMachineType"); - return (DescribePHostMachineTypeResponse) - this.invoke(request, DescribePHostMachineTypeResponse.class); - } - - /** - * DescribePHostTags - 获取物理机业务组 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribePHostTagsResponse describePHostTags(DescribePHostTagsRequest request) - throws UCloudException { - request.setAction("DescribePHostTags"); - return (DescribePHostTagsResponse) this.invoke(request, DescribePHostTagsResponse.class); - } - - /** - * GetPHostDiskUpgradePrice - 获取物理云裸金属挂载云盘的升级价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetPHostDiskUpgradePriceResponse getPHostDiskUpgradePrice( - GetPHostDiskUpgradePriceRequest request) throws UCloudException { - request.setAction("GetPHostDiskUpgradePrice"); - return (GetPHostDiskUpgradePriceResponse) - this.invoke(request, GetPHostDiskUpgradePriceResponse.class); - } - - /** - * GetPHostPrice - 获取物理机价格 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetPHostPriceResponse getPHostPrice(GetPHostPriceRequest request) - throws UCloudException { - request.setAction("GetPHostPrice"); - return (GetPHostPriceResponse) this.invoke(request, GetPHostPriceResponse.class); - } - - /** - * ModifyPHostImageInfo - 修改物理云自定义镜像信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyPHostImageInfoResponse modifyPHostImageInfo(ModifyPHostImageInfoRequest request) - throws UCloudException { - request.setAction("ModifyPHostImageInfo"); - return (ModifyPHostImageInfoResponse) - this.invoke(request, ModifyPHostImageInfoResponse.class); - } - - /** - * ModifyPHostInfo - 更改物理机信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyPHostInfoResponse modifyPHostInfo(ModifyPHostInfoRequest request) - throws UCloudException { - request.setAction("ModifyPHostInfo"); - return (ModifyPHostInfoResponse) this.invoke(request, ModifyPHostInfoResponse.class); - } - - /** - * PoweroffPHost - 断电物理机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public PoweroffPHostResponse poweroffPHost(PoweroffPHostRequest request) - throws UCloudException { - request.setAction("PoweroffPHost"); - return (PoweroffPHostResponse) this.invoke(request, PoweroffPHostResponse.class); - } - - /** - * RebootPHost - 重启物理机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public RebootPHostResponse rebootPHost(RebootPHostRequest request) throws UCloudException { - request.setAction("RebootPHost"); - return (RebootPHostResponse) this.invoke(request, RebootPHostResponse.class); - } - - /** - * ReinstallPHost - 重装物理机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ReinstallPHostResponse reinstallPHost(ReinstallPHostRequest request) - throws UCloudException { - request.setAction("ReinstallPHost"); - return (ReinstallPHostResponse) this.invoke(request, ReinstallPHostResponse.class); - } - - /** - * ResetPHostPassword - 重置实例密码 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ResetPHostPasswordResponse resetPHostPassword(ResetPHostPasswordRequest request) - throws UCloudException { - request.setAction("ResetPHostPassword"); - return (ResetPHostPasswordResponse) this.invoke(request, ResetPHostPasswordResponse.class); - } - - /** - * ResizePHostAttachedDisk - 修改挂载的磁盘大小 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ResizePHostAttachedDiskResponse resizePHostAttachedDisk( - ResizePHostAttachedDiskRequest request) throws UCloudException { - request.setAction("ResizePHostAttachedDisk"); - return (ResizePHostAttachedDiskResponse) - this.invoke(request, ResizePHostAttachedDiskResponse.class); - } - - /** - * StartPHost - 启动物理机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StartPHostResponse startPHost(StartPHostRequest request) throws UCloudException { - request.setAction("StartPHost"); - return (StartPHostResponse) this.invoke(request, StartPHostResponse.class); - } - - /** - * StopPHost - 关闭物理机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public StopPHostResponse stopPHost(StopPHostRequest request) throws UCloudException { - request.setAction("StopPHost"); - return (StopPHostResponse) this.invoke(request, StopPHostResponse.class); - } - - /** - * TerminatePHost - 删除物理机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public TerminatePHostResponse terminatePHost(TerminatePHostRequest request) - throws UCloudException { - request.setAction("TerminatePHost"); - return (TerminatePHostResponse) this.invoke(request, TerminatePHostResponse.class); - } - - /** - * TerminatePHostImage - 删除裸金属2.0用户自定义镜像 - * - * @param request Request object - * @throws UCloudException Exception - */ - public TerminatePHostImageResponse terminatePHostImage(TerminatePHostImageRequest request) - throws UCloudException { - request.setAction("TerminatePHostImage"); - return (TerminatePHostImageResponse) - this.invoke(request, TerminatePHostImageResponse.class); - } + + + + + + + /** + * CreatePHost - 创建物理机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreatePHostResponse createPHost(CreatePHostRequest request) throws UCloudException { + request.setAction("CreatePHost"); + return (CreatePHostResponse) this.invoke(request, CreatePHostResponse.class); + } + + + + + + + /** + * CreatePHostImage - 创建裸金属2.0用户自定义镜像 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreatePHostImageResponse createPHostImage(CreatePHostImageRequest request) throws UCloudException { + request.setAction("CreatePHostImage"); + return (CreatePHostImageResponse) this.invoke(request, CreatePHostImageResponse.class); + } + + + + + + + /** + * DescribeBaremetalMachineType - 获取裸金属机型的详细信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeBaremetalMachineTypeResponse describeBaremetalMachineType(DescribeBaremetalMachineTypeRequest request) throws UCloudException { + request.setAction("DescribeBaremetalMachineType"); + return (DescribeBaremetalMachineTypeResponse) this.invoke(request, DescribeBaremetalMachineTypeResponse.class); + } + + + + + + + /** + * DescribePHost - 获取物理机信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribePHostResponse describePHost(DescribePHostRequest request) throws UCloudException { + request.setAction("DescribePHost"); + return (DescribePHostResponse) this.invoke(request, DescribePHostResponse.class); + } + + + + + + + /** + * DescribePHostImage - 获取物理机镜像 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribePHostImageResponse describePHostImage(DescribePHostImageRequest request) throws UCloudException { + request.setAction("DescribePHostImage"); + return (DescribePHostImageResponse) this.invoke(request, DescribePHostImageResponse.class); + } + + + + + + + /** + * DescribePHostMachineType - 获取物理云机型信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribePHostMachineTypeResponse describePHostMachineType(DescribePHostMachineTypeRequest request) throws UCloudException { + request.setAction("DescribePHostMachineType"); + return (DescribePHostMachineTypeResponse) this.invoke(request, DescribePHostMachineTypeResponse.class); + } + + + + + + + /** + * DescribePHostTags - 获取物理机业务组 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribePHostTagsResponse describePHostTags(DescribePHostTagsRequest request) throws UCloudException { + request.setAction("DescribePHostTags"); + return (DescribePHostTagsResponse) this.invoke(request, DescribePHostTagsResponse.class); + } + + + + + + + /** + * GetPHostDiskUpgradePrice - 获取物理云裸金属挂载云盘的升级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetPHostDiskUpgradePriceResponse getPHostDiskUpgradePrice(GetPHostDiskUpgradePriceRequest request) throws UCloudException { + request.setAction("GetPHostDiskUpgradePrice"); + return (GetPHostDiskUpgradePriceResponse) this.invoke(request, GetPHostDiskUpgradePriceResponse.class); + } + + + + + + + /** + * GetPHostPrice - 获取物理机价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetPHostPriceResponse getPHostPrice(GetPHostPriceRequest request) throws UCloudException { + request.setAction("GetPHostPrice"); + return (GetPHostPriceResponse) this.invoke(request, GetPHostPriceResponse.class); + } + + + + + + + /** + * ModifyPHostImageInfo - 修改物理云自定义镜像信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyPHostImageInfoResponse modifyPHostImageInfo(ModifyPHostImageInfoRequest request) throws UCloudException { + request.setAction("ModifyPHostImageInfo"); + return (ModifyPHostImageInfoResponse) this.invoke(request, ModifyPHostImageInfoResponse.class); + } + + + + + + + /** + * ModifyPHostInfo - 更改物理机信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyPHostInfoResponse modifyPHostInfo(ModifyPHostInfoRequest request) throws UCloudException { + request.setAction("ModifyPHostInfo"); + return (ModifyPHostInfoResponse) this.invoke(request, ModifyPHostInfoResponse.class); + } + + + + + + + /** + * PoweroffPHost - 断电物理机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public PoweroffPHostResponse poweroffPHost(PoweroffPHostRequest request) throws UCloudException { + request.setAction("PoweroffPHost"); + return (PoweroffPHostResponse) this.invoke(request, PoweroffPHostResponse.class); + } + + + + + + + /** + * RebootPHost - 重启物理机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RebootPHostResponse rebootPHost(RebootPHostRequest request) throws UCloudException { + request.setAction("RebootPHost"); + return (RebootPHostResponse) this.invoke(request, RebootPHostResponse.class); + } + + + + + + + /** + * ReinstallPHost - 重装物理机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReinstallPHostResponse reinstallPHost(ReinstallPHostRequest request) throws UCloudException { + request.setAction("ReinstallPHost"); + return (ReinstallPHostResponse) this.invoke(request, ReinstallPHostResponse.class); + } + + + + + + + /** + * ResetPHostPassword - 重置实例密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResetPHostPasswordResponse resetPHostPassword(ResetPHostPasswordRequest request) throws UCloudException { + request.setAction("ResetPHostPassword"); + return (ResetPHostPasswordResponse) this.invoke(request, ResetPHostPasswordResponse.class); + } + + + + + + + /** + * ResizePHostAttachedDisk - 修改挂载的磁盘大小 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResizePHostAttachedDiskResponse resizePHostAttachedDisk(ResizePHostAttachedDiskRequest request) throws UCloudException { + request.setAction("ResizePHostAttachedDisk"); + return (ResizePHostAttachedDiskResponse) this.invoke(request, ResizePHostAttachedDiskResponse.class); + } + + + + + + + /** + * StartPHost - 启动物理机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartPHostResponse startPHost(StartPHostRequest request) throws UCloudException { + request.setAction("StartPHost"); + return (StartPHostResponse) this.invoke(request, StartPHostResponse.class); + } + + + + + + + /** + * StopPHost - 关闭物理机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopPHostResponse stopPHost(StopPHostRequest request) throws UCloudException { + request.setAction("StopPHost"); + return (StopPHostResponse) this.invoke(request, StopPHostResponse.class); + } + + + + + + + /** + * TerminatePHost - 删除物理机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public TerminatePHostResponse terminatePHost(TerminatePHostRequest request) throws UCloudException { + request.setAction("TerminatePHost"); + return (TerminatePHostResponse) this.invoke(request, TerminatePHostResponse.class); + } + + + + + + + /** + * TerminatePHostImage - 删除裸金属2.0用户自定义镜像 + * + * @param request Request object + * @throws UCloudException Exception + */ + public TerminatePHostImageResponse terminatePHostImage(TerminatePHostImageRequest request) throws UCloudException { + request.setAction("TerminatePHostImage"); + return (TerminatePHostImageResponse) this.invoke(request, TerminatePHostImageResponse.class); + } } diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/client/UPHostClientInterface.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/client/UPHostClientInterface.java index 67297d91..f7ebb2da 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/client/UPHostClientInterface.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/client/UPHostClientInterface.java @@ -1,64 +1,133 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uphost.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; -import cn.ucloud.uphost.models.CreatePHostImageRequest; -import cn.ucloud.uphost.models.CreatePHostImageResponse; + + + import cn.ucloud.uphost.models.CreatePHostRequest; import cn.ucloud.uphost.models.CreatePHostResponse; + + + +import cn.ucloud.uphost.models.CreatePHostImageRequest; +import cn.ucloud.uphost.models.CreatePHostImageResponse; + + + import cn.ucloud.uphost.models.DescribeBaremetalMachineTypeRequest; import cn.ucloud.uphost.models.DescribeBaremetalMachineTypeResponse; + + + +import cn.ucloud.uphost.models.DescribePHostRequest; +import cn.ucloud.uphost.models.DescribePHostResponse; + + + import cn.ucloud.uphost.models.DescribePHostImageRequest; import cn.ucloud.uphost.models.DescribePHostImageResponse; + + + import cn.ucloud.uphost.models.DescribePHostMachineTypeRequest; import cn.ucloud.uphost.models.DescribePHostMachineTypeResponse; -import cn.ucloud.uphost.models.DescribePHostRequest; -import cn.ucloud.uphost.models.DescribePHostResponse; + + + import cn.ucloud.uphost.models.DescribePHostTagsRequest; import cn.ucloud.uphost.models.DescribePHostTagsResponse; + + + import cn.ucloud.uphost.models.GetPHostDiskUpgradePriceRequest; import cn.ucloud.uphost.models.GetPHostDiskUpgradePriceResponse; + + + import cn.ucloud.uphost.models.GetPHostPriceRequest; import cn.ucloud.uphost.models.GetPHostPriceResponse; + + + import cn.ucloud.uphost.models.ModifyPHostImageInfoRequest; import cn.ucloud.uphost.models.ModifyPHostImageInfoResponse; + + + import cn.ucloud.uphost.models.ModifyPHostInfoRequest; import cn.ucloud.uphost.models.ModifyPHostInfoResponse; + + + import cn.ucloud.uphost.models.PoweroffPHostRequest; import cn.ucloud.uphost.models.PoweroffPHostResponse; + + + import cn.ucloud.uphost.models.RebootPHostRequest; import cn.ucloud.uphost.models.RebootPHostResponse; + + + import cn.ucloud.uphost.models.ReinstallPHostRequest; import cn.ucloud.uphost.models.ReinstallPHostResponse; + + + import cn.ucloud.uphost.models.ResetPHostPasswordRequest; import cn.ucloud.uphost.models.ResetPHostPasswordResponse; + + + import cn.ucloud.uphost.models.ResizePHostAttachedDiskRequest; import cn.ucloud.uphost.models.ResizePHostAttachedDiskResponse; + + + import cn.ucloud.uphost.models.StartPHostRequest; import cn.ucloud.uphost.models.StartPHostResponse; + + + import cn.ucloud.uphost.models.StopPHostRequest; import cn.ucloud.uphost.models.StopPHostResponse; -import cn.ucloud.uphost.models.TerminatePHostImageRequest; -import cn.ucloud.uphost.models.TerminatePHostImageResponse; + + + import cn.ucloud.uphost.models.TerminatePHostRequest; import cn.ucloud.uphost.models.TerminatePHostResponse; + + + +import cn.ucloud.uphost.models.TerminatePHostImageRequest; +import cn.ucloud.uphost.models.TerminatePHostImageResponse; -/** This client is used to call actions of **UPHost** service */ +/** + * This client is used to call actions of **UPHost** service + */ public interface UPHostClientInterface extends Client { - + + + + + + /** * CreatePHost - 创建物理机 * @@ -66,25 +135,38 @@ public interface UPHostClientInterface extends Client { * @throws UCloudException Exception */ public CreatePHostResponse createPHost(CreatePHostRequest request) throws UCloudException; - + + + + + + /** * CreatePHostImage - 创建裸金属2.0用户自定义镜像 * * @param request Request object * @throws UCloudException Exception */ - public CreatePHostImageResponse createPHostImage(CreatePHostImageRequest request) - throws UCloudException; - + public CreatePHostImageResponse createPHostImage(CreatePHostImageRequest request) throws UCloudException; + + + + + + /** * DescribeBaremetalMachineType - 获取裸金属机型的详细信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeBaremetalMachineTypeResponse describeBaremetalMachineType( - DescribeBaremetalMachineTypeRequest request) throws UCloudException; - + public DescribeBaremetalMachineTypeResponse describeBaremetalMachineType(DescribeBaremetalMachineTypeRequest request) throws UCloudException; + + + + + + /** * DescribePHost - 获取物理机信息 * @@ -92,43 +174,64 @@ public DescribeBaremetalMachineTypeResponse describeBaremetalMachineType( * @throws UCloudException Exception */ public DescribePHostResponse describePHost(DescribePHostRequest request) throws UCloudException; - + + + + + + /** * DescribePHostImage - 获取物理机镜像 * * @param request Request object * @throws UCloudException Exception */ - public DescribePHostImageResponse describePHostImage(DescribePHostImageRequest request) - throws UCloudException; - + public DescribePHostImageResponse describePHostImage(DescribePHostImageRequest request) throws UCloudException; + + + + + + /** * DescribePHostMachineType - 获取物理云机型信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribePHostMachineTypeResponse describePHostMachineType( - DescribePHostMachineTypeRequest request) throws UCloudException; - + public DescribePHostMachineTypeResponse describePHostMachineType(DescribePHostMachineTypeRequest request) throws UCloudException; + + + + + + /** * DescribePHostTags - 获取物理机业务组 * * @param request Request object * @throws UCloudException Exception */ - public DescribePHostTagsResponse describePHostTags(DescribePHostTagsRequest request) - throws UCloudException; - + public DescribePHostTagsResponse describePHostTags(DescribePHostTagsRequest request) throws UCloudException; + + + + + + /** * GetPHostDiskUpgradePrice - 获取物理云裸金属挂载云盘的升级价格 * * @param request Request object * @throws UCloudException Exception */ - public GetPHostDiskUpgradePriceResponse getPHostDiskUpgradePrice( - GetPHostDiskUpgradePriceRequest request) throws UCloudException; - + public GetPHostDiskUpgradePriceResponse getPHostDiskUpgradePrice(GetPHostDiskUpgradePriceRequest request) throws UCloudException; + + + + + + /** * GetPHostPrice - 获取物理机价格 * @@ -136,25 +239,38 @@ public GetPHostDiskUpgradePriceResponse getPHostDiskUpgradePrice( * @throws UCloudException Exception */ public GetPHostPriceResponse getPHostPrice(GetPHostPriceRequest request) throws UCloudException; - + + + + + + /** * ModifyPHostImageInfo - 修改物理云自定义镜像信息 * * @param request Request object * @throws UCloudException Exception */ - public ModifyPHostImageInfoResponse modifyPHostImageInfo(ModifyPHostImageInfoRequest request) - throws UCloudException; - + public ModifyPHostImageInfoResponse modifyPHostImageInfo(ModifyPHostImageInfoRequest request) throws UCloudException; + + + + + + /** * ModifyPHostInfo - 更改物理机信息 * * @param request Request object * @throws UCloudException Exception */ - public ModifyPHostInfoResponse modifyPHostInfo(ModifyPHostInfoRequest request) - throws UCloudException; - + public ModifyPHostInfoResponse modifyPHostInfo(ModifyPHostInfoRequest request) throws UCloudException; + + + + + + /** * PoweroffPHost - 断电物理机 * @@ -162,7 +278,12 @@ public ModifyPHostInfoResponse modifyPHostInfo(ModifyPHostInfoRequest request) * @throws UCloudException Exception */ public PoweroffPHostResponse poweroffPHost(PoweroffPHostRequest request) throws UCloudException; - + + + + + + /** * RebootPHost - 重启物理机 * @@ -170,34 +291,51 @@ public ModifyPHostInfoResponse modifyPHostInfo(ModifyPHostInfoRequest request) * @throws UCloudException Exception */ public RebootPHostResponse rebootPHost(RebootPHostRequest request) throws UCloudException; - + + + + + + /** * ReinstallPHost - 重装物理机 * * @param request Request object * @throws UCloudException Exception */ - public ReinstallPHostResponse reinstallPHost(ReinstallPHostRequest request) - throws UCloudException; - + public ReinstallPHostResponse reinstallPHost(ReinstallPHostRequest request) throws UCloudException; + + + + + + /** * ResetPHostPassword - 重置实例密码 * * @param request Request object * @throws UCloudException Exception */ - public ResetPHostPasswordResponse resetPHostPassword(ResetPHostPasswordRequest request) - throws UCloudException; - + public ResetPHostPasswordResponse resetPHostPassword(ResetPHostPasswordRequest request) throws UCloudException; + + + + + + /** * ResizePHostAttachedDisk - 修改挂载的磁盘大小 * * @param request Request object * @throws UCloudException Exception */ - public ResizePHostAttachedDiskResponse resizePHostAttachedDisk( - ResizePHostAttachedDiskRequest request) throws UCloudException; - + public ResizePHostAttachedDiskResponse resizePHostAttachedDisk(ResizePHostAttachedDiskRequest request) throws UCloudException; + + + + + + /** * StartPHost - 启动物理机 * @@ -205,7 +343,12 @@ public ResizePHostAttachedDiskResponse resizePHostAttachedDisk( * @throws UCloudException Exception */ public StartPHostResponse startPHost(StartPHostRequest request) throws UCloudException; - + + + + + + /** * StopPHost - 关闭物理机 * @@ -213,22 +356,30 @@ public ResizePHostAttachedDiskResponse resizePHostAttachedDisk( * @throws UCloudException Exception */ public StopPHostResponse stopPHost(StopPHostRequest request) throws UCloudException; - + + + + + + /** * TerminatePHost - 删除物理机 * * @param request Request object * @throws UCloudException Exception */ - public TerminatePHostResponse terminatePHost(TerminatePHostRequest request) - throws UCloudException; - + public TerminatePHostResponse terminatePHost(TerminatePHostRequest request) throws UCloudException; + + + + + + /** * TerminatePHostImage - 删除裸金属2.0用户自定义镜像 * * @param request Request object * @throws UCloudException Exception */ - public TerminatePHostImageResponse terminatePHostImage(TerminatePHostImageRequest request) - throws UCloudException; + public TerminatePHostImageResponse terminatePHostImage(TerminatePHostImageRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostImageRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostImageRequest.java index c4363b0a..ade7470a 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostImageRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostImageRequest.java @@ -1,56 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreatePHostImageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UPHost实例ID */ + + + + /** + * UPHost实例ID + */ @NotEmpty @UCloudParam("PHostId") private String pHostId; - - /** 镜像名称 */ + + + + /** + * 镜像名称 + */ @NotEmpty @UCloudParam("ImageName") private String imageName; - - /** 镜像描述 */ + + + + /** + * 镜像描述 + */ @UCloudParam("ImageDescription") private String imageDescription; - + + public String getRegion() { return region; } @@ -58,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -66,7 +93,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -74,7 +101,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPHostId() { return pHostId; } @@ -82,7 +109,7 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } - + public String getImageName() { return imageName; } @@ -90,7 +117,7 @@ public String getImageName() { public void setImageName(String imageName) { this.imageName = imageName; } - + public String getImageDescription() { return imageDescription; } @@ -98,4 +125,14 @@ public String getImageDescription() { public void setImageDescription(String imageDescription) { this.imageDescription = imageDescription; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostImageResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostImageResponse.java index 8910609e..250fe37f 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostImageResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostImageResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreatePHostImageResponse extends Response { - /** 镜像ID */ + + + /** + * 镜像ID + */ @SerializedName("ImageId") private String imageId; - + + public String getImageId() { return imageId; } @@ -31,4 +41,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostRequest.java index e1807281..6a3da832 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostRequest.java @@ -1,112 +1,189 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreatePHostRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** ImageId,可以通过接口 [DescribePHostImage](api/uphost-api/describe_phost_image.html)获取 */ + + + + /** + * ImageId,可以通过接口 [DescribePHostImage](api/uphost-api/describe_phost_image.html)获取 + */ @NotEmpty @UCloudParam("ImageId") private String imageId; - - /** 密码(密码需使用base64进行编码) */ + + + + /** + * 密码(密码需使用base64进行编码) + */ @NotEmpty @UCloudParam("Password") private String password; - - /** 物理机类型,默认为:db-2(基础型-SAS-V3) */ + + + + /** + * 物理机类型,默认为:db-2(基础型-SAS-V3) + */ @UCloudParam("Type") private String type; - - /** 物理机名称,默认为phost */ + + + + /** + * 物理机名称,默认为phost + */ @UCloudParam("Name") private String name; - - /** 物理机备注,默认为空 */ + + + + /** + * 物理机备注,默认为空 + */ @UCloudParam("Remark") private String remark; - - /** 业务组,默认为default */ + + + + /** + * 业务组,默认为default + */ @UCloudParam("Tag") private String tag; - - /** 计费模式,枚举值为:year, 按年付费; month,按月付费;默认为按月付费 */ + + + + /** + * 计费模式,枚举值为:year, 按年付费; month,按月付费;默认为按月付费 + */ @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长,1-10个月或1-10年;默认值为1。月付时,此参数传0,代表购买至月末,1代表整月。 */ + + + + /** + * 购买时长,1-10个月或1-10年;默认值为1。月付时,此参数传0,代表购买至月末,1代表整月。 + */ @UCloudParam("Quantity") private String quantity; - + + + + + /** - * 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 - * [DescribeFirewall](api/unet-api/describe_firewall.html)。 + * 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 [DescribeFirewall](api/unet-api/describe_firewall.html)。 */ @UCloudParam("SecurityGroupId") private String securityGroupId; - - /** Raid配置,默认Raid10 支持:Raid0、Raid1、Raid5、Raid10,NoRaid */ + + + + /** + * Raid配置,默认Raid10 支持:Raid0、Raid1、Raid5、Raid10,NoRaid + */ @UCloudParam("Raid") private String raid; - - /** VPC ID,不填为默认,VPC2.0下需要填写此字段。 */ + + + + /** + * VPC ID,不填为默认,VPC2.0下需要填写此字段。 + */ @UCloudParam("VPCId") private String vpcId; - - /** 子网ID,不填为默认,VPC2.0下需要填写此字段。 */ + + + + /** + * 子网ID,不填为默认,VPC2.0下需要填写此字段。 + */ @UCloudParam("SubnetId") private String subnetId; - - /** 网络环境,可选千兆:1G ,万兆:10G, 默认1G。智能网卡可以选择25G。 */ + + + + /** + * 网络环境,可选千兆:1G ,万兆:10G, 默认1G。智能网卡可以选择25G。 + */ @UCloudParam("Cluster") private String cluster; - - /** */ + + + + /** + * + */ @UCloudParam("Disks") private List disks; - - /** 指定内网ip创建 */ + + + + /** + * 指定内网ip创建 + */ @UCloudParam("VpcIp") private String vpcIp; - - /** 代金券 */ + + + + /** + * 代金券 + */ @UCloudParam("CouponId") private String couponId; - + + public String getRegion() { return region; } @@ -114,7 +191,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -122,7 +199,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -130,7 +207,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageId() { return imageId; } @@ -138,7 +215,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getPassword() { return password; } @@ -146,7 +223,7 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } - + public String getType() { return type; } @@ -154,7 +231,7 @@ public String getType() { public void setType(String type) { this.type = type; } - + public String getName() { return name; } @@ -162,7 +239,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getRemark() { return remark; } @@ -170,7 +247,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public String getTag() { return tag; } @@ -178,7 +255,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getChargeType() { return chargeType; } @@ -186,7 +263,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public String getQuantity() { return quantity; } @@ -194,7 +271,8 @@ public String getQuantity() { public void setQuantity(String quantity) { this.quantity = quantity; } - + + public String getSecurityGroupId() { return securityGroupId; } @@ -202,7 +280,7 @@ public String getSecurityGroupId() { public void setSecurityGroupId(String securityGroupId) { this.securityGroupId = securityGroupId; } - + public String getRaid() { return raid; } @@ -210,7 +288,7 @@ public String getRaid() { public void setRaid(String raid) { this.raid = raid; } - + public String getVPCId() { return vpcId; } @@ -218,7 +296,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -226,7 +304,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getCluster() { return cluster; } @@ -234,7 +312,7 @@ public String getCluster() { public void setCluster(String cluster) { this.cluster = cluster; } - + public List getDisks() { return disks; } @@ -242,7 +320,7 @@ public List getDisks() { public void setDisks(List disks) { this.disks = disks; } - + public String getVpcIp() { return vpcIp; } @@ -250,7 +328,7 @@ public String getVpcIp() { public void setVpcIp(String vpcIp) { this.vpcIp = vpcIp; } - + public String getCouponId() { return couponId; } @@ -258,55 +336,81 @@ public String getCouponId() { public void setCouponId(String couponId) { this.couponId = couponId; } + + public static class Disks extends Request { + + + /** + * 裸金属机型参数->是否是系统盘。枚举值: True,是系统盘。 False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + */ + @UCloudParam("IsBoot") + private String isBoot; + + + + /** + * 裸金属机型参数->磁盘类型:枚举值:CLOUD_RSSD + */ + @UCloudParam("Type") + private String type; + + + + /** + * 裸金属机型参数->磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB,数据盘单块盘20-32000GB。 + */ + @UCloudParam("Size") + private Integer size; + + + + /** + * 裸金属机型参数->云盘代金券id。不适用于系统盘。请通过DescribeCoupon接口查询,或登录用户中心查看 + */ + @UCloudParam("CouponId") + private String couponId; + + + public String getIsBoot() { + return isBoot; + } - public static class Disks extends Request { + public void setIsBoot(String isBoot) { + this.isBoot = isBoot; + } + + public String getType() { + return type; + } - /** 裸金属机型参数->是否是系统盘。枚举值: True,是系统盘。 False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 */ - @UCloudParam("IsBoot") - private String isBoot; + public void setType(String type) { + this.type = type; + } + + public Integer getSize() { + return size; + } - /** 裸金属机型参数->磁盘类型:枚举值:CLOUD_RSSD */ - @UCloudParam("Type") - private String type; + public void setSize(Integer size) { + this.size = size; + } + + public String getCouponId() { + return couponId; + } - /** 裸金属机型参数->磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB,数据盘单块盘20-32000GB。 */ - @UCloudParam("Size") - private Integer size; + public void setCouponId(String couponId) { + this.couponId = couponId; + } + + } +} - /** 裸金属机型参数->云盘代金券id。不适用于系统盘。请通过DescribeCoupon接口查询,或登录用户中心查看 */ - @UCloudParam("CouponId") - private String couponId; - public String getIsBoot() { - return isBoot; - } - public void setIsBoot(String isBoot) { - this.isBoot = isBoot; - } - public String getType() { - return type; - } - public void setType(String type) { - this.type = type; - } - public Integer getSize() { - return size; - } - public void setSize(Integer size) { - this.size = size; - } - public String getCouponId() { - return couponId; - } - public void setCouponId(String couponId) { - this.couponId = couponId; - } - } -} diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostResponse.java index 339231a0..89014a44 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/CreatePHostResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class CreatePHostResponse extends Response { - /** PHost的资源ID数组 */ + + + /** + * PHost的资源ID数组 + */ @SerializedName("PHostId") private List pHostId; - + + public List getPHostId() { return pHostId; } @@ -32,4 +41,14 @@ public List getPHostId() { public void setPHostId(List pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribeBaremetalMachineTypeRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribeBaremetalMachineTypeRequest.java index c3a45fa9..af7b23b3 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribeBaremetalMachineTypeRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribeBaremetalMachineTypeRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeBaremetalMachineTypeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 具体机型。若不填写,则返回全部机型 */ + + + + /** + * 具体机型。若不填写,则返回全部机型 + */ @UCloudParam("Type") private String type; - + + public String getRegion() { return region; } @@ -48,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -56,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -64,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getType() { return type; } @@ -72,4 +91,14 @@ public String getType() { public void setType(String type) { this.type = type; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribeBaremetalMachineTypeResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribeBaremetalMachineTypeResponse.java index 8c19c74c..d66b656d 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribeBaremetalMachineTypeResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribeBaremetalMachineTypeResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeBaremetalMachineTypeResponse extends Response { - /** 机型列表,模型:PHostCloudMachineTypeSet */ + + + /** + * 机型列表,模型:PHostCloudMachineTypeSet + */ @SerializedName("MachineTypes") private List machineTypes; - + + public List getMachineTypes() { return machineTypes; } @@ -32,172 +41,235 @@ public List getMachineTypes() { public void setMachineTypes(List machineTypes) { this.machineTypes = machineTypes; } - - public static class PHostCPUSet extends Response { - - /** CPU型号 */ - @SerializedName("Model") - private String model; - - /** CPU主频 */ - @SerializedName("Frequence") - private Double frequence; - - /** CPU个数 */ - @SerializedName("Count") - private Integer count; - - /** CPU核数 */ - @SerializedName("CoreCount") - private Integer coreCount; - - public String getModel() { - return model; - } - - public void setModel(String model) { - this.model = model; - } - - public Double getFrequence() { - return frequence; - } - - public void setFrequence(Double frequence) { - this.frequence = frequence; - } - - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } - - public Integer getCoreCount() { - return coreCount; - } - - public void setCoreCount(Integer coreCount) { - this.coreCount = coreCount; - } + + public static class PHostCPUSet extends Response { + + + /** + * CPU型号 + */ + @SerializedName("Model") + private String model; + + + + /** + * CPU主频 + */ + @SerializedName("Frequence") + private Double frequence; + + + + /** + * CPU个数 + */ + @SerializedName("Count") + private Integer count; + + + + /** + * CPU核数 + */ + @SerializedName("CoreCount") + private Integer coreCount; + + + public String getModel() { + return model; } - public static class PHostCloudMachineTypeSet extends Response { - - /** 物理云主机机型别名,全网唯一。 */ - @SerializedName("Type") - private String type; - - /** CPU信息 */ - @SerializedName("CPU") - private PHostCPUSet cpu; - - /** 内存大小,单位MB */ - @SerializedName("Memory") - private Integer memory; - - /** 其他组件信息 */ - @SerializedName("Components") - private PHostComponentSet components; - - /** 集群库存信息 */ - @SerializedName("Clusters") - private List clusters; + public void setModel(String model) { + this.model = model; + } + + public Double getFrequence() { + return frequence; + } - public String getType() { - return type; - } + public void setFrequence(Double frequence) { + this.frequence = frequence; + } + + public Integer getCount() { + return count; + } - public void setType(String type) { - this.type = type; - } + public void setCount(Integer count) { + this.count = count; + } + + public Integer getCoreCount() { + return coreCount; + } - public PHostCPUSet getCPU() { - return cpu; + public void setCoreCount(Integer coreCount) { + this.coreCount = coreCount; + } + } + public static class PHostCloudMachineTypeSet extends Response { + + + /** + * 物理云主机机型别名,全网唯一。 + */ + @SerializedName("Type") + private String type; + + + + /** + * CPU信息 + */ + @SerializedName("CPU") + private PHostCPUSet cpu; + + + + /** + * 内存大小,单位MB + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * 其他组件信息 + + */ + @SerializedName("Components") + private PHostComponentSet components; + + + + /** + * 集群库存信息 + */ + @SerializedName("Clusters") + private List clusters; + + + public String getType() { + return type; + } - public void setCPU(PHostCPUSet cpu) { - this.cpu = cpu; - } + public void setType(String type) { + this.type = type; + } + + public PHostCPUSet getCPU() { + return cpu; + } - public Integer getMemory() { - return memory; - } + public void setCPU(PHostCPUSet cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } - public void setMemory(Integer memory) { - this.memory = memory; - } + public void setMemory(Integer memory) { + this.memory = memory; + } + + public PHostComponentSet getComponents() { + return components; + } - public PHostComponentSet getComponents() { - return components; - } + public void setComponents(PHostComponentSet components) { + this.components = components; + } + + public List getClusters() { + return clusters; + } - public void setComponents(PHostComponentSet components) { - this.components = components; + public void setClusters(List clusters) { + this.clusters = clusters; + } + } + public static class PHostClusterSet extends Response { + + + /** + * 集群名。枚举值:千兆网络集群:1G;万兆网络集群:10G;智能网卡网络:25G; + */ + @SerializedName("Name") + private String name; + + + + /** + * 库存状态。枚举值:有库存:Available;无库存:SoldOut + */ + @SerializedName("StockStatus") + private String stockStatus; + + + public String getName() { + return name; + } - public List getClusters() { - return clusters; - } + public void setName(String name) { + this.name = name; + } + + public String getStockStatus() { + return stockStatus; + } - public void setClusters(List clusters) { - this.clusters = clusters; + public void setStockStatus(String stockStatus) { + this.stockStatus = stockStatus; + } + } + public static class PHostComponentSet extends Response { + + + /** + * 组件名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 组件数量 + */ + @SerializedName("Count") + private Integer count; + + + public String getName() { + return name; } - public static class PHostClusterSet extends Response { - - /** 集群名。枚举值:千兆网络集群:1G;万兆网络集群:10G;智能网卡网络:25G; */ - @SerializedName("Name") - private String name; - - /** 库存状态。枚举值:有库存:Available;无库存:SoldOut */ - @SerializedName("StockStatus") - private String stockStatus; + public void setName(String name) { + this.name = name; + } + + public Integer getCount() { + return count; + } - public String getName() { - return name; + public void setCount(Integer count) { + this.count = count; + } + } +} - public void setName(String name) { - this.name = name; - } - public String getStockStatus() { - return stockStatus; - } - public void setStockStatus(String stockStatus) { - this.stockStatus = stockStatus; - } - } - public static class PHostComponentSet extends Response { - /** 组件名称 */ - @SerializedName("Name") - private String name; - /** 组件数量 */ - @SerializedName("Count") - private Integer count; - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } - } -} diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostImageRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostImageRequest.java index b47aa3bd..ef0d5a8d 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostImageRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostImageRequest.java @@ -1,63 +1,97 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribePHostImageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 镜像类别,枚举值,Base是基础镜像;Custom是自制镜像。 */ + + + + /** + * 镜像类别,枚举值,Base是基础镜像;Custom是自制镜像。 + */ @UCloudParam("ImageType") private String imageType; - - /** 镜像ID */ + + + + /** + * 镜像ID + */ @UCloudParam("ImageId") private List imageId; - - /** 数据偏移量,默认为0 */ + + + + /** + * 数据偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20 */ + + + + /** + * 返回数据长度,默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 机器型号,只支持当前zone的展示机型 */ + + + + /** + * 机器型号,只支持当前zone的展示机型 + */ @UCloudParam("MachineType") private String machineType; - + + public String getRegion() { return region; } @@ -65,7 +99,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -73,7 +107,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -81,7 +115,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageType() { return imageType; } @@ -89,7 +123,7 @@ public String getImageType() { public void setImageType(String imageType) { this.imageType = imageType; } - + public List getImageId() { return imageId; } @@ -97,7 +131,7 @@ public List getImageId() { public void setImageId(List imageId) { this.imageId = imageId; } - + public Integer getOffset() { return offset; } @@ -105,7 +139,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -113,7 +147,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getMachineType() { return machineType; } @@ -121,4 +155,14 @@ public String getMachineType() { public void setMachineType(String machineType) { this.machineType = machineType; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostImageResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostImageResponse.java index 170c74db..c3460630 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostImageResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostImageResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribePHostImageResponse extends Response { - /** 满足条件的镜像总数 */ + + + /** + * 满足条件的镜像总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 镜像列表 PHostImageSet */ + + + + /** + * 镜像列表 PHostImageSet + */ @SerializedName("ImageSet") private List imageSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getImageSet() { return imageSet; } @@ -44,139 +57,193 @@ public List getImageSet() { public void setImageSet(List imageSet) { this.imageSet = imageSet; } + + public static class PHostImageSet extends Response { + + + /** + * 镜像ID + */ + @SerializedName("ImageId") + private String imageId; + + + + /** + * 镜像名称 + */ + @SerializedName("ImageName") + private String imageName; + + + + /** + * 操作系统名称 + */ + @SerializedName("OsName") + private String osName; + + + + /** + * 操作系统类型 + */ + @SerializedName("OsType") + private String osType; + + + + /** + * 支持的机型 + */ + @SerializedName("Support") + private List support; + + + + /** + * 当前版本 + */ + @SerializedName("Version") + private String version; + + + + /** + * 枚举值:Base=>基础镜像,Custom=>自制镜像。 + */ + @SerializedName("ImageType") + private String imageType; + + + + /** + * 裸金属2.0参数。镜像创建时间。 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 裸金属2.0参数。镜像当前状态。 + */ + @SerializedName("State") + private String state; + + + + /** + * 裸金属2.0参数。镜像大小。 + */ + @SerializedName("ImageSize") + private Integer imageSize; + + + + /** + * 镜像描述 + */ + @SerializedName("ImageDescription") + private String imageDescription; + + + public String getImageId() { + return imageId; + } - public static class PHostImageSet extends Response { - - /** 镜像ID */ - @SerializedName("ImageId") - private String imageId; - - /** 镜像名称 */ - @SerializedName("ImageName") - private String imageName; - - /** 操作系统名称 */ - @SerializedName("OsName") - private String osName; - - /** 操作系统类型 */ - @SerializedName("OsType") - private String osType; - - /** 支持的机型 */ - @SerializedName("Support") - private List support; - - /** 当前版本 */ - @SerializedName("Version") - private String version; - - /** 枚举值:Base=>基础镜像,Custom=>自制镜像。 */ - @SerializedName("ImageType") - private String imageType; - - /** 裸金属2.0参数。镜像创建时间。 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 裸金属2.0参数。镜像当前状态。 */ - @SerializedName("State") - private String state; - - /** 裸金属2.0参数。镜像大小。 */ - @SerializedName("ImageSize") - private Integer imageSize; - - /** 镜像描述 */ - @SerializedName("ImageDescription") - private String imageDescription; - - public String getImageId() { - return imageId; - } - - public void setImageId(String imageId) { - this.imageId = imageId; - } - - public String getImageName() { - return imageName; - } + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getImageName() { + return imageName; + } - public void setImageName(String imageName) { - this.imageName = imageName; - } + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public String getOsName() { + return osName; + } - public String getOsName() { - return osName; - } + public void setOsName(String osName) { + this.osName = osName; + } + + public String getOsType() { + return osType; + } - public void setOsName(String osName) { - this.osName = osName; - } + public void setOsType(String osType) { + this.osType = osType; + } + + public List getSupport() { + return support; + } - public String getOsType() { - return osType; - } + public void setSupport(List support) { + this.support = support; + } + + public String getVersion() { + return version; + } - public void setOsType(String osType) { - this.osType = osType; - } + public void setVersion(String version) { + this.version = version; + } + + public String getImageType() { + return imageType; + } - public List getSupport() { - return support; - } + public void setImageType(String imageType) { + this.imageType = imageType; + } + + public Integer getCreateTime() { + return createTime; + } - public void setSupport(List support) { - this.support = support; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getState() { + return state; + } - public String getVersion() { - return version; - } + public void setState(String state) { + this.state = state; + } + + public Integer getImageSize() { + return imageSize; + } - public void setVersion(String version) { - this.version = version; - } + public void setImageSize(Integer imageSize) { + this.imageSize = imageSize; + } + + public String getImageDescription() { + return imageDescription; + } - public String getImageType() { - return imageType; + public void setImageDescription(String imageDescription) { + this.imageDescription = imageDescription; + } + } +} - public void setImageType(String imageType) { - this.imageType = imageType; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public String getState() { - return state; - } - public void setState(String state) { - this.state = state; - } - public Integer getImageSize() { - return imageSize; - } - public void setImageSize(Integer imageSize) { - this.imageSize = imageSize; - } - public String getImageDescription() { - return imageDescription; - } - public void setImageDescription(String imageDescription) { - this.imageDescription = imageDescription; - } - } -} diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostMachineTypeRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostMachineTypeRequest.java index b6805449..48bda815 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostMachineTypeRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostMachineTypeRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribePHostMachineTypeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 具体机型。若不填写,则返回全部机型 */ + + + + /** + * 具体机型。若不填写,则返回全部机型 + */ @UCloudParam("Type") private String type; - + + public String getRegion() { return region; } @@ -48,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -56,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -64,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getType() { return type; } @@ -72,4 +91,14 @@ public String getType() { public void setType(String type) { this.type = type; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostMachineTypeResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostMachineTypeResponse.java index cac14dcc..78008f3e 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostMachineTypeResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostMachineTypeResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribePHostMachineTypeResponse extends Response { - /** 机型列表,模型:PHostMachineTypeSet */ + + + /** + * 机型列表,模型:PHostMachineTypeSet + */ @SerializedName("MachineTypes") private List machineTypes; - + + public List getMachineTypes() { return machineTypes; } @@ -32,259 +41,349 @@ public List getMachineTypes() { public void setMachineTypes(List machineTypes) { this.machineTypes = machineTypes; } - - public static class PHostCPUSet extends Response { - - /** CPU型号 */ - @SerializedName("Model") - private String model; - - /** CPU主频 */ - @SerializedName("Frequence") - private Double frequence; - - /** CPU个数 */ - @SerializedName("Count") - private Integer count; - - /** CPU核数 */ - @SerializedName("CoreCount") - private Integer coreCount; - - public String getModel() { - return model; - } - - public void setModel(String model) { - this.model = model; - } - - public Double getFrequence() { - return frequence; - } - - public void setFrequence(Double frequence) { - this.frequence = frequence; - } - - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } - - public Integer getCoreCount() { - return coreCount; - } - - public void setCoreCount(Integer coreCount) { - this.coreCount = coreCount; - } + + public static class PHostCPUSet extends Response { + + + /** + * CPU型号 + */ + @SerializedName("Model") + private String model; + + + + /** + * CPU主频 + */ + @SerializedName("Frequence") + private Double frequence; + + + + /** + * CPU个数 + */ + @SerializedName("Count") + private Integer count; + + + + /** + * CPU核数 + */ + @SerializedName("CoreCount") + private Integer coreCount; + + + public String getModel() { + return model; } - public static class PHostClusterSet extends Response { - - /** 集群名。枚举值:千兆网络集群:1G;万兆网络集群:10G;智能网卡网络:25G; */ - @SerializedName("Name") - private String name; - - /** 库存状态。枚举值:有库存:Available;无库存:SoldOut */ - @SerializedName("StockStatus") - private String stockStatus; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getStockStatus() { - return stockStatus; - } - - public void setStockStatus(String stockStatus) { - this.stockStatus = stockStatus; - } + public void setModel(String model) { + this.model = model; } - - public static class PHostComponentSet extends Response { - - /** 组件名称 */ - @SerializedName("Name") - private String name; - - /** 组件数量 */ - @SerializedName("Count") - private Integer count; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } + + public Double getFrequence() { + return frequence; } - public static class PHostDiskSet extends Response { - - /** 单盘大小,单位GB */ - @SerializedName("Space") - private Integer space; - - /** 磁盘数量 */ - @SerializedName("Count") - private Integer count; - - /** 磁盘属性 */ - @SerializedName("Type") - private String type; - - /** 磁盘名称,sys/data */ - @SerializedName("Name") - private String name; - - /** 磁盘IO性能,单位MB/s(待废弃) */ - @SerializedName("IOCap") - private Integer ioCap; - - public Integer getSpace() { - return space; - } - - public void setSpace(Integer space) { - this.space = space; - } - - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } - - public String getType() { - return type; - } + public void setFrequence(Double frequence) { + this.frequence = frequence; + } + + public Integer getCount() { + return count; + } - public void setType(String type) { - this.type = type; - } + public void setCount(Integer count) { + this.count = count; + } + + public Integer getCoreCount() { + return coreCount; + } - public String getName() { - return name; - } + public void setCoreCount(Integer coreCount) { + this.coreCount = coreCount; + } + + } + public static class PHostClusterSet extends Response { + + + /** + * 集群名。枚举值:千兆网络集群:1G;万兆网络集群:10G;智能网卡网络:25G; + */ + @SerializedName("Name") + private String name; + + + + /** + * 库存状态。枚举值:有库存:Available;无库存:SoldOut + */ + @SerializedName("StockStatus") + private String stockStatus; + + + public String getName() { + return name; + } - public void setName(String name) { - this.name = name; - } + public void setName(String name) { + this.name = name; + } + + public String getStockStatus() { + return stockStatus; + } - public Integer getIOCap() { - return ioCap; - } + public void setStockStatus(String stockStatus) { + this.stockStatus = stockStatus; + } + + } + public static class PHostComponentSet extends Response { + + + /** + * 组件名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 组件数量 + */ + @SerializedName("Count") + private Integer count; + + + public String getName() { + return name; + } - public void setIOCap(Integer ioCap) { - this.ioCap = ioCap; - } + public void setName(String name) { + this.name = name; + } + + public Integer getCount() { + return count; } - public static class PHostMachineTypeSet extends Response { + public void setCount(Integer count) { + this.count = count; + } + + } + public static class PHostDiskSet extends Response { + + + /** + * 单盘大小,单位GB + */ + @SerializedName("Space") + private Integer space; + + + + /** + * 磁盘数量 + */ + @SerializedName("Count") + private Integer count; + + + + /** + * 磁盘属性 + */ + @SerializedName("Type") + private String type; + + + + /** + * 磁盘名称,sys/data + */ + @SerializedName("Name") + private String name; + + + + /** + * 磁盘IO性能,单位MB/s(待废弃) + */ + @SerializedName("IOCap") + private Integer ioCap; + + + public Integer getSpace() { + return space; + } - /** 物理云主机机型别名,全网唯一。 */ - @SerializedName("Type") - private String type; + public void setSpace(Integer space) { + this.space = space; + } + + public Integer getCount() { + return count; + } - /** CPU信息 */ - @SerializedName("CPU") - private PHostCPUSet cpu; + public void setCount(Integer count) { + this.count = count; + } + + public String getType() { + return type; + } - /** 内存大小,单位MB */ - @SerializedName("Memory") - private Integer memory; + public void setType(String type) { + this.type = type; + } + + public String getName() { + return name; + } - /** 磁盘信息 */ - @SerializedName("Disks") - private List disks; + public void setName(String name) { + this.name = name; + } + + public Integer getIOCap() { + return ioCap; + } - /** 其他组件信息 */ - @SerializedName("Components") - private PHostComponentSet components; + public void setIOCap(Integer ioCap) { + this.ioCap = ioCap; + } + + } + public static class PHostMachineTypeSet extends Response { + + + /** + * 物理云主机机型别名,全网唯一。 + */ + @SerializedName("Type") + private String type; + + + + /** + * CPU信息 + */ + @SerializedName("CPU") + private PHostCPUSet cpu; + + + + /** + * 内存大小,单位MB + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * 磁盘信息 + */ + @SerializedName("Disks") + private List disks; + + + + /** + * 其他组件信息 + */ + @SerializedName("Components") + private PHostComponentSet components; + + + + /** + * 集群库存信息 + */ + @SerializedName("Clusters") + private List clusters; + + + + /** + * 是否支持Raid。枚举值:支持:YES;不支持:NO + */ + @SerializedName("RaidSupported") + private String raidSupported; + + + public String getType() { + return type; + } - /** 集群库存信息 */ - @SerializedName("Clusters") - private List clusters; + public void setType(String type) { + this.type = type; + } + + public PHostCPUSet getCPU() { + return cpu; + } - /** 是否支持Raid。枚举值:支持:YES;不支持:NO */ - @SerializedName("RaidSupported") - private String raidSupported; + public void setCPU(PHostCPUSet cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } - public String getType() { - return type; - } + public void setMemory(Integer memory) { + this.memory = memory; + } + + public List getDisks() { + return disks; + } - public void setType(String type) { - this.type = type; - } + public void setDisks(List disks) { + this.disks = disks; + } + + public PHostComponentSet getComponents() { + return components; + } - public PHostCPUSet getCPU() { - return cpu; - } + public void setComponents(PHostComponentSet components) { + this.components = components; + } + + public List getClusters() { + return clusters; + } - public void setCPU(PHostCPUSet cpu) { - this.cpu = cpu; - } + public void setClusters(List clusters) { + this.clusters = clusters; + } + + public String getRaidSupported() { + return raidSupported; + } - public Integer getMemory() { - return memory; + public void setRaidSupported(String raidSupported) { + this.raidSupported = raidSupported; + } + } +} - public void setMemory(Integer memory) { - this.memory = memory; - } - public List getDisks() { - return disks; - } - public void setDisks(List disks) { - this.disks = disks; - } - public PHostComponentSet getComponents() { - return components; - } - public void setComponents(PHostComponentSet components) { - this.components = components; - } - public List getClusters() { - return clusters; - } - public void setClusters(List clusters) { - this.clusters = clusters; - } - public String getRaidSupported() { - return raidSupported; - } - public void setRaidSupported(String raidSupported) { - this.raidSupported = raidSupported; - } - } -} diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostRequest.java index 272bf9d8..c9e67dd5 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostRequest.java @@ -1,62 +1,96 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribePHostRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** PHost资源ID,若为空,则返回当前Region所有PHost。 */ + + + + /** + * PHost资源ID,若为空,则返回当前Region所有PHost。 + */ @UCloudParam("PHostId") private List pHostId; - - /** 数据偏移量,默认为0 */ + + + + /** + * 数据偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 返回数据长度,默认为20 */ + + + + /** + * 返回数据长度,默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 要挂载的云盘id,过滤返回能被UDiskId挂载的云主机。目前主要针对rssd云盘使用 */ + + + + /** + * 要挂载的云盘id,过滤返回能被UDiskId挂载的云主机。目前主要针对rssd云盘使用 + */ @UCloudParam("UDiskIdForAttachment") private String uDiskIdForAttachment; - - /** ULB使用参数,获取同VPC下机器信息。 */ + + + + /** + * ULB使用参数,获取同VPC下机器信息。 + */ @UCloudParam("VPCId") private String vpcId; - + + public String getRegion() { return region; } @@ -64,7 +98,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -72,7 +106,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -80,7 +114,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getPHostId() { return pHostId; } @@ -88,7 +122,7 @@ public List getPHostId() { public void setPHostId(List pHostId) { this.pHostId = pHostId; } - + public Integer getOffset() { return offset; } @@ -96,7 +130,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -104,7 +138,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getUDiskIdForAttachment() { return uDiskIdForAttachment; } @@ -112,7 +146,7 @@ public String getUDiskIdForAttachment() { public void setUDiskIdForAttachment(String uDiskIdForAttachment) { this.uDiskIdForAttachment = uDiskIdForAttachment; } - + public String getVPCId() { return vpcId; } @@ -120,4 +154,14 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostResponse.java index 2879ab1e..a31aae43 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribePHostResponse extends Response { - /** 满足条件的PHost总数 */ + + + /** + * 满足条件的PHost总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** PHost资源列表,参见 PHostSet */ + + + + /** + * PHost资源列表,参见 PHostSet + */ @SerializedName("PHostSet") private List pHostSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getPHostSet() { return pHostSet; } @@ -44,571 +57,762 @@ public List getPHostSet() { public void setPHostSet(List pHostSet) { this.pHostSet = pHostSet; } - - public static class PHostCPUSet extends Response { - - /** CPU型号 */ - @SerializedName("Model") - private String model; - - /** CPU主频 */ - @SerializedName("Frequence") - private Double frequence; - - /** CPU个数 */ - @SerializedName("Count") - private Integer count; - - /** CPU核数 */ - @SerializedName("CoreCount") - private Integer coreCount; - - public String getModel() { - return model; - } - - public void setModel(String model) { - this.model = model; - } - - public Double getFrequence() { - return frequence; - } - - public void setFrequence(Double frequence) { - this.frequence = frequence; - } - - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } - - public Integer getCoreCount() { - return coreCount; - } - - public void setCoreCount(Integer coreCount) { - this.coreCount = coreCount; - } + + public static class PHostCPUSet extends Response { + + + /** + * CPU型号 + */ + @SerializedName("Model") + private String model; + + + + /** + * CPU主频 + */ + @SerializedName("Frequence") + private Double frequence; + + + + /** + * CPU个数 + */ + @SerializedName("Count") + private Integer count; + + + + /** + * CPU核数 + */ + @SerializedName("CoreCount") + private Integer coreCount; + + + public String getModel() { + return model; } - public static class PHostDescDiskSet extends Response { - - /** 单盘大小,单位GB */ - @SerializedName("Space") - private Integer space; - - /** 磁盘数量 */ - @SerializedName("Count") - private Integer count; - - /** 磁盘属性 */ - @SerializedName("Type") - private String type; - - /** 磁盘名称,sys/data */ - @SerializedName("Name") - private String name; - - /** 磁盘IO性能,单位MB/s(待废弃) */ - @SerializedName("IOCap") - private Integer ioCap; - - /** 裸金属机型参数:磁盘盘符 */ - @SerializedName("Drive") - private String drive; - - /** 裸金属机型参数:磁盘ID */ - @SerializedName("DiskId") - private String diskId; - - /** 裸金属机型参数:是否是启动盘。True/False */ - @SerializedName("IsBoot") - private String isBoot; - - public Integer getSpace() { - return space; - } - - public void setSpace(Integer space) { - this.space = space; - } - - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getIOCap() { - return ioCap; - } - - public void setIOCap(Integer ioCap) { - this.ioCap = ioCap; - } - - public String getDrive() { - return drive; - } - - public void setDrive(String drive) { - this.drive = drive; - } - - public String getDiskId() { - return diskId; - } - - public void setDiskId(String diskId) { - this.diskId = diskId; - } - - public String getIsBoot() { - return isBoot; - } - - public void setIsBoot(String isBoot) { - this.isBoot = isBoot; - } + public void setModel(String model) { + this.model = model; } - - public static class PHostIPSet extends Response { - - /** 国际: Internation, BGP: BGP, 内网: Private */ - @SerializedName("OperatorName") - private String operatorName; - - /** IP资源ID(内网IP无资源ID)(待废弃) */ - @SerializedName("IPId") - private String ipId; - - /** IP地址, */ - @SerializedName("IPAddr") - private String ipAddr; - - /** MAC地址 */ - @SerializedName("MACAddr") - private String macAddr; - - /** IP对应带宽,单位Mb,内网IP不显示带宽信息 */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - /** 子网ID */ - @SerializedName("SubnetId") - private String subnetId; - - /** VPC ID */ - @SerializedName("VPCId") - private String vpcId; - - public String getOperatorName() { - return operatorName; - } - - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; - } - - public String getIPId() { - return ipId; - } - - public void setIPId(String ipId) { - this.ipId = ipId; - } - - public String getIPAddr() { - return ipAddr; - } - - public void setIPAddr(String ipAddr) { - this.ipAddr = ipAddr; - } - - public String getMACAddr() { - return macAddr; - } - - public void setMACAddr(String macAddr) { - this.macAddr = macAddr; - } - - public Integer getBandwidth() { - return bandwidth; - } - - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } + + public Double getFrequence() { + return frequence; } - public static class PHostSet extends Response { - - /** 可用区,参见 [可用区列表](../summary/regionlist.html) */ - @SerializedName("Zone") - private String zone; - - /** PHost资源ID */ - @SerializedName("PHostId") - private String pHostId; - - /** 物理机序列号 */ - @SerializedName("SN") - private String sn; - - /** - * 物理云主机状态。枚举值:\\ > 初始化:Initializing; \\ > 启动中:Starting; \\ > 运行中:Running;\\ > 关机中:Stopping; - * \\ > 安装失败:InstallFailed; \\ > 重启中:Rebooting;\\ > 关机:Stopped; \\ > 迁移中(裸金属云盘):Migrating - */ - @SerializedName("PMStatus") - private String pmStatus; - - /** 物理机名称 */ - @SerializedName("Name") - private String name; - - /** 物理机备注 */ - @SerializedName("Remark") - private String remark; - - /** 业务组 */ - @SerializedName("Tag") - private String tag; - - /** 镜像名称 */ - @SerializedName("ImageName") - private String imageName; - - /** 操作系统名称 */ - @SerializedName("OSname") - private String oSname; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 到期时间 */ - @SerializedName("ExpireTime") - private Integer expireTime; - - /** 计费模式,枚举值为: Year,按年付费; Month,按月付费;默认为月付 */ - @SerializedName("ChargeType") - private String chargeType; - - /** 电源状态,on 或 off */ - @SerializedName("PowerState") - private String powerState; - - /** 物理机类型,参见DescribePHostMachineType返回值 */ - @SerializedName("PHostType") - private String pHostType; - - /** 内存大小,单位:MB */ - @SerializedName("Memory") - private Integer memory; - - /** CPU信息,见 PHostCPUSet */ - @SerializedName("CPUSet") - private PHostCPUSet cpuSet; - - /** 磁盘信息,见 PHostDescDiskSet */ - @SerializedName("DiskSet") - private List diskSet; - - /** IP信息,见 PHostIPSet */ - @SerializedName("IPSet") - private List ipSet; - - /** 网络环境。枚举值:千兆:1G ,万兆:10G */ - @SerializedName("Cluster") - private String cluster; - - /** 自动续费 */ - @SerializedName("AutoRenew") - private String autoRenew; - - /** 是否支持紧急登录 */ - @SerializedName("IsSupportKVM") - private String isSupportKVM; - - /** 操作系统类型 */ - @SerializedName("OSType") - private String osType; - - /** 组件信息(暂不支持) */ - @SerializedName("Components") - private String components; - - /** 是否支持Raid。枚举值:Yes:支持;No:不支持。 */ - @SerializedName("RaidSupported") - private String raidSupported; - - /** 物理云产品类型,枚举值:LocalDisk=>代表传统本地盘机型, CloudDisk=>云盘裸金属机型 */ - @SerializedName("PhostClass") - private String phostClass; - - /** 裸金属机型字段。枚举值:Normal=>正常、ImageMaking=>镜像制作中。 */ - @SerializedName("BootDiskState") - private String bootDiskState; - - /** RDMA集群id,仅云盘裸金属返回该值;其他类型物理云主机返回""。当物理机的此值与RSSD云盘的RdmaClusterId相同时,RSSD可以挂载到这台物理机。 */ - @SerializedName("RdmaClusterId") - private String rdmaClusterId; - - public String getZone() { - return zone; - } + public void setFrequence(Double frequence) { + this.frequence = frequence; + } + + public Integer getCount() { + return count; + } - public void setZone(String zone) { - this.zone = zone; - } + public void setCount(Integer count) { + this.count = count; + } + + public Integer getCoreCount() { + return coreCount; + } - public String getPHostId() { - return pHostId; - } + public void setCoreCount(Integer coreCount) { + this.coreCount = coreCount; + } + + } + public static class PHostDescDiskSet extends Response { + + + /** + * 单盘大小,单位GB + */ + @SerializedName("Space") + private Integer space; + + + + /** + * 磁盘数量 + */ + @SerializedName("Count") + private Integer count; + + + + /** + * 磁盘属性 + */ + @SerializedName("Type") + private String type; + + + + /** + * 磁盘名称,sys/data + */ + @SerializedName("Name") + private String name; + + + + /** + * 磁盘IO性能,单位MB/s(待废弃) + */ + @SerializedName("IOCap") + private Integer ioCap; + + + + /** + * 裸金属机型参数:磁盘盘符 + */ + @SerializedName("Drive") + private String drive; + + + + /** + * 裸金属机型参数:磁盘ID + */ + @SerializedName("DiskId") + private String diskId; + + + + /** + * 裸金属机型参数:是否是启动盘。True/False + */ + @SerializedName("IsBoot") + private String isBoot; + + + public Integer getSpace() { + return space; + } - public void setPHostId(String pHostId) { - this.pHostId = pHostId; - } + public void setSpace(Integer space) { + this.space = space; + } + + public Integer getCount() { + return count; + } - public String getSN() { - return sn; - } + public void setCount(Integer count) { + this.count = count; + } + + public String getType() { + return type; + } - public void setSN(String sn) { - this.sn = sn; - } + public void setType(String type) { + this.type = type; + } + + public String getName() { + return name; + } - public String getPMStatus() { - return pmStatus; - } + public void setName(String name) { + this.name = name; + } + + public Integer getIOCap() { + return ioCap; + } - public void setPMStatus(String pmStatus) { - this.pmStatus = pmStatus; - } + public void setIOCap(Integer ioCap) { + this.ioCap = ioCap; + } + + public String getDrive() { + return drive; + } - public String getName() { - return name; - } + public void setDrive(String drive) { + this.drive = drive; + } + + public String getDiskId() { + return diskId; + } - public void setName(String name) { - this.name = name; - } + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public String getIsBoot() { + return isBoot; + } - public String getRemark() { - return remark; - } + public void setIsBoot(String isBoot) { + this.isBoot = isBoot; + } + + } + public static class PHostIPSet extends Response { + + + /** + * 国际: Internation, BGP: BGP, 内网: Private + */ + @SerializedName("OperatorName") + private String operatorName; + + + + /** + * IP资源ID(内网IP无资源ID)(待废弃) + */ + @SerializedName("IPId") + private String ipId; + + + + /** + * IP地址, + */ + @SerializedName("IPAddr") + private String ipAddr; + + + + /** + * MAC地址 + */ + @SerializedName("MACAddr") + private String macAddr; + + + + /** + * IP对应带宽,单位Mb,内网IP不显示带宽信息 + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * 子网ID + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * VPC ID + */ + @SerializedName("VPCId") + private String vpcId; + + + public String getOperatorName() { + return operatorName; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public String getIPId() { + return ipId; + } - public String getTag() { - return tag; - } + public void setIPId(String ipId) { + this.ipId = ipId; + } + + public String getIPAddr() { + return ipAddr; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setIPAddr(String ipAddr) { + this.ipAddr = ipAddr; + } + + public String getMACAddr() { + return macAddr; + } - public String getImageName() { - return imageName; - } + public void setMACAddr(String macAddr) { + this.macAddr = macAddr; + } + + public Integer getBandwidth() { + return bandwidth; + } - public void setImageName(String imageName) { - this.imageName = imageName; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getSubnetId() { + return subnetId; + } - public String getOSname() { - return oSname; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getVPCId() { + return vpcId; + } - public void setOSname(String oSname) { - this.oSname = oSname; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + } + public static class PHostSet extends Response { + + + /** + * 可用区,参见 [可用区列表](../summary/regionlist.html) + */ + @SerializedName("Zone") + private String zone; + + + + /** + * PHost资源ID + */ + @SerializedName("PHostId") + private String pHostId; + + + + /** + * 物理机序列号 + */ + @SerializedName("SN") + private String sn; + + + + /** + * 物理云主机状态。枚举值:\\ > 初始化:Initializing; \\ > 启动中:Starting; \\ > 运行中:Running;\\ > 关机中:Stopping; \\ > 安装失败:InstallFailed; \\ > 重启中:Rebooting;\\ > 关机:Stopped; \\ > 迁移中(裸金属云盘):Migrating + */ + @SerializedName("PMStatus") + private String pmStatus; + + + + /** + * 物理机名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 物理机备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 镜像名称 + */ + @SerializedName("ImageName") + private String imageName; + + + + /** + * 操作系统名称 + */ + @SerializedName("OSname") + private String oSname; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 到期时间 + */ + @SerializedName("ExpireTime") + private Integer expireTime; + + + + /** + * 计费模式,枚举值为: Year,按年付费; Month,按月付费;默认为月付 + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 电源状态,on 或 off + */ + @SerializedName("PowerState") + private String powerState; + + + + /** + * 物理机类型,参见DescribePHostMachineType返回值 + */ + @SerializedName("PHostType") + private String pHostType; + + + + /** + * 内存大小,单位:MB + */ + @SerializedName("Memory") + private Integer memory; + + + + /** + * CPU信息,见 PHostCPUSet + */ + @SerializedName("CPUSet") + private PHostCPUSet cpuSet; + + + + /** + * 磁盘信息,见 PHostDescDiskSet + */ + @SerializedName("DiskSet") + private List diskSet; + + + + /** + * IP信息,见 PHostIPSet + */ + @SerializedName("IPSet") + private List ipSet; + + + + /** + * 网络环境。枚举值:千兆:1G ,万兆:10G + */ + @SerializedName("Cluster") + private String cluster; + + + + /** + * 自动续费 + */ + @SerializedName("AutoRenew") + private String autoRenew; + + + + /** + * 是否支持紧急登录 + */ + @SerializedName("IsSupportKVM") + private String isSupportKVM; + + + + /** + * 操作系统类型 + */ + @SerializedName("OSType") + private String osType; + + + + /** + * 组件信息(暂不支持) + */ + @SerializedName("Components") + private String components; + + + + /** + * 是否支持Raid。枚举值:Yes:支持;No:不支持。 + */ + @SerializedName("RaidSupported") + private String raidSupported; + + + + /** + * 物理云产品类型,枚举值:LocalDisk=>代表传统本地盘机型, CloudDisk=>云盘裸金属机型 + */ + @SerializedName("PhostClass") + private String phostClass; + + + + /** + * 裸金属机型字段。枚举值:Normal=>正常、ImageMaking=>镜像制作中。 + */ + @SerializedName("BootDiskState") + private String bootDiskState; + + + + /** + * RDMA集群id,仅云盘裸金属返回该值;其他类型物理云主机返回""。当物理机的此值与RSSD云盘的RdmaClusterId相同时,RSSD可以挂载到这台物理机。 + */ + @SerializedName("RdmaClusterId") + private String rdmaClusterId; + + + public String getZone() { + return zone; + } - public Integer getCreateTime() { - return createTime; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getPHostId() { + return pHostId; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setPHostId(String pHostId) { + this.pHostId = pHostId; + } + + public String getSN() { + return sn; + } - public Integer getExpireTime() { - return expireTime; - } + public void setSN(String sn) { + this.sn = sn; + } + + public String getPMStatus() { + return pmStatus; + } - public void setExpireTime(Integer expireTime) { - this.expireTime = expireTime; - } + public void setPMStatus(String pmStatus) { + this.pmStatus = pmStatus; + } + + public String getName() { + return name; + } - public String getChargeType() { - return chargeType; - } + public void setName(String name) { + this.name = name; + } + + public String getRemark() { + return remark; + } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getTag() { + return tag; + } - public String getPowerState() { - return powerState; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getImageName() { + return imageName; + } - public void setPowerState(String powerState) { - this.powerState = powerState; - } + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public String getOSname() { + return oSname; + } - public String getPHostType() { - return pHostType; - } + public void setOSname(String oSname) { + this.oSname = oSname; + } + + public Integer getCreateTime() { + return createTime; + } - public void setPHostType(String pHostType) { - this.pHostType = pHostType; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } - public Integer getMemory() { - return memory; - } + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getChargeType() { + return chargeType; + } - public void setMemory(Integer memory) { - this.memory = memory; - } + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getPowerState() { + return powerState; + } - public PHostCPUSet getCPUSet() { - return cpuSet; - } + public void setPowerState(String powerState) { + this.powerState = powerState; + } + + public String getPHostType() { + return pHostType; + } - public void setCPUSet(PHostCPUSet cpuSet) { - this.cpuSet = cpuSet; - } + public void setPHostType(String pHostType) { + this.pHostType = pHostType; + } + + public Integer getMemory() { + return memory; + } - public List getDiskSet() { - return diskSet; - } + public void setMemory(Integer memory) { + this.memory = memory; + } + + public PHostCPUSet getCPUSet() { + return cpuSet; + } - public void setDiskSet(List diskSet) { - this.diskSet = diskSet; - } + public void setCPUSet(PHostCPUSet cpuSet) { + this.cpuSet = cpuSet; + } + + public List getDiskSet() { + return diskSet; + } - public List getIPSet() { - return ipSet; - } + public void setDiskSet(List diskSet) { + this.diskSet = diskSet; + } + + public List getIPSet() { + return ipSet; + } - public void setIPSet(List ipSet) { - this.ipSet = ipSet; - } + public void setIPSet(List ipSet) { + this.ipSet = ipSet; + } + + public String getCluster() { + return cluster; + } - public String getCluster() { - return cluster; - } + public void setCluster(String cluster) { + this.cluster = cluster; + } + + public String getAutoRenew() { + return autoRenew; + } - public void setCluster(String cluster) { - this.cluster = cluster; - } + public void setAutoRenew(String autoRenew) { + this.autoRenew = autoRenew; + } + + public String getIsSupportKVM() { + return isSupportKVM; + } - public String getAutoRenew() { - return autoRenew; - } + public void setIsSupportKVM(String isSupportKVM) { + this.isSupportKVM = isSupportKVM; + } + + public String getOSType() { + return osType; + } - public void setAutoRenew(String autoRenew) { - this.autoRenew = autoRenew; - } + public void setOSType(String osType) { + this.osType = osType; + } + + public String getComponents() { + return components; + } - public String getIsSupportKVM() { - return isSupportKVM; - } + public void setComponents(String components) { + this.components = components; + } + + public String getRaidSupported() { + return raidSupported; + } - public void setIsSupportKVM(String isSupportKVM) { - this.isSupportKVM = isSupportKVM; - } + public void setRaidSupported(String raidSupported) { + this.raidSupported = raidSupported; + } + + public String getPhostClass() { + return phostClass; + } - public String getOSType() { - return osType; - } + public void setPhostClass(String phostClass) { + this.phostClass = phostClass; + } + + public String getBootDiskState() { + return bootDiskState; + } - public void setOSType(String osType) { - this.osType = osType; - } + public void setBootDiskState(String bootDiskState) { + this.bootDiskState = bootDiskState; + } + + public String getRdmaClusterId() { + return rdmaClusterId; + } - public String getComponents() { - return components; + public void setRdmaClusterId(String rdmaClusterId) { + this.rdmaClusterId = rdmaClusterId; + } + } +} - public void setComponents(String components) { - this.components = components; - } - public String getRaidSupported() { - return raidSupported; - } - public void setRaidSupported(String raidSupported) { - this.raidSupported = raidSupported; - } - public String getPhostClass() { - return phostClass; - } - public void setPhostClass(String phostClass) { - this.phostClass = phostClass; - } - public String getBootDiskState() { - return bootDiskState; - } - public void setBootDiskState(String bootDiskState) { - this.bootDiskState = bootDiskState; - } - public String getRdmaClusterId() { - return rdmaClusterId; - } - public void setRdmaClusterId(String rdmaClusterId) { - this.rdmaClusterId = rdmaClusterId; - } - } -} diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostTagsRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostTagsRequest.java index 97f10566..0b3272cc 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostTagsRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostTagsRequest.java @@ -1,38 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribePHostTagsRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - + + public String getRegion() { return region; } @@ -40,7 +58,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -48,7 +66,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -56,4 +74,14 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostTagsResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostTagsResponse.java index c165491d..7fa15e92 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostTagsResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostTagsResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribePHostTagsResponse extends Response { - /** Tag的个数 */ + + + /** + * Tag的个数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 具体参见 PHostTagSet */ + + + + /** + * 具体参见 PHostTagSet + */ @SerializedName("TagSet") private List tagSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getTagSet() { return tagSet; } @@ -44,31 +57,49 @@ public List getTagSet() { public void setTagSet(List tagSet) { this.tagSet = tagSet; } + + public static class PHostTagSet extends Response { + + + /** + * 业务组名称 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 该业务组中包含的主机个数 + */ + @SerializedName("TotalCount") + private Integer totalCount; + + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + } +} + + - public static class PHostTagSet extends Response { - /** 业务组名称 */ - @SerializedName("Tag") - private String tag; - /** 该业务组中包含的主机个数 */ - @SerializedName("TotalCount") - private Integer totalCount; - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - public Integer getTotalCount() { - return totalCount; - } - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - } -} diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostDiskUpgradePriceRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostDiskUpgradePriceRequest.java index 74609de0..fef60510 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostDiskUpgradePriceRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostDiskUpgradePriceRequest.java @@ -1,57 +1,91 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetPHostDiskUpgradePriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** UPHost实例ID。 */ + + + + /** + * UPHost实例ID。 + */ @NotEmpty @UCloudParam("PHostId") private String pHostId; - - /** 磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB,数据盘单块盘20-32000GB。 */ + + + + /** + * 磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB,数据盘单块盘20-32000GB。 + */ @NotEmpty @UCloudParam("DiskSpace") private Integer diskSpace; - - /** 磁盘 ID。获取扩容价格必填(只能扩不能减);重装时候不需要填(根据所选盘大小决定) */ + + + + /** + * 磁盘 ID。获取扩容价格必填(只能扩不能减);重装时候不需要填(根据所选盘大小决定) + */ @UCloudParam("UDiskId") private String uDiskId; - - /** 是否重装价格获取。复用此接口。扩容只能增加云盘大小。重装不限制。枚举值:true/false */ + + + + /** + * 是否重装价格获取。复用此接口。扩容只能增加云盘大小。重装不限制。枚举值:true/false + */ @UCloudParam("ReinstallTag") private Boolean reinstallTag; - + + public String getRegion() { return region; } @@ -59,7 +93,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -67,7 +101,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -75,7 +109,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPHostId() { return pHostId; } @@ -83,7 +117,7 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } - + public Integer getDiskSpace() { return diskSpace; } @@ -91,7 +125,7 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } - + public String getUDiskId() { return uDiskId; } @@ -99,7 +133,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public Boolean getReinstallTag() { return reinstallTag; } @@ -107,4 +141,14 @@ public Boolean getReinstallTag() { public void setReinstallTag(Boolean reinstallTag) { this.reinstallTag = reinstallTag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostDiskUpgradePriceResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostDiskUpgradePriceResponse.java index ca37d6e6..f98695e9 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostDiskUpgradePriceResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostDiskUpgradePriceResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class GetPHostDiskUpgradePriceResponse extends Response { - /** 升级差价。精度为小数点后2位。 */ + + + /** + * 升级差价。精度为小数点后2位。 + */ @SerializedName("Price") private Double price; - - /** 升价差价原价。精度为小数点后2位。 */ + + + + /** + * 升价差价原价。精度为小数点后2位。 + */ @SerializedName("OriginalPrice") private Double originalPrice; - + + public Double getPrice() { return price; } @@ -35,7 +49,7 @@ public Double getPrice() { public void setPrice(Double price) { this.price = price; } - + public Double getOriginalPrice() { return originalPrice; } @@ -43,4 +57,14 @@ public Double getOriginalPrice() { public void setOriginalPrice(Double originalPrice) { this.originalPrice = originalPrice; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostPriceRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostPriceRequest.java index 780b89ee..a9e9ec3b 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostPriceRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostPriceRequest.java @@ -1,72 +1,107 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetPHostPriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 购买数量,范围[1-5] */ + + + + /** + * 购买数量,范围[1-5] + */ @NotEmpty @UCloudParam("Count") private Integer count; - - /** 计费模式,枚举值为: Year/Month */ + + + + /** + * 计费模式,枚举值为: Year/Month + */ @NotEmpty @UCloudParam("ChargeType") private String chargeType; - - /** 购买时长,1-10个月或1-10年;默认值为1。月付时,此参数传0,代表购买至月末,1代表整月。 */ + + + + /** + * 购买时长,1-10个月或1-10年;默认值为1。月付时,此参数传0,代表购买至月末,1代表整月。 + */ @NotEmpty @UCloudParam("Quantity") private Integer quantity; - - /** 网络环境,可选千兆:1G ;万兆:10G;25G网络:25G。 */ + + + + /** + * 网络环境,可选千兆:1G ;万兆:10G;25G网络:25G。 + */ @UCloudParam("Cluster") private String cluster; - + + + /** - * 默认为:DB(数据库型),可以通过接口 - * [DescribePHostMachineType](api/uphost-api/describe_phost_machine_type.html)获取 + * 默认为:DB(数据库型),可以通过接口 [DescribePHostMachineType](api/uphost-api/describe_phost_machine_type.html)获取 */ @UCloudParam("Type") private String type; - - /** */ + + + + /** + * + */ @UCloudParam("Disks") private List disks; - + + public String getRegion() { return region; } @@ -74,7 +109,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -82,7 +117,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -90,7 +125,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getCount() { return count; } @@ -98,7 +133,7 @@ public Integer getCount() { public void setCount(Integer count) { this.count = count; } - + public String getChargeType() { return chargeType; } @@ -106,7 +141,7 @@ public String getChargeType() { public void setChargeType(String chargeType) { this.chargeType = chargeType; } - + public Integer getQuantity() { return quantity; } @@ -114,7 +149,7 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } - + public String getCluster() { return cluster; } @@ -122,7 +157,7 @@ public String getCluster() { public void setCluster(String cluster) { this.cluster = cluster; } - + public String getType() { return type; } @@ -130,7 +165,7 @@ public String getType() { public void setType(String type) { this.type = type; } - + public List getDisks() { return disks; } @@ -138,43 +173,65 @@ public List getDisks() { public void setDisks(List disks) { this.disks = disks; } + + public static class Disks extends Request { + + + /** + * 裸金属机型参数->枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + */ + @UCloudParam("IsBoot") + private String isBoot; + + + + /** + * 裸金属机型参数->磁盘类型:枚举值:CLOUD_RSSD + */ + @UCloudParam("Type") + private String type; + + + + /** + * 裸金属机型参数->磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB。数据盘是20-32000G。 + */ + @UCloudParam("Size") + private String size; + + + public String getIsBoot() { + return isBoot; + } + + public void setIsBoot(String isBoot) { + this.isBoot = isBoot; + } + + public String getType() { + return type; + } - public static class Disks extends Request { + public void setType(String type) { + this.type = type; + } + + public String getSize() { + return size; + } + + public void setSize(String size) { + this.size = size; + } + + } +} - /** 裸金属机型参数->枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 */ - @UCloudParam("IsBoot") - private String isBoot; - /** 裸金属机型参数->磁盘类型:枚举值:CLOUD_RSSD */ - @UCloudParam("Type") - private String type; - /** 裸金属机型参数->磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB。数据盘是20-32000G。 */ - @UCloudParam("Size") - private String size; - public String getIsBoot() { - return isBoot; - } - public void setIsBoot(String isBoot) { - this.isBoot = isBoot; - } - public String getType() { - return type; - } - public void setType(String type) { - this.type = type; - } - public String getSize() { - return size; - } - public void setSize(String size) { - this.size = size; - } - } -} diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostPriceResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostPriceResponse.java index e81033c5..3353ec44 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostPriceResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/GetPHostPriceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetPHostPriceResponse extends Response { - /** 价格列表 见 PHostPriceSet */ + + + /** + * 价格列表 见 PHostPriceSet + */ @SerializedName("PriceSet") private List priceSet; - + + public List getPriceSet() { return priceSet; } @@ -32,55 +41,81 @@ public List getPriceSet() { public void setPriceSet(List priceSet) { this.priceSet = priceSet; } + + public static class PHostPriceSet extends Response { + + + /** + * Year/Month + */ + @SerializedName("ChargeType") + private String chargeType; + + + + /** + * 价格, 单位:元, 保留小数点后两位有效数字 + */ + @SerializedName("Price") + private Double price; + + + + /** + * 枚举值:phost=>为主机价格,如果是云盘包括了系统盘价格。cloudDisk=>所有数据盘价格,只是裸金属机型才返回此参数。 + */ + @SerializedName("Product") + private String product; + + + + /** + * 原价格, 单位:元, 保留小数点后两位有效数字 + */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + + public String getChargeType() { + return chargeType; + } - public static class PHostPriceSet extends Response { + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } - /** Year/Month */ - @SerializedName("ChargeType") - private String chargeType; + public void setPrice(Double price) { + this.price = price; + } + + public String getProduct() { + return product; + } - /** 价格, 单位:元, 保留小数点后两位有效数字 */ - @SerializedName("Price") - private Double price; + public void setProduct(String product) { + this.product = product; + } + + public Double getOriginalPrice() { + return originalPrice; + } - /** 枚举值:phost=>为主机价格,如果是云盘包括了系统盘价格。cloudDisk=>所有数据盘价格,只是裸金属机型才返回此参数。 */ - @SerializedName("Product") - private String product; + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + + } +} - /** 原价格, 单位:元, 保留小数点后两位有效数字 */ - @SerializedName("OriginalPrice") - private Double originalPrice; - public String getChargeType() { - return chargeType; - } - public void setChargeType(String chargeType) { - this.chargeType = chargeType; - } - public Double getPrice() { - return price; - } - public void setPrice(Double price) { - this.price = price; - } - public String getProduct() { - return product; - } - public void setProduct(String product) { - this.product = product; - } - public Double getOriginalPrice() { - return originalPrice; - } - public void setOriginalPrice(Double originalPrice) { - this.originalPrice = originalPrice; - } - } -} diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostImageInfoRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostImageInfoRequest.java index 5e80aaba..2d9ef72b 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostImageInfoRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostImageInfoRequest.java @@ -1,55 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyPHostImageInfoRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 镜像ID */ + + + + /** + * 镜像ID + */ @NotEmpty @UCloudParam("ImageId") private String imageId; - - /** 镜像名称 */ + + + + /** + * 镜像名称 + */ @UCloudParam("Name") private String name; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - + + public String getRegion() { return region; } @@ -57,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -73,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageId() { return imageId; } @@ -81,7 +108,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getName() { return name; } @@ -89,7 +116,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getRemark() { return remark; } @@ -97,4 +124,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostImageInfoResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostImageInfoResponse.java index cc44286c..c44dac7a 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostImageInfoResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostImageInfoResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ModifyPHostImageInfoResponse extends Response { - /** 镜像ID */ + + + /** + * 镜像ID + */ @SerializedName("ImageId") private String imageId; - + + public String getImageId() { return imageId; } @@ -31,4 +41,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostInfoRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostInfoRequest.java index b77429a6..f2c2326d 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostInfoRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostInfoRequest.java @@ -1,55 +1,89 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ModifyPHostInfoRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 物理机资源ID */ + + + + /** + * 物理机资源ID + */ @NotEmpty @UCloudParam("PHostId") private String pHostId; - - /** 物理机名称,默认不更改 */ + + + + /** + * 物理机名称,默认不更改 + */ @UCloudParam("Name") private String name; - - /** 物理机备注,默认不更改 */ + + + + /** + * 物理机备注,默认不更改 + */ @UCloudParam("Remark") private String remark; - - /** 业务组,默认不更改 */ + + + + /** + * 业务组,默认不更改 + */ @UCloudParam("Tag") private String tag; - + + public String getRegion() { return region; } @@ -57,7 +91,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -65,7 +99,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -73,7 +107,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPHostId() { return pHostId; } @@ -81,7 +115,7 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } - + public String getName() { return name; } @@ -89,7 +123,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getRemark() { return remark; } @@ -97,7 +131,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public String getTag() { return tag; } @@ -105,4 +139,14 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostInfoResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostInfoResponse.java index 164e392a..66f4f918 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostInfoResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ModifyPHostInfoResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ModifyPHostInfoResponse extends Response { - /** PHost 的资源ID */ + + + /** + * PHost 的资源ID + */ @SerializedName("PHostId") private String pHostId; - + + public String getPHostId() { return pHostId; } @@ -31,4 +41,14 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/PoweroffPHostRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/PoweroffPHostRequest.java index 745c7500..dd601d25 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/PoweroffPHostRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/PoweroffPHostRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class PoweroffPHostRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** PHost资源ID */ + + + + /** + * PHost资源ID + */ @NotEmpty @UCloudParam("PHostId") private String pHostId; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -54,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -62,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPHostId() { return pHostId; } @@ -70,4 +92,14 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/PoweroffPHostResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/PoweroffPHostResponse.java index d317e69c..e15cd199 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/PoweroffPHostResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/PoweroffPHostResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class PoweroffPHostResponse extends Response { - /** PHost 的资源ID */ + + + /** + * PHost 的资源ID + */ @SerializedName("PHostId") private String pHostId; - + + public String getPHostId() { return pHostId; } @@ -31,4 +41,14 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/RebootPHostRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/RebootPHostRequest.java index 6ca0d16f..68140748 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/RebootPHostRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/RebootPHostRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class RebootPHostRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** PHost资源ID */ + + + + /** + * PHost资源ID + */ @NotEmpty @UCloudParam("PHostId") private String pHostId; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -54,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -62,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPHostId() { return pHostId; } @@ -70,4 +92,14 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/RebootPHostResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/RebootPHostResponse.java index d701f46d..a49243db 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/RebootPHostResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/RebootPHostResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class RebootPHostResponse extends Response { - /** PHost 的资源ID */ + + + /** + * PHost 的资源ID + */ @SerializedName("PHostId") private String pHostId; - + + public String getPHostId() { return pHostId; } @@ -31,4 +41,14 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ReinstallPHostRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ReinstallPHostRequest.java index eed7211b..34eaa3b5 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ReinstallPHostRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ReinstallPHostRequest.java @@ -1,77 +1,131 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ReinstallPHostRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** PHost资源ID */ + + + + /** + * PHost资源ID + */ @NotEmpty @UCloudParam("PHostId") private String pHostId; - - /** 密码 */ + + + + /** + * 密码 + */ @NotEmpty @UCloudParam("Password") private String password; - - /** 镜像Id,参考镜像列表,默认使用原镜像 */ + + + + /** + * 镜像Id,参考镜像列表,默认使用原镜像 + */ @UCloudParam("ImageId") private String imageId; - - /** 物理机名称,默认不更改 */ + + + + /** + * 物理机名称,默认不更改 + */ @UCloudParam("Name") private String name; - - /** 物理机备注,默认为不更改。 */ + + + + /** + * 物理机备注,默认为不更改。 + */ @UCloudParam("Remark") private String remark; - - /** 业务组,默认不更改。 */ + + + + /** + * 业务组,默认不更改。 + */ @UCloudParam("Tag") private String tag; - - /** 是否保留数据盘,保留:Yes,不报留:No, 默认:Yes */ + + + + /** + * 是否保留数据盘,保留:Yes,不报留:No, 默认:Yes + */ @UCloudParam("ReserveDisk") private String reserveDisk; - - /** 不保留数据盘重装,可选Raid */ + + + + /** + * 不保留数据盘重装,可选Raid + */ @UCloudParam("Raid") private String raid; - - /** 裸金属机型参数->系统盘大小。 单位:GB, 范围[20,500], 步长:10 */ + + + + /** + * 裸金属机型参数->系统盘大小。 单位:GB, 范围[20,500], 步长:10 + */ @UCloudParam("BootDiskSpace") private Integer bootDiskSpace; - + + public String getRegion() { return region; } @@ -79,7 +133,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -87,7 +141,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -95,7 +149,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPHostId() { return pHostId; } @@ -103,7 +157,7 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } - + public String getPassword() { return password; } @@ -111,7 +165,7 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } - + public String getImageId() { return imageId; } @@ -119,7 +173,7 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } - + public String getName() { return name; } @@ -127,7 +181,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getRemark() { return remark; } @@ -135,7 +189,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public String getTag() { return tag; } @@ -143,7 +197,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getReserveDisk() { return reserveDisk; } @@ -151,7 +205,7 @@ public String getReserveDisk() { public void setReserveDisk(String reserveDisk) { this.reserveDisk = reserveDisk; } - + public String getRaid() { return raid; } @@ -159,7 +213,7 @@ public String getRaid() { public void setRaid(String raid) { this.raid = raid; } - + public Integer getBootDiskSpace() { return bootDiskSpace; } @@ -167,4 +221,14 @@ public Integer getBootDiskSpace() { public void setBootDiskSpace(Integer bootDiskSpace) { this.bootDiskSpace = bootDiskSpace; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ReinstallPHostResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ReinstallPHostResponse.java index 6348959c..b9aaf399 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ReinstallPHostResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ReinstallPHostResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ReinstallPHostResponse extends Response { - /** PHost 的资源ID */ + + + /** + * PHost 的资源ID + */ @SerializedName("PHostId") private String pHostId; - + + public String getPHostId() { return pHostId; } @@ -31,4 +41,14 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResetPHostPasswordRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResetPHostPasswordRequest.java index 0fbbeb47..e77605b5 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResetPHostPasswordRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResetPHostPasswordRequest.java @@ -1,49 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ResetPHostPasswordRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 裸金属实例ID */ + + + + /** + * 裸金属实例ID + */ @NotEmpty @UCloudParam("PHostId") private String pHostId; - - /** PHost新密码(密码格式使用BASE64编码) */ + + + + /** + * PHost新密码(密码格式使用BASE64编码) + */ @NotEmpty @UCloudParam("Password") private String password; - + + public String getRegion() { return region; } @@ -51,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -59,7 +85,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -67,7 +93,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPHostId() { return pHostId; } @@ -75,7 +101,7 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } - + public String getPassword() { return password; } @@ -83,4 +109,14 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResetPHostPasswordResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResetPHostPasswordResponse.java index 0b0046e2..c02bc286 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResetPHostPasswordResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResetPHostPasswordResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ResetPHostPasswordResponse extends Response { - /** 裸金属实例ID */ + + + /** + * 裸金属实例ID + */ @SerializedName("PHostId") private String pHostId; - + + public String getPHostId() { return pHostId; } @@ -31,4 +41,14 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResizePHostAttachedDiskRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResizePHostAttachedDiskRequest.java index eb6062a4..cadbf5fd 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResizePHostAttachedDiskRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResizePHostAttachedDiskRequest.java @@ -1,54 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ResizePHostAttachedDiskRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** UPHost实例ID。 */ + + + + /** + * UPHost实例ID。 + */ @UCloudParam("PHostId") private String pHostId; - - /** 磁盘ID。 */ + + + + /** + * 磁盘ID。 + */ @UCloudParam("UDiskId") private String uDiskId; - - /** 裸金属机型参数->磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB,数据盘单块盘20-32000GB。 */ + + + + /** + * 裸金属机型参数->磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB,数据盘单块盘20-32000GB。 + */ @UCloudParam("DiskSpace") private Integer diskSpace; - + + public String getRegion() { return region; } @@ -56,7 +83,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -64,7 +91,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -72,7 +99,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPHostId() { return pHostId; } @@ -80,7 +107,7 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } - + public String getUDiskId() { return uDiskId; } @@ -88,7 +115,7 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } - + public Integer getDiskSpace() { return diskSpace; } @@ -96,4 +123,14 @@ public Integer getDiskSpace() { public void setDiskSpace(Integer diskSpace) { this.diskSpace = diskSpace; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResizePHostAttachedDiskResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResizePHostAttachedDiskResponse.java index 12e87e5f..615824f9 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResizePHostAttachedDiskResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/ResizePHostAttachedDiskResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class ResizePHostAttachedDiskResponse extends Response { - /** 改配成功的磁盘id */ + + + /** + * 改配成功的磁盘id + */ @SerializedName("UDiskId") private String uDiskId; - + + public String getUDiskId() { return uDiskId; } @@ -31,4 +41,14 @@ public String getUDiskId() { public void setUDiskId(String uDiskId) { this.uDiskId = uDiskId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StartPHostRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StartPHostRequest.java index 39e437a3..89368581 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StartPHostRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StartPHostRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class StartPHostRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** PHost资源ID */ + + + + /** + * PHost资源ID + */ @NotEmpty @UCloudParam("PHostId") private String pHostId; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -54,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -62,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPHostId() { return pHostId; } @@ -70,4 +92,14 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StartPHostResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StartPHostResponse.java index 56e442e4..46a050b0 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StartPHostResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StartPHostResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class StartPHostResponse extends Response { - /** PHost 的资源ID */ + + + /** + * PHost 的资源ID + */ @SerializedName("PHostId") private String pHostId; - + + public String getPHostId() { return pHostId; } @@ -31,4 +41,14 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StopPHostRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StopPHostRequest.java index e81d3650..434a7741 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StopPHostRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StopPHostRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class StopPHostRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** PHost资源ID */ + + + + /** + * PHost资源ID + */ @NotEmpty @UCloudParam("PHostId") private String pHostId; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPHostId() { return pHostId; } @@ -73,4 +92,14 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StopPHostResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StopPHostResponse.java index ab947673..d268095a 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StopPHostResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/StopPHostResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class StopPHostResponse extends Response { - /** PHost 的资源ID */ + + + /** + * PHost 的资源ID + */ @SerializedName("PHostId") private String pHostId; - + + public String getPHostId() { return pHostId; } @@ -31,4 +41,14 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostImageRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostImageRequest.java index ce0bdd9c..92ae6e4d 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostImageRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostImageRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class TerminatePHostImageRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 自制镜像ID */ + + + + /** + * 自制镜像ID + */ @NotEmpty @UCloudParam("ImageId") private String imageId; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -57,7 +76,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -65,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getImageId() { return imageId; } @@ -73,4 +92,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostImageResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostImageResponse.java index 129a660f..60996343 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostImageResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostImageResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class TerminatePHostImageResponse extends Response { - /** 自制镜像ID */ + + + /** + * 自制镜像ID + */ @SerializedName("ImageId") private String imageId; - + + public String getImageId() { return imageId; } @@ -31,4 +41,14 @@ public String getImageId() { public void setImageId(String imageId) { this.imageId = imageId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostRequest.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostRequest.java index fa202964..0cfdd660 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostRequest.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class TerminatePHostRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** PHost资源ID */ + + + + /** + * PHost资源ID + */ @NotEmpty @UCloudParam("PHostId") private String pHostId; - - /** 是否释放绑定的EIP。true: 解绑EIP后,并释放;其他值或不填:解绑EIP。 */ + + + + /** + * 是否释放绑定的EIP。true: 解绑EIP后,并释放;其他值或不填:解绑EIP。 + */ @UCloudParam("ReleaseEIP") private Boolean releaseEIP; - - /** 裸金属机型参数->删除主机时是否同时删除挂载的数据盘。默认为false。 */ + + + + /** + * 裸金属机型参数->删除主机时是否同时删除挂载的数据盘。默认为false。 + */ @UCloudParam("ReleaseUDisk") private Boolean releaseUDisk; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -62,7 +92,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -70,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getPHostId() { return pHostId; } @@ -78,7 +108,7 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } - + public Boolean getReleaseEIP() { return releaseEIP; } @@ -86,7 +116,7 @@ public Boolean getReleaseEIP() { public void setReleaseEIP(Boolean releaseEIP) { this.releaseEIP = releaseEIP; } - + public Boolean getReleaseUDisk() { return releaseUDisk; } @@ -94,4 +124,14 @@ public Boolean getReleaseUDisk() { public void setReleaseUDisk(Boolean releaseUDisk) { this.releaseUDisk = releaseUDisk; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostResponse.java index 85ae70ca..ab372e17 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/TerminatePHostResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uphost.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class TerminatePHostResponse extends Response { - /** PHost 的资源ID */ + + + /** + * PHost 的资源ID + */ @SerializedName("PHostId") private String pHostId; - + + public String getPHostId() { return pHostId; } @@ -31,4 +41,14 @@ public String getPHostId() { public void setPHostId(String pHostId) { this.pHostId = pHostId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index ba85da93..28b9c5f5 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-uslk - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/client/USLKClient.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/client/USLKClient.java index b62db7b1..9a80c913 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/client/USLKClient.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/client/USLKClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uslk.client; @@ -17,98 +19,138 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.uslk.models.BatchCreateUSLKShortLinkRequest; import cn.ucloud.uslk.models.BatchCreateUSLKShortLinkResponse; + + + import cn.ucloud.uslk.models.CreateUSLKLongLinkRequest; import cn.ucloud.uslk.models.CreateUSLKLongLinkResponse; + + + import cn.ucloud.uslk.models.CreateUSLKScenarioRequest; import cn.ucloud.uslk.models.CreateUSLKScenarioResponse; + + + import cn.ucloud.uslk.models.CreateUSLKShortLinkRequest; import cn.ucloud.uslk.models.CreateUSLKShortLinkResponse; + + + import cn.ucloud.uslk.models.DescribeUSLKRedirectRecordsRequest; import cn.ucloud.uslk.models.DescribeUSLKRedirectRecordsResponse; + + + import cn.ucloud.uslk.models.DescribeUSLKShortLinkListRequest; import cn.ucloud.uslk.models.DescribeUSLKShortLinkListResponse; -/** This client is used to call actions of **USLK** service */ +/** + * This client is used to call actions of **USLK** service + */ public class USLKClient extends DefaultClient implements USLKClientInterface { public USLKClient(Config config, Credential credential) { super(config, credential); } - - /** - * BatchCreateUSLKShortLink - 批量创建短链接【免审】 - * - * @param request Request object - * @throws UCloudException Exception - */ - public BatchCreateUSLKShortLinkResponse batchCreateUSLKShortLink( - BatchCreateUSLKShortLinkRequest request) throws UCloudException { - request.setAction("BatchCreateUSLKShortLink"); - return (BatchCreateUSLKShortLinkResponse) - this.invoke(request, BatchCreateUSLKShortLinkResponse.class); - } - - /** - * CreateUSLKLongLink - 报备长链接 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUSLKLongLinkResponse createUSLKLongLink(CreateUSLKLongLinkRequest request) - throws UCloudException { - request.setAction("CreateUSLKLongLink"); - return (CreateUSLKLongLinkResponse) this.invoke(request, CreateUSLKLongLinkResponse.class); - } - - /** - * CreateUSLKScenario - 创建场景 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUSLKScenarioResponse createUSLKScenario(CreateUSLKScenarioRequest request) - throws UCloudException { - request.setAction("CreateUSLKScenario"); - return (CreateUSLKScenarioResponse) this.invoke(request, CreateUSLKScenarioResponse.class); - } - - /** - * CreateUSLKShortLink - 创建短链接 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUSLKShortLinkResponse createUSLKShortLink(CreateUSLKShortLinkRequest request) - throws UCloudException { - request.setAction("CreateUSLKShortLink"); - return (CreateUSLKShortLinkResponse) - this.invoke(request, CreateUSLKShortLinkResponse.class); - } - - /** - * DescribeUSLKRedirectRecords - 查询短链接访问明细列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUSLKRedirectRecordsResponse describeUSLKRedirectRecords( - DescribeUSLKRedirectRecordsRequest request) throws UCloudException { - request.setAction("DescribeUSLKRedirectRecords"); - return (DescribeUSLKRedirectRecordsResponse) - this.invoke(request, DescribeUSLKRedirectRecordsResponse.class); - } - - /** - * DescribeUSLKShortLinkList - 查询短链接列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeUSLKShortLinkListResponse describeUSLKShortLinkList( - DescribeUSLKShortLinkListRequest request) throws UCloudException { - request.setAction("DescribeUSLKShortLinkList"); - return (DescribeUSLKShortLinkListResponse) - this.invoke(request, DescribeUSLKShortLinkListResponse.class); - } + + + + + + + /** + * BatchCreateUSLKShortLink - 批量创建短链接【免审】 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BatchCreateUSLKShortLinkResponse batchCreateUSLKShortLink(BatchCreateUSLKShortLinkRequest request) throws UCloudException { + request.setAction("BatchCreateUSLKShortLink"); + return (BatchCreateUSLKShortLinkResponse) this.invoke(request, BatchCreateUSLKShortLinkResponse.class); + } + + + + + + + /** + * CreateUSLKLongLink - 报备长链接 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUSLKLongLinkResponse createUSLKLongLink(CreateUSLKLongLinkRequest request) throws UCloudException { + request.setAction("CreateUSLKLongLink"); + return (CreateUSLKLongLinkResponse) this.invoke(request, CreateUSLKLongLinkResponse.class); + } + + + + + + + /** + * CreateUSLKScenario - 创建场景 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUSLKScenarioResponse createUSLKScenario(CreateUSLKScenarioRequest request) throws UCloudException { + request.setAction("CreateUSLKScenario"); + return (CreateUSLKScenarioResponse) this.invoke(request, CreateUSLKScenarioResponse.class); + } + + + + + + + /** + * CreateUSLKShortLink - 创建短链接 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUSLKShortLinkResponse createUSLKShortLink(CreateUSLKShortLinkRequest request) throws UCloudException { + request.setAction("CreateUSLKShortLink"); + return (CreateUSLKShortLinkResponse) this.invoke(request, CreateUSLKShortLinkResponse.class); + } + + + + + + + /** + * DescribeUSLKRedirectRecords - 查询短链接访问明细列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUSLKRedirectRecordsResponse describeUSLKRedirectRecords(DescribeUSLKRedirectRecordsRequest request) throws UCloudException { + request.setAction("DescribeUSLKRedirectRecords"); + return (DescribeUSLKRedirectRecordsResponse) this.invoke(request, DescribeUSLKRedirectRecordsResponse.class); + } + + + + + + + /** + * DescribeUSLKShortLinkList - 查询短链接列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUSLKShortLinkListResponse describeUSLKShortLinkList(DescribeUSLKShortLinkListRequest request) throws UCloudException { + request.setAction("DescribeUSLKShortLinkList"); + return (DescribeUSLKShortLinkListResponse) this.invoke(request, DescribeUSLKShortLinkListResponse.class); + } } diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/client/USLKClientInterface.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/client/USLKClientInterface.java index ee7d7ed6..c29d2adf 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/client/USLKClientInterface.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/client/USLKClientInterface.java @@ -1,87 +1,133 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uslk.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.uslk.models.BatchCreateUSLKShortLinkRequest; import cn.ucloud.uslk.models.BatchCreateUSLKShortLinkResponse; + + + import cn.ucloud.uslk.models.CreateUSLKLongLinkRequest; import cn.ucloud.uslk.models.CreateUSLKLongLinkResponse; + + + import cn.ucloud.uslk.models.CreateUSLKScenarioRequest; import cn.ucloud.uslk.models.CreateUSLKScenarioResponse; + + + import cn.ucloud.uslk.models.CreateUSLKShortLinkRequest; import cn.ucloud.uslk.models.CreateUSLKShortLinkResponse; + + + import cn.ucloud.uslk.models.DescribeUSLKRedirectRecordsRequest; import cn.ucloud.uslk.models.DescribeUSLKRedirectRecordsResponse; + + + import cn.ucloud.uslk.models.DescribeUSLKShortLinkListRequest; import cn.ucloud.uslk.models.DescribeUSLKShortLinkListResponse; -/** This client is used to call actions of **USLK** service */ +/** + * This client is used to call actions of **USLK** service + */ public interface USLKClientInterface extends Client { - + + + + + + /** * BatchCreateUSLKShortLink - 批量创建短链接【免审】 * * @param request Request object * @throws UCloudException Exception */ - public BatchCreateUSLKShortLinkResponse batchCreateUSLKShortLink( - BatchCreateUSLKShortLinkRequest request) throws UCloudException; - + public BatchCreateUSLKShortLinkResponse batchCreateUSLKShortLink(BatchCreateUSLKShortLinkRequest request) throws UCloudException; + + + + + + /** * CreateUSLKLongLink - 报备长链接 * * @param request Request object * @throws UCloudException Exception */ - public CreateUSLKLongLinkResponse createUSLKLongLink(CreateUSLKLongLinkRequest request) - throws UCloudException; - + public CreateUSLKLongLinkResponse createUSLKLongLink(CreateUSLKLongLinkRequest request) throws UCloudException; + + + + + + /** * CreateUSLKScenario - 创建场景 * * @param request Request object * @throws UCloudException Exception */ - public CreateUSLKScenarioResponse createUSLKScenario(CreateUSLKScenarioRequest request) - throws UCloudException; - + public CreateUSLKScenarioResponse createUSLKScenario(CreateUSLKScenarioRequest request) throws UCloudException; + + + + + + /** * CreateUSLKShortLink - 创建短链接 * * @param request Request object * @throws UCloudException Exception */ - public CreateUSLKShortLinkResponse createUSLKShortLink(CreateUSLKShortLinkRequest request) - throws UCloudException; - + public CreateUSLKShortLinkResponse createUSLKShortLink(CreateUSLKShortLinkRequest request) throws UCloudException; + + + + + + /** * DescribeUSLKRedirectRecords - 查询短链接访问明细列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUSLKRedirectRecordsResponse describeUSLKRedirectRecords( - DescribeUSLKRedirectRecordsRequest request) throws UCloudException; - + public DescribeUSLKRedirectRecordsResponse describeUSLKRedirectRecords(DescribeUSLKRedirectRecordsRequest request) throws UCloudException; + + + + + + /** * DescribeUSLKShortLinkList - 查询短链接列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeUSLKShortLinkListResponse describeUSLKShortLinkList( - DescribeUSLKShortLinkListRequest request) throws UCloudException; + public DescribeUSLKShortLinkListResponse describeUSLKShortLinkList(DescribeUSLKShortLinkListRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/BatchCreateUSLKShortLinkRequest.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/BatchCreateUSLKShortLinkRequest.java index 4782d9d0..36380de3 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/BatchCreateUSLKShortLinkRequest.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/BatchCreateUSLKShortLinkRequest.java @@ -1,56 +1,85 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uslk.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class BatchCreateUSLKShortLinkRequest extends Request { - /** 场景ID */ + + + /** + * 场景ID + */ @NotEmpty @UCloudParam("ScenarioID") private Integer scenarioID; - - /** 长链接数组,示例: "LongLinks.0": "http://ucloud.cn/0", "LongLinks.1": "http://ucloud.cn/1" */ + + + + /** + * 长链接数组,示例: "LongLinks.0": "http://ucloud.cn/0", "LongLinks.1": "http://ucloud.cn/1" + */ @NotEmpty @UCloudParam("LongLinks") private List longLinks; - - /** 开始生效时间戳(秒级), 传 3376656000 表示生成永久生效短链接 */ + + + + /** + * 开始生效时间戳(秒级), 传 3376656000 表示生成永久生效短链接 + */ @NotEmpty @UCloudParam("StartTime") private Integer startTime; - - /** 过期时间戳(秒级),传 3376656000 表示生成永久生效短链接 */ + + + + /** + * 过期时间戳(秒级),传 3376656000 表示生成永久生效短链接 + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 协议名称:http/https */ + + + + /** + * 协议名称:http/https + */ @NotEmpty @UCloudParam("Proto") private String proto; - - /** 短链接域名 */ + + + + /** + * 短链接域名 + */ @NotEmpty @UCloudParam("ShortLinkDomain") private String shortLinkDomain; - + + public Integer getScenarioID() { return scenarioID; } @@ -58,7 +87,7 @@ public Integer getScenarioID() { public void setScenarioID(Integer scenarioID) { this.scenarioID = scenarioID; } - + public List getLongLinks() { return longLinks; } @@ -66,7 +95,7 @@ public List getLongLinks() { public void setLongLinks(List longLinks) { this.longLinks = longLinks; } - + public Integer getStartTime() { return startTime; } @@ -74,7 +103,7 @@ public Integer getStartTime() { public void setStartTime(Integer startTime) { this.startTime = startTime; } - + public Integer getEndTime() { return endTime; } @@ -82,7 +111,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public String getProto() { return proto; } @@ -90,7 +119,7 @@ public String getProto() { public void setProto(String proto) { this.proto = proto; } - + public String getShortLinkDomain() { return shortLinkDomain; } @@ -98,4 +127,14 @@ public String getShortLinkDomain() { public void setShortLinkDomain(String shortLinkDomain) { this.shortLinkDomain = shortLinkDomain; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/BatchCreateUSLKShortLinkResponse.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/BatchCreateUSLKShortLinkResponse.java index 3a7d30e0..77908ea9 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/BatchCreateUSLKShortLinkResponse.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/BatchCreateUSLKShortLinkResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uslk.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class BatchCreateUSLKShortLinkResponse extends Response { - /** 创建成功的短链接,根据传LongLinks顺序排列 */ + + + /** + * 创建成功的短链接,根据传LongLinks顺序排列 + */ @SerializedName("ShortLinks") private List shortLinks; - + + public List getShortLinks() { return shortLinks; } @@ -32,4 +41,14 @@ public List getShortLinks() { public void setShortLinks(List shortLinks) { this.shortLinks = shortLinks; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKLongLinkRequest.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKLongLinkRequest.java index 0e83d0f2..88ae4bf7 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKLongLinkRequest.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKLongLinkRequest.java @@ -1,35 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uslk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUSLKLongLinkRequest extends Request { - /** 场景ID */ + + + /** + * 场景ID + */ @NotEmpty @UCloudParam("ScenarioID") private Integer scenarioID; - - /** 要报备的长链接 */ + + + + /** + * 要报备的长链接 + */ @NotEmpty @UCloudParam("LongLink") private String longLink; - + + public Integer getScenarioID() { return scenarioID; } @@ -37,7 +51,7 @@ public Integer getScenarioID() { public void setScenarioID(Integer scenarioID) { this.scenarioID = scenarioID; } - + public String getLongLink() { return longLink; } @@ -45,4 +59,14 @@ public String getLongLink() { public void setLongLink(String longLink) { this.longLink = longLink; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKLongLinkResponse.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKLongLinkResponse.java index c3583d3d..7e0bf16e 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKLongLinkResponse.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKLongLinkResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uslk.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUSLKLongLinkResponse extends Response { - /** ReqUuid */ + + + /** + * ReqUuid + */ @SerializedName("ReqUuid") private String reqUuid; - - /** 长链接ID */ + + + + /** + * 长链接ID + */ @SerializedName("LongLinkID") private Integer longLinkID; - + + public String getReqUuid() { return reqUuid; } @@ -35,7 +49,7 @@ public String getReqUuid() { public void setReqUuid(String reqUuid) { this.reqUuid = reqUuid; } - + public Integer getLongLinkID() { return longLinkID; } @@ -43,4 +57,14 @@ public Integer getLongLinkID() { public void setLongLinkID(Integer longLinkID) { this.longLinkID = longLinkID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKScenarioRequest.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKScenarioRequest.java index 5b31de71..2a5a1554 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKScenarioRequest.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKScenarioRequest.java @@ -1,35 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uslk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUSLKScenarioRequest extends Request { - /** 场景名称 */ + + + /** + * 场景名称 + */ @NotEmpty @UCloudParam("Scenario") private String scenario; - - /** 场景说明 */ + + + + /** + * 场景说明 + */ @NotEmpty @UCloudParam("ScenarioDesc") private String scenarioDesc; - + + public String getScenario() { return scenario; } @@ -37,7 +51,7 @@ public String getScenario() { public void setScenario(String scenario) { this.scenario = scenario; } - + public String getScenarioDesc() { return scenarioDesc; } @@ -45,4 +59,14 @@ public String getScenarioDesc() { public void setScenarioDesc(String scenarioDesc) { this.scenarioDesc = scenarioDesc; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKScenarioResponse.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKScenarioResponse.java index 205fc319..ed16d514 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKScenarioResponse.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKScenarioResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uslk.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUSLKScenarioResponse extends Response { - /** ReqUuid */ + + + /** + * ReqUuid + */ @SerializedName("ReqUuid") private String reqUuid; - - /** 场景ID */ + + + + /** + * 场景ID + */ @SerializedName("ScenarioID") private Integer scenarioID; - + + public String getReqUuid() { return reqUuid; } @@ -35,7 +49,7 @@ public String getReqUuid() { public void setReqUuid(String reqUuid) { this.reqUuid = reqUuid; } - + public Integer getScenarioID() { return scenarioID; } @@ -43,4 +57,14 @@ public Integer getScenarioID() { public void setScenarioID(Integer scenarioID) { this.scenarioID = scenarioID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKShortLinkRequest.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKShortLinkRequest.java index cdaa2264..b5006a45 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKShortLinkRequest.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKShortLinkRequest.java @@ -1,54 +1,84 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uslk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUSLKShortLinkRequest extends Request { - /** 长链接ID,状态必须为审核通过 */ + + + /** + * 长链接ID,状态必须为审核通过 + */ @NotEmpty @UCloudParam("LongLinkID") private Integer longLinkID; - - /** 开始生效时间戳, 传 3376656000 表示生成永久生效短链接 */ + + + + /** + * 开始生效时间戳, 传 3376656000 表示生成永久生效短链接 + */ @NotEmpty @UCloudParam("StartTime") private Integer startTime; - - /** 过期时间戳,传 3376656000 表示生成永久生效短链接 */ + + + + /** + * 过期时间戳,传 3376656000 表示生成永久生效短链接 + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 链接类型-预留:普通跳转、随机跳转,当前默认普通跳转 1: 普通跳转 */ + + + + /** + * 链接类型-预留:普通跳转、随机跳转,当前默认普通跳转 1: 普通跳转 + */ @NotEmpty @UCloudParam("Type") private Integer type; - - /** 协议名称:http/https */ + + + + /** + * 协议名称:http/https + */ @NotEmpty @UCloudParam("Proto") private String proto; - - /** 短链接域名,默认:uslk.net */ + + + + /** + * 短链接域名,默认:uslk.net + */ @UCloudParam("ShortLinkDomain") private String shortLinkDomain; - + + public Integer getLongLinkID() { return longLinkID; } @@ -56,7 +86,7 @@ public Integer getLongLinkID() { public void setLongLinkID(Integer longLinkID) { this.longLinkID = longLinkID; } - + public Integer getStartTime() { return startTime; } @@ -64,7 +94,7 @@ public Integer getStartTime() { public void setStartTime(Integer startTime) { this.startTime = startTime; } - + public Integer getEndTime() { return endTime; } @@ -72,7 +102,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public Integer getType() { return type; } @@ -80,7 +110,7 @@ public Integer getType() { public void setType(Integer type) { this.type = type; } - + public String getProto() { return proto; } @@ -88,7 +118,7 @@ public String getProto() { public void setProto(String proto) { this.proto = proto; } - + public String getShortLinkDomain() { return shortLinkDomain; } @@ -96,4 +126,14 @@ public String getShortLinkDomain() { public void setShortLinkDomain(String shortLinkDomain) { this.shortLinkDomain = shortLinkDomain; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKShortLinkResponse.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKShortLinkResponse.java index ee41eced..2e9df174 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKShortLinkResponse.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/CreateUSLKShortLinkResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uslk.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUSLKShortLinkResponse extends Response { - /** 生成的短链接内容 */ + + + /** + * 生成的短链接内容 + */ @SerializedName("ShortLink") private String shortLink; - + + public String getShortLink() { return shortLink; } @@ -31,4 +41,14 @@ public String getShortLink() { public void setShortLink(String shortLink) { this.shortLink = shortLink; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKRedirectRecordsRequest.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKRedirectRecordsRequest.java index bbfb82b3..3a98eca7 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKRedirectRecordsRequest.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKRedirectRecordsRequest.java @@ -1,60 +1,100 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uslk.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeUSLKRedirectRecordsRequest extends Request { - /** 查询周期开始时间戳(ms级别) */ + + + /** + * 查询周期开始时间戳(ms级别) + */ @NotEmpty @UCloudParam("StartTime") private Integer startTime; - - /** 查询周期结束时间戳(ms级别) */ + + + + /** + * 查询周期结束时间戳(ms级别) + */ @NotEmpty @UCloudParam("EndTime") private Integer endTime; - - /** 短链接 */ + + + + /** + * 短链接 + */ @NotEmpty @UCloudParam("ShortLink") private String shortLink; - - /** 页码,从0开始,用于分页查找 */ + + + + /** + * 页码,从0开始,用于分页查找 + */ @UCloudParam("Page") private Integer page; - - /** 每页个数,用于分页查找,默认20 */ + + + + /** + * 每页个数,用于分页查找,默认20 + */ @UCloudParam("NumPerPage") private Integer numPerPage; - - /** 根据指定字段排序:默认按短链接访问时间:CreateTime 排序 */ + + + + /** + * 根据指定字段排序:默认按短链接访问时间:CreateTime 排序 + */ @UCloudParam("OrderBy") private String orderBy; + + + + /** + * 排序方式。asc-正序 desc-倒序 - /** 排序方式。asc-正序 desc-倒序 */ + */ @UCloudParam("OrderType") private String orderType; + + + + /** + * 模糊查询字段值,支持根据生成短链接进行模糊查询。支持字段(ShortLink,场景名称) - /** 模糊查询字段值,支持根据生成短链接进行模糊查询。支持字段(ShortLink,场景名称) */ + */ @UCloudParam("FuzzySearch") private String fuzzySearch; - + + public Integer getStartTime() { return startTime; } @@ -62,7 +102,7 @@ public Integer getStartTime() { public void setStartTime(Integer startTime) { this.startTime = startTime; } - + public Integer getEndTime() { return endTime; } @@ -70,7 +110,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public String getShortLink() { return shortLink; } @@ -78,7 +118,7 @@ public String getShortLink() { public void setShortLink(String shortLink) { this.shortLink = shortLink; } - + public Integer getPage() { return page; } @@ -86,7 +126,7 @@ public Integer getPage() { public void setPage(Integer page) { this.page = page; } - + public Integer getNumPerPage() { return numPerPage; } @@ -94,7 +134,7 @@ public Integer getNumPerPage() { public void setNumPerPage(Integer numPerPage) { this.numPerPage = numPerPage; } - + public String getOrderBy() { return orderBy; } @@ -102,7 +142,7 @@ public String getOrderBy() { public void setOrderBy(String orderBy) { this.orderBy = orderBy; } - + public String getOrderType() { return orderType; } @@ -110,7 +150,7 @@ public String getOrderType() { public void setOrderType(String orderType) { this.orderType = orderType; } - + public String getFuzzySearch() { return fuzzySearch; } @@ -118,4 +158,14 @@ public String getFuzzySearch() { public void setFuzzySearch(String fuzzySearch) { this.fuzzySearch = fuzzySearch; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKRedirectRecordsResponse.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKRedirectRecordsResponse.java index d50fc7e0..2e9b9314 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKRedirectRecordsResponse.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKRedirectRecordsResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uslk.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUSLKRedirectRecordsResponse extends Response { - /** 长链接列表 */ + + + /** + * 长链接列表 + */ @SerializedName("Data") private List data; - - /** 数据总量 */ + + + + /** + * 数据总量 + */ @SerializedName("Total") private Integer total; - + + public List getData() { return data; } @@ -36,7 +49,7 @@ public List getData() { public void setData(List data) { this.data = data; } - + public Integer getTotal() { return total; } @@ -44,139 +57,193 @@ public Integer getTotal() { public void setTotal(Integer total) { this.total = total; } + + public static class RedirectRecords extends Response { + + + /** + * 报备场景 + */ + @SerializedName("Scenario") + private String scenario; + + + + /** + * 短链接 + */ + @SerializedName("ShortLink") + private String shortLink; + + + + /** + * 短链接域名 + */ + @SerializedName("ShortLinkDomain") + private String shortLinkDomain; + + + + /** + * 访问时间戳(ms) + */ + @SerializedName("RequestTime") + private Integer requestTime; + + + + /** + * 重定向时间戳 (ms) + */ + @SerializedName("RedirectTime") + private Integer redirectTime; + + + + /** + * 账户ID + */ + @SerializedName("AccountID") + private Integer accountID; + + + + /** + * 场景ID + */ + @SerializedName("ScenarioID") + private Integer scenarioID; + + + + /** + * 访问IP + */ + @SerializedName("ClientIP") + private String clientIP; + + + + /** + * 访问设备 + */ + @SerializedName("Browser") + private String browser; + + + + /** + * 访问操作系统 + */ + @SerializedName("Os") + private String os; + + + + /** + * 访问省份信息 + */ + @SerializedName("ProvinceCode") + private String provinceCode; + + + public String getScenario() { + return scenario; + } - public static class RedirectRecords extends Response { - - /** 报备场景 */ - @SerializedName("Scenario") - private String scenario; - - /** 短链接 */ - @SerializedName("ShortLink") - private String shortLink; - - /** 短链接域名 */ - @SerializedName("ShortLinkDomain") - private String shortLinkDomain; - - /** 访问时间戳(ms) */ - @SerializedName("RequestTime") - private Integer requestTime; - - /** 重定向时间戳 (ms) */ - @SerializedName("RedirectTime") - private Integer redirectTime; - - /** 账户ID */ - @SerializedName("AccountID") - private Integer accountID; - - /** 场景ID */ - @SerializedName("ScenarioID") - private Integer scenarioID; - - /** 访问IP */ - @SerializedName("ClientIP") - private String clientIP; - - /** 访问设备 */ - @SerializedName("Browser") - private String browser; - - /** 访问操作系统 */ - @SerializedName("Os") - private String os; - - /** 访问省份信息 */ - @SerializedName("ProvinceCode") - private String provinceCode; - - public String getScenario() { - return scenario; - } - - public void setScenario(String scenario) { - this.scenario = scenario; - } - - public String getShortLink() { - return shortLink; - } + public void setScenario(String scenario) { + this.scenario = scenario; + } + + public String getShortLink() { + return shortLink; + } - public void setShortLink(String shortLink) { - this.shortLink = shortLink; - } + public void setShortLink(String shortLink) { + this.shortLink = shortLink; + } + + public String getShortLinkDomain() { + return shortLinkDomain; + } - public String getShortLinkDomain() { - return shortLinkDomain; - } + public void setShortLinkDomain(String shortLinkDomain) { + this.shortLinkDomain = shortLinkDomain; + } + + public Integer getRequestTime() { + return requestTime; + } - public void setShortLinkDomain(String shortLinkDomain) { - this.shortLinkDomain = shortLinkDomain; - } + public void setRequestTime(Integer requestTime) { + this.requestTime = requestTime; + } + + public Integer getRedirectTime() { + return redirectTime; + } - public Integer getRequestTime() { - return requestTime; - } + public void setRedirectTime(Integer redirectTime) { + this.redirectTime = redirectTime; + } + + public Integer getAccountID() { + return accountID; + } - public void setRequestTime(Integer requestTime) { - this.requestTime = requestTime; - } + public void setAccountID(Integer accountID) { + this.accountID = accountID; + } + + public Integer getScenarioID() { + return scenarioID; + } - public Integer getRedirectTime() { - return redirectTime; - } + public void setScenarioID(Integer scenarioID) { + this.scenarioID = scenarioID; + } + + public String getClientIP() { + return clientIP; + } - public void setRedirectTime(Integer redirectTime) { - this.redirectTime = redirectTime; - } + public void setClientIP(String clientIP) { + this.clientIP = clientIP; + } + + public String getBrowser() { + return browser; + } - public Integer getAccountID() { - return accountID; - } + public void setBrowser(String browser) { + this.browser = browser; + } + + public String getOs() { + return os; + } - public void setAccountID(Integer accountID) { - this.accountID = accountID; - } + public void setOs(String os) { + this.os = os; + } + + public String getProvinceCode() { + return provinceCode; + } - public Integer getScenarioID() { - return scenarioID; + public void setProvinceCode(String provinceCode) { + this.provinceCode = provinceCode; + } + } +} - public void setScenarioID(Integer scenarioID) { - this.scenarioID = scenarioID; - } - public String getClientIP() { - return clientIP; - } - public void setClientIP(String clientIP) { - this.clientIP = clientIP; - } - public String getBrowser() { - return browser; - } - public void setBrowser(String browser) { - this.browser = browser; - } - public String getOs() { - return os; - } - public void setOs(String os) { - this.os = os; - } - public String getProvinceCode() { - return provinceCode; - } - public void setProvinceCode(String provinceCode) { - this.provinceCode = provinceCode; - } - } -} diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKShortLinkListRequest.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKShortLinkListRequest.java index 2a92b77f..cb319499 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKShortLinkListRequest.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKShortLinkListRequest.java @@ -1,68 +1,121 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uslk.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class DescribeUSLKShortLinkListRequest extends Request { - /** 页码,从0开始,用于分页查找 */ + + + /** + * 页码,从0开始,用于分页查找 + */ @UCloudParam("Page") private Integer page; - - /** 1: 待生效;2:已生效;3:已失效;4:已删除(预留);5:已封禁 */ + + + + /** + * 1: 待生效;2:已生效;3:已失效;4:已删除(预留);5:已封禁 + */ @UCloudParam("Status") private Integer status; - - /** 每页个数,用于分页查找,默认20 */ + + + + /** + * 每页个数,用于分页查找,默认20 + */ @UCloudParam("NumPerPage") private Integer numPerPage; - - /** 根据指定字段排序:默认按创建时间:CreateTime 排序,支持值:CreateTime,StartTime,EndTime */ + + + + /** + * 根据指定字段排序:默认按创建时间:CreateTime 排序,支持值:CreateTime,StartTime,EndTime + */ @UCloudParam("OrderBy") private String orderBy; + + + + /** + * 排序方式。asc-正序 desc-倒序 - /** 排序方式。asc-正序 desc-倒序 */ + */ @UCloudParam("OrderType") private String orderType; + + + + /** + * 模糊查询字段值,支持根据生成短链接进行模糊查询。支持字段(LonkLink,场景名称) - /** 模糊查询字段值,支持根据生成短链接进行模糊查询。支持字段(LonkLink,场景名称) */ + */ @UCloudParam("FuzzySearch") private String fuzzySearch; - - /** 查询周期开始时间戳 */ + + + + /** + * 查询周期开始时间戳 + */ @UCloudParam("StartTime") private Integer startTime; - - /** 查询周期结束时间戳 */ + + + + /** + * 查询周期结束时间戳 + */ @UCloudParam("EndTime") private Integer endTime; - - /** 短链 */ + + + + /** + * 短链 + */ @UCloudParam("ShortLink") private String shortLink; - - /** 场景ID */ + + + + /** + * 场景ID + */ @UCloudParam("ScenarioID") private Integer scenarioID; - - /** 长链接ID */ + + + + /** + * 长链接ID + */ @UCloudParam("LongLinkID") private Integer longLinkID; - + + public Integer getPage() { return page; } @@ -70,7 +123,7 @@ public Integer getPage() { public void setPage(Integer page) { this.page = page; } - + public Integer getStatus() { return status; } @@ -78,7 +131,7 @@ public Integer getStatus() { public void setStatus(Integer status) { this.status = status; } - + public Integer getNumPerPage() { return numPerPage; } @@ -86,7 +139,7 @@ public Integer getNumPerPage() { public void setNumPerPage(Integer numPerPage) { this.numPerPage = numPerPage; } - + public String getOrderBy() { return orderBy; } @@ -94,7 +147,7 @@ public String getOrderBy() { public void setOrderBy(String orderBy) { this.orderBy = orderBy; } - + public String getOrderType() { return orderType; } @@ -102,7 +155,7 @@ public String getOrderType() { public void setOrderType(String orderType) { this.orderType = orderType; } - + public String getFuzzySearch() { return fuzzySearch; } @@ -110,7 +163,7 @@ public String getFuzzySearch() { public void setFuzzySearch(String fuzzySearch) { this.fuzzySearch = fuzzySearch; } - + public Integer getStartTime() { return startTime; } @@ -118,7 +171,7 @@ public Integer getStartTime() { public void setStartTime(Integer startTime) { this.startTime = startTime; } - + public Integer getEndTime() { return endTime; } @@ -126,7 +179,7 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } - + public String getShortLink() { return shortLink; } @@ -134,7 +187,7 @@ public String getShortLink() { public void setShortLink(String shortLink) { this.shortLink = shortLink; } - + public Integer getScenarioID() { return scenarioID; } @@ -142,7 +195,7 @@ public Integer getScenarioID() { public void setScenarioID(Integer scenarioID) { this.scenarioID = scenarioID; } - + public Integer getLongLinkID() { return longLinkID; } @@ -150,4 +203,14 @@ public Integer getLongLinkID() { public void setLongLinkID(Integer longLinkID) { this.longLinkID = longLinkID; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKShortLinkListResponse.java b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKShortLinkListResponse.java index 27ec41cb..517e9087 100644 --- a/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKShortLinkListResponse.java +++ b/ucloud-sdk-java-uslk/src/main/java/cn/ucloud/uslk/models/DescribeUSLKShortLinkListResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uslk.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeUSLKShortLinkListResponse extends Response { - /** 短链接列表 */ + + + /** + * 短链接列表 + */ @SerializedName("Data") private List data; - + + public List getData() { return data; } @@ -32,358 +41,484 @@ public List getData() { public void setData(List data) { this.data = data; } - - public static class SecondaryLinkForQuery extends Response { - - /** 长链接ID */ - @SerializedName("LongLinkID") - private Integer longLinkID; - - /** 长短链接映射ID */ - @SerializedName("ShortLongMapID") - private Integer shortLongMapID; - - /** 长链接 */ - @SerializedName("LongLink") - private String longLink; - - /** 场景ID */ - @SerializedName("ScenarioID") - private Integer scenarioID; - - /** 场景名称 */ - @SerializedName("Scenario") - private String scenario; - - /** 是否是次链接 */ - @SerializedName("IsSecondary") - private Boolean isSecondary; - - /** 省份codes,例如: Hebei,Shandong,多个以逗号分隔 */ - @SerializedName("ProvinceCodes") - private String provinceCodes; - - /** 操作系统,例如: Windows,Android,多个以逗号分隔 */ - @SerializedName("Oses") - private String oses; - - public Integer getLongLinkID() { - return longLinkID; - } - - public void setLongLinkID(Integer longLinkID) { - this.longLinkID = longLinkID; - } - - public Integer getShortLongMapID() { - return shortLongMapID; - } - - public void setShortLongMapID(Integer shortLongMapID) { - this.shortLongMapID = shortLongMapID; - } - - public String getLongLink() { - return longLink; - } - - public void setLongLink(String longLink) { - this.longLink = longLink; - } - - public Integer getScenarioID() { - return scenarioID; - } - - public void setScenarioID(Integer scenarioID) { - this.scenarioID = scenarioID; - } - - public String getScenario() { - return scenario; - } - - public void setScenario(String scenario) { - this.scenario = scenario; - } - - public Boolean getIsSecondary() { - return isSecondary; - } - - public void setIsSecondary(Boolean isSecondary) { - this.isSecondary = isSecondary; - } - - public String getProvinceCodes() { - return provinceCodes; - } - - public void setProvinceCodes(String provinceCodes) { - this.provinceCodes = provinceCodes; - } - - public String getOses() { - return oses; - } - - public void setOses(String oses) { - this.oses = oses; - } + + public static class SecondaryLinkForQuery extends Response { + + + /** + * 长链接ID + */ + @SerializedName("LongLinkID") + private Integer longLinkID; + + + + /** + * 长短链接映射ID + */ + @SerializedName("ShortLongMapID") + private Integer shortLongMapID; + + + + /** + * 长链接 + */ + @SerializedName("LongLink") + private String longLink; + + + + /** + * 场景ID + */ + @SerializedName("ScenarioID") + private Integer scenarioID; + + + + /** + * 场景名称 + */ + @SerializedName("Scenario") + private String scenario; + + + + /** + * 是否是次链接 + */ + @SerializedName("IsSecondary") + private Boolean isSecondary; + + + + /** + * 省份codes,例如: Hebei,Shandong,多个以逗号分隔 + */ + @SerializedName("ProvinceCodes") + private String provinceCodes; + + + + /** + * 操作系统,例如: Windows,Android,多个以逗号分隔 + */ + @SerializedName("Oses") + private String oses; + + + public Integer getLongLinkID() { + return longLinkID; } - public static class ShortLink extends Response { - - /** 报备场景 */ - @SerializedName("Scenario") - private String scenario; - - /** 短链接 */ - @SerializedName("ShortLink") - private String shortLink; - - /** 短链接域名 */ - @SerializedName("ShortLinkDomain") - private String shortLinkDomain; - - /** 短链接开始生效时间戳 */ - @SerializedName("StartTime") - private Integer startTime; - - /** 短链接过期时间戳 */ - @SerializedName("EndTime") - private Integer endTime; - - /** 关联长链接列表 */ - @SerializedName("LongLinks") - private List longLinks; - - /** 短链接创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 短链接ID */ - @SerializedName("ID") - private Integer id; - - /** 场景ID */ - @SerializedName("ScenarioID") - private Integer scenarioID; - - /** 场景描述 */ - @SerializedName("ScenarioDesc") - private String scenarioDesc; - - /** 更新时间戳 */ - @SerializedName("UpdateTime") - private Integer updateTime; - - /** 删除时间戳 */ - @SerializedName("DeleteTime") - private Integer deleteTime; - - /** 链接类型-预留:1:普通跳转 3:智能跳转等 */ - @SerializedName("Type") - private Integer type; - - /** 短链接状态:1: 待生效;2:已生效;3:已失效;4:已删除(预留);5:已封禁 */ - @SerializedName("Status") - private Integer status; - - /** 操作人 */ - @SerializedName("Operator") - private String operator; - - /** 操作说明(封禁原因) */ - @SerializedName("Remark") - private String remark; - - /** 累计访问量 */ - @SerializedName("ClickCount") - private Integer clickCount; - - /** 当日访问量 */ - @SerializedName("ClickCountToday") - private Integer clickCountToday; - - /** 累计独立访问量 */ - @SerializedName("UniqueClickCount") - private Integer uniqueClickCount; - - /** 今日独立访问量 */ - @SerializedName("UniqueClickCountToday") - private Integer uniqueClickCountToday; - - /** 次链接,智能跳转类型才有 */ - @SerializedName("SecondaryLinks") - private List secondaryLinks; - - public String getScenario() { - return scenario; - } - - public void setScenario(String scenario) { - this.scenario = scenario; - } - - public String getShortLink() { - return shortLink; - } - - public void setShortLink(String shortLink) { - this.shortLink = shortLink; - } - - public String getShortLinkDomain() { - return shortLinkDomain; - } + public void setLongLinkID(Integer longLinkID) { + this.longLinkID = longLinkID; + } + + public Integer getShortLongMapID() { + return shortLongMapID; + } - public void setShortLinkDomain(String shortLinkDomain) { - this.shortLinkDomain = shortLinkDomain; - } + public void setShortLongMapID(Integer shortLongMapID) { + this.shortLongMapID = shortLongMapID; + } + + public String getLongLink() { + return longLink; + } - public Integer getStartTime() { - return startTime; - } + public void setLongLink(String longLink) { + this.longLink = longLink; + } + + public Integer getScenarioID() { + return scenarioID; + } - public void setStartTime(Integer startTime) { - this.startTime = startTime; - } + public void setScenarioID(Integer scenarioID) { + this.scenarioID = scenarioID; + } + + public String getScenario() { + return scenario; + } - public Integer getEndTime() { - return endTime; - } + public void setScenario(String scenario) { + this.scenario = scenario; + } + + public Boolean getIsSecondary() { + return isSecondary; + } - public void setEndTime(Integer endTime) { - this.endTime = endTime; - } + public void setIsSecondary(Boolean isSecondary) { + this.isSecondary = isSecondary; + } + + public String getProvinceCodes() { + return provinceCodes; + } - public List getLongLinks() { - return longLinks; - } + public void setProvinceCodes(String provinceCodes) { + this.provinceCodes = provinceCodes; + } + + public String getOses() { + return oses; + } - public void setLongLinks(List longLinks) { - this.longLinks = longLinks; - } + public void setOses(String oses) { + this.oses = oses; + } + + } + public static class ShortLink extends Response { + + + /** + * 报备场景 + */ + @SerializedName("Scenario") + private String scenario; + + + + /** + * 短链接 + */ + @SerializedName("ShortLink") + private String shortLink; + + + + /** + * 短链接域名 + */ + @SerializedName("ShortLinkDomain") + private String shortLinkDomain; + + + + /** + * 短链接开始生效时间戳 + */ + @SerializedName("StartTime") + private Integer startTime; + + + + /** + * 短链接过期时间戳 + */ + @SerializedName("EndTime") + private Integer endTime; + + + + /** + * 关联长链接列表 + */ + @SerializedName("LongLinks") + private List longLinks; + + + + /** + * 短链接创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 短链接ID + */ + @SerializedName("ID") + private Integer id; + + + + /** + * 场景ID + */ + @SerializedName("ScenarioID") + private Integer scenarioID; + + + + /** + * 场景描述 + */ + @SerializedName("ScenarioDesc") + private String scenarioDesc; + + + + /** + * 更新时间戳 + */ + @SerializedName("UpdateTime") + private Integer updateTime; + + + + /** + * 删除时间戳 + */ + @SerializedName("DeleteTime") + private Integer deleteTime; + + + + /** + * 链接类型-预留:1:普通跳转 3:智能跳转等 + */ + @SerializedName("Type") + private Integer type; + + + + /** + * 短链接状态:1: 待生效;2:已生效;3:已失效;4:已删除(预留);5:已封禁 + */ + @SerializedName("Status") + private Integer status; + + + + /** + * 操作人 + */ + @SerializedName("Operator") + private String operator; + + + + /** + * 操作说明(封禁原因) + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 累计访问量 + */ + @SerializedName("ClickCount") + private Integer clickCount; + + + + /** + * 当日访问量 + */ + @SerializedName("ClickCountToday") + private Integer clickCountToday; + + + + /** + * 累计独立访问量 + */ + @SerializedName("UniqueClickCount") + private Integer uniqueClickCount; + + + + /** + * 今日独立访问量 + */ + @SerializedName("UniqueClickCountToday") + private Integer uniqueClickCountToday; + + + + /** + * 次链接,智能跳转类型才有 + */ + @SerializedName("SecondaryLinks") + private List secondaryLinks; + + + public String getScenario() { + return scenario; + } - public Integer getCreateTime() { - return createTime; - } + public void setScenario(String scenario) { + this.scenario = scenario; + } + + public String getShortLink() { + return shortLink; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setShortLink(String shortLink) { + this.shortLink = shortLink; + } + + public String getShortLinkDomain() { + return shortLinkDomain; + } - public Integer getID() { - return id; - } + public void setShortLinkDomain(String shortLinkDomain) { + this.shortLinkDomain = shortLinkDomain; + } + + public Integer getStartTime() { + return startTime; + } - public void setID(Integer id) { - this.id = id; - } + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } - public Integer getScenarioID() { - return scenarioID; - } + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public List getLongLinks() { + return longLinks; + } - public void setScenarioID(Integer scenarioID) { - this.scenarioID = scenarioID; - } + public void setLongLinks(List longLinks) { + this.longLinks = longLinks; + } + + public Integer getCreateTime() { + return createTime; + } - public String getScenarioDesc() { - return scenarioDesc; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getID() { + return id; + } - public void setScenarioDesc(String scenarioDesc) { - this.scenarioDesc = scenarioDesc; - } + public void setID(Integer id) { + this.id = id; + } + + public Integer getScenarioID() { + return scenarioID; + } - public Integer getUpdateTime() { - return updateTime; - } + public void setScenarioID(Integer scenarioID) { + this.scenarioID = scenarioID; + } + + public String getScenarioDesc() { + return scenarioDesc; + } - public void setUpdateTime(Integer updateTime) { - this.updateTime = updateTime; - } + public void setScenarioDesc(String scenarioDesc) { + this.scenarioDesc = scenarioDesc; + } + + public Integer getUpdateTime() { + return updateTime; + } - public Integer getDeleteTime() { - return deleteTime; - } + public void setUpdateTime(Integer updateTime) { + this.updateTime = updateTime; + } + + public Integer getDeleteTime() { + return deleteTime; + } - public void setDeleteTime(Integer deleteTime) { - this.deleteTime = deleteTime; - } + public void setDeleteTime(Integer deleteTime) { + this.deleteTime = deleteTime; + } + + public Integer getType() { + return type; + } - public Integer getType() { - return type; - } + public void setType(Integer type) { + this.type = type; + } + + public Integer getStatus() { + return status; + } - public void setType(Integer type) { - this.type = type; - } + public void setStatus(Integer status) { + this.status = status; + } + + public String getOperator() { + return operator; + } - public Integer getStatus() { - return status; - } + public void setOperator(String operator) { + this.operator = operator; + } + + public String getRemark() { + return remark; + } - public void setStatus(Integer status) { - this.status = status; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getClickCount() { + return clickCount; + } - public String getOperator() { - return operator; - } + public void setClickCount(Integer clickCount) { + this.clickCount = clickCount; + } + + public Integer getClickCountToday() { + return clickCountToday; + } - public void setOperator(String operator) { - this.operator = operator; - } + public void setClickCountToday(Integer clickCountToday) { + this.clickCountToday = clickCountToday; + } + + public Integer getUniqueClickCount() { + return uniqueClickCount; + } - public String getRemark() { - return remark; - } + public void setUniqueClickCount(Integer uniqueClickCount) { + this.uniqueClickCount = uniqueClickCount; + } + + public Integer getUniqueClickCountToday() { + return uniqueClickCountToday; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setUniqueClickCountToday(Integer uniqueClickCountToday) { + this.uniqueClickCountToday = uniqueClickCountToday; + } + + public List getSecondaryLinks() { + return secondaryLinks; + } - public Integer getClickCount() { - return clickCount; + public void setSecondaryLinks(List secondaryLinks) { + this.secondaryLinks = secondaryLinks; + } + } +} - public void setClickCount(Integer clickCount) { - this.clickCount = clickCount; - } - public Integer getClickCountToday() { - return clickCountToday; - } - public void setClickCountToday(Integer clickCountToday) { - this.clickCountToday = clickCountToday; - } - public Integer getUniqueClickCount() { - return uniqueClickCount; - } - public void setUniqueClickCount(Integer uniqueClickCount) { - this.uniqueClickCount = uniqueClickCount; - } - public Integer getUniqueClickCountToday() { - return uniqueClickCountToday; - } - public void setUniqueClickCountToday(Integer uniqueClickCountToday) { - this.uniqueClickCountToday = uniqueClickCountToday; - } - public List getSecondaryLinks() { - return secondaryLinks; - } - public void setSecondaryLinks(List secondaryLinks) { - this.secondaryLinks = secondaryLinks; - } - } -} diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 515e711d..19071b32 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-usms - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClient.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClient.java index 6f53dace..79ea21c1 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClient.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.usms.client; @@ -17,168 +19,243 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.usms.models.CreateUSMSSignatureRequest; import cn.ucloud.usms.models.CreateUSMSSignatureResponse; + + + import cn.ucloud.usms.models.CreateUSMSTemplateRequest; import cn.ucloud.usms.models.CreateUSMSTemplateResponse; + + + import cn.ucloud.usms.models.DeleteUSMSSignatureRequest; import cn.ucloud.usms.models.DeleteUSMSSignatureResponse; + + + import cn.ucloud.usms.models.DeleteUSMSTemplateRequest; import cn.ucloud.usms.models.DeleteUSMSTemplateResponse; + + + import cn.ucloud.usms.models.GetUSMSSendReceiptRequest; import cn.ucloud.usms.models.GetUSMSSendReceiptResponse; + + + import cn.ucloud.usms.models.QueryUSMSSignatureRequest; import cn.ucloud.usms.models.QueryUSMSSignatureResponse; + + + import cn.ucloud.usms.models.QueryUSMSTemplateRequest; import cn.ucloud.usms.models.QueryUSMSTemplateResponse; + + + import cn.ucloud.usms.models.SendBatchUSMSMessageRequest; import cn.ucloud.usms.models.SendBatchUSMSMessageResponse; + + + import cn.ucloud.usms.models.SendUSMSMessageRequest; import cn.ucloud.usms.models.SendUSMSMessageResponse; + + + import cn.ucloud.usms.models.UpdateUSMSSignatureRequest; import cn.ucloud.usms.models.UpdateUSMSSignatureResponse; + + + import cn.ucloud.usms.models.UpdateUSMSTemplateRequest; import cn.ucloud.usms.models.UpdateUSMSTemplateResponse; -/** This client is used to call actions of **USMS** service */ +/** + * This client is used to call actions of **USMS** service + */ public class USMSClient extends DefaultClient implements USMSClientInterface { public USMSClient(Config config, Credential credential) { super(config, credential); } - - /** - * CreateUSMSSignature - 申请短信签名 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUSMSSignatureResponse createUSMSSignature(CreateUSMSSignatureRequest request) - throws UCloudException { - request.setAction("CreateUSMSSignature"); - return (CreateUSMSSignatureResponse) - this.invoke(request, CreateUSMSSignatureResponse.class); - } - - /** - * CreateUSMSTemplate - 申请短信模板 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateUSMSTemplateResponse createUSMSTemplate(CreateUSMSTemplateRequest request) - throws UCloudException { - request.setAction("CreateUSMSTemplate"); - return (CreateUSMSTemplateResponse) this.invoke(request, CreateUSMSTemplateResponse.class); - } - - /** - * DeleteUSMSSignature - 删除短信签名 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUSMSSignatureResponse deleteUSMSSignature(DeleteUSMSSignatureRequest request) - throws UCloudException { - request.setAction("DeleteUSMSSignature"); - return (DeleteUSMSSignatureResponse) - this.invoke(request, DeleteUSMSSignatureResponse.class); - } - - /** - * DeleteUSMSTemplate - 删除短信模板 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteUSMSTemplateResponse deleteUSMSTemplate(DeleteUSMSTemplateRequest request) - throws UCloudException { - request.setAction("DeleteUSMSTemplate"); - return (DeleteUSMSTemplateResponse) this.invoke(request, DeleteUSMSTemplateResponse.class); - } - - /** - * GetUSMSSendReceipt - 获取短信发送状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetUSMSSendReceiptResponse getUSMSSendReceipt(GetUSMSSendReceiptRequest request) - throws UCloudException { - request.setAction("GetUSMSSendReceipt"); - return (GetUSMSSendReceiptResponse) this.invoke(request, GetUSMSSendReceiptResponse.class); - } - - /** - * QueryUSMSSignature - 查询短信签名申请状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public QueryUSMSSignatureResponse queryUSMSSignature(QueryUSMSSignatureRequest request) - throws UCloudException { - request.setAction("QueryUSMSSignature"); - return (QueryUSMSSignatureResponse) this.invoke(request, QueryUSMSSignatureResponse.class); - } - - /** - * QueryUSMSTemplate - 查询短信模板申请状态 - * - * @param request Request object - * @throws UCloudException Exception - */ - public QueryUSMSTemplateResponse queryUSMSTemplate(QueryUSMSTemplateRequest request) - throws UCloudException { - request.setAction("QueryUSMSTemplate"); - return (QueryUSMSTemplateResponse) this.invoke(request, QueryUSMSTemplateResponse.class); - } - - /** - * SendBatchUSMSMessage - 批量发送短信 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SendBatchUSMSMessageResponse sendBatchUSMSMessage(SendBatchUSMSMessageRequest request) - throws UCloudException { - request.setAction("SendBatchUSMSMessage"); - return (SendBatchUSMSMessageResponse) - this.invoke(request, SendBatchUSMSMessageResponse.class); - } - - /** - * SendUSMSMessage - 发送短信 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SendUSMSMessageResponse sendUSMSMessage(SendUSMSMessageRequest request) - throws UCloudException { - request.setAction("SendUSMSMessage"); - return (SendUSMSMessageResponse) this.invoke(request, SendUSMSMessageResponse.class); - } - - /** - * UpdateUSMSSignature - 修改短信签名 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUSMSSignatureResponse updateUSMSSignature(UpdateUSMSSignatureRequest request) - throws UCloudException { - request.setAction("UpdateUSMSSignature"); - return (UpdateUSMSSignatureResponse) - this.invoke(request, UpdateUSMSSignatureResponse.class); - } - - /** - * UpdateUSMSTemplate - 修改短信模板 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateUSMSTemplateResponse updateUSMSTemplate(UpdateUSMSTemplateRequest request) - throws UCloudException { - request.setAction("UpdateUSMSTemplate"); - return (UpdateUSMSTemplateResponse) this.invoke(request, UpdateUSMSTemplateResponse.class); - } + + + + + + + /** + * CreateUSMSSignature - 申请短信签名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUSMSSignatureResponse createUSMSSignature(CreateUSMSSignatureRequest request) throws UCloudException { + request.setAction("CreateUSMSSignature"); + return (CreateUSMSSignatureResponse) this.invoke(request, CreateUSMSSignatureResponse.class); + } + + + + + + + /** + * CreateUSMSTemplate - 申请短信模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUSMSTemplateResponse createUSMSTemplate(CreateUSMSTemplateRequest request) throws UCloudException { + request.setAction("CreateUSMSTemplate"); + return (CreateUSMSTemplateResponse) this.invoke(request, CreateUSMSTemplateResponse.class); + } + + + + + + + /** + * DeleteUSMSSignature - 删除短信签名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUSMSSignatureResponse deleteUSMSSignature(DeleteUSMSSignatureRequest request) throws UCloudException { + request.setAction("DeleteUSMSSignature"); + return (DeleteUSMSSignatureResponse) this.invoke(request, DeleteUSMSSignatureResponse.class); + } + + + + + + + /** + * DeleteUSMSTemplate - 删除短信模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUSMSTemplateResponse deleteUSMSTemplate(DeleteUSMSTemplateRequest request) throws UCloudException { + request.setAction("DeleteUSMSTemplate"); + return (DeleteUSMSTemplateResponse) this.invoke(request, DeleteUSMSTemplateResponse.class); + } + + + + + + + /** + * GetUSMSSendReceipt - 获取短信发送状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUSMSSendReceiptResponse getUSMSSendReceipt(GetUSMSSendReceiptRequest request) throws UCloudException { + request.setAction("GetUSMSSendReceipt"); + return (GetUSMSSendReceiptResponse) this.invoke(request, GetUSMSSendReceiptResponse.class); + } + + + + + + + /** + * QueryUSMSSignature - 查询短信签名申请状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryUSMSSignatureResponse queryUSMSSignature(QueryUSMSSignatureRequest request) throws UCloudException { + request.setAction("QueryUSMSSignature"); + return (QueryUSMSSignatureResponse) this.invoke(request, QueryUSMSSignatureResponse.class); + } + + + + + + + /** + * QueryUSMSTemplate - 查询短信模板申请状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryUSMSTemplateResponse queryUSMSTemplate(QueryUSMSTemplateRequest request) throws UCloudException { + request.setAction("QueryUSMSTemplate"); + return (QueryUSMSTemplateResponse) this.invoke(request, QueryUSMSTemplateResponse.class); + } + + + + + + + /** + * SendBatchUSMSMessage - 批量发送短信 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SendBatchUSMSMessageResponse sendBatchUSMSMessage(SendBatchUSMSMessageRequest request) throws UCloudException { + request.setAction("SendBatchUSMSMessage"); + return (SendBatchUSMSMessageResponse) this.invoke(request, SendBatchUSMSMessageResponse.class); + } + + + + + + + /** + * SendUSMSMessage - 发送短信 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SendUSMSMessageResponse sendUSMSMessage(SendUSMSMessageRequest request) throws UCloudException { + request.setAction("SendUSMSMessage"); + return (SendUSMSMessageResponse) this.invoke(request, SendUSMSMessageResponse.class); + } + + + + + + + /** + * UpdateUSMSSignature - 修改短信签名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUSMSSignatureResponse updateUSMSSignature(UpdateUSMSSignatureRequest request) throws UCloudException { + request.setAction("UpdateUSMSSignature"); + return (UpdateUSMSSignatureResponse) this.invoke(request, UpdateUSMSSignatureResponse.class); + } + + + + + + + /** + * UpdateUSMSTemplate - 修改短信模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUSMSTemplateResponse updateUSMSTemplate(UpdateUSMSTemplateRequest request) throws UCloudException { + request.setAction("UpdateUSMSTemplate"); + return (UpdateUSMSTemplateResponse) this.invoke(request, UpdateUSMSTemplateResponse.class); + } } diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClientInterface.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClientInterface.java index ca5d96d1..4639adc4 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClientInterface.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClientInterface.java @@ -1,142 +1,223 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.usms.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.usms.models.CreateUSMSSignatureRequest; import cn.ucloud.usms.models.CreateUSMSSignatureResponse; + + + import cn.ucloud.usms.models.CreateUSMSTemplateRequest; import cn.ucloud.usms.models.CreateUSMSTemplateResponse; + + + import cn.ucloud.usms.models.DeleteUSMSSignatureRequest; import cn.ucloud.usms.models.DeleteUSMSSignatureResponse; + + + import cn.ucloud.usms.models.DeleteUSMSTemplateRequest; import cn.ucloud.usms.models.DeleteUSMSTemplateResponse; + + + import cn.ucloud.usms.models.GetUSMSSendReceiptRequest; import cn.ucloud.usms.models.GetUSMSSendReceiptResponse; + + + import cn.ucloud.usms.models.QueryUSMSSignatureRequest; import cn.ucloud.usms.models.QueryUSMSSignatureResponse; + + + import cn.ucloud.usms.models.QueryUSMSTemplateRequest; import cn.ucloud.usms.models.QueryUSMSTemplateResponse; + + + import cn.ucloud.usms.models.SendBatchUSMSMessageRequest; import cn.ucloud.usms.models.SendBatchUSMSMessageResponse; + + + import cn.ucloud.usms.models.SendUSMSMessageRequest; import cn.ucloud.usms.models.SendUSMSMessageResponse; + + + import cn.ucloud.usms.models.UpdateUSMSSignatureRequest; import cn.ucloud.usms.models.UpdateUSMSSignatureResponse; + + + import cn.ucloud.usms.models.UpdateUSMSTemplateRequest; import cn.ucloud.usms.models.UpdateUSMSTemplateResponse; -/** This client is used to call actions of **USMS** service */ +/** + * This client is used to call actions of **USMS** service + */ public interface USMSClientInterface extends Client { - + + + + + + /** * CreateUSMSSignature - 申请短信签名 * * @param request Request object * @throws UCloudException Exception */ - public CreateUSMSSignatureResponse createUSMSSignature(CreateUSMSSignatureRequest request) - throws UCloudException; - + public CreateUSMSSignatureResponse createUSMSSignature(CreateUSMSSignatureRequest request) throws UCloudException; + + + + + + /** * CreateUSMSTemplate - 申请短信模板 * * @param request Request object * @throws UCloudException Exception */ - public CreateUSMSTemplateResponse createUSMSTemplate(CreateUSMSTemplateRequest request) - throws UCloudException; - + public CreateUSMSTemplateResponse createUSMSTemplate(CreateUSMSTemplateRequest request) throws UCloudException; + + + + + + /** * DeleteUSMSSignature - 删除短信签名 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUSMSSignatureResponse deleteUSMSSignature(DeleteUSMSSignatureRequest request) - throws UCloudException; - + public DeleteUSMSSignatureResponse deleteUSMSSignature(DeleteUSMSSignatureRequest request) throws UCloudException; + + + + + + /** * DeleteUSMSTemplate - 删除短信模板 * * @param request Request object * @throws UCloudException Exception */ - public DeleteUSMSTemplateResponse deleteUSMSTemplate(DeleteUSMSTemplateRequest request) - throws UCloudException; - + public DeleteUSMSTemplateResponse deleteUSMSTemplate(DeleteUSMSTemplateRequest request) throws UCloudException; + + + + + + /** * GetUSMSSendReceipt - 获取短信发送状态 * * @param request Request object * @throws UCloudException Exception */ - public GetUSMSSendReceiptResponse getUSMSSendReceipt(GetUSMSSendReceiptRequest request) - throws UCloudException; - + public GetUSMSSendReceiptResponse getUSMSSendReceipt(GetUSMSSendReceiptRequest request) throws UCloudException; + + + + + + /** * QueryUSMSSignature - 查询短信签名申请状态 * * @param request Request object * @throws UCloudException Exception */ - public QueryUSMSSignatureResponse queryUSMSSignature(QueryUSMSSignatureRequest request) - throws UCloudException; - + public QueryUSMSSignatureResponse queryUSMSSignature(QueryUSMSSignatureRequest request) throws UCloudException; + + + + + + /** * QueryUSMSTemplate - 查询短信模板申请状态 * * @param request Request object * @throws UCloudException Exception */ - public QueryUSMSTemplateResponse queryUSMSTemplate(QueryUSMSTemplateRequest request) - throws UCloudException; - + public QueryUSMSTemplateResponse queryUSMSTemplate(QueryUSMSTemplateRequest request) throws UCloudException; + + + + + + /** * SendBatchUSMSMessage - 批量发送短信 * * @param request Request object * @throws UCloudException Exception */ - public SendBatchUSMSMessageResponse sendBatchUSMSMessage(SendBatchUSMSMessageRequest request) - throws UCloudException; - + public SendBatchUSMSMessageResponse sendBatchUSMSMessage(SendBatchUSMSMessageRequest request) throws UCloudException; + + + + + + /** * SendUSMSMessage - 发送短信 * * @param request Request object * @throws UCloudException Exception */ - public SendUSMSMessageResponse sendUSMSMessage(SendUSMSMessageRequest request) - throws UCloudException; - + public SendUSMSMessageResponse sendUSMSMessage(SendUSMSMessageRequest request) throws UCloudException; + + + + + + /** * UpdateUSMSSignature - 修改短信签名 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUSMSSignatureResponse updateUSMSSignature(UpdateUSMSSignatureRequest request) - throws UCloudException; - + public UpdateUSMSSignatureResponse updateUSMSSignature(UpdateUSMSSignatureRequest request) throws UCloudException; + + + + + + /** * UpdateUSMSTemplate - 修改短信模板 * * @param request Request object * @throws UCloudException Exception */ - public UpdateUSMSTemplateResponse updateUSMSTemplate(UpdateUSMSTemplateRequest request) - throws UCloudException; + public UpdateUSMSTemplateResponse updateUSMSTemplate(UpdateUSMSTemplateRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSSignatureRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSSignatureRequest.java index e5b80955..8222a427 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSSignatureRequest.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSSignatureRequest.java @@ -1,78 +1,110 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUSMSSignatureRequest extends Request { + + /** - * 项目ID,不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID,不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 签名内容 */ + + + + /** + * 签名内容 + */ @NotEmpty @UCloudParam("SigContent") private String sigContent; - + + + /** * 签名类型,说明如下:0-公司或企业的全称或简称;1-App应用的全称或简称;2-工信部备案网站的全称或简称;3-公众号或小程序的全称或简称;4-商标名的全称或简称;5-政府/机关事业单位/其他单位的全称或简称; */ @NotEmpty @UCloudParam("SigType") private Integer sigType; - - /** 签名用途,0-自用,1-他用; */ + + + + /** + * 签名用途,0-自用,1-他用; + */ @NotEmpty @UCloudParam("SigPurpose") private Integer sigPurpose; - + + + /** * 签名的资质证明文件类型,需与签名类型保持一致,说明如下:0-三证合一/企业营业执照/组织机构代码证书/社会信用代码证书;1-应用商店后台开发者管理截图;2-备案服务商的备案成功截图(含域名,网站名称,备案号);3-公众号或小程序的管理界面截图;4-商标注册证书;5-组织机构代码证书、社会信用代码证书; */ @NotEmpty @UCloudParam("CertificateType") private Integer certificateType; - - /** 短信签名申请原因 */ + + + + /** + * 短信签名申请原因 + */ @NotEmpty @UCloudParam("Description") private String description; - - /** 短信签名的资质证明文件,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 MB */ + + + + /** + * 短信签名的资质证明文件,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 MB + */ @NotEmpty @UCloudParam("File") private String file; - - /** 国内/国际短信。true:国际短信,false:国内短信,若不传值则默认该值为false */ + + + + /** + * 国内/国际短信。true:国际短信,false:国内短信,若不传值则默认该值为false + */ @UCloudParam("International") private Boolean international; - + + + /** - * 短信签名授权委托文件,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 - * MB;当您是代理并使用第三方的签名时(也即SigPurpose为1-他用),该项为必填项; + * 短信签名授权委托文件,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 MB;当您是代理并使用第三方的签名时(也即SigPurpose为1-他用),该项为必填项; */ @UCloudParam("ProxyFile") private String proxyFile; - + + public String getProjectId() { return projectId; } @@ -80,7 +112,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSigContent() { return sigContent; } @@ -88,7 +120,7 @@ public String getSigContent() { public void setSigContent(String sigContent) { this.sigContent = sigContent; } - + public Integer getSigType() { return sigType; } @@ -96,7 +128,7 @@ public Integer getSigType() { public void setSigType(Integer sigType) { this.sigType = sigType; } - + public Integer getSigPurpose() { return sigPurpose; } @@ -104,7 +136,7 @@ public Integer getSigPurpose() { public void setSigPurpose(Integer sigPurpose) { this.sigPurpose = sigPurpose; } - + public Integer getCertificateType() { return certificateType; } @@ -112,7 +144,7 @@ public Integer getCertificateType() { public void setCertificateType(Integer certificateType) { this.certificateType = certificateType; } - + public String getDescription() { return description; } @@ -120,7 +152,7 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } - + public String getFile() { return file; } @@ -128,7 +160,7 @@ public String getFile() { public void setFile(String file) { this.file = file; } - + public Boolean getInternational() { return international; } @@ -136,7 +168,7 @@ public Boolean getInternational() { public void setInternational(Boolean international) { this.international = international; } - + public String getProxyFile() { return proxyFile; } @@ -144,4 +176,14 @@ public String getProxyFile() { public void setProxyFile(String proxyFile) { this.proxyFile = proxyFile; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSSignatureResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSSignatureResponse.java index 6f8759ef..05fed480 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSSignatureResponse.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSSignatureResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUSMSSignatureResponse extends Response { - /** 短信签名ID(短信签名申请时的工单ID) */ + + + /** + * 短信签名ID(短信签名申请时的工单ID) + */ @SerializedName("SigId") private String sigId; - + + public String getSigId() { return sigId; } @@ -31,4 +41,14 @@ public String getSigId() { public void setSigId(String sigId) { this.sigId = sigId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSTemplateRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSTemplateRequest.java index c55b865c..35c33b20 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSTemplateRequest.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSTemplateRequest.java @@ -1,68 +1,105 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateUSMSTemplateRequest extends Request { + + + + + + /** - * 项目ID,不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID,不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 短信模板用途类型:1-验证码类短信模板;2-系统通知类短信模板;3-会员推广类短信模板; */ + + + + /** + * 短信模板用途类型:1-验证码类短信模板;2-系统通知类短信模板;3-会员推广类短信模板; + */ @NotEmpty @UCloudParam("Purpose") private Integer purpose; - - /** 短信模板名称,不超过32个字符,每个中文、符号、英文、数字等都计为1个字。 */ + + + + /** + * 短信模板名称,不超过32个字符,每个中文、符号、英文、数字等都计为1个字。 + */ @NotEmpty @UCloudParam("TemplateName") private String templateName; - + + + /** * 短信模板内容,说明如下:字数不超过500,每个中文、符号、英文、数组等都计为一个字;模板中的变量填写格式:{N},其中N为大于1的整数,有多个参数时,建议N从1开始顺次,例如:{1}、{2}等;短信模板禁止仅包括变量的情况; */ @NotEmpty @UCloudParam("Template") private String template; - - /** 标记是否为国际短信。true:国际短信,false:国内短信,若不传值则默认该值为false */ + + + + /** + * 标记是否为国际短信。true:国际短信,false:国内短信,若不传值则默认该值为false + */ @UCloudParam("International") private Boolean international; - - /** 短信模板申请原因说明,字数不超过128,每个中文、符号、英文、数字等都计为1个字。 */ + + + + /** + * 短信模板申请原因说明,字数不超过128,每个中文、符号、英文、数字等都计为1个字。 + */ @UCloudParam("Remark") private String remark; - + + + /** * 当Purpose为3时,也即会员推广类短信模板,该项必填。枚举值:TD退订、回T退订、回N退订、回TD退订、退订回T、退订回D、退订回TD、退订回复T、退订回复D、退订回复N、退订回复TD、拒收回T */ @UCloudParam("UnsubscribeInfo") private String unsubscribeInfo; - - /** 模板变量属性说明 */ + + + + /** + * 模板变量属性说明 + */ @UCloudParam("Instruction") private String instruction; - + + + + public String getProjectId() { return projectId; } @@ -70,7 +107,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getPurpose() { return purpose; } @@ -78,7 +115,7 @@ public Integer getPurpose() { public void setPurpose(Integer purpose) { this.purpose = purpose; } - + public String getTemplateName() { return templateName; } @@ -86,7 +123,7 @@ public String getTemplateName() { public void setTemplateName(String templateName) { this.templateName = templateName; } - + public String getTemplate() { return template; } @@ -94,7 +131,7 @@ public String getTemplate() { public void setTemplate(String template) { this.template = template; } - + public Boolean getInternational() { return international; } @@ -102,7 +139,7 @@ public Boolean getInternational() { public void setInternational(Boolean international) { this.international = international; } - + public String getRemark() { return remark; } @@ -110,7 +147,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public String getUnsubscribeInfo() { return unsubscribeInfo; } @@ -118,7 +155,7 @@ public String getUnsubscribeInfo() { public void setUnsubscribeInfo(String unsubscribeInfo) { this.unsubscribeInfo = unsubscribeInfo; } - + public String getInstruction() { return instruction; } @@ -126,4 +163,14 @@ public String getInstruction() { public void setInstruction(String instruction) { this.instruction = instruction; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSTemplateResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSTemplateResponse.java index 9d0d2e8b..80517243 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSTemplateResponse.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSTemplateResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateUSMSTemplateResponse extends Response { - /** 短信模板ID(短信模板申请时的工单ID) */ + + + /** + * 短信模板ID(短信模板申请时的工单ID) + */ @SerializedName("TemplateId") private String templateId; - + + public String getTemplateId() { return templateId; } @@ -31,4 +41,14 @@ public String getTemplateId() { public void setTemplateId(String templateId) { this.templateId = templateId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSSignatureRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSSignatureRequest.java index c4b4c1ce..54174b07 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSSignatureRequest.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSSignatureRequest.java @@ -1,36 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DeleteUSMSSignatureRequest extends Request { - /** 项目ID,不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID,不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 签名ID(也即短信签名申请时的工单ID),支持以数组的方式,举例,以SigIds.0、SigIds.1...SigIds.N方式传入 */ + + + + /** + * 签名ID(也即短信签名申请时的工单ID),支持以数组的方式,举例,以SigIds.0、SigIds.1...SigIds.N方式传入 + */ @NotEmpty @UCloudParam("SigIds") private List sigIds; - + + public String getProjectId() { return projectId; } @@ -38,7 +51,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getSigIds() { return sigIds; } @@ -46,4 +59,14 @@ public List getSigIds() { public void setSigIds(List sigIds) { this.sigIds = sigIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSSignatureResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSSignatureResponse.java index cd22bd13..58e732f1 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSSignatureResponse.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSSignatureResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUSMSSignatureResponse extends Response {} +public class DeleteUSMSSignatureResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSTemplateRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSTemplateRequest.java index d9b35509..ad3bc6a3 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSTemplateRequest.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSTemplateRequest.java @@ -1,36 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DeleteUSMSTemplateRequest extends Request { - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 模板ID(也即短信模板申请时的工单ID),支持以数组的方式,举例,以TemplateIds.0、TemplateIds.1...TemplateIds.N方式传入 */ + + + + /** + * 模板ID(也即短信模板申请时的工单ID),支持以数组的方式,举例,以TemplateIds.0、TemplateIds.1...TemplateIds.N方式传入 + */ @NotEmpty @UCloudParam("TemplateIds") private List templateIds; - + + + + public String getProjectId() { return projectId; } @@ -38,7 +57,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getTemplateIds() { return templateIds; } @@ -46,4 +65,14 @@ public List getTemplateIds() { public void setTemplateIds(List templateIds) { this.templateIds = templateIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSTemplateResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSTemplateResponse.java index 62fbe543..0e31e657 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSTemplateResponse.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/DeleteUSMSTemplateResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteUSMSTemplateResponse extends Response {} +public class DeleteUSMSTemplateResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendReceiptRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendReceiptRequest.java index 0b63c390..82b3bb02 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendReceiptRequest.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendReceiptRequest.java @@ -1,46 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetUSMSSendReceiptRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 发送短信时返回的SessionNo集合,SessionNoSet.0,SessionNoSet.1....格式,单次调用集合数需控制在100个以内 */ + + + + /** + * 发送短信时返回的SessionNo集合,SessionNoSet.0,SessionNoSet.1....格式,单次调用集合数需控制在100个以内 + */ @NotEmpty @UCloudParam("SessionNoSet") private List sessionNoSet; - + + public String getRegion() { return region; } @@ -48,7 +66,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -56,7 +74,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -64,7 +82,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getSessionNoSet() { return sessionNoSet; } @@ -72,4 +90,14 @@ public List getSessionNoSet() { public void setSessionNoSet(List sessionNoSet) { this.sessionNoSet = sessionNoSet; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendReceiptResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendReceiptResponse.java index 9310942d..5899b55c 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendReceiptResponse.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendReceiptResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetUSMSSendReceiptResponse extends Response { - /** 回执信息集合 */ + + + /** + * 回执信息集合 + */ @SerializedName("Data") private List data; - + + public List getData() { return data; } @@ -32,121 +41,164 @@ public List getData() { public void setData(List data) { this.data = data; } + + public static class ReceiptPerPhone extends Response { + + + /** + * 手机号码 + */ + @SerializedName("Phone") + private String phone; + + + + /** + * 消耗短信条数 + */ + @SerializedName("CostCount") + private Integer costCount; + + + + /** + * 回执结果,枚举值:\\ > 发送成功: 代表成功 \\ > Success: 代表成功 \\ > 发送失败: 代表失败 \\ > Fail: 代表失败 \\ > 状态未知: 代表未知 \\ > Unknow: 代表未知 + */ + @SerializedName("ReceiptResult") + private String receiptResult; + + + + /** + * 状态报告编码 + */ + @SerializedName("ReceiptCode") + private String receiptCode; + + + + /** + * 回执结果描述 + */ + @SerializedName("ReceiptDesc") + private String receiptDesc; + + + + /** + * 回执返回时间 + */ + @SerializedName("ReceiptTime") + private Integer receiptTime; + + + + /** + * 自定义的业务标识ID,字符串 + */ + @SerializedName("UserId") + private String userId; + + + public String getPhone() { + return phone; + } - public static class ReceiptPerPhone extends Response { - - /** 手机号码 */ - @SerializedName("Phone") - private String phone; - - /** 消耗短信条数 */ - @SerializedName("CostCount") - private Integer costCount; - - /** - * 回执结果,枚举值:\\ > 发送成功: 代表成功 \\ > Success: 代表成功 \\ > 发送失败: 代表失败 \\ > Fail: 代表失败 \\ > 状态未知: - * 代表未知 \\ > Unknow: 代表未知 - */ - @SerializedName("ReceiptResult") - private String receiptResult; - - /** 状态报告编码 */ - @SerializedName("ReceiptCode") - private String receiptCode; - - /** 回执结果描述 */ - @SerializedName("ReceiptDesc") - private String receiptDesc; - - /** 回执返回时间 */ - @SerializedName("ReceiptTime") - private Integer receiptTime; - - /** 自定义的业务标识ID,字符串 */ - @SerializedName("UserId") - private String userId; - - public String getPhone() { - return phone; - } - - public void setPhone(String phone) { - this.phone = phone; - } - - public Integer getCostCount() { - return costCount; - } - - public void setCostCount(Integer costCount) { - this.costCount = costCount; - } + public void setPhone(String phone) { + this.phone = phone; + } + + public Integer getCostCount() { + return costCount; + } - public String getReceiptResult() { - return receiptResult; - } + public void setCostCount(Integer costCount) { + this.costCount = costCount; + } + + public String getReceiptResult() { + return receiptResult; + } - public void setReceiptResult(String receiptResult) { - this.receiptResult = receiptResult; - } + public void setReceiptResult(String receiptResult) { + this.receiptResult = receiptResult; + } + + public String getReceiptCode() { + return receiptCode; + } - public String getReceiptCode() { - return receiptCode; - } + public void setReceiptCode(String receiptCode) { + this.receiptCode = receiptCode; + } + + public String getReceiptDesc() { + return receiptDesc; + } - public void setReceiptCode(String receiptCode) { - this.receiptCode = receiptCode; - } + public void setReceiptDesc(String receiptDesc) { + this.receiptDesc = receiptDesc; + } + + public Integer getReceiptTime() { + return receiptTime; + } - public String getReceiptDesc() { - return receiptDesc; - } + public void setReceiptTime(Integer receiptTime) { + this.receiptTime = receiptTime; + } + + public String getUserId() { + return userId; + } - public void setReceiptDesc(String receiptDesc) { - this.receiptDesc = receiptDesc; - } + public void setUserId(String userId) { + this.userId = userId; + } + + } + public static class ReceiptPerSession extends Response { + + + /** + * 发送短信时返回的SessionNo + */ + @SerializedName("SessionNo") + private String sessionNo; + + + + /** + * 每个手机号的短信回执信息集合 + */ + @SerializedName("ReceiptSet") + private List receiptSet; + + + public String getSessionNo() { + return sessionNo; + } - public Integer getReceiptTime() { - return receiptTime; - } + public void setSessionNo(String sessionNo) { + this.sessionNo = sessionNo; + } + + public List getReceiptSet() { + return receiptSet; + } - public void setReceiptTime(Integer receiptTime) { - this.receiptTime = receiptTime; + public void setReceiptSet(List receiptSet) { + this.receiptSet = receiptSet; + } + } +} - public String getUserId() { - return userId; - } - public void setUserId(String userId) { - this.userId = userId; - } - } - public static class ReceiptPerSession extends Response { - /** 发送短信时返回的SessionNo */ - @SerializedName("SessionNo") - private String sessionNo; - /** 每个手机号的短信回执信息集合 */ - @SerializedName("ReceiptSet") - private List receiptSet; - public String getSessionNo() { - return sessionNo; - } - public void setSessionNo(String sessionNo) { - this.sessionNo = sessionNo; - } - public List getReceiptSet() { - return receiptSet; - } - public void setReceiptSet(List receiptSet) { - this.receiptSet = receiptSet; - } - } -} diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSSignatureRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSSignatureRequest.java index 3757d694..20f75e19 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSSignatureRequest.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSSignatureRequest.java @@ -1,36 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + -import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; public class QueryUSMSSignatureRequest extends Request { - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 已申请的短信签名ID(短信签名申请时的工单ID);签名ID和签名至少需填写1项; */ + + + + /** + * 已申请的短信签名ID(短信签名申请时的工单ID);签名ID和签名至少需填写1项; + */ @UCloudParam("SigId") private String sigId; - - /** 签名内容;签名ID和签名至少需填写1项; */ + + + + /** + * 签名内容;签名ID和签名至少需填写1项; + */ @UCloudParam("SigContent") private String sigContent; - + + public String getProjectId() { return projectId; } @@ -38,7 +57,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSigId() { return sigId; } @@ -46,7 +65,7 @@ public String getSigId() { public void setSigId(String sigId) { this.sigId = sigId; } - + public String getSigContent() { return sigContent; } @@ -54,4 +73,14 @@ public String getSigContent() { public void setSigContent(String sigContent) { this.sigContent = sigContent; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSSignatureResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSSignatureResponse.java index c0ac0b27..9f88959a 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSSignatureResponse.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSSignatureResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class QueryUSMSSignatureResponse extends Response { - /** 签名信息 */ + + + /** + * 签名信息 + */ @SerializedName("Data") private OutSignature data; - + + public OutSignature getData() { return data; } @@ -31,55 +41,81 @@ public OutSignature getData() { public void setData(OutSignature data) { this.data = data; } + + public static class OutSignature extends Response { + + + /** + * 签名ID + */ + @SerializedName("SigId") + private String sigId; + + + + /** + * 签名内容 + */ + @SerializedName("SigContent") + private String sigContent; + + + + /** + * 签名状态。0-待审核 1-审核中 2-审核通过 3-审核未通过 4-被禁用 + */ + @SerializedName("Status") + private Integer status; + + + + /** + * 签名审核失败原因 + */ + @SerializedName("ErrDesc") + private String errDesc; + + + public String getSigId() { + return sigId; + } - public static class OutSignature extends Response { + public void setSigId(String sigId) { + this.sigId = sigId; + } + + public String getSigContent() { + return sigContent; + } - /** 签名ID */ - @SerializedName("SigId") - private String sigId; + public void setSigContent(String sigContent) { + this.sigContent = sigContent; + } + + public Integer getStatus() { + return status; + } - /** 签名内容 */ - @SerializedName("SigContent") - private String sigContent; + public void setStatus(Integer status) { + this.status = status; + } + + public String getErrDesc() { + return errDesc; + } - /** 签名状态。0-待审核 1-审核中 2-审核通过 3-审核未通过 4-被禁用 */ - @SerializedName("Status") - private Integer status; + public void setErrDesc(String errDesc) { + this.errDesc = errDesc; + } + + } +} - /** 签名审核失败原因 */ - @SerializedName("ErrDesc") - private String errDesc; - public String getSigId() { - return sigId; - } - public void setSigId(String sigId) { - this.sigId = sigId; - } - public String getSigContent() { - return sigContent; - } - public void setSigContent(String sigContent) { - this.sigContent = sigContent; - } - public Integer getStatus() { - return status; - } - public void setStatus(Integer status) { - this.status = status; - } - public String getErrDesc() { - return errDesc; - } - public void setErrDesc(String errDesc) { - this.errDesc = errDesc; - } - } -} diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSTemplateRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSTemplateRequest.java index 378432cb..62f88e24 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSTemplateRequest.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSTemplateRequest.java @@ -1,38 +1,49 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class QueryUSMSTemplateRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 模板ID */ + + + + /** + * 模板ID + */ @NotEmpty @UCloudParam("TemplateId") private String templateId; - + + public String getProjectId() { return projectId; } @@ -40,7 +51,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getTemplateId() { return templateId; } @@ -48,4 +59,14 @@ public String getTemplateId() { public void setTemplateId(String templateId) { this.templateId = templateId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSTemplateResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSTemplateResponse.java index fca2e20c..18fe8436 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSTemplateResponse.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/QueryUSMSTemplateResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class QueryUSMSTemplateResponse extends Response { - /** 短信模板明细信息,各字段说明详见OutTemplate */ + + + /** + * 短信模板明细信息,各字段说明详见OutTemplate + */ @SerializedName("Data") private OutTemplate data; - + + public OutTemplate getData() { return data; } @@ -31,127 +41,177 @@ public OutTemplate getData() { public void setData(OutTemplate data) { this.data = data; } + + public static class OutTemplate extends Response { + + + /** + * 短信模板ID + */ + @SerializedName("TemplateId") + private String templateId; + + + + /** + * 模板类型,选项:1-验证码类 2-通知类 3-会员推广类 + */ + @SerializedName("Purpose") + private Integer purpose; + + + + /** + * 短信模板名称 + */ + @SerializedName("TemplateName") + private String templateName; + + + + /** + * 短信模板内容 + */ + @SerializedName("Template") + private String template; + + + + /** + * 退订信息;一般填写方式“回T退订”,当purpose为3(也即会员推广类)时,为必填项 + */ + @SerializedName("UnsubscribeInfo") + private String unsubscribeInfo; + + + + /** + * 短信模板状态;状态说明:0-待审核,1-审核中,2-审核通过,3-审核未通过,4-被禁用 + */ + @SerializedName("Status") + private Integer status; + + + + /** + * 模板说明 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 审核失败原因 + */ + @SerializedName("ErrDesc") + private String errDesc; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 模板变量属性说明 + */ + @SerializedName("Instruction") + private String instruction; + + + public String getTemplateId() { + return templateId; + } - public static class OutTemplate extends Response { - - /** 短信模板ID */ - @SerializedName("TemplateId") - private String templateId; - - /** 模板类型,选项:1-验证码类 2-通知类 3-会员推广类 */ - @SerializedName("Purpose") - private Integer purpose; - - /** 短信模板名称 */ - @SerializedName("TemplateName") - private String templateName; - - /** 短信模板内容 */ - @SerializedName("Template") - private String template; - - /** 退订信息;一般填写方式“回T退订”,当purpose为3(也即会员推广类)时,为必填项 */ - @SerializedName("UnsubscribeInfo") - private String unsubscribeInfo; - - /** 短信模板状态;状态说明:0-待审核,1-审核中,2-审核通过,3-审核未通过,4-被禁用 */ - @SerializedName("Status") - private Integer status; - - /** 模板说明 */ - @SerializedName("Remark") - private String remark; - - /** 审核失败原因 */ - @SerializedName("ErrDesc") - private String errDesc; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 模板变量属性说明 */ - @SerializedName("Instruction") - private String instruction; - - public String getTemplateId() { - return templateId; - } - - public void setTemplateId(String templateId) { - this.templateId = templateId; - } + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + public Integer getPurpose() { + return purpose; + } - public Integer getPurpose() { - return purpose; - } + public void setPurpose(Integer purpose) { + this.purpose = purpose; + } + + public String getTemplateName() { + return templateName; + } - public void setPurpose(Integer purpose) { - this.purpose = purpose; - } + public void setTemplateName(String templateName) { + this.templateName = templateName; + } + + public String getTemplate() { + return template; + } - public String getTemplateName() { - return templateName; - } + public void setTemplate(String template) { + this.template = template; + } + + public String getUnsubscribeInfo() { + return unsubscribeInfo; + } - public void setTemplateName(String templateName) { - this.templateName = templateName; - } + public void setUnsubscribeInfo(String unsubscribeInfo) { + this.unsubscribeInfo = unsubscribeInfo; + } + + public Integer getStatus() { + return status; + } - public String getTemplate() { - return template; - } + public void setStatus(Integer status) { + this.status = status; + } + + public String getRemark() { + return remark; + } - public void setTemplate(String template) { - this.template = template; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getErrDesc() { + return errDesc; + } - public String getUnsubscribeInfo() { - return unsubscribeInfo; - } + public void setErrDesc(String errDesc) { + this.errDesc = errDesc; + } + + public Integer getCreateTime() { + return createTime; + } - public void setUnsubscribeInfo(String unsubscribeInfo) { - this.unsubscribeInfo = unsubscribeInfo; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getInstruction() { + return instruction; + } - public Integer getStatus() { - return status; + public void setInstruction(String instruction) { + this.instruction = instruction; + } + } +} - public void setStatus(Integer status) { - this.status = status; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - public String getErrDesc() { - return errDesc; - } - public void setErrDesc(String errDesc) { - this.errDesc = errDesc; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public String getInstruction() { - return instruction; - } - public void setInstruction(String instruction) { - this.instruction = instruction; - } - } -} diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendBatchUSMSMessageRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendBatchUSMSMessageRequest.java index d8eb2cc3..0a8cb99b 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendBatchUSMSMessageRequest.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendBatchUSMSMessageRequest.java @@ -1,47 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class SendBatchUSMSMessageRequest extends Request { + + + + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - + + + /** - * 批量发送内容,该参数是json数组的base64编码结果。发送内容json数组中,每个“模板+签名”组合作为一个子项,每个子项内支持多个号码, 示例: - * 发送内容json数组(base64编码前):[{"TemplateId": "UTA20212831C85C", "SigContent": "UCloud", "Target": - * [{"TemplateParams": ["123456"], "Phone": "18500000123", "ExtendCode": "123", "UserId": "456"} - * ] } ] - * 。json数组中各参数的定义:"TemplateId":模板ID,"SigContent"短信签名内容,"Target"具体到号码粒度的发送内容。"Target"中的具体字段有:"TemplateParams"实际发送的模板参数(若使用的是无参数模板,该参数不能传值),"Phone"手机号码, - * "ExtendCode"短信扩展码, "UserId"自定义业务标识ID。其中必传参数为"TemplateId", "SigContent", - * "Target"("Target"中必传参数为"Phone")。 - * 实际调用本接口时TaskContent传值(发送内容base64编码后)为:W3siVGVtcGxhdGVJZCI6ICJVVEEyMDIxMjgzMUM4NUMiLCAiU2lnQ29udGVudCI6ICJVQ2xvdWQiLCAiVGFyZ2V0IjogW3siVGVtcGxhdGVQYXJhbXMiOiBbIjEyMzQ1NiJdLCAiUGhvbmUiOiAiMTg1MDAwMDAxMjMiLCAiRXh0ZW5kQ29kZSI6ICIxMjMiLCAiVXNlcklkIjogIjQ1NiJ9IF0gfSBdIA== + * 批量发送内容,该参数是json数组的base64编码结果。发送内容json数组中,每个“模板+签名”组合作为一个子项,每个子项内支持多个号码, +示例: +发送内容json数组(base64编码前):[{"TemplateId": "UTA20212831C85C", "SigContent": "UCloud", "Target": [{"TemplateParams": ["123456"], "Phone": "18500000123", "ExtendCode": "123", "UserId": "456"} ] } ] 。json数组中各参数的定义:"TemplateId":模板ID,"SigContent"短信签名内容,"Target"具体到号码粒度的发送内容。"Target"中的具体字段有:"TemplateParams"实际发送的模板参数(若使用的是无参数模板,该参数不能传值),"Phone"手机号码, "ExtendCode"短信扩展码, "UserId"自定义业务标识ID。其中必传参数为"TemplateId", "SigContent", "Target"("Target"中必传参数为"Phone")。 +实际调用本接口时TaskContent传值(发送内容base64编码后)为:W3siVGVtcGxhdGVJZCI6ICJVVEEyMDIxMjgzMUM4NUMiLCAiU2lnQ29udGVudCI6ICJVQ2xvdWQiLCAiVGFyZ2V0IjogW3siVGVtcGxhdGVQYXJhbXMiOiBbIjEyMzQ1NiJdLCAiUGhvbmUiOiAiMTg1MDAwMDAxMjMiLCAiRXh0ZW5kQ29kZSI6ICIxMjMiLCAiVXNlcklkIjogIjQ1NiJ9IF0gfSBdIA== */ @NotEmpty @UCloudParam("TaskContent") private String taskContent; - + + + + public String getProjectId() { return projectId; } @@ -49,7 +60,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getTaskContent() { return taskContent; } @@ -57,4 +68,14 @@ public String getTaskContent() { public void setTaskContent(String taskContent) { this.taskContent = taskContent; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendBatchUSMSMessageResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendBatchUSMSMessageResponse.java index 389057bf..6fe4302e 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendBatchUSMSMessageResponse.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendBatchUSMSMessageResponse.java @@ -1,42 +1,63 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class SendBatchUSMSMessageResponse extends Response { - /** 本次提交发送任务的唯一ID,可根据该值查询本次发送的短信列表。注:成功提交短信数大于0时,才返回该字段 */ + + + /** + * 本次提交发送任务的唯一ID,可根据该值查询本次发送的短信列表。注:成功提交短信数大于0时,才返回该字段 + */ @SerializedName("SessionNo") private String sessionNo; - - /** 本次请求Uuid */ + + + + /** + * 本次请求Uuid + */ @SerializedName("ReqUuid") private String reqUuid; - - /** 成功提交短信(未拆分)条数 */ + + + + /** + * 成功提交短信(未拆分)条数 + */ @SerializedName("SuccessCount") private Integer successCount; - - /** 未发送成功的详情,返回码非0时该字段有效,可根据该字段数据重发 */ + + + + /** + * 未发送成功的详情,返回码非0时该字段有效,可根据该字段数据重发 + */ @SerializedName("FailContent") private List failContent; - + + public String getSessionNo() { return sessionNo; } @@ -44,7 +65,7 @@ public String getSessionNo() { public void setSessionNo(String sessionNo) { this.sessionNo = sessionNo; } - + public String getReqUuid() { return reqUuid; } @@ -52,7 +73,7 @@ public String getReqUuid() { public void setReqUuid(String reqUuid) { this.reqUuid = reqUuid; } - + public Integer getSuccessCount() { return successCount; } @@ -60,7 +81,7 @@ public Integer getSuccessCount() { public void setSuccessCount(Integer successCount) { this.successCount = successCount; } - + public List getFailContent() { return failContent; } @@ -68,118 +89,164 @@ public List getFailContent() { public void setFailContent(List failContent) { this.failContent = failContent; } + + public static class BatchInfo extends Response { + + + /** + * 模板ID + */ + @SerializedName("TemplateId") + private String templateId; + + + + /** + * 签名 + */ + @SerializedName("SigContent") + private String sigContent; + + + + /** + * 具体号码信息 + */ + @SerializedName("Target") + private List target; + + + + /** + * 未能成功发送的详情。注:模板/签名检验失败时,该字段有效 + */ + @SerializedName("FailureDetails") + private String failureDetails; + + + public String getTemplateId() { + return templateId; + } - public static class BatchInfo extends Response { - - /** 模板ID */ - @SerializedName("TemplateId") - private String templateId; - - /** 签名 */ - @SerializedName("SigContent") - private String sigContent; - - /** 具体号码信息 */ - @SerializedName("Target") - private List target; - - /** 未能成功发送的详情。注:模板/签名检验失败时,该字段有效 */ - @SerializedName("FailureDetails") - private String failureDetails; - - public String getTemplateId() { - return templateId; - } - - public void setTemplateId(String templateId) { - this.templateId = templateId; - } - - public String getSigContent() { - return sigContent; - } - - public void setSigContent(String sigContent) { - this.sigContent = sigContent; - } - - public List getTarget() { - return target; - } - - public void setTarget(List target) { - this.target = target; - } - - public String getFailureDetails() { - return failureDetails; - } + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + public String getSigContent() { + return sigContent; + } - public void setFailureDetails(String failureDetails) { - this.failureDetails = failureDetails; - } + public void setSigContent(String sigContent) { + this.sigContent = sigContent; + } + + public List getTarget() { + return target; } - public static class FailPhoneDetail extends Response { + public void setTarget(List target) { + this.target = target; + } + + public String getFailureDetails() { + return failureDetails; + } - /** 模板参数 */ - @SerializedName("TemplateParams") - private List templateParams; + public void setFailureDetails(String failureDetails) { + this.failureDetails = failureDetails; + } + + } + public static class FailPhoneDetail extends Response { + + + /** + * 模板参数 + */ + @SerializedName("TemplateParams") + private List templateParams; + + + + /** + * 手机号 + */ + @SerializedName("Phone") + private String phone; + + + + /** + * 扩展号码 + */ + @SerializedName("ExtendCode") + private String extendCode; + + + + /** + * 用户自定义ID + */ + @SerializedName("UserId") + private String userId; + + + + /** + * 发送失败原因。注:若模板/签名校验失败,该字段为空 + */ + @SerializedName("FailureDetails") + private String failureDetails; + + + public List getTemplateParams() { + return templateParams; + } - /** 手机号 */ - @SerializedName("Phone") - private String phone; + public void setTemplateParams(List templateParams) { + this.templateParams = templateParams; + } + + public String getPhone() { + return phone; + } - /** 扩展号码 */ - @SerializedName("ExtendCode") - private String extendCode; + public void setPhone(String phone) { + this.phone = phone; + } + + public String getExtendCode() { + return extendCode; + } - /** 用户自定义ID */ - @SerializedName("UserId") - private String userId; + public void setExtendCode(String extendCode) { + this.extendCode = extendCode; + } + + public String getUserId() { + return userId; + } - /** 发送失败原因。注:若模板/签名校验失败,该字段为空 */ - @SerializedName("FailureDetails") - private String failureDetails; + public void setUserId(String userId) { + this.userId = userId; + } + + public String getFailureDetails() { + return failureDetails; + } - public List getTemplateParams() { - return templateParams; + public void setFailureDetails(String failureDetails) { + this.failureDetails = failureDetails; + } + } +} - public void setTemplateParams(List templateParams) { - this.templateParams = templateParams; - } - public String getPhone() { - return phone; - } - public void setPhone(String phone) { - this.phone = phone; - } - public String getExtendCode() { - return extendCode; - } - public void setExtendCode(String extendCode) { - this.extendCode = extendCode; - } - public String getUserId() { - return userId; - } - public void setUserId(String userId) { - this.userId = userId; - } - public String getFailureDetails() { - return failureDetails; - } - public void setFailureDetails(String failureDetails) { - this.failureDetails = failureDetails; - } - } -} diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendUSMSMessageRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendUSMSMessageRequest.java index 46c6f296..22ce8011 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendUSMSMessageRequest.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendUSMSMessageRequest.java @@ -1,67 +1,100 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class SendUSMSMessageRequest extends Request { + + + + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - + + + /** * 电话号码数组,电话号码格式为(60)1xxxxxxxx,()中为国际长途区号(如中国为86或0086,两种格式都支持),后面为电话号码.若不传入国际区号,如1851623xxxx,则默认为国内手机号 */ @NotEmpty @UCloudParam("PhoneNumbers") private List phoneNumbers; - + + + /** * 模板ID(也即短信模板申请时的工单ID),请到[USMS控制台](https://console.ucloud.cn/usms)的模板管理页面查看;使用的短信模板必须是已申请并通过审核; */ @NotEmpty @UCloudParam("TemplateId") private String templateId; - - /** 短信签名内容,请到[USMS控制台](https://console.ucloud.cn/usms)的签名管理页面查看;使用的短信签名必须是已申请并且通过审核; */ + + + + /** + * 短信签名内容,请到[USMS控制台](https://console.ucloud.cn/usms)的签名管理页面查看;使用的短信签名必须是已申请并且通过审核; + */ @UCloudParam("SigContent") private String sigContent; - + + + /** - * 模板可变参数,以数组的方式填写,举例,TemplateParams.0,TemplateParams.1,... - * 若模板中无可变参数,则该项可不填写;若模板中有可变参数,则该项为必填项,参数个数需与变量个数保持一致,否则无法发送; + * 模板可变参数,以数组的方式填写,举例,TemplateParams.0,TemplateParams.1,... 若模板中无可变参数,则该项可不填写;若模板中有可变参数,则该项为必填项,参数个数需与变量个数保持一致,否则无法发送; */ @UCloudParam("TemplateParams") private List templateParams; - - /** 短信扩展码,格式为阿拉伯数字串,默认不开通,如需开通请联系 UCloud技术支持 */ + + + + /** + * 短信扩展码,格式为阿拉伯数字串,默认不开通,如需开通请联系 UCloud技术支持 + */ @UCloudParam("ExtendCode") private String extendCode; - - /** 自定义的业务标识ID,字符串( 长度不能超过32 位),不支持 单引号、表情包符号等特殊字符 */ + + + + /** + * 自定义的业务标识ID,字符串( 长度不能超过32 位),不支持 单引号、表情包符号等特殊字符 + */ @UCloudParam("UserId") private String userId; - + + + + + + + + public String getProjectId() { return projectId; } @@ -69,7 +102,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getPhoneNumbers() { return phoneNumbers; } @@ -77,7 +110,7 @@ public List getPhoneNumbers() { public void setPhoneNumbers(List phoneNumbers) { this.phoneNumbers = phoneNumbers; } - + public String getTemplateId() { return templateId; } @@ -85,7 +118,7 @@ public String getTemplateId() { public void setTemplateId(String templateId) { this.templateId = templateId; } - + public String getSigContent() { return sigContent; } @@ -93,7 +126,7 @@ public String getSigContent() { public void setSigContent(String sigContent) { this.sigContent = sigContent; } - + public List getTemplateParams() { return templateParams; } @@ -101,7 +134,7 @@ public List getTemplateParams() { public void setTemplateParams(List templateParams) { this.templateParams = templateParams; } - + public String getExtendCode() { return extendCode; } @@ -109,7 +142,7 @@ public String getExtendCode() { public void setExtendCode(String extendCode) { this.extendCode = extendCode; } - + public String getUserId() { return userId; } @@ -117,4 +150,16 @@ public String getUserId() { public void setUserId(String userId) { this.userId = userId; } + + + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendUSMSMessageResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendUSMSMessageResponse.java index 846939a7..ca2b4b61 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendUSMSMessageResponse.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/SendUSMSMessageResponse.java @@ -1,33 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class SendUSMSMessageResponse extends Response { - /** 本次提交发送的短信的唯一ID,可根据该值查询本次发送的短信列表 */ + + + /** + * 本次提交发送的短信的唯一ID,可根据该值查询本次发送的短信列表 + */ @SerializedName("SessionNo") private String sessionNo; - - /** 本次提交的自定义业务标识ID,仅当发送时传入有效的UserId,才返回该字段。 */ + + + + /** + * 本次提交的自定义业务标识ID,仅当发送时传入有效的UserId,才返回该字段。 + */ @SerializedName("UserId") private String userId; - + + public String getSessionNo() { return sessionNo; } @@ -35,7 +49,7 @@ public String getSessionNo() { public void setSessionNo(String sessionNo) { this.sessionNo = sessionNo; } - + public String getUserId() { return userId; } @@ -43,4 +57,14 @@ public String getUserId() { public void setUserId(String userId) { this.userId = userId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSSignatureRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSSignatureRequest.java index a7ffb18b..e41cae36 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSSignatureRequest.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSSignatureRequest.java @@ -1,83 +1,116 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUSMSSignatureRequest extends Request { + + /** - * 项目ID,不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID,不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 签名ID(也即短信签名申请时的工单ID),支持以数组的方式,举例,以SigIds.0、SigIds.1...SigIds.N方式传入 */ + + + + /** + * 签名ID(也即短信签名申请时的工单ID),支持以数组的方式,举例,以SigIds.0、SigIds.1...SigIds.N方式传入 + */ @NotEmpty @UCloudParam("SigId") private String sigId; - - /** 新的短信签名内容;长度为2-12个字符, 可包含中文、数字和符号;无需填写【】或[],系统会自动添加 */ + + + + /** + * 新的短信签名内容;长度为2-12个字符, 可包含中文、数字和符号;无需填写【】或[],系统会自动添加 + */ @NotEmpty @UCloudParam("SigContent") private String sigContent; - + + + /** * 签名类型,说明如下:0-公司或企业的全称或简称;1-App应用的全称或简称;2-工信部备案网站的全称或简称;3-公众号或小程序的全称或简称;4-商标名的全称或简称;5-政府/机关事业单位/其他单位的全称或简称; */ @NotEmpty @UCloudParam("SigType") private Integer sigType; - - /** 签名用途,0-自用,1-他用; */ + + + + /** + * 签名用途,0-自用,1-他用; + */ @NotEmpty @UCloudParam("SigPurpose") private Integer sigPurpose; - + + + /** - * 短信签名的资质证明文件内容,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 MB。内容格式如下: [file type];[code - * type],[base64] 如:image/jpeg;base64,5YaF5a65 + * 短信签名的资质证明文件内容,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 MB。内容格式如下: [file type];[code type],[base64] 如:image/jpeg;base64,5YaF5a65 */ @UCloudParam("File") private String file; - + + + /** * 签名的资质证明文件类型,需与签名类型保持一致,说明如下:0-三证合一/企业营业执照/组织机构代码证书/社会信用代码证书;1-应用商店后台开发者管理截图;2-备案服务商的备案成功截图(含域名,网站名称,备案号);3-公众号或小程序的管理界面截图;4-商标注册证书;5-组织机构代码证书、社会信用代码证书; */ @UCloudParam("CertificateType") private Integer certificateType; - + + + /** - * 短信签名授权委托文件内容,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 - * MB;当您是代理并使用第三方的签名时(也即SigPurpose为1-他用),该项为必填项;格式和File类似。 + * 短信签名授权委托文件内容,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 MB;当您是代理并使用第三方的签名时(也即SigPurpose为1-他用),该项为必填项;格式和File类似。 */ @UCloudParam("ProxyFile") private String proxyFile; - - /** 短信签名的资质证明文件URL,若未更改审核材料,则该处使用已上传审核材料的URL链接,否则使用File参数 */ + + + + /** + * 短信签名的资质证明文件URL,若未更改审核材料,则该处使用已上传审核材料的URL链接,否则使用File参数 + */ @UCloudParam("Document") private String document; - - /** 短信签名授权委托文件URL,若未更改授权委托文件,则该处填写已上传的授权委托文件的URL链接,否则使用ProxyFile参数 */ + + + + /** + * 短信签名授权委托文件URL,若未更改授权委托文件,则该处填写已上传的授权委托文件的URL链接,否则使用ProxyFile参数 + */ @UCloudParam("ProxyDoc") private String proxyDoc; - + + public String getProjectId() { return projectId; } @@ -85,7 +118,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSigId() { return sigId; } @@ -93,7 +126,7 @@ public String getSigId() { public void setSigId(String sigId) { this.sigId = sigId; } - + public String getSigContent() { return sigContent; } @@ -101,7 +134,7 @@ public String getSigContent() { public void setSigContent(String sigContent) { this.sigContent = sigContent; } - + public Integer getSigType() { return sigType; } @@ -109,7 +142,7 @@ public Integer getSigType() { public void setSigType(Integer sigType) { this.sigType = sigType; } - + public Integer getSigPurpose() { return sigPurpose; } @@ -117,7 +150,7 @@ public Integer getSigPurpose() { public void setSigPurpose(Integer sigPurpose) { this.sigPurpose = sigPurpose; } - + public String getFile() { return file; } @@ -125,7 +158,7 @@ public String getFile() { public void setFile(String file) { this.file = file; } - + public Integer getCertificateType() { return certificateType; } @@ -133,7 +166,7 @@ public Integer getCertificateType() { public void setCertificateType(Integer certificateType) { this.certificateType = certificateType; } - + public String getProxyFile() { return proxyFile; } @@ -141,7 +174,7 @@ public String getProxyFile() { public void setProxyFile(String proxyFile) { this.proxyFile = proxyFile; } - + public String getDocument() { return document; } @@ -149,7 +182,7 @@ public String getDocument() { public void setDocument(String document) { this.document = document; } - + public String getProxyDoc() { return proxyDoc; } @@ -157,4 +190,14 @@ public String getProxyDoc() { public void setProxyDoc(String proxyDoc) { this.proxyDoc = proxyDoc; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSSignatureResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSSignatureResponse.java index 7610a7f5..056f4c3e 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSSignatureResponse.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSSignatureResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUSMSSignatureResponse extends Response {} +public class UpdateUSMSSignatureResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSTemplateRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSTemplateRequest.java index c9fe79a6..dd066634 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSTemplateRequest.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSTemplateRequest.java @@ -1,55 +1,90 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateUSMSTemplateRequest extends Request { + + + + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 短信模板ID */ + + + + /** + * 短信模板ID + */ @NotEmpty @UCloudParam("TemplateId") private String templateId; - - /** 新的模板内容。模板名称和模板内容必须提供一个,否则会报错。小于等于600个字 */ + + + + /** + * 新的模板内容。模板名称和模板内容必须提供一个,否则会报错。小于等于600个字 + */ @NotEmpty @UCloudParam("Template") private String template; - - /** 新的模板名称。小于等于32个字,每个中文、英文、数组、符合都计为一个字 */ + + + + /** + * 新的模板名称。小于等于32个字,每个中文、英文、数组、符合都计为一个字 + */ @UCloudParam("TemplateName") private String templateName; - - /** 短信模板申请原因说明,字数不超过128,每个中文、符号、英文、数字等都计为1个字。 */ + + + + /** + * 短信模板申请原因说明,字数不超过128,每个中文、符号、英文、数字等都计为1个字。 + */ @UCloudParam("Remark") private String remark; - - /** 模板变量属性说明 */ + + + + + + /** + * 模板变量属性说明 + */ @UCloudParam("Instruction") private String instruction; - + + + + public String getProjectId() { return projectId; } @@ -57,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getTemplateId() { return templateId; } @@ -65,7 +100,7 @@ public String getTemplateId() { public void setTemplateId(String templateId) { this.templateId = templateId; } - + public String getTemplate() { return template; } @@ -73,7 +108,7 @@ public String getTemplate() { public void setTemplate(String template) { this.template = template; } - + public String getTemplateName() { return templateName; } @@ -81,7 +116,7 @@ public String getTemplateName() { public void setTemplateName(String templateName) { this.templateName = templateName; } - + public String getRemark() { return remark; } @@ -89,7 +124,8 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + + public String getInstruction() { return instruction; } @@ -97,4 +133,14 @@ public String getInstruction() { public void setInstruction(String instruction) { this.instruction = instruction; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSTemplateResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSTemplateResponse.java index 83bdb045..b3af3023 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSTemplateResponse.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/UpdateUSMSTemplateResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.usms.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateUSMSTemplateResponse extends Response {} +public class UpdateUSMSTemplateResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index b336df2b..e0c69cdc 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-uvms - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/client/UVMSClient.java b/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/client/UVMSClient.java index 65031900..1e7deaea 100644 --- a/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/client/UVMSClient.java +++ b/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/client/UVMSClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uvms.client; @@ -17,24 +19,33 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.uvms.models.SendUVMSMessageRequest; import cn.ucloud.uvms.models.SendUVMSMessageResponse; -/** This client is used to call actions of **UVMS** service */ +/** + * This client is used to call actions of **UVMS** service + */ public class UVMSClient extends DefaultClient implements UVMSClientInterface { public UVMSClient(Config config, Credential credential) { super(config, credential); } - - /** - * SendUVMSMessage - 发送语音消息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SendUVMSMessageResponse sendUVMSMessage(SendUVMSMessageRequest request) - throws UCloudException { - request.setAction("SendUVMSMessage"); - return (SendUVMSMessageResponse) this.invoke(request, SendUVMSMessageResponse.class); - } + + + + + + + /** + * SendUVMSMessage - 发送语音消息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SendUVMSMessageResponse sendUVMSMessage(SendUVMSMessageRequest request) throws UCloudException { + request.setAction("SendUVMSMessage"); + return (SendUVMSMessageResponse) this.invoke(request, SendUVMSMessageResponse.class); + } } diff --git a/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/client/UVMSClientInterface.java b/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/client/UVMSClientInterface.java index fd3c7845..6f7552ca 100644 --- a/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/client/UVMSClientInterface.java +++ b/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/client/UVMSClientInterface.java @@ -1,32 +1,43 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.uvms.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.uvms.models.SendUVMSMessageRequest; import cn.ucloud.uvms.models.SendUVMSMessageResponse; -/** This client is used to call actions of **UVMS** service */ +/** + * This client is used to call actions of **UVMS** service + */ public interface UVMSClientInterface extends Client { - + + + + + + /** * SendUVMSMessage - 发送语音消息 * * @param request Request object * @throws UCloudException Exception */ - public SendUVMSMessageResponse sendUVMSMessage(SendUVMSMessageRequest request) - throws UCloudException; + public SendUVMSMessageResponse sendUVMSMessage(SendUVMSMessageRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/models/SendUVMSMessageRequest.java b/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/models/SendUVMSMessageRequest.java index 43c74944..d27cc7bd 100644 --- a/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/models/SendUVMSMessageRequest.java +++ b/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/models/SendUVMSMessageRequest.java @@ -1,66 +1,98 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uvms.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class SendUVMSMessageRequest extends Request { + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 被叫号码,采用 E.164 标准,格式为+[国家代码][用户号码]。 例如:+8613512345678, 其中前面有一个+号 ,86为国家码,13512345678为手机号 */ + + + + /** + * 被叫号码,采用 E.164 标准,格式为+[国家代码][用户号码]。 +例如:+8613512345678, 其中前面有一个+号 ,86为国家码,13512345678为手机号 + */ @NotEmpty @UCloudParam("CalledNumber") private String calledNumber; - - /** 模板 ID,在控制台审核通过的模板 ID。 */ + + + + /** + * 模板 ID,在控制台审核通过的模板 ID。 + */ @NotEmpty @UCloudParam("TemplateId") private String templateId; - + + + /** - * 模板可变参数,以数组的方式填写,举例,TemplateParams.0,TemplateParams.1,... - * 若模板中无可变参数,则该项可不填写;若模板中有可变参数,则该项为必填项,参数个数需与变量个数保持一致,否则无法发送; + * 模板可变参数,以数组的方式填写,举例,TemplateParams.0,TemplateParams.1,... 若模板中无可变参数,则该项可不填写;若模板中有可变参数,则该项为必填项,参数个数需与变量个数保持一致,否则无法发送; */ @UCloudParam("TemplateParams") private List templateParams; - - /** 主叫号码,号码随机时不填。专属号码时传入已购买的号码,仅支持一个号码,在控制台查看已购买的号码。 */ + + + + /** + * 主叫号码,号码随机时不填。专属号码时传入已购买的号码,仅支持一个号码,在控制台查看已购买的号码。 + */ @UCloudParam("FromNumber") private String fromNumber; - - /** 自定义的业务标识ID,字符串( 长度不能超过32 位),不支持 单引号、表情包符号等特殊字符 */ + + + + /** + * 自定义的业务标识ID,字符串( 长度不能超过32 位),不支持 单引号、表情包符号等特殊字符 + */ @UCloudParam("UserId") private String userId; - - /** 号码组类型,1-随机组,2-专属组。如不填写则根据主叫号码判断,若主叫号码为空,则为随机组,若不为空,则为专属组。 */ + + + + /** + * 号码组类型,1-随机组,2-专属组。如不填写则根据主叫号码判断,若主叫号码为空,则为随机组,若不为空,则为专属组。 + */ @UCloudParam("GroupType") private Integer groupType; - - /** 调度规则,0-默认(归属地优先),1-随机。当不指定外显号码(主叫号码为空)时生效。如不填写,默认为归属地优先。 */ + + + + /** + * 调度规则,0-默认(归属地优先),1-随机。当不指定外显号码(主叫号码为空)时生效。如不填写,默认为归属地优先。 + */ @UCloudParam("DispatchRule") private Integer dispatchRule; - + + public String getProjectId() { return projectId; } @@ -68,7 +100,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getCalledNumber() { return calledNumber; } @@ -76,7 +108,7 @@ public String getCalledNumber() { public void setCalledNumber(String calledNumber) { this.calledNumber = calledNumber; } - + public String getTemplateId() { return templateId; } @@ -84,7 +116,7 @@ public String getTemplateId() { public void setTemplateId(String templateId) { this.templateId = templateId; } - + public List getTemplateParams() { return templateParams; } @@ -92,7 +124,7 @@ public List getTemplateParams() { public void setTemplateParams(List templateParams) { this.templateParams = templateParams; } - + public String getFromNumber() { return fromNumber; } @@ -100,7 +132,7 @@ public String getFromNumber() { public void setFromNumber(String fromNumber) { this.fromNumber = fromNumber; } - + public String getUserId() { return userId; } @@ -108,7 +140,7 @@ public String getUserId() { public void setUserId(String userId) { this.userId = userId; } - + public Integer getGroupType() { return groupType; } @@ -116,7 +148,7 @@ public Integer getGroupType() { public void setGroupType(Integer groupType) { this.groupType = groupType; } - + public Integer getDispatchRule() { return dispatchRule; } @@ -124,4 +156,14 @@ public Integer getDispatchRule() { public void setDispatchRule(Integer dispatchRule) { this.dispatchRule = dispatchRule; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/models/SendUVMSMessageResponse.java b/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/models/SendUVMSMessageResponse.java index 4b573dee..81735132 100644 --- a/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/models/SendUVMSMessageResponse.java +++ b/ucloud-sdk-java-uvms/src/main/java/cn/ucloud/uvms/models/SendUVMSMessageResponse.java @@ -1,37 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.uvms.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class SendUVMSMessageResponse extends Response { - /** 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 ReqUuid。 */ + + + /** + * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 ReqUuid。 + */ @SerializedName("ReqUuid") private String reqUuid; - - /** 本次提交发送语音的唯一ID,可根据该值查询本次发送详情 */ + + + + /** + * 本次提交发送语音的唯一ID,可根据该值查询本次发送详情 + */ @SerializedName("SessionNo") private String sessionNo; - - /** 本次提交的自定义业务标识ID,仅当发送时传入有效的UserId,才返回该字段。 */ + + + + /** + * +本次提交的自定义业务标识ID,仅当发送时传入有效的UserId,才返回该字段。 + */ @SerializedName("UserId") private String userId; - + + public String getReqUuid() { return reqUuid; } @@ -39,7 +58,7 @@ public String getReqUuid() { public void setReqUuid(String reqUuid) { this.reqUuid = reqUuid; } - + public String getSessionNo() { return sessionNo; } @@ -47,7 +66,7 @@ public String getSessionNo() { public void setSessionNo(String sessionNo) { this.sessionNo = sessionNo; } - + public String getUserId() { return userId; } @@ -55,4 +74,14 @@ public String getUserId() { public void setUserId(String userId) { this.userId = userId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index 04395bf6..9735a0d7 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.9-release + 1.2.10-release 4.0.0 ucloud-sdk-java-vpc - 1.2.9-release + 1.2.10-release cn.ucloud ucloud-sdk-java-common - 1.2.9-release + 1.2.10-release diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/client/VPCClient.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/client/VPCClient.java index 01511507..a9dbca2c 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/client/VPCClient.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/client/VPCClient.java @@ -1,14 +1,16 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.vpc.client; @@ -17,1038 +19,1524 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.vpc.models.AddSnatRuleRequest; import cn.ucloud.vpc.models.AddSnatRuleResponse; + + + import cn.ucloud.vpc.models.AddVPCNetworkRequest; import cn.ucloud.vpc.models.AddVPCNetworkResponse; + + + import cn.ucloud.vpc.models.AddWhiteListResourceRequest; import cn.ucloud.vpc.models.AddWhiteListResourceResponse; + + + import cn.ucloud.vpc.models.AllocateBatchSecondaryIpRequest; import cn.ucloud.vpc.models.AllocateBatchSecondaryIpResponse; + + + import cn.ucloud.vpc.models.AllocateSecondaryIpRequest; import cn.ucloud.vpc.models.AllocateSecondaryIpResponse; + + + import cn.ucloud.vpc.models.AllocateVIPRequest; import cn.ucloud.vpc.models.AllocateVIPResponse; + + + import cn.ucloud.vpc.models.AssociateRouteTableRequest; import cn.ucloud.vpc.models.AssociateRouteTableResponse; + + + import cn.ucloud.vpc.models.AttachNetworkInterfaceRequest; import cn.ucloud.vpc.models.AttachNetworkInterfaceResponse; + + + import cn.ucloud.vpc.models.CloneRouteTableRequest; import cn.ucloud.vpc.models.CloneRouteTableResponse; -import cn.ucloud.vpc.models.CreateNATGWPolicyRequest; -import cn.ucloud.vpc.models.CreateNATGWPolicyResponse; + + + import cn.ucloud.vpc.models.CreateNATGWRequest; import cn.ucloud.vpc.models.CreateNATGWResponse; + + + +import cn.ucloud.vpc.models.CreateNATGWPolicyRequest; +import cn.ucloud.vpc.models.CreateNATGWPolicyResponse; + + + +import cn.ucloud.vpc.models.CreateNetworkAclRequest; +import cn.ucloud.vpc.models.CreateNetworkAclResponse; + + + import cn.ucloud.vpc.models.CreateNetworkAclAssociationRequest; import cn.ucloud.vpc.models.CreateNetworkAclAssociationResponse; + + + import cn.ucloud.vpc.models.CreateNetworkAclEntryRequest; import cn.ucloud.vpc.models.CreateNetworkAclEntryResponse; -import cn.ucloud.vpc.models.CreateNetworkAclRequest; -import cn.ucloud.vpc.models.CreateNetworkAclResponse; + + + import cn.ucloud.vpc.models.CreateNetworkInterfaceRequest; import cn.ucloud.vpc.models.CreateNetworkInterfaceResponse; + + + import cn.ucloud.vpc.models.CreateRouteTableRequest; import cn.ucloud.vpc.models.CreateRouteTableResponse; + + + import cn.ucloud.vpc.models.CreateSnatDnatRuleRequest; import cn.ucloud.vpc.models.CreateSnatDnatRuleResponse; + + + import cn.ucloud.vpc.models.CreateSubnetRequest; import cn.ucloud.vpc.models.CreateSubnetResponse; -import cn.ucloud.vpc.models.CreateVPCIntercomRequest; -import cn.ucloud.vpc.models.CreateVPCIntercomResponse; + + + import cn.ucloud.vpc.models.CreateVPCRequest; import cn.ucloud.vpc.models.CreateVPCResponse; -import cn.ucloud.vpc.models.DeleteNATGWPolicyRequest; -import cn.ucloud.vpc.models.DeleteNATGWPolicyResponse; + + + +import cn.ucloud.vpc.models.CreateVPCIntercomRequest; +import cn.ucloud.vpc.models.CreateVPCIntercomResponse; + + + import cn.ucloud.vpc.models.DeleteNATGWRequest; import cn.ucloud.vpc.models.DeleteNATGWResponse; + + + +import cn.ucloud.vpc.models.DeleteNATGWPolicyRequest; +import cn.ucloud.vpc.models.DeleteNATGWPolicyResponse; + + + +import cn.ucloud.vpc.models.DeleteNetworkAclRequest; +import cn.ucloud.vpc.models.DeleteNetworkAclResponse; + + + import cn.ucloud.vpc.models.DeleteNetworkAclAssociationRequest; import cn.ucloud.vpc.models.DeleteNetworkAclAssociationResponse; + + + import cn.ucloud.vpc.models.DeleteNetworkAclEntryRequest; import cn.ucloud.vpc.models.DeleteNetworkAclEntryResponse; -import cn.ucloud.vpc.models.DeleteNetworkAclRequest; -import cn.ucloud.vpc.models.DeleteNetworkAclResponse; + + + import cn.ucloud.vpc.models.DeleteNetworkInterfaceRequest; import cn.ucloud.vpc.models.DeleteNetworkInterfaceResponse; + + + import cn.ucloud.vpc.models.DeleteRouteTableRequest; import cn.ucloud.vpc.models.DeleteRouteTableResponse; + + + import cn.ucloud.vpc.models.DeleteSecondaryIpRequest; import cn.ucloud.vpc.models.DeleteSecondaryIpResponse; + + + import cn.ucloud.vpc.models.DeleteSnatDnatRuleRequest; import cn.ucloud.vpc.models.DeleteSnatDnatRuleResponse; + + + import cn.ucloud.vpc.models.DeleteSnatRuleRequest; import cn.ucloud.vpc.models.DeleteSnatRuleResponse; + + + import cn.ucloud.vpc.models.DeleteSubnetRequest; import cn.ucloud.vpc.models.DeleteSubnetResponse; -import cn.ucloud.vpc.models.DeleteVPCIntercomRequest; -import cn.ucloud.vpc.models.DeleteVPCIntercomResponse; + + + import cn.ucloud.vpc.models.DeleteVPCRequest; import cn.ucloud.vpc.models.DeleteVPCResponse; + + + +import cn.ucloud.vpc.models.DeleteVPCIntercomRequest; +import cn.ucloud.vpc.models.DeleteVPCIntercomResponse; + + + import cn.ucloud.vpc.models.DeleteWhiteListResourceRequest; import cn.ucloud.vpc.models.DeleteWhiteListResourceResponse; + + + import cn.ucloud.vpc.models.DescribeInstanceNetworkInterfaceRequest; import cn.ucloud.vpc.models.DescribeInstanceNetworkInterfaceResponse; -import cn.ucloud.vpc.models.DescribeNATGWPolicyRequest; -import cn.ucloud.vpc.models.DescribeNATGWPolicyResponse; + + + import cn.ucloud.vpc.models.DescribeNATGWRequest; import cn.ucloud.vpc.models.DescribeNATGWResponse; -import cn.ucloud.vpc.models.DescribeNetworkAclAssociationBySubnetRequest; -import cn.ucloud.vpc.models.DescribeNetworkAclAssociationBySubnetResponse; + + + +import cn.ucloud.vpc.models.DescribeNATGWPolicyRequest; +import cn.ucloud.vpc.models.DescribeNATGWPolicyResponse; + + + +import cn.ucloud.vpc.models.DescribeNetworkAclRequest; +import cn.ucloud.vpc.models.DescribeNetworkAclResponse; + + + import cn.ucloud.vpc.models.DescribeNetworkAclAssociationRequest; import cn.ucloud.vpc.models.DescribeNetworkAclAssociationResponse; + + + +import cn.ucloud.vpc.models.DescribeNetworkAclAssociationBySubnetRequest; +import cn.ucloud.vpc.models.DescribeNetworkAclAssociationBySubnetResponse; + + + import cn.ucloud.vpc.models.DescribeNetworkAclEntryRequest; import cn.ucloud.vpc.models.DescribeNetworkAclEntryResponse; -import cn.ucloud.vpc.models.DescribeNetworkAclRequest; -import cn.ucloud.vpc.models.DescribeNetworkAclResponse; + + + import cn.ucloud.vpc.models.DescribeNetworkInterfaceRequest; import cn.ucloud.vpc.models.DescribeNetworkInterfaceResponse; + + + import cn.ucloud.vpc.models.DescribeRouteTableRequest; import cn.ucloud.vpc.models.DescribeRouteTableResponse; + + + import cn.ucloud.vpc.models.DescribeSecondaryIpRequest; import cn.ucloud.vpc.models.DescribeSecondaryIpResponse; + + + import cn.ucloud.vpc.models.DescribeSnatDnatRuleRequest; import cn.ucloud.vpc.models.DescribeSnatDnatRuleResponse; + + + import cn.ucloud.vpc.models.DescribeSnatRuleRequest; import cn.ucloud.vpc.models.DescribeSnatRuleResponse; + + + import cn.ucloud.vpc.models.DescribeSubnetRequest; +import cn.ucloud.vpc.models.DescribeSubnetResponse; + + + import cn.ucloud.vpc.models.DescribeSubnetResourceRequest; import cn.ucloud.vpc.models.DescribeSubnetResourceResponse; -import cn.ucloud.vpc.models.DescribeSubnetResponse; + + + import cn.ucloud.vpc.models.DescribeVIPRequest; import cn.ucloud.vpc.models.DescribeVIPResponse; -import cn.ucloud.vpc.models.DescribeVPCIntercomRequest; -import cn.ucloud.vpc.models.DescribeVPCIntercomResponse; + + + import cn.ucloud.vpc.models.DescribeVPCRequest; import cn.ucloud.vpc.models.DescribeVPCResponse; + + + +import cn.ucloud.vpc.models.DescribeVPCIntercomRequest; +import cn.ucloud.vpc.models.DescribeVPCIntercomResponse; + + + import cn.ucloud.vpc.models.DescribeWhiteListResourceRequest; import cn.ucloud.vpc.models.DescribeWhiteListResourceResponse; + + + import cn.ucloud.vpc.models.DetachNetworkInterfaceRequest; import cn.ucloud.vpc.models.DetachNetworkInterfaceResponse; + + + import cn.ucloud.vpc.models.EnableWhiteListRequest; import cn.ucloud.vpc.models.EnableWhiteListResponse; + + + import cn.ucloud.vpc.models.GetAvailableResourceForPolicyRequest; import cn.ucloud.vpc.models.GetAvailableResourceForPolicyResponse; + + + import cn.ucloud.vpc.models.GetAvailableResourceForSnatRuleRequest; import cn.ucloud.vpc.models.GetAvailableResourceForSnatRuleResponse; + + + import cn.ucloud.vpc.models.GetAvailableResourceForWhiteListRequest; import cn.ucloud.vpc.models.GetAvailableResourceForWhiteListResponse; + + + import cn.ucloud.vpc.models.GetNetworkAclTargetResourceRequest; import cn.ucloud.vpc.models.GetNetworkAclTargetResourceResponse; + + + import cn.ucloud.vpc.models.ListSubnetForNATGWRequest; import cn.ucloud.vpc.models.ListSubnetForNATGWResponse; + + + import cn.ucloud.vpc.models.ModifyRouteRuleRequest; import cn.ucloud.vpc.models.ModifyRouteRuleResponse; + + + import cn.ucloud.vpc.models.MoveSecondaryIPMacRequest; import cn.ucloud.vpc.models.MoveSecondaryIPMacResponse; + + + import cn.ucloud.vpc.models.ReleaseVIPRequest; import cn.ucloud.vpc.models.ReleaseVIPResponse; + + + import cn.ucloud.vpc.models.SetGwDefaultExportRequest; import cn.ucloud.vpc.models.SetGwDefaultExportResponse; + + + import cn.ucloud.vpc.models.UpdateNATGWPolicyRequest; import cn.ucloud.vpc.models.UpdateNATGWPolicyResponse; + + + import cn.ucloud.vpc.models.UpdateNATGWSubnetRequest; import cn.ucloud.vpc.models.UpdateNATGWSubnetResponse; -import cn.ucloud.vpc.models.UpdateNetworkAclEntryRequest; -import cn.ucloud.vpc.models.UpdateNetworkAclEntryResponse; + + + import cn.ucloud.vpc.models.UpdateNetworkAclRequest; import cn.ucloud.vpc.models.UpdateNetworkAclResponse; + + + +import cn.ucloud.vpc.models.UpdateNetworkAclEntryRequest; +import cn.ucloud.vpc.models.UpdateNetworkAclEntryResponse; + + + import cn.ucloud.vpc.models.UpdateRouteTableAttributeRequest; import cn.ucloud.vpc.models.UpdateRouteTableAttributeResponse; + + + import cn.ucloud.vpc.models.UpdateSnatRuleRequest; import cn.ucloud.vpc.models.UpdateSnatRuleResponse; + + + import cn.ucloud.vpc.models.UpdateSubnetAttributeRequest; import cn.ucloud.vpc.models.UpdateSubnetAttributeResponse; + + + import cn.ucloud.vpc.models.UpdateVIPAttributeRequest; import cn.ucloud.vpc.models.UpdateVIPAttributeResponse; + + + import cn.ucloud.vpc.models.UpdateVPCNetworkRequest; import cn.ucloud.vpc.models.UpdateVPCNetworkResponse; -/** This client is used to call actions of **VPC** service */ +/** + * This client is used to call actions of **VPC** service + */ public class VPCClient extends DefaultClient implements VPCClientInterface { public VPCClient(Config config, Credential credential) { super(config, credential); } - - /** - * AddSnatRule - 添加出口规则(SNAT规则) - * - * @param request Request object - * @throws UCloudException Exception - */ - public AddSnatRuleResponse addSnatRule(AddSnatRuleRequest request) throws UCloudException { - request.setAction("AddSnatRule"); - return (AddSnatRuleResponse) this.invoke(request, AddSnatRuleResponse.class); - } - - /** - * AddVPCNetwork - 添加VPC网段 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AddVPCNetworkResponse addVPCNetwork(AddVPCNetworkRequest request) - throws UCloudException { - request.setAction("AddVPCNetwork"); - return (AddVPCNetworkResponse) this.invoke(request, AddVPCNetworkResponse.class); - } - - /** - * AddWhiteListResource - 添加NAT网关白名单 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AddWhiteListResourceResponse addWhiteListResource(AddWhiteListResourceRequest request) - throws UCloudException { - request.setAction("AddWhiteListResource"); - return (AddWhiteListResourceResponse) - this.invoke(request, AddWhiteListResourceResponse.class); - } - - /** - * AllocateBatchSecondaryIp - 批量申请虚拟网卡辅助IP - * - * @param request Request object - * @throws UCloudException Exception - */ - public AllocateBatchSecondaryIpResponse allocateBatchSecondaryIp( - AllocateBatchSecondaryIpRequest request) throws UCloudException { - request.setAction("AllocateBatchSecondaryIp"); - return (AllocateBatchSecondaryIpResponse) - this.invoke(request, AllocateBatchSecondaryIpResponse.class); - } - - /** - * AllocateSecondaryIp - 分配ip - * - * @param request Request object - * @throws UCloudException Exception - */ - public AllocateSecondaryIpResponse allocateSecondaryIp(AllocateSecondaryIpRequest request) - throws UCloudException { - request.setAction("AllocateSecondaryIp"); - return (AllocateSecondaryIpResponse) - this.invoke(request, AllocateSecondaryIpResponse.class); - } - - /** - * AllocateVIP - 申请内网虚拟IP - * - * @param request Request object - * @throws UCloudException Exception - */ - public AllocateVIPResponse allocateVIP(AllocateVIPRequest request) throws UCloudException { - request.setAction("AllocateVIP"); - return (AllocateVIPResponse) this.invoke(request, AllocateVIPResponse.class); - } - - /** - * AssociateRouteTable - 绑定子网的路由表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AssociateRouteTableResponse associateRouteTable(AssociateRouteTableRequest request) - throws UCloudException { - request.setAction("AssociateRouteTable"); - return (AssociateRouteTableResponse) - this.invoke(request, AssociateRouteTableResponse.class); - } - - /** - * AttachNetworkInterface - 绑定网卡到云主机 - * - * @param request Request object - * @throws UCloudException Exception - */ - public AttachNetworkInterfaceResponse attachNetworkInterface( - AttachNetworkInterfaceRequest request) throws UCloudException { - request.setAction("AttachNetworkInterface"); - return (AttachNetworkInterfaceResponse) - this.invoke(request, AttachNetworkInterfaceResponse.class); - } - - /** - * CloneRouteTable - 克隆路由表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CloneRouteTableResponse cloneRouteTable(CloneRouteTableRequest request) - throws UCloudException { - request.setAction("CloneRouteTable"); - return (CloneRouteTableResponse) this.invoke(request, CloneRouteTableResponse.class); - } - - /** - * CreateNATGW - 创建NAT网关 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateNATGWResponse createNATGW(CreateNATGWRequest request) throws UCloudException { - request.setAction("CreateNATGW"); - return (CreateNATGWResponse) this.invoke(request, CreateNATGWResponse.class); - } - - /** - * CreateNATGWPolicy - 添加NAT网关端口转发规则 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateNATGWPolicyResponse createNATGWPolicy(CreateNATGWPolicyRequest request) - throws UCloudException { - request.setAction("CreateNATGWPolicy"); - return (CreateNATGWPolicyResponse) this.invoke(request, CreateNATGWPolicyResponse.class); - } - - /** - * CreateNetworkAcl - 创建网络ACL - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateNetworkAclResponse createNetworkAcl(CreateNetworkAclRequest request) - throws UCloudException { - request.setAction("CreateNetworkAcl"); - return (CreateNetworkAclResponse) this.invoke(request, CreateNetworkAclResponse.class); - } - - /** - * CreateNetworkAclAssociation - 创建ACL的绑定关系 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateNetworkAclAssociationResponse createNetworkAclAssociation( - CreateNetworkAclAssociationRequest request) throws UCloudException { - request.setAction("CreateNetworkAclAssociation"); - return (CreateNetworkAclAssociationResponse) - this.invoke(request, CreateNetworkAclAssociationResponse.class); - } - - /** - * CreateNetworkAclEntry - 创建ACL的规则 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateNetworkAclEntryResponse createNetworkAclEntry(CreateNetworkAclEntryRequest request) - throws UCloudException { - request.setAction("CreateNetworkAclEntry"); - return (CreateNetworkAclEntryResponse) - this.invoke(request, CreateNetworkAclEntryResponse.class); - } - - /** - * CreateNetworkInterface - 创建虚拟网卡 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateNetworkInterfaceResponse createNetworkInterface( - CreateNetworkInterfaceRequest request) throws UCloudException { - request.setAction("CreateNetworkInterface"); - return (CreateNetworkInterfaceResponse) - this.invoke(request, CreateNetworkInterfaceResponse.class); - } - - /** - * CreateRouteTable - 创建路由表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateRouteTableResponse createRouteTable(CreateRouteTableRequest request) - throws UCloudException { - request.setAction("CreateRouteTable"); - return (CreateRouteTableResponse) this.invoke(request, CreateRouteTableResponse.class); - } - - /** - * CreateSnatDnatRule - 使用NAT创建内外网IP映射 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateSnatDnatRuleResponse createSnatDnatRule(CreateSnatDnatRuleRequest request) - throws UCloudException { - request.setAction("CreateSnatDnatRule"); - return (CreateSnatDnatRuleResponse) this.invoke(request, CreateSnatDnatRuleResponse.class); - } - - /** - * CreateSubnet - 创建子网 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateSubnetResponse createSubnet(CreateSubnetRequest request) throws UCloudException { - request.setAction("CreateSubnet"); - return (CreateSubnetResponse) this.invoke(request, CreateSubnetResponse.class); - } - - /** - * CreateVPC - 创建VPC - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateVPCResponse createVPC(CreateVPCRequest request) throws UCloudException { - request.setAction("CreateVPC"); - return (CreateVPCResponse) this.invoke(request, CreateVPCResponse.class); - } - - /** - * CreateVPCIntercom - 新建VPC互通 - * - * @param request Request object - * @throws UCloudException Exception - */ - public CreateVPCIntercomResponse createVPCIntercom(CreateVPCIntercomRequest request) - throws UCloudException { - request.setAction("CreateVPCIntercom"); - return (CreateVPCIntercomResponse) this.invoke(request, CreateVPCIntercomResponse.class); - } - - /** - * DeleteNATGW - 删除NAT网关 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteNATGWResponse deleteNATGW(DeleteNATGWRequest request) throws UCloudException { - request.setAction("DeleteNATGW"); - return (DeleteNATGWResponse) this.invoke(request, DeleteNATGWResponse.class); - } - - /** - * DeleteNATGWPolicy - 删除NAT网关端口转发规则 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteNATGWPolicyResponse deleteNATGWPolicy(DeleteNATGWPolicyRequest request) - throws UCloudException { - request.setAction("DeleteNATGWPolicy"); - return (DeleteNATGWPolicyResponse) this.invoke(request, DeleteNATGWPolicyResponse.class); - } - - /** - * DeleteNetworkAcl - 删除网络ACL - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteNetworkAclResponse deleteNetworkAcl(DeleteNetworkAclRequest request) - throws UCloudException { - request.setAction("DeleteNetworkAcl"); - return (DeleteNetworkAclResponse) this.invoke(request, DeleteNetworkAclResponse.class); - } - - /** - * DeleteNetworkAclAssociation - 删除网络ACL绑定关系 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteNetworkAclAssociationResponse deleteNetworkAclAssociation( - DeleteNetworkAclAssociationRequest request) throws UCloudException { - request.setAction("DeleteNetworkAclAssociation"); - return (DeleteNetworkAclAssociationResponse) - this.invoke(request, DeleteNetworkAclAssociationResponse.class); - } - - /** - * DeleteNetworkAclEntry - 删除ACL的规则 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteNetworkAclEntryResponse deleteNetworkAclEntry(DeleteNetworkAclEntryRequest request) - throws UCloudException { - request.setAction("DeleteNetworkAclEntry"); - return (DeleteNetworkAclEntryResponse) - this.invoke(request, DeleteNetworkAclEntryResponse.class); - } - - /** - * DeleteNetworkInterface - 删除网卡 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteNetworkInterfaceResponse deleteNetworkInterface( - DeleteNetworkInterfaceRequest request) throws UCloudException { - request.setAction("DeleteNetworkInterface"); - return (DeleteNetworkInterfaceResponse) - this.invoke(request, DeleteNetworkInterfaceResponse.class); - } - - /** - * DeleteRouteTable - 删除自定义路由表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteRouteTableResponse deleteRouteTable(DeleteRouteTableRequest request) - throws UCloudException { - request.setAction("DeleteRouteTable"); - return (DeleteRouteTableResponse) this.invoke(request, DeleteRouteTableResponse.class); - } - - /** - * DeleteSecondaryIp - 删除Ip - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteSecondaryIpResponse deleteSecondaryIp(DeleteSecondaryIpRequest request) - throws UCloudException { - request.setAction("DeleteSecondaryIp"); - return (DeleteSecondaryIpResponse) this.invoke(request, DeleteSecondaryIpResponse.class); - } - - /** - * DeleteSnatDnatRule - 删除NAT创建内外网IP映射规则 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteSnatDnatRuleResponse deleteSnatDnatRule(DeleteSnatDnatRuleRequest request) - throws UCloudException { - request.setAction("DeleteSnatDnatRule"); - return (DeleteSnatDnatRuleResponse) this.invoke(request, DeleteSnatDnatRuleResponse.class); - } - - /** - * DeleteSnatRule - 删除出口规则(SNAT规则) - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteSnatRuleResponse deleteSnatRule(DeleteSnatRuleRequest request) - throws UCloudException { - request.setAction("DeleteSnatRule"); - return (DeleteSnatRuleResponse) this.invoke(request, DeleteSnatRuleResponse.class); - } - - /** - * DeleteSubnet - 删除子网 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteSubnetResponse deleteSubnet(DeleteSubnetRequest request) throws UCloudException { - request.setAction("DeleteSubnet"); - return (DeleteSubnetResponse) this.invoke(request, DeleteSubnetResponse.class); - } - - /** - * DeleteVPC - 删除VPC - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteVPCResponse deleteVPC(DeleteVPCRequest request) throws UCloudException { - request.setAction("DeleteVPC"); - return (DeleteVPCResponse) this.invoke(request, DeleteVPCResponse.class); - } - - /** - * DeleteVPCIntercom - 删除VPC互通 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteVPCIntercomResponse deleteVPCIntercom(DeleteVPCIntercomRequest request) - throws UCloudException { - request.setAction("DeleteVPCIntercom"); - return (DeleteVPCIntercomResponse) this.invoke(request, DeleteVPCIntercomResponse.class); - } - - /** - * DeleteWhiteListResource - 删除NAT网关白名单列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DeleteWhiteListResourceResponse deleteWhiteListResource( - DeleteWhiteListResourceRequest request) throws UCloudException { - request.setAction("DeleteWhiteListResource"); - return (DeleteWhiteListResourceResponse) - this.invoke(request, DeleteWhiteListResourceResponse.class); - } - - /** - * DescribeInstanceNetworkInterface - 展示云主机绑定的网卡信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeInstanceNetworkInterfaceResponse describeInstanceNetworkInterface( - DescribeInstanceNetworkInterfaceRequest request) throws UCloudException { - request.setAction("DescribeInstanceNetworkInterface"); - return (DescribeInstanceNetworkInterfaceResponse) - this.invoke(request, DescribeInstanceNetworkInterfaceResponse.class); - } - - /** - * DescribeNATGW - 获取NAT网关信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeNATGWResponse describeNATGW(DescribeNATGWRequest request) - throws UCloudException { - request.setAction("DescribeNATGW"); - return (DescribeNATGWResponse) this.invoke(request, DescribeNATGWResponse.class); - } - - /** - * DescribeNATGWPolicy - 展示NAT网关端口转发规则 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeNATGWPolicyResponse describeNATGWPolicy(DescribeNATGWPolicyRequest request) - throws UCloudException { - request.setAction("DescribeNATGWPolicy"); - return (DescribeNATGWPolicyResponse) - this.invoke(request, DescribeNATGWPolicyResponse.class); - } - - /** - * DescribeNetworkAcl - 获取网络ACL - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeNetworkAclResponse describeNetworkAcl(DescribeNetworkAclRequest request) - throws UCloudException { - request.setAction("DescribeNetworkAcl"); - return (DescribeNetworkAclResponse) this.invoke(request, DescribeNetworkAclResponse.class); - } - - /** - * DescribeNetworkAclAssociation - 获取网络ACL的绑定关系列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeNetworkAclAssociationResponse describeNetworkAclAssociation( - DescribeNetworkAclAssociationRequest request) throws UCloudException { - request.setAction("DescribeNetworkAclAssociation"); - return (DescribeNetworkAclAssociationResponse) - this.invoke(request, DescribeNetworkAclAssociationResponse.class); - } - - /** - * DescribeNetworkAclAssociationBySubnet - 获取子网的ACL绑定信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeNetworkAclAssociationBySubnetResponse describeNetworkAclAssociationBySubnet( - DescribeNetworkAclAssociationBySubnetRequest request) throws UCloudException { - request.setAction("DescribeNetworkAclAssociationBySubnet"); - return (DescribeNetworkAclAssociationBySubnetResponse) - this.invoke(request, DescribeNetworkAclAssociationBySubnetResponse.class); - } - - /** - * DescribeNetworkAclEntry - 获取ACL的规则信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeNetworkAclEntryResponse describeNetworkAclEntry( - DescribeNetworkAclEntryRequest request) throws UCloudException { - request.setAction("DescribeNetworkAclEntry"); - return (DescribeNetworkAclEntryResponse) - this.invoke(request, DescribeNetworkAclEntryResponse.class); - } - - /** - * DescribeNetworkInterface - 展示虚拟网卡信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeNetworkInterfaceResponse describeNetworkInterface( - DescribeNetworkInterfaceRequest request) throws UCloudException { - request.setAction("DescribeNetworkInterface"); - return (DescribeNetworkInterfaceResponse) - this.invoke(request, DescribeNetworkInterfaceResponse.class); - } - - /** - * DescribeRouteTable - 获取路由表详细信息(包括路由策略) - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeRouteTableResponse describeRouteTable(DescribeRouteTableRequest request) - throws UCloudException { - request.setAction("DescribeRouteTable"); - return (DescribeRouteTableResponse) this.invoke(request, DescribeRouteTableResponse.class); - } - - /** - * DescribeSecondaryIp - 查询SecondaryIp - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeSecondaryIpResponse describeSecondaryIp(DescribeSecondaryIpRequest request) - throws UCloudException { - request.setAction("DescribeSecondaryIp"); - return (DescribeSecondaryIpResponse) - this.invoke(request, DescribeSecondaryIpResponse.class); - } - - /** - * DescribeSnatDnatRule - 获取基于NAT创建的内外网IP映射规则信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeSnatDnatRuleResponse describeSnatDnatRule(DescribeSnatDnatRuleRequest request) - throws UCloudException { - request.setAction("DescribeSnatDnatRule"); - return (DescribeSnatDnatRuleResponse) - this.invoke(request, DescribeSnatDnatRuleResponse.class); - } - - /** - * DescribeSnatRule - 获取Nat网关的出口规则(SNAT规则) - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeSnatRuleResponse describeSnatRule(DescribeSnatRuleRequest request) - throws UCloudException { - request.setAction("DescribeSnatRule"); - return (DescribeSnatRuleResponse) this.invoke(request, DescribeSnatRuleResponse.class); - } - - /** - * DescribeSubnet - 获取子网信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeSubnetResponse describeSubnet(DescribeSubnetRequest request) - throws UCloudException { - request.setAction("DescribeSubnet"); - return (DescribeSubnetResponse) this.invoke(request, DescribeSubnetResponse.class); - } - - /** - * DescribeSubnetResource - 展示子网资源 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeSubnetResourceResponse describeSubnetResource( - DescribeSubnetResourceRequest request) throws UCloudException { - request.setAction("DescribeSubnetResource"); - return (DescribeSubnetResourceResponse) - this.invoke(request, DescribeSubnetResourceResponse.class); - } - - /** - * DescribeVIP - 获取内网虚拟IP信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeVIPResponse describeVIP(DescribeVIPRequest request) throws UCloudException { - request.setAction("DescribeVIP"); - return (DescribeVIPResponse) this.invoke(request, DescribeVIPResponse.class); - } - - /** - * DescribeVPC - 获取VPC信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeVPCResponse describeVPC(DescribeVPCRequest request) throws UCloudException { - request.setAction("DescribeVPC"); - return (DescribeVPCResponse) this.invoke(request, DescribeVPCResponse.class); - } - - /** - * DescribeVPCIntercom - 获取VPC互通信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeVPCIntercomResponse describeVPCIntercom(DescribeVPCIntercomRequest request) - throws UCloudException { - request.setAction("DescribeVPCIntercom"); - return (DescribeVPCIntercomResponse) - this.invoke(request, DescribeVPCIntercomResponse.class); - } - - /** - * DescribeWhiteListResource - 展示NAT网关白名单资源列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DescribeWhiteListResourceResponse describeWhiteListResource( - DescribeWhiteListResourceRequest request) throws UCloudException { - request.setAction("DescribeWhiteListResource"); - return (DescribeWhiteListResourceResponse) - this.invoke(request, DescribeWhiteListResourceResponse.class); - } - - /** - * DetachNetworkInterface - 解绑云主机关联网卡 - * - * @param request Request object - * @throws UCloudException Exception - */ - public DetachNetworkInterfaceResponse detachNetworkInterface( - DetachNetworkInterfaceRequest request) throws UCloudException { - request.setAction("DetachNetworkInterface"); - return (DetachNetworkInterfaceResponse) - this.invoke(request, DetachNetworkInterfaceResponse.class); - } - - /** - * EnableWhiteList - 修改NAT网关白名单开关 - * - * @param request Request object - * @throws UCloudException Exception - */ - public EnableWhiteListResponse enableWhiteList(EnableWhiteListRequest request) - throws UCloudException { - request.setAction("EnableWhiteList"); - return (EnableWhiteListResponse) this.invoke(request, EnableWhiteListResponse.class); - } - - /** - * GetAvailableResourceForPolicy - 获取NAT网关可配置端口转发规则的资源信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetAvailableResourceForPolicyResponse getAvailableResourceForPolicy( - GetAvailableResourceForPolicyRequest request) throws UCloudException { - request.setAction("GetAvailableResourceForPolicy"); - return (GetAvailableResourceForPolicyResponse) - this.invoke(request, GetAvailableResourceForPolicyResponse.class); - } - - /** - * GetAvailableResourceForSnatRule - 获得可添加snat规则(出口规则)的资源列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetAvailableResourceForSnatRuleResponse getAvailableResourceForSnatRule( - GetAvailableResourceForSnatRuleRequest request) throws UCloudException { - request.setAction("GetAvailableResourceForSnatRule"); - return (GetAvailableResourceForSnatRuleResponse) - this.invoke(request, GetAvailableResourceForSnatRuleResponse.class); - } - - /** - * GetAvailableResourceForWhiteList - 获取NAT网关可添加白名单的资源 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetAvailableResourceForWhiteListResponse getAvailableResourceForWhiteList( - GetAvailableResourceForWhiteListRequest request) throws UCloudException { - request.setAction("GetAvailableResourceForWhiteList"); - return (GetAvailableResourceForWhiteListResponse) - this.invoke(request, GetAvailableResourceForWhiteListResponse.class); - } - - /** - * GetNetworkAclTargetResource - 获取ACL规则应用目标列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public GetNetworkAclTargetResourceResponse getNetworkAclTargetResource( - GetNetworkAclTargetResourceRequest request) throws UCloudException { - request.setAction("GetNetworkAclTargetResource"); - return (GetNetworkAclTargetResourceResponse) - this.invoke(request, GetNetworkAclTargetResourceResponse.class); - } - - /** - * ListSubnetForNATGW - 展示NAT网关可绑定的子网列表 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ListSubnetForNATGWResponse listSubnetForNATGW(ListSubnetForNATGWRequest request) - throws UCloudException { - request.setAction("ListSubnetForNATGW"); - return (ListSubnetForNATGWResponse) this.invoke(request, ListSubnetForNATGWResponse.class); - } - - /** - * ModifyRouteRule - 路由策略增、删、改 - * - * @param request Request object - * @throws UCloudException Exception - */ - public ModifyRouteRuleResponse modifyRouteRule(ModifyRouteRuleRequest request) - throws UCloudException { - request.setAction("ModifyRouteRule"); - return (ModifyRouteRuleResponse) this.invoke(request, ModifyRouteRuleResponse.class); - } - - /** - * MoveSecondaryIPMac - 迁移SecondaryIP - * - * @param request Request object - * @throws UCloudException Exception - */ - public MoveSecondaryIPMacResponse moveSecondaryIPMac(MoveSecondaryIPMacRequest request) - throws UCloudException { - request.setAction("MoveSecondaryIPMac"); - return (MoveSecondaryIPMacResponse) this.invoke(request, MoveSecondaryIPMacResponse.class); - } - - /** - * ReleaseVIP - 释放内网虚拟IP - * - * @param request Request object - * @throws UCloudException Exception - */ - public ReleaseVIPResponse releaseVIP(ReleaseVIPRequest request) throws UCloudException { - request.setAction("ReleaseVIP"); - return (ReleaseVIPResponse) this.invoke(request, ReleaseVIPResponse.class); - } - - /** - * SetGwDefaultExport - 设置NAT网关的默认出口 - * - * @param request Request object - * @throws UCloudException Exception - */ - public SetGwDefaultExportResponse setGwDefaultExport(SetGwDefaultExportRequest request) - throws UCloudException { - request.setAction("SetGwDefaultExport"); - return (SetGwDefaultExportResponse) this.invoke(request, SetGwDefaultExportResponse.class); - } - - /** - * UpdateNATGWPolicy - 更新NAT网关端口转发规则 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateNATGWPolicyResponse updateNATGWPolicy(UpdateNATGWPolicyRequest request) - throws UCloudException { - request.setAction("UpdateNATGWPolicy"); - return (UpdateNATGWPolicyResponse) this.invoke(request, UpdateNATGWPolicyResponse.class); - } - - /** - * UpdateNATGWSubnet - 更新NAT网关绑定的子网 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateNATGWSubnetResponse updateNATGWSubnet(UpdateNATGWSubnetRequest request) - throws UCloudException { - request.setAction("UpdateNATGWSubnet"); - return (UpdateNATGWSubnetResponse) this.invoke(request, UpdateNATGWSubnetResponse.class); - } - - /** - * UpdateNetworkAcl - 更改ACL - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateNetworkAclResponse updateNetworkAcl(UpdateNetworkAclRequest request) - throws UCloudException { - request.setAction("UpdateNetworkAcl"); - return (UpdateNetworkAclResponse) this.invoke(request, UpdateNetworkAclResponse.class); - } - - /** - * UpdateNetworkAclEntry - 更新ACL的规则 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateNetworkAclEntryResponse updateNetworkAclEntry(UpdateNetworkAclEntryRequest request) - throws UCloudException { - request.setAction("UpdateNetworkAclEntry"); - return (UpdateNetworkAclEntryResponse) - this.invoke(request, UpdateNetworkAclEntryResponse.class); - } - - /** - * UpdateRouteTableAttribute - 更新路由表基本信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateRouteTableAttributeResponse updateRouteTableAttribute( - UpdateRouteTableAttributeRequest request) throws UCloudException { - request.setAction("UpdateRouteTableAttribute"); - return (UpdateRouteTableAttributeResponse) - this.invoke(request, UpdateRouteTableAttributeResponse.class); - } - - /** - * UpdateSnatRule - 更新出口规则(SNAT规则) - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateSnatRuleResponse updateSnatRule(UpdateSnatRuleRequest request) - throws UCloudException { - request.setAction("UpdateSnatRule"); - return (UpdateSnatRuleResponse) this.invoke(request, UpdateSnatRuleResponse.class); - } - - /** - * UpdateSubnetAttribute - 更新子网信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateSubnetAttributeResponse updateSubnetAttribute(UpdateSubnetAttributeRequest request) - throws UCloudException { - request.setAction("UpdateSubnetAttribute"); - return (UpdateSubnetAttributeResponse) - this.invoke(request, UpdateSubnetAttributeResponse.class); - } - - /** - * UpdateVIPAttribute - 更新VIP信息 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateVIPAttributeResponse updateVIPAttribute(UpdateVIPAttributeRequest request) - throws UCloudException { - request.setAction("UpdateVIPAttribute"); - return (UpdateVIPAttributeResponse) this.invoke(request, UpdateVIPAttributeResponse.class); - } - - /** - * UpdateVPCNetwork - 更新VPC网段 - * - * @param request Request object - * @throws UCloudException Exception - */ - public UpdateVPCNetworkResponse updateVPCNetwork(UpdateVPCNetworkRequest request) - throws UCloudException { - request.setAction("UpdateVPCNetwork"); - return (UpdateVPCNetworkResponse) this.invoke(request, UpdateVPCNetworkResponse.class); - } + + + + + + + /** + * AddSnatRule - 添加出口规则(SNAT规则) + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddSnatRuleResponse addSnatRule(AddSnatRuleRequest request) throws UCloudException { + request.setAction("AddSnatRule"); + return (AddSnatRuleResponse) this.invoke(request, AddSnatRuleResponse.class); + } + + + + + + + /** + * AddVPCNetwork - 添加VPC网段 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddVPCNetworkResponse addVPCNetwork(AddVPCNetworkRequest request) throws UCloudException { + request.setAction("AddVPCNetwork"); + return (AddVPCNetworkResponse) this.invoke(request, AddVPCNetworkResponse.class); + } + + + + + + + /** + * AddWhiteListResource - 添加NAT网关白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWhiteListResourceResponse addWhiteListResource(AddWhiteListResourceRequest request) throws UCloudException { + request.setAction("AddWhiteListResource"); + return (AddWhiteListResourceResponse) this.invoke(request, AddWhiteListResourceResponse.class); + } + + + + + + + /** + * AllocateBatchSecondaryIp - 批量申请虚拟网卡辅助IP + * + * @param request Request object + * @throws UCloudException Exception + */ + public AllocateBatchSecondaryIpResponse allocateBatchSecondaryIp(AllocateBatchSecondaryIpRequest request) throws UCloudException { + request.setAction("AllocateBatchSecondaryIp"); + return (AllocateBatchSecondaryIpResponse) this.invoke(request, AllocateBatchSecondaryIpResponse.class); + } + + + + + + + /** + * AllocateSecondaryIp - 分配ip + * + * @param request Request object + * @throws UCloudException Exception + */ + public AllocateSecondaryIpResponse allocateSecondaryIp(AllocateSecondaryIpRequest request) throws UCloudException { + request.setAction("AllocateSecondaryIp"); + return (AllocateSecondaryIpResponse) this.invoke(request, AllocateSecondaryIpResponse.class); + } + + + + + + + /** + * AllocateVIP - 申请内网虚拟IP + * + * @param request Request object + * @throws UCloudException Exception + */ + public AllocateVIPResponse allocateVIP(AllocateVIPRequest request) throws UCloudException { + request.setAction("AllocateVIP"); + return (AllocateVIPResponse) this.invoke(request, AllocateVIPResponse.class); + } + + + + + + + /** + * AssociateRouteTable - 绑定子网的路由表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AssociateRouteTableResponse associateRouteTable(AssociateRouteTableRequest request) throws UCloudException { + request.setAction("AssociateRouteTable"); + return (AssociateRouteTableResponse) this.invoke(request, AssociateRouteTableResponse.class); + } + + + + + + + /** + * AttachNetworkInterface - 绑定网卡到云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AttachNetworkInterfaceResponse attachNetworkInterface(AttachNetworkInterfaceRequest request) throws UCloudException { + request.setAction("AttachNetworkInterface"); + return (AttachNetworkInterfaceResponse) this.invoke(request, AttachNetworkInterfaceResponse.class); + } + + + + + + + /** + * CloneRouteTable - 克隆路由表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CloneRouteTableResponse cloneRouteTable(CloneRouteTableRequest request) throws UCloudException { + request.setAction("CloneRouteTable"); + return (CloneRouteTableResponse) this.invoke(request, CloneRouteTableResponse.class); + } + + + + + + + /** + * CreateNATGW - 创建NAT网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateNATGWResponse createNATGW(CreateNATGWRequest request) throws UCloudException { + request.setAction("CreateNATGW"); + return (CreateNATGWResponse) this.invoke(request, CreateNATGWResponse.class); + } + + + + + + + /** + * CreateNATGWPolicy - 添加NAT网关端口转发规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateNATGWPolicyResponse createNATGWPolicy(CreateNATGWPolicyRequest request) throws UCloudException { + request.setAction("CreateNATGWPolicy"); + return (CreateNATGWPolicyResponse) this.invoke(request, CreateNATGWPolicyResponse.class); + } + + + + + + + /** + * CreateNetworkAcl - 创建网络ACL + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateNetworkAclResponse createNetworkAcl(CreateNetworkAclRequest request) throws UCloudException { + request.setAction("CreateNetworkAcl"); + return (CreateNetworkAclResponse) this.invoke(request, CreateNetworkAclResponse.class); + } + + + + + + + /** + * CreateNetworkAclAssociation - 创建ACL的绑定关系 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateNetworkAclAssociationResponse createNetworkAclAssociation(CreateNetworkAclAssociationRequest request) throws UCloudException { + request.setAction("CreateNetworkAclAssociation"); + return (CreateNetworkAclAssociationResponse) this.invoke(request, CreateNetworkAclAssociationResponse.class); + } + + + + + + + /** + * CreateNetworkAclEntry - 创建ACL的规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateNetworkAclEntryResponse createNetworkAclEntry(CreateNetworkAclEntryRequest request) throws UCloudException { + request.setAction("CreateNetworkAclEntry"); + return (CreateNetworkAclEntryResponse) this.invoke(request, CreateNetworkAclEntryResponse.class); + } + + + + + + + /** + * CreateNetworkInterface - 创建虚拟网卡 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateNetworkInterfaceResponse createNetworkInterface(CreateNetworkInterfaceRequest request) throws UCloudException { + request.setAction("CreateNetworkInterface"); + return (CreateNetworkInterfaceResponse) this.invoke(request, CreateNetworkInterfaceResponse.class); + } + + + + + + + /** + * CreateRouteTable - 创建路由表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateRouteTableResponse createRouteTable(CreateRouteTableRequest request) throws UCloudException { + request.setAction("CreateRouteTable"); + return (CreateRouteTableResponse) this.invoke(request, CreateRouteTableResponse.class); + } + + + + + + + /** + * CreateSnatDnatRule - 使用NAT创建内外网IP映射 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateSnatDnatRuleResponse createSnatDnatRule(CreateSnatDnatRuleRequest request) throws UCloudException { + request.setAction("CreateSnatDnatRule"); + return (CreateSnatDnatRuleResponse) this.invoke(request, CreateSnatDnatRuleResponse.class); + } + + + + + + + /** + * CreateSubnet - 创建子网 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateSubnetResponse createSubnet(CreateSubnetRequest request) throws UCloudException { + request.setAction("CreateSubnet"); + return (CreateSubnetResponse) this.invoke(request, CreateSubnetResponse.class); + } + + + + + + + /** + * CreateVPC - 创建VPC + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateVPCResponse createVPC(CreateVPCRequest request) throws UCloudException { + request.setAction("CreateVPC"); + return (CreateVPCResponse) this.invoke(request, CreateVPCResponse.class); + } + + + + + + + /** + * CreateVPCIntercom - 新建VPC互通 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateVPCIntercomResponse createVPCIntercom(CreateVPCIntercomRequest request) throws UCloudException { + request.setAction("CreateVPCIntercom"); + return (CreateVPCIntercomResponse) this.invoke(request, CreateVPCIntercomResponse.class); + } + + + + + + + /** + * DeleteNATGW - 删除NAT网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteNATGWResponse deleteNATGW(DeleteNATGWRequest request) throws UCloudException { + request.setAction("DeleteNATGW"); + return (DeleteNATGWResponse) this.invoke(request, DeleteNATGWResponse.class); + } + + + + + + + /** + * DeleteNATGWPolicy - 删除NAT网关端口转发规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteNATGWPolicyResponse deleteNATGWPolicy(DeleteNATGWPolicyRequest request) throws UCloudException { + request.setAction("DeleteNATGWPolicy"); + return (DeleteNATGWPolicyResponse) this.invoke(request, DeleteNATGWPolicyResponse.class); + } + + + + + + + /** + * DeleteNetworkAcl - 删除网络ACL + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteNetworkAclResponse deleteNetworkAcl(DeleteNetworkAclRequest request) throws UCloudException { + request.setAction("DeleteNetworkAcl"); + return (DeleteNetworkAclResponse) this.invoke(request, DeleteNetworkAclResponse.class); + } + + + + + + + /** + * DeleteNetworkAclAssociation - 删除网络ACL绑定关系 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteNetworkAclAssociationResponse deleteNetworkAclAssociation(DeleteNetworkAclAssociationRequest request) throws UCloudException { + request.setAction("DeleteNetworkAclAssociation"); + return (DeleteNetworkAclAssociationResponse) this.invoke(request, DeleteNetworkAclAssociationResponse.class); + } + + + + + + + /** + * DeleteNetworkAclEntry - 删除ACL的规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteNetworkAclEntryResponse deleteNetworkAclEntry(DeleteNetworkAclEntryRequest request) throws UCloudException { + request.setAction("DeleteNetworkAclEntry"); + return (DeleteNetworkAclEntryResponse) this.invoke(request, DeleteNetworkAclEntryResponse.class); + } + + + + + + + /** + * DeleteNetworkInterface - 删除网卡 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteNetworkInterfaceResponse deleteNetworkInterface(DeleteNetworkInterfaceRequest request) throws UCloudException { + request.setAction("DeleteNetworkInterface"); + return (DeleteNetworkInterfaceResponse) this.invoke(request, DeleteNetworkInterfaceResponse.class); + } + + + + + + + /** + * DeleteRouteTable - 删除自定义路由表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteRouteTableResponse deleteRouteTable(DeleteRouteTableRequest request) throws UCloudException { + request.setAction("DeleteRouteTable"); + return (DeleteRouteTableResponse) this.invoke(request, DeleteRouteTableResponse.class); + } + + + + + + + /** + * DeleteSecondaryIp - 删除Ip + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteSecondaryIpResponse deleteSecondaryIp(DeleteSecondaryIpRequest request) throws UCloudException { + request.setAction("DeleteSecondaryIp"); + return (DeleteSecondaryIpResponse) this.invoke(request, DeleteSecondaryIpResponse.class); + } + + + + + + + /** + * DeleteSnatDnatRule - 删除NAT创建内外网IP映射规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteSnatDnatRuleResponse deleteSnatDnatRule(DeleteSnatDnatRuleRequest request) throws UCloudException { + request.setAction("DeleteSnatDnatRule"); + return (DeleteSnatDnatRuleResponse) this.invoke(request, DeleteSnatDnatRuleResponse.class); + } + + + + + + + /** + * DeleteSnatRule - 删除出口规则(SNAT规则) + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteSnatRuleResponse deleteSnatRule(DeleteSnatRuleRequest request) throws UCloudException { + request.setAction("DeleteSnatRule"); + return (DeleteSnatRuleResponse) this.invoke(request, DeleteSnatRuleResponse.class); + } + + + + + + + /** + * DeleteSubnet - 删除子网 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteSubnetResponse deleteSubnet(DeleteSubnetRequest request) throws UCloudException { + request.setAction("DeleteSubnet"); + return (DeleteSubnetResponse) this.invoke(request, DeleteSubnetResponse.class); + } + + + + + + + /** + * DeleteVPC - 删除VPC + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteVPCResponse deleteVPC(DeleteVPCRequest request) throws UCloudException { + request.setAction("DeleteVPC"); + return (DeleteVPCResponse) this.invoke(request, DeleteVPCResponse.class); + } + + + + + + + /** + * DeleteVPCIntercom - 删除VPC互通 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteVPCIntercomResponse deleteVPCIntercom(DeleteVPCIntercomRequest request) throws UCloudException { + request.setAction("DeleteVPCIntercom"); + return (DeleteVPCIntercomResponse) this.invoke(request, DeleteVPCIntercomResponse.class); + } + + + + + + + /** + * DeleteWhiteListResource - 删除NAT网关白名单列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWhiteListResourceResponse deleteWhiteListResource(DeleteWhiteListResourceRequest request) throws UCloudException { + request.setAction("DeleteWhiteListResource"); + return (DeleteWhiteListResourceResponse) this.invoke(request, DeleteWhiteListResourceResponse.class); + } + + + + + + + /** + * DescribeInstanceNetworkInterface - 展示云主机绑定的网卡信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeInstanceNetworkInterfaceResponse describeInstanceNetworkInterface(DescribeInstanceNetworkInterfaceRequest request) throws UCloudException { + request.setAction("DescribeInstanceNetworkInterface"); + return (DescribeInstanceNetworkInterfaceResponse) this.invoke(request, DescribeInstanceNetworkInterfaceResponse.class); + } + + + + + + + /** + * DescribeNATGW - 获取NAT网关信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNATGWResponse describeNATGW(DescribeNATGWRequest request) throws UCloudException { + request.setAction("DescribeNATGW"); + return (DescribeNATGWResponse) this.invoke(request, DescribeNATGWResponse.class); + } + + + + + + + /** + * DescribeNATGWPolicy - 展示NAT网关端口转发规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNATGWPolicyResponse describeNATGWPolicy(DescribeNATGWPolicyRequest request) throws UCloudException { + request.setAction("DescribeNATGWPolicy"); + return (DescribeNATGWPolicyResponse) this.invoke(request, DescribeNATGWPolicyResponse.class); + } + + + + + + + /** + * DescribeNetworkAcl - 获取网络ACL + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNetworkAclResponse describeNetworkAcl(DescribeNetworkAclRequest request) throws UCloudException { + request.setAction("DescribeNetworkAcl"); + return (DescribeNetworkAclResponse) this.invoke(request, DescribeNetworkAclResponse.class); + } + + + + + + + /** + * DescribeNetworkAclAssociation - 获取网络ACL的绑定关系列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNetworkAclAssociationResponse describeNetworkAclAssociation(DescribeNetworkAclAssociationRequest request) throws UCloudException { + request.setAction("DescribeNetworkAclAssociation"); + return (DescribeNetworkAclAssociationResponse) this.invoke(request, DescribeNetworkAclAssociationResponse.class); + } + + + + + + + /** + * DescribeNetworkAclAssociationBySubnet - 获取子网的ACL绑定信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNetworkAclAssociationBySubnetResponse describeNetworkAclAssociationBySubnet(DescribeNetworkAclAssociationBySubnetRequest request) throws UCloudException { + request.setAction("DescribeNetworkAclAssociationBySubnet"); + return (DescribeNetworkAclAssociationBySubnetResponse) this.invoke(request, DescribeNetworkAclAssociationBySubnetResponse.class); + } + + + + + + + /** + * DescribeNetworkAclEntry - 获取ACL的规则信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNetworkAclEntryResponse describeNetworkAclEntry(DescribeNetworkAclEntryRequest request) throws UCloudException { + request.setAction("DescribeNetworkAclEntry"); + return (DescribeNetworkAclEntryResponse) this.invoke(request, DescribeNetworkAclEntryResponse.class); + } + + + + + + + /** + * DescribeNetworkInterface - 展示虚拟网卡信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNetworkInterfaceResponse describeNetworkInterface(DescribeNetworkInterfaceRequest request) throws UCloudException { + request.setAction("DescribeNetworkInterface"); + return (DescribeNetworkInterfaceResponse) this.invoke(request, DescribeNetworkInterfaceResponse.class); + } + + + + + + + /** + * DescribeRouteTable - 获取路由表详细信息(包括路由策略) + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeRouteTableResponse describeRouteTable(DescribeRouteTableRequest request) throws UCloudException { + request.setAction("DescribeRouteTable"); + return (DescribeRouteTableResponse) this.invoke(request, DescribeRouteTableResponse.class); + } + + + + + + + /** + * DescribeSecondaryIp - 查询SecondaryIp + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeSecondaryIpResponse describeSecondaryIp(DescribeSecondaryIpRequest request) throws UCloudException { + request.setAction("DescribeSecondaryIp"); + return (DescribeSecondaryIpResponse) this.invoke(request, DescribeSecondaryIpResponse.class); + } + + + + + + + /** + * DescribeSnatDnatRule - 获取基于NAT创建的内外网IP映射规则信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeSnatDnatRuleResponse describeSnatDnatRule(DescribeSnatDnatRuleRequest request) throws UCloudException { + request.setAction("DescribeSnatDnatRule"); + return (DescribeSnatDnatRuleResponse) this.invoke(request, DescribeSnatDnatRuleResponse.class); + } + + + + + + + /** + * DescribeSnatRule - 获取Nat网关的出口规则(SNAT规则) + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeSnatRuleResponse describeSnatRule(DescribeSnatRuleRequest request) throws UCloudException { + request.setAction("DescribeSnatRule"); + return (DescribeSnatRuleResponse) this.invoke(request, DescribeSnatRuleResponse.class); + } + + + + + + + /** + * DescribeSubnet - 获取子网信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeSubnetResponse describeSubnet(DescribeSubnetRequest request) throws UCloudException { + request.setAction("DescribeSubnet"); + return (DescribeSubnetResponse) this.invoke(request, DescribeSubnetResponse.class); + } + + + + + + + /** + * DescribeSubnetResource - 展示子网资源 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeSubnetResourceResponse describeSubnetResource(DescribeSubnetResourceRequest request) throws UCloudException { + request.setAction("DescribeSubnetResource"); + return (DescribeSubnetResourceResponse) this.invoke(request, DescribeSubnetResourceResponse.class); + } + + + + + + + /** + * DescribeVIP - 获取内网虚拟IP信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeVIPResponse describeVIP(DescribeVIPRequest request) throws UCloudException { + request.setAction("DescribeVIP"); + return (DescribeVIPResponse) this.invoke(request, DescribeVIPResponse.class); + } + + + + + + + /** + * DescribeVPC - 获取VPC信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeVPCResponse describeVPC(DescribeVPCRequest request) throws UCloudException { + request.setAction("DescribeVPC"); + return (DescribeVPCResponse) this.invoke(request, DescribeVPCResponse.class); + } + + + + + + + /** + * DescribeVPCIntercom - 获取VPC互通信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeVPCIntercomResponse describeVPCIntercom(DescribeVPCIntercomRequest request) throws UCloudException { + request.setAction("DescribeVPCIntercom"); + return (DescribeVPCIntercomResponse) this.invoke(request, DescribeVPCIntercomResponse.class); + } + + + + + + + /** + * DescribeWhiteListResource - 展示NAT网关白名单资源列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWhiteListResourceResponse describeWhiteListResource(DescribeWhiteListResourceRequest request) throws UCloudException { + request.setAction("DescribeWhiteListResource"); + return (DescribeWhiteListResourceResponse) this.invoke(request, DescribeWhiteListResourceResponse.class); + } + + + + + + + /** + * DetachNetworkInterface - 解绑云主机关联网卡 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DetachNetworkInterfaceResponse detachNetworkInterface(DetachNetworkInterfaceRequest request) throws UCloudException { + request.setAction("DetachNetworkInterface"); + return (DetachNetworkInterfaceResponse) this.invoke(request, DetachNetworkInterfaceResponse.class); + } + + + + + + + /** + * EnableWhiteList - 修改NAT网关白名单开关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public EnableWhiteListResponse enableWhiteList(EnableWhiteListRequest request) throws UCloudException { + request.setAction("EnableWhiteList"); + return (EnableWhiteListResponse) this.invoke(request, EnableWhiteListResponse.class); + } + + + + + + + /** + * GetAvailableResourceForPolicy - 获取NAT网关可配置端口转发规则的资源信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetAvailableResourceForPolicyResponse getAvailableResourceForPolicy(GetAvailableResourceForPolicyRequest request) throws UCloudException { + request.setAction("GetAvailableResourceForPolicy"); + return (GetAvailableResourceForPolicyResponse) this.invoke(request, GetAvailableResourceForPolicyResponse.class); + } + + + + + + + /** + * GetAvailableResourceForSnatRule - 获得可添加snat规则(出口规则)的资源列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetAvailableResourceForSnatRuleResponse getAvailableResourceForSnatRule(GetAvailableResourceForSnatRuleRequest request) throws UCloudException { + request.setAction("GetAvailableResourceForSnatRule"); + return (GetAvailableResourceForSnatRuleResponse) this.invoke(request, GetAvailableResourceForSnatRuleResponse.class); + } + + + + + + + /** + * GetAvailableResourceForWhiteList - 获取NAT网关可添加白名单的资源 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetAvailableResourceForWhiteListResponse getAvailableResourceForWhiteList(GetAvailableResourceForWhiteListRequest request) throws UCloudException { + request.setAction("GetAvailableResourceForWhiteList"); + return (GetAvailableResourceForWhiteListResponse) this.invoke(request, GetAvailableResourceForWhiteListResponse.class); + } + + + + + + + /** + * GetNetworkAclTargetResource - 获取ACL规则应用目标列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetNetworkAclTargetResourceResponse getNetworkAclTargetResource(GetNetworkAclTargetResourceRequest request) throws UCloudException { + request.setAction("GetNetworkAclTargetResource"); + return (GetNetworkAclTargetResourceResponse) this.invoke(request, GetNetworkAclTargetResourceResponse.class); + } + + + + + + + /** + * ListSubnetForNATGW - 展示NAT网关可绑定的子网列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListSubnetForNATGWResponse listSubnetForNATGW(ListSubnetForNATGWRequest request) throws UCloudException { + request.setAction("ListSubnetForNATGW"); + return (ListSubnetForNATGWResponse) this.invoke(request, ListSubnetForNATGWResponse.class); + } + + + + + + + /** + * ModifyRouteRule - 路由策略增、删、改 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyRouteRuleResponse modifyRouteRule(ModifyRouteRuleRequest request) throws UCloudException { + request.setAction("ModifyRouteRule"); + return (ModifyRouteRuleResponse) this.invoke(request, ModifyRouteRuleResponse.class); + } + + + + + + + /** + * MoveSecondaryIPMac - 迁移SecondaryIP + * + * @param request Request object + * @throws UCloudException Exception + */ + public MoveSecondaryIPMacResponse moveSecondaryIPMac(MoveSecondaryIPMacRequest request) throws UCloudException { + request.setAction("MoveSecondaryIPMac"); + return (MoveSecondaryIPMacResponse) this.invoke(request, MoveSecondaryIPMacResponse.class); + } + + + + + + + /** + * ReleaseVIP - 释放内网虚拟IP + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReleaseVIPResponse releaseVIP(ReleaseVIPRequest request) throws UCloudException { + request.setAction("ReleaseVIP"); + return (ReleaseVIPResponse) this.invoke(request, ReleaseVIPResponse.class); + } + + + + + + + /** + * SetGwDefaultExport - 设置NAT网关的默认出口 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SetGwDefaultExportResponse setGwDefaultExport(SetGwDefaultExportRequest request) throws UCloudException { + request.setAction("SetGwDefaultExport"); + return (SetGwDefaultExportResponse) this.invoke(request, SetGwDefaultExportResponse.class); + } + + + + + + + /** + * UpdateNATGWPolicy - 更新NAT网关端口转发规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateNATGWPolicyResponse updateNATGWPolicy(UpdateNATGWPolicyRequest request) throws UCloudException { + request.setAction("UpdateNATGWPolicy"); + return (UpdateNATGWPolicyResponse) this.invoke(request, UpdateNATGWPolicyResponse.class); + } + + + + + + + /** + * UpdateNATGWSubnet - 更新NAT网关绑定的子网 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateNATGWSubnetResponse updateNATGWSubnet(UpdateNATGWSubnetRequest request) throws UCloudException { + request.setAction("UpdateNATGWSubnet"); + return (UpdateNATGWSubnetResponse) this.invoke(request, UpdateNATGWSubnetResponse.class); + } + + + + + + + /** + * UpdateNetworkAcl - 更改ACL + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateNetworkAclResponse updateNetworkAcl(UpdateNetworkAclRequest request) throws UCloudException { + request.setAction("UpdateNetworkAcl"); + return (UpdateNetworkAclResponse) this.invoke(request, UpdateNetworkAclResponse.class); + } + + + + + + + /** + * UpdateNetworkAclEntry - 更新ACL的规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateNetworkAclEntryResponse updateNetworkAclEntry(UpdateNetworkAclEntryRequest request) throws UCloudException { + request.setAction("UpdateNetworkAclEntry"); + return (UpdateNetworkAclEntryResponse) this.invoke(request, UpdateNetworkAclEntryResponse.class); + } + + + + + + + /** + * UpdateRouteTableAttribute - 更新路由表基本信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateRouteTableAttributeResponse updateRouteTableAttribute(UpdateRouteTableAttributeRequest request) throws UCloudException { + request.setAction("UpdateRouteTableAttribute"); + return (UpdateRouteTableAttributeResponse) this.invoke(request, UpdateRouteTableAttributeResponse.class); + } + + + + + + + /** + * UpdateSnatRule - 更新出口规则(SNAT规则) + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateSnatRuleResponse updateSnatRule(UpdateSnatRuleRequest request) throws UCloudException { + request.setAction("UpdateSnatRule"); + return (UpdateSnatRuleResponse) this.invoke(request, UpdateSnatRuleResponse.class); + } + + + + + + + /** + * UpdateSubnetAttribute - 更新子网信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateSubnetAttributeResponse updateSubnetAttribute(UpdateSubnetAttributeRequest request) throws UCloudException { + request.setAction("UpdateSubnetAttribute"); + return (UpdateSubnetAttributeResponse) this.invoke(request, UpdateSubnetAttributeResponse.class); + } + + + + + + + /** + * UpdateVIPAttribute - 更新VIP信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateVIPAttributeResponse updateVIPAttribute(UpdateVIPAttributeRequest request) throws UCloudException { + request.setAction("UpdateVIPAttribute"); + return (UpdateVIPAttributeResponse) this.invoke(request, UpdateVIPAttributeResponse.class); + } + + + + + + + /** + * UpdateVPCNetwork - 更新VPC网段 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateVPCNetworkResponse updateVPCNetwork(UpdateVPCNetworkRequest request) throws UCloudException { + request.setAction("UpdateVPCNetwork"); + return (UpdateVPCNetworkResponse) this.invoke(request, UpdateVPCNetworkResponse.class); + } } diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/client/VPCClientInterface.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/client/VPCClientInterface.java index ebc0ffde..c5858a06 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/client/VPCClientInterface.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/client/VPCClientInterface.java @@ -1,168 +1,393 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ package cn.ucloud.vpc.client; import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; + + + import cn.ucloud.vpc.models.AddSnatRuleRequest; import cn.ucloud.vpc.models.AddSnatRuleResponse; + + + import cn.ucloud.vpc.models.AddVPCNetworkRequest; import cn.ucloud.vpc.models.AddVPCNetworkResponse; + + + import cn.ucloud.vpc.models.AddWhiteListResourceRequest; import cn.ucloud.vpc.models.AddWhiteListResourceResponse; + + + import cn.ucloud.vpc.models.AllocateBatchSecondaryIpRequest; import cn.ucloud.vpc.models.AllocateBatchSecondaryIpResponse; + + + import cn.ucloud.vpc.models.AllocateSecondaryIpRequest; import cn.ucloud.vpc.models.AllocateSecondaryIpResponse; + + + import cn.ucloud.vpc.models.AllocateVIPRequest; import cn.ucloud.vpc.models.AllocateVIPResponse; + + + import cn.ucloud.vpc.models.AssociateRouteTableRequest; import cn.ucloud.vpc.models.AssociateRouteTableResponse; + + + import cn.ucloud.vpc.models.AttachNetworkInterfaceRequest; import cn.ucloud.vpc.models.AttachNetworkInterfaceResponse; + + + import cn.ucloud.vpc.models.CloneRouteTableRequest; import cn.ucloud.vpc.models.CloneRouteTableResponse; -import cn.ucloud.vpc.models.CreateNATGWPolicyRequest; -import cn.ucloud.vpc.models.CreateNATGWPolicyResponse; + + + import cn.ucloud.vpc.models.CreateNATGWRequest; import cn.ucloud.vpc.models.CreateNATGWResponse; + + + +import cn.ucloud.vpc.models.CreateNATGWPolicyRequest; +import cn.ucloud.vpc.models.CreateNATGWPolicyResponse; + + + +import cn.ucloud.vpc.models.CreateNetworkAclRequest; +import cn.ucloud.vpc.models.CreateNetworkAclResponse; + + + import cn.ucloud.vpc.models.CreateNetworkAclAssociationRequest; import cn.ucloud.vpc.models.CreateNetworkAclAssociationResponse; + + + import cn.ucloud.vpc.models.CreateNetworkAclEntryRequest; import cn.ucloud.vpc.models.CreateNetworkAclEntryResponse; -import cn.ucloud.vpc.models.CreateNetworkAclRequest; -import cn.ucloud.vpc.models.CreateNetworkAclResponse; + + + import cn.ucloud.vpc.models.CreateNetworkInterfaceRequest; import cn.ucloud.vpc.models.CreateNetworkInterfaceResponse; + + + import cn.ucloud.vpc.models.CreateRouteTableRequest; import cn.ucloud.vpc.models.CreateRouteTableResponse; + + + import cn.ucloud.vpc.models.CreateSnatDnatRuleRequest; import cn.ucloud.vpc.models.CreateSnatDnatRuleResponse; + + + import cn.ucloud.vpc.models.CreateSubnetRequest; import cn.ucloud.vpc.models.CreateSubnetResponse; -import cn.ucloud.vpc.models.CreateVPCIntercomRequest; -import cn.ucloud.vpc.models.CreateVPCIntercomResponse; + + + import cn.ucloud.vpc.models.CreateVPCRequest; import cn.ucloud.vpc.models.CreateVPCResponse; -import cn.ucloud.vpc.models.DeleteNATGWPolicyRequest; -import cn.ucloud.vpc.models.DeleteNATGWPolicyResponse; + + + +import cn.ucloud.vpc.models.CreateVPCIntercomRequest; +import cn.ucloud.vpc.models.CreateVPCIntercomResponse; + + + import cn.ucloud.vpc.models.DeleteNATGWRequest; import cn.ucloud.vpc.models.DeleteNATGWResponse; + + + +import cn.ucloud.vpc.models.DeleteNATGWPolicyRequest; +import cn.ucloud.vpc.models.DeleteNATGWPolicyResponse; + + + +import cn.ucloud.vpc.models.DeleteNetworkAclRequest; +import cn.ucloud.vpc.models.DeleteNetworkAclResponse; + + + import cn.ucloud.vpc.models.DeleteNetworkAclAssociationRequest; import cn.ucloud.vpc.models.DeleteNetworkAclAssociationResponse; + + + import cn.ucloud.vpc.models.DeleteNetworkAclEntryRequest; import cn.ucloud.vpc.models.DeleteNetworkAclEntryResponse; -import cn.ucloud.vpc.models.DeleteNetworkAclRequest; -import cn.ucloud.vpc.models.DeleteNetworkAclResponse; + + + import cn.ucloud.vpc.models.DeleteNetworkInterfaceRequest; import cn.ucloud.vpc.models.DeleteNetworkInterfaceResponse; + + + import cn.ucloud.vpc.models.DeleteRouteTableRequest; import cn.ucloud.vpc.models.DeleteRouteTableResponse; + + + import cn.ucloud.vpc.models.DeleteSecondaryIpRequest; import cn.ucloud.vpc.models.DeleteSecondaryIpResponse; + + + import cn.ucloud.vpc.models.DeleteSnatDnatRuleRequest; import cn.ucloud.vpc.models.DeleteSnatDnatRuleResponse; + + + import cn.ucloud.vpc.models.DeleteSnatRuleRequest; import cn.ucloud.vpc.models.DeleteSnatRuleResponse; + + + import cn.ucloud.vpc.models.DeleteSubnetRequest; import cn.ucloud.vpc.models.DeleteSubnetResponse; -import cn.ucloud.vpc.models.DeleteVPCIntercomRequest; -import cn.ucloud.vpc.models.DeleteVPCIntercomResponse; + + + import cn.ucloud.vpc.models.DeleteVPCRequest; import cn.ucloud.vpc.models.DeleteVPCResponse; + + + +import cn.ucloud.vpc.models.DeleteVPCIntercomRequest; +import cn.ucloud.vpc.models.DeleteVPCIntercomResponse; + + + import cn.ucloud.vpc.models.DeleteWhiteListResourceRequest; import cn.ucloud.vpc.models.DeleteWhiteListResourceResponse; + + + import cn.ucloud.vpc.models.DescribeInstanceNetworkInterfaceRequest; import cn.ucloud.vpc.models.DescribeInstanceNetworkInterfaceResponse; -import cn.ucloud.vpc.models.DescribeNATGWPolicyRequest; -import cn.ucloud.vpc.models.DescribeNATGWPolicyResponse; + + + import cn.ucloud.vpc.models.DescribeNATGWRequest; import cn.ucloud.vpc.models.DescribeNATGWResponse; -import cn.ucloud.vpc.models.DescribeNetworkAclAssociationBySubnetRequest; -import cn.ucloud.vpc.models.DescribeNetworkAclAssociationBySubnetResponse; + + + +import cn.ucloud.vpc.models.DescribeNATGWPolicyRequest; +import cn.ucloud.vpc.models.DescribeNATGWPolicyResponse; + + + +import cn.ucloud.vpc.models.DescribeNetworkAclRequest; +import cn.ucloud.vpc.models.DescribeNetworkAclResponse; + + + import cn.ucloud.vpc.models.DescribeNetworkAclAssociationRequest; import cn.ucloud.vpc.models.DescribeNetworkAclAssociationResponse; + + + +import cn.ucloud.vpc.models.DescribeNetworkAclAssociationBySubnetRequest; +import cn.ucloud.vpc.models.DescribeNetworkAclAssociationBySubnetResponse; + + + import cn.ucloud.vpc.models.DescribeNetworkAclEntryRequest; import cn.ucloud.vpc.models.DescribeNetworkAclEntryResponse; -import cn.ucloud.vpc.models.DescribeNetworkAclRequest; -import cn.ucloud.vpc.models.DescribeNetworkAclResponse; + + + import cn.ucloud.vpc.models.DescribeNetworkInterfaceRequest; import cn.ucloud.vpc.models.DescribeNetworkInterfaceResponse; + + + import cn.ucloud.vpc.models.DescribeRouteTableRequest; import cn.ucloud.vpc.models.DescribeRouteTableResponse; + + + import cn.ucloud.vpc.models.DescribeSecondaryIpRequest; import cn.ucloud.vpc.models.DescribeSecondaryIpResponse; + + + import cn.ucloud.vpc.models.DescribeSnatDnatRuleRequest; import cn.ucloud.vpc.models.DescribeSnatDnatRuleResponse; + + + import cn.ucloud.vpc.models.DescribeSnatRuleRequest; import cn.ucloud.vpc.models.DescribeSnatRuleResponse; + + + import cn.ucloud.vpc.models.DescribeSubnetRequest; +import cn.ucloud.vpc.models.DescribeSubnetResponse; + + + import cn.ucloud.vpc.models.DescribeSubnetResourceRequest; import cn.ucloud.vpc.models.DescribeSubnetResourceResponse; -import cn.ucloud.vpc.models.DescribeSubnetResponse; + + + import cn.ucloud.vpc.models.DescribeVIPRequest; import cn.ucloud.vpc.models.DescribeVIPResponse; -import cn.ucloud.vpc.models.DescribeVPCIntercomRequest; -import cn.ucloud.vpc.models.DescribeVPCIntercomResponse; + + + import cn.ucloud.vpc.models.DescribeVPCRequest; import cn.ucloud.vpc.models.DescribeVPCResponse; + + + +import cn.ucloud.vpc.models.DescribeVPCIntercomRequest; +import cn.ucloud.vpc.models.DescribeVPCIntercomResponse; + + + import cn.ucloud.vpc.models.DescribeWhiteListResourceRequest; import cn.ucloud.vpc.models.DescribeWhiteListResourceResponse; + + + import cn.ucloud.vpc.models.DetachNetworkInterfaceRequest; import cn.ucloud.vpc.models.DetachNetworkInterfaceResponse; + + + import cn.ucloud.vpc.models.EnableWhiteListRequest; import cn.ucloud.vpc.models.EnableWhiteListResponse; + + + import cn.ucloud.vpc.models.GetAvailableResourceForPolicyRequest; import cn.ucloud.vpc.models.GetAvailableResourceForPolicyResponse; + + + import cn.ucloud.vpc.models.GetAvailableResourceForSnatRuleRequest; import cn.ucloud.vpc.models.GetAvailableResourceForSnatRuleResponse; + + + import cn.ucloud.vpc.models.GetAvailableResourceForWhiteListRequest; import cn.ucloud.vpc.models.GetAvailableResourceForWhiteListResponse; + + + import cn.ucloud.vpc.models.GetNetworkAclTargetResourceRequest; import cn.ucloud.vpc.models.GetNetworkAclTargetResourceResponse; + + + import cn.ucloud.vpc.models.ListSubnetForNATGWRequest; import cn.ucloud.vpc.models.ListSubnetForNATGWResponse; + + + import cn.ucloud.vpc.models.ModifyRouteRuleRequest; import cn.ucloud.vpc.models.ModifyRouteRuleResponse; + + + import cn.ucloud.vpc.models.MoveSecondaryIPMacRequest; import cn.ucloud.vpc.models.MoveSecondaryIPMacResponse; + + + import cn.ucloud.vpc.models.ReleaseVIPRequest; import cn.ucloud.vpc.models.ReleaseVIPResponse; + + + import cn.ucloud.vpc.models.SetGwDefaultExportRequest; import cn.ucloud.vpc.models.SetGwDefaultExportResponse; + + + import cn.ucloud.vpc.models.UpdateNATGWPolicyRequest; import cn.ucloud.vpc.models.UpdateNATGWPolicyResponse; + + + import cn.ucloud.vpc.models.UpdateNATGWSubnetRequest; import cn.ucloud.vpc.models.UpdateNATGWSubnetResponse; -import cn.ucloud.vpc.models.UpdateNetworkAclEntryRequest; -import cn.ucloud.vpc.models.UpdateNetworkAclEntryResponse; + + + import cn.ucloud.vpc.models.UpdateNetworkAclRequest; import cn.ucloud.vpc.models.UpdateNetworkAclResponse; + + + +import cn.ucloud.vpc.models.UpdateNetworkAclEntryRequest; +import cn.ucloud.vpc.models.UpdateNetworkAclEntryResponse; + + + import cn.ucloud.vpc.models.UpdateRouteTableAttributeRequest; import cn.ucloud.vpc.models.UpdateRouteTableAttributeResponse; + + + import cn.ucloud.vpc.models.UpdateSnatRuleRequest; import cn.ucloud.vpc.models.UpdateSnatRuleResponse; + + + import cn.ucloud.vpc.models.UpdateSubnetAttributeRequest; import cn.ucloud.vpc.models.UpdateSubnetAttributeResponse; + + + import cn.ucloud.vpc.models.UpdateVIPAttributeRequest; import cn.ucloud.vpc.models.UpdateVIPAttributeResponse; + + + import cn.ucloud.vpc.models.UpdateVPCNetworkRequest; import cn.ucloud.vpc.models.UpdateVPCNetworkResponse; -/** This client is used to call actions of **VPC** service */ +/** + * This client is used to call actions of **VPC** service + */ public interface VPCClientInterface extends Client { - + + + + + + /** * AddSnatRule - 添加出口规则(SNAT规则) * @@ -170,7 +395,12 @@ public interface VPCClientInterface extends Client { * @throws UCloudException Exception */ public AddSnatRuleResponse addSnatRule(AddSnatRuleRequest request) throws UCloudException; - + + + + + + /** * AddVPCNetwork - 添加VPC网段 * @@ -178,34 +408,51 @@ public interface VPCClientInterface extends Client { * @throws UCloudException Exception */ public AddVPCNetworkResponse addVPCNetwork(AddVPCNetworkRequest request) throws UCloudException; - + + + + + + /** * AddWhiteListResource - 添加NAT网关白名单 * * @param request Request object * @throws UCloudException Exception */ - public AddWhiteListResourceResponse addWhiteListResource(AddWhiteListResourceRequest request) - throws UCloudException; - + public AddWhiteListResourceResponse addWhiteListResource(AddWhiteListResourceRequest request) throws UCloudException; + + + + + + /** * AllocateBatchSecondaryIp - 批量申请虚拟网卡辅助IP * * @param request Request object * @throws UCloudException Exception */ - public AllocateBatchSecondaryIpResponse allocateBatchSecondaryIp( - AllocateBatchSecondaryIpRequest request) throws UCloudException; - + public AllocateBatchSecondaryIpResponse allocateBatchSecondaryIp(AllocateBatchSecondaryIpRequest request) throws UCloudException; + + + + + + /** * AllocateSecondaryIp - 分配ip * * @param request Request object * @throws UCloudException Exception */ - public AllocateSecondaryIpResponse allocateSecondaryIp(AllocateSecondaryIpRequest request) - throws UCloudException; - + public AllocateSecondaryIpResponse allocateSecondaryIp(AllocateSecondaryIpRequest request) throws UCloudException; + + + + + + /** * AllocateVIP - 申请内网虚拟IP * @@ -213,34 +460,51 @@ public AllocateSecondaryIpResponse allocateSecondaryIp(AllocateSecondaryIpReques * @throws UCloudException Exception */ public AllocateVIPResponse allocateVIP(AllocateVIPRequest request) throws UCloudException; - + + + + + + /** * AssociateRouteTable - 绑定子网的路由表 * * @param request Request object * @throws UCloudException Exception */ - public AssociateRouteTableResponse associateRouteTable(AssociateRouteTableRequest request) - throws UCloudException; - + public AssociateRouteTableResponse associateRouteTable(AssociateRouteTableRequest request) throws UCloudException; + + + + + + /** * AttachNetworkInterface - 绑定网卡到云主机 * * @param request Request object * @throws UCloudException Exception */ - public AttachNetworkInterfaceResponse attachNetworkInterface( - AttachNetworkInterfaceRequest request) throws UCloudException; - + public AttachNetworkInterfaceResponse attachNetworkInterface(AttachNetworkInterfaceRequest request) throws UCloudException; + + + + + + /** * CloneRouteTable - 克隆路由表 * * @param request Request object * @throws UCloudException Exception */ - public CloneRouteTableResponse cloneRouteTable(CloneRouteTableRequest request) - throws UCloudException; - + public CloneRouteTableResponse cloneRouteTable(CloneRouteTableRequest request) throws UCloudException; + + + + + + /** * CreateNATGW - 创建NAT网关 * @@ -248,70 +512,103 @@ public CloneRouteTableResponse cloneRouteTable(CloneRouteTableRequest request) * @throws UCloudException Exception */ public CreateNATGWResponse createNATGW(CreateNATGWRequest request) throws UCloudException; - + + + + + + /** * CreateNATGWPolicy - 添加NAT网关端口转发规则 * * @param request Request object * @throws UCloudException Exception */ - public CreateNATGWPolicyResponse createNATGWPolicy(CreateNATGWPolicyRequest request) - throws UCloudException; - + public CreateNATGWPolicyResponse createNATGWPolicy(CreateNATGWPolicyRequest request) throws UCloudException; + + + + + + /** * CreateNetworkAcl - 创建网络ACL * * @param request Request object * @throws UCloudException Exception */ - public CreateNetworkAclResponse createNetworkAcl(CreateNetworkAclRequest request) - throws UCloudException; - + public CreateNetworkAclResponse createNetworkAcl(CreateNetworkAclRequest request) throws UCloudException; + + + + + + /** * CreateNetworkAclAssociation - 创建ACL的绑定关系 * * @param request Request object * @throws UCloudException Exception */ - public CreateNetworkAclAssociationResponse createNetworkAclAssociation( - CreateNetworkAclAssociationRequest request) throws UCloudException; - + public CreateNetworkAclAssociationResponse createNetworkAclAssociation(CreateNetworkAclAssociationRequest request) throws UCloudException; + + + + + + /** * CreateNetworkAclEntry - 创建ACL的规则 * * @param request Request object * @throws UCloudException Exception */ - public CreateNetworkAclEntryResponse createNetworkAclEntry(CreateNetworkAclEntryRequest request) - throws UCloudException; - + public CreateNetworkAclEntryResponse createNetworkAclEntry(CreateNetworkAclEntryRequest request) throws UCloudException; + + + + + + /** * CreateNetworkInterface - 创建虚拟网卡 * * @param request Request object * @throws UCloudException Exception */ - public CreateNetworkInterfaceResponse createNetworkInterface( - CreateNetworkInterfaceRequest request) throws UCloudException; - + public CreateNetworkInterfaceResponse createNetworkInterface(CreateNetworkInterfaceRequest request) throws UCloudException; + + + + + + /** * CreateRouteTable - 创建路由表 * * @param request Request object * @throws UCloudException Exception */ - public CreateRouteTableResponse createRouteTable(CreateRouteTableRequest request) - throws UCloudException; - + public CreateRouteTableResponse createRouteTable(CreateRouteTableRequest request) throws UCloudException; + + + + + + /** * CreateSnatDnatRule - 使用NAT创建内外网IP映射 * * @param request Request object * @throws UCloudException Exception */ - public CreateSnatDnatRuleResponse createSnatDnatRule(CreateSnatDnatRuleRequest request) - throws UCloudException; - + public CreateSnatDnatRuleResponse createSnatDnatRule(CreateSnatDnatRuleRequest request) throws UCloudException; + + + + + + /** * CreateSubnet - 创建子网 * @@ -319,7 +616,12 @@ public CreateSnatDnatRuleResponse createSnatDnatRule(CreateSnatDnatRuleRequest r * @throws UCloudException Exception */ public CreateSubnetResponse createSubnet(CreateSubnetRequest request) throws UCloudException; - + + + + + + /** * CreateVPC - 创建VPC * @@ -327,16 +629,25 @@ public CreateSnatDnatRuleResponse createSnatDnatRule(CreateSnatDnatRuleRequest r * @throws UCloudException Exception */ public CreateVPCResponse createVPC(CreateVPCRequest request) throws UCloudException; - + + + + + + /** * CreateVPCIntercom - 新建VPC互通 * * @param request Request object * @throws UCloudException Exception */ - public CreateVPCIntercomResponse createVPCIntercom(CreateVPCIntercomRequest request) - throws UCloudException; - + public CreateVPCIntercomResponse createVPCIntercom(CreateVPCIntercomRequest request) throws UCloudException; + + + + + + /** * DeleteNATGW - 删除NAT网关 * @@ -344,88 +655,129 @@ public CreateVPCIntercomResponse createVPCIntercom(CreateVPCIntercomRequest requ * @throws UCloudException Exception */ public DeleteNATGWResponse deleteNATGW(DeleteNATGWRequest request) throws UCloudException; - + + + + + + /** * DeleteNATGWPolicy - 删除NAT网关端口转发规则 * * @param request Request object * @throws UCloudException Exception */ - public DeleteNATGWPolicyResponse deleteNATGWPolicy(DeleteNATGWPolicyRequest request) - throws UCloudException; - + public DeleteNATGWPolicyResponse deleteNATGWPolicy(DeleteNATGWPolicyRequest request) throws UCloudException; + + + + + + /** * DeleteNetworkAcl - 删除网络ACL * * @param request Request object * @throws UCloudException Exception */ - public DeleteNetworkAclResponse deleteNetworkAcl(DeleteNetworkAclRequest request) - throws UCloudException; - + public DeleteNetworkAclResponse deleteNetworkAcl(DeleteNetworkAclRequest request) throws UCloudException; + + + + + + /** * DeleteNetworkAclAssociation - 删除网络ACL绑定关系 * * @param request Request object * @throws UCloudException Exception */ - public DeleteNetworkAclAssociationResponse deleteNetworkAclAssociation( - DeleteNetworkAclAssociationRequest request) throws UCloudException; - + public DeleteNetworkAclAssociationResponse deleteNetworkAclAssociation(DeleteNetworkAclAssociationRequest request) throws UCloudException; + + + + + + /** * DeleteNetworkAclEntry - 删除ACL的规则 * * @param request Request object * @throws UCloudException Exception */ - public DeleteNetworkAclEntryResponse deleteNetworkAclEntry(DeleteNetworkAclEntryRequest request) - throws UCloudException; - + public DeleteNetworkAclEntryResponse deleteNetworkAclEntry(DeleteNetworkAclEntryRequest request) throws UCloudException; + + + + + + /** * DeleteNetworkInterface - 删除网卡 * * @param request Request object * @throws UCloudException Exception */ - public DeleteNetworkInterfaceResponse deleteNetworkInterface( - DeleteNetworkInterfaceRequest request) throws UCloudException; - + public DeleteNetworkInterfaceResponse deleteNetworkInterface(DeleteNetworkInterfaceRequest request) throws UCloudException; + + + + + + /** * DeleteRouteTable - 删除自定义路由表 * * @param request Request object * @throws UCloudException Exception */ - public DeleteRouteTableResponse deleteRouteTable(DeleteRouteTableRequest request) - throws UCloudException; - + public DeleteRouteTableResponse deleteRouteTable(DeleteRouteTableRequest request) throws UCloudException; + + + + + + /** * DeleteSecondaryIp - 删除Ip * * @param request Request object * @throws UCloudException Exception */ - public DeleteSecondaryIpResponse deleteSecondaryIp(DeleteSecondaryIpRequest request) - throws UCloudException; - + public DeleteSecondaryIpResponse deleteSecondaryIp(DeleteSecondaryIpRequest request) throws UCloudException; + + + + + + /** * DeleteSnatDnatRule - 删除NAT创建内外网IP映射规则 * * @param request Request object * @throws UCloudException Exception */ - public DeleteSnatDnatRuleResponse deleteSnatDnatRule(DeleteSnatDnatRuleRequest request) - throws UCloudException; - + public DeleteSnatDnatRuleResponse deleteSnatDnatRule(DeleteSnatDnatRuleRequest request) throws UCloudException; + + + + + + /** * DeleteSnatRule - 删除出口规则(SNAT规则) * * @param request Request object * @throws UCloudException Exception */ - public DeleteSnatRuleResponse deleteSnatRule(DeleteSnatRuleRequest request) - throws UCloudException; - + public DeleteSnatRuleResponse deleteSnatRule(DeleteSnatRuleRequest request) throws UCloudException; + + + + + + /** * DeleteSubnet - 删除子网 * @@ -433,7 +785,12 @@ public DeleteSnatRuleResponse deleteSnatRule(DeleteSnatRuleRequest request) * @throws UCloudException Exception */ public DeleteSubnetResponse deleteSubnet(DeleteSubnetRequest request) throws UCloudException; - + + + + + + /** * DeleteVPC - 删除VPC * @@ -441,34 +798,51 @@ public DeleteSnatRuleResponse deleteSnatRule(DeleteSnatRuleRequest request) * @throws UCloudException Exception */ public DeleteVPCResponse deleteVPC(DeleteVPCRequest request) throws UCloudException; - + + + + + + /** * DeleteVPCIntercom - 删除VPC互通 * * @param request Request object * @throws UCloudException Exception */ - public DeleteVPCIntercomResponse deleteVPCIntercom(DeleteVPCIntercomRequest request) - throws UCloudException; - + public DeleteVPCIntercomResponse deleteVPCIntercom(DeleteVPCIntercomRequest request) throws UCloudException; + + + + + + /** * DeleteWhiteListResource - 删除NAT网关白名单列表 * * @param request Request object * @throws UCloudException Exception */ - public DeleteWhiteListResourceResponse deleteWhiteListResource( - DeleteWhiteListResourceRequest request) throws UCloudException; - + public DeleteWhiteListResourceResponse deleteWhiteListResource(DeleteWhiteListResourceRequest request) throws UCloudException; + + + + + + /** * DescribeInstanceNetworkInterface - 展示云主机绑定的网卡信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeInstanceNetworkInterfaceResponse describeInstanceNetworkInterface( - DescribeInstanceNetworkInterfaceRequest request) throws UCloudException; - + public DescribeInstanceNetworkInterfaceResponse describeInstanceNetworkInterface(DescribeInstanceNetworkInterfaceRequest request) throws UCloudException; + + + + + + /** * DescribeNATGW - 获取NAT网关信息 * @@ -476,115 +850,168 @@ public DescribeInstanceNetworkInterfaceResponse describeInstanceNetworkInterface * @throws UCloudException Exception */ public DescribeNATGWResponse describeNATGW(DescribeNATGWRequest request) throws UCloudException; - + + + + + + /** * DescribeNATGWPolicy - 展示NAT网关端口转发规则 * * @param request Request object * @throws UCloudException Exception */ - public DescribeNATGWPolicyResponse describeNATGWPolicy(DescribeNATGWPolicyRequest request) - throws UCloudException; - + public DescribeNATGWPolicyResponse describeNATGWPolicy(DescribeNATGWPolicyRequest request) throws UCloudException; + + + + + + /** * DescribeNetworkAcl - 获取网络ACL * * @param request Request object * @throws UCloudException Exception */ - public DescribeNetworkAclResponse describeNetworkAcl(DescribeNetworkAclRequest request) - throws UCloudException; - + public DescribeNetworkAclResponse describeNetworkAcl(DescribeNetworkAclRequest request) throws UCloudException; + + + + + + /** * DescribeNetworkAclAssociation - 获取网络ACL的绑定关系列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeNetworkAclAssociationResponse describeNetworkAclAssociation( - DescribeNetworkAclAssociationRequest request) throws UCloudException; - + public DescribeNetworkAclAssociationResponse describeNetworkAclAssociation(DescribeNetworkAclAssociationRequest request) throws UCloudException; + + + + + + /** * DescribeNetworkAclAssociationBySubnet - 获取子网的ACL绑定信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeNetworkAclAssociationBySubnetResponse describeNetworkAclAssociationBySubnet( - DescribeNetworkAclAssociationBySubnetRequest request) throws UCloudException; - + public DescribeNetworkAclAssociationBySubnetResponse describeNetworkAclAssociationBySubnet(DescribeNetworkAclAssociationBySubnetRequest request) throws UCloudException; + + + + + + /** * DescribeNetworkAclEntry - 获取ACL的规则信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeNetworkAclEntryResponse describeNetworkAclEntry( - DescribeNetworkAclEntryRequest request) throws UCloudException; - + public DescribeNetworkAclEntryResponse describeNetworkAclEntry(DescribeNetworkAclEntryRequest request) throws UCloudException; + + + + + + /** * DescribeNetworkInterface - 展示虚拟网卡信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeNetworkInterfaceResponse describeNetworkInterface( - DescribeNetworkInterfaceRequest request) throws UCloudException; - + public DescribeNetworkInterfaceResponse describeNetworkInterface(DescribeNetworkInterfaceRequest request) throws UCloudException; + + + + + + /** * DescribeRouteTable - 获取路由表详细信息(包括路由策略) * * @param request Request object * @throws UCloudException Exception */ - public DescribeRouteTableResponse describeRouteTable(DescribeRouteTableRequest request) - throws UCloudException; - + public DescribeRouteTableResponse describeRouteTable(DescribeRouteTableRequest request) throws UCloudException; + + + + + + /** * DescribeSecondaryIp - 查询SecondaryIp * * @param request Request object * @throws UCloudException Exception */ - public DescribeSecondaryIpResponse describeSecondaryIp(DescribeSecondaryIpRequest request) - throws UCloudException; - + public DescribeSecondaryIpResponse describeSecondaryIp(DescribeSecondaryIpRequest request) throws UCloudException; + + + + + + /** * DescribeSnatDnatRule - 获取基于NAT创建的内外网IP映射规则信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeSnatDnatRuleResponse describeSnatDnatRule(DescribeSnatDnatRuleRequest request) - throws UCloudException; - + public DescribeSnatDnatRuleResponse describeSnatDnatRule(DescribeSnatDnatRuleRequest request) throws UCloudException; + + + + + + /** * DescribeSnatRule - 获取Nat网关的出口规则(SNAT规则) * * @param request Request object * @throws UCloudException Exception */ - public DescribeSnatRuleResponse describeSnatRule(DescribeSnatRuleRequest request) - throws UCloudException; - + public DescribeSnatRuleResponse describeSnatRule(DescribeSnatRuleRequest request) throws UCloudException; + + + + + + /** * DescribeSubnet - 获取子网信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeSubnetResponse describeSubnet(DescribeSubnetRequest request) - throws UCloudException; - + public DescribeSubnetResponse describeSubnet(DescribeSubnetRequest request) throws UCloudException; + + + + + + /** * DescribeSubnetResource - 展示子网资源 * * @param request Request object * @throws UCloudException Exception */ - public DescribeSubnetResourceResponse describeSubnetResource( - DescribeSubnetResourceRequest request) throws UCloudException; - + public DescribeSubnetResourceResponse describeSubnetResource(DescribeSubnetResourceRequest request) throws UCloudException; + + + + + + /** * DescribeVIP - 获取内网虚拟IP信息 * @@ -592,7 +1019,12 @@ public DescribeSubnetResourceResponse describeSubnetResource( * @throws UCloudException Exception */ public DescribeVIPResponse describeVIP(DescribeVIPRequest request) throws UCloudException; - + + + + + + /** * DescribeVPC - 获取VPC信息 * @@ -600,106 +1032,155 @@ public DescribeSubnetResourceResponse describeSubnetResource( * @throws UCloudException Exception */ public DescribeVPCResponse describeVPC(DescribeVPCRequest request) throws UCloudException; - + + + + + + /** * DescribeVPCIntercom - 获取VPC互通信息 * * @param request Request object * @throws UCloudException Exception */ - public DescribeVPCIntercomResponse describeVPCIntercom(DescribeVPCIntercomRequest request) - throws UCloudException; - + public DescribeVPCIntercomResponse describeVPCIntercom(DescribeVPCIntercomRequest request) throws UCloudException; + + + + + + /** * DescribeWhiteListResource - 展示NAT网关白名单资源列表 * * @param request Request object * @throws UCloudException Exception */ - public DescribeWhiteListResourceResponse describeWhiteListResource( - DescribeWhiteListResourceRequest request) throws UCloudException; - + public DescribeWhiteListResourceResponse describeWhiteListResource(DescribeWhiteListResourceRequest request) throws UCloudException; + + + + + + /** * DetachNetworkInterface - 解绑云主机关联网卡 * * @param request Request object * @throws UCloudException Exception */ - public DetachNetworkInterfaceResponse detachNetworkInterface( - DetachNetworkInterfaceRequest request) throws UCloudException; - + public DetachNetworkInterfaceResponse detachNetworkInterface(DetachNetworkInterfaceRequest request) throws UCloudException; + + + + + + /** * EnableWhiteList - 修改NAT网关白名单开关 * * @param request Request object * @throws UCloudException Exception */ - public EnableWhiteListResponse enableWhiteList(EnableWhiteListRequest request) - throws UCloudException; - + public EnableWhiteListResponse enableWhiteList(EnableWhiteListRequest request) throws UCloudException; + + + + + + /** * GetAvailableResourceForPolicy - 获取NAT网关可配置端口转发规则的资源信息 * * @param request Request object * @throws UCloudException Exception */ - public GetAvailableResourceForPolicyResponse getAvailableResourceForPolicy( - GetAvailableResourceForPolicyRequest request) throws UCloudException; - + public GetAvailableResourceForPolicyResponse getAvailableResourceForPolicy(GetAvailableResourceForPolicyRequest request) throws UCloudException; + + + + + + /** * GetAvailableResourceForSnatRule - 获得可添加snat规则(出口规则)的资源列表 * * @param request Request object * @throws UCloudException Exception */ - public GetAvailableResourceForSnatRuleResponse getAvailableResourceForSnatRule( - GetAvailableResourceForSnatRuleRequest request) throws UCloudException; - + public GetAvailableResourceForSnatRuleResponse getAvailableResourceForSnatRule(GetAvailableResourceForSnatRuleRequest request) throws UCloudException; + + + + + + /** * GetAvailableResourceForWhiteList - 获取NAT网关可添加白名单的资源 * * @param request Request object * @throws UCloudException Exception */ - public GetAvailableResourceForWhiteListResponse getAvailableResourceForWhiteList( - GetAvailableResourceForWhiteListRequest request) throws UCloudException; - + public GetAvailableResourceForWhiteListResponse getAvailableResourceForWhiteList(GetAvailableResourceForWhiteListRequest request) throws UCloudException; + + + + + + /** * GetNetworkAclTargetResource - 获取ACL规则应用目标列表 * * @param request Request object * @throws UCloudException Exception */ - public GetNetworkAclTargetResourceResponse getNetworkAclTargetResource( - GetNetworkAclTargetResourceRequest request) throws UCloudException; - + public GetNetworkAclTargetResourceResponse getNetworkAclTargetResource(GetNetworkAclTargetResourceRequest request) throws UCloudException; + + + + + + /** * ListSubnetForNATGW - 展示NAT网关可绑定的子网列表 * * @param request Request object * @throws UCloudException Exception */ - public ListSubnetForNATGWResponse listSubnetForNATGW(ListSubnetForNATGWRequest request) - throws UCloudException; - + public ListSubnetForNATGWResponse listSubnetForNATGW(ListSubnetForNATGWRequest request) throws UCloudException; + + + + + + /** * ModifyRouteRule - 路由策略增、删、改 * * @param request Request object * @throws UCloudException Exception */ - public ModifyRouteRuleResponse modifyRouteRule(ModifyRouteRuleRequest request) - throws UCloudException; - + public ModifyRouteRuleResponse modifyRouteRule(ModifyRouteRuleRequest request) throws UCloudException; + + + + + + /** * MoveSecondaryIPMac - 迁移SecondaryIP * * @param request Request object * @throws UCloudException Exception */ - public MoveSecondaryIPMacResponse moveSecondaryIPMac(MoveSecondaryIPMacRequest request) - throws UCloudException; - + public MoveSecondaryIPMacResponse moveSecondaryIPMac(MoveSecondaryIPMacRequest request) throws UCloudException; + + + + + + /** * ReleaseVIP - 释放内网虚拟IP * @@ -707,94 +1188,134 @@ public MoveSecondaryIPMacResponse moveSecondaryIPMac(MoveSecondaryIPMacRequest r * @throws UCloudException Exception */ public ReleaseVIPResponse releaseVIP(ReleaseVIPRequest request) throws UCloudException; - + + + + + + /** * SetGwDefaultExport - 设置NAT网关的默认出口 * * @param request Request object * @throws UCloudException Exception */ - public SetGwDefaultExportResponse setGwDefaultExport(SetGwDefaultExportRequest request) - throws UCloudException; - + public SetGwDefaultExportResponse setGwDefaultExport(SetGwDefaultExportRequest request) throws UCloudException; + + + + + + /** * UpdateNATGWPolicy - 更新NAT网关端口转发规则 * * @param request Request object * @throws UCloudException Exception */ - public UpdateNATGWPolicyResponse updateNATGWPolicy(UpdateNATGWPolicyRequest request) - throws UCloudException; - + public UpdateNATGWPolicyResponse updateNATGWPolicy(UpdateNATGWPolicyRequest request) throws UCloudException; + + + + + + /** * UpdateNATGWSubnet - 更新NAT网关绑定的子网 * * @param request Request object * @throws UCloudException Exception */ - public UpdateNATGWSubnetResponse updateNATGWSubnet(UpdateNATGWSubnetRequest request) - throws UCloudException; - + public UpdateNATGWSubnetResponse updateNATGWSubnet(UpdateNATGWSubnetRequest request) throws UCloudException; + + + + + + /** * UpdateNetworkAcl - 更改ACL * * @param request Request object * @throws UCloudException Exception */ - public UpdateNetworkAclResponse updateNetworkAcl(UpdateNetworkAclRequest request) - throws UCloudException; - + public UpdateNetworkAclResponse updateNetworkAcl(UpdateNetworkAclRequest request) throws UCloudException; + + + + + + /** * UpdateNetworkAclEntry - 更新ACL的规则 * * @param request Request object * @throws UCloudException Exception */ - public UpdateNetworkAclEntryResponse updateNetworkAclEntry(UpdateNetworkAclEntryRequest request) - throws UCloudException; - + public UpdateNetworkAclEntryResponse updateNetworkAclEntry(UpdateNetworkAclEntryRequest request) throws UCloudException; + + + + + + /** * UpdateRouteTableAttribute - 更新路由表基本信息 * * @param request Request object * @throws UCloudException Exception */ - public UpdateRouteTableAttributeResponse updateRouteTableAttribute( - UpdateRouteTableAttributeRequest request) throws UCloudException; - + public UpdateRouteTableAttributeResponse updateRouteTableAttribute(UpdateRouteTableAttributeRequest request) throws UCloudException; + + + + + + /** * UpdateSnatRule - 更新出口规则(SNAT规则) * * @param request Request object * @throws UCloudException Exception */ - public UpdateSnatRuleResponse updateSnatRule(UpdateSnatRuleRequest request) - throws UCloudException; - + public UpdateSnatRuleResponse updateSnatRule(UpdateSnatRuleRequest request) throws UCloudException; + + + + + + /** * UpdateSubnetAttribute - 更新子网信息 * * @param request Request object * @throws UCloudException Exception */ - public UpdateSubnetAttributeResponse updateSubnetAttribute(UpdateSubnetAttributeRequest request) - throws UCloudException; - + public UpdateSubnetAttributeResponse updateSubnetAttribute(UpdateSubnetAttributeRequest request) throws UCloudException; + + + + + + /** * UpdateVIPAttribute - 更新VIP信息 * * @param request Request object * @throws UCloudException Exception */ - public UpdateVIPAttributeResponse updateVIPAttribute(UpdateVIPAttributeRequest request) - throws UCloudException; - + public UpdateVIPAttributeResponse updateVIPAttribute(UpdateVIPAttributeRequest request) throws UCloudException; + + + + + + /** * UpdateVPCNetwork - 更新VPC网段 * * @param request Request object * @throws UCloudException Exception */ - public UpdateVPCNetworkResponse updateVPCNetwork(UpdateVPCNetworkRequest request) - throws UCloudException; + public UpdateVPCNetworkResponse updateVPCNetwork(UpdateVPCNetworkRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddSnatRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddSnatRuleRequest.java index 570df665..f81b18b5 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddSnatRuleRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddSnatRuleRequest.java @@ -1,56 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AddSnatRuleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关的ID */ + + + + /** + * NAT网关的ID + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 需要出外网的私网IP地址,例如10.9.7.xx */ + + + + /** + * 需要出外网的私网IP地址,例如10.9.7.xx + */ @NotEmpty @UCloudParam("SourceIp") private String sourceIp; - - /** EIP的ip地址,例如106.75.xx.xx */ + + + + /** + * EIP的ip地址,例如106.75.xx.xx + */ @NotEmpty @UCloudParam("SnatIp") private String snatIp; - - /** snat规则名称,默认为“出口规则” */ + + + + /** + * snat规则名称,默认为“出口规则” + */ @UCloudParam("Name") private String name; - + + public String getRegion() { return region; } @@ -58,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -66,7 +93,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -74,7 +101,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public String getSourceIp() { return sourceIp; } @@ -82,7 +109,7 @@ public String getSourceIp() { public void setSourceIp(String sourceIp) { this.sourceIp = sourceIp; } - + public String getSnatIp() { return snatIp; } @@ -90,7 +117,7 @@ public String getSnatIp() { public void setSnatIp(String snatIp) { this.snatIp = snatIp; } - + public String getName() { return name; } @@ -98,4 +125,14 @@ public String getName() { public void setName(String name) { this.name = name; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddSnatRuleResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddSnatRuleResponse.java index dba26136..4c9a4d48 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddSnatRuleResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddSnatRuleResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class AddSnatRuleResponse extends Response {} +public class AddSnatRuleResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddVPCNetworkRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddVPCNetworkRequest.java index 907f8127..91d0e18d 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddVPCNetworkRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddVPCNetworkRequest.java @@ -1,45 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class AddVPCNetworkRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 源VPC短ID */ + + + + /** + * 源VPC短ID + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - - /** 增加网段 */ + + + + /** + * 增加网段 + */ @NotEmpty @UCloudParam("Network") private List network; - + + public String getRegion() { return region; } @@ -47,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -55,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -63,7 +84,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public List getNetwork() { return network; } @@ -71,4 +92,14 @@ public List getNetwork() { public void setNetwork(List network) { this.network = network; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddVPCNetworkResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddVPCNetworkResponse.java index 1e2c2b15..6bb1ba7f 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddVPCNetworkResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddVPCNetworkResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class AddVPCNetworkResponse extends Response {} +public class AddVPCNetworkResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddWhiteListResourceRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddWhiteListResourceRequest.java index dd7396bd..d9a56496 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddWhiteListResourceRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddWhiteListResourceRequest.java @@ -1,45 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class AddWhiteListResourceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 可添加白名单的资源Id */ + + + + /** + * 可添加白名单的资源Id + */ @NotEmpty @UCloudParam("ResourceIds") private List resourceIds; - + + public String getRegion() { return region; } @@ -47,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -55,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -63,7 +84,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public List getResourceIds() { return resourceIds; } @@ -71,4 +92,14 @@ public List getResourceIds() { public void setResourceIds(List resourceIds) { this.resourceIds = resourceIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddWhiteListResourceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddWhiteListResourceResponse.java index be570da7..82d1038d 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddWhiteListResourceResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AddWhiteListResourceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class AddWhiteListResourceResponse extends Response {} +public class AddWhiteListResourceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateBatchSecondaryIpRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateBatchSecondaryIpRequest.java index 549cf66e..1c9a1d2e 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateBatchSecondaryIpRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateBatchSecondaryIpRequest.java @@ -1,70 +1,108 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class AllocateBatchSecondaryIpRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Zone") private String zone; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 节点mac */ + + + + /** + * 节点mac + */ @NotEmpty @UCloudParam("Mac") private String mac; - - /** 资源Id */ + + + + /** + * 资源Id + */ @NotEmpty @UCloudParam("ObjectId") private String objectId; - - /** 子网Id(若未指定,则根据zone获取默认子网进行创建) */ + + + + /** + * 子网Id(若未指定,则根据zone获取默认子网进行创建) + */ @UCloudParam("SubnetId") private String subnetId; - - /** vpcId */ + + + + /** + * vpcId + */ @UCloudParam("VPCId") private String vpcId; - - /** 【arry】支持按如下方式申请:①按网段:如192.168.1.32/27,掩码数字最小为27   ②指定IP地址,如192.168.1.3 */ + + + + /** + * 【arry】支持按如下方式申请:①按网段:如192.168.1.32/27,掩码数字最小为27   ②指定IP地址,如192.168.1.3 + */ @UCloudParam("Ip") private List ip; - - /** 申请的内网IP数量 */ + + + + /** + * 申请的内网IP数量 + */ @UCloudParam("Count") private Integer count; - + + public String getRegion() { return region; } @@ -72,7 +110,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -80,7 +118,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -88,7 +126,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getMac() { return mac; } @@ -96,7 +134,7 @@ public String getMac() { public void setMac(String mac) { this.mac = mac; } - + public String getObjectId() { return objectId; } @@ -104,7 +142,7 @@ public String getObjectId() { public void setObjectId(String objectId) { this.objectId = objectId; } - + public String getSubnetId() { return subnetId; } @@ -112,7 +150,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getVPCId() { return vpcId; } @@ -120,7 +158,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public List getIp() { return ip; } @@ -128,7 +166,7 @@ public List getIp() { public void setIp(List ip) { this.ip = ip; } - + public Integer getCount() { return count; } @@ -136,4 +174,14 @@ public Integer getCount() { public void setCount(Integer count) { this.count = count; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateBatchSecondaryIpResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateBatchSecondaryIpResponse.java index 4bb05004..3694de43 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateBatchSecondaryIpResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateBatchSecondaryIpResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class AllocateBatchSecondaryIpResponse extends Response { - /** 详见IpsInfo */ + + + /** + * 详见IpsInfo + */ @SerializedName("IpsInfo") private List ipsInfo; - + + public List getIpsInfo() { return ipsInfo; } @@ -32,118 +41,164 @@ public List getIpsInfo() { public void setIpsInfo(List ipsInfo) { this.ipsInfo = ipsInfo; } + + public static class IpsInfo extends Response { + + + /** + * 内网IP地址 + */ + @SerializedName("Ip") + private String ip; + + + + /** + * 掩码 + */ + @SerializedName("Mask") + private String mask; + + + + /** + * 网关 + */ + @SerializedName("Gateway") + private String gateway; + + + + /** + * MAC地址 + */ + @SerializedName("Mac") + private String mac; + + + + /** + * 子网资源ID + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * VPC资源ID + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * IP分配结果,详见StatusInfo + */ + @SerializedName("Status") + private StatusInfo status; + + + public String getIp() { + return ip; + } - public static class IpsInfo extends Response { - - /** 内网IP地址 */ - @SerializedName("Ip") - private String ip; - - /** 掩码 */ - @SerializedName("Mask") - private String mask; - - /** 网关 */ - @SerializedName("Gateway") - private String gateway; - - /** MAC地址 */ - @SerializedName("Mac") - private String mac; - - /** 子网资源ID */ - @SerializedName("SubnetId") - private String subnetId; - - /** VPC资源ID */ - @SerializedName("VPCId") - private String vpcId; - - /** IP分配结果,详见StatusInfo */ - @SerializedName("Status") - private StatusInfo status; - - public String getIp() { - return ip; - } - - public void setIp(String ip) { - this.ip = ip; - } - - public String getMask() { - return mask; - } - - public void setMask(String mask) { - this.mask = mask; - } + public void setIp(String ip) { + this.ip = ip; + } + + public String getMask() { + return mask; + } - public String getGateway() { - return gateway; - } + public void setMask(String mask) { + this.mask = mask; + } + + public String getGateway() { + return gateway; + } - public void setGateway(String gateway) { - this.gateway = gateway; - } + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public String getMac() { + return mac; + } - public String getMac() { - return mac; - } + public void setMac(String mac) { + this.mac = mac; + } + + public String getSubnetId() { + return subnetId; + } - public void setMac(String mac) { - this.mac = mac; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getVPCId() { + return vpcId; + } - public String getSubnetId() { - return subnetId; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public StatusInfo getStatus() { + return status; + } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } + public void setStatus(StatusInfo status) { + this.status = status; + } + + } + public static class StatusInfo extends Response { + + + /** + * 枚举值:Succeeded,Failed + */ + @SerializedName("StatusCode") + private String statusCode; + + + + /** + * IP分配失败原因 + */ + @SerializedName("Message") + private String message; + + + public String getStatusCode() { + return statusCode; + } - public String getVPCId() { - return vpcId; - } + public void setStatusCode(String statusCode) { + this.statusCode = statusCode; + } + + public String getMessage() { + return message; + } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; + public void setMessage(String message) { + this.message = message; + } + } +} - public StatusInfo getStatus() { - return status; - } - public void setStatus(StatusInfo status) { - this.status = status; - } - } - public static class StatusInfo extends Response { - /** 枚举值:Succeeded,Failed */ - @SerializedName("StatusCode") - private String statusCode; - /** IP分配失败原因 */ - @SerializedName("Message") - private String message; - public String getStatusCode() { - return statusCode; - } - public void setStatusCode(String statusCode) { - this.statusCode = statusCode; - } - public String getMessage() { - return message; - } - public void setMessage(String message) { - this.message = message; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateSecondaryIpRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateSecondaryIpRequest.java index 2f726bf7..aa0ba78b 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateSecondaryIpRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateSecondaryIpRequest.java @@ -1,62 +1,100 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AllocateSecondaryIpRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 节点mac */ + + + + /** + * 节点mac + */ @NotEmpty @UCloudParam("Mac") private String mac; - - /** 资源Id */ + + + + /** + * 资源Id + */ @NotEmpty @UCloudParam("ObjectId") private String objectId; - - /** 子网Id(若未指定,则根据zone获取默认子网进行创建) */ + + + + /** + * 子网Id(若未指定,则根据zone获取默认子网进行创建) + */ @UCloudParam("SubnetId") private String subnetId; - - /** vpcId */ + + + + /** + * vpcId + */ @UCloudParam("VPCId") private String vpcId; - - /** 指定Ip分配 */ + + + + /** + * 指定Ip分配 + */ @UCloudParam("Ip") private String ip; - + + public String getRegion() { return region; } @@ -64,7 +102,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -72,7 +110,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -80,7 +118,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getMac() { return mac; } @@ -88,7 +126,7 @@ public String getMac() { public void setMac(String mac) { this.mac = mac; } - + public String getObjectId() { return objectId; } @@ -96,7 +134,7 @@ public String getObjectId() { public void setObjectId(String objectId) { this.objectId = objectId; } - + public String getSubnetId() { return subnetId; } @@ -104,7 +142,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getVPCId() { return vpcId; } @@ -112,7 +150,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getIp() { return ip; } @@ -120,4 +158,14 @@ public String getIp() { public void setIp(String ip) { this.ip = ip; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateSecondaryIpResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateSecondaryIpResponse.java index 0629772c..b6fd6c57 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateSecondaryIpResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateSecondaryIpResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class AllocateSecondaryIpResponse extends Response { - /** */ + + + /** + * + */ @SerializedName("IpInfo") private IpInfo ipInfo; - + + public IpInfo getIpInfo() { return ipInfo; } @@ -31,79 +41,113 @@ public IpInfo getIpInfo() { public void setIpInfo(IpInfo ipInfo) { this.ipInfo = ipInfo; } + + public static class IpInfo extends Response { + + + /** + * + */ + @SerializedName("Ip") + private String ip; + + + + /** + * + */ + @SerializedName("Mask") + private String mask; + + + + /** + * + */ + @SerializedName("Gateway") + private String gateway; + + + + /** + * + */ + @SerializedName("Mac") + private String mac; + + + + /** + * + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * + */ + @SerializedName("VPCId") + private String vpcId; + + + public String getIp() { + return ip; + } - public static class IpInfo extends Response { - - /** */ - @SerializedName("Ip") - private String ip; - - /** */ - @SerializedName("Mask") - private String mask; - - /** */ - @SerializedName("Gateway") - private String gateway; - - /** */ - @SerializedName("Mac") - private String mac; + public void setIp(String ip) { + this.ip = ip; + } + + public String getMask() { + return mask; + } - /** */ - @SerializedName("SubnetId") - private String subnetId; + public void setMask(String mask) { + this.mask = mask; + } + + public String getGateway() { + return gateway; + } - /** */ - @SerializedName("VPCId") - private String vpcId; + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public String getMac() { + return mac; + } - public String getIp() { - return ip; - } + public void setMac(String mac) { + this.mac = mac; + } + + public String getSubnetId() { + return subnetId; + } - public void setIp(String ip) { - this.ip = ip; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getVPCId() { + return vpcId; + } - public String getMask() { - return mask; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + } +} - public void setMask(String mask) { - this.mask = mask; - } - public String getGateway() { - return gateway; - } - public void setGateway(String gateway) { - this.gateway = gateway; - } - public String getMac() { - return mac; - } - public void setMac(String mac) { - this.mac = mac; - } - public String getSubnetId() { - return subnetId; - } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - public String getVPCId() { - return vpcId; - } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateVIPRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateVIPRequest.java index cebb25ac..035e0d51 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateVIPRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateVIPRequest.java @@ -1,72 +1,122 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AllocateVIPRequest extends Request { - /** 地域 */ + + + /** + * 地域 + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区 */ + + + + /** + * 可用区 + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 指定vip所属的VPC */ + + + + /** + * 指定vip所属的VPC + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - - /** 子网id */ + + + + /** + * 子网id + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - - /** 指定ip */ + + + + /** + * 指定ip + */ @UCloudParam("Ip") private String ip; - - /** 申请数量,默认: 1 */ + + + + /** + * 申请数量,默认: 1 + */ @UCloudParam("Count") private Integer count; - - /** vip名,默认:VIP */ + + + + /** + * vip名,默认:VIP + */ @UCloudParam("Name") private String name; - - /** 业务组名称,默认为Default */ + + + + /** + * 业务组名称,默认为Default + */ @UCloudParam("Tag") private String tag; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - - /** 业务组 */ + + + + /** + * 业务组 + */ @UCloudParam("BusinessId") private String businessId; - + + public String getRegion() { return region; } @@ -74,7 +124,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -82,7 +132,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -90,7 +140,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -98,7 +148,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -106,7 +156,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getIp() { return ip; } @@ -114,7 +164,7 @@ public String getIp() { public void setIp(String ip) { this.ip = ip; } - + public Integer getCount() { return count; } @@ -122,7 +172,7 @@ public Integer getCount() { public void setCount(Integer count) { this.count = count; } - + public String getName() { return name; } @@ -130,7 +180,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getTag() { return tag; } @@ -138,7 +188,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -146,7 +196,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public String getBusinessId() { return businessId; } @@ -154,4 +204,14 @@ public String getBusinessId() { public void setBusinessId(String businessId) { this.businessId = businessId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateVIPResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateVIPResponse.java index a126aefd..d911235f 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateVIPResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AllocateVIPResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class AllocateVIPResponse extends Response { - /** 申请到的VIP资源相关信息 */ + + + /** + * 申请到的VIP资源相关信息 + */ @SerializedName("VIPSet") private List vipSet; - - /** 申请到的VIP地址 */ + + + + /** + * 申请到的VIP地址 + */ @SerializedName("DataSet") private List dataSet; - + + public List getVIPSet() { return vipSet; } @@ -36,7 +49,7 @@ public List getVIPSet() { public void setVIPSet(List vipSet) { this.vipSet = vipSet; } - + public List getDataSet() { return dataSet; } @@ -44,43 +57,65 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class VIPSet extends Response { + + + /** + * 虚拟ip + */ + @SerializedName("VIP") + private String vip; + + + + /** + * 虚拟ip id + */ + @SerializedName("VIPId") + private String vipId; + + + + /** + * VPC id + */ + @SerializedName("VPCId") + private String vpcId; + + + public String getVIP() { + return vip; + } - public static class VIPSet extends Response { + public void setVIP(String vip) { + this.vip = vip; + } + + public String getVIPId() { + return vipId; + } + + public void setVIPId(String vipId) { + this.vipId = vipId; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + } +} - /** 虚拟ip */ - @SerializedName("VIP") - private String vip; - /** 虚拟ip id */ - @SerializedName("VIPId") - private String vipId; - /** VPC id */ - @SerializedName("VPCId") - private String vpcId; - public String getVIP() { - return vip; - } - public void setVIP(String vip) { - this.vip = vip; - } - public String getVIPId() { - return vipId; - } - public void setVIPId(String vipId) { - this.vipId = vipId; - } - public String getVPCId() { - return vpcId; - } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateRouteTableRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateRouteTableRequest.java index 5a5ddbcd..86d7c39d 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateRouteTableRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateRouteTableRequest.java @@ -1,45 +1,67 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AssociateRouteTableRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 子网ID */ + + + + /** + * 子网ID + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - - /** 路由表资源ID */ + + + + /** + * 路由表资源ID + */ @NotEmpty @UCloudParam("RouteTableId") private String routeTableId; - + + public String getRegion() { return region; } @@ -47,7 +69,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -55,7 +77,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSubnetId() { return subnetId; } @@ -63,7 +85,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getRouteTableId() { return routeTableId; } @@ -71,4 +93,14 @@ public String getRouteTableId() { public void setRouteTableId(String routeTableId) { this.routeTableId = routeTableId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateRouteTableResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateRouteTableResponse.java index 56fa2013..4ae740cd 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateRouteTableResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateRouteTableResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class AssociateRouteTableResponse extends Response {} +public class AssociateRouteTableResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AttachNetworkInterfaceRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AttachNetworkInterfaceRequest.java index d7d4ce1c..e6f4ce61 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AttachNetworkInterfaceRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AttachNetworkInterfaceRequest.java @@ -1,48 +1,67 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class AttachNetworkInterfaceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 虚拟网卡ID */ + + + + /** + * 虚拟网卡ID + */ @NotEmpty @UCloudParam("InterfaceId") private String interfaceId; - - /** 云主机ID(仅支持绑定开启网卡功能,且未开启网络增强的云主机) */ + + + + /** + * 云主机ID(仅支持绑定开启网卡功能,且未开启网络增强的云主机) + */ @NotEmpty @UCloudParam("InstanceId") private String instanceId; - + + public String getRegion() { return region; } @@ -50,7 +69,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -58,7 +77,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInterfaceId() { return interfaceId; } @@ -66,7 +85,7 @@ public String getInterfaceId() { public void setInterfaceId(String interfaceId) { this.interfaceId = interfaceId; } - + public String getInstanceId() { return instanceId; } @@ -74,4 +93,14 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AttachNetworkInterfaceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AttachNetworkInterfaceResponse.java index b785c9fa..91da6a91 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AttachNetworkInterfaceResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AttachNetworkInterfaceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class AttachNetworkInterfaceResponse extends Response {} +public class AttachNetworkInterfaceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CloneRouteTableRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CloneRouteTableRequest.java index f3f2d0ec..ed943630 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CloneRouteTableRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CloneRouteTableRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CloneRouteTableRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 被克隆的路由表ID */ + + + + /** + * 被克隆的路由表ID + */ @NotEmpty @UCloudParam("RouteTableId") private String routeTableId; - + + public String getRegion() { return region; } @@ -42,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -50,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getRouteTableId() { return routeTableId; } @@ -58,4 +76,14 @@ public String getRouteTableId() { public void setRouteTableId(String routeTableId) { this.routeTableId = routeTableId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CloneRouteTableResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CloneRouteTableResponse.java index f4adf294..0ff097a4 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CloneRouteTableResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CloneRouteTableResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CloneRouteTableResponse extends Response { - /** 复制后新的路由表资源ID */ + + + /** + * 复制后新的路由表资源ID + */ @SerializedName("RouteTableId") private String routeTableId; - + + public String getRouteTableId() { return routeTableId; } @@ -31,4 +41,14 @@ public String getRouteTableId() { public void setRouteTableId(String routeTableId) { this.routeTableId = routeTableId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWPolicyRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWPolicyRequest.java index a0aadcaf..7605ba80 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWPolicyRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWPolicyRequest.java @@ -1,68 +1,110 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateNATGWPolicyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 协议类型。枚举值为:TCP、UDP */ + + + + /** + * 协议类型。枚举值为:TCP、UDP + */ @NotEmpty @UCloudParam("Protocol") private String protocol; - - /** 源IP。填写对应的EIP Id */ + + + + /** + * 源IP。填写对应的EIP Id + */ @NotEmpty @UCloudParam("SrcEIPId") private String srcEIPId; - - /** 源端口。可填写固定端口,也可填写端口范围。支持的端口范围为1-65535 */ + + + + /** + * 源端口。可填写固定端口,也可填写端口范围。支持的端口范围为1-65535 + */ @NotEmpty @UCloudParam("SrcPort") private String srcPort; - - /** 目标IP。填写对应的目标IP地址 */ + + + + /** + * 目标IP。填写对应的目标IP地址 + */ @NotEmpty @UCloudParam("DstIP") private String dstIP; - - /** 目标端口。可填写固定端口,也可填写端口范围。支持的端口范围为1-65535 */ + + + + /** + * 目标端口。可填写固定端口,也可填写端口范围。支持的端口范围为1-65535 + */ @NotEmpty @UCloudParam("DstPort") private String dstPort; - - /** 转发策略名称。默认为空 */ + + + + /** + * 转发策略名称。默认为空 + */ @UCloudParam("PolicyName") private String policyName; - + + public String getRegion() { return region; } @@ -70,7 +112,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -78,7 +120,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -86,7 +128,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public String getProtocol() { return protocol; } @@ -94,7 +136,7 @@ public String getProtocol() { public void setProtocol(String protocol) { this.protocol = protocol; } - + public String getSrcEIPId() { return srcEIPId; } @@ -102,7 +144,7 @@ public String getSrcEIPId() { public void setSrcEIPId(String srcEIPId) { this.srcEIPId = srcEIPId; } - + public String getSrcPort() { return srcPort; } @@ -110,7 +152,7 @@ public String getSrcPort() { public void setSrcPort(String srcPort) { this.srcPort = srcPort; } - + public String getDstIP() { return dstIP; } @@ -118,7 +160,7 @@ public String getDstIP() { public void setDstIP(String dstIP) { this.dstIP = dstIP; } - + public String getDstPort() { return dstPort; } @@ -126,7 +168,7 @@ public String getDstPort() { public void setDstPort(String dstPort) { this.dstPort = dstPort; } - + public String getPolicyName() { return policyName; } @@ -134,4 +176,14 @@ public String getPolicyName() { public void setPolicyName(String policyName) { this.policyName = policyName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWPolicyResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWPolicyResponse.java index 42a11726..38b134c2 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWPolicyResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWPolicyResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateNATGWPolicyResponse extends Response { - /** 创建时分配的策略Id */ + + + /** + * 创建时分配的策略Id + */ @SerializedName("PolicyId") private String policyId; - + + public String getPolicyId() { return policyId; } @@ -31,4 +41,14 @@ public String getPolicyId() { public void setPolicyId(String policyId) { this.policyId = policyId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWRequest.java index aee37680..f13a081e 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWRequest.java @@ -1,73 +1,115 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateNATGWRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目Id。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关名称 */ + + + + /** + * NAT网关名称 + */ @NotEmpty @UCloudParam("NATGWName") private String natgwName; - - /** NAT网关绑定的EIPId */ + + + + /** + * NAT网关绑定的EIPId + */ @NotEmpty @UCloudParam("EIPIds") private List eipIds; - - /** NAT网关绑定的防火墙Id */ + + + + /** + * NAT网关绑定的防火墙Id + */ @NotEmpty @UCloudParam("FirewallId") private String firewallId; - - /** NAT网关绑定的子网Id,默认为空。 */ + + + + /** + * NAT网关绑定的子网Id,默认为空。 + */ @UCloudParam("SubnetworkIds") private List subnetworkIds; - - /** NAT网关所属的VPC Id。默认为Default VPC Id */ + + + + /** + * NAT网关所属的VPC Id。默认为Default VPC Id + */ @UCloudParam("VPCId") private String vpcId; - - /** 白名单开关标记。0表示关闭,1表示开启。默认为0 */ + + + + /** + * 白名单开关标记。0表示关闭,1表示开启。默认为0 + */ @UCloudParam("IfOpen") private Integer ifOpen; - - /** 业务组。默认为空 */ + + + + /** + * 业务组。默认为空 + */ @UCloudParam("Tag") private String tag; - - /** 备注。默认为空 */ + + + + /** + * 备注。默认为空 + */ @UCloudParam("Remark") private String remark; - + + public String getRegion() { return region; } @@ -75,7 +117,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -83,7 +125,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWName() { return natgwName; } @@ -91,7 +133,7 @@ public String getNATGWName() { public void setNATGWName(String natgwName) { this.natgwName = natgwName; } - + public List getEIPIds() { return eipIds; } @@ -99,7 +141,7 @@ public List getEIPIds() { public void setEIPIds(List eipIds) { this.eipIds = eipIds; } - + public String getFirewallId() { return firewallId; } @@ -107,7 +149,7 @@ public String getFirewallId() { public void setFirewallId(String firewallId) { this.firewallId = firewallId; } - + public List getSubnetworkIds() { return subnetworkIds; } @@ -115,7 +157,7 @@ public List getSubnetworkIds() { public void setSubnetworkIds(List subnetworkIds) { this.subnetworkIds = subnetworkIds; } - + public String getVPCId() { return vpcId; } @@ -123,7 +165,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public Integer getIfOpen() { return ifOpen; } @@ -131,7 +173,7 @@ public Integer getIfOpen() { public void setIfOpen(Integer ifOpen) { this.ifOpen = ifOpen; } - + public String getTag() { return tag; } @@ -139,7 +181,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -147,4 +189,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWResponse.java index 7f77fe08..c2a80686 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNATGWResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateNATGWResponse extends Response { - /** 申请到的NATGateWay Id */ + + + /** + * 申请到的NATGateWay Id + */ @SerializedName("NATGWId") private String natgwId; - + + public String getNATGWId() { return natgwId; } @@ -31,4 +41,14 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclAssociationRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclAssociationRequest.java index 05c25114..7176a1b8 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclAssociationRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclAssociationRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateNetworkAclAssociationRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** ACL的ID */ + + + + /** + * ACL的ID + */ @NotEmpty @UCloudParam("AclId") private String aclId; - - /** 需要绑定的子网ID */ + + + + /** + * 需要绑定的子网ID + */ @NotEmpty @UCloudParam("SubnetworkId") private String subnetworkId; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getAclId() { return aclId; } @@ -65,7 +84,7 @@ public String getAclId() { public void setAclId(String aclId) { this.aclId = aclId; } - + public String getSubnetworkId() { return subnetworkId; } @@ -73,4 +92,14 @@ public String getSubnetworkId() { public void setSubnetworkId(String subnetworkId) { this.subnetworkId = subnetworkId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclAssociationResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclAssociationResponse.java index 9a6cd934..5b99dc98 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclAssociationResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclAssociationResponse.java @@ -1,33 +1,50 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateNetworkAclAssociationResponse extends Response { - /** 创建的绑定关系的ID */ + + + + + /** + * 创建的绑定关系的ID + */ @SerializedName("AssociationId") private String associationId; - - /** 该子网之前的绑定关系信息 */ + + + + /** + * 该子网之前的绑定关系信息 + */ @SerializedName("PrevAssociation") private AssociationInfo prevAssociation; - + + + public String getAssociationId() { return associationId; } @@ -35,7 +52,7 @@ public String getAssociationId() { public void setAssociationId(String associationId) { this.associationId = associationId; } - + public AssociationInfo getPrevAssociation() { return prevAssociation; } @@ -43,55 +60,81 @@ public AssociationInfo getPrevAssociation() { public void setPrevAssociation(AssociationInfo prevAssociation) { this.prevAssociation = prevAssociation; } + + public static class AssociationInfo extends Response { + + + /** + * 绑定ID + */ + @SerializedName("AssociationId") + private String associationId; + + + + /** + * ACL的ID + */ + @SerializedName("AclId") + private String aclId; + + + + /** + * 绑定的子网ID + */ + @SerializedName("SubnetworkId") + private String subnetworkId; + + + + /** + * 创建的Unix时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + public String getAssociationId() { + return associationId; + } - public static class AssociationInfo extends Response { + public void setAssociationId(String associationId) { + this.associationId = associationId; + } + + public String getAclId() { + return aclId; + } - /** 绑定ID */ - @SerializedName("AssociationId") - private String associationId; + public void setAclId(String aclId) { + this.aclId = aclId; + } + + public String getSubnetworkId() { + return subnetworkId; + } - /** ACL的ID */ - @SerializedName("AclId") - private String aclId; + public void setSubnetworkId(String subnetworkId) { + this.subnetworkId = subnetworkId; + } + + public Integer getCreateTime() { + return createTime; + } - /** 绑定的子网ID */ - @SerializedName("SubnetworkId") - private String subnetworkId; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + } +} - /** 创建的Unix时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - public String getAssociationId() { - return associationId; - } - public void setAssociationId(String associationId) { - this.associationId = associationId; - } - public String getAclId() { - return aclId; - } - public void setAclId(String aclId) { - this.aclId = aclId; - } - public String getSubnetworkId() { - return subnetworkId; - } - public void setSubnetworkId(String subnetworkId) { - this.subnetworkId = subnetworkId; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclEntryRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclEntryRequest.java index 32d0b6d1..f727cb29 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclEntryRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclEntryRequest.java @@ -1,82 +1,135 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateNetworkAclEntryRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** ACL的ID */ + + + + /** + * ACL的ID + */ @NotEmpty @UCloudParam("AclId") private String aclId; - - /** Entry的优先级,对于同样的Direction来说,不能重复 */ + + + + /** + * Entry的优先级,对于同样的Direction来说,不能重复 + */ @NotEmpty @UCloudParam("Priority") private Integer priority; - - /** 出向或者入向(“Ingress”, "Egress") */ + + + + /** + * 出向或者入向(“Ingress”, "Egress") + */ @NotEmpty @UCloudParam("Direction") private String direction; - - /** 协议规则描述 */ + + + + /** + * 协议规则描述 + */ @NotEmpty @UCloudParam("IpProtocol") private String ipProtocol; - - /** IPv4段的CIDR表示 */ + + + + /** + * IPv4段的CIDR表示 + */ @NotEmpty @UCloudParam("CidrBlock") private String cidrBlock; - - /** 针对的端口范围 */ + + + + /** + * 针对的端口范围 + */ @NotEmpty @UCloudParam("PortRange") private String portRange; - - /** 规则的行为("Accept", "Reject") */ + + + + /** + * 规则的行为("Accept", "Reject") + */ @NotEmpty @UCloudParam("EntryAction") private String entryAction; - - /** 描述。长度限制为不超过32字节。 */ + + + + /** + * 描述。长度限制为不超过32字节。 + */ @UCloudParam("Description") private String description; - - /** 应用目标类型。0代表“子网内全部资源”,1代表“子网内指定资源”,默认为0 */ + + + + /** + * 应用目标类型。0代表“子网内全部资源”,1代表“子网内指定资源”,默认为0 + */ @UCloudParam("TargetType") private Integer targetType; - - /** 应用目标资源列表。默认为全部资源生效。TargetType为0时不用填写该值。 */ + + + + /** + * 应用目标资源列表。默认为全部资源生效。TargetType为0时不用填写该值。 + */ @UCloudParam("TargetResourceIds") private List targetResourceIds; - + + public String getRegion() { return region; } @@ -84,7 +137,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -92,7 +145,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getAclId() { return aclId; } @@ -100,7 +153,7 @@ public String getAclId() { public void setAclId(String aclId) { this.aclId = aclId; } - + public Integer getPriority() { return priority; } @@ -108,7 +161,7 @@ public Integer getPriority() { public void setPriority(Integer priority) { this.priority = priority; } - + public String getDirection() { return direction; } @@ -116,7 +169,7 @@ public String getDirection() { public void setDirection(String direction) { this.direction = direction; } - + public String getIpProtocol() { return ipProtocol; } @@ -124,7 +177,7 @@ public String getIpProtocol() { public void setIpProtocol(String ipProtocol) { this.ipProtocol = ipProtocol; } - + public String getCidrBlock() { return cidrBlock; } @@ -132,7 +185,7 @@ public String getCidrBlock() { public void setCidrBlock(String cidrBlock) { this.cidrBlock = cidrBlock; } - + public String getPortRange() { return portRange; } @@ -140,7 +193,7 @@ public String getPortRange() { public void setPortRange(String portRange) { this.portRange = portRange; } - + public String getEntryAction() { return entryAction; } @@ -148,7 +201,7 @@ public String getEntryAction() { public void setEntryAction(String entryAction) { this.entryAction = entryAction; } - + public String getDescription() { return description; } @@ -156,7 +209,7 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } - + public Integer getTargetType() { return targetType; } @@ -164,7 +217,7 @@ public Integer getTargetType() { public void setTargetType(Integer targetType) { this.targetType = targetType; } - + public List getTargetResourceIds() { return targetResourceIds; } @@ -172,4 +225,14 @@ public List getTargetResourceIds() { public void setTargetResourceIds(List targetResourceIds) { this.targetResourceIds = targetResourceIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclEntryResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclEntryResponse.java index 84cb9a30..3c462721 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclEntryResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclEntryResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateNetworkAclEntryResponse extends Response { - /** 创建的Entry的ID */ + + + /** + * 创建的Entry的ID + */ @SerializedName("EntryId") private String entryId; - + + public String getEntryId() { return entryId; } @@ -31,4 +41,14 @@ public String getEntryId() { public void setEntryId(String entryId) { this.entryId = entryId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclRequest.java index 03e76ea1..22d45b48 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclRequest.java @@ -1,48 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateNetworkAclRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 将要创建的ACL所属VPC的ID */ + + + + /** + * 将要创建的ACL所属VPC的ID + */ @NotEmpty @UCloudParam("VpcId") private String vpcId; - - /** ACL的名称 */ + + + + /** + * ACL的名称 + */ @NotEmpty @UCloudParam("AclName") private String aclName; - - /** ACL的描述 */ + + + + /** + * ACL的描述 + */ @UCloudParam("Description") private String description; - + + public String getRegion() { return region; } @@ -50,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -58,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVpcId() { return vpcId; } @@ -66,7 +92,7 @@ public String getVpcId() { public void setVpcId(String vpcId) { this.vpcId = vpcId; } - + public String getAclName() { return aclName; } @@ -74,7 +100,7 @@ public String getAclName() { public void setAclName(String aclName) { this.aclName = aclName; } - + public String getDescription() { return description; } @@ -82,4 +108,14 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclResponse.java index 8250acf1..0110a6eb 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkAclResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateNetworkAclResponse extends Response { - /** 创建的ACL的ID */ + + + /** + * 创建的ACL的ID + */ @SerializedName("AclId") private String aclId; - + + public String getAclId() { return aclId; } @@ -31,4 +41,14 @@ public String getAclId() { public void setAclId(String aclId) { this.aclId = aclId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkInterfaceRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkInterfaceRequest.java index c94bfc5e..3ebef026 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkInterfaceRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkInterfaceRequest.java @@ -1,69 +1,108 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateNetworkInterfaceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 所属VPCID */ + + + + /** + * 所属VPCID + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - - /** 所属子网ID */ + + + + /** + * 所属子网ID + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - - /** 虚拟网卡名称,默认为 NetworkInterface */ + + + + /** + * 虚拟网卡名称,默认为 NetworkInterface + */ @UCloudParam("Name") private String name; - - /** 指定内网IP。当前一个网卡仅支持绑定一个内网IP */ + + + + /** + * 指定内网IP。当前一个网卡仅支持绑定一个内网IP + */ @UCloudParam("PrivateIp") private List privateIp; - - /** 防火墙GroupId,默认:Web推荐防火墙 可由DescribeSecurityGroupResponse中的GroupId取得 */ + + + + /** + * 防火墙GroupId,默认:Web推荐防火墙 +可由DescribeSecurityGroupResponse中的GroupId取得 + */ @UCloudParam("SecurityGroupId") private String securityGroupId; - - /** 业务组 */ + + + + /** + * 业务组 + */ @UCloudParam("Tag") private String tag; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - + + public String getRegion() { return region; } @@ -71,7 +110,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -79,7 +118,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -87,7 +126,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -95,7 +134,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getName() { return name; } @@ -103,7 +142,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public List getPrivateIp() { return privateIp; } @@ -111,7 +150,7 @@ public List getPrivateIp() { public void setPrivateIp(List privateIp) { this.privateIp = privateIp; } - + public String getSecurityGroupId() { return securityGroupId; } @@ -119,7 +158,7 @@ public String getSecurityGroupId() { public void setSecurityGroupId(String securityGroupId) { this.securityGroupId = securityGroupId; } - + public String getTag() { return tag; } @@ -127,7 +166,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -135,4 +174,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkInterfaceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkInterfaceResponse.java index 1090f41b..620d6aa2 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkInterfaceResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateNetworkInterfaceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class CreateNetworkInterfaceResponse extends Response { - /** 若创建成功,则返回虚拟网卡信息。创建失败,无此参数 */ + + + /** + * 若创建成功,则返回虚拟网卡信息。创建失败,无此参数 + */ @SerializedName("NetworkInterface") private NetworkInterfaceInfo networkInterface; - + + public NetworkInterfaceInfo getNetworkInterface() { return networkInterface; } @@ -32,175 +41,241 @@ public NetworkInterfaceInfo getNetworkInterface() { public void setNetworkInterface(NetworkInterfaceInfo networkInterface) { this.networkInterface = networkInterface; } + + public static class NetworkInterfaceInfo extends Response { + + + /** + * 虚拟网卡资源ID + */ + @SerializedName("InterfaceId") + private String interfaceId; + + + + /** + * 所属VPC + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 所属子网 + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * 关联内网IP。当前一个网卡仅支持绑定一个内网IP + */ + @SerializedName("PrivateIpSet") + private List privateIpSet; + + + + /** + * 关联Mac + */ + @SerializedName("MacAddress") + private String macAddress; + + + + /** + * 绑定状态 + */ + @SerializedName("Status") + private Integer status; + + + + /** + * 虚拟网卡名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 内网IP掩码 + */ + @SerializedName("Netmask") + private String netmask; + + + + /** + * 默认网关 + */ + @SerializedName("Gateway") + private String gateway; + + + + /** + * 绑定实例资源ID + */ + @SerializedName("AttachInstanceId") + private String attachInstanceId; + + + + /** + * 是否是绑定实例的默认网卡 false:不是 true:是 + */ + @SerializedName("Default") + private Boolean fDefault; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 业务组 + */ + @SerializedName("Tag") + private String tag; + + + public String getInterfaceId() { + return interfaceId; + } - public static class NetworkInterfaceInfo extends Response { - - /** 虚拟网卡资源ID */ - @SerializedName("InterfaceId") - private String interfaceId; - - /** 所属VPC */ - @SerializedName("VPCId") - private String vpcId; - - /** 所属子网 */ - @SerializedName("SubnetId") - private String subnetId; - - /** 关联内网IP。当前一个网卡仅支持绑定一个内网IP */ - @SerializedName("PrivateIpSet") - private List privateIpSet; - - /** 关联Mac */ - @SerializedName("MacAddress") - private String macAddress; - - /** 绑定状态 */ - @SerializedName("Status") - private Integer status; - - /** 虚拟网卡名称 */ - @SerializedName("Name") - private String name; - - /** 内网IP掩码 */ - @SerializedName("Netmask") - private String netmask; - - /** 默认网关 */ - @SerializedName("Gateway") - private String gateway; - - /** 绑定实例资源ID */ - @SerializedName("AttachInstanceId") - private String attachInstanceId; - - /** 是否是绑定实例的默认网卡 false:不是 true:是 */ - @SerializedName("Default") - private Boolean fDefault; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** 业务组 */ - @SerializedName("Tag") - private String tag; - - public String getInterfaceId() { - return interfaceId; - } - - public void setInterfaceId(String interfaceId) { - this.interfaceId = interfaceId; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + public String getVPCId() { + return vpcId; + } - public List getPrivateIpSet() { - return privateIpSet; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } - public void setPrivateIpSet(List privateIpSet) { - this.privateIpSet = privateIpSet; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public List getPrivateIpSet() { + return privateIpSet; + } - public String getMacAddress() { - return macAddress; - } + public void setPrivateIpSet(List privateIpSet) { + this.privateIpSet = privateIpSet; + } + + public String getMacAddress() { + return macAddress; + } - public void setMacAddress(String macAddress) { - this.macAddress = macAddress; - } + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + public Integer getStatus() { + return status; + } - public Integer getStatus() { - return status; - } + public void setStatus(Integer status) { + this.status = status; + } + + public String getName() { + return name; + } - public void setStatus(Integer status) { - this.status = status; - } + public void setName(String name) { + this.name = name; + } + + public String getNetmask() { + return netmask; + } - public String getName() { - return name; - } + public void setNetmask(String netmask) { + this.netmask = netmask; + } + + public String getGateway() { + return gateway; + } - public void setName(String name) { - this.name = name; - } + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public String getAttachInstanceId() { + return attachInstanceId; + } - public String getNetmask() { - return netmask; - } + public void setAttachInstanceId(String attachInstanceId) { + this.attachInstanceId = attachInstanceId; + } + + public Boolean getDefault() { + return fDefault; + } - public void setNetmask(String netmask) { - this.netmask = netmask; - } + public void setDefault(Boolean fDefault) { + this.fDefault = fDefault; + } + + public Integer getCreateTime() { + return createTime; + } - public String getGateway() { - return gateway; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getRemark() { + return remark; + } - public void setGateway(String gateway) { - this.gateway = gateway; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getTag() { + return tag; + } - public String getAttachInstanceId() { - return attachInstanceId; + public void setTag(String tag) { + this.tag = tag; + } + } +} - public void setAttachInstanceId(String attachInstanceId) { - this.attachInstanceId = attachInstanceId; - } - public Boolean getDefault() { - return fDefault; - } - public void setDefault(Boolean fDefault) { - this.fDefault = fDefault; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateRouteTableRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateRouteTableRequest.java index ff2757c8..00f84a63 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateRouteTableRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateRouteTableRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateRouteTableRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 所属的VPC资源ID */ + + + + /** + * 所属的VPC资源ID + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - - /** 路由表名称。默认为RouteTable */ + + + + /** + * 路由表名称。默认为RouteTable + */ @UCloudParam("Name") private String name; - - /** 路由表所属业务组 */ + + + + /** + * 路由表所属业务组 + */ @UCloudParam("Tag") private String tag; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -62,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -70,7 +100,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getName() { return name; } @@ -78,7 +108,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getTag() { return tag; } @@ -86,7 +116,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -94,4 +124,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateRouteTableResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateRouteTableResponse.java index f4726b4d..cdd5ec05 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateRouteTableResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateRouteTableResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateRouteTableResponse extends Response { - /** 路由表ID */ + + + /** + * 路由表ID + */ @SerializedName("RouteTableId") private String routeTableId; - + + public String getRouteTableId() { return routeTableId; } @@ -31,4 +41,14 @@ public String getRouteTableId() { public void setRouteTableId(String routeTableId) { this.routeTableId = routeTableId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSnatDnatRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSnatDnatRuleRequest.java index 2faec430..9952a8be 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSnatDnatRuleRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSnatDnatRuleRequest.java @@ -1,53 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateSnatDnatRuleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 内网P地址 */ + + + + /** + * 内网P地址 + */ @NotEmpty @UCloudParam("PrivateIp") private List privateIp; - - /** EIP的IP地址。按入参顺序,PrivateIp与EIP一一对应建立映射关系。 */ + + + + /** + * EIP的IP地址。按入参顺序,PrivateIp与EIP一一对应建立映射关系。 + */ @NotEmpty @UCloudParam("EIP") private List eip; - - /** 映射所使用的NAT网关资源ID */ + + + + /** + * 映射所使用的NAT网关资源ID + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - + + public String getRegion() { return region; } @@ -55,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -63,7 +85,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getPrivateIp() { return privateIp; } @@ -71,7 +93,7 @@ public List getPrivateIp() { public void setPrivateIp(List privateIp) { this.privateIp = privateIp; } - + public List getEIP() { return eip; } @@ -79,7 +101,7 @@ public List getEIP() { public void setEIP(List eip) { this.eip = eip; } - + public String getNATGWId() { return natgwId; } @@ -87,4 +109,14 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSnatDnatRuleResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSnatDnatRuleResponse.java index cc6ffb4d..4d5c3447 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSnatDnatRuleResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSnatDnatRuleResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class CreateSnatDnatRuleResponse extends Response {} +public class CreateSnatDnatRuleResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSubnetRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSubnetRequest.java index 3486f488..42f73254 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSubnetRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSubnetRequest.java @@ -1,60 +1,98 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateSubnetRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** VPC资源ID */ + + + + /** + * VPC资源ID + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - - /** 子网网络地址,例如192.168.0.0 */ + + + + /** + * 子网网络地址,例如192.168.0.0 + */ @NotEmpty @UCloudParam("Subnet") private String subnet; - - /** 子网网络号位数,默认为24 */ + + + + /** + * 子网网络号位数,默认为24 + */ @UCloudParam("Netmask") private Integer netmask; - - /** 子网名称,默认为Subnet */ + + + + /** + * 子网名称,默认为Subnet + */ @UCloudParam("SubnetName") private String subnetName; - - /** 业务组名称,默认为Default */ + + + + /** + * 业务组名称,默认为Default + */ @UCloudParam("Tag") private String tag; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - + + public String getRegion() { return region; } @@ -62,7 +100,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -70,7 +108,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -78,7 +116,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnet() { return subnet; } @@ -86,7 +124,7 @@ public String getSubnet() { public void setSubnet(String subnet) { this.subnet = subnet; } - + public Integer getNetmask() { return netmask; } @@ -94,7 +132,7 @@ public Integer getNetmask() { public void setNetmask(Integer netmask) { this.netmask = netmask; } - + public String getSubnetName() { return subnetName; } @@ -102,7 +140,7 @@ public String getSubnetName() { public void setSubnetName(String subnetName) { this.subnetName = subnetName; } - + public String getTag() { return tag; } @@ -110,7 +148,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -118,4 +156,14 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSubnetResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSubnetResponse.java index 6ce4fa06..aa13cb95 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSubnetResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSubnetResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateSubnetResponse extends Response { - /** 子网ID */ + + + /** + * 子网ID + */ @SerializedName("SubnetId") private String subnetId; - + + public String getSubnetId() { return subnetId; } @@ -31,4 +41,14 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCIntercomRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCIntercomRequest.java index 81ea1183..57c042e1 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCIntercomRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCIntercomRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class CreateVPCIntercomRequest extends Request { - /** 源VPC所在地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 源VPC所在地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 源VPC短ID */ + + + + /** + * 源VPC短ID + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - - /** 目的VPC短ID */ + + + + /** + * 目的VPC短ID + */ @NotEmpty @UCloudParam("DstVPCId") private String dstVPCId; - - /** 目的VPC所在地域,默认与源VPC同地域。 */ + + + + /** + * 目的VPC所在地域,默认与源VPC同地域。 + */ @UCloudParam("DstRegion") private String dstRegion; - - /** 目的VPC项目ID。默认与源VPC同项目。 */ + + + + /** + * 目的VPC项目ID。默认与源VPC同项目。 + */ @UCloudParam("DstProjectId") private String dstProjectId; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -62,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -70,7 +100,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getDstVPCId() { return dstVPCId; } @@ -78,7 +108,7 @@ public String getDstVPCId() { public void setDstVPCId(String dstVPCId) { this.dstVPCId = dstVPCId; } - + public String getDstRegion() { return dstRegion; } @@ -86,7 +116,7 @@ public String getDstRegion() { public void setDstRegion(String dstRegion) { this.dstRegion = dstRegion; } - + public String getDstProjectId() { return dstProjectId; } @@ -94,4 +124,14 @@ public String getDstProjectId() { public void setDstProjectId(String dstProjectId) { this.dstProjectId = dstProjectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCIntercomResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCIntercomResponse.java index 76d1f21c..f66d5585 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCIntercomResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCIntercomResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class CreateVPCIntercomResponse extends Response {} +public class CreateVPCIntercomResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCRequest.java index f190038e..057eee45 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCRequest.java @@ -1,53 +1,84 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class CreateVPCRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** VPC名称 */ + + + + /** + * VPC名称 + */ @NotEmpty @UCloudParam("Name") private String name; - - /** VPC网段 */ + + + + /** + * VPC网段 + */ @NotEmpty @UCloudParam("Network") private List network; - - /** 业务组名称 */ + + + + /** + * 业务组名称 + */ @UCloudParam("Tag") private String tag; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - + + + + public String getRegion() { return region; } @@ -55,7 +86,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -63,7 +94,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getName() { return name; } @@ -71,7 +102,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public List getNetwork() { return network; } @@ -79,7 +110,7 @@ public List getNetwork() { public void setNetwork(List network) { this.network = network; } - + public String getTag() { return tag; } @@ -87,7 +118,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getRemark() { return remark; } @@ -95,4 +126,15 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCResponse.java index a1b8b07c..ad4e99ca 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateVPCResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class CreateVPCResponse extends Response { - /** VPC资源Id */ + + + /** + * VPC资源Id + */ @SerializedName("VPCId") private String vpcId; - + + public String getVPCId() { return vpcId; } @@ -31,4 +41,14 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWPolicyRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWPolicyRequest.java index b764d273..35ca03e1 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWPolicyRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWPolicyRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteNATGWPolicyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 端口转发规则Id */ + + + + /** + * 端口转发规则Id + */ @NotEmpty @UCloudParam("PolicyId") private String policyId; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -54,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -62,7 +84,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public String getPolicyId() { return policyId; } @@ -70,4 +92,14 @@ public String getPolicyId() { public void setPolicyId(String policyId) { this.policyId = policyId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWPolicyResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWPolicyResponse.java index 318ea2a3..98ac5bbd 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWPolicyResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWPolicyResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteNATGWPolicyResponse extends Response {} +public class DeleteNATGWPolicyResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWRequest.java index a3342bfb..7933dbde 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWRequest.java @@ -1,46 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteNATGWRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目Id。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 是否释放绑定的EIP。true:解绑并释放;false:只解绑不释放。默认为false */ + + + + /** + * 是否释放绑定的EIP。true:解绑并释放;false:只解绑不释放。默认为false + */ @UCloudParam("ReleaseEip") private Boolean releaseEip; - + + public String getRegion() { return region; } @@ -48,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -56,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -64,7 +83,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public Boolean getReleaseEip() { return releaseEip; } @@ -72,4 +91,14 @@ public Boolean getReleaseEip() { public void setReleaseEip(Boolean releaseEip) { this.releaseEip = releaseEip; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWResponse.java index af05f1eb..696dc5ae 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNATGWResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteNATGWResponse extends Response {} +public class DeleteNATGWResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclAssociationRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclAssociationRequest.java index eb5e6cda..63b3f1ee 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclAssociationRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclAssociationRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteNetworkAclAssociationRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 需要删除的AclId */ + + + + /** + * 需要删除的AclId + */ @NotEmpty @UCloudParam("AclId") private String aclId; - - /** 绑定的子网ID */ + + + + /** + * 绑定的子网ID + */ @NotEmpty @UCloudParam("SubnetworkId") private String subnetworkId; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -54,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getAclId() { return aclId; } @@ -62,7 +84,7 @@ public String getAclId() { public void setAclId(String aclId) { this.aclId = aclId; } - + public String getSubnetworkId() { return subnetworkId; } @@ -70,4 +92,14 @@ public String getSubnetworkId() { public void setSubnetworkId(String subnetworkId) { this.subnetworkId = subnetworkId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclAssociationResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclAssociationResponse.java index ef7deb62..ac1ae156 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclAssociationResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclAssociationResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteNetworkAclAssociationResponse extends Response {} +public class DeleteNetworkAclAssociationResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclEntryRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclEntryRequest.java index 1df43e4e..355ead3d 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclEntryRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclEntryRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteNetworkAclEntryRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** Acl的ID */ + + + + /** + * Acl的ID + */ @NotEmpty @UCloudParam("AclId") private String aclId; - - /** 需要删除的EntryId */ + + + + /** + * 需要删除的EntryId + */ @NotEmpty @UCloudParam("EntryId") private String entryId; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -54,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getAclId() { return aclId; } @@ -62,7 +84,7 @@ public String getAclId() { public void setAclId(String aclId) { this.aclId = aclId; } - + public String getEntryId() { return entryId; } @@ -70,4 +92,14 @@ public String getEntryId() { public void setEntryId(String entryId) { this.entryId = entryId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclEntryResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclEntryResponse.java index bbf88300..1ba32be3 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclEntryResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclEntryResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteNetworkAclEntryResponse extends Response {} +public class DeleteNetworkAclEntryResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclRequest.java index 6777a052..b7505d0f 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteNetworkAclRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 需要删除的AclId */ + + + + /** + * 需要删除的AclId + */ @NotEmpty @UCloudParam("AclId") private String aclId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getAclId() { return aclId; } @@ -57,4 +75,14 @@ public String getAclId() { public void setAclId(String aclId) { this.aclId = aclId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclResponse.java index ce9745e7..087379bb 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkAclResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteNetworkAclResponse extends Response {} +public class DeleteNetworkAclResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkInterfaceRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkInterfaceRequest.java index b3515239..7b3ff29b 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkInterfaceRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkInterfaceRequest.java @@ -1,43 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteNetworkInterfaceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 虚拟网卡ID */ + + + + /** + * 虚拟网卡ID + */ @NotEmpty @UCloudParam("InterfaceId") private String interfaceId; - + + public String getRegion() { return region; } @@ -45,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -53,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInterfaceId() { return interfaceId; } @@ -61,4 +76,14 @@ public String getInterfaceId() { public void setInterfaceId(String interfaceId) { this.interfaceId = interfaceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkInterfaceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkInterfaceResponse.java index ca59475d..0d26774f 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkInterfaceResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteNetworkInterfaceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteNetworkInterfaceResponse extends Response {} +public class DeleteNetworkInterfaceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteRouteTableRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteRouteTableRequest.java index 89c01e72..9d56a020 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteRouteTableRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteRouteTableRequest.java @@ -1,40 +1,58 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteRouteTableRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 路由表资源ID */ + + + + /** + * 路由表资源ID + */ @NotEmpty @UCloudParam("RouteTableId") private String routeTableId; - + + public String getRegion() { return region; } @@ -42,7 +60,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -50,7 +68,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getRouteTableId() { return routeTableId; } @@ -58,4 +76,14 @@ public String getRouteTableId() { public void setRouteTableId(String routeTableId) { this.routeTableId = routeTableId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteRouteTableResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteRouteTableResponse.java index fe2ef363..ebdc2407 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteRouteTableResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteRouteTableResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteRouteTableResponse extends Response {} +public class DeleteRouteTableResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecondaryIpRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecondaryIpRequest.java index 3640bc62..138fdaae 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecondaryIpRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecondaryIpRequest.java @@ -1,63 +1,101 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteSecondaryIpRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** ip */ + + + + /** + * ip + */ @NotEmpty @UCloudParam("Ip") private String ip; - - /** mac */ + + + + /** + * mac + */ @NotEmpty @UCloudParam("Mac") private String mac; - - /** 子网Id */ + + + + /** + * 子网Id + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - - /** VPCId */ + + + + /** + * VPCId + */ @UCloudParam("VPCId") private String vpcId; - - /** 资源Id */ + + + + /** + * 资源Id + */ @UCloudParam("ObjectId") private String objectId; - + + public String getRegion() { return region; } @@ -65,7 +103,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -73,7 +111,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -81,7 +119,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getIp() { return ip; } @@ -89,7 +127,7 @@ public String getIp() { public void setIp(String ip) { this.ip = ip; } - + public String getMac() { return mac; } @@ -97,7 +135,7 @@ public String getMac() { public void setMac(String mac) { this.mac = mac; } - + public String getSubnetId() { return subnetId; } @@ -105,7 +143,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getVPCId() { return vpcId; } @@ -113,7 +151,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getObjectId() { return objectId; } @@ -121,4 +159,14 @@ public String getObjectId() { public void setObjectId(String objectId) { this.objectId = objectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecondaryIpResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecondaryIpResponse.java index cf1beb37..3ec87eff 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecondaryIpResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecondaryIpResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteSecondaryIpResponse extends Response {} +public class DeleteSecondaryIpResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatDnatRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatDnatRuleRequest.java index 814ae0f2..275d06b0 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatDnatRuleRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatDnatRuleRequest.java @@ -1,53 +1,76 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DeleteSnatDnatRuleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** EIP的IP地址,PrivateIp与EIP需一一对应 */ + + + + /** + * EIP的IP地址,PrivateIp与EIP需一一对应 + */ @NotEmpty @UCloudParam("EIP") private List eip; + + + + /** + * 内网P地址 - /** 内网P地址 */ + */ @NotEmpty @UCloudParam("PrivateIp") private List privateIp; - - /** 映射所使用的NAT网关资源ID */ + + + + /** + * 映射所使用的NAT网关资源ID + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - + + public String getRegion() { return region; } @@ -55,7 +78,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -63,7 +86,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getEIP() { return eip; } @@ -71,7 +94,7 @@ public List getEIP() { public void setEIP(List eip) { this.eip = eip; } - + public List getPrivateIp() { return privateIp; } @@ -79,7 +102,7 @@ public List getPrivateIp() { public void setPrivateIp(List privateIp) { this.privateIp = privateIp; } - + public String getNATGWId() { return natgwId; } @@ -87,4 +110,14 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatDnatRuleResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatDnatRuleResponse.java index 78957295..4cce308e 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatDnatRuleResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatDnatRuleResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteSnatDnatRuleResponse extends Response {} +public class DeleteSnatDnatRuleResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatRuleRequest.java index 77bb8bad..3f8f3df7 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatRuleRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatRuleRequest.java @@ -1,47 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteSnatRuleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关的ID */ + + + + /** + * NAT网关的ID + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 需要出外网的私网IP地址,例如10.9.7.xx */ + + + + /** + * 需要出外网的私网IP地址,例如10.9.7.xx + */ @NotEmpty @UCloudParam("SourceIp") private String sourceIp; - + + public String getRegion() { return region; } @@ -49,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -65,7 +84,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public String getSourceIp() { return sourceIp; } @@ -73,4 +92,14 @@ public String getSourceIp() { public void setSourceIp(String sourceIp) { this.sourceIp = sourceIp; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatRuleResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatRuleResponse.java index b6c16e07..1d793b91 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatRuleResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSnatRuleResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteSnatRuleResponse extends Response {} +public class DeleteSnatRuleResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSubnetRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSubnetRequest.java index 9940c703..bf732038 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSubnetRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSubnetRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteSubnetRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 子网ID */ + + + + /** + * 子网ID + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSubnetId() { return subnetId; } @@ -57,4 +75,14 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSubnetResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSubnetResponse.java index aabf47ed..d126dfbc 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSubnetResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSubnetResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteSubnetResponse extends Response {} +public class DeleteSubnetResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCIntercomRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCIntercomRequest.java index fcba39a6..03455368 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCIntercomRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCIntercomRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteVPCIntercomRequest extends Request { - /** 源VPC所在地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 源VPC所在地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 源VPC短ID */ + + + + /** + * 源VPC短ID + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - - /** 目的VPC短ID */ + + + + /** + * 目的VPC短ID + */ @NotEmpty @UCloudParam("DstVPCId") private String dstVPCId; - - /** 目的VPC所在地域,默认为源VPC所在地域 */ + + + + /** + * 目的VPC所在地域,默认为源VPC所在地域 + */ @UCloudParam("DstRegion") private String dstRegion; - - /** 目的VPC所在项目ID,默认为源VPC所在项目ID */ + + + + /** + * 目的VPC所在项目ID,默认为源VPC所在项目ID + */ @UCloudParam("DstProjectId") private String dstProjectId; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -62,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -70,7 +100,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getDstVPCId() { return dstVPCId; } @@ -78,7 +108,7 @@ public String getDstVPCId() { public void setDstVPCId(String dstVPCId) { this.dstVPCId = dstVPCId; } - + public String getDstRegion() { return dstRegion; } @@ -86,7 +116,7 @@ public String getDstRegion() { public void setDstRegion(String dstRegion) { this.dstRegion = dstRegion; } - + public String getDstProjectId() { return dstProjectId; } @@ -94,4 +124,14 @@ public String getDstProjectId() { public void setDstProjectId(String dstProjectId) { this.dstProjectId = dstProjectId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCIntercomResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCIntercomResponse.java index d8b3fa64..69508c6a 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCIntercomResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCIntercomResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteVPCIntercomResponse extends Response {} +public class DeleteVPCIntercomResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCRequest.java index 8124549b..6d2d1fb0 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DeleteVPCRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** VPC资源Id */ + + + + /** + * VPC资源Id + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -57,4 +75,14 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCResponse.java index b3ee089c..b2862608 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteVPCResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteVPCResponse extends Response {} +public class DeleteVPCResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteWhiteListResourceRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteWhiteListResourceRequest.java index 717269df..4ecaf17d 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteWhiteListResourceRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteWhiteListResourceRequest.java @@ -1,45 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DeleteWhiteListResourceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 删除白名单的资源Id */ + + + + /** + * 删除白名单的资源Id + */ @NotEmpty @UCloudParam("ResourceIds") private List resourceIds; - + + public String getRegion() { return region; } @@ -47,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -55,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -63,7 +84,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public List getResourceIds() { return resourceIds; } @@ -71,4 +92,14 @@ public List getResourceIds() { public void setResourceIds(List resourceIds) { this.resourceIds = resourceIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteWhiteListResourceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteWhiteListResourceResponse.java index b3db561f..86c7b157 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteWhiteListResourceResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteWhiteListResourceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DeleteWhiteListResourceResponse extends Response {} +public class DeleteWhiteListResourceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeInstanceNetworkInterfaceRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeInstanceNetworkInterfaceRequest.java index 05d6c7dc..6c5cc2fb 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeInstanceNetworkInterfaceRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeInstanceNetworkInterfaceRequest.java @@ -1,51 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeInstanceNetworkInterfaceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 云主机ID */ + + + + /** + * 云主机ID + */ @NotEmpty @UCloudParam("InstanceId") private String instanceId; - - /** 默认为0 */ + + + + /** + * 默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 默认为20 */ + + + + /** + * 默认为20 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -53,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -61,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInstanceId() { return instanceId; } @@ -69,7 +92,7 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } - + public Integer getOffset() { return offset; } @@ -77,7 +100,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -85,4 +108,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeInstanceNetworkInterfaceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeInstanceNetworkInterfaceResponse.java index 761b042f..0b6e2294 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeInstanceNetworkInterfaceResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeInstanceNetworkInterfaceResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeInstanceNetworkInterfaceResponse extends Response { - /** 虚拟网卡信息 */ + + + /** + * 虚拟网卡信息 + */ @SerializedName("NetworkInterfaceSet") private List networkInterfaceSet; - + + public List getNetworkInterfaceSet() { return networkInterfaceSet; } @@ -32,199 +41,273 @@ public List getNetworkInterfaceSet() { public void setNetworkInterfaceSet(List networkInterfaceSet) { this.networkInterfaceSet = networkInterfaceSet; } + + public static class InstanceNetworkInterface extends Response { + + + /** + * 虚拟网卡资源ID + */ + @SerializedName("InterfaceId") + private String interfaceId; + + + + /** + * 所属VPC + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 所属子网 + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * 关联内网IP。当前一个网卡仅支持绑定一个内网IP + */ + @SerializedName("PrivateIpSet") + private List privateIpSet; + + + + /** + * 关联Mac + */ + @SerializedName("MacAddress") + private String macAddress; + + + + /** + * 绑定状态 + */ + @SerializedName("Status") + private Integer status; + + + + /** + * 虚拟网卡名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 内网IP掩码 + */ + @SerializedName("Netmask") + private String netmask; + + + + /** + * 默认网关 + */ + @SerializedName("Gateway") + private String gateway; + + + + /** + * 绑定实例资源ID + */ + @SerializedName("AttachInstanceId") + private String attachInstanceId; + + + + /** + * 是否是绑定实例的默认网卡 false:不是 true:是 + */ + @SerializedName("Default") + private Boolean fDefault; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 虚拟网卡绑定的EIP ID信息 + */ + @SerializedName("EIPIdSet") + private List eipIdSet; + + + + /** + * 虚拟网卡绑定的防火墙ID信息 + */ + @SerializedName("FirewallIdSet") + private List firewallIdSet; + + + public String getInterfaceId() { + return interfaceId; + } - public static class InstanceNetworkInterface extends Response { - - /** 虚拟网卡资源ID */ - @SerializedName("InterfaceId") - private String interfaceId; - - /** 所属VPC */ - @SerializedName("VPCId") - private String vpcId; - - /** 所属子网 */ - @SerializedName("SubnetId") - private String subnetId; - - /** 关联内网IP。当前一个网卡仅支持绑定一个内网IP */ - @SerializedName("PrivateIpSet") - private List privateIpSet; - - /** 关联Mac */ - @SerializedName("MacAddress") - private String macAddress; - - /** 绑定状态 */ - @SerializedName("Status") - private Integer status; - - /** 虚拟网卡名称 */ - @SerializedName("Name") - private String name; - - /** 内网IP掩码 */ - @SerializedName("Netmask") - private String netmask; - - /** 默认网关 */ - @SerializedName("Gateway") - private String gateway; - - /** 绑定实例资源ID */ - @SerializedName("AttachInstanceId") - private String attachInstanceId; - - /** 是否是绑定实例的默认网卡 false:不是 true:是 */ - @SerializedName("Default") - private Boolean fDefault; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** 业务组 */ - @SerializedName("Tag") - private String tag; - - /** 虚拟网卡绑定的EIP ID信息 */ - @SerializedName("EIPIdSet") - private List eipIdSet; - - /** 虚拟网卡绑定的防火墙ID信息 */ - @SerializedName("FirewallIdSet") - private List firewallIdSet; - - public String getInterfaceId() { - return interfaceId; - } - - public void setInterfaceId(String interfaceId) { - this.interfaceId = interfaceId; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public List getPrivateIpSet() { - return privateIpSet; - } - - public void setPrivateIpSet(List privateIpSet) { - this.privateIpSet = privateIpSet; - } + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + public String getVPCId() { + return vpcId; + } - public String getMacAddress() { - return macAddress; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } - public void setMacAddress(String macAddress) { - this.macAddress = macAddress; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public List getPrivateIpSet() { + return privateIpSet; + } - public Integer getStatus() { - return status; - } + public void setPrivateIpSet(List privateIpSet) { + this.privateIpSet = privateIpSet; + } + + public String getMacAddress() { + return macAddress; + } - public void setStatus(Integer status) { - this.status = status; - } + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + public Integer getStatus() { + return status; + } - public String getName() { - return name; - } + public void setStatus(Integer status) { + this.status = status; + } + + public String getName() { + return name; + } - public void setName(String name) { - this.name = name; - } + public void setName(String name) { + this.name = name; + } + + public String getNetmask() { + return netmask; + } - public String getNetmask() { - return netmask; - } + public void setNetmask(String netmask) { + this.netmask = netmask; + } + + public String getGateway() { + return gateway; + } - public void setNetmask(String netmask) { - this.netmask = netmask; - } + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public String getAttachInstanceId() { + return attachInstanceId; + } - public String getGateway() { - return gateway; - } + public void setAttachInstanceId(String attachInstanceId) { + this.attachInstanceId = attachInstanceId; + } + + public Boolean getDefault() { + return fDefault; + } - public void setGateway(String gateway) { - this.gateway = gateway; - } + public void setDefault(Boolean fDefault) { + this.fDefault = fDefault; + } + + public Integer getCreateTime() { + return createTime; + } - public String getAttachInstanceId() { - return attachInstanceId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getRemark() { + return remark; + } - public void setAttachInstanceId(String attachInstanceId) { - this.attachInstanceId = attachInstanceId; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getTag() { + return tag; + } - public Boolean getDefault() { - return fDefault; - } + public void setTag(String tag) { + this.tag = tag; + } + + public List getEIPIdSet() { + return eipIdSet; + } - public void setDefault(Boolean fDefault) { - this.fDefault = fDefault; - } + public void setEIPIdSet(List eipIdSet) { + this.eipIdSet = eipIdSet; + } + + public List getFirewallIdSet() { + return firewallIdSet; + } - public Integer getCreateTime() { - return createTime; + public void setFirewallIdSet(List firewallIdSet) { + this.firewallIdSet = firewallIdSet; + } + } +} - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - public List getEIPIdSet() { - return eipIdSet; - } - public void setEIPIdSet(List eipIdSet) { - this.eipIdSet = eipIdSet; - } - public List getFirewallIdSet() { - return firewallIdSet; - } - public void setFirewallIdSet(List firewallIdSet) { - this.firewallIdSet = firewallIdSet; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWPolicyRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWPolicyRequest.java index dea935a0..1cc13877 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWPolicyRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWPolicyRequest.java @@ -1,47 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeNATGWPolicyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 返回数据长度,默认为10000 */ + + + + /** + * 返回数据长度,默认为10000 + */ @UCloudParam("Limit") private Integer limit; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - + + public String getRegion() { return region; } @@ -49,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -65,7 +91,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public Integer getLimit() { return limit; } @@ -73,7 +99,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -81,4 +107,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWPolicyResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWPolicyResponse.java index 8c47988d..e2f9b6fb 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWPolicyResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWPolicyResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeNATGWPolicyResponse extends Response { - /** 满足条件的转发策略总数 */ + + + /** + * 满足条件的转发策略总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 查到的NATGW 转发策略的详细信息 */ + + + + /** + * 查到的NATGW 转发策略的详细信息 + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,115 +57,161 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class NATGWPolicyDataSet extends Response { + + + /** + * NAT网关Id + */ + @SerializedName("NATGWId") + private String natgwId; + + + + /** + * 转发策略Id + */ + @SerializedName("PolicyId") + private String policyId; + + + + /** + * 协议类型 + */ + @SerializedName("Protocol") + private String protocol; + + + + /** + * 端口转发前端EIP + */ + @SerializedName("SrcEIP") + private String srcEIP; + + + + /** + * 端口转发前端EIP Id + */ + @SerializedName("SrcEIPId") + private String srcEIPId; + + + + /** + * 源端口 + */ + @SerializedName("SrcPort") + private String srcPort; + + + + /** + * 目的地址 + */ + @SerializedName("DstIP") + private String dstIP; + + + + /** + * 目的端口 + */ + @SerializedName("DstPort") + private String dstPort; + + + + /** + * 转发策略名称 + */ + @SerializedName("PolicyName") + private String policyName; + + + public String getNATGWId() { + return natgwId; + } - public static class NATGWPolicyDataSet extends Response { - - /** NAT网关Id */ - @SerializedName("NATGWId") - private String natgwId; - - /** 转发策略Id */ - @SerializedName("PolicyId") - private String policyId; - - /** 协议类型 */ - @SerializedName("Protocol") - private String protocol; - - /** 端口转发前端EIP */ - @SerializedName("SrcEIP") - private String srcEIP; - - /** 端口转发前端EIP Id */ - @SerializedName("SrcEIPId") - private String srcEIPId; - - /** 源端口 */ - @SerializedName("SrcPort") - private String srcPort; - - /** 目的地址 */ - @SerializedName("DstIP") - private String dstIP; - - /** 目的端口 */ - @SerializedName("DstPort") - private String dstPort; - - /** 转发策略名称 */ - @SerializedName("PolicyName") - private String policyName; - - public String getNATGWId() { - return natgwId; - } + public void setNATGWId(String natgwId) { + this.natgwId = natgwId; + } + + public String getPolicyId() { + return policyId; + } - public void setNATGWId(String natgwId) { - this.natgwId = natgwId; - } + public void setPolicyId(String policyId) { + this.policyId = policyId; + } + + public String getProtocol() { + return protocol; + } - public String getPolicyId() { - return policyId; - } + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getSrcEIP() { + return srcEIP; + } - public void setPolicyId(String policyId) { - this.policyId = policyId; - } + public void setSrcEIP(String srcEIP) { + this.srcEIP = srcEIP; + } + + public String getSrcEIPId() { + return srcEIPId; + } - public String getProtocol() { - return protocol; - } + public void setSrcEIPId(String srcEIPId) { + this.srcEIPId = srcEIPId; + } + + public String getSrcPort() { + return srcPort; + } - public void setProtocol(String protocol) { - this.protocol = protocol; - } + public void setSrcPort(String srcPort) { + this.srcPort = srcPort; + } + + public String getDstIP() { + return dstIP; + } - public String getSrcEIP() { - return srcEIP; - } + public void setDstIP(String dstIP) { + this.dstIP = dstIP; + } + + public String getDstPort() { + return dstPort; + } - public void setSrcEIP(String srcEIP) { - this.srcEIP = srcEIP; - } + public void setDstPort(String dstPort) { + this.dstPort = dstPort; + } + + public String getPolicyName() { + return policyName; + } - public String getSrcEIPId() { - return srcEIPId; + public void setPolicyName(String policyName) { + this.policyName = policyName; + } + } +} - public void setSrcEIPId(String srcEIPId) { - this.srcEIPId = srcEIPId; - } - public String getSrcPort() { - return srcPort; - } - public void setSrcPort(String srcPort) { - this.srcPort = srcPort; - } - public String getDstIP() { - return dstIP; - } - public void setDstIP(String dstIP) { - this.dstIP = dstIP; - } - public String getDstPort() { - return dstPort; - } - public void setDstPort(String dstPort) { - this.dstPort = dstPort; - } - public String getPolicyName() { - return policyName; - } - public void setPolicyName(String policyName) { - this.policyName = policyName; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWRequest.java index 0d8d1760..5c8debdd 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWRequest.java @@ -1,50 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeNATGWRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目Id。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id。默认为该项目下所有NAT网关 */ + + + + /** + * NAT网关Id。默认为该项目下所有NAT网关 + */ @UCloudParam("NATGWIds") private List natgwIds; - - /** 数据偏移量。默认为0 */ + + + + /** + * 数据偏移量。默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 数据分页值。默认为20 */ + + + + /** + * 数据分页值。默认为20 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -52,7 +74,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -60,7 +82,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getNATGWIds() { return natgwIds; } @@ -68,7 +90,7 @@ public List getNATGWIds() { public void setNATGWIds(List natgwIds) { this.natgwIds = natgwIds; } - + public Integer getOffset() { return offset; } @@ -76,7 +98,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -84,4 +106,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWResponse.java index f7a5dab9..30bb0483 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNATGWResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeNATGWResponse extends Response { - /** 满足条件的实例的总数 */ + + + /** + * 满足条件的实例的总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 查到的NATGW信息列表 */ + + + + /** + * 查到的NATGW信息列表 + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,280 +57,378 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - - public static class NatGWIPResInfo extends Response { - - /** IP的运营商信息 */ - @SerializedName("OperatorName") - private String operatorName; - - /** 外网IP */ - @SerializedName("EIP") - private String eip; - - public String getOperatorName() { - return operatorName; - } - - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; - } - - public String getEIP() { - return eip; - } - - public void setEIP(String eip) { - this.eip = eip; - } + + public static class NatGWIPResInfo extends Response { + + + /** + * IP的运营商信息 + */ + @SerializedName("OperatorName") + private String operatorName; + + + + /** + * 外网IP + */ + @SerializedName("EIP") + private String eip; + + + public String getOperatorName() { + return operatorName; } - public static class NatGatewayDataSet extends Response { - - /** natgw id */ - @SerializedName("NATGWId") - private String natgwId; - - /** natgw名称 */ - @SerializedName("NATGWName") - private String natgwName; - - /** 业务组 */ - @SerializedName("Tag") - private String tag; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** natgw创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 绑定的防火墙Id */ - @SerializedName("FirewallId") - private String firewallId; - - /** 所属VPC Id */ - @SerializedName("VPCId") - private String vpcId; - - /** 子网 Id */ - @SerializedName("SubnetSet") - private List subnetSet; - - /** 绑定的EIP 信息 */ - @SerializedName("IPSet") - private List ipSet; - - /** VPC名称 */ - @SerializedName("VPCName") - private String vpcName; - - /** 枚举值,“enable”,默认出口规则使用了负载均衡;“disable”,默认出口规则未使用负载均衡。 */ - @SerializedName("IsSnatpoolEnabled") - private String isSnatpoolEnabled; - - /** 转发策略Id */ - @SerializedName("PolicyId") - private List policyId; - - public String getNATGWId() { - return natgwId; - } - - public void setNATGWId(String natgwId) { - this.natgwId = natgwId; - } - - public String getNATGWName() { - return natgwName; - } - - public void setNATGWName(String natgwName) { - this.natgwName = natgwName; - } - - public String getTag() { - return tag; - } - - public void setTag(String tag) { - this.tag = tag; - } - - public String getRemark() { - return remark; - } - - public void setRemark(String remark) { - this.remark = remark; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public String getFirewallId() { - return firewallId; - } - - public void setFirewallId(String firewallId) { - this.firewallId = firewallId; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public List getSubnetSet() { - return subnetSet; - } - - public void setSubnetSet(List subnetSet) { - this.subnetSet = subnetSet; - } - - public List getIPSet() { - return ipSet; - } - - public void setIPSet(List ipSet) { - this.ipSet = ipSet; - } - - public String getVPCName() { - return vpcName; - } - - public void setVPCName(String vpcName) { - this.vpcName = vpcName; - } + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public String getEIP() { + return eip; + } - public String getIsSnatpoolEnabled() { - return isSnatpoolEnabled; - } + public void setEIP(String eip) { + this.eip = eip; + } + + } + public static class NatGatewayDataSet extends Response { + + + /** + * natgw id + */ + @SerializedName("NATGWId") + private String natgwId; + + + + /** + * natgw名称 + */ + @SerializedName("NATGWName") + private String natgwName; + + + + /** + * 业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * natgw创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 绑定的防火墙Id + */ + @SerializedName("FirewallId") + private String firewallId; + + + + /** + * 所属VPC Id + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 子网 Id + */ + @SerializedName("SubnetSet") + private List subnetSet; + + + + /** + * 绑定的EIP 信息 + */ + @SerializedName("IPSet") + private List ipSet; + + + + /** + * VPC名称 + */ + @SerializedName("VPCName") + private String vpcName; + + + + /** + * 枚举值,“enable”,默认出口规则使用了负载均衡;“disable”,默认出口规则未使用负载均衡。 + */ + @SerializedName("IsSnatpoolEnabled") + private String isSnatpoolEnabled; + + + + /** + * 转发策略Id + */ + @SerializedName("PolicyId") + private List policyId; + + + public String getNATGWId() { + return natgwId; + } - public void setIsSnatpoolEnabled(String isSnatpoolEnabled) { - this.isSnatpoolEnabled = isSnatpoolEnabled; - } + public void setNATGWId(String natgwId) { + this.natgwId = natgwId; + } + + public String getNATGWName() { + return natgwName; + } - public List getPolicyId() { - return policyId; - } + public void setNATGWName(String natgwName) { + this.natgwName = natgwName; + } + + public String getTag() { + return tag; + } - public void setPolicyId(List policyId) { - this.policyId = policyId; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; } - public static class NatGatewayIPSet extends Response { + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getCreateTime() { + return createTime; + } - /** 外网IP的 EIPId */ - @SerializedName("EIPId") - private String eipId; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getFirewallId() { + return firewallId; + } - /** 权重为100的为出口 */ - @SerializedName("Weight") - private Integer weight; + public void setFirewallId(String firewallId) { + this.firewallId = firewallId; + } + + public String getVPCId() { + return vpcId; + } - /** EIP带宽类型 */ - @SerializedName("BandwidthType") - private String bandwidthType; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public List getSubnetSet() { + return subnetSet; + } - /** 带宽 */ - @SerializedName("Bandwidth") - private Integer bandwidth; + public void setSubnetSet(List subnetSet) { + this.subnetSet = subnetSet; + } + + public List getIPSet() { + return ipSet; + } - /** 外网IP信息 */ - @SerializedName("IPResInfo") - private List ipResInfo; + public void setIPSet(List ipSet) { + this.ipSet = ipSet; + } + + public String getVPCName() { + return vpcName; + } - public String getEIPId() { - return eipId; - } + public void setVPCName(String vpcName) { + this.vpcName = vpcName; + } + + public String getIsSnatpoolEnabled() { + return isSnatpoolEnabled; + } - public void setEIPId(String eipId) { - this.eipId = eipId; - } + public void setIsSnatpoolEnabled(String isSnatpoolEnabled) { + this.isSnatpoolEnabled = isSnatpoolEnabled; + } + + public List getPolicyId() { + return policyId; + } - public Integer getWeight() { - return weight; - } + public void setPolicyId(List policyId) { + this.policyId = policyId; + } + + } + public static class NatGatewayIPSet extends Response { + + + /** + * 外网IP的 EIPId + */ + @SerializedName("EIPId") + private String eipId; + + + + /** + * 权重为100的为出口 + */ + @SerializedName("Weight") + private Integer weight; + + + + /** + * EIP带宽类型 + */ + @SerializedName("BandwidthType") + private String bandwidthType; + + + + /** + * 带宽 + */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + + + /** + * 外网IP信息 + */ + @SerializedName("IPResInfo") + private List ipResInfo; + + + public String getEIPId() { + return eipId; + } - public void setWeight(Integer weight) { - this.weight = weight; - } + public void setEIPId(String eipId) { + this.eipId = eipId; + } + + public Integer getWeight() { + return weight; + } - public String getBandwidthType() { - return bandwidthType; - } + public void setWeight(Integer weight) { + this.weight = weight; + } + + public String getBandwidthType() { + return bandwidthType; + } - public void setBandwidthType(String bandwidthType) { - this.bandwidthType = bandwidthType; - } + public void setBandwidthType(String bandwidthType) { + this.bandwidthType = bandwidthType; + } + + public Integer getBandwidth() { + return bandwidth; + } - public Integer getBandwidth() { - return bandwidth; - } + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public List getIPResInfo() { + return ipResInfo; + } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } + public void setIPResInfo(List ipResInfo) { + this.ipResInfo = ipResInfo; + } + + } + public static class NatGatewaySubnetSet extends Response { + + + /** + * 子网id + */ + @SerializedName("SubnetworkId") + private String subnetworkId; + + + + /** + * 子网网段 + */ + @SerializedName("Subnet") + private String subnet; + + + + /** + * 子网名字 + */ + @SerializedName("SubnetName") + private String subnetName; + + + public String getSubnetworkId() { + return subnetworkId; + } - public List getIPResInfo() { - return ipResInfo; - } + public void setSubnetworkId(String subnetworkId) { + this.subnetworkId = subnetworkId; + } + + public String getSubnet() { + return subnet; + } - public void setIPResInfo(List ipResInfo) { - this.ipResInfo = ipResInfo; - } + public void setSubnet(String subnet) { + this.subnet = subnet; + } + + public String getSubnetName() { + return subnetName; } - public static class NatGatewaySubnetSet extends Response { + public void setSubnetName(String subnetName) { + this.subnetName = subnetName; + } + + } +} - /** 子网id */ - @SerializedName("SubnetworkId") - private String subnetworkId; - /** 子网网段 */ - @SerializedName("Subnet") - private String subnet; - /** 子网名字 */ - @SerializedName("SubnetName") - private String subnetName; - public String getSubnetworkId() { - return subnetworkId; - } - public void setSubnetworkId(String subnetworkId) { - this.subnetworkId = subnetworkId; - } - public String getSubnet() { - return subnet; - } - public void setSubnet(String subnet) { - this.subnet = subnet; - } - public String getSubnetName() { - return subnetName; - } - public void setSubnetName(String subnetName) { - this.subnetName = subnetName; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationBySubnetRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationBySubnetRequest.java index e6957437..1c2c2e4f 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationBySubnetRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationBySubnetRequest.java @@ -1,39 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeNetworkAclAssociationBySubnetRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 子网的ID */ + + + + /** + * 子网的ID + */ @NotEmpty @UCloudParam("SubnetworkId") private String subnetworkId; - + + public String getRegion() { return region; } @@ -41,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -49,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSubnetworkId() { return subnetworkId; } @@ -57,4 +75,14 @@ public String getSubnetworkId() { public void setSubnetworkId(String subnetworkId) { this.subnetworkId = subnetworkId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationBySubnetResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationBySubnetResponse.java index 5fe8b8c9..439d3f6b 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationBySubnetResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationBySubnetResponse.java @@ -1,29 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; -import cn.ucloud.common.response.Response; import com.google.gson.annotations.SerializedName; +import cn.ucloud.common.response.Response; + public class DescribeNetworkAclAssociationBySubnetResponse extends Response { - /** 绑定信息 */ + + + /** + * 绑定信息 + */ @SerializedName("Association") private AssociationInfo association; - + + public AssociationInfo getAssociation() { return association; } @@ -31,55 +41,81 @@ public AssociationInfo getAssociation() { public void setAssociation(AssociationInfo association) { this.association = association; } + + public static class AssociationInfo extends Response { + + + /** + * 绑定ID + */ + @SerializedName("AssociationId") + private String associationId; + + + + /** + * ACL的ID + */ + @SerializedName("AclId") + private String aclId; + + + + /** + * 绑定的子网ID + */ + @SerializedName("SubnetworkId") + private String subnetworkId; + + + + /** + * 创建的Unix时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + public String getAssociationId() { + return associationId; + } - public static class AssociationInfo extends Response { + public void setAssociationId(String associationId) { + this.associationId = associationId; + } + + public String getAclId() { + return aclId; + } - /** 绑定ID */ - @SerializedName("AssociationId") - private String associationId; + public void setAclId(String aclId) { + this.aclId = aclId; + } + + public String getSubnetworkId() { + return subnetworkId; + } - /** ACL的ID */ - @SerializedName("AclId") - private String aclId; + public void setSubnetworkId(String subnetworkId) { + this.subnetworkId = subnetworkId; + } + + public Integer getCreateTime() { + return createTime; + } - /** 绑定的子网ID */ - @SerializedName("SubnetworkId") - private String subnetworkId; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + } +} - /** 创建的Unix时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - public String getAssociationId() { - return associationId; - } - public void setAssociationId(String associationId) { - this.associationId = associationId; - } - public String getAclId() { - return aclId; - } - public void setAclId(String aclId) { - this.aclId = aclId; - } - public String getSubnetworkId() { - return subnetworkId; - } - public void setSubnetworkId(String subnetworkId) { - this.subnetworkId = subnetworkId; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationRequest.java index ad538b89..6ab614bb 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationRequest.java @@ -1,47 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeNetworkAclAssociationRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** Acl的ID */ + + + + /** + * Acl的ID + */ @NotEmpty @UCloudParam("AclId") private String aclId; - - /** 列表偏移量 */ + + + + /** + * 列表偏移量 + */ @UCloudParam("Offset") private Integer offset; - - /** 列表获取的个数限制 */ + + + + /** + * 列表获取的个数限制 + */ @UCloudParam("Limit") private String limit; - + + public String getRegion() { return region; } @@ -49,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getAclId() { return aclId; } @@ -65,7 +91,7 @@ public String getAclId() { public void setAclId(String aclId) { this.aclId = aclId; } - + public Integer getOffset() { return offset; } @@ -73,7 +99,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public String getLimit() { return limit; } @@ -81,4 +107,14 @@ public String getLimit() { public void setLimit(String limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationResponse.java index 5a483ea1..73427289 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclAssociationResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeNetworkAclAssociationResponse extends Response { - /** 绑定信息列表 */ + + + /** + * 绑定信息列表 + */ @SerializedName("AssociationList") private List associationList; - + + public List getAssociationList() { return associationList; } @@ -32,55 +41,81 @@ public List getAssociationList() { public void setAssociationList(List associationList) { this.associationList = associationList; } + + public static class AssociationInfo extends Response { + + + /** + * 绑定ID + */ + @SerializedName("AssociationId") + private String associationId; + + + + /** + * ACL的ID + */ + @SerializedName("AclId") + private String aclId; + + + + /** + * 绑定的子网ID + */ + @SerializedName("SubnetworkId") + private String subnetworkId; + + + + /** + * 创建的Unix时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + public String getAssociationId() { + return associationId; + } - public static class AssociationInfo extends Response { + public void setAssociationId(String associationId) { + this.associationId = associationId; + } + + public String getAclId() { + return aclId; + } - /** 绑定ID */ - @SerializedName("AssociationId") - private String associationId; + public void setAclId(String aclId) { + this.aclId = aclId; + } + + public String getSubnetworkId() { + return subnetworkId; + } - /** ACL的ID */ - @SerializedName("AclId") - private String aclId; + public void setSubnetworkId(String subnetworkId) { + this.subnetworkId = subnetworkId; + } + + public Integer getCreateTime() { + return createTime; + } - /** 绑定的子网ID */ - @SerializedName("SubnetworkId") - private String subnetworkId; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + } +} - /** 创建的Unix时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - public String getAssociationId() { - return associationId; - } - public void setAssociationId(String associationId) { - this.associationId = associationId; - } - public String getAclId() { - return aclId; - } - public void setAclId(String aclId) { - this.aclId = aclId; - } - public String getSubnetworkId() { - return subnetworkId; - } - public void setSubnetworkId(String subnetworkId) { - this.subnetworkId = subnetworkId; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclEntryRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclEntryRequest.java index c43ff87a..160e96e5 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclEntryRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclEntryRequest.java @@ -1,42 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeNetworkAclEntryRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** ACL的ID */ + + + + /** + * ACL的ID + */ @NotEmpty @UCloudParam("AclId") private String aclId; - + + public String getRegion() { return region; } @@ -44,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -52,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getAclId() { return aclId; } @@ -60,4 +75,14 @@ public String getAclId() { public void setAclId(String aclId) { this.aclId = aclId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclEntryResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclEntryResponse.java index 655cc6df..96c60577 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclEntryResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclEntryResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeNetworkAclEntryResponse extends Response { - /** 所有的规则信息 */ + + + /** + * 所有的规则信息 + */ @SerializedName("EntryList") private List entryList; - + + public List getEntryList() { return entryList; } @@ -32,250 +41,340 @@ public List getEntryList() { public void setEntryList(List entryList) { this.entryList = entryList; } + + public static class AclEntryInfo extends Response { + + + /** + * Entry的ID + */ + @SerializedName("EntryId") + private String entryId; + + + + /** + * 优先级 + */ + @SerializedName("Priority") + private String priority; + + + + /** + * 出向或者入向 + */ + @SerializedName("Direction") + private String direction; + + + + /** + * 针对的IP协议 + */ + @SerializedName("IpProtocol") + private String ipProtocol; + + + + /** + * IP段的CIDR信息 + */ + @SerializedName("CidrBlock") + private String cidrBlock; + + + + /** + * Port的段信息 + */ + @SerializedName("PortRange") + private String portRange; + + + + /** + * 匹配规则的动作 + */ + @SerializedName("EntryAction") + private String entryAction; + + + + /** + * 应用目标类型。 0代表“子网内全部资源” ,1代表“子网内指定资源” 。 + */ + @SerializedName("TargetType") + private Integer targetType; + + + + /** + * 创建的Unix时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 更改的Unix时间戳 + */ + @SerializedName("UpdateTime") + private Integer updateTime; + + + + /** + * 应用目标资源信息。TargetType为0时不返回该值。具体结构见下方TargetResourceInfo + */ + @SerializedName("TargetResourceList") + private List targetResourceList; + + + + /** + * 应用目标资源数量。TargetType为0时不返回该值。 + */ + @SerializedName("TargetResourceCount") + private Integer targetResourceCount; + + + public String getEntryId() { + return entryId; + } - public static class AclEntryInfo extends Response { - - /** Entry的ID */ - @SerializedName("EntryId") - private String entryId; - - /** 优先级 */ - @SerializedName("Priority") - private String priority; - - /** 出向或者入向 */ - @SerializedName("Direction") - private String direction; - - /** 针对的IP协议 */ - @SerializedName("IpProtocol") - private String ipProtocol; - - /** IP段的CIDR信息 */ - @SerializedName("CidrBlock") - private String cidrBlock; - - /** Port的段信息 */ - @SerializedName("PortRange") - private String portRange; - - /** 匹配规则的动作 */ - @SerializedName("EntryAction") - private String entryAction; - - /** 应用目标类型。 0代表“子网内全部资源” ,1代表“子网内指定资源” 。 */ - @SerializedName("TargetType") - private Integer targetType; - - /** 创建的Unix时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 更改的Unix时间戳 */ - @SerializedName("UpdateTime") - private Integer updateTime; - - /** 应用目标资源信息。TargetType为0时不返回该值。具体结构见下方TargetResourceInfo */ - @SerializedName("TargetResourceList") - private List targetResourceList; - - /** 应用目标资源数量。TargetType为0时不返回该值。 */ - @SerializedName("TargetResourceCount") - private Integer targetResourceCount; - - public String getEntryId() { - return entryId; - } - - public void setEntryId(String entryId) { - this.entryId = entryId; - } - - public String getPriority() { - return priority; - } - - public void setPriority(String priority) { - this.priority = priority; - } - - public String getDirection() { - return direction; - } - - public void setDirection(String direction) { - this.direction = direction; - } - - public String getIpProtocol() { - return ipProtocol; - } - - public void setIpProtocol(String ipProtocol) { - this.ipProtocol = ipProtocol; - } - - public String getCidrBlock() { - return cidrBlock; - } - - public void setCidrBlock(String cidrBlock) { - this.cidrBlock = cidrBlock; - } - - public String getPortRange() { - return portRange; - } - - public void setPortRange(String portRange) { - this.portRange = portRange; - } - - public String getEntryAction() { - return entryAction; - } - - public void setEntryAction(String entryAction) { - this.entryAction = entryAction; - } - - public Integer getTargetType() { - return targetType; - } - - public void setTargetType(Integer targetType) { - this.targetType = targetType; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public Integer getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(Integer updateTime) { - this.updateTime = updateTime; - } - - public List getTargetResourceList() { - return targetResourceList; - } + public void setEntryId(String entryId) { + this.entryId = entryId; + } + + public String getPriority() { + return priority; + } - public void setTargetResourceList(List targetResourceList) { - this.targetResourceList = targetResourceList; - } + public void setPriority(String priority) { + this.priority = priority; + } + + public String getDirection() { + return direction; + } - public Integer getTargetResourceCount() { - return targetResourceCount; - } + public void setDirection(String direction) { + this.direction = direction; + } + + public String getIpProtocol() { + return ipProtocol; + } - public void setTargetResourceCount(Integer targetResourceCount) { - this.targetResourceCount = targetResourceCount; - } + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + } + + public String getCidrBlock() { + return cidrBlock; } - public static class TargetResourceInfo extends Response { + public void setCidrBlock(String cidrBlock) { + this.cidrBlock = cidrBlock; + } + + public String getPortRange() { + return portRange; + } - /** 子网ID */ - @SerializedName("SubnetworkId") - private String subnetworkId; + public void setPortRange(String portRange) { + this.portRange = portRange; + } + + public String getEntryAction() { + return entryAction; + } - /** 资源名称 */ - @SerializedName("ResourceName") - private String resourceName; + public void setEntryAction(String entryAction) { + this.entryAction = entryAction; + } + + public Integer getTargetType() { + return targetType; + } - /** 资源ID */ - @SerializedName("ResourceId") - private String resourceId; + public void setTargetType(Integer targetType) { + this.targetType = targetType; + } + + public Integer getCreateTime() { + return createTime; + } - /** 资源类型 */ - @SerializedName("ResourceType") - private Integer resourceType; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getUpdateTime() { + return updateTime; + } - /** 资源绑定的虚拟网卡的名称 */ - @SerializedName("SubResourceName") - private String subResourceName; + public void setUpdateTime(Integer updateTime) { + this.updateTime = updateTime; + } + + public List getTargetResourceList() { + return targetResourceList; + } - /** 资源绑定的虚拟网卡的ID */ - @SerializedName("SubResourceId") - private String subResourceId; + public void setTargetResourceList(List targetResourceList) { + this.targetResourceList = targetResourceList; + } + + public Integer getTargetResourceCount() { + return targetResourceCount; + } - /** 资源绑定虚拟网卡的类型 */ - @SerializedName("SubResourceType") - private Integer subResourceType; + public void setTargetResourceCount(Integer targetResourceCount) { + this.targetResourceCount = targetResourceCount; + } + + } + public static class TargetResourceInfo extends Response { + + + /** + * 子网ID + */ + @SerializedName("SubnetworkId") + private String subnetworkId; + + + + /** + * 资源名称 + */ + @SerializedName("ResourceName") + private String resourceName; + + + + /** + * 资源ID + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 资源类型 + */ + @SerializedName("ResourceType") + private Integer resourceType; + + + + /** + * 资源绑定的虚拟网卡的名称 + */ + @SerializedName("SubResourceName") + private String subResourceName; + + + + /** + * 资源绑定的虚拟网卡的ID + */ + @SerializedName("SubResourceId") + private String subResourceId; + + + + /** + * 资源绑定虚拟网卡的类型 + */ + @SerializedName("SubResourceType") + private Integer subResourceType; + + + + /** + * 资源内网IP + */ + @SerializedName("PrivateIp") + private String privateIp; + + + public String getSubnetworkId() { + return subnetworkId; + } - /** 资源内网IP */ - @SerializedName("PrivateIp") - private String privateIp; + public void setSubnetworkId(String subnetworkId) { + this.subnetworkId = subnetworkId; + } + + public String getResourceName() { + return resourceName; + } - public String getSubnetworkId() { - return subnetworkId; - } + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getResourceId() { + return resourceId; + } - public void setSubnetworkId(String subnetworkId) { - this.subnetworkId = subnetworkId; - } + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public Integer getResourceType() { + return resourceType; + } - public String getResourceName() { - return resourceName; - } + public void setResourceType(Integer resourceType) { + this.resourceType = resourceType; + } + + public String getSubResourceName() { + return subResourceName; + } - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getSubResourceId() { + return subResourceId; + } - public String getResourceId() { - return resourceId; - } + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public Integer getSubResourceType() { + return subResourceType; + } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } + public void setSubResourceType(Integer subResourceType) { + this.subResourceType = subResourceType; + } + + public String getPrivateIp() { + return privateIp; + } - public Integer getResourceType() { - return resourceType; + public void setPrivateIp(String privateIp) { + this.privateIp = privateIp; + } + } +} - public void setResourceType(Integer resourceType) { - this.resourceType = resourceType; - } - public String getSubResourceName() { - return subResourceName; - } - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } - public String getSubResourceId() { - return subResourceId; - } - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } - public Integer getSubResourceType() { - return subResourceType; - } - public void setSubResourceType(Integer subResourceType) { - this.subResourceType = subResourceType; - } - public String getPrivateIp() { - return privateIp; - } - public void setPrivateIp(String privateIp) { - this.privateIp = privateIp; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclRequest.java index 7229624a..cb8b295c 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclRequest.java @@ -1,49 +1,72 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeNetworkAclRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 列表偏移量 */ + + + + /** + * 列表偏移量 + */ @UCloudParam("Offset") private Integer offset; - - /** 列表获取的个数限制 */ + + + + /** + * 列表获取的个数限制 + */ @UCloudParam("Limit") private String limit; - - /** 需要获取的ACL所属的VPC的ID */ + + + + /** + * 需要获取的ACL所属的VPC的ID + */ @UCloudParam("VpcId") private String vpcId; - + + public String getRegion() { return region; } @@ -51,7 +74,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -59,7 +82,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public Integer getOffset() { return offset; } @@ -67,7 +90,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public String getLimit() { return limit; } @@ -75,7 +98,7 @@ public String getLimit() { public void setLimit(String limit) { this.limit = limit; } - + public String getVpcId() { return vpcId; } @@ -83,4 +106,14 @@ public String getVpcId() { public void setVpcId(String vpcId) { this.vpcId = vpcId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclResponse.java index 6ad5ff39..ee272cea 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeNetworkAclResponse extends Response { - /** ACL的信息,具体结构见下方AclInfo */ + + + /** + * ACL的信息,具体结构见下方AclInfo + */ @SerializedName("AclList") private List aclList; - + + public List getAclList() { return aclList; } @@ -32,400 +41,538 @@ public List getAclList() { public void setAclList(List aclList) { this.aclList = aclList; } - - public static class AclEntryInfo extends Response { - - /** Entry的ID */ - @SerializedName("EntryId") - private String entryId; - - /** 优先级 */ - @SerializedName("Priority") - private String priority; - - /** 出向或者入向 */ - @SerializedName("Direction") - private String direction; - - /** 针对的IP协议 */ - @SerializedName("IpProtocol") - private String ipProtocol; - - /** IP段的CIDR信息 */ - @SerializedName("CidrBlock") - private String cidrBlock; - - /** Port的段信息 */ - @SerializedName("PortRange") - private String portRange; - - /** 匹配规则的动作 */ - @SerializedName("EntryAction") - private String entryAction; - - /** 应用目标类型。 0代表“子网内全部资源” ,1代表“子网内指定资源” 。 */ - @SerializedName("TargetType") - private Integer targetType; - - /** 创建的Unix时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 更改的Unix时间戳 */ - @SerializedName("UpdateTime") - private Integer updateTime; - - /** 应用目标资源信息。TargetType为0时不返回该值。具体结构见下方TargetResourceInfo */ - @SerializedName("TargetResourceList") - private List targetResourceList; - - /** 应用目标资源数量。TargetType为0时不返回该值。 */ - @SerializedName("TargetResourceCount") - private Integer targetResourceCount; - - public String getEntryId() { - return entryId; - } - - public void setEntryId(String entryId) { - this.entryId = entryId; - } - - public String getPriority() { - return priority; - } - - public void setPriority(String priority) { - this.priority = priority; - } - - public String getDirection() { - return direction; - } - - public void setDirection(String direction) { - this.direction = direction; - } - - public String getIpProtocol() { - return ipProtocol; - } - - public void setIpProtocol(String ipProtocol) { - this.ipProtocol = ipProtocol; - } - - public String getCidrBlock() { - return cidrBlock; - } - - public void setCidrBlock(String cidrBlock) { - this.cidrBlock = cidrBlock; - } - - public String getPortRange() { - return portRange; - } - - public void setPortRange(String portRange) { - this.portRange = portRange; - } - - public String getEntryAction() { - return entryAction; - } - - public void setEntryAction(String entryAction) { - this.entryAction = entryAction; - } - - public Integer getTargetType() { - return targetType; - } - - public void setTargetType(Integer targetType) { - this.targetType = targetType; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public Integer getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(Integer updateTime) { - this.updateTime = updateTime; - } - - public List getTargetResourceList() { - return targetResourceList; - } - - public void setTargetResourceList(List targetResourceList) { - this.targetResourceList = targetResourceList; - } - - public Integer getTargetResourceCount() { - return targetResourceCount; - } - - public void setTargetResourceCount(Integer targetResourceCount) { - this.targetResourceCount = targetResourceCount; - } + + public static class AclEntryInfo extends Response { + + + /** + * Entry的ID + */ + @SerializedName("EntryId") + private String entryId; + + + + /** + * 优先级 + */ + @SerializedName("Priority") + private String priority; + + + + /** + * 出向或者入向 + */ + @SerializedName("Direction") + private String direction; + + + + /** + * 针对的IP协议 + */ + @SerializedName("IpProtocol") + private String ipProtocol; + + + + /** + * IP段的CIDR信息 + */ + @SerializedName("CidrBlock") + private String cidrBlock; + + + + /** + * Port的段信息 + */ + @SerializedName("PortRange") + private String portRange; + + + + /** + * 匹配规则的动作 + */ + @SerializedName("EntryAction") + private String entryAction; + + + + /** + * 应用目标类型。 0代表“子网内全部资源” ,1代表“子网内指定资源” 。 + */ + @SerializedName("TargetType") + private Integer targetType; + + + + /** + * 创建的Unix时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 更改的Unix时间戳 + */ + @SerializedName("UpdateTime") + private Integer updateTime; + + + + /** + * 应用目标资源信息。TargetType为0时不返回该值。具体结构见下方TargetResourceInfo + */ + @SerializedName("TargetResourceList") + private List targetResourceList; + + + + /** + * 应用目标资源数量。TargetType为0时不返回该值。 + */ + @SerializedName("TargetResourceCount") + private Integer targetResourceCount; + + + public String getEntryId() { + return entryId; } - public static class AclInfo extends Response { - - /** ACL所属的VPC ID */ - @SerializedName("VpcId") - private String vpcId; - - /** ACL的ID */ - @SerializedName("AclId") - private String aclId; - - /** 名称 */ - @SerializedName("AclName") - private String aclName; - - /** 描述 */ - @SerializedName("Description") - private String description; - - /** 所有的规则 */ - @SerializedName("Entries") - private List entries; - - /** 所有的绑定关系,具体结构见下方AssociationInfo */ - @SerializedName("Associations") - private List associations; - - /** 创建的Unix时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 更改的Unix时间戳 */ - @SerializedName("UpdateTime") - private Integer updateTime; - - public String getVpcId() { - return vpcId; - } - - public void setVpcId(String vpcId) { - this.vpcId = vpcId; - } - - public String getAclId() { - return aclId; - } - - public void setAclId(String aclId) { - this.aclId = aclId; - } - - public String getAclName() { - return aclName; - } - - public void setAclName(String aclName) { - this.aclName = aclName; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public List getEntries() { - return entries; - } - - public void setEntries(List entries) { - this.entries = entries; - } - - public List getAssociations() { - return associations; - } - - public void setAssociations(List associations) { - this.associations = associations; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setEntryId(String entryId) { + this.entryId = entryId; + } + + public String getPriority() { + return priority; + } - public Integer getUpdateTime() { - return updateTime; - } + public void setPriority(String priority) { + this.priority = priority; + } + + public String getDirection() { + return direction; + } - public void setUpdateTime(Integer updateTime) { - this.updateTime = updateTime; - } + public void setDirection(String direction) { + this.direction = direction; + } + + public String getIpProtocol() { + return ipProtocol; } - public static class AssociationInfo extends Response { + public void setIpProtocol(String ipProtocol) { + this.ipProtocol = ipProtocol; + } + + public String getCidrBlock() { + return cidrBlock; + } - /** 绑定ID */ - @SerializedName("AssociationId") - private String associationId; + public void setCidrBlock(String cidrBlock) { + this.cidrBlock = cidrBlock; + } + + public String getPortRange() { + return portRange; + } - /** ACL的ID */ - @SerializedName("AclId") - private String aclId; + public void setPortRange(String portRange) { + this.portRange = portRange; + } + + public String getEntryAction() { + return entryAction; + } - /** 绑定的子网ID */ - @SerializedName("SubnetworkId") - private String subnetworkId; + public void setEntryAction(String entryAction) { + this.entryAction = entryAction; + } + + public Integer getTargetType() { + return targetType; + } - /** 创建的Unix时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; + public void setTargetType(Integer targetType) { + this.targetType = targetType; + } + + public Integer getCreateTime() { + return createTime; + } - public String getAssociationId() { - return associationId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getUpdateTime() { + return updateTime; + } - public void setAssociationId(String associationId) { - this.associationId = associationId; - } + public void setUpdateTime(Integer updateTime) { + this.updateTime = updateTime; + } + + public List getTargetResourceList() { + return targetResourceList; + } - public String getAclId() { - return aclId; - } + public void setTargetResourceList(List targetResourceList) { + this.targetResourceList = targetResourceList; + } + + public Integer getTargetResourceCount() { + return targetResourceCount; + } - public void setAclId(String aclId) { - this.aclId = aclId; - } + public void setTargetResourceCount(Integer targetResourceCount) { + this.targetResourceCount = targetResourceCount; + } + + } + public static class AclInfo extends Response { + + + /** + * ACL所属的VPC ID + */ + @SerializedName("VpcId") + private String vpcId; + + + + /** + * ACL的ID + */ + @SerializedName("AclId") + private String aclId; + + + + /** + * 名称 + */ + @SerializedName("AclName") + private String aclName; + + + + /** + * 描述 + */ + @SerializedName("Description") + private String description; + + + + /** + * 所有的规则 + */ + @SerializedName("Entries") + private List entries; + + + + /** + * 所有的绑定关系,具体结构见下方AssociationInfo + */ + @SerializedName("Associations") + private List associations; + + + + /** + * 创建的Unix时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 更改的Unix时间戳 + */ + @SerializedName("UpdateTime") + private Integer updateTime; + + + public String getVpcId() { + return vpcId; + } - public String getSubnetworkId() { - return subnetworkId; - } + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getAclId() { + return aclId; + } - public void setSubnetworkId(String subnetworkId) { - this.subnetworkId = subnetworkId; - } + public void setAclId(String aclId) { + this.aclId = aclId; + } + + public String getAclName() { + return aclName; + } - public Integer getCreateTime() { - return createTime; - } + public void setAclName(String aclName) { + this.aclName = aclName; + } + + public String getDescription() { + return description; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setDescription(String description) { + this.description = description; + } + + public List getEntries() { + return entries; } - public static class TargetResourceInfo extends Response { + public void setEntries(List entries) { + this.entries = entries; + } + + public List getAssociations() { + return associations; + } - /** 子网ID */ - @SerializedName("SubnetworkId") - private String subnetworkId; + public void setAssociations(List associations) { + this.associations = associations; + } + + public Integer getCreateTime() { + return createTime; + } - /** 资源名称 */ - @SerializedName("ResourceName") - private String resourceName; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getUpdateTime() { + return updateTime; + } - /** 资源ID */ - @SerializedName("ResourceId") - private String resourceId; + public void setUpdateTime(Integer updateTime) { + this.updateTime = updateTime; + } + + } + public static class AssociationInfo extends Response { + + + /** + * 绑定ID + */ + @SerializedName("AssociationId") + private String associationId; + + + + /** + * ACL的ID + */ + @SerializedName("AclId") + private String aclId; + + + + /** + * 绑定的子网ID + */ + @SerializedName("SubnetworkId") + private String subnetworkId; + + + + /** + * 创建的Unix时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + public String getAssociationId() { + return associationId; + } - /** 资源类型 */ - @SerializedName("ResourceType") - private Integer resourceType; + public void setAssociationId(String associationId) { + this.associationId = associationId; + } + + public String getAclId() { + return aclId; + } - /** 资源绑定的虚拟网卡的名称 */ - @SerializedName("SubResourceName") - private String subResourceName; + public void setAclId(String aclId) { + this.aclId = aclId; + } + + public String getSubnetworkId() { + return subnetworkId; + } - /** 资源绑定的虚拟网卡的ID */ - @SerializedName("SubResourceId") - private String subResourceId; + public void setSubnetworkId(String subnetworkId) { + this.subnetworkId = subnetworkId; + } + + public Integer getCreateTime() { + return createTime; + } - /** 资源绑定虚拟网卡的类型 */ - @SerializedName("SubResourceType") - private Integer subResourceType; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + } + public static class TargetResourceInfo extends Response { + + + /** + * 子网ID + */ + @SerializedName("SubnetworkId") + private String subnetworkId; + + + + /** + * 资源名称 + */ + @SerializedName("ResourceName") + private String resourceName; + + + + /** + * 资源ID + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 资源类型 + */ + @SerializedName("ResourceType") + private Integer resourceType; + + + + /** + * 资源绑定的虚拟网卡的名称 + */ + @SerializedName("SubResourceName") + private String subResourceName; + + + + /** + * 资源绑定的虚拟网卡的ID + */ + @SerializedName("SubResourceId") + private String subResourceId; + + + + /** + * 资源绑定虚拟网卡的类型 + */ + @SerializedName("SubResourceType") + private Integer subResourceType; + + + + /** + * 资源内网IP + */ + @SerializedName("PrivateIp") + private String privateIp; + + + public String getSubnetworkId() { + return subnetworkId; + } - /** 资源内网IP */ - @SerializedName("PrivateIp") - private String privateIp; + public void setSubnetworkId(String subnetworkId) { + this.subnetworkId = subnetworkId; + } + + public String getResourceName() { + return resourceName; + } - public String getSubnetworkId() { - return subnetworkId; - } + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getResourceId() { + return resourceId; + } - public void setSubnetworkId(String subnetworkId) { - this.subnetworkId = subnetworkId; - } + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public Integer getResourceType() { + return resourceType; + } - public String getResourceName() { - return resourceName; - } + public void setResourceType(Integer resourceType) { + this.resourceType = resourceType; + } + + public String getSubResourceName() { + return subResourceName; + } - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getSubResourceId() { + return subResourceId; + } - public String getResourceId() { - return resourceId; - } + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public Integer getSubResourceType() { + return subResourceType; + } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } + public void setSubResourceType(Integer subResourceType) { + this.subResourceType = subResourceType; + } + + public String getPrivateIp() { + return privateIp; + } - public Integer getResourceType() { - return resourceType; + public void setPrivateIp(String privateIp) { + this.privateIp = privateIp; + } + } +} - public void setResourceType(Integer resourceType) { - this.resourceType = resourceType; - } - public String getSubResourceName() { - return subResourceName; - } - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } - public String getSubResourceId() { - return subResourceId; - } - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } - public Integer getSubResourceType() { - return subResourceType; - } - public void setSubResourceType(Integer subResourceType) { - this.subResourceType = subResourceType; - } - public String getPrivateIp() { - return privateIp; - } - public void setPrivateIp(String privateIp) { - this.privateIp = privateIp; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkInterfaceRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkInterfaceRequest.java index 21bf4fc6..14fc0706 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkInterfaceRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkInterfaceRequest.java @@ -1,71 +1,114 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeNetworkInterfaceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 所属VPC */ + + + + /** + * 所属VPC + */ @UCloudParam("VPCId") private String vpcId; - - /** 所属子网 */ + + + + /** + * 所属子网 + */ @UCloudParam("SubnetId") private String subnetId; - - /** 虚拟网卡ID,可指定 0~n */ + + + + /** + * 虚拟网卡ID,可指定 0~n + */ @UCloudParam("InterfaceId") private List interfaceId; - - /** 若为true 只返回默认网卡 默认为false */ + + + + /** + * 若为true 只返回默认网卡 +默认为false + */ @UCloudParam("OnlyDefault") private Boolean onlyDefault; - - /** 若为true 过滤绑定在回收站主机中的网卡。默认为false。 */ + + + + /** + * 若为true 过滤绑定在回收站主机中的网卡。默认为false。 + */ @UCloudParam("NoRecycled") private Boolean noRecycled; - - /** 业务组 */ + + + + /** + * 业务组 + */ @UCloudParam("Tag") private String tag; - - /** 默认为20 */ + + + + /** + * 默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 默认为0 */ + + + + /** + * 默认为0 + */ @UCloudParam("Offset") private Integer offset; - + + public String getRegion() { return region; } @@ -73,7 +116,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -81,7 +124,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -89,7 +132,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -97,7 +140,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public List getInterfaceId() { return interfaceId; } @@ -105,7 +148,7 @@ public List getInterfaceId() { public void setInterfaceId(List interfaceId) { this.interfaceId = interfaceId; } - + public Boolean getOnlyDefault() { return onlyDefault; } @@ -113,7 +156,7 @@ public Boolean getOnlyDefault() { public void setOnlyDefault(Boolean onlyDefault) { this.onlyDefault = onlyDefault; } - + public Boolean getNoRecycled() { return noRecycled; } @@ -121,7 +164,7 @@ public Boolean getNoRecycled() { public void setNoRecycled(Boolean noRecycled) { this.noRecycled = noRecycled; } - + public String getTag() { return tag; } @@ -129,7 +172,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public Integer getLimit() { return limit; } @@ -137,7 +180,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -145,4 +188,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkInterfaceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkInterfaceResponse.java index f6ce6509..81166f1f 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkInterfaceResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkInterfaceResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeNetworkInterfaceResponse extends Response { - /** 虚拟网卡信息 */ + + + /** + * 虚拟网卡信息 + */ @SerializedName("NetworkInterfaceSet") private List networkInterfaceSet; - - /** 虚拟网卡总数 */ + + + + /** + * 虚拟网卡总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getNetworkInterfaceSet() { return networkInterfaceSet; } @@ -36,7 +49,7 @@ public List getNetworkInterfaceSet() { public void setNetworkInterfaceSet(List networkInterfaceSet) { this.networkInterfaceSet = networkInterfaceSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,277 +57,375 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class NetworkInterface extends Response { + + + /** + * 虚拟网卡资源ID + */ + @SerializedName("InterfaceId") + private String interfaceId; + + + + /** + * 所属VPC + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 所属子网 + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * 关联内网IP。当前一个网卡仅支持绑定一个内网IP + */ + @SerializedName("PrivateIpSet") + private List privateIpSet; + + + + /** + * 关联Mac + */ + @SerializedName("MacAddress") + private String macAddress; + + + + /** + * 绑定状态 + */ + @SerializedName("Status") + private Integer status; + + + + /** + * 网卡的内网IP信息 + */ + @SerializedName("PrivateIp") + private List privateIp; + + + + /** + * 虚拟网卡名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 内网IP掩码 + */ + @SerializedName("Netmask") + private String netmask; + + + + /** + * 默认网关 + */ + @SerializedName("Gateway") + private String gateway; + + + + /** + * 绑定实例资源ID + */ + @SerializedName("AttachInstanceId") + private String attachInstanceId; + + + + /** + * 是否是绑定实例的默认网卡 false:不是 true:是 + */ + @SerializedName("Default") + private Boolean fDefault; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 虚拟网卡绑定的EIP ID信息 + */ + @SerializedName("EIPIdSet") + private List eipIdSet; + + + + /** + * 虚拟网卡绑定的防火墙ID信息 + */ + @SerializedName("FirewallIdSet") + private List firewallIdSet; + + + + /** + * 网卡的内网IP配额信息 + */ + @SerializedName("PrivateIpLimit") + private UNIQuotaInfo privateIpLimit; + + + public String getInterfaceId() { + return interfaceId; + } - public static class NetworkInterface extends Response { - - /** 虚拟网卡资源ID */ - @SerializedName("InterfaceId") - private String interfaceId; - - /** 所属VPC */ - @SerializedName("VPCId") - private String vpcId; - - /** 所属子网 */ - @SerializedName("SubnetId") - private String subnetId; - - /** 关联内网IP。当前一个网卡仅支持绑定一个内网IP */ - @SerializedName("PrivateIpSet") - private List privateIpSet; - - /** 关联Mac */ - @SerializedName("MacAddress") - private String macAddress; - - /** 绑定状态 */ - @SerializedName("Status") - private Integer status; - - /** 网卡的内网IP信息 */ - @SerializedName("PrivateIp") - private List privateIp; - - /** 虚拟网卡名称 */ - @SerializedName("Name") - private String name; - - /** 内网IP掩码 */ - @SerializedName("Netmask") - private String netmask; - - /** 默认网关 */ - @SerializedName("Gateway") - private String gateway; - - /** 绑定实例资源ID */ - @SerializedName("AttachInstanceId") - private String attachInstanceId; - - /** 是否是绑定实例的默认网卡 false:不是 true:是 */ - @SerializedName("Default") - private Boolean fDefault; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** 业务组 */ - @SerializedName("Tag") - private String tag; - - /** 虚拟网卡绑定的EIP ID信息 */ - @SerializedName("EIPIdSet") - private List eipIdSet; - - /** 虚拟网卡绑定的防火墙ID信息 */ - @SerializedName("FirewallIdSet") - private List firewallIdSet; - - /** 网卡的内网IP配额信息 */ - @SerializedName("PrivateIpLimit") - private UNIQuotaInfo privateIpLimit; - - public String getInterfaceId() { - return interfaceId; - } - - public void setInterfaceId(String interfaceId) { - this.interfaceId = interfaceId; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public List getPrivateIpSet() { - return privateIpSet; - } - - public void setPrivateIpSet(List privateIpSet) { - this.privateIpSet = privateIpSet; - } - - public String getMacAddress() { - return macAddress; - } - - public void setMacAddress(String macAddress) { - this.macAddress = macAddress; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - public List getPrivateIp() { - return privateIp; - } - - public void setPrivateIp(List privateIp) { - this.privateIp = privateIp; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getNetmask() { - return netmask; - } - - public void setNetmask(String netmask) { - this.netmask = netmask; - } - - public String getGateway() { - return gateway; - } - - public void setGateway(String gateway) { - this.gateway = gateway; - } + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + public String getVPCId() { + return vpcId; + } - public String getAttachInstanceId() { - return attachInstanceId; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } - public void setAttachInstanceId(String attachInstanceId) { - this.attachInstanceId = attachInstanceId; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public List getPrivateIpSet() { + return privateIpSet; + } - public Boolean getDefault() { - return fDefault; - } + public void setPrivateIpSet(List privateIpSet) { + this.privateIpSet = privateIpSet; + } + + public String getMacAddress() { + return macAddress; + } - public void setDefault(Boolean fDefault) { - this.fDefault = fDefault; - } + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + public Integer getStatus() { + return status; + } - public Integer getCreateTime() { - return createTime; - } + public void setStatus(Integer status) { + this.status = status; + } + + public List getPrivateIp() { + return privateIp; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setPrivateIp(List privateIp) { + this.privateIp = privateIp; + } + + public String getName() { + return name; + } - public String getRemark() { - return remark; - } + public void setName(String name) { + this.name = name; + } + + public String getNetmask() { + return netmask; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setNetmask(String netmask) { + this.netmask = netmask; + } + + public String getGateway() { + return gateway; + } - public String getTag() { - return tag; - } + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public String getAttachInstanceId() { + return attachInstanceId; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setAttachInstanceId(String attachInstanceId) { + this.attachInstanceId = attachInstanceId; + } + + public Boolean getDefault() { + return fDefault; + } - public List getEIPIdSet() { - return eipIdSet; - } + public void setDefault(Boolean fDefault) { + this.fDefault = fDefault; + } + + public Integer getCreateTime() { + return createTime; + } - public void setEIPIdSet(List eipIdSet) { - this.eipIdSet = eipIdSet; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getRemark() { + return remark; + } - public List getFirewallIdSet() { - return firewallIdSet; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getTag() { + return tag; + } - public void setFirewallIdSet(List firewallIdSet) { - this.firewallIdSet = firewallIdSet; - } + public void setTag(String tag) { + this.tag = tag; + } + + public List getEIPIdSet() { + return eipIdSet; + } - public UNIQuotaInfo getPrivateIpLimit() { - return privateIpLimit; - } + public void setEIPIdSet(List eipIdSet) { + this.eipIdSet = eipIdSet; + } + + public List getFirewallIdSet() { + return firewallIdSet; + } - public void setPrivateIpLimit(UNIQuotaInfo privateIpLimit) { - this.privateIpLimit = privateIpLimit; - } + public void setFirewallIdSet(List firewallIdSet) { + this.firewallIdSet = firewallIdSet; + } + + public UNIQuotaInfo getPrivateIpLimit() { + return privateIpLimit; } - public static class UNIIpInfo extends Response { + public void setPrivateIpLimit(UNIQuotaInfo privateIpLimit) { + this.privateIpLimit = privateIpLimit; + } + + } + public static class UNIIpInfo extends Response { + + + /** + * ip类型 SecondaryIp/PrimaryIp + */ + @SerializedName("IpType") + private String ipType; + + + + /** + * ip 地址 + */ + @SerializedName("IpAddr") + private List ipAddr; + + + public String getIpType() { + return ipType; + } - /** ip类型 SecondaryIp/PrimaryIp */ - @SerializedName("IpType") - private String ipType; + public void setIpType(String ipType) { + this.ipType = ipType; + } + + public List getIpAddr() { + return ipAddr; + } - /** ip 地址 */ - @SerializedName("IpAddr") - private List ipAddr; + public void setIpAddr(List ipAddr) { + this.ipAddr = ipAddr; + } + + } + public static class UNIQuotaInfo extends Response { + + + /** + * 网卡拥有的内网IP数量 + */ + @SerializedName("PrivateIpCount") + private Integer privateIpCount; + + + + /** + * 网卡内网IP配额 + */ + @SerializedName("PrivateIpQuota") + private Integer privateIpQuota; + + + public Integer getPrivateIpCount() { + return privateIpCount; + } - public String getIpType() { - return ipType; - } + public void setPrivateIpCount(Integer privateIpCount) { + this.privateIpCount = privateIpCount; + } + + public Integer getPrivateIpQuota() { + return privateIpQuota; + } - public void setIpType(String ipType) { - this.ipType = ipType; + public void setPrivateIpQuota(Integer privateIpQuota) { + this.privateIpQuota = privateIpQuota; + } + } +} - public List getIpAddr() { - return ipAddr; - } - public void setIpAddr(List ipAddr) { - this.ipAddr = ipAddr; - } - } - public static class UNIQuotaInfo extends Response { - /** 网卡拥有的内网IP数量 */ - @SerializedName("PrivateIpCount") - private Integer privateIpCount; - /** 网卡内网IP配额 */ - @SerializedName("PrivateIpQuota") - private Integer privateIpQuota; - public Integer getPrivateIpCount() { - return privateIpCount; - } - public void setPrivateIpCount(Integer privateIpCount) { - this.privateIpCount = privateIpCount; - } - public Integer getPrivateIpQuota() { - return privateIpQuota; - } - public void setPrivateIpQuota(Integer privateIpQuota) { - this.privateIpQuota = privateIpQuota; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeRouteTableRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeRouteTableRequest.java index 9451d631..2419a467 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeRouteTableRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeRouteTableRequest.java @@ -1,65 +1,104 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeRouteTableRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 所属VPC的资源ID */ + + + + /** + * 所属VPC的资源ID + */ @UCloudParam("VPCId") private String vpcId; - - /** 路由表资源ID */ + + + + /** + * 路由表资源ID + */ @UCloudParam("RouteTableId") private String routeTableId; - - /** 数据偏移量。默认为0 */ + + + + /** + * 数据偏移量。默认为0 + */ @UCloudParam("OffSet") private Integer offSet; - - /** 数据分页值。默认为20 */ + + + + /** + * 数据分页值。默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 业务组ID */ + + + + /** + * 业务组ID + */ @UCloudParam("BusinessId") private String businessId; - - /** 默认为 false, 返回详细路由规则信息 */ + + + + /** + * 默认为 false, 返回详细路由规则信息 + */ @UCloudParam("Brief") private Boolean brief; - - /** 默认为 false, 表示路由表是短 ID */ + + + + /** + * 默认为 false, 表示路由表是短 ID + */ @UCloudParam("LongId") private String longId; - + + public String getRegion() { return region; } @@ -67,7 +106,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -75,7 +114,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -83,7 +122,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getRouteTableId() { return routeTableId; } @@ -91,7 +130,7 @@ public String getRouteTableId() { public void setRouteTableId(String routeTableId) { this.routeTableId = routeTableId; } - + public Integer getOffSet() { return offSet; } @@ -99,7 +138,7 @@ public Integer getOffSet() { public void setOffSet(Integer offSet) { this.offSet = offSet; } - + public Integer getLimit() { return limit; } @@ -107,7 +146,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public String getBusinessId() { return businessId; } @@ -115,7 +154,7 @@ public String getBusinessId() { public void setBusinessId(String businessId) { this.businessId = businessId; } - + public Boolean getBrief() { return brief; } @@ -123,7 +162,7 @@ public Boolean getBrief() { public void setBrief(Boolean brief) { this.brief = brief; } - + public String getLongId() { return longId; } @@ -131,4 +170,14 @@ public String getLongId() { public void setLongId(String longId) { this.longId = longId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeRouteTableResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeRouteTableResponse.java index d7ea38ce..164fe815 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeRouteTableResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeRouteTableResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeRouteTableResponse extends Response { - /** 路由表信息 */ + + + /** + * 路由表信息 + */ @SerializedName("RouteTables") private List routeTables; - - /** RouteTables字段的数量 */ + + + + /** + * RouteTables字段的数量 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getRouteTables() { return routeTables; } @@ -36,7 +49,7 @@ public List getRouteTables() { public void setRouteTables(List routeTables) { this.routeTables = routeTables; } - + public Integer getTotalCount() { return totalCount; } @@ -44,313 +57,420 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class RouteRuleInfo extends Response { + + + /** + * 项目ID信息 + */ + @SerializedName("AccountId") + private Integer accountId; + + + + /** + * 目的地址 + */ + @SerializedName("DstAddr") + private String dstAddr; + + + + /** + * 保留字段,暂未使用 + */ + @SerializedName("DstPort") + private Integer dstPort; + + + + /** + * 路由下一跳资源ID + */ + @SerializedName("NexthopId") + private String nexthopId; + + + + /** + * 路由表下一跳类型。LOCAL,本VPC内部通信路由;PUBLIC,公共服务路由;CNAT,外网路由;UDPN,跨域高速通道路由;HYBRIDGW,混合云路由;INSTANCE,实例路由;VNET,VPC联通路由;IPSEC VPN,指向VPN网关的路由。 + */ + @SerializedName("NexthopType") + private String nexthopType; + + + + /** + * 实例类型,枚举值:UHOST,云主机;UNI,虚拟网卡;PHOST,物理云主机 + */ + @SerializedName("InstanceType") + private String instanceType; + + + + /** + * 保留字段,暂未使用 + */ + @SerializedName("OriginAddr") + private String originAddr; + + + + /** + * 保留字段,暂未使用 + */ + @SerializedName("Priority") + private Integer priority; + + + + /** + * 路由规则备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 规则ID + */ + @SerializedName("RouteRuleId") + private String routeRuleId; + + + + /** + * 路由表资源ID + */ + @SerializedName("RouteTableId") + private String routeTableId; + + + + /** + * 路由规则类型。0,系统路由规则;1,自定义路由规则 + */ + @SerializedName("RuleType") + private Integer ruleType; + + + + /** + * 保留字段,暂未使用 + */ + @SerializedName("SrcAddr") + private String srcAddr; + + + + /** + * 保留字段,暂未使用 + */ + @SerializedName("SrcPort") + private Integer srcPort; + + + + /** + * 所属的VPC + */ + @SerializedName("VNetId") + private String vNetId; + + + public Integer getAccountId() { + return accountId; + } - public static class RouteRuleInfo extends Response { - - /** 项目ID信息 */ - @SerializedName("AccountId") - private Integer accountId; - - /** 目的地址 */ - @SerializedName("DstAddr") - private String dstAddr; - - /** 保留字段,暂未使用 */ - @SerializedName("DstPort") - private Integer dstPort; - - /** 路由下一跳资源ID */ - @SerializedName("NexthopId") - private String nexthopId; - - /** - * 路由表下一跳类型。LOCAL,本VPC内部通信路由;PUBLIC,公共服务路由;CNAT,外网路由;UDPN,跨域高速通道路由;HYBRIDGW,混合云路由;INSTANCE,实例路由;VNET,VPC联通路由;IPSEC - * VPN,指向VPN网关的路由。 - */ - @SerializedName("NexthopType") - private String nexthopType; - - /** 实例类型,枚举值:UHOST,云主机;UNI,虚拟网卡;PHOST,物理云主机 */ - @SerializedName("InstanceType") - private String instanceType; - - /** 保留字段,暂未使用 */ - @SerializedName("OriginAddr") - private String originAddr; - - /** 保留字段,暂未使用 */ - @SerializedName("Priority") - private Integer priority; - - /** 路由规则备注 */ - @SerializedName("Remark") - private String remark; - - /** 规则ID */ - @SerializedName("RouteRuleId") - private String routeRuleId; - - /** 路由表资源ID */ - @SerializedName("RouteTableId") - private String routeTableId; - - /** 路由规则类型。0,系统路由规则;1,自定义路由规则 */ - @SerializedName("RuleType") - private Integer ruleType; - - /** 保留字段,暂未使用 */ - @SerializedName("SrcAddr") - private String srcAddr; - - /** 保留字段,暂未使用 */ - @SerializedName("SrcPort") - private Integer srcPort; - - /** 所属的VPC */ - @SerializedName("VNetId") - private String vNetId; - - public Integer getAccountId() { - return accountId; - } - - public void setAccountId(Integer accountId) { - this.accountId = accountId; - } - - public String getDstAddr() { - return dstAddr; - } - - public void setDstAddr(String dstAddr) { - this.dstAddr = dstAddr; - } - - public Integer getDstPort() { - return dstPort; - } - - public void setDstPort(Integer dstPort) { - this.dstPort = dstPort; - } - - public String getNexthopId() { - return nexthopId; - } - - public void setNexthopId(String nexthopId) { - this.nexthopId = nexthopId; - } - - public String getNexthopType() { - return nexthopType; - } - - public void setNexthopType(String nexthopType) { - this.nexthopType = nexthopType; - } - - public String getInstanceType() { - return instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public String getOriginAddr() { - return originAddr; - } - - public void setOriginAddr(String originAddr) { - this.originAddr = originAddr; - } - - public Integer getPriority() { - return priority; - } - - public void setPriority(Integer priority) { - this.priority = priority; - } - - public String getRemark() { - return remark; - } - - public void setRemark(String remark) { - this.remark = remark; - } - - public String getRouteRuleId() { - return routeRuleId; - } - - public void setRouteRuleId(String routeRuleId) { - this.routeRuleId = routeRuleId; - } - - public String getRouteTableId() { - return routeTableId; - } - - public void setRouteTableId(String routeTableId) { - this.routeTableId = routeTableId; - } - - public Integer getRuleType() { - return ruleType; - } - - public void setRuleType(Integer ruleType) { - this.ruleType = ruleType; - } - - public String getSrcAddr() { - return srcAddr; - } - - public void setSrcAddr(String srcAddr) { - this.srcAddr = srcAddr; - } - - public Integer getSrcPort() { - return srcPort; - } - - public void setSrcPort(Integer srcPort) { - this.srcPort = srcPort; - } + public void setAccountId(Integer accountId) { + this.accountId = accountId; + } + + public String getDstAddr() { + return dstAddr; + } - public String getVNetId() { - return vNetId; - } + public void setDstAddr(String dstAddr) { + this.dstAddr = dstAddr; + } + + public Integer getDstPort() { + return dstPort; + } - public void setVNetId(String vNetId) { - this.vNetId = vNetId; - } + public void setDstPort(Integer dstPort) { + this.dstPort = dstPort; + } + + public String getNexthopId() { + return nexthopId; } - public static class RouteTableInfo extends Response { + public void setNexthopId(String nexthopId) { + this.nexthopId = nexthopId; + } + + public String getNexthopType() { + return nexthopType; + } - /** 路由表资源ID */ - @SerializedName("RouteTableId") - private String routeTableId; + public void setNexthopType(String nexthopType) { + this.nexthopType = nexthopType; + } + + public String getInstanceType() { + return instanceType; + } - /** 路由表类型。1为默认路由表,0为自定义路由表 */ - @SerializedName("RouteTableType") - private Integer routeTableType; + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getOriginAddr() { + return originAddr; + } - /** 绑定该路由表的子网数量 */ - @SerializedName("SubnetCount") - private Integer subnetCount; + public void setOriginAddr(String originAddr) { + this.originAddr = originAddr; + } + + public Integer getPriority() { + return priority; + } - /** 绑定该路由表的子网 */ - @SerializedName("SubnetIds") - private List subnetIds; + public void setPriority(Integer priority) { + this.priority = priority; + } + + public String getRemark() { + return remark; + } - /** 路由表所属的VPC资源ID */ - @SerializedName("VPCId") - private String vpcId; + public void setRemark(String remark) { + this.remark = remark; + } + + public String getRouteRuleId() { + return routeRuleId; + } - /** 路由表所属的VPC资源名称 */ - @SerializedName("VPCName") - private String vpcName; + public void setRouteRuleId(String routeRuleId) { + this.routeRuleId = routeRuleId; + } + + public String getRouteTableId() { + return routeTableId; + } - /** 路由表所属业务组 */ - @SerializedName("Tag") - private String tag; + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + } + + public Integer getRuleType() { + return ruleType; + } - /** 路由表备注 */ - @SerializedName("Remark") - private String remark; + public void setRuleType(Integer ruleType) { + this.ruleType = ruleType; + } + + public String getSrcAddr() { + return srcAddr; + } - /** 创建时间戳 */ - @SerializedName("CreateTime") - private Integer createTime; + public void setSrcAddr(String srcAddr) { + this.srcAddr = srcAddr; + } + + public Integer getSrcPort() { + return srcPort; + } - /** 路由规则 */ - @SerializedName("RouteRules") - private List routeRules; + public void setSrcPort(Integer srcPort) { + this.srcPort = srcPort; + } + + public String getVNetId() { + return vNetId; + } - public String getRouteTableId() { - return routeTableId; - } + public void setVNetId(String vNetId) { + this.vNetId = vNetId; + } + + } + public static class RouteTableInfo extends Response { + + + /** + * 路由表资源ID + */ + @SerializedName("RouteTableId") + private String routeTableId; + + + + /** + * 路由表类型。1为默认路由表,0为自定义路由表 + */ + @SerializedName("RouteTableType") + private Integer routeTableType; + + + + /** + * 绑定该路由表的子网数量 + */ + @SerializedName("SubnetCount") + private Integer subnetCount; + + + + /** + * 绑定该路由表的子网 + */ + @SerializedName("SubnetIds") + private List subnetIds; + + + + /** + * 路由表所属的VPC资源ID + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 路由表所属的VPC资源名称 + */ + @SerializedName("VPCName") + private String vpcName; + + + + /** + * 路由表所属业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 路由表备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 创建时间戳 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 路由规则 + */ + @SerializedName("RouteRules") + private List routeRules; + + + public String getRouteTableId() { + return routeTableId; + } - public void setRouteTableId(String routeTableId) { - this.routeTableId = routeTableId; - } + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + } + + public Integer getRouteTableType() { + return routeTableType; + } - public Integer getRouteTableType() { - return routeTableType; - } + public void setRouteTableType(Integer routeTableType) { + this.routeTableType = routeTableType; + } + + public Integer getSubnetCount() { + return subnetCount; + } - public void setRouteTableType(Integer routeTableType) { - this.routeTableType = routeTableType; - } + public void setSubnetCount(Integer subnetCount) { + this.subnetCount = subnetCount; + } + + public List getSubnetIds() { + return subnetIds; + } - public Integer getSubnetCount() { - return subnetCount; - } + public void setSubnetIds(List subnetIds) { + this.subnetIds = subnetIds; + } + + public String getVPCId() { + return vpcId; + } - public void setSubnetCount(Integer subnetCount) { - this.subnetCount = subnetCount; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getVPCName() { + return vpcName; + } - public List getSubnetIds() { - return subnetIds; - } + public void setVPCName(String vpcName) { + this.vpcName = vpcName; + } + + public String getTag() { + return tag; + } - public void setSubnetIds(List subnetIds) { - this.subnetIds = subnetIds; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } - public String getVPCId() { - return vpcId; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getCreateTime() { + return createTime; + } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public List getRouteRules() { + return routeRules; + } - public String getVPCName() { - return vpcName; + public void setRouteRules(List routeRules) { + this.routeRules = routeRules; + } + } +} - public void setVPCName(String vpcName) { - this.vpcName = vpcName; - } - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public List getRouteRules() { - return routeRules; - } - public void setRouteRules(List routeRules) { - this.routeRules = routeRules; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecondaryIpRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecondaryIpRequest.java index 93812266..0a495fc8 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecondaryIpRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecondaryIpRequest.java @@ -1,55 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeSecondaryIpRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 子网Id */ + + + + /** + * 子网Id + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - - /** VPCId */ + + + + /** + * VPCId + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - - /** Ip */ + + + + /** + * Ip + */ @UCloudParam("Ip") private String ip; - - /** Mac */ + + + + /** + * Mac + */ @UCloudParam("Mac") private String mac; - + + public String getRegion() { return region; } @@ -57,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -65,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSubnetId() { return subnetId; } @@ -73,7 +100,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getVPCId() { return vpcId; } @@ -81,7 +108,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getIp() { return ip; } @@ -89,7 +116,7 @@ public String getIp() { public void setIp(String ip) { this.ip = ip; } - + public String getMac() { return mac; } @@ -97,4 +124,14 @@ public String getMac() { public void setMac(String mac) { this.mac = mac; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecondaryIpResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecondaryIpResponse.java index 98d356a2..4d719bf1 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecondaryIpResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecondaryIpResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeSecondaryIpResponse extends Response { - /** */ + + + /** + * + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,79 +41,113 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class IpInfo extends Response { + + + /** + * + */ + @SerializedName("Ip") + private String ip; + + + + /** + * + */ + @SerializedName("Mask") + private String mask; + + + + /** + * + */ + @SerializedName("Gateway") + private String gateway; + + + + /** + * + */ + @SerializedName("Mac") + private String mac; + + + + /** + * + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * + */ + @SerializedName("VPCId") + private String vpcId; + + + public String getIp() { + return ip; + } - public static class IpInfo extends Response { - - /** */ - @SerializedName("Ip") - private String ip; - - /** */ - @SerializedName("Mask") - private String mask; - - /** */ - @SerializedName("Gateway") - private String gateway; - - /** */ - @SerializedName("Mac") - private String mac; + public void setIp(String ip) { + this.ip = ip; + } + + public String getMask() { + return mask; + } - /** */ - @SerializedName("SubnetId") - private String subnetId; + public void setMask(String mask) { + this.mask = mask; + } + + public String getGateway() { + return gateway; + } - /** */ - @SerializedName("VPCId") - private String vpcId; + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public String getMac() { + return mac; + } - public String getIp() { - return ip; - } + public void setMac(String mac) { + this.mac = mac; + } + + public String getSubnetId() { + return subnetId; + } - public void setIp(String ip) { - this.ip = ip; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getVPCId() { + return vpcId; + } - public String getMask() { - return mask; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + } +} - public void setMask(String mask) { - this.mask = mask; - } - public String getGateway() { - return gateway; - } - public void setGateway(String gateway) { - this.gateway = gateway; - } - public String getMac() { - return mac; - } - public void setMac(String mac) { - this.mac = mac; - } - public String getSubnetId() { - return subnetId; - } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - public String getVPCId() { - return vpcId; - } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatDnatRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatDnatRuleRequest.java index 37706970..c4c5b69b 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatDnatRuleRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatDnatRuleRequest.java @@ -1,46 +1,64 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeSnatDnatRuleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 获取NAT上添加的所有SnatDnatRule信息 */ + + + + /** + * 获取NAT上添加的所有SnatDnatRule信息 + */ @UCloudParam("NATGWId") private List natgwId; - - /** 获取EIP对应的SnatDnatRule信息 */ + + + + /** + * 获取EIP对应的SnatDnatRule信息 + */ @UCloudParam("EIP") private List eip; - + + public String getRegion() { return region; } @@ -48,7 +66,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -56,7 +74,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getNATGWId() { return natgwId; } @@ -64,7 +82,7 @@ public List getNATGWId() { public void setNATGWId(List natgwId) { this.natgwId = natgwId; } - + public List getEIP() { return eip; } @@ -72,4 +90,14 @@ public List getEIP() { public void setEIP(List eip) { this.eip = eip; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatDnatRuleResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatDnatRuleResponse.java index bd934df1..b1facf4f 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatDnatRuleResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatDnatRuleResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeSnatDnatRuleResponse extends Response { - /** 规则信息 */ + + + /** + * 规则信息 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,43 +41,65 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class SnatDnatRuleInfo extends Response { + + + /** + * 内网IP地址 + */ + @SerializedName("PrivateIp") + private String privateIp; + + + + /** + * 映射所使用的NAT网关资源ID + */ + @SerializedName("NATGWId") + private String natgwId; + + + + /** + * EIP的IP地址 + */ + @SerializedName("EIP") + private String eip; + + + public String getPrivateIp() { + return privateIp; + } - public static class SnatDnatRuleInfo extends Response { + public void setPrivateIp(String privateIp) { + this.privateIp = privateIp; + } + + public String getNATGWId() { + return natgwId; + } + + public void setNATGWId(String natgwId) { + this.natgwId = natgwId; + } + + public String getEIP() { + return eip; + } + + public void setEIP(String eip) { + this.eip = eip; + } + + } +} - /** 内网IP地址 */ - @SerializedName("PrivateIp") - private String privateIp; - /** 映射所使用的NAT网关资源ID */ - @SerializedName("NATGWId") - private String natgwId; - /** EIP的IP地址 */ - @SerializedName("EIP") - private String eip; - public String getPrivateIp() { - return privateIp; - } - public void setPrivateIp(String privateIp) { - this.privateIp = privateIp; - } - public String getNATGWId() { - return natgwId; - } - public void setNATGWId(String natgwId) { - this.natgwId = natgwId; - } - public String getEIP() { - return eip; - } - public void setEIP(String eip) { - this.eip = eip; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatRuleRequest.java index 4fbd67cd..bb4352f9 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatRuleRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatRuleRequest.java @@ -1,58 +1,89 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeSnatRuleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关的ID */ + + + + /** + * NAT网关的ID + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 需要出外网的私网IP地址,例如10.9.7.xx */ + + + + /** + * 需要出外网的私网IP地址,例如10.9.7.xx + */ @UCloudParam("SourceIp") private String sourceIp; - - /** EIP的ip地址,例如106.75.xx.xx */ + + + + /** + * EIP的ip地址,例如106.75.xx.xx + */ @UCloudParam("SnatIp") private String snatIp; - - /** 偏移,默认为0 */ + + + + /** + * 偏移,默认为0 + */ @UCloudParam("Offset") private String offset; - - /** 分页,默认为20 */ + + + + /** + * 分页,默认为20 + */ @UCloudParam("Limit") private String limit; - + + public String getRegion() { return region; } @@ -60,7 +91,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -68,7 +99,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -76,7 +107,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public String getSourceIp() { return sourceIp; } @@ -84,7 +115,7 @@ public String getSourceIp() { public void setSourceIp(String sourceIp) { this.sourceIp = sourceIp; } - + public String getSnatIp() { return snatIp; } @@ -92,7 +123,7 @@ public String getSnatIp() { public void setSnatIp(String snatIp) { this.snatIp = snatIp; } - + public String getOffset() { return offset; } @@ -100,7 +131,7 @@ public String getOffset() { public void setOffset(String offset) { this.offset = offset; } - + public String getLimit() { return limit; } @@ -108,4 +139,14 @@ public String getLimit() { public void setLimit(String limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatRuleResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatRuleResponse.java index ff3ad6f8..cf57b896 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatRuleResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSnatRuleResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeSnatRuleResponse extends Response { - /** 某个NAT网关的所有Snat规则 */ + + + /** + * 某个NAT网关的所有Snat规则 + */ @SerializedName("DataSet") private List dataSet; - - /** 规则数量 */ + + + + /** + * 规则数量 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,55 +57,81 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class NATGWSnatRule extends Response { + + + /** + * EIP地址,如106.76.xx.xx + */ + @SerializedName("SnatIp") + private String snatIp; + + + + /** + * 资源的内网IP地址 + */ + @SerializedName("SourceIp") + private String sourceIp; + + + + /** + * SourceIp所属的子网id + */ + @SerializedName("SubnetworkId") + private String subnetworkId; + + + + /** + * snat规则名称 + */ + @SerializedName("Name") + private String name; + + + public String getSnatIp() { + return snatIp; + } - public static class NATGWSnatRule extends Response { + public void setSnatIp(String snatIp) { + this.snatIp = snatIp; + } + + public String getSourceIp() { + return sourceIp; + } - /** EIP地址,如106.76.xx.xx */ - @SerializedName("SnatIp") - private String snatIp; + public void setSourceIp(String sourceIp) { + this.sourceIp = sourceIp; + } + + public String getSubnetworkId() { + return subnetworkId; + } - /** 资源的内网IP地址 */ - @SerializedName("SourceIp") - private String sourceIp; + public void setSubnetworkId(String subnetworkId) { + this.subnetworkId = subnetworkId; + } + + public String getName() { + return name; + } - /** SourceIp所属的子网id */ - @SerializedName("SubnetworkId") - private String subnetworkId; + public void setName(String name) { + this.name = name; + } + + } +} - /** snat规则名称 */ - @SerializedName("Name") - private String name; - public String getSnatIp() { - return snatIp; - } - public void setSnatIp(String snatIp) { - this.snatIp = snatIp; - } - public String getSourceIp() { - return sourceIp; - } - public void setSourceIp(String sourceIp) { - this.sourceIp = sourceIp; - } - public String getSubnetworkId() { - return subnetworkId; - } - public void setSubnetworkId(String subnetworkId) { - this.subnetworkId = subnetworkId; - } - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetRequest.java index 11ed82b3..308c0492 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetRequest.java @@ -1,67 +1,114 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeSubnetRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 子网id数组,适用于一次查询多个子网信息 */ + + + + /** + * 子网id数组,适用于一次查询多个子网信息 + */ @UCloudParam("SubnetIds") private List subnetIds; - - /** 子网id,适用于一次查询一个子网信息 */ + + + + /** + * 子网id,适用于一次查询一个子网信息 + */ @UCloudParam("SubnetId") private String subnetId; - - /** 路由表Id */ + + + + /** + * 路由表Id + */ @UCloudParam("RouteTableId") private String routeTableId; - - /** VPC资源id */ + + + + /** + * VPC资源id + */ @UCloudParam("VPCId") private String vpcId; - - /** 业务组名称,默认为Default */ + + + + /** + * 业务组名称,默认为Default + */ @UCloudParam("Tag") private String tag; - - /** 偏移量,默认为0 */ + + + + + + /** + * 偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 列表长度,默认为20 */ + + + + /** + * 列表长度,默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 是否返回子网的可用IP数,true为是,false为否,默认不返回 */ + + + + /** + * 是否返回子网的可用IP数,true为是,false为否,默认不返回 + */ @UCloudParam("ShowAvailableIPs") private Boolean showAvailableIPs; - + + public String getRegion() { return region; } @@ -69,7 +116,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -77,7 +124,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getSubnetIds() { return subnetIds; } @@ -85,7 +132,7 @@ public List getSubnetIds() { public void setSubnetIds(List subnetIds) { this.subnetIds = subnetIds; } - + public String getSubnetId() { return subnetId; } @@ -93,7 +140,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getRouteTableId() { return routeTableId; } @@ -101,7 +148,7 @@ public String getRouteTableId() { public void setRouteTableId(String routeTableId) { this.routeTableId = routeTableId; } - + public String getVPCId() { return vpcId; } @@ -109,7 +156,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getTag() { return tag; } @@ -117,7 +164,8 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + + public Integer getOffset() { return offset; } @@ -125,7 +173,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -133,7 +181,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Boolean getShowAvailableIPs() { return showAvailableIPs; } @@ -141,4 +189,14 @@ public Boolean getShowAvailableIPs() { public void setShowAvailableIPs(Boolean showAvailableIPs) { this.showAvailableIPs = showAvailableIPs; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetResourceRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetResourceRequest.java index cfcb742e..c6f404ba 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetResourceRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetResourceRequest.java @@ -1,53 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeSubnetResourceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 子网id */ + + + + /** + * 子网id + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - + + + /** * 资源类型,默认为全部资源类型。枚举值为:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,Kafka消息队列;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP. */ @UCloudParam("ResourceType") private String resourceType; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 单页返回数据长度,默认为20 */ + + + + /** + * 单页返回数据长度,默认为20 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -55,7 +83,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -63,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSubnetId() { return subnetId; } @@ -71,7 +99,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getResourceType() { return resourceType; } @@ -79,7 +107,7 @@ public String getResourceType() { public void setResourceType(String resourceType) { this.resourceType = resourceType; } - + public Integer getOffset() { return offset; } @@ -87,7 +115,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -95,4 +123,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetResourceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetResourceResponse.java index 0dcfea77..2fb8ab2d 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetResourceResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetResourceResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeSubnetResourceResponse extends Response { - /** 总数 */ + + + /** + * 总数 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 返回数据集,请见SubnetResource */ + + + + /** + * 返回数据集,请见SubnetResource + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,57 +57,81 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class SubnetResource extends Response { + + + /** + * 名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * 资源Id + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 资源类型。对应的资源类型:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,分布式消息系统;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP. + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 资源ip + */ + @SerializedName("IP") + private String ip; + + + public String getName() { + return name; + } - public static class SubnetResource extends Response { + public void setName(String name) { + this.name = name; + } + + public String getResourceId() { + return resourceId; + } - /** 名称 */ - @SerializedName("Name") - private String name; + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceType() { + return resourceType; + } - /** 资源Id */ - @SerializedName("ResourceId") - private String resourceId; + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getIP() { + return ip; + } - /** - * 资源类型。对应的资源类型:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,分布式消息系统;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP. - */ - @SerializedName("ResourceType") - private String resourceType; + public void setIP(String ip) { + this.ip = ip; + } + + } +} - /** 资源ip */ - @SerializedName("IP") - private String ip; - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public String getResourceId() { - return resourceId; - } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - public String getResourceType() { - return resourceType; - } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - public String getIP() { - return ip; - } - public void setIP(String ip) { - this.ip = ip; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetResponse.java index 6f41990d..73816bc8 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSubnetResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeSubnetResponse extends Response { - /** 子网总数量 */ + + + /** + * 子网总数量 + */ @SerializedName("TotalCount") private Integer totalCount; - - /** 子网信息数组,具体资源见下方SubnetInfo */ + + + + /** + * 子网信息数组,具体资源见下方SubnetInfo + */ @SerializedName("DataSet") private List dataSet; - + + public Integer getTotalCount() { return totalCount; } @@ -36,7 +49,7 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - + public List getDataSet() { return dataSet; } @@ -44,199 +57,273 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class SubnetInfo extends Response { + + + /** + * 可用区名称 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 子网关联的IPv6网段 + */ + @SerializedName("IPv6Network") + private String iPv6Network; + + + + /** + * VPCId + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * VPC名称 + */ + @SerializedName("VPCName") + private String vpcName; + + + + /** + * 子网Id + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * 子网名称 + */ + @SerializedName("SubnetName") + private String subnetName; + + + + /** + * 备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * 业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * 子网类型 + */ + @SerializedName("SubnetType") + private Integer subnetType; + + + + /** + * 子网网段 + */ + @SerializedName("Subnet") + private String subnet; + + + + /** + * 子网掩码 + */ + @SerializedName("Netmask") + private String netmask; + + + + /** + * 子网网关 + */ + @SerializedName("Gateway") + private String gateway; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 是否有natgw + */ + @SerializedName("HasNATGW") + private Boolean hasNATGW; + + + + /** + * 路由表Id + */ + @SerializedName("RouteTableId") + private String routeTableId; + + + + /** + * 可用IP数量 + */ + @SerializedName("AvailableIPs") + private Integer availableIPs; + + + public String getZone() { + return zone; + } - public static class SubnetInfo extends Response { - - /** 可用区名称 */ - @SerializedName("Zone") - private String zone; - - /** 子网关联的IPv6网段 */ - @SerializedName("IPv6Network") - private String iPv6Network; - - /** VPCId */ - @SerializedName("VPCId") - private String vpcId; - - /** VPC名称 */ - @SerializedName("VPCName") - private String vpcName; - - /** 子网Id */ - @SerializedName("SubnetId") - private String subnetId; - - /** 子网名称 */ - @SerializedName("SubnetName") - private String subnetName; - - /** 备注 */ - @SerializedName("Remark") - private String remark; - - /** 业务组 */ - @SerializedName("Tag") - private String tag; - - /** 子网类型 */ - @SerializedName("SubnetType") - private Integer subnetType; - - /** 子网网段 */ - @SerializedName("Subnet") - private String subnet; - - /** 子网掩码 */ - @SerializedName("Netmask") - private String netmask; - - /** 子网网关 */ - @SerializedName("Gateway") - private String gateway; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 是否有natgw */ - @SerializedName("HasNATGW") - private Boolean hasNATGW; - - /** 路由表Id */ - @SerializedName("RouteTableId") - private String routeTableId; - - /** 可用IP数量 */ - @SerializedName("AvailableIPs") - private Integer availableIPs; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } - - public String getIPv6Network() { - return iPv6Network; - } - - public void setIPv6Network(String iPv6Network) { - this.iPv6Network = iPv6Network; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public String getVPCName() { - return vpcName; - } - - public void setVPCName(String vpcName) { - this.vpcName = vpcName; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getIPv6Network() { + return iPv6Network; + } - public String getSubnetId() { - return subnetId; - } + public void setIPv6Network(String iPv6Network) { + this.iPv6Network = iPv6Network; + } + + public String getVPCId() { + return vpcId; + } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getVPCName() { + return vpcName; + } - public String getSubnetName() { - return subnetName; - } + public void setVPCName(String vpcName) { + this.vpcName = vpcName; + } + + public String getSubnetId() { + return subnetId; + } - public void setSubnetName(String subnetName) { - this.subnetName = subnetName; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getSubnetName() { + return subnetName; + } - public String getRemark() { - return remark; - } + public void setSubnetName(String subnetName) { + this.subnetName = subnetName; + } + + public String getRemark() { + return remark; + } - public void setRemark(String remark) { - this.remark = remark; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getTag() { + return tag; + } - public String getTag() { - return tag; - } + public void setTag(String tag) { + this.tag = tag; + } + + public Integer getSubnetType() { + return subnetType; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setSubnetType(Integer subnetType) { + this.subnetType = subnetType; + } + + public String getSubnet() { + return subnet; + } - public Integer getSubnetType() { - return subnetType; - } + public void setSubnet(String subnet) { + this.subnet = subnet; + } + + public String getNetmask() { + return netmask; + } - public void setSubnetType(Integer subnetType) { - this.subnetType = subnetType; - } + public void setNetmask(String netmask) { + this.netmask = netmask; + } + + public String getGateway() { + return gateway; + } - public String getSubnet() { - return subnet; - } + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public Integer getCreateTime() { + return createTime; + } - public void setSubnet(String subnet) { - this.subnet = subnet; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Boolean getHasNATGW() { + return hasNATGW; + } - public String getNetmask() { - return netmask; - } + public void setHasNATGW(Boolean hasNATGW) { + this.hasNATGW = hasNATGW; + } + + public String getRouteTableId() { + return routeTableId; + } - public void setNetmask(String netmask) { - this.netmask = netmask; - } + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + } + + public Integer getAvailableIPs() { + return availableIPs; + } - public String getGateway() { - return gateway; + public void setAvailableIPs(Integer availableIPs) { + this.availableIPs = availableIPs; + } + } +} - public void setGateway(String gateway) { - this.gateway = gateway; - } - public Integer getCreateTime() { - return createTime; - } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - public Boolean getHasNATGW() { - return hasNATGW; - } - public void setHasNATGW(Boolean hasNATGW) { - this.hasNATGW = hasNATGW; - } - public String getRouteTableId() { - return routeTableId; - } - public void setRouteTableId(String routeTableId) { - this.routeTableId = routeTableId; - } - public Integer getAvailableIPs() { - return availableIPs; - } - public void setAvailableIPs(Integer availableIPs) { - this.availableIPs = availableIPs; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVIPRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVIPRequest.java index b6e9f959..9c795380 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVIPRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVIPRequest.java @@ -1,59 +1,97 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeVIPRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + + + + /** + * 可用区。参见 [可用区列表](../summary/regionlist.html) + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** vpc的id,指定SubnetId时必填 */ + + + + /** + * vpc的id,指定SubnetId时必填 + */ @UCloudParam("VPCId") private String vpcId; - - /** 子网id,不指定则获取VPCId下的所有vip */ + + + + /** + * 子网id,不指定则获取VPCId下的所有vip + */ @UCloudParam("SubnetId") private String subnetId; - - /** VIP ID */ + + + + /** + * VIP ID + */ @UCloudParam("VIPId") private String vipId; - - /** 业务组名称, 默认为 Default */ + + + + /** + * 业务组名称, 默认为 Default + */ @UCloudParam("Tag") private String tag; - - /** 业务组 */ + + + + /** + * 业务组 + */ @UCloudParam("BusinessId") private String businessId; - + + public String getRegion() { return region; } @@ -61,7 +99,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -69,7 +107,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -77,7 +115,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -85,7 +123,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getSubnetId() { return subnetId; } @@ -93,7 +131,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getVIPId() { return vipId; } @@ -101,7 +139,7 @@ public String getVIPId() { public void setVIPId(String vipId) { this.vipId = vipId; } - + public String getTag() { return tag; } @@ -109,7 +147,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public String getBusinessId() { return businessId; } @@ -117,4 +155,14 @@ public String getBusinessId() { public void setBusinessId(String businessId) { this.businessId = businessId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVIPResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVIPResponse.java index 00a95814..499c90db 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVIPResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVIPResponse.java @@ -1,38 +1,55 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeVIPResponse extends Response { - /** 内网VIP详情,请见VIPDetailSet */ + + + /** + * 内网VIP详情,请见VIPDetailSet + */ @SerializedName("VIPSet") private List vipSet; - - /** 内网VIP地址列表 */ + + + + /** + * 内网VIP地址列表 + */ @SerializedName("DataSet") private List dataSet; - - /** vip数量 */ + + + + /** + * vip数量 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getVIPSet() { return vipSet; } @@ -40,7 +57,7 @@ public List getVIPSet() { public void setVIPSet(List vipSet) { this.vipSet = vipSet; } - + public List getDataSet() { return dataSet; } @@ -48,7 +65,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -56,127 +73,177 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class VIPDetailSet extends Response { + + + /** + * 地域 + */ + @SerializedName("Zone") + private String zone; + + + + /** + * 虚拟ip id + */ + @SerializedName("VIPId") + private String vipId; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 真实主机ip + */ + @SerializedName("RealIp") + private String realIp; + + + + /** + * 虚拟ip + */ + @SerializedName("VIP") + private String vip; + + + + /** + * 子网id + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * VPC id + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * VIP名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * VIP备注 + */ + @SerializedName("Remark") + private String remark; + + + + /** + * VIP所属业务组 + */ + @SerializedName("Tag") + private String tag; + + + public String getZone() { + return zone; + } - public static class VIPDetailSet extends Response { - - /** 地域 */ - @SerializedName("Zone") - private String zone; - - /** 虚拟ip id */ - @SerializedName("VIPId") - private String vipId; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 真实主机ip */ - @SerializedName("RealIp") - private String realIp; - - /** 虚拟ip */ - @SerializedName("VIP") - private String vip; - - /** 子网id */ - @SerializedName("SubnetId") - private String subnetId; - - /** VPC id */ - @SerializedName("VPCId") - private String vpcId; - - /** VIP名称 */ - @SerializedName("Name") - private String name; - - /** VIP备注 */ - @SerializedName("Remark") - private String remark; - - /** VIP所属业务组 */ - @SerializedName("Tag") - private String tag; - - public String getZone() { - return zone; - } - - public void setZone(String zone) { - this.zone = zone; - } + public void setZone(String zone) { + this.zone = zone; + } + + public String getVIPId() { + return vipId; + } - public String getVIPId() { - return vipId; - } + public void setVIPId(String vipId) { + this.vipId = vipId; + } + + public Integer getCreateTime() { + return createTime; + } - public void setVIPId(String vipId) { - this.vipId = vipId; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getRealIp() { + return realIp; + } - public Integer getCreateTime() { - return createTime; - } + public void setRealIp(String realIp) { + this.realIp = realIp; + } + + public String getVIP() { + return vip; + } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } + public void setVIP(String vip) { + this.vip = vip; + } + + public String getSubnetId() { + return subnetId; + } - public String getRealIp() { - return realIp; - } + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getVPCId() { + return vpcId; + } - public void setRealIp(String realIp) { - this.realIp = realIp; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getName() { + return name; + } - public String getVIP() { - return vip; - } + public void setName(String name) { + this.name = name; + } + + public String getRemark() { + return remark; + } - public void setVIP(String vip) { - this.vip = vip; - } + public void setRemark(String remark) { + this.remark = remark; + } + + public String getTag() { + return tag; + } - public String getSubnetId() { - return subnetId; + public void setTag(String tag) { + this.tag = tag; + } + } +} - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - public String getVPCId() { - return vpcId; - } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public String getRemark() { - return remark; - } - public void setRemark(String remark) { - this.remark = remark; - } - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCIntercomRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCIntercomRequest.java index 5f252102..23c57221 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCIntercomRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCIntercomRequest.java @@ -1,50 +1,75 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DescribeVPCIntercomRequest extends Request { - /** 源VPC所在地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 源VPC所在地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** VPC短ID */ + + + + /** + * VPC短ID + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - - /** 目的VPC所在地域,默认为全部地域 */ + + + + /** + * 目的VPC所在地域,默认为全部地域 + */ @UCloudParam("DstRegion") private String dstRegion; - - /** 目的项目ID,默认为全部项目 */ + + + + /** + * 目的项目ID,默认为全部项目 + */ @UCloudParam("DstProjectId") private String dstProjectId; - + + + + public String getRegion() { return region; } @@ -52,7 +77,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -60,7 +85,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -68,7 +93,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public String getDstRegion() { return dstRegion; } @@ -76,7 +101,7 @@ public String getDstRegion() { public void setDstRegion(String dstRegion) { this.dstRegion = dstRegion; } - + public String getDstProjectId() { return dstProjectId; } @@ -84,4 +109,15 @@ public String getDstProjectId() { public void setDstProjectId(String dstProjectId) { this.dstProjectId = dstProjectId; } + + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCIntercomResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCIntercomResponse.java index 273c2f06..af004efd 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCIntercomResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCIntercomResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeVPCIntercomResponse extends Response { - /** 联通VPC信息数组 */ + + + /** + * 联通VPC信息数组 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,103 +41,146 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class VPCIntercomInfo extends Response { + + + /** + * 项目Id + */ + @SerializedName("ProjectId") + private String projectId; + + + + /** + * vpc类型(1表示托管VPC,0表示公有云VPC) + */ + @SerializedName("VPCType") + private Integer vpcType; + + + + /** + * 项目Id(数字) + */ + @SerializedName("AccountId") + private Integer accountId; + + + + /** + * VPC的地址空间 + + */ + @SerializedName("Network") + private List network; + + + + /** + * 所属地域 + */ + @SerializedName("DstRegion") + private String dstRegion; + + + + /** + * VPC名字 + */ + @SerializedName("Name") + private String name; + + + + /** + * VPCId + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 业务组(未分组显示为 Default) + */ + @SerializedName("Tag") + private String tag; + + + public String getProjectId() { + return projectId; + } - public static class VPCIntercomInfo extends Response { - - /** 项目Id */ - @SerializedName("ProjectId") - private String projectId; - - /** vpc类型(1表示托管VPC,0表示公有云VPC) */ - @SerializedName("VPCType") - private Integer vpcType; - - /** 项目Id(数字) */ - @SerializedName("AccountId") - private Integer accountId; - - /** VPC的地址空间 */ - @SerializedName("Network") - private List network; - - /** 所属地域 */ - @SerializedName("DstRegion") - private String dstRegion; - - /** VPC名字 */ - @SerializedName("Name") - private String name; - - /** VPCId */ - @SerializedName("VPCId") - private String vpcId; - - /** 业务组(未分组显示为 Default) */ - @SerializedName("Tag") - private String tag; + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getVPCType() { + return vpcType; + } - public String getProjectId() { - return projectId; - } + public void setVPCType(Integer vpcType) { + this.vpcType = vpcType; + } + + public Integer getAccountId() { + return accountId; + } - public void setProjectId(String projectId) { - this.projectId = projectId; - } + public void setAccountId(Integer accountId) { + this.accountId = accountId; + } + + public List getNetwork() { + return network; + } - public Integer getVPCType() { - return vpcType; - } + public void setNetwork(List network) { + this.network = network; + } + + public String getDstRegion() { + return dstRegion; + } - public void setVPCType(Integer vpcType) { - this.vpcType = vpcType; - } + public void setDstRegion(String dstRegion) { + this.dstRegion = dstRegion; + } + + public String getName() { + return name; + } - public Integer getAccountId() { - return accountId; - } + public void setName(String name) { + this.name = name; + } + + public String getVPCId() { + return vpcId; + } - public void setAccountId(Integer accountId) { - this.accountId = accountId; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getTag() { + return tag; + } - public List getNetwork() { - return network; + public void setTag(String tag) { + this.tag = tag; + } + } +} - public void setNetwork(List network) { - this.network = network; - } - public String getDstRegion() { - return dstRegion; - } - public void setDstRegion(String dstRegion) { - this.dstRegion = dstRegion; - } - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - public String getVPCId() { - return vpcId; - } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - public String getTag() { - return tag; - } - public void setTag(String tag) { - this.tag = tag; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCRequest.java index e39f65e4..be6e6613 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCRequest.java @@ -1,55 +1,81 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeVPCRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** VPCId */ + + + + /** + * VPCId + */ @UCloudParam("VPCIds") private List vpcIds; - - /** 业务组名称 */ + + + + /** + * 业务组名称 + */ @UCloudParam("Tag") private String tag; - - /** 数据偏移量,默认为0 */ + + + + /** + * 数据偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 数据分页值 */ + + + + /** + * 数据分页值 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -57,7 +83,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -65,7 +91,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getVPCIds() { return vpcIds; } @@ -73,7 +99,7 @@ public List getVPCIds() { public void setVPCIds(List vpcIds) { this.vpcIds = vpcIds; } - + public String getTag() { return tag; } @@ -81,7 +107,7 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } - + public Integer getOffset() { return offset; } @@ -89,7 +115,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -97,4 +123,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCResponse.java index 1f153c9c..b584c37f 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeVPCResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeVPCResponse extends Response { - /** vpc信息,具体结构见下方VPCInfo */ + + + /** + * vpc信息,具体结构见下方VPCInfo + */ @SerializedName("DataSet") private List dataSet; - - /** */ + + + + /** + * + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,166 +57,228 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class VPCInfo extends Response { + + + /** + * vpc地址空间信息,详见VPCNetworkInfo + */ + @SerializedName("NetworkInfo") + private List networkInfo; + + + + /** + * 子网数 + */ + @SerializedName("SubnetCount") + private Integer subnetCount; + + + + /** + * 创建时间 + */ + @SerializedName("CreateTime") + private Integer createTime; + + + + /** + * 更新时间 + */ + @SerializedName("UpdateTime") + private Integer updateTime; + + + + /** + * 业务组 + */ + @SerializedName("Tag") + private String tag; + + + + /** + * VPC名称 + */ + @SerializedName("Name") + private String name; + + + + /** + * DefaultVPC 默认VPC,DefinedVPC,自定义VPC      + */ + @SerializedName("VPCType") + private String vpcType; + + + + /** + * VPC资源ID + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * VPC网段 + */ + @SerializedName("Network") + private List network; + + + + /** + * VPC关联的IPv6网段 + */ + @SerializedName("IPv6Network") + private String iPv6Network; + + + + /** + * VPC关联的IPv6网段所属运营商 + */ + @SerializedName("OperatorName") + private String operatorName; + + + public List getNetworkInfo() { + return networkInfo; + } - public static class VPCInfo extends Response { - - /** vpc地址空间信息,详见VPCNetworkInfo */ - @SerializedName("NetworkInfo") - private List networkInfo; - - /** 子网数 */ - @SerializedName("SubnetCount") - private Integer subnetCount; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 更新时间 */ - @SerializedName("UpdateTime") - private Integer updateTime; - - /** 业务组 */ - @SerializedName("Tag") - private String tag; - - /** VPC名称 */ - @SerializedName("Name") - private String name; - - /** DefaultVPC 默认VPC,DefinedVPC,自定义VPC      */ - @SerializedName("VPCType") - private String vpcType; - - /** VPC资源ID */ - @SerializedName("VPCId") - private String vpcId; - - /** VPC网段 */ - @SerializedName("Network") - private List network; - - /** VPC关联的IPv6网段 */ - @SerializedName("IPv6Network") - private String iPv6Network; - - /** VPC关联的IPv6网段所属运营商 */ - @SerializedName("OperatorName") - private String operatorName; - - public List getNetworkInfo() { - return networkInfo; - } - - public void setNetworkInfo(List networkInfo) { - this.networkInfo = networkInfo; - } - - public Integer getSubnetCount() { - return subnetCount; - } - - public void setSubnetCount(Integer subnetCount) { - this.subnetCount = subnetCount; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public Integer getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(Integer updateTime) { - this.updateTime = updateTime; - } + public void setNetworkInfo(List networkInfo) { + this.networkInfo = networkInfo; + } + + public Integer getSubnetCount() { + return subnetCount; + } - public String getTag() { - return tag; - } + public void setSubnetCount(Integer subnetCount) { + this.subnetCount = subnetCount; + } + + public Integer getCreateTime() { + return createTime; + } - public void setTag(String tag) { - this.tag = tag; - } + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getUpdateTime() { + return updateTime; + } - public String getName() { - return name; - } + public void setUpdateTime(Integer updateTime) { + this.updateTime = updateTime; + } + + public String getTag() { + return tag; + } - public void setName(String name) { - this.name = name; - } + public void setTag(String tag) { + this.tag = tag; + } + + public String getName() { + return name; + } - public String getVPCType() { - return vpcType; - } + public void setName(String name) { + this.name = name; + } + + public String getVPCType() { + return vpcType; + } - public void setVPCType(String vpcType) { - this.vpcType = vpcType; - } + public void setVPCType(String vpcType) { + this.vpcType = vpcType; + } + + public String getVPCId() { + return vpcId; + } - public String getVPCId() { - return vpcId; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public List getNetwork() { + return network; + } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } + public void setNetwork(List network) { + this.network = network; + } + + public String getIPv6Network() { + return iPv6Network; + } - public List getNetwork() { - return network; - } + public void setIPv6Network(String iPv6Network) { + this.iPv6Network = iPv6Network; + } + + public String getOperatorName() { + return operatorName; + } - public void setNetwork(List network) { - this.network = network; + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + } + public static class VPCNetworkInfo extends Response { + + + /** + * vpc地址空间 + */ + @SerializedName("Network") + private String network; + + + + /** + * 地址空间中子网数量 + */ + @SerializedName("SubnetCount") + private Integer subnetCount; + + + public String getNetwork() { + return network; + } - public String getIPv6Network() { - return iPv6Network; - } + public void setNetwork(String network) { + this.network = network; + } + + public Integer getSubnetCount() { + return subnetCount; + } - public void setIPv6Network(String iPv6Network) { - this.iPv6Network = iPv6Network; + public void setSubnetCount(Integer subnetCount) { + this.subnetCount = subnetCount; + } + } +} - public String getOperatorName() { - return operatorName; - } - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; - } - } - public static class VPCNetworkInfo extends Response { - /** vpc地址空间 */ - @SerializedName("Network") - private String network; - /** 地址空间中子网数量 */ - @SerializedName("SubnetCount") - private Integer subnetCount; - public String getNetwork() { - return network; - } - public void setNetwork(String network) { - this.network = network; - } - public Integer getSubnetCount() { - return subnetCount; - } - public void setSubnetCount(Integer subnetCount) { - this.subnetCount = subnetCount; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeWhiteListResourceRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeWhiteListResourceRequest.java index 60288371..7739b69d 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeWhiteListResourceRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeWhiteListResourceRequest.java @@ -1,49 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class DescribeWhiteListResourceRequest extends Request { - /** 项目id */ + + + /** + * 项目id + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** NAT网关的Id */ + + + + /** + * NAT网关的Id + */ @NotEmpty @UCloudParam("NATGWIds") private List natgwIds; - - /** 数据偏移量, 默认为0 */ + + + + /** + * 数据偏移量, 默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 数据分页值, 默认为20 */ + + + + /** + * 数据分页值, 默认为20 + */ @UCloudParam("Limit") private Integer limit; - + + public String getProjectId() { return projectId; } @@ -51,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getRegion() { return region; } @@ -59,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public List getNATGWIds() { return natgwIds; } @@ -67,7 +92,7 @@ public List getNATGWIds() { public void setNATGWIds(List natgwIds) { this.natgwIds = natgwIds; } - + public Integer getOffset() { return offset; } @@ -75,7 +100,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -83,4 +108,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeWhiteListResourceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeWhiteListResourceResponse.java index 408784a2..3e526f2b 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeWhiteListResourceResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeWhiteListResourceResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class DescribeWhiteListResourceResponse extends Response { - /** 白名单资源的详细信息,详见DescribeResourceWhiteListDataSet */ + + + /** + * 白名单资源的详细信息,详见DescribeResourceWhiteListDataSet + */ @SerializedName("DataSet") private List dataSet; - - /** 上述DataSet总数量 */ + + + + /** + * 上述DataSet总数量 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,154 +57,212 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class DescribeWhiteListResourceObjectIPInfo extends Response { + + + /** + * natgw字符串 + */ + @SerializedName("GwType") + private String gwType; + + + + /** + * 白名单资源的内网IP + */ + @SerializedName("PrivateIP") + private String privateIP; + + + + /** + * 白名单资源Id信息 + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 白名单资源名称 + */ + @SerializedName("ResourceName") + private String resourceName; + + + + /** + * 白名单资源类型 + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 资源绑定的虚拟网卡的实例ID + */ + @SerializedName("SubResourceId") + private String subResourceId; + + + + /** + * 资源绑定的虚拟网卡的实例名称 + */ + @SerializedName("SubResourceName") + private String subResourceName; + + + + /** + * 资源绑定的虚拟网卡的类型 + */ + @SerializedName("SubResourceType") + private String subResourceType; + + + + /** + * 白名单资源所属VPCId + */ + @SerializedName("VPCId") + private String vpcId; + + + public String getGwType() { + return gwType; + } - public static class DescribeWhiteListResourceObjectIPInfo extends Response { - - /** natgw字符串 */ - @SerializedName("GwType") - private String gwType; - - /** 白名单资源的内网IP */ - @SerializedName("PrivateIP") - private String privateIP; - - /** 白名单资源Id信息 */ - @SerializedName("ResourceId") - private String resourceId; - - /** 白名单资源名称 */ - @SerializedName("ResourceName") - private String resourceName; - - /** 白名单资源类型 */ - @SerializedName("ResourceType") - private String resourceType; - - /** 资源绑定的虚拟网卡的实例ID */ - @SerializedName("SubResourceId") - private String subResourceId; - - /** 资源绑定的虚拟网卡的实例名称 */ - @SerializedName("SubResourceName") - private String subResourceName; - - /** 资源绑定的虚拟网卡的类型 */ - @SerializedName("SubResourceType") - private String subResourceType; - - /** 白名单资源所属VPCId */ - @SerializedName("VPCId") - private String vpcId; - - public String getGwType() { - return gwType; - } - - public void setGwType(String gwType) { - this.gwType = gwType; - } - - public String getPrivateIP() { - return privateIP; - } - - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } - - public String getResourceId() { - return resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - public String getResourceName() { - return resourceName; - } - - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } + public void setGwType(String gwType) { + this.gwType = gwType; + } + + public String getPrivateIP() { + return privateIP; + } - public String getResourceType() { - return resourceType; - } + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + public String getResourceId() { + return resourceId; + } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } - public String getSubResourceId() { - return subResourceId; - } + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getResourceType() { + return resourceType; + } - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getSubResourceId() { + return subResourceId; + } - public String getSubResourceName() { - return subResourceName; - } + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public String getSubResourceName() { + return subResourceName; + } - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getSubResourceType() { + return subResourceType; + } - public String getSubResourceType() { - return subResourceType; - } + public void setSubResourceType(String subResourceType) { + this.subResourceType = subResourceType; + } + + public String getVPCId() { + return vpcId; + } - public void setSubResourceType(String subResourceType) { - this.subResourceType = subResourceType; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + } + public static class NatGWWhitelistDataSet extends Response { + + + /** + * NATGateWay Id + */ + @SerializedName("NATGWId") + private String natgwId; + + + + /** + * 白名单开关标记 + */ + @SerializedName("IfOpen") + private Integer ifOpen; + + + + /** + * 白名单详情 + */ + @SerializedName("ObjectIPInfo") + private List objectIPInfo; + + + public String getNATGWId() { + return natgwId; + } - public String getVPCId() { - return vpcId; - } + public void setNATGWId(String natgwId) { + this.natgwId = natgwId; + } + + public Integer getIfOpen() { + return ifOpen; + } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } + public void setIfOpen(Integer ifOpen) { + this.ifOpen = ifOpen; + } + + public List getObjectIPInfo() { + return objectIPInfo; } - public static class NatGWWhitelistDataSet extends Response { + public void setObjectIPInfo(List objectIPInfo) { + this.objectIPInfo = objectIPInfo; + } + + } +} - /** NATGateWay Id */ - @SerializedName("NATGWId") - private String natgwId; - /** 白名单开关标记 */ - @SerializedName("IfOpen") - private Integer ifOpen; - /** 白名单详情 */ - @SerializedName("ObjectIPInfo") - private List objectIPInfo; - public String getNATGWId() { - return natgwId; - } - public void setNATGWId(String natgwId) { - this.natgwId = natgwId; - } - public Integer getIfOpen() { - return ifOpen; - } - public void setIfOpen(Integer ifOpen) { - this.ifOpen = ifOpen; - } - public List getObjectIPInfo() { - return objectIPInfo; - } - public void setObjectIPInfo(List objectIPInfo) { - this.objectIPInfo = objectIPInfo; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DetachNetworkInterfaceRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DetachNetworkInterfaceRequest.java index eb62016f..f6e7097e 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DetachNetworkInterfaceRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DetachNetworkInterfaceRequest.java @@ -1,48 +1,67 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class DetachNetworkInterfaceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 虚拟网卡ID */ + + + + /** + * 虚拟网卡ID + */ @NotEmpty @UCloudParam("InterfaceId") private String interfaceId; - - /** 云主机ID */ + + + + /** + * 云主机ID + */ @NotEmpty @UCloudParam("InstanceId") private String instanceId; - + + public String getRegion() { return region; } @@ -50,7 +69,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -58,7 +77,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getInterfaceId() { return interfaceId; } @@ -66,7 +85,7 @@ public String getInterfaceId() { public void setInterfaceId(String interfaceId) { this.interfaceId = interfaceId; } - + public String getInstanceId() { return instanceId; } @@ -74,4 +93,14 @@ public String getInstanceId() { public void setInstanceId(String instanceId) { this.instanceId = instanceId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DetachNetworkInterfaceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DetachNetworkInterfaceResponse.java index 7ac02368..dcc5c129 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DetachNetworkInterfaceResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DetachNetworkInterfaceResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class DetachNetworkInterfaceResponse extends Response {} +public class DetachNetworkInterfaceResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableWhiteListRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableWhiteListRequest.java index 00840d64..61437685 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableWhiteListRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableWhiteListRequest.java @@ -1,44 +1,66 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class EnableWhiteListRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 白名单开关标记。0:关闭;1:开启。默认为0 */ + + + + /** + * 白名单开关标记。0:关闭;1:开启。默认为0 + */ @NotEmpty @UCloudParam("IfOpen") private Integer ifOpen; - + + public String getRegion() { return region; } @@ -46,7 +68,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -54,7 +76,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -62,7 +84,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public Integer getIfOpen() { return ifOpen; } @@ -70,4 +92,14 @@ public Integer getIfOpen() { public void setIfOpen(Integer ifOpen) { this.ifOpen = ifOpen; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableWhiteListResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableWhiteListResponse.java index 319032f3..7149798c 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableWhiteListResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableWhiteListResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class EnableWhiteListResponse extends Response {} +public class EnableWhiteListResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForPolicyRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForPolicyRequest.java index 39b4eb06..be49170a 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForPolicyRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForPolicyRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetAvailableResourceForPolicyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目Id。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 返回数据长度,默认为20 */ + + + + /** + * 返回数据长度,默认为20 + */ @UCloudParam("Limit") private Integer limit; - - /** 列表起始位置偏移量,默认为0 */ + + + + /** + * 列表起始位置偏移量,默认为0 + */ @UCloudParam("Offset") private Integer offset; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -60,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -68,7 +91,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public Integer getLimit() { return limit; } @@ -76,7 +99,7 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } - + public Integer getOffset() { return offset; } @@ -84,4 +107,14 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForPolicyResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForPolicyResponse.java index 1c86173a..77057d40 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForPolicyResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForPolicyResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetAvailableResourceForPolicyResponse extends Response { - /** 支持资源类型的信息 */ + + + /** + * 支持资源类型的信息 + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,45 +41,65 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class GetAvailableResourceForPolicyDataSet extends Response { + + + /** + * 资源的Id + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 资源对应的内网Ip + */ + @SerializedName("PrivateIP") + private String privateIP; + + + + /** + * 资源类型。"uhost":云主机; "upm",物理云主机; "hadoophost":hadoop节点; "fortresshost":堡垒机: "udockhost",容器 + */ + @SerializedName("ResourceType") + private String resourceType; + + + public String getResourceId() { + return resourceId; + } - public static class GetAvailableResourceForPolicyDataSet extends Response { + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getPrivateIP() { + return privateIP; + } + + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + } +} - /** 资源的Id */ - @SerializedName("ResourceId") - private String resourceId; - /** 资源对应的内网Ip */ - @SerializedName("PrivateIP") - private String privateIP; - /** - * 资源类型。"uhost":云主机; "upm",物理云主机; "hadoophost":hadoop节点; "fortresshost":堡垒机: "udockhost",容器 - */ - @SerializedName("ResourceType") - private String resourceType; - public String getResourceId() { - return resourceId; - } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - public String getPrivateIP() { - return privateIP; - } - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } - public String getResourceType() { - return resourceType; - } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForSnatRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForSnatRuleRequest.java index 7e9607c5..c4a4ac08 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForSnatRuleRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForSnatRuleRequest.java @@ -1,51 +1,74 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetAvailableResourceForSnatRuleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 数据偏移量, 默认为0 */ + + + + /** + * 数据偏移量, 默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 数据分页值, 默认为20 */ + + + + /** + * 数据分页值, 默认为20 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -53,7 +76,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -61,7 +84,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -69,7 +92,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public Integer getOffset() { return offset; } @@ -77,7 +100,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -85,4 +108,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForSnatRuleResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForSnatRuleResponse.java index 17610d62..53695667 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForSnatRuleResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForSnatRuleResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetAvailableResourceForSnatRuleResponse extends Response { - /** 返回的资源详细信息 */ + + + /** + * 返回的资源详细信息 + */ @SerializedName("DataSet") private List dataSet; - - /** 总数 */ + + + + /** + * 总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,79 +57,113 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class GetAvailableResourceForSnatRuleDataSet extends Response { + + + /** + * 资源ID + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 资源名称 + */ + @SerializedName("ResourceName") + private String resourceName; + + + + /** + * 资源内网IP + */ + @SerializedName("PrivateIP") + private String privateIP; + + + + /** + * 资源类型 + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 资源所属VPC的ID + */ + @SerializedName("SubnetworkId") + private String subnetworkId; + + + + /** + * 资源所属子网的ID + */ + @SerializedName("VPCId") + private String vpcId; + + + public String getResourceId() { + return resourceId; + } - public static class GetAvailableResourceForSnatRuleDataSet extends Response { - - /** 资源ID */ - @SerializedName("ResourceId") - private String resourceId; - - /** 资源名称 */ - @SerializedName("ResourceName") - private String resourceName; - - /** 资源内网IP */ - @SerializedName("PrivateIP") - private String privateIP; - - /** 资源类型 */ - @SerializedName("ResourceType") - private String resourceType; + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } - /** 资源所属VPC的ID */ - @SerializedName("SubnetworkId") - private String subnetworkId; + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getPrivateIP() { + return privateIP; + } - /** 资源所属子网的ID */ - @SerializedName("VPCId") - private String vpcId; + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + public String getResourceType() { + return resourceType; + } - public String getResourceId() { - return resourceId; - } + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getSubnetworkId() { + return subnetworkId; + } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } + public void setSubnetworkId(String subnetworkId) { + this.subnetworkId = subnetworkId; + } + + public String getVPCId() { + return vpcId; + } - public String getResourceName() { - return resourceName; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + } +} - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } - public String getPrivateIP() { - return privateIP; - } - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } - public String getResourceType() { - return resourceType; - } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - public String getSubnetworkId() { - return subnetworkId; - } - public void setSubnetworkId(String subnetworkId) { - this.subnetworkId = subnetworkId; - } - public String getVPCId() { - return vpcId; - } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForWhiteListRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForWhiteListRequest.java index 97b0c6df..fbd5b3e6 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForWhiteListRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForWhiteListRequest.java @@ -1,50 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class GetAvailableResourceForWhiteListRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目Id。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 数据偏移量, 默认为0 */ + + + + /** + * 数据偏移量, 默认为0 + */ @UCloudParam("Offset") private Integer offset; - - /** 数据分页值, 默认为20 */ + + + + /** + * 数据分页值, 默认为20 + */ @UCloudParam("Limit") private Integer limit; - + + public String getRegion() { return region; } @@ -52,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -60,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -68,7 +91,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public Integer getOffset() { return offset; } @@ -76,7 +99,7 @@ public Integer getOffset() { public void setOffset(Integer offset) { this.offset = offset; } - + public Integer getLimit() { return limit; } @@ -84,4 +107,14 @@ public Integer getLimit() { public void setLimit(Integer limit) { this.limit = limit; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForWhiteListResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForWhiteListResponse.java index 80cadfe7..2a13a2ef 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForWhiteListResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetAvailableResourceForWhiteListResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetAvailableResourceForWhiteListResponse extends Response { - /** 返回白名单列表的详细信息 */ + + + /** + * 返回白名单列表的详细信息 + */ @SerializedName("DataSet") private List dataSet; - - /** 白名单资源列表的总的个数 */ + + + + /** + * 白名单资源列表的总的个数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getDataSet() { return dataSet; } @@ -36,7 +49,7 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } - + public Integer getTotalCount() { return totalCount; } @@ -44,117 +57,161 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class GetAvailableResourceForWhiteListDataSet extends Response { + + + /** + * 资源类型Id + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 资源名称 + */ + @SerializedName("ResourceName") + private String resourceName; + + + + /** + * 资源的内网Ip + */ + @SerializedName("PrivateIP") + private String privateIP; + + + + /** + * 资源类型。"uhost":云主机; "upm",物理云主机; "hadoophost":hadoop节点; "fortresshost":堡垒机: "udockhost",容器 + */ + @SerializedName("ResourceType") + private String resourceType; + + + + /** + * 资源绑定的虚拟网卡的实例名称 + */ + @SerializedName("SubResourceName") + private String subResourceName; + + + + /** + * 资源所属VPCId + */ + @SerializedName("VPCId") + private String vpcId; + + + + /** + * 资源所属子网Id + */ + @SerializedName("SubnetworkId") + private String subnetworkId; + + + + /** + * 资源绑定的虚拟网卡的实例ID + */ + @SerializedName("SubResourceId") + private String subResourceId; + + + + /** + * 资源绑定的虚拟网卡的实例类型 + */ + @SerializedName("SubResourceType") + private String subResourceType; + + + public String getResourceId() { + return resourceId; + } - public static class GetAvailableResourceForWhiteListDataSet extends Response { - - /** 资源类型Id */ - @SerializedName("ResourceId") - private String resourceId; - - /** 资源名称 */ - @SerializedName("ResourceName") - private String resourceName; - - /** 资源的内网Ip */ - @SerializedName("PrivateIP") - private String privateIP; - - /** - * 资源类型。"uhost":云主机; "upm",物理云主机; "hadoophost":hadoop节点; "fortresshost":堡垒机: "udockhost",容器 - */ - @SerializedName("ResourceType") - private String resourceType; - - /** 资源绑定的虚拟网卡的实例名称 */ - @SerializedName("SubResourceName") - private String subResourceName; - - /** 资源所属VPCId */ - @SerializedName("VPCId") - private String vpcId; - - /** 资源所属子网Id */ - @SerializedName("SubnetworkId") - private String subnetworkId; - - /** 资源绑定的虚拟网卡的实例ID */ - @SerializedName("SubResourceId") - private String subResourceId; - - /** 资源绑定的虚拟网卡的实例类型 */ - @SerializedName("SubResourceType") - private String subResourceType; - - public String getResourceId() { - return resourceId; - } + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getPrivateIP() { + return privateIP; + } - public String getResourceName() { - return resourceName; - } + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + public String getResourceType() { + return resourceType; + } - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getSubResourceName() { + return subResourceName; + } - public String getPrivateIP() { - return privateIP; - } + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getVPCId() { + return vpcId; + } - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetworkId() { + return subnetworkId; + } - public String getResourceType() { - return resourceType; - } + public void setSubnetworkId(String subnetworkId) { + this.subnetworkId = subnetworkId; + } + + public String getSubResourceId() { + return subResourceId; + } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public String getSubResourceType() { + return subResourceType; + } - public String getSubResourceName() { - return subResourceName; + public void setSubResourceType(String subResourceType) { + this.subResourceType = subResourceType; + } + } +} - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } - public String getVPCId() { - return vpcId; - } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - public String getSubnetworkId() { - return subnetworkId; - } - public void setSubnetworkId(String subnetworkId) { - this.subnetworkId = subnetworkId; - } - public String getSubResourceId() { - return subResourceId; - } - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } - public String getSubResourceType() { - return subResourceType; - } - public void setSubResourceType(String subResourceType) { - this.subResourceType = subResourceType; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetNetworkAclTargetResourceRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetNetworkAclTargetResourceRequest.java index ebe901eb..16ed6eec 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetNetworkAclTargetResourceRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetNetworkAclTargetResourceRequest.java @@ -1,43 +1,57 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class GetNetworkAclTargetResourceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** 子网ID。 */ + + + + /** + * 子网ID。 + */ @NotEmpty @UCloudParam("SubnetworkId") private List subnetworkId; - + + public String getRegion() { return region; } @@ -45,7 +59,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -53,7 +67,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public List getSubnetworkId() { return subnetworkId; } @@ -61,4 +75,14 @@ public List getSubnetworkId() { public void setSubnetworkId(List subnetworkId) { this.subnetworkId = subnetworkId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetNetworkAclTargetResourceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetNetworkAclTargetResourceResponse.java index 51f4ef78..e32de2af 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetNetworkAclTargetResourceResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/GetNetworkAclTargetResourceResponse.java @@ -1,34 +1,47 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class GetNetworkAclTargetResourceResponse extends Response { - /** ACL规则应用目标资源列表,具体结构见下方TargetResourceInfo */ + + + /** + * ACL规则应用目标资源列表,具体结构见下方TargetResourceInfo + */ @SerializedName("TargetResourceList") private List targetResourceList; - - /** ACL规则应用目标资源总数 */ + + + + /** + * ACL规则应用目标资源总数 + */ @SerializedName("TotalCount") private Integer totalCount; - + + public List getTargetResourceList() { return targetResourceList; } @@ -36,7 +49,7 @@ public List getTargetResourceList() { public void setTargetResourceList(List targetResourceList) { this.targetResourceList = targetResourceList; } - + public Integer getTotalCount() { return totalCount; } @@ -44,103 +57,145 @@ public Integer getTotalCount() { public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + + public static class TargetResourceInfo extends Response { + + + /** + * 子网ID + */ + @SerializedName("SubnetworkId") + private String subnetworkId; + + + + /** + * 资源名称 + */ + @SerializedName("ResourceName") + private String resourceName; + + + + /** + * 资源ID + */ + @SerializedName("ResourceId") + private String resourceId; + + + + /** + * 资源类型 + */ + @SerializedName("ResourceType") + private Integer resourceType; + + + + /** + * 资源绑定的虚拟网卡的名称 + */ + @SerializedName("SubResourceName") + private String subResourceName; + + + + /** + * 资源绑定的虚拟网卡的ID + */ + @SerializedName("SubResourceId") + private String subResourceId; + + + + /** + * 资源绑定虚拟网卡的类型 + */ + @SerializedName("SubResourceType") + private Integer subResourceType; + + + + /** + * 资源内网IP + */ + @SerializedName("PrivateIp") + private String privateIp; + + + public String getSubnetworkId() { + return subnetworkId; + } - public static class TargetResourceInfo extends Response { - - /** 子网ID */ - @SerializedName("SubnetworkId") - private String subnetworkId; - - /** 资源名称 */ - @SerializedName("ResourceName") - private String resourceName; - - /** 资源ID */ - @SerializedName("ResourceId") - private String resourceId; - - /** 资源类型 */ - @SerializedName("ResourceType") - private Integer resourceType; - - /** 资源绑定的虚拟网卡的名称 */ - @SerializedName("SubResourceName") - private String subResourceName; - - /** 资源绑定的虚拟网卡的ID */ - @SerializedName("SubResourceId") - private String subResourceId; - - /** 资源绑定虚拟网卡的类型 */ - @SerializedName("SubResourceType") - private Integer subResourceType; - - /** 资源内网IP */ - @SerializedName("PrivateIp") - private String privateIp; + public void setSubnetworkId(String subnetworkId) { + this.subnetworkId = subnetworkId; + } + + public String getResourceName() { + return resourceName; + } - public String getSubnetworkId() { - return subnetworkId; - } + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getResourceId() { + return resourceId; + } - public void setSubnetworkId(String subnetworkId) { - this.subnetworkId = subnetworkId; - } + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public Integer getResourceType() { + return resourceType; + } - public String getResourceName() { - return resourceName; - } + public void setResourceType(Integer resourceType) { + this.resourceType = resourceType; + } + + public String getSubResourceName() { + return subResourceName; + } - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getSubResourceId() { + return subResourceId; + } - public String getResourceId() { - return resourceId; - } + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public Integer getSubResourceType() { + return subResourceType; + } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } + public void setSubResourceType(Integer subResourceType) { + this.subResourceType = subResourceType; + } + + public String getPrivateIp() { + return privateIp; + } - public Integer getResourceType() { - return resourceType; + public void setPrivateIp(String privateIp) { + this.privateIp = privateIp; + } + } +} - public void setResourceType(Integer resourceType) { - this.resourceType = resourceType; - } - public String getSubResourceName() { - return subResourceName; - } - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } - public String getSubResourceId() { - return subResourceId; - } - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } - public Integer getSubResourceType() { - return subResourceType; - } - public void setSubResourceType(Integer subResourceType) { - this.subResourceType = subResourceType; - } - public String getPrivateIp() { - return privateIp; - } - public void setPrivateIp(String privateIp) { - this.privateIp = privateIp; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ListSubnetForNATGWRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ListSubnetForNATGWRequest.java index 8c4470f4..b07d66c3 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ListSubnetForNATGWRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ListSubnetForNATGWRequest.java @@ -1,38 +1,56 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ListSubnetForNATGWRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关所属VPC Id。默认值为Default VPC Id */ + + + + /** + * NAT网关所属VPC Id。默认值为Default VPC Id + */ @UCloudParam("VPCId") private String vpcId; - + + public String getRegion() { return region; } @@ -40,7 +58,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -48,7 +66,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -56,4 +74,14 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ListSubnetForNATGWResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ListSubnetForNATGWResponse.java index f55a7e62..335f03e6 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ListSubnetForNATGWResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ListSubnetForNATGWResponse.java @@ -1,30 +1,39 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; -import cn.ucloud.common.response.Response; +import java.util.List; + import com.google.gson.annotations.SerializedName; -import java.util.List; +import cn.ucloud.common.response.Response; public class ListSubnetForNATGWResponse extends Response { - /** 具体参数请见NatgwSubnetDataSet */ + + + /** + * 具体参数请见NatgwSubnetDataSet + */ @SerializedName("DataSet") private List dataSet; - + + public List getDataSet() { return dataSet; } @@ -32,67 +41,97 @@ public List getDataSet() { public void setDataSet(List dataSet) { this.dataSet = dataSet; } + + public static class NatgwSubnetDataSet extends Response { + + + /** + * 子网id + */ + @SerializedName("SubnetId") + private String subnetId; + + + + /** + * 子网网段 + */ + @SerializedName("Subnet") + private String subnet; + + + + /** + * 掩码 + */ + @SerializedName("Netmask") + private String netmask; + + + + /** + * 子网名字 + */ + @SerializedName("SubnetName") + private String subnetName; + + + + /** + * 是否绑定NATGW + */ + @SerializedName("HasNATGW") + private Boolean hasNATGW; + + + public String getSubnetId() { + return subnetId; + } - public static class NatgwSubnetDataSet extends Response { - - /** 子网id */ - @SerializedName("SubnetId") - private String subnetId; - - /** 子网网段 */ - @SerializedName("Subnet") - private String subnet; + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getSubnet() { + return subnet; + } - /** 掩码 */ - @SerializedName("Netmask") - private String netmask; + public void setSubnet(String subnet) { + this.subnet = subnet; + } + + public String getNetmask() { + return netmask; + } - /** 子网名字 */ - @SerializedName("SubnetName") - private String subnetName; + public void setNetmask(String netmask) { + this.netmask = netmask; + } + + public String getSubnetName() { + return subnetName; + } - /** 是否绑定NATGW */ - @SerializedName("HasNATGW") - private Boolean hasNATGW; + public void setSubnetName(String subnetName) { + this.subnetName = subnetName; + } + + public Boolean getHasNATGW() { + return hasNATGW; + } - public String getSubnetId() { - return subnetId; + public void setHasNATGW(Boolean hasNATGW) { + this.hasNATGW = hasNATGW; + } + } +} - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - public String getSubnet() { - return subnet; - } - public void setSubnet(String subnet) { - this.subnet = subnet; - } - public String getNetmask() { - return netmask; - } - public void setNetmask(String netmask) { - this.netmask = netmask; - } - public String getSubnetName() { - return subnetName; - } - public void setSubnetName(String subnetName) { - this.subnetName = subnetName; - } - public Boolean getHasNATGW() { - return hasNATGW; - } - public void setHasNATGW(Boolean hasNATGW) { - this.hasNATGW = hasNATGW; - } - } -} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ModifyRouteRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ModifyRouteRuleRequest.java index a11bed90..09a3c63c 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ModifyRouteRuleRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ModifyRouteRuleRequest.java @@ -1,53 +1,68 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class ModifyRouteRuleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 通过DescribeRouteTable拿到 */ + + + + /** + * 通过DescribeRouteTable拿到 + */ @NotEmpty @UCloudParam("RouteTableId") private String routeTableId; - + + + /** - * 格式: RouteRuleId | 目的网段 | 下一跳类型(支持INSTANCE、VIP) | 下一跳 |优先级(保留字段,填写0即可)| 备注 | - * 增、删、改标志(add/delete/update) 。"添加"示例: test_id | 10.8.0.0/16 | instance | uhost-xd8ja | 0 | - * Default Route Rule| add (添加的RouteRuleId填任意非空字符串) 。"删除"示例: routerule-xk3jxa | 10.8.0.0/16 | - * instance | uhost-xd8ja | 0 | Default Route Rule| delete (RouteRuleId来自DescribeRouteTable中) - * 。“修改”示例: routerule-xk3jxa | 10.8.0.0/16 | instance | uhost-cjksa2 | 0 | Default Route Rule| - * update (RouteRuleId来自DescribeRouteTable中) + * 格式: RouteRuleId | 目的网段 | 下一跳类型(支持INSTANCE、VIP) | 下一跳 |优先级(保留字段,填写0即可)| 备注 | 增、删、改标志(add/delete/update) 。"添加"示例: test_id | 10.8.0.0/16 | instance | uhost-xd8ja | 0 | Default Route Rule| add (添加的RouteRuleId填任意非空字符串) 。"删除"示例: routerule-xk3jxa | 10.8.0.0/16 | instance | uhost-xd8ja | 0 | Default Route Rule| delete (RouteRuleId来自DescribeRouteTable中) +。“修改”示例: routerule-xk3jxa | 10.8.0.0/16 | instance | uhost-cjksa2 | 0 | Default Route Rule| update (RouteRuleId来自DescribeRouteTable中) */ @NotEmpty @UCloudParam("RouteRule") private List routeRule; - + + public String getRegion() { return region; } @@ -55,7 +70,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -63,7 +78,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getRouteTableId() { return routeTableId; } @@ -71,7 +86,7 @@ public String getRouteTableId() { public void setRouteTableId(String routeTableId) { this.routeTableId = routeTableId; } - + public List getRouteRule() { return routeRule; } @@ -79,4 +94,14 @@ public List getRouteRule() { public void setRouteRule(List routeRule) { this.routeRule = routeRule; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ModifyRouteRuleResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ModifyRouteRuleResponse.java index 73dcef84..72b032b5 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ModifyRouteRuleResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ModifyRouteRuleResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ModifyRouteRuleResponse extends Response {} +public class ModifyRouteRuleResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/MoveSecondaryIPMacRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/MoveSecondaryIPMacRequest.java index 16338f52..ba1b9f8d 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/MoveSecondaryIPMacRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/MoveSecondaryIPMacRequest.java @@ -1,57 +1,84 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class MoveSecondaryIPMacRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** Secondary IP */ + + + + /** + * Secondary IP + */ @NotEmpty @UCloudParam("Ip") private String ip; - - /** 旧 Mac。Secondary IP 当前所绑定的 Mac */ + + + + /** + * 旧 Mac。Secondary IP 当前所绑定的 Mac + */ @NotEmpty @UCloudParam("OldMac") private String oldMac; - - /** 新 Mac。Secondary IP 迁移的目的 Mac */ + + + + /** + * 新 Mac。Secondary IP 迁移的目的 Mac + */ @NotEmpty @UCloudParam("NewMac") private String newMac; - - /** 子网 ID。IP/OldMac/NewMac 三者必须在同一子网 */ + + + + /** + * 子网 ID。IP/OldMac/NewMac 三者必须在同一子网 + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - + + public String getRegion() { return region; } @@ -59,7 +86,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -67,7 +94,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getIp() { return ip; } @@ -75,7 +102,7 @@ public String getIp() { public void setIp(String ip) { this.ip = ip; } - + public String getOldMac() { return oldMac; } @@ -83,7 +110,7 @@ public String getOldMac() { public void setOldMac(String oldMac) { this.oldMac = oldMac; } - + public String getNewMac() { return newMac; } @@ -91,7 +118,7 @@ public String getNewMac() { public void setNewMac(String newMac) { this.newMac = newMac; } - + public String getSubnetId() { return subnetId; } @@ -99,4 +126,14 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/MoveSecondaryIPMacResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/MoveSecondaryIPMacResponse.java index fd9ef95f..e25610e4 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/MoveSecondaryIPMacResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/MoveSecondaryIPMacResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class MoveSecondaryIPMacResponse extends Response {} +public class MoveSecondaryIPMacResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ReleaseVIPRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ReleaseVIPRequest.java index 187bcf53..8bded960 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ReleaseVIPRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ReleaseVIPRequest.java @@ -1,43 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class ReleaseVIPRequest extends Request { - /** 地域 */ + + + /** + * 地域 + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 可用区 */ + + + + /** + * 可用区 + */ @UCloudParam("Zone") private String zone; - - /** 项目ID。不填写为默认项目,子帐号必须填写 */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写 + */ @UCloudParam("ProjectId") private String projectId; - - /** 内网VIP的id */ + + + + /** + * 内网VIP的id + */ @NotEmpty @UCloudParam("VIPId") private String vipId; - + + public String getRegion() { return region; } @@ -45,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getZone() { return zone; } @@ -53,7 +75,7 @@ public String getZone() { public void setZone(String zone) { this.zone = zone; } - + public String getProjectId() { return projectId; } @@ -61,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVIPId() { return vipId; } @@ -69,4 +91,14 @@ public String getVIPId() { public void setVIPId(String vipId) { this.vipId = vipId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ReleaseVIPResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ReleaseVIPResponse.java index fd7c22d8..f0ccdab6 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ReleaseVIPResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/ReleaseVIPResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class ReleaseVIPResponse extends Response {} +public class ReleaseVIPResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SetGwDefaultExportRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SetGwDefaultExportRequest.java index 640e7650..957531ae 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SetGwDefaultExportRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SetGwDefaultExportRequest.java @@ -1,47 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class SetGwDefaultExportRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** NAT网关绑定的EIP。ExportIp和ExportEipId必填一个 */ + + + + /** + * NAT网关绑定的EIP。ExportIp和ExportEipId必填一个 + */ @UCloudParam("ExportIp") private String exportIp; - - /** NAT网关绑定的EIP Id。ExportIp和ExportEipId必填一个 */ + + + + /** + * NAT网关绑定的EIP Id。ExportIp和ExportEipId必填一个 + */ @UCloudParam("ExportEipId") private String exportEipId; - + + public String getRegion() { return region; } @@ -49,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -65,7 +91,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public String getExportIp() { return exportIp; } @@ -73,7 +99,7 @@ public String getExportIp() { public void setExportIp(String exportIp) { this.exportIp = exportIp; } - + public String getExportEipId() { return exportEipId; } @@ -81,4 +107,14 @@ public String getExportEipId() { public void setExportEipId(String exportEipId) { this.exportEipId = exportEipId; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SetGwDefaultExportResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SetGwDefaultExportResponse.java index fc767708..8fbc2eda 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SetGwDefaultExportResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SetGwDefaultExportResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class SetGwDefaultExportResponse extends Response {} +public class SetGwDefaultExportResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWPolicyRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWPolicyRequest.java index 9a9d69be..f792ab26 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWPolicyRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWPolicyRequest.java @@ -1,76 +1,119 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateNATGWPolicyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目Id。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 转发策略Id */ + + + + /** + * 转发策略Id + */ @NotEmpty @UCloudParam("PolicyId") private String policyId; - - /** 协议类型。枚举值为:TCP 、 UDP */ + + + + /** + * 协议类型。枚举值为:TCP 、 UDP + */ @NotEmpty @UCloudParam("Protocol") private String protocol; - - /** 源IP。填写对应的EIP Id */ + + + + /** + * 源IP。填写对应的EIP Id + */ @NotEmpty @UCloudParam("SrcEIPId") private String srcEIPId; - - /** 源端口。可填写固定端口,也可填写端口范围。支持的端口范围为1-6553 */ + + + + /** + * 源端口。可填写固定端口,也可填写端口范围。支持的端口范围为1-6553 + */ @NotEmpty @UCloudParam("SrcPort") private String srcPort; - - /** 目标IP。填写对应的目标IP地址 */ + + + + /** + * 目标IP。填写对应的目标IP地址 + */ @NotEmpty @UCloudParam("DstIP") private String dstIP; - - /** 目标端口。可填写固定端口,也可填写端口范围。支持的端口范围为1-65535 */ + + + + /** + * 目标端口。可填写固定端口,也可填写端口范围。支持的端口范围为1-65535 + */ @NotEmpty @UCloudParam("DstPort") private String dstPort; - - /** 转发策略名称。默认为空 */ + + + + /** + * 转发策略名称。默认为空 + */ @UCloudParam("PolicyName") private String policyName; - + + public String getRegion() { return region; } @@ -78,7 +121,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -86,7 +129,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -94,7 +137,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public String getPolicyId() { return policyId; } @@ -102,7 +145,7 @@ public String getPolicyId() { public void setPolicyId(String policyId) { this.policyId = policyId; } - + public String getProtocol() { return protocol; } @@ -110,7 +153,7 @@ public String getProtocol() { public void setProtocol(String protocol) { this.protocol = protocol; } - + public String getSrcEIPId() { return srcEIPId; } @@ -118,7 +161,7 @@ public String getSrcEIPId() { public void setSrcEIPId(String srcEIPId) { this.srcEIPId = srcEIPId; } - + public String getSrcPort() { return srcPort; } @@ -126,7 +169,7 @@ public String getSrcPort() { public void setSrcPort(String srcPort) { this.srcPort = srcPort; } - + public String getDstIP() { return dstIP; } @@ -134,7 +177,7 @@ public String getDstIP() { public void setDstIP(String dstIP) { this.dstIP = dstIP; } - + public String getDstPort() { return dstPort; } @@ -142,7 +185,7 @@ public String getDstPort() { public void setDstPort(String dstPort) { this.dstPort = dstPort; } - + public String getPolicyName() { return policyName; } @@ -150,4 +193,14 @@ public String getPolicyName() { public void setPolicyName(String policyName) { this.policyName = policyName; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWPolicyResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWPolicyResponse.java index 7f27368e..a649ca1c 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWPolicyResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWPolicyResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateNATGWPolicyResponse extends Response {} +public class UpdateNATGWPolicyResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSubnetRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSubnetRequest.java index 65412e52..c2eb5077 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSubnetRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSubnetRequest.java @@ -1,47 +1,65 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UpdateNATGWSubnetRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目Id。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关Id */ + + + + /** + * NAT网关Id + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** NAT网关绑定的子网Id */ + + + + /** + * NAT网关绑定的子网Id + */ @UCloudParam("SubnetworkIds") private List subnetworkIds; - + + public String getRegion() { return region; } @@ -49,7 +67,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +75,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -65,7 +83,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public List getSubnetworkIds() { return subnetworkIds; } @@ -73,4 +91,14 @@ public List getSubnetworkIds() { public void setSubnetworkIds(List subnetworkIds) { this.subnetworkIds = subnetworkIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSubnetResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSubnetResponse.java index 68e77b44..1d7da324 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSubnetResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSubnetResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateNATGWSubnetResponse extends Response {} +public class UpdateNATGWSubnetResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclEntryRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclEntryRequest.java index 8c815b64..523367aa 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclEntryRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclEntryRequest.java @@ -1,87 +1,144 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UpdateNetworkAclEntryRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** ACL的ID */ + + + + /** + * ACL的ID + */ @NotEmpty @UCloudParam("AclId") private String aclId; - - /** 需要更新的Entry Id */ + + + + /** + * 需要更新的Entry Id + */ @NotEmpty @UCloudParam("EntryId") private String entryId; - - /** Entry的优先级,对于同样的Direction来说,不能重复 */ + + + + /** + * Entry的优先级,对于同样的Direction来说,不能重复 + */ @NotEmpty @UCloudParam("Priority") private Integer priority; - - /** 出向或者入向(“Ingress”, "Egress") */ + + + + /** + * 出向或者入向(“Ingress”, "Egress") + */ @NotEmpty @UCloudParam("Direction") private String direction; - - /** 针对的协议规则 */ + + + + /** + * 针对的协议规则 + */ @NotEmpty @UCloudParam("IpProtocol") private String ipProtocol; - - /** IPv4段的CIDR表示 */ + + + + /** + * IPv4段的CIDR表示 + */ @NotEmpty @UCloudParam("CidrBlock") private String cidrBlock; - - /** 针对的端口范围 */ + + + + /** + * 针对的端口范围 + */ @NotEmpty @UCloudParam("PortRange") private String portRange; - - /** 规则的行为("Accept", "Reject") */ + + + + /** + * 规则的行为("Accept", "Reject") + */ @NotEmpty @UCloudParam("EntryAction") private String entryAction; - - /** 描述 */ + + + + /** + * 描述 + */ @UCloudParam("Description") private String description; - - /** 应用目标类型。0代表“子网内全部资源”, 1代表“子网内指定资源”。默认为0 */ + + + + /** + * 应用目标类型。0代表“子网内全部资源”, 1代表“子网内指定资源”。默认为0 + */ @UCloudParam("TargetType") private Integer targetType; - - /** 应用目标资源列表。默认为全部资源生效。TargetType为0时不用填写该值 */ + + + + /** + * 应用目标资源列表。默认为全部资源生效。TargetType为0时不用填写该值 + */ @UCloudParam("TargetResourceIds") private List targetResourceIds; - + + public String getRegion() { return region; } @@ -89,7 +146,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -97,7 +154,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getAclId() { return aclId; } @@ -105,7 +162,7 @@ public String getAclId() { public void setAclId(String aclId) { this.aclId = aclId; } - + public String getEntryId() { return entryId; } @@ -113,7 +170,7 @@ public String getEntryId() { public void setEntryId(String entryId) { this.entryId = entryId; } - + public Integer getPriority() { return priority; } @@ -121,7 +178,7 @@ public Integer getPriority() { public void setPriority(Integer priority) { this.priority = priority; } - + public String getDirection() { return direction; } @@ -129,7 +186,7 @@ public String getDirection() { public void setDirection(String direction) { this.direction = direction; } - + public String getIpProtocol() { return ipProtocol; } @@ -137,7 +194,7 @@ public String getIpProtocol() { public void setIpProtocol(String ipProtocol) { this.ipProtocol = ipProtocol; } - + public String getCidrBlock() { return cidrBlock; } @@ -145,7 +202,7 @@ public String getCidrBlock() { public void setCidrBlock(String cidrBlock) { this.cidrBlock = cidrBlock; } - + public String getPortRange() { return portRange; } @@ -153,7 +210,7 @@ public String getPortRange() { public void setPortRange(String portRange) { this.portRange = portRange; } - + public String getEntryAction() { return entryAction; } @@ -161,7 +218,7 @@ public String getEntryAction() { public void setEntryAction(String entryAction) { this.entryAction = entryAction; } - + public String getDescription() { return description; } @@ -169,7 +226,7 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } - + public Integer getTargetType() { return targetType; } @@ -177,7 +234,7 @@ public Integer getTargetType() { public void setTargetType(Integer targetType) { this.targetType = targetType; } - + public List getTargetResourceIds() { return targetResourceIds; } @@ -185,4 +242,14 @@ public List getTargetResourceIds() { public void setTargetResourceIds(List targetResourceIds) { this.targetResourceIds = targetResourceIds; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclEntryResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclEntryResponse.java index b8ed7be3..7470c2fa 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclEntryResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclEntryResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateNetworkAclEntryResponse extends Response {} +public class UpdateNetworkAclEntryResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclRequest.java index e6ac3ff3..5e0a301e 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclRequest.java @@ -1,49 +1,76 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateNetworkAclRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; + + + + /** + * Acl的名称 - /** Acl的名称 */ + */ @NotEmpty @UCloudParam("AclName") private String aclName; - - /** 需要更改的ACL ID */ + + + + /** + * 需要更改的ACL ID + */ @NotEmpty @UCloudParam("AclId") private String aclId; - - /** 描述 */ + + + + /** + * 描述 + */ @NotEmpty @UCloudParam("Description") private String description; - + + public String getRegion() { return region; } @@ -51,7 +78,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -59,7 +86,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getAclName() { return aclName; } @@ -67,7 +94,7 @@ public String getAclName() { public void setAclName(String aclName) { this.aclName = aclName; } - + public String getAclId() { return aclId; } @@ -75,7 +102,7 @@ public String getAclId() { public void setAclId(String aclId) { this.aclId = aclId; } - + public String getDescription() { return description; } @@ -83,4 +110,14 @@ public String getDescription() { public void setDescription(String description) { this.description = description; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclResponse.java index be6f27bc..b190a245 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkAclResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateNetworkAclResponse extends Response {} +public class UpdateNetworkAclResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateRouteTableAttributeRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateRouteTableAttributeRequest.java index c9e231c8..9995a420 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateRouteTableAttributeRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateRouteTableAttributeRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateRouteTableAttributeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 路由表ID */ + + + + /** + * 路由表ID + */ @NotEmpty @UCloudParam("RouteTableId") private String routeTableId; - - /** 名称 */ + + + + /** + * 名称 + */ @UCloudParam("Name") private String name; - - /** 备注 */ + + + + /** + * 备注 + */ @UCloudParam("Remark") private String remark; - - /** 业务组名称 */ + + + + /** + * 业务组名称 + */ @UCloudParam("Tag") private String tag; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -62,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getRouteTableId() { return routeTableId; } @@ -70,7 +100,7 @@ public String getRouteTableId() { public void setRouteTableId(String routeTableId) { this.routeTableId = routeTableId; } - + public String getName() { return name; } @@ -78,7 +108,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getRemark() { return remark; } @@ -86,7 +116,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public String getTag() { return tag; } @@ -94,4 +124,14 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateRouteTableAttributeResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateRouteTableAttributeResponse.java index 97bd76a8..3c291d34 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateRouteTableAttributeResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateRouteTableAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateRouteTableAttributeResponse extends Response {} +public class UpdateRouteTableAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSnatRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSnatRuleRequest.java index 01f4d9dc..d2a1ed7e 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSnatRuleRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSnatRuleRequest.java @@ -1,56 +1,83 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateSnatRuleRequest extends Request { - /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + + + /** + * 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + */ @NotEmpty @UCloudParam("Region") private String region; - + + + /** - * 项目ID。不填写为默认项目,子帐号必须填写。 - * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ @UCloudParam("ProjectId") private String projectId; - - /** NAT网关的ID, */ + + + + /** + * NAT网关的ID, + */ @NotEmpty @UCloudParam("NATGWId") private String natgwId; - - /** 需要出外网的私网IP地址,例如10.9.7.xx */ + + + + /** + * 需要出外网的私网IP地址,例如10.9.7.xx + */ @NotEmpty @UCloudParam("SourceIp") private String sourceIp; - - /** EIP的ip地址,例如106.75.xx.xx */ + + + + /** + * EIP的ip地址,例如106.75.xx.xx + */ @NotEmpty @UCloudParam("SnatIp") private String snatIp; - - /** snat名称,即出口规则名称 */ + + + + /** + * snat名称,即出口规则名称 + */ @UCloudParam("Name") private String name; - + + public String getRegion() { return region; } @@ -58,7 +85,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -66,7 +93,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getNATGWId() { return natgwId; } @@ -74,7 +101,7 @@ public String getNATGWId() { public void setNATGWId(String natgwId) { this.natgwId = natgwId; } - + public String getSourceIp() { return sourceIp; } @@ -82,7 +109,7 @@ public String getSourceIp() { public void setSourceIp(String sourceIp) { this.sourceIp = sourceIp; } - + public String getSnatIp() { return snatIp; } @@ -90,7 +117,7 @@ public String getSnatIp() { public void setSnatIp(String snatIp) { this.snatIp = snatIp; } - + public String getName() { return name; } @@ -98,4 +125,14 @@ public String getName() { public void setName(String name) { this.name = name; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSnatRuleResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSnatRuleResponse.java index 4ce20769..41ddb174 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSnatRuleResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSnatRuleResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateSnatRuleResponse extends Response {} +public class UpdateSnatRuleResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSubnetAttributeRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSubnetAttributeRequest.java index 3e77b53d..adaf54e5 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSubnetAttributeRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSubnetAttributeRequest.java @@ -1,47 +1,73 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateSubnetAttributeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @UCloudParam("ProjectId") private String projectId; - - /** 子网ID */ + + + + /** + * 子网ID + */ @NotEmpty @UCloudParam("SubnetId") private String subnetId; - - /** 子网名称(如果Name不填写,Tag必须填写) */ + + + + /** + * 子网名称(如果Name不填写,Tag必须填写) + */ @UCloudParam("Name") private String name; - - /** 业务组名称(如果Tag不填写,Name必须填写) */ + + + + /** + * 业务组名称(如果Tag不填写,Name必须填写) + */ @UCloudParam("Tag") private String tag; - + + public String getRegion() { return region; } @@ -49,7 +75,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -57,7 +83,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getSubnetId() { return subnetId; } @@ -65,7 +91,7 @@ public String getSubnetId() { public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - + public String getName() { return name; } @@ -73,7 +99,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getTag() { return tag; } @@ -81,4 +107,14 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSubnetAttributeResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSubnetAttributeResponse.java index 37bf98ae..8653d62f 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSubnetAttributeResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSubnetAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateSubnetAttributeResponse extends Response {} +public class UpdateSubnetAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVIPAttributeRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVIPAttributeRequest.java index 030484b6..fd622ed4 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVIPAttributeRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVIPAttributeRequest.java @@ -1,52 +1,82 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; public class UpdateVIPAttributeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** 内网VIP的资源Id */ + + + + /** + * 内网VIP的资源Id + */ @NotEmpty @UCloudParam("VIPId") private String vipId; - - /** 内网VIP的备注 */ + + + + /** + * 内网VIP的备注 + */ @UCloudParam("Remark") private String remark; - - /** 内网VIP的名称 */ + + + + /** + * 内网VIP的名称 + */ @UCloudParam("Name") private String name; - - /** 内网VIP所属的业务组 */ + + + + /** + * 内网VIP所属的业务组 + */ @UCloudParam("Tag") private String tag; - + + public String getRegion() { return region; } @@ -54,7 +84,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -62,7 +92,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVIPId() { return vipId; } @@ -70,7 +100,7 @@ public String getVIPId() { public void setVIPId(String vipId) { this.vipId = vipId; } - + public String getRemark() { return remark; } @@ -78,7 +108,7 @@ public String getRemark() { public void setRemark(String remark) { this.remark = remark; } - + public String getName() { return name; } @@ -86,7 +116,7 @@ public String getName() { public void setName(String name) { this.name = name; } - + public String getTag() { return tag; } @@ -94,4 +124,14 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVIPAttributeResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVIPAttributeResponse.java index 1cacbd82..1fabf137 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVIPAttributeResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVIPAttributeResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateVIPAttributeResponse extends Response {} +public class UpdateVIPAttributeResponse extends Response { + + +} + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVPCNetworkRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVPCNetworkRequest.java index fbc9e206..847c3f90 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVPCNetworkRequest.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVPCNetworkRequest.java @@ -1,48 +1,67 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + + +import cn.ucloud.common.request.Request; import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -import java.util.List; public class UpdateVPCNetworkRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + + + /** + * 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + */ @NotEmpty @UCloudParam("Region") private String region; - - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + + + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - - /** VPC的ID */ + + + + /** + * VPC的ID + */ @NotEmpty @UCloudParam("VPCId") private String vpcId; - + + + /** * 需要保留的VPC网段。当前仅支持删除VPC网段,添加网段请参考[AddVPCNetwork](https://docs.ucloud.cn/api/vpc2.0-api/add_vpc_network) */ @NotEmpty @UCloudParam("Network") private List network; - + + public String getRegion() { return region; } @@ -50,7 +69,7 @@ public String getRegion() { public void setRegion(String region) { this.region = region; } - + public String getProjectId() { return projectId; } @@ -58,7 +77,7 @@ public String getProjectId() { public void setProjectId(String projectId) { this.projectId = projectId; } - + public String getVPCId() { return vpcId; } @@ -66,7 +85,7 @@ public String getVPCId() { public void setVPCId(String vpcId) { this.vpcId = vpcId; } - + public List getNetwork() { return network; } @@ -74,4 +93,14 @@ public List getNetwork() { public void setNetwork(List network) { this.network = network; } + } + + + + + + + + + diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVPCNetworkResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVPCNetworkResponse.java index 5ebdb19f..52553a2d 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVPCNetworkResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateVPCNetworkResponse.java @@ -1,20 +1,38 @@ /** * Copyright 2021 UCloud Technology Co., Ltd. * - *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - *

http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - *

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. */ + package cn.ucloud.vpc.models; +import java.util.List; + +import com.google.gson.annotations.SerializedName; import cn.ucloud.common.response.Response; -public class UpdateVPCNetworkResponse extends Response {} +public class UpdateVPCNetworkResponse extends Response { + + +} + + + + + + + + +