From 015b6847582f8892233bf9e7a9f2c18548761a0c Mon Sep 17 00:00:00 2001 From: wenqian Date: Thu, 28 Apr 2022 11:52:16 +0800 Subject: [PATCH] codegen for php sdk (#6) * update * update Makefile --- Makefile | 4 +- src/Cube/Apis/CreateCubeDeploymentRequest.php | 2 +- .../Apis/CreateCubeDeploymentResponse.php | 2 +- src/Cube/Apis/CreateCubePodRequest.php | 2 +- src/Cube/Apis/CreateCubePodResponse.php | 2 +- src/Cube/Apis/DeleteCubeDeploymentRequest.php | 2 +- .../Apis/DeleteCubeDeploymentResponse.php | 2 +- src/Cube/Apis/DeleteCubePodRequest.php | 2 +- src/Cube/Apis/DeleteCubePodResponse.php | 2 +- src/Cube/Apis/GetCubeDeploymentRequest.php | 2 +- src/Cube/Apis/GetCubeDeploymentResponse.php | 2 +- src/Cube/Apis/GetCubeExecTokenRequest.php | 2 +- src/Cube/Apis/GetCubeExecTokenResponse.php | 2 +- src/Cube/Apis/GetCubeExtendInfoRequest.php | 2 +- src/Cube/Apis/GetCubeExtendInfoResponse.php | 2 +- src/Cube/Apis/GetCubeMetricsRequest.php | 2 +- src/Cube/Apis/GetCubeMetricsResponse.php | 2 +- src/Cube/Apis/GetCubePodRequest.php | 2 +- src/Cube/Apis/GetCubePodResponse.php | 2 +- src/Cube/Apis/GetCubePriceRequest.php | 2 +- src/Cube/Apis/GetCubePriceResponse.php | 2 +- src/Cube/Apis/GetCubeTokenRequest.php | 2 +- src/Cube/Apis/GetCubeTokenResponse.php | 2 +- src/Cube/Apis/ListCubeDeploymentRequest.php | 2 +- src/Cube/Apis/ListCubeDeploymentResponse.php | 2 +- src/Cube/Apis/ListCubePodRequest.php | 2 +- src/Cube/Apis/ListCubePodResponse.php | 2 +- src/Cube/Apis/ModifyCubeExtendInfoRequest.php | 2 +- .../Apis/ModifyCubeExtendInfoResponse.php | 2 +- src/Cube/Apis/ModifyCubeTagRequest.php | 2 +- src/Cube/Apis/ModifyCubeTagResponse.php | 2 +- src/Cube/Apis/RebootCubePodRequest.php | 111 +++ src/Cube/Apis/RebootCubePodResponse.php | 26 + src/Cube/Apis/RenewCubePodRequest.php | 2 +- src/Cube/Apis/RenewCubePodResponse.php | 2 +- src/Cube/Apis/UpdateCubeDeploymentRequest.php | 2 +- .../Apis/UpdateCubeDeploymentResponse.php | 2 +- src/Cube/CubeClient.php | 32 +- src/Cube/Models/CubeExtendInfo.php | 2 +- src/Cube/Models/EIPAddr.php | 2 +- src/Cube/Models/EIPSet.php | 2 +- src/Cube/Models/MetricDataSet.php | 2 +- src/Cube/Models/ValueSet.php | 2 +- .../Apis/CreateRemoteVPNGatewayRequest.php | 2 +- .../Apis/CreateRemoteVPNGatewayResponse.php | 2 +- src/IPSecVPN/Apis/CreateVPNGatewayRequest.php | 2 +- .../Apis/CreateVPNGatewayResponse.php | 2 +- src/IPSecVPN/Apis/CreateVPNTunnelRequest.php | 76 ++- src/IPSecVPN/Apis/CreateVPNTunnelResponse.php | 2 +- .../Apis/DeleteRemoteVPNGatewayRequest.php | 2 +- .../Apis/DeleteRemoteVPNGatewayResponse.php | 2 +- src/IPSecVPN/Apis/DeleteVPNGatewayRequest.php | 2 +- .../Apis/DeleteVPNGatewayResponse.php | 2 +- src/IPSecVPN/Apis/DeleteVPNTunnelRequest.php | 2 +- src/IPSecVPN/Apis/DeleteVPNTunnelResponse.php | 2 +- .../Apis/DescribeRemoteVPNGatewayRequest.php | 2 +- .../Apis/DescribeRemoteVPNGatewayResponse.php | 2 +- .../Apis/DescribeVPNGatewayRequest.php | 2 +- .../Apis/DescribeVPNGatewayResponse.php | 2 +- .../Apis/DescribeVPNTunnelRequest.php | 2 +- .../Apis/DescribeVPNTunnelResponse.php | 2 +- .../Apis/GetVPNGatewayPriceRequest.php | 2 +- .../Apis/GetVPNGatewayPriceResponse.php | 2 +- .../Apis/GetVPNGatewayUpgradePriceRequest.php | 2 +- .../GetVPNGatewayUpgradePriceResponse.php | 2 +- src/IPSecVPN/Apis/UpdateVPNGatewayRequest.php | 2 +- .../Apis/UpdateVPNGatewayResponse.php | 2 +- .../Apis/UpdateVPNTunnelAttributeRequest.php | 30 +- .../Apis/UpdateVPNTunnelAttributeResponse.php | 2 +- src/IPSecVPN/IPSecVPNClient.php | 16 +- src/IPSecVPN/Models/IKEData.php | 2 +- src/IPSecVPN/Models/IPSecData.php | 2 +- .../Models/RemoteVPNGatewayDataSet.php | 2 +- src/IPSecVPN/Models/VPNGatewayDataSet.php | 2 +- src/IPSecVPN/Models/VPNGatewayPriceSet.php | 2 +- src/IPSecVPN/Models/VPNTunnelDataSet.php | 2 +- src/PathX/Apis/BindPathXSSLRequest.php | 2 +- src/PathX/Apis/BindPathXSSLResponse.php | 2 +- .../Apis/CreateGlobalSSHInstanceRequest.php | 2 +- .../Apis/CreateGlobalSSHInstanceResponse.php | 2 +- src/PathX/Apis/CreatePathXSSLRequest.php | 2 +- src/PathX/Apis/CreatePathXSSLResponse.php | 2 +- src/PathX/Apis/CreateUGA3InstanceRequest.php | 251 +++++++ src/PathX/Apis/CreateUGA3InstanceResponse.php | 64 ++ src/PathX/Apis/CreateUGA3PortRequest.php | 111 +++ src/PathX/Apis/CreateUGA3PortResponse.php | 26 + src/PathX/Apis/CreateUGAForwarderRequest.php | 2 +- src/PathX/Apis/CreateUGAForwarderResponse.php | 2 +- src/PathX/Apis/CreateUGAInstanceRequest.php | 2 +- src/PathX/Apis/CreateUGAInstanceResponse.php | 2 +- src/PathX/Apis/CreateUPathRequest.php | 42 +- src/PathX/Apis/CreateUPathResponse.php | 16 +- .../Apis/DeleteGlobalSSHInstanceRequest.php | 2 +- .../Apis/DeleteGlobalSSHInstanceResponse.php | 2 +- src/PathX/Apis/DeletePathXSSLRequest.php | 2 +- src/PathX/Apis/DeletePathXSSLResponse.php | 2 +- src/PathX/Apis/DeleteUGA3InstanceRequest.php | 71 ++ src/PathX/Apis/DeleteUGA3InstanceResponse.php | 26 + src/PathX/Apis/DeleteUGA3PortRequest.php | 91 +++ src/PathX/Apis/DeleteUGA3PortResponse.php | 26 + src/PathX/Apis/DeleteUGAForwarderRequest.php | 2 +- src/PathX/Apis/DeleteUGAForwarderResponse.php | 2 +- src/PathX/Apis/DeleteUGAInstanceRequest.php | 2 +- src/PathX/Apis/DeleteUGAInstanceResponse.php | 2 +- src/PathX/Apis/DeleteUPathRequest.php | 2 +- src/PathX/Apis/DeleteUPathResponse.php | 2 +- .../Apis/DescribeGlobalSSHInstanceRequest.php | 2 +- .../DescribeGlobalSSHInstanceResponse.php | 2 +- .../Apis/DescribePathXLineConfigRequest.php | 2 +- .../Apis/DescribePathXLineConfigResponse.php | 2 +- src/PathX/Apis/DescribePathXSSLRequest.php | 2 +- src/PathX/Apis/DescribePathXSSLResponse.php | 2 +- src/PathX/Apis/DescribeUGA3AreaRequest.php | 89 +++ src/PathX/Apis/DescribeUGA3AreaResponse.php | 57 ++ .../Apis/DescribeUGA3InstanceRequest.php | 110 +++ .../Apis/DescribeUGA3InstanceResponse.php | 81 +++ .../Apis/DescribeUGA3OptimizationRequest.php | 110 +++ .../Apis/DescribeUGA3OptimizationResponse.php | 58 ++ src/PathX/Apis/DescribeUGAInstanceRequest.php | 2 +- .../Apis/DescribeUGAInstanceResponse.php | 2 +- src/PathX/Apis/DescribeUPathRequest.php | 2 +- src/PathX/Apis/DescribeUPathResponse.php | 2 +- .../Apis/DescribeUPathTemplateRequest.php | 2 +- .../Apis/DescribeUPathTemplateResponse.php | 2 +- src/PathX/Apis/GetGlobalSSHPriceRequest.php | 2 +- src/PathX/Apis/GetGlobalSSHPriceResponse.php | 2 +- .../Apis/GetGlobalSSHUpdatePriceRequest.php | 2 +- .../Apis/GetGlobalSSHUpdatePriceResponse.php | 2 +- src/PathX/Apis/GetPathXMetricRequest.php | 2 +- src/PathX/Apis/GetPathXMetricResponse.php | 2 +- src/PathX/Apis/GetUGA3MetricRequest.php | 173 +++++ src/PathX/Apis/GetUGA3MetricResponse.php | 57 ++ src/PathX/Apis/GetUGA3PriceRequest.php | 152 +++++ src/PathX/Apis/GetUGA3PriceResponse.php | 57 ++ src/PathX/Apis/GetUGA3UpdatePriceRequest.php | 131 ++++ src/PathX/Apis/GetUGA3UpdatePriceResponse.php | 44 ++ src/PathX/Apis/ModifyGlobalSSHPortRequest.php | 2 +- .../Apis/ModifyGlobalSSHPortResponse.php | 2 +- .../Apis/ModifyGlobalSSHRemarkRequest.php | 91 +++ .../Apis/ModifyGlobalSSHRemarkResponse.php | 26 + src/PathX/Apis/ModifyGlobalSSHTypeRequest.php | 2 +- .../Apis/ModifyGlobalSSHTypeResponse.php | 2 +- src/PathX/Apis/ModifyUGA3BandwidthRequest.php | 111 +++ .../Apis/ModifyUGA3BandwidthResponse.php | 26 + src/PathX/Apis/ModifyUGA3InstanceRequest.php | 111 +++ src/PathX/Apis/ModifyUGA3InstanceResponse.php | 26 + .../Apis/ModifyUGA3OriginInfoRequest.php | 113 +++ .../Apis/ModifyUGA3OriginInfoResponse.php | 26 + src/PathX/Apis/ModifyUGA3PortRequest.php | 111 +++ src/PathX/Apis/ModifyUGA3PortResponse.php | 26 + .../Apis/ModifyUPathBandwidthRequest.php | 2 +- .../Apis/ModifyUPathBandwidthResponse.php | 2 +- src/PathX/Apis/ModifyUPathTemplateRequest.php | 2 +- .../Apis/ModifyUPathTemplateResponse.php | 2 +- src/PathX/Apis/UGABindUPathRequest.php | 2 +- src/PathX/Apis/UGABindUPathResponse.php | 2 +- src/PathX/Apis/UGAUnBindUPathRequest.php | 2 +- src/PathX/Apis/UGAUnBindUPathResponse.php | 2 +- src/PathX/Apis/UnBindPathXSSLRequest.php | 2 +- src/PathX/Apis/UnBindPathXSSLResponse.php | 2 +- .../Apis/UpdatePathXWhitelistRequest.php | 2 +- .../Apis/UpdatePathXWhitelistResponse.php | 2 +- src/PathX/Models/AccelerationAreaInfos.php | 76 +++ src/PathX/Models/AccelerationInfo.php | 96 +++ src/PathX/Models/AlarmRuler.php | 2 +- src/PathX/Models/ForwardArea.php | 144 ++++ src/PathX/Models/ForwardInfo.php | 400 +++++++++++ src/PathX/Models/ForwardTask.php | 84 +++ src/PathX/Models/GlobalSSHInfo.php | 2 +- src/PathX/Models/LineDetail.php | 2 +- src/PathX/Models/MatricPoint.php | 2 +- src/PathX/Models/MetricPeriod.php | 2 +- src/PathX/Models/NodeDelays.php | 244 +++++++ src/PathX/Models/OutPublicIpInfo.php | 10 +- src/PathX/Models/PathXSSLSet.php | 2 +- src/PathX/Models/PathXUGAInfo.php | 2 +- src/PathX/Models/SSLBindedTargetSet.php | 2 +- src/PathX/Models/SrcAreaInfo.php | 104 +++ src/PathX/Models/UGA3Metric.php | 408 +++++++++++ src/PathX/Models/UGA3Price.php | 104 +++ src/PathX/Models/UGAAInfo.php | 2 +- src/PathX/Models/UGAALine.php | 2 +- src/PathX/Models/UGAATask.php | 2 +- src/PathX/Models/UGAL4Forwarder.php | 2 +- src/PathX/Models/UGAL7Forwarder.php | 2 +- src/PathX/Models/UPathInfo.php | 2 +- src/PathX/Models/UPathSet.php | 2 +- src/PathX/PathXClient.php | 642 +++++++++++++++++- .../Apis/AddMemberToProjectRequest.php | 2 +- .../Apis/AddMemberToProjectResponse.php | 2 +- src/UAccount/Apis/FreezeMemberRequest.php | 2 +- src/UAccount/Apis/FreezeMemberResponse.php | 2 +- src/UAccount/Apis/GetNetworkMaskRequest.php | 2 +- src/UAccount/Apis/GetNetworkMaskResponse.php | 2 +- src/UAccount/Apis/GetProjectListRequest.php | 2 +- src/UAccount/Apis/GetProjectListResponse.php | 2 +- src/UAccount/Apis/GetRegionRequest.php | 2 +- src/UAccount/Apis/GetRegionResponse.php | 2 +- src/UAccount/Apis/InviteSubaccountRequest.php | 2 +- .../Apis/InviteSubaccountResponse.php | 2 +- .../Apis/RemoveMemberFromProjectRequest.php | 2 +- .../Apis/RemoveMemberFromProjectResponse.php | 2 +- src/UAccount/Apis/SetNetworkMaskRequest.php | 2 +- src/UAccount/Apis/SetNetworkMaskResponse.php | 2 +- src/UAccount/Models/NetworkMask.php | 2 +- src/UAccount/Models/ProjectListInfo.php | 2 +- src/UAccount/Models/RegionInfo.php | 2 +- src/UAccount/UAccountClient.php | 2 +- src/UBill/Apis/GetBalanceRequest.php | 2 +- src/UBill/Apis/GetBalanceResponse.php | 2 +- src/UBill/Apis/GetBillDataFileUrlRequest.php | 72 +- src/UBill/Apis/GetBillDataFileUrlResponse.php | 2 +- src/UBill/Apis/ListUBillDetailRequest.php | 250 +++++++ src/UBill/Apis/ListUBillDetailResponse.php | 79 +++ src/UBill/Apis/ListUBillOverviewRequest.php | 91 +++ src/UBill/Apis/ListUBillOverviewResponse.php | 137 ++++ src/UBill/Models/AccountInfo.php | 2 +- src/UBill/Models/BillDetailItem.php | 468 +++++++++++++ src/UBill/Models/BillOverviewItem.php | 284 ++++++++ src/UBill/Models/ItemDetail.php | 64 ++ src/UBill/Models/ResourceExtendInfo.php | 64 ++ src/UBill/UBillClient.php | 129 +++- src/UCDN/Apis/AddCertificateRequest.php | 2 +- src/UCDN/Apis/AddCertificateResponse.php | 2 +- .../ControlUcdnDomainCacheAccessRequest.php | 91 +++ .../ControlUcdnDomainCacheAccessResponse.php | 26 + src/UCDN/Apis/DeleteCertificateRequest.php | 2 +- src/UCDN/Apis/DeleteCertificateResponse.php | 2 +- ...escribeNewUcdnPrefetchCacheTaskRequest.php | 2 +- ...scribeNewUcdnPrefetchCacheTaskResponse.php | 2 +- ...DescribeNewUcdnRefreshCacheTaskRequest.php | 2 +- ...escribeNewUcdnRefreshCacheTaskResponse.php | 2 +- src/UCDN/Apis/GetCertificateV2Request.php | 2 +- src/UCDN/Apis/GetCertificateV2Response.php | 2 +- .../Apis/GetNewUcdnDomainHitRateRequest.php | 2 +- .../Apis/GetNewUcdnDomainHitRateResponse.php | 2 +- .../GetNewUcdnLogRefererStatisticsRequest.php | 149 ++++ ...GetNewUcdnLogRefererStatisticsResponse.php | 58 ++ .../GetNewUcdnLogUrlStatisticsRequest.php | 170 +++++ .../GetNewUcdnLogUrlStatisticsResponse.php | 58 ++ .../GetUcdnDomain95BandwidthV2Request.php | 2 +- .../GetUcdnDomain95BandwidthV2Response.php | 2 +- .../Apis/GetUcdnDomainBandwidthV2Request.php | 2 +- .../Apis/GetUcdnDomainBandwidthV2Response.php | 2 +- src/UCDN/Apis/GetUcdnDomainConfigRequest.php | 2 +- src/UCDN/Apis/GetUcdnDomainConfigResponse.php | 2 +- src/UCDN/Apis/GetUcdnDomainHitRateRequest.php | 2 +- .../Apis/GetUcdnDomainHitRateResponse.php | 2 +- .../Apis/GetUcdnDomainHttpCodeV2Request.php | 2 +- .../Apis/GetUcdnDomainHttpCodeV2Response.php | 2 +- .../Apis/GetUcdnDomainInfoListRequest.php | 2 +- .../Apis/GetUcdnDomainInfoListResponse.php | 2 +- src/UCDN/Apis/GetUcdnDomainLogRequest.php | 2 +- src/UCDN/Apis/GetUcdnDomainLogResponse.php | 2 +- src/UCDN/Apis/GetUcdnDomainLogV2Request.php | 111 +++ src/UCDN/Apis/GetUcdnDomainLogV2Response.php | 58 ++ ...tUcdnDomainOriginHttpCodeDetailRequest.php | 2 +- ...UcdnDomainOriginHttpCodeDetailResponse.php | 2 +- .../GetUcdnDomainOriginHttpCodeRequest.php | 2 +- .../GetUcdnDomainOriginHttpCodeResponse.php | 2 +- .../GetUcdnDomainOriginRequestNumRequest.php | 2 +- .../GetUcdnDomainOriginRequestNumResponse.php | 2 +- .../GetUcdnDomainPrefetchEnableRequest.php | 2 +- .../GetUcdnDomainPrefetchEnableResponse.php | 2 +- .../Apis/GetUcdnDomainRequestNumV3Request.php | 2 +- .../GetUcdnDomainRequestNumV3Response.php | 2 +- .../Apis/GetUcdnPassBandwidthV2Request.php | 2 +- .../Apis/GetUcdnPassBandwidthV2Response.php | 2 +- .../Apis/GetUcdnProIspBandwidthV2Request.php | 2 +- .../Apis/GetUcdnProIspBandwidthV2Response.php | 2 +- .../Apis/GetUcdnProIspRequestNumV2Request.php | 2 +- .../GetUcdnProIspRequestNumV2Response.php | 2 +- src/UCDN/Apis/GetUcdnTrafficV2Request.php | 2 +- src/UCDN/Apis/GetUcdnTrafficV2Response.php | 2 +- .../PrefetchNewUcdnDomainCacheRequest.php | 2 +- .../PrefetchNewUcdnDomainCacheResponse.php | 2 +- src/UCDN/Apis/QueryIpLocationRequest.php | 2 +- src/UCDN/Apis/QueryIpLocationResponse.php | 2 +- .../Apis/RefreshNewUcdnDomainCacheRequest.php | 6 +- .../RefreshNewUcdnDomainCacheResponse.php | 2 +- src/UCDN/Apis/SwitchUcdnChargeTypeRequest.php | 2 +- .../Apis/SwitchUcdnChargeTypeResponse.php | 2 +- src/UCDN/Models/AccessControlConf.php | 2 +- src/UCDN/Models/AdvancedConf.php | 2 +- src/UCDN/Models/BandwidthInfoDetail.php | 2 +- src/UCDN/Models/BandwidthTrafficInfo.php | 2 +- src/UCDN/Models/CacheAllConfig.php | 2 +- src/UCDN/Models/CacheConf.php | 2 +- src/UCDN/Models/CacheKeyInfo.php | 2 +- src/UCDN/Models/CertList.php | 2 +- src/UCDN/Models/DomainBaseInfo.php | 2 +- src/UCDN/Models/DomainConfigInfo.php | 2 +- src/UCDN/Models/DomanLogList.php | 76 +++ src/UCDN/Models/DownloadStatisticInfo.php | 104 +++ src/UCDN/Models/HitRateInfo.php | 2 +- src/UCDN/Models/HitRateInfoV2.php | 2 +- src/UCDN/Models/HttpCodeInfo.php | 2 +- src/UCDN/Models/HttpCodeInfoV2.php | 2 +- src/UCDN/Models/HttpCodeV2Detail.php | 2 +- src/UCDN/Models/IpLocationInfo.php | 2 +- src/UCDN/Models/LogInfo.php | 64 ++ src/UCDN/Models/LogSetInfo.php | 2 +- src/UCDN/Models/LogSetList.php | 2 +- src/UCDN/Models/OriginConf.php | 2 +- src/UCDN/Models/ProIspBandwidthList.php | 2 +- src/UCDN/Models/ProIspBandwidthSet.php | 2 +- src/UCDN/Models/ProIspRequestListV2.php | 2 +- src/UCDN/Models/ProIspRequestNumSetV2.php | 2 +- src/UCDN/Models/ReferConf.php | 2 +- src/UCDN/Models/RefererList.php | 84 +++ src/UCDN/Models/RefererStatistics.php | 76 +++ src/UCDN/Models/RequestInfoV2.php | 2 +- src/UCDN/Models/TaskInfo.php | 2 +- src/UCDN/Models/TrafficSet.php | 2 +- src/UCDN/Models/UrlProgressInfo.php | 2 +- src/UCDN/Models/UrlStatistics.php | 76 +++ src/UCDN/UCDNClient.php | 399 ++++------- .../Apis/BackupUDBInstanceBinlogRequest.php | 2 +- .../Apis/BackupUDBInstanceBinlogResponse.php | 2 +- .../Apis/BackupUDBInstanceErrorLogRequest.php | 2 +- .../BackupUDBInstanceErrorLogResponse.php | 2 +- src/UDB/Apis/BackupUDBInstanceRequest.php | 2 +- src/UDB/Apis/BackupUDBInstanceResponse.php | 2 +- .../Apis/BackupUDBInstanceSlowLogRequest.php | 2 +- .../Apis/BackupUDBInstanceSlowLogResponse.php | 2 +- src/UDB/Apis/ChangeUDBParamGroupRequest.php | 2 +- src/UDB/Apis/ChangeUDBParamGroupResponse.php | 2 +- .../Apis/CheckRecoverUDBInstanceRequest.php | 2 +- .../Apis/CheckRecoverUDBInstanceResponse.php | 2 +- .../CheckUDBInstanceToHAAllowanceRequest.php | 2 +- .../CheckUDBInstanceToHAAllowanceResponse.php | 2 +- src/UDB/Apis/ClearUDBLogRequest.php | 2 +- src/UDB/Apis/ClearUDBLogResponse.php | 2 +- .../Apis/CreateMongoDBReplicaSetRequest.php | 2 +- .../Apis/CreateMongoDBReplicaSetResponse.php | 2 +- .../CreateUDBInstanceByRecoveryRequest.php | 2 +- .../CreateUDBInstanceByRecoveryResponse.php | 2 +- src/UDB/Apis/CreateUDBInstanceRequest.php | 2 +- src/UDB/Apis/CreateUDBInstanceResponse.php | 2 +- src/UDB/Apis/CreateUDBParamGroupRequest.php | 2 +- src/UDB/Apis/CreateUDBParamGroupResponse.php | 2 +- .../CreateUDBReplicationInstanceRequest.php | 2 +- .../CreateUDBReplicationInstanceResponse.php | 2 +- .../Apis/CreateUDBRouteInstanceRequest.php | 2 +- .../Apis/CreateUDBRouteInstanceResponse.php | 2 +- src/UDB/Apis/CreateUDBSlaveRequest.php | 2 +- src/UDB/Apis/CreateUDBSlaveResponse.php | 2 +- src/UDB/Apis/DeleteUDBInstanceRequest.php | 2 +- src/UDB/Apis/DeleteUDBInstanceResponse.php | 2 +- src/UDB/Apis/DeleteUDBLogPackageRequest.php | 2 +- src/UDB/Apis/DeleteUDBLogPackageResponse.php | 2 +- src/UDB/Apis/DeleteUDBParamGroupRequest.php | 2 +- src/UDB/Apis/DeleteUDBParamGroupResponse.php | 2 +- .../DescribeUDBBackupBlacklistRequest.php | 2 +- .../DescribeUDBBackupBlacklistResponse.php | 2 +- src/UDB/Apis/DescribeUDBBackupRequest.php | 2 +- src/UDB/Apis/DescribeUDBBackupResponse.php | 2 +- .../DescribeUDBBinlogBackupURLRequest.php | 2 +- .../DescribeUDBBinlogBackupURLResponse.php | 2 +- .../DescribeUDBInstanceBackupStateRequest.php | 2 +- ...DescribeUDBInstanceBackupStateResponse.php | 2 +- .../DescribeUDBInstanceBackupURLRequest.php | 2 +- .../DescribeUDBInstanceBackupURLResponse.php | 2 +- ...ibeUDBInstanceBinlogBackupStateRequest.php | 2 +- ...beUDBInstanceBinlogBackupStateResponse.php | 2 +- .../Apis/DescribeUDBInstanceBinlogRequest.php | 2 +- .../DescribeUDBInstanceBinlogResponse.php | 2 +- .../Apis/DescribeUDBInstanceLogRequest.php | 2 +- .../Apis/DescribeUDBInstanceLogResponse.php | 2 +- .../Apis/DescribeUDBInstancePriceRequest.php | 2 +- .../Apis/DescribeUDBInstancePriceResponse.php | 2 +- src/UDB/Apis/DescribeUDBInstanceRequest.php | 2 +- src/UDB/Apis/DescribeUDBInstanceResponse.php | 2 +- .../Apis/DescribeUDBInstanceStateRequest.php | 2 +- .../Apis/DescribeUDBInstanceStateResponse.php | 2 +- ...DescribeUDBInstanceUpgradePriceRequest.php | 2 +- ...escribeUDBInstanceUpgradePriceResponse.php | 2 +- .../Apis/DescribeUDBLogBackupURLRequest.php | 2 +- .../Apis/DescribeUDBLogBackupURLResponse.php | 2 +- src/UDB/Apis/DescribeUDBLogPackageRequest.php | 2 +- .../Apis/DescribeUDBLogPackageResponse.php | 2 +- src/UDB/Apis/DescribeUDBParamGroupRequest.php | 2 +- .../Apis/DescribeUDBParamGroupResponse.php | 2 +- .../Apis/DescribeUDBSplittingInfoRequest.php | 2 +- .../Apis/DescribeUDBSplittingInfoResponse.php | 2 +- src/UDB/Apis/DescribeUDBTypeRequest.php | 2 +- src/UDB/Apis/DescribeUDBTypeResponse.php | 2 +- src/UDB/Apis/DisableUDBRWSplittingRequest.php | 2 +- .../Apis/DisableUDBRWSplittingResponse.php | 2 +- .../Apis/EditUDBBackupBlacklistRequest.php | 2 +- .../Apis/EditUDBBackupBlacklistResponse.php | 2 +- src/UDB/Apis/EnableUDBRWSplittingRequest.php | 2 +- src/UDB/Apis/EnableUDBRWSplittingResponse.php | 2 +- src/UDB/Apis/ExtractUDBParamGroupRequest.php | 2 +- src/UDB/Apis/ExtractUDBParamGroupResponse.php | 2 +- ...hUDBInstanceEarliestRecoverTimeRequest.php | 2 +- ...UDBInstanceEarliestRecoverTimeResponse.php | 2 +- src/UDB/Apis/GetUDBClientConnNumRequest.php | 112 +++ src/UDB/Apis/GetUDBClientConnNumResponse.php | 57 ++ src/UDB/Apis/ModifyUDBInstanceNameRequest.php | 2 +- .../Apis/ModifyUDBInstanceNameResponse.php | 2 +- .../Apis/ModifyUDBInstancePasswordRequest.php | 2 +- .../ModifyUDBInstancePasswordResponse.php | 2 +- .../Apis/PromoteUDBInstanceToHARequest.php | 2 +- .../Apis/PromoteUDBInstanceToHAResponse.php | 2 +- src/UDB/Apis/PromoteUDBSlaveRequest.php | 2 +- src/UDB/Apis/PromoteUDBSlaveResponse.php | 2 +- src/UDB/Apis/ResizeUDBInstanceRequest.php | 2 +- src/UDB/Apis/ResizeUDBInstanceResponse.php | 2 +- src/UDB/Apis/RestartRWSplittingRequest.php | 2 +- src/UDB/Apis/RestartRWSplittingResponse.php | 2 +- src/UDB/Apis/RestartUDBInstanceRequest.php | 2 +- src/UDB/Apis/RestartUDBInstanceResponse.php | 2 +- src/UDB/Apis/SetUDBRWSplittingRequest.php | 2 +- src/UDB/Apis/SetUDBRWSplittingResponse.php | 2 +- src/UDB/Apis/StartUDBInstanceRequest.php | 2 +- src/UDB/Apis/StartUDBInstanceResponse.php | 2 +- src/UDB/Apis/StopUDBInstanceRequest.php | 2 +- src/UDB/Apis/StopUDBInstanceResponse.php | 2 +- src/UDB/Apis/SwitchUDBHAToSentinelRequest.php | 34 +- .../Apis/SwitchUDBHAToSentinelResponse.php | 2 +- src/UDB/Apis/SwitchUDBInstanceToHARequest.php | 2 +- .../Apis/SwitchUDBInstanceToHAResponse.php | 2 +- ...UpdateUDBInstanceBackupStrategyRequest.php | 2 +- ...pdateUDBInstanceBackupStrategyResponse.php | 2 +- ...ateUDBInstanceSlaveBackupSwitchRequest.php | 2 +- ...teUDBInstanceSlaveBackupSwitchResponse.php | 2 +- src/UDB/Apis/UpdateUDBParamGroupRequest.php | 2 +- src/UDB/Apis/UpdateUDBParamGroupResponse.php | 2 +- .../Apis/UpgradeUDBInstanceToHARequest.php | 2 +- .../Apis/UpgradeUDBInstanceToHAResponse.php | 2 +- src/UDB/Apis/UploadUDBParamGroupRequest.php | 2 +- src/UDB/Apis/UploadUDBParamGroupResponse.php | 2 +- src/UDB/Models/ConnNumMap.php | 64 ++ src/UDB/Models/LogPackageDataSet.php | 2 +- src/UDB/Models/UDBBackupSet.php | 2 +- src/UDB/Models/UDBInstanceBinlogSet.php | 2 +- src/UDB/Models/UDBInstancePriceSet.php | 2 +- src/UDB/Models/UDBInstanceSet.php | 2 +- src/UDB/Models/UDBParamGroupSet.php | 2 +- src/UDB/Models/UDBParamMemberSet.php | 2 +- src/UDB/Models/UDBRWSplittingSet.php | 2 +- src/UDB/Models/UDBSlaveInstanceSet.php | 2 +- src/UDB/Models/UDBTypeSet.php | 2 +- src/UDB/Models/UFileDataSet.php | 2 +- src/UDB/UDBClient.php | 47 +- .../Apis/ChangeUDDBInstanceNameRequest.php | 2 +- .../Apis/ChangeUDDBInstanceNameResponse.php | 2 +- src/UDDB/Apis/ChangeUDDBSlaveCountRequest.php | 2 +- .../Apis/ChangeUDDBSlaveCountResponse.php | 2 +- src/UDDB/Apis/CreateUDDBInstanceRequest.php | 2 +- src/UDDB/Apis/CreateUDDBInstanceResponse.php | 2 +- src/UDDB/Apis/DeleteUDDBInstanceRequest.php | 2 +- src/UDDB/Apis/DeleteUDDBInstanceResponse.php | 2 +- .../Apis/DescribeUDDBInstancePriceRequest.php | 2 +- .../DescribeUDDBInstancePriceResponse.php | 2 +- src/UDDB/Apis/DescribeUDDBInstanceRequest.php | 2 +- .../Apis/DescribeUDDBInstanceResponse.php | 2 +- ...escribeUDDBInstanceUpgradePriceRequest.php | 2 +- ...scribeUDDBInstanceUpgradePriceResponse.php | 2 +- src/UDDB/Apis/RestartUDDBInstanceRequest.php | 2 +- src/UDDB/Apis/RestartUDDBInstanceResponse.php | 2 +- src/UDDB/Apis/StartUDDBInstanceRequest.php | 2 +- src/UDDB/Apis/StartUDDBInstanceResponse.php | 2 +- src/UDDB/Apis/StopUDDBInstanceRequest.php | 2 +- src/UDDB/Apis/StopUDDBInstanceResponse.php | 2 +- src/UDDB/Apis/UpgradeUDDBDataNodeRequest.php | 2 +- src/UDDB/Apis/UpgradeUDDBDataNodeResponse.php | 2 +- src/UDDB/Apis/UpgradeUDDBInstanceRequest.php | 2 +- src/UDDB/Apis/UpgradeUDDBInstanceResponse.php | 2 +- src/UDDB/Models/DataNodeInfo.php | 2 +- src/UDDB/Models/DataSetUDDB.php | 2 +- src/UDDB/Models/PriceDetailInfo.php | 2 +- src/UDDB/Models/PriceInfo.php | 2 +- src/UDDB/Models/SlaveInfo.php | 2 +- src/UDDB/UDDBClient.php | 2 +- src/UDPN/Apis/AllocateUDPNRequest.php | 2 +- src/UDPN/Apis/AllocateUDPNResponse.php | 2 +- src/UDPN/Apis/DescribeUDPNRequest.php | 2 +- src/UDPN/Apis/DescribeUDPNResponse.php | 2 +- src/UDPN/Apis/GetUDPNLineListRequest.php | 2 +- src/UDPN/Apis/GetUDPNLineListResponse.php | 2 +- src/UDPN/Apis/GetUDPNPriceRequest.php | 2 +- src/UDPN/Apis/GetUDPNPriceResponse.php | 2 +- src/UDPN/Apis/GetUDPNUpgradePriceRequest.php | 2 +- src/UDPN/Apis/GetUDPNUpgradePriceResponse.php | 2 +- src/UDPN/Apis/ModifyUDPNBandwidthRequest.php | 2 +- src/UDPN/Apis/ModifyUDPNBandwidthResponse.php | 2 +- src/UDPN/Apis/ReleaseUDPNRequest.php | 2 +- src/UDPN/Apis/ReleaseUDPNResponse.php | 2 +- src/UDPN/Models/UDPNData.php | 2 +- src/UDPN/Models/UDPNLineSet.php | 2 +- src/UDPN/UDPNClient.php | 2 +- src/UDisk/Apis/AttachUDiskRequest.php | 2 +- src/UDisk/Apis/AttachUDiskResponse.php | 2 +- src/UDisk/Apis/CloneUDiskRequest.php | 6 +- src/UDisk/Apis/CloneUDiskResponse.php | 2 +- src/UDisk/Apis/CloneUDiskSnapshotRequest.php | 6 +- src/UDisk/Apis/CloneUDiskSnapshotResponse.php | 2 +- src/UDisk/Apis/CloneUDiskUDataArkRequest.php | 6 +- src/UDisk/Apis/CloneUDiskUDataArkResponse.php | 2 +- src/UDisk/Apis/CreateAttachUDiskRequest.php | 2 +- src/UDisk/Apis/CreateAttachUDiskResponse.php | 2 +- src/UDisk/Apis/CreateUDiskRequest.php | 2 +- src/UDisk/Apis/CreateUDiskResponse.php | 2 +- src/UDisk/Apis/CreateUDiskSnapshotRequest.php | 2 +- .../Apis/CreateUDiskSnapshotResponse.php | 2 +- src/UDisk/Apis/DeleteUDiskRequest.php | 2 +- src/UDisk/Apis/DeleteUDiskResponse.php | 2 +- src/UDisk/Apis/DeleteUDiskSnapshotRequest.php | 2 +- .../Apis/DeleteUDiskSnapshotResponse.php | 2 +- .../Apis/DescribeRecycleUDiskRequest.php | 2 +- .../Apis/DescribeRecycleUDiskResponse.php | 2 +- src/UDisk/Apis/DescribeUDiskPriceRequest.php | 2 +- src/UDisk/Apis/DescribeUDiskPriceResponse.php | 2 +- src/UDisk/Apis/DescribeUDiskRequest.php | 2 +- src/UDisk/Apis/DescribeUDiskResponse.php | 2 +- .../Apis/DescribeUDiskSnapshotRequest.php | 2 +- .../Apis/DescribeUDiskSnapshotResponse.php | 2 +- .../Apis/DescribeUDiskUpgradePriceRequest.php | 2 +- .../DescribeUDiskUpgradePriceResponse.php | 2 +- src/UDisk/Apis/DetachUDiskRequest.php | 2 +- src/UDisk/Apis/DetachUDiskResponse.php | 2 +- src/UDisk/Apis/RecoverUDiskRequest.php | 2 +- src/UDisk/Apis/RecoverUDiskResponse.php | 2 +- src/UDisk/Apis/RenameUDiskRequest.php | 2 +- src/UDisk/Apis/RenameUDiskResponse.php | 2 +- src/UDisk/Apis/ResizeUDiskRequest.php | 2 +- src/UDisk/Apis/ResizeUDiskResponse.php | 2 +- src/UDisk/Apis/RestoreUDiskRequest.php | 2 +- src/UDisk/Apis/RestoreUDiskResponse.php | 2 +- .../Apis/SetUDiskUDataArkModeRequest.php | 2 +- .../Apis/SetUDiskUDataArkModeResponse.php | 2 +- src/UDisk/Models/RecycleUDiskSet.php | 2 +- src/UDisk/Models/UDiskDataSet.php | 2 +- src/UDisk/Models/UDiskPriceDataSet.php | 2 +- src/UDisk/Models/UDiskSnapshotSet.php | 2 +- src/UDisk/UDiskClient.php | 8 +- src/UEC/Apis/BindUEcFirewallRequest.php | 2 +- src/UEC/Apis/BindUEcFirewallResponse.php | 2 +- src/UEC/Apis/CreateUEcCustomImageRequest.php | 111 +++ src/UEC/Apis/CreateUEcCustomImageResponse.php | 44 ++ src/UEC/Apis/CreateUEcFirewallRequest.php | 2 +- src/UEC/Apis/CreateUEcFirewallResponse.php | 2 +- src/UEC/Apis/CreateUEcHolderRequest.php | 2 +- src/UEC/Apis/CreateUEcHolderResponse.php | 2 +- src/UEC/Apis/CreateUEcSubnetRequest.php | 2 +- src/UEC/Apis/CreateUEcSubnetResponse.php | 2 +- src/UEC/Apis/CreateUEcVHostRequest.php | 2 +- src/UEC/Apis/CreateUEcVHostResponse.php | 2 +- src/UEC/Apis/DeleteUEcCustomImageRequest.php | 2 +- src/UEC/Apis/DeleteUEcCustomImageResponse.php | 2 +- src/UEC/Apis/DeleteUEcHolderRequest.php | 2 +- src/UEC/Apis/DeleteUEcHolderResponse.php | 2 +- src/UEC/Apis/DeleteUEcSubnetRequest.php | 2 +- src/UEC/Apis/DeleteUEcSubnetResponse.php | 2 +- src/UEC/Apis/DeleteUEcVHostRequest.php | 2 +- src/UEC/Apis/DeleteUEcVHostResponse.php | 2 +- src/UEC/Apis/DescribeUEcFirewallRequest.php | 2 +- .../DescribeUEcFirewallResourceRequest.php | 2 +- .../DescribeUEcFirewallResourceResponse.php | 2 +- src/UEC/Apis/DescribeUEcFirewallResponse.php | 2 +- src/UEC/Apis/DescribeUEcHolderIDCRequest.php | 2 +- src/UEC/Apis/DescribeUEcHolderIDCResponse.php | 2 +- src/UEC/Apis/DescribeUEcHolderRequest.php | 2 +- src/UEC/Apis/DescribeUEcHolderResponse.php | 2 +- src/UEC/Apis/DescribeUEcIDCRequest.php | 26 +- src/UEC/Apis/DescribeUEcIDCResponse.php | 2 +- src/UEC/Apis/DescribeUEcSubnetRequest.php | 2 +- src/UEC/Apis/DescribeUEcSubnetResponse.php | 2 +- src/UEC/Apis/DescribeUEcVHostISPRequest.php | 2 +- src/UEC/Apis/DescribeUEcVHostISPResponse.php | 2 +- src/UEC/Apis/DescribeUEcVHostRequest.php | 2 +- src/UEC/Apis/DescribeUEcVHostResponse.php | 2 +- src/UEC/Apis/GetUEcHolderLogRequest.php | 2 +- src/UEC/Apis/GetUEcHolderLogResponse.php | 2 +- src/UEC/Apis/GetUEcHolderMetricsRequest.php | 2 +- src/UEC/Apis/GetUEcHolderMetricsResponse.php | 2 +- src/UEC/Apis/GetUEcIDCCutInfoRequest.php | 2 +- src/UEC/Apis/GetUEcIDCCutInfoResponse.php | 2 +- src/UEC/Apis/GetUEcIDCVHostDataRequest.php | 2 +- src/UEC/Apis/GetUEcIDCVHostDataResponse.php | 2 +- src/UEC/Apis/GetUEcImageRequest.php | 2 +- src/UEC/Apis/GetUEcImageResponse.php | 2 +- src/UEC/Apis/GetUEcPodPriceRequest.php | 2 +- src/UEC/Apis/GetUEcPodPriceResponse.php | 2 +- src/UEC/Apis/GetUEcUpgradePriceRequest.php | 2 +- src/UEC/Apis/GetUEcUpgradePriceResponse.php | 2 +- src/UEC/Apis/GetUEcVHostDataRequest.php | 2 +- src/UEC/Apis/GetUEcVHostDataResponse.php | 2 +- src/UEC/Apis/GetUEcVHostPriceRequest.php | 2 +- src/UEC/Apis/GetUEcVHostPriceResponse.php | 2 +- src/UEC/Apis/ImportUEcCustomImageRequest.php | 2 +- src/UEC/Apis/ImportUEcCustomImageResponse.php | 2 +- src/UEC/Apis/LoginUEcDockerRequest.php | 2 +- src/UEC/Apis/LoginUEcDockerResponse.php | 2 +- src/UEC/Apis/ModifyUEcBandwidthRequest.php | 2 +- src/UEC/Apis/ModifyUEcBandwidthResponse.php | 2 +- src/UEC/Apis/ModifyUEcHolderNameRequest.php | 2 +- src/UEC/Apis/ModifyUEcHolderNameResponse.php | 2 +- src/UEC/Apis/ModifyUEcImageNameRequest.php | 2 +- src/UEC/Apis/ModifyUEcImageNameResponse.php | 2 +- src/UEC/Apis/PoweroffUEcVHostRequest.php | 2 +- src/UEC/Apis/PoweroffUEcVHostResponse.php | 2 +- src/UEC/Apis/ReinstallUEcVHostRequest.php | 2 +- src/UEC/Apis/ReinstallUEcVHostResponse.php | 2 +- src/UEC/Apis/RestartUEcHolderRequest.php | 2 +- src/UEC/Apis/RestartUEcHolderResponse.php | 2 +- src/UEC/Apis/RestartUEcVHostRequest.php | 2 +- src/UEC/Apis/RestartUEcVHostResponse.php | 2 +- src/UEC/Apis/StartUEcVHostRequest.php | 2 +- src/UEC/Apis/StartUEcVHostResponse.php | 2 +- src/UEC/Apis/StopUEcVHostRequest.php | 2 +- src/UEC/Apis/StopUEcVHostResponse.php | 2 +- src/UEC/Apis/UnBindUEcFirewallRequest.php | 2 +- src/UEC/Apis/UnBindUEcFirewallResponse.php | 2 +- .../UpdateUEcFirewallAttributeRequest.php | 2 +- .../UpdateUEcFirewallAttributeResponse.php | 2 +- src/UEC/Apis/UpdateUEcFirewallRequest.php | 2 +- src/UEC/Apis/UpdateUEcFirewallResponse.php | 2 +- src/UEC/Apis/UpdateUEcSubnetRequest.php | 2 +- src/UEC/Apis/UpdateUEcSubnetResponse.php | 2 +- src/UEC/Models/CfgDictList.php | 2 +- src/UEC/Models/DataSet.php | 2 +- src/UEC/Models/DeployImageInfo.php | 2 +- src/UEC/Models/DockerInfo.php | 2 +- src/UEC/Models/EnvList.php | 2 +- src/UEC/Models/FirewallInfo.php | 2 +- src/UEC/Models/HolderList.php | 2 +- src/UEC/Models/IDCCutInfo.php | 2 +- src/UEC/Models/IdcInfo.php | 2 +- src/UEC/Models/ImageInfo.php | 2 +- src/UEC/Models/ImageList.php | 2 +- src/UEC/Models/IpList.php | 2 +- src/UEC/Models/MetricisDataSet.php | 2 +- src/UEC/Models/MonitorInfo.php | 2 +- src/UEC/Models/NodeInfo.php | 22 +- src/UEC/Models/NodeIpList.php | 2 +- src/UEC/Models/NodeIspList.php | 2 +- src/UEC/Models/NodeList.php | 2 +- src/UEC/Models/ResourceInfo.php | 2 +- src/UEC/Models/ResourceSet.php | 2 +- src/UEC/Models/RuleInfo.php | 2 +- src/UEC/Models/StorVolumeInfo.php | 2 +- src/UEC/Models/SubnetInfo.php | 2 +- src/UEC/Params/CreateUEcFirewallParamRule.php | 2 +- src/UEC/Params/CreateUEcHolderParamImage.php | 2 +- src/UEC/Params/CreateUEcHolderParamPack.php | 2 +- .../Params/CreateUEcHolderParamStorage.php | 2 +- src/UEC/Params/UpdateUEcFirewallParamRule.php | 2 +- src/UEC/UECClient.php | 37 +- .../Apis/AddUFSVolumeMountPointRequest.php | 154 +++++ .../Apis/AddUFSVolumeMountPointResponse.php | 26 + src/UFS/Apis/CreateUFSVolumeRequest.php | 22 +- src/UFS/Apis/CreateUFSVolumeResponse.php | 2 +- src/UFS/Apis/DescribeUFSVolume2Request.php | 2 +- src/UFS/Apis/DescribeUFSVolume2Response.php | 2 +- .../DescribeUFSVolumeMountpointRequest.php | 91 +++ .../DescribeUFSVolumeMountpointResponse.php | 97 +++ .../Apis/DescribeUFSVolumePriceRequest.php | 172 +++++ .../Apis/DescribeUFSVolumePriceResponse.php | 57 ++ src/UFS/Apis/ExtendUFSVolumeRequest.php | 2 +- src/UFS/Apis/ExtendUFSVolumeResponse.php | 2 +- .../Apis/RemoveUFSVolumeMountPointRequest.php | 133 ++++ .../RemoveUFSVolumeMountPointResponse.php | 26 + src/UFS/Apis/RemoveUFSVolumeRequest.php | 2 +- src/UFS/Apis/RemoveUFSVolumeResponse.php | 2 +- src/UFS/Apis/UpdateUFSVolumeInfoRequest.php | 131 ++++ src/UFS/Apis/UpdateUFSVolumeInfoResponse.php | 26 + src/UFS/Models/MountPointInfo.php | 144 ++++ src/UFS/Models/UFSPriceDataSet.php | 84 +++ src/UFS/Models/UFSVolumeInfo2.php | 2 +- src/UFS/UFSClient.php | 187 ++++- src/UFile/Apis/CreateBucketRequest.php | 2 +- src/UFile/Apis/CreateBucketResponse.php | 2 +- .../Apis/CreateUFileLifeCycleRequest.php | 213 ++++++ .../Apis/CreateUFileLifeCycleResponse.php | 44 ++ src/UFile/Apis/CreateUFileTokenRequest.php | 2 +- src/UFile/Apis/CreateUFileTokenResponse.php | 2 +- src/UFile/Apis/DeleteBucketRequest.php | 2 +- src/UFile/Apis/DeleteBucketResponse.php | 2 +- .../Apis/DeleteUFileLifeCycleRequest.php | 111 +++ .../Apis/DeleteUFileLifeCycleResponse.php | 26 + src/UFile/Apis/DeleteUFileTokenRequest.php | 2 +- src/UFile/Apis/DeleteUFileTokenResponse.php | 2 +- src/UFile/Apis/DescribeBucketRequest.php | 2 +- src/UFile/Apis/DescribeBucketResponse.php | 2 +- .../Apis/DescribeUFileLifeCycleRequest.php | 110 +++ .../Apis/DescribeUFileLifeCycleResponse.php | 57 ++ src/UFile/Apis/DescribeUFileTokenRequest.php | 2 +- src/UFile/Apis/DescribeUFileTokenResponse.php | 2 +- src/UFile/Apis/GetUFileDailyReportRequest.php | 2 +- .../Apis/GetUFileDailyReportResponse.php | 2 +- src/UFile/Apis/GetUFileQuotaInfoRequest.php | 2 +- src/UFile/Apis/GetUFileQuotaInfoResponse.php | 2 +- src/UFile/Apis/GetUFileQuotaPriceRequest.php | 2 +- src/UFile/Apis/GetUFileQuotaPriceResponse.php | 2 +- src/UFile/Apis/GetUFileQuotaRequest.php | 2 +- src/UFile/Apis/GetUFileQuotaResponse.php | 2 +- src/UFile/Apis/GetUFileReportRequest.php | 2 +- src/UFile/Apis/GetUFileReportResponse.php | 2 +- src/UFile/Apis/SetUFileRefererRequest.php | 2 +- src/UFile/Apis/SetUFileRefererResponse.php | 2 +- src/UFile/Apis/UpdateBucketRequest.php | 2 +- src/UFile/Apis/UpdateBucketResponse.php | 2 +- .../Apis/UpdateUFileLifeCycleRequest.php | 234 +++++++ .../Apis/UpdateUFileLifeCycleResponse.php | 26 + src/UFile/Apis/UpdateUFileTokenRequest.php | 2 +- src/UFile/Apis/UpdateUFileTokenResponse.php | 2 +- src/UFile/Models/LifeCycleItem.php | 184 +++++ src/UFile/Models/UFileBucketSet.php | 2 +- src/UFile/Models/UFileDailyReportItem.php | 6 +- src/UFile/Models/UFileDomainSet.php | 2 +- src/UFile/Models/UFileQuotaDataSetItem.php | 2 +- src/UFile/Models/UFileQuotaLeft.php | 2 +- src/UFile/Models/UFileReportItem.php | 2 +- src/UFile/Models/UFileReportSet.php | 2 +- src/UFile/Models/UFileTokenSet.php | 2 +- src/UFile/Models/UFileTotalReportItem.php | 6 +- src/UFile/UFileClient.php | 150 +++- src/UHost/Apis/CopyCustomImageRequest.php | 2 +- src/UHost/Apis/CopyCustomImageResponse.php | 2 +- src/UHost/Apis/CreateCustomImageRequest.php | 2 +- src/UHost/Apis/CreateCustomImageResponse.php | 2 +- .../Apis/CreateIsolationGroupRequest.php | 2 +- .../Apis/CreateIsolationGroupResponse.php | 2 +- src/UHost/Apis/CreateUHostInstanceRequest.php | 7 +- .../Apis/CreateUHostInstanceResponse.php | 2 +- src/UHost/Apis/CreateUHostKeyPairRequest.php | 2 +- src/UHost/Apis/CreateUHostKeyPairResponse.php | 2 +- .../Apis/DeleteIsolationGroupRequest.php | 2 +- .../Apis/DeleteIsolationGroupResponse.php | 2 +- src/UHost/Apis/DeleteUHostKeyPairsRequest.php | 2 +- .../Apis/DeleteUHostKeyPairsResponse.php | 2 +- src/UHost/Apis/DescribeImageRequest.php | 2 +- src/UHost/Apis/DescribeImageResponse.php | 2 +- .../Apis/DescribeIsolationGroupRequest.php | 2 +- .../Apis/DescribeIsolationGroupResponse.php | 2 +- .../Apis/DescribeUHostInstanceRequest.php | 2 +- .../Apis/DescribeUHostInstanceResponse.php | 2 +- .../Apis/DescribeUHostKeyPairsRequest.php | 2 +- .../Apis/DescribeUHostKeyPairsResponse.php | 2 +- src/UHost/Apis/DescribeUHostTagsRequest.php | 2 +- src/UHost/Apis/DescribeUHostTagsResponse.php | 2 +- .../GetAttachedDiskUpgradePriceRequest.php | 2 +- .../GetAttachedDiskUpgradePriceResponse.php | 2 +- .../Apis/GetUHostInstancePriceRequest.php | 2 +- .../Apis/GetUHostInstancePriceResponse.php | 2 +- .../Apis/GetUHostInstanceVncInfoRequest.php | 2 +- .../Apis/GetUHostInstanceVncInfoResponse.php | 2 +- .../Apis/GetUHostUpgradePriceRequest.php | 2 +- .../Apis/GetUHostUpgradePriceResponse.php | 2 +- src/UHost/Apis/ImportCustomImageRequest.php | 2 +- src/UHost/Apis/ImportCustomImageResponse.php | 2 +- src/UHost/Apis/ImportUHostKeyPairsRequest.php | 2 +- .../Apis/ImportUHostKeyPairsResponse.php | 2 +- src/UHost/Apis/LeaveIsolationGroupRequest.php | 2 +- .../Apis/LeaveIsolationGroupResponse.php | 2 +- src/UHost/Apis/ModifyUHostIPRequest.php | 2 +- src/UHost/Apis/ModifyUHostIPResponse.php | 2 +- .../Apis/ModifyUHostInstanceNameRequest.php | 2 +- .../Apis/ModifyUHostInstanceNameResponse.php | 2 +- .../Apis/ModifyUHostInstanceRemarkRequest.php | 2 +- .../ModifyUHostInstanceRemarkResponse.php | 2 +- .../Apis/ModifyUHostInstanceTagRequest.php | 2 +- .../Apis/ModifyUHostInstanceTagResponse.php | 2 +- .../Apis/PoweroffUHostInstanceRequest.php | 2 +- .../Apis/PoweroffUHostInstanceResponse.php | 2 +- src/UHost/Apis/RebootUHostInstanceRequest.php | 2 +- .../Apis/RebootUHostInstanceResponse.php | 2 +- .../Apis/ReinstallUHostInstanceRequest.php | 2 +- .../Apis/ReinstallUHostInstanceResponse.php | 2 +- .../ResetUHostInstancePasswordRequest.php | 2 +- .../ResetUHostInstancePasswordResponse.php | 2 +- src/UHost/Apis/ResizeAttachedDiskRequest.php | 2 +- src/UHost/Apis/ResizeAttachedDiskResponse.php | 2 +- src/UHost/Apis/ResizeUHostInstanceRequest.php | 2 +- .../Apis/ResizeUHostInstanceResponse.php | 2 +- src/UHost/Apis/StartUHostInstanceRequest.php | 2 +- src/UHost/Apis/StartUHostInstanceResponse.php | 2 +- src/UHost/Apis/StopUHostInstanceRequest.php | 2 +- src/UHost/Apis/StopUHostInstanceResponse.php | 2 +- .../Apis/TerminateCustomImageRequest.php | 2 +- .../Apis/TerminateCustomImageResponse.php | 2 +- .../Apis/TerminateUHostInstanceRequest.php | 2 +- .../Apis/TerminateUHostInstanceResponse.php | 2 +- .../Apis/UpgradeToArkUHostInstanceRequest.php | 2 +- .../UpgradeToArkUHostInstanceResponse.php | 2 +- src/UHost/Models/IsolationGroup.php | 2 +- src/UHost/Models/KeyPair.php | 2 +- src/UHost/Models/KeyPairDesc.php | 2 +- src/UHost/Models/SpreadInfo.php | 2 +- src/UHost/Models/UHostDiskSet.php | 2 +- src/UHost/Models/UHostIPSet.php | 2 +- src/UHost/Models/UHostImageSet.php | 2 +- src/UHost/Models/UHostInstanceSet.php | 2 +- src/UHost/Models/UHostKeyPair.php | 2 +- src/UHost/Models/UHostPriceSet.php | 2 +- src/UHost/Models/UHostTagSet.php | 2 +- .../Params/CreateUHostInstanceParamDisks.php | 6 +- .../CreateUHostInstanceParamFeatures.php | 2 +- ...eateUHostInstanceParamNetworkInterface.php | 2 +- ...eUHostInstanceParamNetworkInterfaceEIP.php | 22 +- ...UHostInstanceParamNetworkInterfaceIPv6.php | 2 +- .../CreateUHostInstanceParamVolumes.php | 2 +- .../GetUHostInstancePriceParamDisks.php | 2 +- .../GetUHostInstancePriceParamVirtualGpu.php | 2 +- .../GetUHostInstancePriceParamVolumes.php | 2 +- src/UHost/UHostClient.php | 11 +- src/UK8S/Apis/AddUK8SExistingUHostRequest.php | 2 +- .../Apis/AddUK8SExistingUHostResponse.php | 2 +- src/UK8S/Apis/AddUK8SNodeGroupRequest.php | 372 ++++++++++ src/UK8S/Apis/AddUK8SNodeGroupResponse.php | 44 ++ src/UK8S/Apis/AddUK8SPHostNodeRequest.php | 2 +- src/UK8S/Apis/AddUK8SPHostNodeResponse.php | 2 +- src/UK8S/Apis/AddUK8SUHostNodeRequest.php | 2 +- src/UK8S/Apis/AddUK8SUHostNodeResponse.php | 2 +- src/UK8S/Apis/CreateUK8SClusterV2Request.php | 2 +- src/UK8S/Apis/CreateUK8SClusterV2Response.php | 2 +- src/UK8S/Apis/DelUK8SClusterNodeV2Request.php | 2 +- .../Apis/DelUK8SClusterNodeV2Response.php | 2 +- src/UK8S/Apis/DelUK8SClusterRequest.php | 2 +- src/UK8S/Apis/DelUK8SClusterResponse.php | 2 +- src/UK8S/Apis/DescribeUK8SClusterRequest.php | 91 +++ src/UK8S/Apis/DescribeUK8SClusterResponse.php | 475 +++++++++++++ src/UK8S/Apis/DescribeUK8SImageRequest.php | 2 +- src/UK8S/Apis/DescribeUK8SImageResponse.php | 2 +- src/UK8S/Apis/DescribeUK8SNodeRequest.php | 2 +- src/UK8S/Apis/DescribeUK8SNodeResponse.php | 2 +- .../Apis/ListUK8SClusterNodeV2Request.php | 2 +- .../Apis/ListUK8SClusterNodeV2Response.php | 2 +- src/UK8S/Apis/ListUK8SClusterV2Request.php | 2 +- src/UK8S/Apis/ListUK8SClusterV2Response.php | 2 +- src/UK8S/Apis/ListUK8SNodeGroupRequest.php | 91 +++ src/UK8S/Apis/ListUK8SNodeGroupResponse.php | 57 ++ src/UK8S/Apis/RemoveUK8SNodeGroupRequest.php | 112 +++ src/UK8S/Apis/RemoveUK8SNodeGroupResponse.php | 26 + src/UK8S/Models/ClusterSet.php | 2 +- src/UK8S/Models/DiskSet.php | 224 ++++++ src/UK8S/Models/IPSet.php | 124 ++++ src/UK8S/Models/ImageInfo.php | 2 +- src/UK8S/Models/K8SNodeCondition.php | 2 +- src/UK8S/Models/KubeProxy.php | 2 +- src/UK8S/Models/NodeGroupSet.php | 324 +++++++++ src/UK8S/Models/NodeInfoV2.php | 2 +- src/UK8S/Models/UHostIPSet.php | 2 +- src/UK8S/Models/UhostInfo.php | 288 ++++++++ .../CreateUK8SClusterV2ParamKubeProxy.php | 2 +- .../Params/CreateUK8SClusterV2ParamMaster.php | 2 +- .../Params/CreateUK8SClusterV2ParamNodes.php | 2 +- src/UK8S/UK8SClient.php | 248 ++++++- src/ULB/Apis/AllocateBackendRequest.php | 18 +- src/ULB/Apis/AllocateBackendResponse.php | 2 +- src/ULB/Apis/BindSSLRequest.php | 2 +- src/ULB/Apis/BindSSLResponse.php | 2 +- src/ULB/Apis/CreatePolicyRequest.php | 2 +- src/ULB/Apis/CreatePolicyResponse.php | 2 +- src/ULB/Apis/CreateSSLRequest.php | 2 +- src/ULB/Apis/CreateSSLResponse.php | 2 +- src/ULB/Apis/CreateULBRequest.php | 2 +- src/ULB/Apis/CreateULBResponse.php | 2 +- src/ULB/Apis/CreateVServerRequest.php | 2 +- src/ULB/Apis/CreateVServerResponse.php | 2 +- src/ULB/Apis/DeletePolicyRequest.php | 2 +- src/ULB/Apis/DeletePolicyResponse.php | 2 +- src/ULB/Apis/DeleteSSLRequest.php | 2 +- src/ULB/Apis/DeleteSSLResponse.php | 2 +- src/ULB/Apis/DeleteULBRequest.php | 2 +- src/ULB/Apis/DeleteULBResponse.php | 2 +- src/ULB/Apis/DeleteVServerRequest.php | 2 +- src/ULB/Apis/DeleteVServerResponse.php | 2 +- src/ULB/Apis/DescribeSSLRequest.php | 2 +- src/ULB/Apis/DescribeSSLResponse.php | 2 +- src/ULB/Apis/DescribeULBRequest.php | 2 +- src/ULB/Apis/DescribeULBResponse.php | 2 +- src/ULB/Apis/DescribeULBSimpleRequest.php | 2 +- src/ULB/Apis/DescribeULBSimpleResponse.php | 2 +- src/ULB/Apis/DescribeVServerRequest.php | 3 +- src/ULB/Apis/DescribeVServerResponse.php | 2 +- src/ULB/Apis/ReleaseBackendRequest.php | 2 +- src/ULB/Apis/ReleaseBackendResponse.php | 2 +- src/ULB/Apis/UnbindSSLRequest.php | 2 +- src/ULB/Apis/UnbindSSLResponse.php | 2 +- .../Apis/UpdateBackendAttributeRequest.php | 2 +- .../Apis/UpdateBackendAttributeResponse.php | 2 +- src/ULB/Apis/UpdatePolicyRequest.php | 2 +- src/ULB/Apis/UpdatePolicyResponse.php | 2 +- src/ULB/Apis/UpdateSSLAttributeRequest.php | 113 +++ src/ULB/Apis/UpdateSSLAttributeResponse.php | 26 + src/ULB/Apis/UpdateULBAttributeRequest.php | 2 +- src/ULB/Apis/UpdateULBAttributeResponse.php | 2 +- .../Apis/UpdateVServerAttributeRequest.php | 2 +- .../Apis/UpdateVServerAttributeResponse.php | 2 +- src/ULB/Models/FirewallSet.php | 2 +- src/ULB/Models/LoggerSet.php | 2 +- src/ULB/Models/PolicyBackendSet.php | 2 +- src/ULB/Models/SSLBindedTargetSet.php | 2 +- src/ULB/Models/ULBBackendSet.php | 2 +- src/ULB/Models/ULBIPSet.php | 2 +- src/ULB/Models/ULBPolicySet.php | 22 +- src/ULB/Models/ULBSSLSet.php | 2 +- src/ULB/Models/ULBSet.php | 2 +- src/ULB/Models/ULBSimpleSet.php | 2 +- src/ULB/Models/ULBVServerSet.php | 22 +- src/ULB/ULBClient.php | 44 +- .../CheckUDredisSpaceAllowanceRequest.php | 2 +- .../CheckUDredisSpaceAllowanceResponse.php | 2 +- src/UMem/Apis/CheckURedisAllowanceRequest.php | 2 +- .../Apis/CheckURedisAllowanceResponse.php | 2 +- src/UMem/Apis/CreateUMemBackupRequest.php | 2 +- src/UMem/Apis/CreateUMemBackupResponse.php | 2 +- src/UMem/Apis/CreateUMemSpaceRequest.php | 2 +- src/UMem/Apis/CreateUMemSpaceResponse.php | 2 +- src/UMem/Apis/CreateUMemcacheGroupRequest.php | 2 +- .../Apis/CreateUMemcacheGroupResponse.php | 2 +- src/UMem/Apis/CreateURedisBackupRequest.php | 2 +- src/UMem/Apis/CreateURedisBackupResponse.php | 2 +- src/UMem/Apis/CreateURedisGroupRequest.php | 2 +- src/UMem/Apis/CreateURedisGroupResponse.php | 2 +- src/UMem/Apis/DeleteUMemSpaceRequest.php | 2 +- src/UMem/Apis/DeleteUMemSpaceResponse.php | 2 +- src/UMem/Apis/DeleteUMemcacheGroupRequest.php | 2 +- .../Apis/DeleteUMemcacheGroupResponse.php | 2 +- src/UMem/Apis/DeleteURedisGroupRequest.php | 2 +- src/UMem/Apis/DeleteURedisGroupResponse.php | 2 +- .../Apis/DescribeUDRedisProxyInfoRequest.php | 112 +++ .../Apis/DescribeUDRedisProxyInfoResponse.php | 57 ++ .../Apis/DescribeUDRedisSlowlogRequest.php | 2 +- .../Apis/DescribeUDRedisSlowlogResponse.php | 2 +- src/UMem/Apis/DescribeUMemBackupRequest.php | 2 +- src/UMem/Apis/DescribeUMemBackupResponse.php | 2 +- .../Apis/DescribeUMemBackupURLRequest.php | 2 +- .../Apis/DescribeUMemBackupURLResponse.php | 2 +- .../Apis/DescribeUMemBlockInfoRequest.php | 14 +- .../Apis/DescribeUMemBlockInfoResponse.php | 2 +- src/UMem/Apis/DescribeUMemPriceRequest.php | 2 +- src/UMem/Apis/DescribeUMemPriceResponse.php | 2 +- src/UMem/Apis/DescribeUMemRequest.php | 2 +- src/UMem/Apis/DescribeUMemResponse.php | 2 +- src/UMem/Apis/DescribeUMemSpaceRequest.php | 2 +- src/UMem/Apis/DescribeUMemSpaceResponse.php | 2 +- .../Apis/DescribeUMemUpgradePriceRequest.php | 2 +- .../Apis/DescribeUMemUpgradePriceResponse.php | 2 +- .../Apis/DescribeUMemcacheGroupRequest.php | 2 +- .../Apis/DescribeUMemcacheGroupResponse.php | 2 +- .../Apis/DescribeUMemcachePriceRequest.php | 2 +- .../Apis/DescribeUMemcachePriceResponse.php | 2 +- .../DescribeUMemcacheUpgradePriceRequest.php | 2 +- .../DescribeUMemcacheUpgradePriceResponse.php | 2 +- src/UMem/Apis/DescribeURedisBackupRequest.php | 2 +- .../Apis/DescribeURedisBackupResponse.php | 2 +- .../Apis/DescribeURedisBackupURLRequest.php | 2 +- .../Apis/DescribeURedisBackupURLResponse.php | 2 +- src/UMem/Apis/DescribeURedisConfigRequest.php | 2 +- .../Apis/DescribeURedisConfigResponse.php | 2 +- src/UMem/Apis/DescribeURedisGroupRequest.php | 2 +- src/UMem/Apis/DescribeURedisGroupResponse.php | 2 +- src/UMem/Apis/DescribeURedisPriceRequest.php | 2 +- src/UMem/Apis/DescribeURedisPriceResponse.php | 2 +- .../Apis/DescribeURedisSlowlogRequest.php | 2 +- .../Apis/DescribeURedisSlowlogResponse.php | 2 +- .../DescribeURedisUpgradePriceRequest.php | 2 +- .../DescribeURedisUpgradePriceResponse.php | 2 +- .../Apis/DescribeURedisVersionRequest.php | 2 +- .../Apis/DescribeURedisVersionResponse.php | 2 +- src/UMem/Apis/FlushallURedisGroupRequest.php | 2 +- src/UMem/Apis/FlushallURedisGroupResponse.php | 2 +- src/UMem/Apis/GetUMemSpaceStateRequest.php | 2 +- src/UMem/Apis/GetUMemSpaceStateResponse.php | 2 +- src/UMem/Apis/ISolationURedisGroupRequest.php | 2 +- .../Apis/ISolationURedisGroupResponse.php | 2 +- src/UMem/Apis/ModifyUMemSpaceNameRequest.php | 2 +- src/UMem/Apis/ModifyUMemSpaceNameResponse.php | 2 +- .../Apis/ModifyURedisGroupNameRequest.php | 2 +- .../Apis/ModifyURedisGroupNameResponse.php | 2 +- .../Apis/ModifyURedisGroupPasswordRequest.php | 2 +- .../ModifyURedisGroupPasswordResponse.php | 2 +- src/UMem/Apis/RemoveUDRedisDataRequest.php | 2 +- src/UMem/Apis/RemoveUDRedisDataResponse.php | 2 +- src/UMem/Apis/ResizeUMemSpaceRequest.php | 2 +- src/UMem/Apis/ResizeUMemSpaceResponse.php | 2 +- src/UMem/Apis/ResizeURedisGroupRequest.php | 2 +- src/UMem/Apis/ResizeURedisGroupResponse.php | 2 +- .../Apis/RestartUMemcacheGroupRequest.php | 2 +- .../Apis/RestartUMemcacheGroupResponse.php | 2 +- src/UMem/Apis/RestartURedisGroupRequest.php | 2 +- src/UMem/Apis/RestartURedisGroupResponse.php | 2 +- .../UpdateURedisBackupStrategyRequest.php | 2 +- .../UpdateURedisBackupStrategyResponse.php | 2 +- src/UMem/Models/UDRedisProxyInfo.php | 104 +++ src/UMem/Models/UDRedisSlowlogSet.php | 2 +- src/UMem/Models/UMemBackupSet.php | 2 +- src/UMem/Models/UMemBlockInfo.php | 82 +-- src/UMem/Models/UMemDataSet.php | 2 +- src/UMem/Models/UMemPriceSet.php | 2 +- src/UMem/Models/UMemSlaveDataSet.php | 2 +- src/UMem/Models/UMemSpaceAddressSet.php | 2 +- src/UMem/Models/UMemSpaceSet.php | 2 +- src/UMem/Models/UMemcacheGroupSet.php | 2 +- src/UMem/Models/UMemcachePriceSet.php | 2 +- src/UMem/Models/URedisBackupSet.php | 2 +- src/UMem/Models/URedisConfigSet.php | 2 +- src/UMem/Models/URedisGroupSet.php | 2 +- src/UMem/Models/URedisPriceSet.php | 2 +- src/UMem/Models/URedisSlowlogSet.php | 2 +- src/UMem/Models/URedisVersionSet.php | 2 +- src/UMem/UMemClient.php | 50 +- src/UNet/Apis/AllocateEIPRequest.php | 26 +- src/UNet/Apis/AllocateEIPResponse.php | 2 +- .../Apis/AllocateShareBandwidthRequest.php | 6 +- .../Apis/AllocateShareBandwidthResponse.php | 2 +- .../AssociateEIPWithShareBandwidthRequest.php | 2 +- ...AssociateEIPWithShareBandwidthResponse.php | 2 +- src/UNet/Apis/BindEIPRequest.php | 2 +- src/UNet/Apis/BindEIPResponse.php | 2 +- .../Apis/CreateBandwidthPackageRequest.php | 2 +- .../Apis/CreateBandwidthPackageResponse.php | 2 +- src/UNet/Apis/CreateFirewallRequest.php | 2 +- src/UNet/Apis/CreateFirewallResponse.php | 2 +- .../Apis/DeleteBandwidthPackageRequest.php | 2 +- .../Apis/DeleteBandwidthPackageResponse.php | 2 +- src/UNet/Apis/DeleteFirewallRequest.php | 2 +- src/UNet/Apis/DeleteFirewallResponse.php | 2 +- .../Apis/DescribeBandwidthPackageRequest.php | 2 +- .../Apis/DescribeBandwidthPackageResponse.php | 2 +- .../Apis/DescribeBandwidthUsageRequest.php | 2 +- .../Apis/DescribeBandwidthUsageResponse.php | 2 +- src/UNet/Apis/DescribeEIPRequest.php | 2 +- src/UNet/Apis/DescribeEIPResponse.php | 2 +- src/UNet/Apis/DescribeFirewallRequest.php | 2 +- .../Apis/DescribeFirewallResourceRequest.php | 14 +- .../Apis/DescribeFirewallResourceResponse.php | 2 +- src/UNet/Apis/DescribeFirewallResponse.php | 2 +- .../DescribeShareBandwidthPriceRequest.php | 152 +++++ .../DescribeShareBandwidthPriceResponse.php | 44 ++ .../Apis/DescribeShareBandwidthRequest.php | 2 +- .../Apis/DescribeShareBandwidthResponse.php | 2 +- ...scribeShareBandwidthUpdatePriceRequest.php | 92 +++ ...cribeShareBandwidthUpdatePriceResponse.php | 44 ++ ...sassociateEIPWithShareBandwidthRequest.php | 2 +- ...associateEIPWithShareBandwidthResponse.php | 2 +- src/UNet/Apis/DisassociateFirewallRequest.php | 2 +- .../Apis/DisassociateFirewallResponse.php | 2 +- src/UNet/Apis/GetEIPPayModeRequest.php | 2 +- src/UNet/Apis/GetEIPPayModeResponse.php | 2 +- src/UNet/Apis/GetEIPPriceRequest.php | 2 +- src/UNet/Apis/GetEIPPriceResponse.php | 2 +- src/UNet/Apis/GetEIPUpgradePriceRequest.php | 2 +- src/UNet/Apis/GetEIPUpgradePriceResponse.php | 2 +- .../GetThroughputDailyBillingInfoRequest.php | 2 +- .../GetThroughputDailyBillingInfoResponse.php | 2 +- src/UNet/Apis/GrantFirewallRequest.php | 2 +- src/UNet/Apis/GrantFirewallResponse.php | 2 +- src/UNet/Apis/ModifyEIPBandwidthRequest.php | 2 +- src/UNet/Apis/ModifyEIPBandwidthResponse.php | 2 +- src/UNet/Apis/ModifyEIPWeightRequest.php | 2 +- src/UNet/Apis/ModifyEIPWeightResponse.php | 2 +- src/UNet/Apis/ReleaseEIPRequest.php | 2 +- src/UNet/Apis/ReleaseEIPResponse.php | 2 +- .../Apis/ReleaseShareBandwidthRequest.php | 2 +- .../Apis/ReleaseShareBandwidthResponse.php | 2 +- src/UNet/Apis/ResizeShareBandwidthRequest.php | 2 +- .../Apis/ResizeShareBandwidthResponse.php | 2 +- src/UNet/Apis/SetEIPPayModeRequest.php | 2 +- src/UNet/Apis/SetEIPPayModeResponse.php | 2 +- src/UNet/Apis/UnBindEIPRequest.php | 2 +- src/UNet/Apis/UnBindEIPResponse.php | 2 +- src/UNet/Apis/UpdateEIPAttributeRequest.php | 2 +- src/UNet/Apis/UpdateEIPAttributeResponse.php | 2 +- .../Apis/UpdateFirewallAttributeRequest.php | 2 +- .../Apis/UpdateFirewallAttributeResponse.php | 2 +- src/UNet/Apis/UpdateFirewallRequest.php | 2 +- src/UNet/Apis/UpdateFirewallResponse.php | 2 +- src/UNet/Models/EIPAddrSet.php | 2 +- src/UNet/Models/EIPPayModeSet.php | 2 +- src/UNet/Models/EIPPriceDetailSet.php | 2 +- src/UNet/Models/EIPSetData.php | 2 +- src/UNet/Models/FirewallDataSet.php | 2 +- src/UNet/Models/FirewallRuleSet.php | 2 +- src/UNet/Models/ResourceSet.php | 66 +- src/UNet/Models/ShareBandwidthSet.php | 2 +- .../Models/ThroughputDailyBillingInfo.php | 2 +- src/UNet/Models/UnetAllocateEIPSet.php | 2 +- src/UNet/Models/UnetBandwidthPackageSet.php | 2 +- src/UNet/Models/UnetBandwidthUsageEIPSet.php | 2 +- src/UNet/Models/UnetEIPAddrSet.php | 2 +- src/UNet/Models/UnetEIPResourceSet.php | 2 +- src/UNet/Models/UnetEIPSet.php | 2 +- src/UNet/Models/UnetShareBandwidthSet.php | 2 +- src/UNet/UNetClient.php | 81 ++- src/UPHost/Apis/CreatePHostImageRequest.php | 153 +++++ src/UPHost/Apis/CreatePHostImageResponse.php | 44 ++ src/UPHost/Apis/CreatePHostRequest.php | 2 +- src/UPHost/Apis/CreatePHostResponse.php | 2 +- .../DescribeBaremetalMachineTypeRequest.php | 2 +- .../DescribeBaremetalMachineTypeResponse.php | 2 +- src/UPHost/Apis/DescribePHostImageRequest.php | 18 +- .../Apis/DescribePHostImageResponse.php | 2 +- .../Apis/DescribePHostMachineTypeRequest.php | 2 +- .../Apis/DescribePHostMachineTypeResponse.php | 2 +- src/UPHost/Apis/DescribePHostRequest.php | 2 +- src/UPHost/Apis/DescribePHostResponse.php | 2 +- src/UPHost/Apis/DescribePHostTagsRequest.php | 2 +- src/UPHost/Apis/DescribePHostTagsResponse.php | 2 +- .../Apis/GetPHostDiskUpgradePriceRequest.php | 2 +- .../Apis/GetPHostDiskUpgradePriceResponse.php | 2 +- src/UPHost/Apis/GetPHostPriceRequest.php | 2 +- src/UPHost/Apis/GetPHostPriceResponse.php | 2 +- .../Apis/ModifyPHostImageInfoRequest.php | 152 +++++ .../Apis/ModifyPHostImageInfoResponse.php | 44 ++ src/UPHost/Apis/ModifyPHostInfoRequest.php | 2 +- src/UPHost/Apis/ModifyPHostInfoResponse.php | 2 +- src/UPHost/Apis/PoweroffPHostRequest.php | 2 +- src/UPHost/Apis/PoweroffPHostResponse.php | 2 +- src/UPHost/Apis/RebootPHostRequest.php | 2 +- src/UPHost/Apis/RebootPHostResponse.php | 2 +- src/UPHost/Apis/ReinstallPHostRequest.php | 2 +- src/UPHost/Apis/ReinstallPHostResponse.php | 2 +- src/UPHost/Apis/ResetPHostPasswordRequest.php | 2 +- .../Apis/ResetPHostPasswordResponse.php | 2 +- .../Apis/ResizePHostAttachedDiskRequest.php | 2 +- .../Apis/ResizePHostAttachedDiskResponse.php | 2 +- src/UPHost/Apis/StartPHostRequest.php | 2 +- src/UPHost/Apis/StartPHostResponse.php | 2 +- src/UPHost/Apis/StopPHostRequest.php | 112 +++ src/UPHost/Apis/StopPHostResponse.php | 44 ++ .../Apis/TerminatePHostImageRequest.php | 112 +++ .../Apis/TerminatePHostImageResponse.php | 44 ++ src/UPHost/Apis/TerminatePHostRequest.php | 2 +- src/UPHost/Apis/TerminatePHostResponse.php | 2 +- src/UPHost/Models/PHostCPUSet.php | 2 +- .../Models/PHostCloudMachineTypeSet.php | 2 +- src/UPHost/Models/PHostClusterSet.php | 2 +- src/UPHost/Models/PHostComponentSet.php | 2 +- src/UPHost/Models/PHostDescDiskSet.php | 2 +- src/UPHost/Models/PHostDiskSet.php | 2 +- src/UPHost/Models/PHostIPSet.php | 2 +- src/UPHost/Models/PHostImageSet.php | 102 ++- src/UPHost/Models/PHostMachineTypeSet.php | 2 +- src/UPHost/Models/PHostPriceSet.php | 2 +- src/UPHost/Models/PHostSet.php | 2 +- src/UPHost/Models/PHostTagSet.php | 2 +- src/UPHost/Params/CreatePHostParamDisks.php | 2 +- src/UPHost/Params/GetPHostPriceParamDisks.php | 2 +- src/UPHost/UPHostClient.php | 143 +++- src/USMS/Apis/CreateUSMSSignatureRequest.php | 2 +- src/USMS/Apis/CreateUSMSSignatureResponse.php | 2 +- src/USMS/Apis/CreateUSMSTemplateRequest.php | 22 +- src/USMS/Apis/CreateUSMSTemplateResponse.php | 2 +- src/USMS/Apis/DeleteUSMSSignatureRequest.php | 2 +- src/USMS/Apis/DeleteUSMSSignatureResponse.php | 2 +- src/USMS/Apis/DeleteUSMSTemplateRequest.php | 2 +- src/USMS/Apis/DeleteUSMSTemplateResponse.php | 2 +- src/USMS/Apis/GetUSMSSendReceiptRequest.php | 2 +- src/USMS/Apis/GetUSMSSendReceiptResponse.php | 2 +- src/USMS/Apis/QueryUSMSSignatureRequest.php | 2 +- src/USMS/Apis/QueryUSMSSignatureResponse.php | 2 +- src/USMS/Apis/QueryUSMSTemplateRequest.php | 6 +- src/USMS/Apis/QueryUSMSTemplateResponse.php | 2 +- src/USMS/Apis/SendBatchUSMSMessageRequest.php | 2 +- .../Apis/SendBatchUSMSMessageResponse.php | 2 +- src/USMS/Apis/SendUSMSMessageRequest.php | 2 +- src/USMS/Apis/SendUSMSMessageResponse.php | 2 +- src/USMS/Apis/UpdateUSMSSignatureRequest.php | 2 +- src/USMS/Apis/UpdateUSMSSignatureResponse.php | 2 +- src/USMS/Apis/UpdateUSMSTemplateRequest.php | 26 +- src/USMS/Apis/UpdateUSMSTemplateResponse.php | 2 +- src/USMS/Models/BatchInfo.php | 2 +- src/USMS/Models/FailPhoneDetail.php | 2 +- src/USMS/Models/OutSignature.php | 2 +- src/USMS/Models/OutTemplate.php | 22 +- src/USMS/Models/ReceiptPerPhone.php | 2 +- src/USMS/Models/ReceiptPerSession.php | 2 +- src/USMS/USMSClient.php | 9 +- src/VPC/Apis/AddSnatRuleRequest.php | 2 +- src/VPC/Apis/AddSnatRuleResponse.php | 2 +- src/VPC/Apis/AddVPCNetworkRequest.php | 2 +- src/VPC/Apis/AddVPCNetworkResponse.php | 2 +- src/VPC/Apis/AddWhiteListResourceRequest.php | 2 +- src/VPC/Apis/AddWhiteListResourceResponse.php | 2 +- src/VPC/Apis/AllocateSecondaryIpRequest.php | 2 +- src/VPC/Apis/AllocateSecondaryIpResponse.php | 2 +- src/VPC/Apis/AllocateVIPRequest.php | 2 +- src/VPC/Apis/AllocateVIPResponse.php | 2 +- src/VPC/Apis/AssociateRouteTableRequest.php | 2 +- src/VPC/Apis/AssociateRouteTableResponse.php | 2 +- src/VPC/Apis/CloneRouteTableRequest.php | 2 +- src/VPC/Apis/CloneRouteTableResponse.php | 2 +- src/VPC/Apis/CreateNATGWPolicyRequest.php | 2 +- src/VPC/Apis/CreateNATGWPolicyResponse.php | 2 +- src/VPC/Apis/CreateNATGWRequest.php | 2 +- src/VPC/Apis/CreateNATGWResponse.php | 2 +- .../CreateNetworkAclAssociationRequest.php | 2 +- .../CreateNetworkAclAssociationResponse.php | 2 +- src/VPC/Apis/CreateNetworkAclEntryRequest.php | 2 +- .../Apis/CreateNetworkAclEntryResponse.php | 2 +- src/VPC/Apis/CreateNetworkAclRequest.php | 2 +- src/VPC/Apis/CreateNetworkAclResponse.php | 2 +- src/VPC/Apis/CreateRouteTableRequest.php | 2 +- src/VPC/Apis/CreateRouteTableResponse.php | 2 +- src/VPC/Apis/CreateSnatDnatRuleRequest.php | 133 ++++ src/VPC/Apis/CreateSnatDnatRuleResponse.php | 26 + src/VPC/Apis/CreateSubnetRequest.php | 2 +- src/VPC/Apis/CreateSubnetResponse.php | 2 +- src/VPC/Apis/CreateVPCIntercomRequest.php | 2 +- src/VPC/Apis/CreateVPCIntercomResponse.php | 2 +- src/VPC/Apis/CreateVPCRequest.php | 2 +- src/VPC/Apis/CreateVPCResponse.php | 2 +- src/VPC/Apis/DeleteNATGWPolicyRequest.php | 2 +- src/VPC/Apis/DeleteNATGWPolicyResponse.php | 2 +- src/VPC/Apis/DeleteNATGWRequest.php | 10 +- src/VPC/Apis/DeleteNATGWResponse.php | 2 +- .../DeleteNetworkAclAssociationRequest.php | 2 +- .../DeleteNetworkAclAssociationResponse.php | 2 +- src/VPC/Apis/DeleteNetworkAclEntryRequest.php | 2 +- .../Apis/DeleteNetworkAclEntryResponse.php | 2 +- src/VPC/Apis/DeleteNetworkAclRequest.php | 2 +- src/VPC/Apis/DeleteNetworkAclResponse.php | 2 +- src/VPC/Apis/DeleteRouteTableRequest.php | 2 +- src/VPC/Apis/DeleteRouteTableResponse.php | 2 +- src/VPC/Apis/DeleteSecondaryIpRequest.php | 2 +- src/VPC/Apis/DeleteSecondaryIpResponse.php | 2 +- src/VPC/Apis/DeleteSnatDnatRuleRequest.php | 133 ++++ src/VPC/Apis/DeleteSnatDnatRuleResponse.php | 26 + src/VPC/Apis/DeleteSnatRuleRequest.php | 2 +- src/VPC/Apis/DeleteSnatRuleResponse.php | 2 +- src/VPC/Apis/DeleteSubnetRequest.php | 2 +- src/VPC/Apis/DeleteSubnetResponse.php | 2 +- src/VPC/Apis/DeleteVPCIntercomRequest.php | 2 +- src/VPC/Apis/DeleteVPCIntercomResponse.php | 2 +- src/VPC/Apis/DeleteVPCRequest.php | 2 +- src/VPC/Apis/DeleteVPCResponse.php | 2 +- .../Apis/DeleteWhiteListResourceRequest.php | 2 +- .../Apis/DeleteWhiteListResourceResponse.php | 2 +- ...escribeInstanceNetworkInterfaceRequest.php | 132 ++++ ...scribeInstanceNetworkInterfaceResponse.php | 57 ++ src/VPC/Apis/DescribeNATGWPolicyRequest.php | 2 +- src/VPC/Apis/DescribeNATGWPolicyResponse.php | 2 +- src/VPC/Apis/DescribeNATGWRequest.php | 10 +- src/VPC/Apis/DescribeNATGWResponse.php | 2 +- ...beNetworkAclAssociationBySubnetRequest.php | 2 +- ...eNetworkAclAssociationBySubnetResponse.php | 2 +- .../DescribeNetworkAclAssociationRequest.php | 2 +- .../DescribeNetworkAclAssociationResponse.php | 2 +- .../Apis/DescribeNetworkAclEntryRequest.php | 2 +- .../Apis/DescribeNetworkAclEntryResponse.php | 2 +- src/VPC/Apis/DescribeNetworkAclRequest.php | 2 +- src/VPC/Apis/DescribeNetworkAclResponse.php | 2 +- .../Apis/DescribeNetworkInterfaceRequest.php | 231 +++++++ .../Apis/DescribeNetworkInterfaceResponse.php | 77 +++ src/VPC/Apis/DescribeRouteTableRequest.php | 2 +- src/VPC/Apis/DescribeRouteTableResponse.php | 2 +- src/VPC/Apis/DescribeSecondaryIpRequest.php | 2 +- src/VPC/Apis/DescribeSecondaryIpResponse.php | 2 +- src/VPC/Apis/DescribeSnatDnatRuleRequest.php | 110 +++ src/VPC/Apis/DescribeSnatDnatRuleResponse.php | 57 ++ src/VPC/Apis/DescribeSnatRuleRequest.php | 2 +- src/VPC/Apis/DescribeSnatRuleResponse.php | 2 +- src/VPC/Apis/DescribeSubnetRequest.php | 2 +- .../Apis/DescribeSubnetResourceRequest.php | 2 +- .../Apis/DescribeSubnetResourceResponse.php | 2 +- src/VPC/Apis/DescribeSubnetResponse.php | 2 +- src/VPC/Apis/DescribeVIPRequest.php | 2 +- src/VPC/Apis/DescribeVIPResponse.php | 2 +- src/VPC/Apis/DescribeVPCIntercomRequest.php | 2 +- src/VPC/Apis/DescribeVPCIntercomResponse.php | 2 +- src/VPC/Apis/DescribeVPCRequest.php | 2 +- src/VPC/Apis/DescribeVPCResponse.php | 2 +- .../Apis/DescribeWhiteListResourceRequest.php | 2 +- .../DescribeWhiteListResourceResponse.php | 2 +- src/VPC/Apis/EnableWhiteListRequest.php | 2 +- src/VPC/Apis/EnableWhiteListResponse.php | 2 +- .../GetAvailableResourceForPolicyRequest.php | 2 +- .../GetAvailableResourceForPolicyResponse.php | 2 +- ...GetAvailableResourceForSnatRuleRequest.php | 2 +- ...etAvailableResourceForSnatRuleResponse.php | 2 +- ...etAvailableResourceForWhiteListRequest.php | 2 +- ...tAvailableResourceForWhiteListResponse.php | 2 +- .../GetNetworkAclTargetResourceRequest.php | 2 +- .../GetNetworkAclTargetResourceResponse.php | 2 +- src/VPC/Apis/ListSubnetForNATGWRequest.php | 2 +- src/VPC/Apis/ListSubnetForNATGWResponse.php | 2 +- src/VPC/Apis/ModifyRouteRuleRequest.php | 2 +- src/VPC/Apis/ModifyRouteRuleResponse.php | 2 +- src/VPC/Apis/MoveSecondaryIPMacRequest.php | 2 +- src/VPC/Apis/MoveSecondaryIPMacResponse.php | 2 +- src/VPC/Apis/ReleaseVIPRequest.php | 2 +- src/VPC/Apis/ReleaseVIPResponse.php | 2 +- src/VPC/Apis/SetGwDefaultExportRequest.php | 2 +- src/VPC/Apis/SetGwDefaultExportResponse.php | 2 +- src/VPC/Apis/UpdateNATGWPolicyRequest.php | 2 +- src/VPC/Apis/UpdateNATGWPolicyResponse.php | 2 +- src/VPC/Apis/UpdateNATGWSubnetRequest.php | 11 +- src/VPC/Apis/UpdateNATGWSubnetResponse.php | 2 +- src/VPC/Apis/UpdateNetworkAclEntryRequest.php | 2 +- .../Apis/UpdateNetworkAclEntryResponse.php | 2 +- src/VPC/Apis/UpdateNetworkAclRequest.php | 2 +- src/VPC/Apis/UpdateNetworkAclResponse.php | 2 +- .../Apis/UpdateRouteTableAttributeRequest.php | 2 +- .../UpdateRouteTableAttributeResponse.php | 2 +- src/VPC/Apis/UpdateSnatRuleRequest.php | 2 +- src/VPC/Apis/UpdateSnatRuleResponse.php | 2 +- src/VPC/Apis/UpdateSubnetAttributeRequest.php | 2 +- .../Apis/UpdateSubnetAttributeResponse.php | 2 +- src/VPC/Apis/UpdateVIPAttributeRequest.php | 2 +- src/VPC/Apis/UpdateVIPAttributeResponse.php | 2 +- src/VPC/Apis/UpdateVPCNetworkRequest.php | 2 +- src/VPC/Apis/UpdateVPCNetworkResponse.php | 2 +- src/VPC/Models/AclEntryInfo.php | 2 +- src/VPC/Models/AclInfo.php | 2 +- src/VPC/Models/AssociationInfo.php | 2 +- .../DescribeWhiteListResourceObjectIPInfo.php | 2 +- .../GetAvailableResourceForPolicyDataSet.php | 2 +- ...GetAvailableResourceForSnatRuleDataSet.php | 2 +- ...etAvailableResourceForWhiteListDataSet.php | 2 +- src/VPC/Models/IpInfo.php | 2 +- src/VPC/Models/NATGWPolicyDataSet.php | 2 +- src/VPC/Models/NATGWSnatRule.php | 2 +- src/VPC/Models/NatGWIPResInfo.php | 2 +- src/VPC/Models/NatGWWhitelistDataSet.php | 2 +- src/VPC/Models/NatGatewayDataSet.php | 82 ++- src/VPC/Models/NatGatewayIPSet.php | 2 +- src/VPC/Models/NatGatewaySubnetSet.php | 2 +- src/VPC/Models/NatgwSubnetDataSet.php | 2 +- src/VPC/Models/NetworkInterface.php | 384 +++++++++++ src/VPC/Models/RouteRuleInfo.php | 2 +- src/VPC/Models/RouteTableInfo.php | 2 +- src/VPC/Models/SnatDnatRuleInfo.php | 84 +++ src/VPC/Models/SubnetInfo.php | 2 +- src/VPC/Models/SubnetResource.php | 2 +- src/VPC/Models/TargetResourceInfo.php | 2 +- src/VPC/Models/VIPDetailSet.php | 2 +- src/VPC/Models/VIPSet.php | 2 +- src/VPC/Models/VPCInfo.php | 2 +- src/VPC/Models/VPCIntercomInfo.php | 2 +- src/VPC/Models/VPCNetworkInfo.php | 2 +- src/VPC/VPCClient.php | 229 ++++++- 1337 files changed, 18525 insertions(+), 1790 deletions(-) create mode 100644 src/Cube/Apis/RebootCubePodRequest.php create mode 100644 src/Cube/Apis/RebootCubePodResponse.php create mode 100644 src/PathX/Apis/CreateUGA3InstanceRequest.php create mode 100644 src/PathX/Apis/CreateUGA3InstanceResponse.php create mode 100644 src/PathX/Apis/CreateUGA3PortRequest.php create mode 100644 src/PathX/Apis/CreateUGA3PortResponse.php create mode 100644 src/PathX/Apis/DeleteUGA3InstanceRequest.php create mode 100644 src/PathX/Apis/DeleteUGA3InstanceResponse.php create mode 100644 src/PathX/Apis/DeleteUGA3PortRequest.php create mode 100644 src/PathX/Apis/DeleteUGA3PortResponse.php create mode 100644 src/PathX/Apis/DescribeUGA3AreaRequest.php create mode 100644 src/PathX/Apis/DescribeUGA3AreaResponse.php create mode 100644 src/PathX/Apis/DescribeUGA3InstanceRequest.php create mode 100644 src/PathX/Apis/DescribeUGA3InstanceResponse.php create mode 100644 src/PathX/Apis/DescribeUGA3OptimizationRequest.php create mode 100644 src/PathX/Apis/DescribeUGA3OptimizationResponse.php create mode 100644 src/PathX/Apis/GetUGA3MetricRequest.php create mode 100644 src/PathX/Apis/GetUGA3MetricResponse.php create mode 100644 src/PathX/Apis/GetUGA3PriceRequest.php create mode 100644 src/PathX/Apis/GetUGA3PriceResponse.php create mode 100644 src/PathX/Apis/GetUGA3UpdatePriceRequest.php create mode 100644 src/PathX/Apis/GetUGA3UpdatePriceResponse.php create mode 100644 src/PathX/Apis/ModifyGlobalSSHRemarkRequest.php create mode 100644 src/PathX/Apis/ModifyGlobalSSHRemarkResponse.php create mode 100644 src/PathX/Apis/ModifyUGA3BandwidthRequest.php create mode 100644 src/PathX/Apis/ModifyUGA3BandwidthResponse.php create mode 100644 src/PathX/Apis/ModifyUGA3InstanceRequest.php create mode 100644 src/PathX/Apis/ModifyUGA3InstanceResponse.php create mode 100644 src/PathX/Apis/ModifyUGA3OriginInfoRequest.php create mode 100644 src/PathX/Apis/ModifyUGA3OriginInfoResponse.php create mode 100644 src/PathX/Apis/ModifyUGA3PortRequest.php create mode 100644 src/PathX/Apis/ModifyUGA3PortResponse.php create mode 100644 src/PathX/Models/AccelerationAreaInfos.php create mode 100644 src/PathX/Models/AccelerationInfo.php create mode 100644 src/PathX/Models/ForwardArea.php create mode 100644 src/PathX/Models/ForwardInfo.php create mode 100644 src/PathX/Models/ForwardTask.php create mode 100644 src/PathX/Models/NodeDelays.php create mode 100644 src/PathX/Models/SrcAreaInfo.php create mode 100644 src/PathX/Models/UGA3Metric.php create mode 100644 src/PathX/Models/UGA3Price.php create mode 100644 src/UBill/Apis/ListUBillDetailRequest.php create mode 100644 src/UBill/Apis/ListUBillDetailResponse.php create mode 100644 src/UBill/Apis/ListUBillOverviewRequest.php create mode 100644 src/UBill/Apis/ListUBillOverviewResponse.php create mode 100644 src/UBill/Models/BillDetailItem.php create mode 100644 src/UBill/Models/BillOverviewItem.php create mode 100644 src/UBill/Models/ItemDetail.php create mode 100644 src/UBill/Models/ResourceExtendInfo.php create mode 100644 src/UCDN/Apis/ControlUcdnDomainCacheAccessRequest.php create mode 100644 src/UCDN/Apis/ControlUcdnDomainCacheAccessResponse.php create mode 100644 src/UCDN/Apis/GetNewUcdnLogRefererStatisticsRequest.php create mode 100644 src/UCDN/Apis/GetNewUcdnLogRefererStatisticsResponse.php create mode 100644 src/UCDN/Apis/GetNewUcdnLogUrlStatisticsRequest.php create mode 100644 src/UCDN/Apis/GetNewUcdnLogUrlStatisticsResponse.php create mode 100644 src/UCDN/Apis/GetUcdnDomainLogV2Request.php create mode 100644 src/UCDN/Apis/GetUcdnDomainLogV2Response.php create mode 100644 src/UCDN/Models/DomanLogList.php create mode 100644 src/UCDN/Models/DownloadStatisticInfo.php create mode 100644 src/UCDN/Models/LogInfo.php create mode 100644 src/UCDN/Models/RefererList.php create mode 100644 src/UCDN/Models/RefererStatistics.php create mode 100644 src/UCDN/Models/UrlStatistics.php create mode 100644 src/UDB/Apis/GetUDBClientConnNumRequest.php create mode 100644 src/UDB/Apis/GetUDBClientConnNumResponse.php create mode 100644 src/UDB/Models/ConnNumMap.php create mode 100644 src/UEC/Apis/CreateUEcCustomImageRequest.php create mode 100644 src/UEC/Apis/CreateUEcCustomImageResponse.php create mode 100644 src/UFS/Apis/AddUFSVolumeMountPointRequest.php create mode 100644 src/UFS/Apis/AddUFSVolumeMountPointResponse.php create mode 100644 src/UFS/Apis/DescribeUFSVolumeMountpointRequest.php create mode 100644 src/UFS/Apis/DescribeUFSVolumeMountpointResponse.php create mode 100644 src/UFS/Apis/DescribeUFSVolumePriceRequest.php create mode 100644 src/UFS/Apis/DescribeUFSVolumePriceResponse.php create mode 100644 src/UFS/Apis/RemoveUFSVolumeMountPointRequest.php create mode 100644 src/UFS/Apis/RemoveUFSVolumeMountPointResponse.php create mode 100644 src/UFS/Apis/UpdateUFSVolumeInfoRequest.php create mode 100644 src/UFS/Apis/UpdateUFSVolumeInfoResponse.php create mode 100644 src/UFS/Models/MountPointInfo.php create mode 100644 src/UFS/Models/UFSPriceDataSet.php create mode 100644 src/UFile/Apis/CreateUFileLifeCycleRequest.php create mode 100644 src/UFile/Apis/CreateUFileLifeCycleResponse.php create mode 100644 src/UFile/Apis/DeleteUFileLifeCycleRequest.php create mode 100644 src/UFile/Apis/DeleteUFileLifeCycleResponse.php create mode 100644 src/UFile/Apis/DescribeUFileLifeCycleRequest.php create mode 100644 src/UFile/Apis/DescribeUFileLifeCycleResponse.php create mode 100644 src/UFile/Apis/UpdateUFileLifeCycleRequest.php create mode 100644 src/UFile/Apis/UpdateUFileLifeCycleResponse.php create mode 100644 src/UFile/Models/LifeCycleItem.php create mode 100644 src/UK8S/Apis/AddUK8SNodeGroupRequest.php create mode 100644 src/UK8S/Apis/AddUK8SNodeGroupResponse.php create mode 100644 src/UK8S/Apis/DescribeUK8SClusterRequest.php create mode 100644 src/UK8S/Apis/DescribeUK8SClusterResponse.php create mode 100644 src/UK8S/Apis/ListUK8SNodeGroupRequest.php create mode 100644 src/UK8S/Apis/ListUK8SNodeGroupResponse.php create mode 100644 src/UK8S/Apis/RemoveUK8SNodeGroupRequest.php create mode 100644 src/UK8S/Apis/RemoveUK8SNodeGroupResponse.php create mode 100644 src/UK8S/Models/DiskSet.php create mode 100644 src/UK8S/Models/IPSet.php create mode 100644 src/UK8S/Models/NodeGroupSet.php create mode 100644 src/UK8S/Models/UhostInfo.php create mode 100644 src/ULB/Apis/UpdateSSLAttributeRequest.php create mode 100644 src/ULB/Apis/UpdateSSLAttributeResponse.php create mode 100644 src/UMem/Apis/DescribeUDRedisProxyInfoRequest.php create mode 100644 src/UMem/Apis/DescribeUDRedisProxyInfoResponse.php create mode 100644 src/UMem/Models/UDRedisProxyInfo.php create mode 100644 src/UNet/Apis/DescribeShareBandwidthPriceRequest.php create mode 100644 src/UNet/Apis/DescribeShareBandwidthPriceResponse.php create mode 100644 src/UNet/Apis/DescribeShareBandwidthUpdatePriceRequest.php create mode 100644 src/UNet/Apis/DescribeShareBandwidthUpdatePriceResponse.php create mode 100644 src/UPHost/Apis/CreatePHostImageRequest.php create mode 100644 src/UPHost/Apis/CreatePHostImageResponse.php create mode 100644 src/UPHost/Apis/ModifyPHostImageInfoRequest.php create mode 100644 src/UPHost/Apis/ModifyPHostImageInfoResponse.php create mode 100644 src/UPHost/Apis/StopPHostRequest.php create mode 100644 src/UPHost/Apis/StopPHostResponse.php create mode 100644 src/UPHost/Apis/TerminatePHostImageRequest.php create mode 100644 src/UPHost/Apis/TerminatePHostImageResponse.php create mode 100644 src/VPC/Apis/CreateSnatDnatRuleRequest.php create mode 100644 src/VPC/Apis/CreateSnatDnatRuleResponse.php create mode 100644 src/VPC/Apis/DeleteSnatDnatRuleRequest.php create mode 100644 src/VPC/Apis/DeleteSnatDnatRuleResponse.php create mode 100644 src/VPC/Apis/DescribeInstanceNetworkInterfaceRequest.php create mode 100644 src/VPC/Apis/DescribeInstanceNetworkInterfaceResponse.php create mode 100644 src/VPC/Apis/DescribeNetworkInterfaceRequest.php create mode 100644 src/VPC/Apis/DescribeNetworkInterfaceResponse.php create mode 100644 src/VPC/Apis/DescribeSnatDnatRuleRequest.php create mode 100644 src/VPC/Apis/DescribeSnatDnatRuleResponse.php create mode 100644 src/VPC/Models/NetworkInterface.php create mode 100644 src/VPC/Models/SnatDnatRuleInfo.php diff --git a/Makefile b/Makefile index c039bdd6..8c9a5c87 100644 --- a/Makefile +++ b/Makefile @@ -49,5 +49,5 @@ gen: --only "USMS" \ --only "UEC" \ --public \ - -s https://git.ucloudadmin.com/apispec/apispec.git \ - /Users/user/code/oas/plugins/template-opensdk-php . + -s $(HOME)/.oas/vcs/git.ucloudadmin.com/apispec/apispec/specification \ + $(HOME)/.oas/vcs/git.ucloudadmin.com/apispec/template-opensdk-php . diff --git a/src/Cube/Apis/CreateCubeDeploymentRequest.php b/src/Cube/Apis/CreateCubeDeploymentRequest.php index af92c114..9a50ebb6 100644 --- a/src/Cube/Apis/CreateCubeDeploymentRequest.php +++ b/src/Cube/Apis/CreateCubeDeploymentRequest.php @@ -1,6 +1,6 @@ "RebootCubePod"]); + $this->markRequired("Region"); + $this->markRequired("CubeId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * CubeId: cube资源id(cube-xxxxxx) + * + * @return string|null + */ + public function getCubeId() + { + return $this->get("CubeId"); + } + + /** + * CubeId: cube资源id(cube-xxxxxx) + * + * @param string $cubeId + */ + public function setCubeId($cubeId) + { + $this->set("CubeId", $cubeId); + } +} diff --git a/src/Cube/Apis/RebootCubePodResponse.php b/src/Cube/Apis/RebootCubePodResponse.php new file mode 100644 index 00000000..8b0a6488 --- /dev/null +++ b/src/Cube/Apis/RebootCubePodResponse.php @@ -0,0 +1,26 @@ +toArray(), $resp->getRequestId()); } + /** + * RebootCubePod - 重启Cube Pod + * + * See also: https://docs.ucloud.cn/api/cube-api/reboot_cube_pod + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "CubeId" => (string) cube资源id(cube-xxxxxx) + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return RebootCubePodResponse + * @throws UCloudException + */ + public function rebootCubePod(RebootCubePodRequest $request = null) + { + $resp = $this->invoke($request); + return new RebootCubePodResponse($resp->toArray(), $resp->getRequestId()); + } + /** * RenewCubePod - 更新Pod * diff --git a/src/Cube/Models/CubeExtendInfo.php b/src/Cube/Models/CubeExtendInfo.php index 21df5e42..39d24d9e 100644 --- a/src/Cube/Models/CubeExtendInfo.php +++ b/src/Cube/Models/CubeExtendInfo.php @@ -1,6 +1,6 @@ markRequired("RemoteVPNGatewayId"); $this->markRequired("IKEPreSharedKey"); $this->markRequired("VPCId"); + $this->markRequired("IKEVersion"); $this->markRequired("IPSecLocalSubnetIds"); $this->markRequired("IPSecRemoteSubnets"); - $this->markRequired("IKEVersion"); } /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -48,7 +48,7 @@ public function getRegion() } /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $region */ @@ -58,7 +58,7 @@ public function setRegion($region) } /** - * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @return string|null */ @@ -68,7 +68,7 @@ public function getProjectId() } /** - * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @param string $projectId */ @@ -177,6 +177,26 @@ public function setVPCId($vpcId) $this->set("VPCId", $vpcId); } + /** + * IKEVersion: ike版本,枚举值: "IKE V1","IKE V2",默认v1 + * + * @return string|null + */ + public function getIKEVersion() + { + return $this->get("IKEVersion"); + } + + /** + * IKEVersion: ike版本,枚举值: "IKE V1","IKE V2",默认v1 + * + * @param string $ikeVersion + */ + public function setIKEVersion($ikeVersion) + { + $this->set("IKEVersion", $ikeVersion); + } + /** * IPSecLocalSubnetIds: 指定VPN连接的本地子网的资源ID,最多可填写10个。 * @@ -217,26 +237,6 @@ public function setIPSecRemoteSubnets(array $ipSecRemoteSubnets) $this->set("IPSecRemoteSubnets", $ipSecRemoteSubnets); } - /** - * IKEVersion: ike版本,枚举值: "IKE V1","IKE V2",默认v1 - * - * @return string|null - */ - public function getIKEVersion() - { - return $this->get("IKEVersion"); - } - - /** - * IKEVersion: ike版本,枚举值: "IKE V1","IKE V2",默认v1 - * - * @param string $ikeVersion - */ - public function setIKEVersion($ikeVersion) - { - $this->set("IKEVersion", $ikeVersion); - } - /** * Tag: 业务组,默认为“Default” * @@ -458,7 +458,7 @@ public function setIPSecEncryptionAlgorithm($ipSecEncryptionAlgorithm) } /** - * IPSecAuthenticationAlgorithm: IPSec隧道中使用的认证算法,枚举值,"md5", "sha1"。默认值为“sha1” + * IPSecAuthenticationAlgorithm: IPSec隧道中使用的认证算法,枚举值,"md5", "sha1","sha2-256"。默认值为“sha1” * * @return string|null */ @@ -468,7 +468,7 @@ public function getIPSecAuthenticationAlgorithm() } /** - * IPSecAuthenticationAlgorithm: IPSec隧道中使用的认证算法,枚举值,"md5", "sha1"。默认值为“sha1” + * IPSecAuthenticationAlgorithm: IPSec隧道中使用的认证算法,枚举值,"md5", "sha1","sha2-256"。默认值为“sha1” * * @param string $ipSecAuthenticationAlgorithm */ @@ -536,4 +536,24 @@ public function setIPSecPFSDhGroup($ipSecPFSDhGroup) { $this->set("IPSecPFSDhGroup", $ipSecPFSDhGroup); } + + /** + * IPSecCloseAction: IPSec隧道关闭后的处理动作,枚举值:“none”,流量触发;“restart”,自动重联,默认为none + * + * @return string|null + */ + public function getIPSecCloseAction() + { + return $this->get("IPSecCloseAction"); + } + + /** + * IPSecCloseAction: IPSec隧道关闭后的处理动作,枚举值:“none”,流量触发;“restart”,自动重联,默认为none + * + * @param string $ipSecCloseAction + */ + public function setIPSecCloseAction($ipSecCloseAction) + { + $this->set("IPSecCloseAction", $ipSecCloseAction); + } } diff --git a/src/IPSecVPN/Apis/CreateVPNTunnelResponse.php b/src/IPSecVPN/Apis/CreateVPNTunnelResponse.php index ad69857a..2a6635e8 100644 --- a/src/IPSecVPN/Apis/CreateVPNTunnelResponse.php +++ b/src/IPSecVPN/Apis/CreateVPNTunnelResponse.php @@ -1,6 +1,6 @@ set("IKEVersion", $ikeVersion); } + + /** + * IPSecCloseAction: IPSec隧道关闭后的处理动作,默认与原本一致,若原本为空,必传。枚举值:“none”,不处理(推荐为none,流量会自动触发隧道重建);“restart”重建 + * + * @return string|null + */ + public function getIPSecCloseAction() + { + return $this->get("IPSecCloseAction"); + } + + /** + * IPSecCloseAction: IPSec隧道关闭后的处理动作,默认与原本一致,若原本为空,必传。枚举值:“none”,不处理(推荐为none,流量会自动触发隧道重建);“restart”重建 + * + * @param string $ipSecCloseAction + */ + public function setIPSecCloseAction($ipSecCloseAction) + { + $this->set("IPSecCloseAction", $ipSecCloseAction); + } } diff --git a/src/IPSecVPN/Apis/UpdateVPNTunnelAttributeResponse.php b/src/IPSecVPN/Apis/UpdateVPNTunnelAttributeResponse.php index 3fd71b5c..33fe9f38 100644 --- a/src/IPSecVPN/Apis/UpdateVPNTunnelAttributeResponse.php +++ b/src/IPSecVPN/Apis/UpdateVPNTunnelAttributeResponse.php @@ -1,6 +1,6 @@ (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPNTunnelName" => (string) VPN隧道名称 * "VPNGatewayId" => (string) VPN网关的资源ID * "RemoteVPNGatewayId" => (string) 客户VPN网关的资源ID * "IKEPreSharedKey" => (string) 预共享密钥 * "VPCId" => (string) vpcId + * "IKEVersion" => (string) ike版本,枚举值: "IKE V1","IKE V2",默认v1 * "IPSecLocalSubnetIds" => (array) 指定VPN连接的本地子网的资源ID,最多可填写10个。 * "IPSecRemoteSubnets" => (array) 指定VPN连接的客户网段,最多可填写20个。 - * "IKEVersion" => (string) ike版本,枚举值: "IKE V1","IKE V2",默认v1 * "Tag" => (string) 业务组,默认为“Default” * "Remark" => (string) 备注,默认为空 * "IKEEncryptionAlgorithm" => (string) IKE协商过程中使用的加密算法,枚举值,"aes128", "aes192", "aes256", "aes512", "3des"。默认值为“aes128” @@ -148,10 +148,11 @@ public function createVPNGateway(CreateVPNGatewayRequest $request = null) * "IKESALifetime" => (string) IKE中SA的生存时间,可填写范围为600-604800。默认为86400。 * "IPSecProtocol" => (string) 使用的安全协议,枚举值,“esp”,“ah”。默认为“esp” * "IPSecEncryptionAlgorithm" => (string) IPSec隧道中使用的加密算法,枚举值,"aes128", "aes192", "aes256", "aes512", "3des"。默认值为“aes128” - * "IPSecAuthenticationAlgorithm" => (string) IPSec隧道中使用的认证算法,枚举值,"md5", "sha1"。默认值为“sha1” + * "IPSecAuthenticationAlgorithm" => (string) IPSec隧道中使用的认证算法,枚举值,"md5", "sha1","sha2-256"。默认值为“sha1” * "IPSecSALifetime" => (string) IPSec中SA的生存时间,可填写范围为1200 - 604800。默认为3600 * "IPSecSALifetimeBytes" => (string) IPSec中SA的生存时间(以字节计)。可选为8000 – 20000000。默认使用SA生存时间, * "IPSecPFSDhGroup" => (string) IPSec的PFS是否开启,枚举值,,不开启,"disable";数字表示DH组, "1", "2", "5", "14", "15", "16"。默认为“disable”。 + * "IPSecCloseAction" => (string) IPSec隧道关闭后的处理动作,枚举值:“none”,流量触发;“restart”,自动重联,默认为none * ] * * Outputs: @@ -511,8 +512,8 @@ public function updateVPNGateway(UpdateVPNGatewayRequest $request = null) * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "VPNTunnelId" => (string) VPN隧道的资源ID * "IKEPreSharedKey" => (string) 预共享密钥 * "IKEEncryptionAlgorithm" => (string) IKE协商过程中使用的加密算法 @@ -531,6 +532,7 @@ public function updateVPNGateway(UpdateVPNGatewayRequest $request = null) * "IPSecSALifetimeBytes" => (string) IPSec中SA的生存时间(以字节计) * "IPSecPFSDhGroup" => (string) IPSec中的PFS是否开启 * "IKEVersion" => (string) 枚举值:"IKE V1","IKE V2" + * "IPSecCloseAction" => (string) IPSec隧道关闭后的处理动作,默认与原本一致,若原本为空,必传。枚举值:“none”,不处理(推荐为none,流量会自动触发隧道重建);“restart”重建 * ] * * Outputs: diff --git a/src/IPSecVPN/Models/IKEData.php b/src/IPSecVPN/Models/IKEData.php index 314480b3..b5262a06 100644 --- a/src/IPSecVPN/Models/IKEData.php +++ b/src/IPSecVPN/Models/IKEData.php @@ -1,6 +1,6 @@ "CreateUGA3Instance"]); + $this->markRequired("ProjectId"); + $this->markRequired("Bandwidth"); + } + + + + /** + * ProjectId: 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * Bandwidth: 实例的共享带宽大小,单位Mbps + * + * @return integer|null + */ + public function getBandwidth() + { + return $this->get("Bandwidth"); + } + + /** + * Bandwidth: 实例的共享带宽大小,单位Mbps + * + * @param int $bandwidth + */ + public function setBandwidth($bandwidth) + { + $this->set("Bandwidth", $bandwidth); + } + + /** + * Name: 加速配置实例名称,默认PathX + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 加速配置实例名称,默认PathX + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * AreaCode: 非必填,如果不填,会根据Domain 和IPList 去选一个最近的源站区域BKK表示AreaCode;曼谷表示Area["BKK":"曼谷","DXB":"迪拜","FRA":"法兰克福","SGN":"胡志明市","HKG":"香港",CGK":"雅加达","LOS":"拉各斯","LHR":"伦敦","LAX":"洛杉矶","MNL":"马尼拉","DME":"莫斯科","BOM":"孟买","MSP":"圣保罗","ICN":"首尔","PVG":"上海","SIN":"新加坡","NRT":"东京","IAD":"华盛顿","TPE": "台北"] + * + * @return string|null + */ + public function getAreaCode() + { + return $this->get("AreaCode"); + } + + /** + * AreaCode: 非必填,如果不填,会根据Domain 和IPList 去选一个最近的源站区域BKK表示AreaCode;曼谷表示Area["BKK":"曼谷","DXB":"迪拜","FRA":"法兰克福","SGN":"胡志明市","HKG":"香港",CGK":"雅加达","LOS":"拉各斯","LHR":"伦敦","LAX":"洛杉矶","MNL":"马尼拉","DME":"莫斯科","BOM":"孟买","MSP":"圣保罗","ICN":"首尔","PVG":"上海","SIN":"新加坡","NRT":"东京","IAD":"华盛顿","TPE": "台北"] + * + * @param string $areaCode + */ + public function setAreaCode($areaCode) + { + $this->set("AreaCode", $areaCode); + } + + /** + * Remark: 备注项 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 备注项 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } + + /** + * ChargeType: 支付方式,如按月、按年、按时[Year,Month,Dynamic] + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 支付方式,如按月、按年、按时[Year,Month,Dynamic] + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * Quantity: 购买周期 + * + * @return integer|null + */ + public function getQuantity() + { + return $this->get("Quantity"); + } + + /** + * Quantity: 购买周期 + * + * @param int $quantity + */ + public function setQuantity($quantity) + { + $this->set("Quantity", $quantity); + } + + /** + * AccelerationArea: 加速大区,默认Global,[ "Global":"全球", "AP":"亚太", "EU":"欧洲", "ME":"中东", "OA":"大洋洲", "AF":"非洲", "NA":"北美洲", "SA":"南美洲"] + * + * @return string|null + */ + public function getAccelerationArea() + { + return $this->get("AccelerationArea"); + } + + /** + * AccelerationArea: 加速大区,默认Global,[ "Global":"全球", "AP":"亚太", "EU":"欧洲", "ME":"中东", "OA":"大洋洲", "AF":"非洲", "NA":"北美洲", "SA":"南美洲"] + * + * @param string $accelerationArea + */ + public function setAccelerationArea($accelerationArea) + { + $this->set("AccelerationArea", $accelerationArea); + } + + /** + * OriginIPList: 加速源IP,多个IP用英文半角逗号(,)隔开;IPList和Domain二选一必填 + * + * @return string|null + */ + public function getOriginIPList() + { + return $this->get("OriginIPList"); + } + + /** + * OriginIPList: 加速源IP,多个IP用英文半角逗号(,)隔开;IPList和Domain二选一必填 + * + * @param string $originIPList + */ + public function setOriginIPList($originIPList) + { + $this->set("OriginIPList", $originIPList); + } + + /** + * OriginDomain: 加速源域名,IPList和Domain二选一必填 + * + * @return string|null + */ + public function getOriginDomain() + { + return $this->get("OriginDomain"); + } + + /** + * OriginDomain: 加速源域名,IPList和Domain二选一必填 + * + * @param string $originDomain + */ + public function setOriginDomain($originDomain) + { + $this->set("OriginDomain", $originDomain); + } + + /** + * CouponId: 使用代金券可冲抵部分费用,仅全地域可用的代金券 + * + * @return string|null + */ + public function getCouponId() + { + return $this->get("CouponId"); + } + + /** + * CouponId: 使用代金券可冲抵部分费用,仅全地域可用的代金券 + * + * @param string $couponId + */ + public function setCouponId($couponId) + { + $this->set("CouponId", $couponId); + } +} diff --git a/src/PathX/Apis/CreateUGA3InstanceResponse.php b/src/PathX/Apis/CreateUGA3InstanceResponse.php new file mode 100644 index 00000000..4590401e --- /dev/null +++ b/src/PathX/Apis/CreateUGA3InstanceResponse.php @@ -0,0 +1,64 @@ +get("InstanceId"); + } + + /** + * InstanceId: 加速配置ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * CName: 加速域名 用户可把业务域名CName到此域名上 + * + * @return string|null + */ + public function getCName() + { + return $this->get("CName"); + } + + /** + * CName: 加速域名 用户可把业务域名CName到此域名上 + * + * @param string $cName + */ + public function setCName($cName) + { + $this->set("CName", $cName); + } +} diff --git a/src/PathX/Apis/CreateUGA3PortRequest.php b/src/PathX/Apis/CreateUGA3PortRequest.php new file mode 100644 index 00000000..a79c2001 --- /dev/null +++ b/src/PathX/Apis/CreateUGA3PortRequest.php @@ -0,0 +1,111 @@ + "CreateUGA3Port"]); + $this->markRequired("ProjectId"); + $this->markRequired("InstanceId"); + } + + + + /** + * ProjectId: 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 加速配置实例ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 加速配置实例ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * TCP: TCP接入端口,禁用65123端口 + * + * @return int[]|null + */ + public function getTCP() + { + return $this->get("TCP"); + } + + /** + * TCP: TCP接入端口,禁用65123端口 + * + * @param int[] $tcp + */ + public function setTCP(array $tcp) + { + $this->set("TCP", $tcp); + } + + /** + * TCPRS: TCP回源端口 + * + * @return int[]|null + */ + public function getTCPRS() + { + return $this->get("TCPRS"); + } + + /** + * TCPRS: TCP回源端口 + * + * @param int[] $tcprs + */ + public function setTCPRS(array $tcprs) + { + $this->set("TCPRS", $tcprs); + } +} diff --git a/src/PathX/Apis/CreateUGA3PortResponse.php b/src/PathX/Apis/CreateUGA3PortResponse.php new file mode 100644 index 00000000..1842524a --- /dev/null +++ b/src/PathX/Apis/CreateUGA3PortResponse.php @@ -0,0 +1,26 @@ +set("PostPaid", $postPaid); } + /** + * PathType: private:专线线路;public:海外SD-WAN。默认为private。 + * + * @return string|null + */ + public function getPathType() + { + return $this->get("PathType"); + } + + /** + * PathType: private:专线线路;public:海外SD-WAN。默认为private。 + * + * @param string $pathType + */ + public function setPathType($pathType) + { + $this->set("PathType", $pathType); + } + /** * CouponId: 代金券Id * diff --git a/src/PathX/Apis/CreateUPathResponse.php b/src/PathX/Apis/CreateUPathResponse.php index e11e2cd3..abf8f913 100644 --- a/src/PathX/Apis/CreateUPathResponse.php +++ b/src/PathX/Apis/CreateUPathResponse.php @@ -1,6 +1,6 @@ get("UPathId"); + return $this->get("PathId"); } /** - * UPathId: 加速线路实例Id + * PathId: 加速线路实例Id * - * @param string $uPathId + * @param string $pathId */ - public function setUPathId($uPathId) + public function setPathId($pathId) { - $this->set("UPathId", $uPathId); + $this->set("PathId", $pathId); } } diff --git a/src/PathX/Apis/DeleteGlobalSSHInstanceRequest.php b/src/PathX/Apis/DeleteGlobalSSHInstanceRequest.php index 71e3ff18..c59fe657 100644 --- a/src/PathX/Apis/DeleteGlobalSSHInstanceRequest.php +++ b/src/PathX/Apis/DeleteGlobalSSHInstanceRequest.php @@ -1,6 +1,6 @@ "DeleteUGA3Instance"]); + $this->markRequired("ProjectId"); + $this->markRequired("InstanceId"); + } + + + + /** + * ProjectId: 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 实例Id,资源的唯一标识 + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 实例Id,资源的唯一标识 + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } +} diff --git a/src/PathX/Apis/DeleteUGA3InstanceResponse.php b/src/PathX/Apis/DeleteUGA3InstanceResponse.php new file mode 100644 index 00000000..92837266 --- /dev/null +++ b/src/PathX/Apis/DeleteUGA3InstanceResponse.php @@ -0,0 +1,26 @@ + "DeleteUGA3Port"]); + $this->markRequired("ProjectId"); + $this->markRequired("InstanceId"); + } + + + + /** + * ProjectId: 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 加速配置实例ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 加速配置实例ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * TCP: TCP接入端口 + * + * @return int[]|null + */ + public function getTCP() + { + return $this->get("TCP"); + } + + /** + * TCP: TCP接入端口 + * + * @param int[] $tcp + */ + public function setTCP(array $tcp) + { + $this->set("TCP", $tcp); + } +} diff --git a/src/PathX/Apis/DeleteUGA3PortResponse.php b/src/PathX/Apis/DeleteUGA3PortResponse.php new file mode 100644 index 00000000..c6e78e7d --- /dev/null +++ b/src/PathX/Apis/DeleteUGA3PortResponse.php @@ -0,0 +1,26 @@ + "DescribeUGA3Area"]); + } + + + + /** + * ProjectId: 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * IPList: IP集合,非必填。如果填IP或者域名,会推荐一个地域在返回列表的第一个,源站IP集合,以逗号分隔[127.0.0.1,127.0.0.2] + * + * @return string|null + */ + public function getIPList() + { + return $this->get("IPList"); + } + + /** + * IPList: IP集合,非必填。如果填IP或者域名,会推荐一个地域在返回列表的第一个,源站IP集合,以逗号分隔[127.0.0.1,127.0.0.2] + * + * @param string $ipList + */ + public function setIPList($ipList) + { + $this->set("IPList", $ipList); + } + + /** + * Domain: 域名,非必填。如果填IP或者域名,会推荐一个地域在返回列表的第一个 + * + * @return string|null + */ + public function getDomain() + { + return $this->get("Domain"); + } + + /** + * Domain: 域名,非必填。如果填IP或者域名,会推荐一个地域在返回列表的第一个 + * + * @param string $domain + */ + public function setDomain($domain) + { + $this->set("Domain", $domain); + } +} diff --git a/src/PathX/Apis/DescribeUGA3AreaResponse.php b/src/PathX/Apis/DescribeUGA3AreaResponse.php new file mode 100644 index 00000000..dfd09f52 --- /dev/null +++ b/src/PathX/Apis/DescribeUGA3AreaResponse.php @@ -0,0 +1,57 @@ +get("AreaSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ForwardArea($item)); + } + return $result; + } + + /** + * AreaSet: 支持源站的地区,比如:AreaSet[{ "Area": "首尔", "AreaCode": "ICN", "CountryCode": "CN", "ContinentCode": "CN" }]ContinentCode:["CN","NA","OT"];"CN":表示国内,"NA":表示美洲,“OT":表示欧洲等其他地区 + * + * @param ForwardArea[] $areaSet + */ + public function setAreaSet(array $areaSet) + { + $result = []; + foreach ($areaSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/PathX/Apis/DescribeUGA3InstanceRequest.php b/src/PathX/Apis/DescribeUGA3InstanceRequest.php new file mode 100644 index 00000000..b8fb2e60 --- /dev/null +++ b/src/PathX/Apis/DescribeUGA3InstanceRequest.php @@ -0,0 +1,110 @@ + "DescribeUGA3Instance"]); + $this->markRequired("ProjectId"); + } + + + + /** + * ProjectId: 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 加速配置实例ID,如果传了实例ID 则返回匹配实例ID的记录;如果没传则返回 ProjectId 下全部实例且符合分页要求 + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 加速配置实例ID,如果传了实例ID 则返回匹配实例ID的记录;如果没传则返回 ProjectId 下全部实例且符合分页要求 + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * Limit: 返回的最大条数,默认为100,最大值400 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 返回的最大条数,默认为100,最大值400 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } + + /** + * Offset: 偏移量,默认为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 偏移量,默认为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } +} diff --git a/src/PathX/Apis/DescribeUGA3InstanceResponse.php b/src/PathX/Apis/DescribeUGA3InstanceResponse.php new file mode 100644 index 00000000..d4958214 --- /dev/null +++ b/src/PathX/Apis/DescribeUGA3InstanceResponse.php @@ -0,0 +1,81 @@ +get("ForwardInstanceInfos"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ForwardInfo($item)); + } + return $result; + } + + /** + * ForwardInstanceInfos: 全球加速实例信息列表 + * + * @param ForwardInfo[] $forwardInstanceInfos + */ + public function setForwardInstanceInfos(array $forwardInstanceInfos) + { + $result = []; + foreach ($forwardInstanceInfos as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * TotalCount: 符合条件的总数 + * + * @return integer|null + */ + public function getTotalCount() + { + return $this->get("TotalCount"); + } + + /** + * TotalCount: 符合条件的总数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } +} diff --git a/src/PathX/Apis/DescribeUGA3OptimizationRequest.php b/src/PathX/Apis/DescribeUGA3OptimizationRequest.php new file mode 100644 index 00000000..8c58417a --- /dev/null +++ b/src/PathX/Apis/DescribeUGA3OptimizationRequest.php @@ -0,0 +1,110 @@ + "DescribeUGA3Optimization"]); + $this->markRequired("AreaCode"); + } + + + + /** + * ProjectId: 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * AreaCode: 源站AreaCode + * + * @return string|null + */ + public function getAreaCode() + { + return $this->get("AreaCode"); + } + + /** + * AreaCode: 源站AreaCode + * + * @param string $areaCode + */ + public function setAreaCode($areaCode) + { + $this->set("AreaCode", $areaCode); + } + + /** + * TimeRange: 默认一天 ,枚举类型["Hour","Day","Week"] + * + * @return string|null + */ + public function getTimeRange() + { + return $this->get("TimeRange"); + } + + /** + * TimeRange: 默认一天 ,枚举类型["Hour","Day","Week"] + * + * @param string $timeRange + */ + public function setTimeRange($timeRange) + { + $this->set("TimeRange", $timeRange); + } + + /** + * AccelerationArea: 加速大区,默认Global,[ "Global":"全球", "AP":"亚太", "EU":"欧洲", "ME":"中东", "OA":"大洋洲", "AF":"非洲", "NA":"北美洲", "SA":"南美洲"] + * + * @return string|null + */ + public function getAccelerationArea() + { + return $this->get("AccelerationArea"); + } + + /** + * AccelerationArea: 加速大区,默认Global,[ "Global":"全球", "AP":"亚太", "EU":"欧洲", "ME":"中东", "OA":"大洋洲", "AF":"非洲", "NA":"北美洲", "SA":"南美洲"] + * + * @param string $accelerationArea + */ + public function setAccelerationArea($accelerationArea) + { + $this->set("AccelerationArea", $accelerationArea); + } +} diff --git a/src/PathX/Apis/DescribeUGA3OptimizationResponse.php b/src/PathX/Apis/DescribeUGA3OptimizationResponse.php new file mode 100644 index 00000000..27445c15 --- /dev/null +++ b/src/PathX/Apis/DescribeUGA3OptimizationResponse.php @@ -0,0 +1,58 @@ +get("AccelerationInfos"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new AccelerationInfo($item)); + } + return $result; + } + + /** + * AccelerationInfos: 加速详情 + * + * @param AccelerationInfo[] $accelerationInfos + */ + public function setAccelerationInfos(array $accelerationInfos) + { + $result = []; + foreach ($accelerationInfos as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/PathX/Apis/DescribeUGAInstanceRequest.php b/src/PathX/Apis/DescribeUGAInstanceRequest.php index c19a7672..54940374 100644 --- a/src/PathX/Apis/DescribeUGAInstanceRequest.php +++ b/src/PathX/Apis/DescribeUGAInstanceRequest.php @@ -1,6 +1,6 @@ "GetUGA3Metric"]); + $this->markRequired("ProjectId"); + $this->markRequired("InstanceId"); + $this->markRequired("BeginTime"); + $this->markRequired("EndTime"); + } + + + + /** + * ProjectId: 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 资源ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 资源ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * BeginTime: 查询起始时间,10位长度时间戳 + * + * @return integer|null + */ + public function getBeginTime() + { + return $this->get("BeginTime"); + } + + /** + * BeginTime: 查询起始时间,10位长度时间戳 + * + * @param int $beginTime + */ + public function setBeginTime($beginTime) + { + $this->set("BeginTime", $beginTime); + } + + /** + * EndTime: 查询结束时间,10位长度时间戳 + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询结束时间,10位长度时间戳 + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * MetricName: 查询监控的指标项。可不传 NetworkOut:出口总带宽 NetworkIn:入口总带宽 NetworkOutUsage:出口带宽使用率 NetworkInUsage:入口总带宽使用率 NetworkOutSubline :子线路出口带宽 NetworkInSubline:子线路入口带宽 Delay:线路平均延迟 DelaySubline:子线路延迟 ConnectCount:当前连接数 ConnectCountSubline:子线路当前连接数 DelayPromote:延迟提升 DelayPromoteSubline:子线路延迟提升 + * + * @return string[]|null + */ + public function getMetricName() + { + return $this->get("MetricName"); + } + + /** + * MetricName: 查询监控的指标项。可不传 NetworkOut:出口总带宽 NetworkIn:入口总带宽 NetworkOutUsage:出口带宽使用率 NetworkInUsage:入口总带宽使用率 NetworkOutSubline :子线路出口带宽 NetworkInSubline:子线路入口带宽 Delay:线路平均延迟 DelaySubline:子线路延迟 ConnectCount:当前连接数 ConnectCountSubline:子线路当前连接数 DelayPromote:延迟提升 DelayPromoteSubline:子线路延迟提升 + * + * @param string[] $metricName + */ + public function setMetricName(array $metricName) + { + $this->set("MetricName", $metricName); + } + + /** + * IsSubline: 是否为子线路。为了简化查询,true 会返回所有子线路监控项可以,false:返回所有汇总的监控数据 + * + * @return boolean|null + */ + public function getIsSubline() + { + return $this->get("IsSubline"); + } + + /** + * IsSubline: 是否为子线路。为了简化查询,true 会返回所有子线路监控项可以,false:返回所有汇总的监控数据 + * + * @param boolean $isSubline + */ + public function setIsSubline($isSubline) + { + $this->set("IsSubline", $isSubline); + } + + /** + * AreaCode: 子线路AreaCode ,子线路的时候传,不是子线路可以不传 + * + * @return string|null + */ + public function getAreaCode() + { + return $this->get("AreaCode"); + } + + /** + * AreaCode: 子线路AreaCode ,子线路的时候传,不是子线路可以不传 + * + * @param string $areaCode + */ + public function setAreaCode($areaCode) + { + $this->set("AreaCode", $areaCode); + } +} diff --git a/src/PathX/Apis/GetUGA3MetricResponse.php b/src/PathX/Apis/GetUGA3MetricResponse.php new file mode 100644 index 00000000..ef47d76c --- /dev/null +++ b/src/PathX/Apis/GetUGA3MetricResponse.php @@ -0,0 +1,57 @@ +get("DataSet")); + } + + /** + * DataSet: 监控数据结果集 + * + * @param UGA3Metric $dataSet + */ + public function setDataSet(array $dataSet) + { + $this->set("DataSet", $dataSet->getAll()); + } +} diff --git a/src/PathX/Apis/GetUGA3PriceRequest.php b/src/PathX/Apis/GetUGA3PriceRequest.php new file mode 100644 index 00000000..69d55e0c --- /dev/null +++ b/src/PathX/Apis/GetUGA3PriceRequest.php @@ -0,0 +1,152 @@ + "GetUGA3Price"]); + $this->markRequired("ProjectId"); + $this->markRequired("Bandwidth"); + $this->markRequired("AreaCode"); + } + + + + /** + * ProjectId: 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * Bandwidth: 共享带宽大小 + * + * @return integer|null + */ + public function getBandwidth() + { + return $this->get("Bandwidth"); + } + + /** + * Bandwidth: 共享带宽大小 + * + * @param int $bandwidth + */ + public function setBandwidth($bandwidth) + { + $this->set("Bandwidth", $bandwidth); + } + + /** + * AreaCode: 源站区域 + * + * @return string|null + */ + public function getAreaCode() + { + return $this->get("AreaCode"); + } + + /** + * AreaCode: 源站区域 + * + * @param string $areaCode + */ + public function setAreaCode($areaCode) + { + $this->set("AreaCode", $areaCode); + } + + /** + * Quantity: 购买时间数量,当ChargeType为Month时 Quantity默认为0,代表购买至月底。按年按小时必须为大于0 + * + * @return integer|null + */ + public function getQuantity() + { + return $this->get("Quantity"); + } + + /** + * Quantity: 购买时间数量,当ChargeType为Month时 Quantity默认为0,代表购买至月底。按年按小时必须为大于0 + * + * @param int $quantity + */ + public function setQuantity($quantity) + { + $this->set("Quantity", $quantity); + } + + /** + * ChargeType: 计费方式,默认按月支付。Month: 按月; Year: 按年; Dynamic: 按小时收 + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费方式,默认按月支付。Month: 按月; Year: 按年; Dynamic: 按小时收 + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * AccelerationArea: 加速大区,默认返回所有加速大区价格 + * + * @return string|null + */ + public function getAccelerationArea() + { + return $this->get("AccelerationArea"); + } + + /** + * AccelerationArea: 加速大区,默认返回所有加速大区价格 + * + * @param string $accelerationArea + */ + public function setAccelerationArea($accelerationArea) + { + $this->set("AccelerationArea", $accelerationArea); + } +} diff --git a/src/PathX/Apis/GetUGA3PriceResponse.php b/src/PathX/Apis/GetUGA3PriceResponse.php new file mode 100644 index 00000000..f56c9cb3 --- /dev/null +++ b/src/PathX/Apis/GetUGA3PriceResponse.php @@ -0,0 +1,57 @@ +get("UGA3Price"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UGA3Price($item)); + } + return $result; + } + + /** + * UGA3Price: 加速大区对应价格 + * + * @param UGA3Price[] $uga3Price + */ + public function setUGA3Price(array $uga3Price) + { + $result = []; + foreach ($uga3Price as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/PathX/Apis/GetUGA3UpdatePriceRequest.php b/src/PathX/Apis/GetUGA3UpdatePriceRequest.php new file mode 100644 index 00000000..43b5b554 --- /dev/null +++ b/src/PathX/Apis/GetUGA3UpdatePriceRequest.php @@ -0,0 +1,131 @@ + "GetUGA3UpdatePrice"]); + $this->markRequired("ProjectId"); + $this->markRequired("InstanceId"); + } + + + + /** + * ProjectId: 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 资源ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 资源ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * Bandwidth: 只有升级带宽的时候有价格变化 + * + * @return integer|null + */ + public function getBandwidth() + { + return $this->get("Bandwidth"); + } + + /** + * Bandwidth: 只有升级带宽的时候有价格变化 + * + * @param int $bandwidth + */ + public function setBandwidth($bandwidth) + { + $this->set("Bandwidth", $bandwidth); + } + + /** + * AccelerationArea: 暂未支持,加速大区,在更换加速大区的时候使用 + * + * @return string|null + */ + public function getAccelerationArea() + { + return $this->get("AccelerationArea"); + } + + /** + * AccelerationArea: 暂未支持,加速大区,在更换加速大区的时候使用 + * + * @param string $accelerationArea + */ + public function setAccelerationArea($accelerationArea) + { + $this->set("AccelerationArea", $accelerationArea); + } + + /** + * AreaCode: 暂未支持,源站区域 + * + * @return string|null + */ + public function getAreaCode() + { + return $this->get("AreaCode"); + } + + /** + * AreaCode: 暂未支持,源站区域 + * + * @param string $areaCode + */ + public function setAreaCode($areaCode) + { + $this->set("AreaCode", $areaCode); + } +} diff --git a/src/PathX/Apis/GetUGA3UpdatePriceResponse.php b/src/PathX/Apis/GetUGA3UpdatePriceResponse.php new file mode 100644 index 00000000..8ce9d6b8 --- /dev/null +++ b/src/PathX/Apis/GetUGA3UpdatePriceResponse.php @@ -0,0 +1,44 @@ +get("Price"); + } + + /** + * Price: 价格 元。大于0需付费,小于0则退费。 + * + * @param float $price + */ + public function setPrice($price) + { + $this->set("Price", $price); + } +} diff --git a/src/PathX/Apis/ModifyGlobalSSHPortRequest.php b/src/PathX/Apis/ModifyGlobalSSHPortRequest.php index 84f78764..7df8af9a 100644 --- a/src/PathX/Apis/ModifyGlobalSSHPortRequest.php +++ b/src/PathX/Apis/ModifyGlobalSSHPortRequest.php @@ -1,6 +1,6 @@ "ModifyGlobalSSHRemark"]); + $this->markRequired("ProjectId"); + $this->markRequired("InstanceId"); + } + + + + /** + * ProjectId: 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 实例ID,资源唯一标识 + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 实例ID,资源唯一标识 + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * Remark: 备注信息,不填默认为空字符串 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 备注信息,不填默认为空字符串 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } +} diff --git a/src/PathX/Apis/ModifyGlobalSSHRemarkResponse.php b/src/PathX/Apis/ModifyGlobalSSHRemarkResponse.php new file mode 100644 index 00000000..a1c6245b --- /dev/null +++ b/src/PathX/Apis/ModifyGlobalSSHRemarkResponse.php @@ -0,0 +1,26 @@ + "ModifyUGA3Bandwidth"]); + $this->markRequired("ProjectId"); + $this->markRequired("InstanceId"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 加速配置实例ID,格式uga3-xxxx + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 加速配置实例ID,格式uga3-xxxx + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * Bandwidth: 带宽大小,范围[1,100],不传则不更新 + * + * @return integer|null + */ + public function getBandwidth() + { + return $this->get("Bandwidth"); + } + + /** + * Bandwidth: 带宽大小,范围[1,100],不传则不更新 + * + * @param int $bandwidth + */ + public function setBandwidth($bandwidth) + { + $this->set("Bandwidth", $bandwidth); + } + + /** + * CouponId: 需要全地域可用的代金券 + * + * @return string|null + */ + public function getCouponId() + { + return $this->get("CouponId"); + } + + /** + * CouponId: 需要全地域可用的代金券 + * + * @param string $couponId + */ + public function setCouponId($couponId) + { + $this->set("CouponId", $couponId); + } +} diff --git a/src/PathX/Apis/ModifyUGA3BandwidthResponse.php b/src/PathX/Apis/ModifyUGA3BandwidthResponse.php new file mode 100644 index 00000000..0ebf55f9 --- /dev/null +++ b/src/PathX/Apis/ModifyUGA3BandwidthResponse.php @@ -0,0 +1,26 @@ + "ModifyUGA3Instance"]); + $this->markRequired("ProjectId"); + $this->markRequired("InstanceId"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 加速配置实例ID,格式uga-xxxx。不支持GlobalSSH实例。 + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 加速配置实例ID,格式uga-xxxx。不支持GlobalSSH实例。 + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * Name: 加速配置实例名称,不填或空字符串则不更新 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 加速配置实例名称,不填或空字符串则不更新 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Remark: 备注信息,暂时前端为使用 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 备注信息,暂时前端为使用 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } +} diff --git a/src/PathX/Apis/ModifyUGA3InstanceResponse.php b/src/PathX/Apis/ModifyUGA3InstanceResponse.php new file mode 100644 index 00000000..0f627c89 --- /dev/null +++ b/src/PathX/Apis/ModifyUGA3InstanceResponse.php @@ -0,0 +1,26 @@ + "ModifyUGA3OriginInfo"]); + $this->markRequired("ProjectId"); + $this->markRequired("InstanceId"); + $this->markRequired("OriginDomain"); + $this->markRequired("OriginIPList"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 加速配置实例ID,格式uga3-xxxx。 + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 加速配置实例ID,格式uga3-xxxx。 + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * OriginDomain: 加速源域名,仅支持1个域名。修改源站时 OriginIPList和OriginDomain至少填一个。OriginIPList和OriginDomain都填时 以Domain为准,如果两个都不填,不修改 + * + * @return string|null + */ + public function getOriginDomain() + { + return $this->get("OriginDomain"); + } + + /** + * OriginDomain: 加速源域名,仅支持1个域名。修改源站时 OriginIPList和OriginDomain至少填一个。OriginIPList和OriginDomain都填时 以Domain为准,如果两个都不填,不修改 + * + * @param string $originDomain + */ + public function setOriginDomain($originDomain) + { + $this->set("OriginDomain", $originDomain); + } + + /** + * OriginIPList: ,加速源IP,多个IP用英文半角逗号(,)隔开。修改源站时 ,OriginIPList和OriginDomain至少填一个。OriginIPList和OriginDomain都填时 以OriginDomain为准。如果两个都不填,不修改 + * + * @return string|null + */ + public function getOriginIPList() + { + return $this->get("OriginIPList"); + } + + /** + * OriginIPList: ,加速源IP,多个IP用英文半角逗号(,)隔开。修改源站时 ,OriginIPList和OriginDomain至少填一个。OriginIPList和OriginDomain都填时 以OriginDomain为准。如果两个都不填,不修改 + * + * @param string $originIPList + */ + public function setOriginIPList($originIPList) + { + $this->set("OriginIPList", $originIPList); + } +} diff --git a/src/PathX/Apis/ModifyUGA3OriginInfoResponse.php b/src/PathX/Apis/ModifyUGA3OriginInfoResponse.php new file mode 100644 index 00000000..cb466b74 --- /dev/null +++ b/src/PathX/Apis/ModifyUGA3OriginInfoResponse.php @@ -0,0 +1,26 @@ + "ModifyUGA3Port"]); + $this->markRequired("ProjectId"); + $this->markRequired("InstanceId"); + } + + + + /** + * ProjectId: 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 加速配置实例ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 加速配置实例ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * TCP: TCP接入端口,禁用65123端口 + * + * @return int[]|null + */ + public function getTCP() + { + return $this->get("TCP"); + } + + /** + * TCP: TCP接入端口,禁用65123端口 + * + * @param int[] $tcp + */ + public function setTCP(array $tcp) + { + $this->set("TCP", $tcp); + } + + /** + * TCPRS: TCP回源端口 + * + * @return int[]|null + */ + public function getTCPRS() + { + return $this->get("TCPRS"); + } + + /** + * TCPRS: TCP回源端口 + * + * @param int[] $tcprs + */ + public function setTCPRS(array $tcprs) + { + $this->set("TCPRS", $tcprs); + } +} diff --git a/src/PathX/Apis/ModifyUGA3PortResponse.php b/src/PathX/Apis/ModifyUGA3PortResponse.php new file mode 100644 index 00000000..2a61a96a --- /dev/null +++ b/src/PathX/Apis/ModifyUGA3PortResponse.php @@ -0,0 +1,26 @@ +get("AccelerationArea"); + } + + /** + * AccelerationArea: 加速区code + * + * @param string $accelerationArea + */ + public function setAccelerationArea($accelerationArea) + { + $this->set("AccelerationArea", $accelerationArea); + } + + /** + * AccelerationNodes: 加速节点信息 + * + * @return SrcAreaInfo[]|null + */ + public function getAccelerationNodes() + { + $items = $this->get("AccelerationNodes"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new SrcAreaInfo($item)); + } + return $result; + } + + /** + * AccelerationNodes: 加速节点信息 + * + * @param SrcAreaInfo[] $accelerationNodes + */ + public function setAccelerationNodes(array $accelerationNodes) + { + $result = []; + foreach ($accelerationNodes as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/PathX/Models/AccelerationInfo.php b/src/PathX/Models/AccelerationInfo.php new file mode 100644 index 00000000..905615d8 --- /dev/null +++ b/src/PathX/Models/AccelerationInfo.php @@ -0,0 +1,96 @@ +get("AccelerationArea"); + } + + /** + * AccelerationArea: 加速大区代码 + * + * @param string $accelerationArea + */ + public function setAccelerationArea($accelerationArea) + { + $this->set("AccelerationArea", $accelerationArea); + } + + /** + * AccelerationName: 加速大区名称 + * + * @return string|null + */ + public function getAccelerationName() + { + return $this->get("AccelerationName"); + } + + /** + * AccelerationName: 加速大区名称 + * + * @param string $accelerationName + */ + public function setAccelerationName($accelerationName) + { + $this->set("AccelerationName", $accelerationName); + } + + /** + * NodeInfo: 加速提升情况 + * + * @return NodeDelays[]|null + */ + public function getNodeInfo() + { + $items = $this->get("NodeInfo"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new NodeDelays($item)); + } + return $result; + } + + /** + * NodeInfo: 加速提升情况 + * + * @param NodeDelays[] $nodeInfo + */ + public function setNodeInfo(array $nodeInfo) + { + $result = []; + foreach ($nodeInfo as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/PathX/Models/AlarmRuler.php b/src/PathX/Models/AlarmRuler.php index 57544579..97f05c9a 100644 --- a/src/PathX/Models/AlarmRuler.php +++ b/src/PathX/Models/AlarmRuler.php @@ -1,6 +1,6 @@ get("AreaCode"); + } + + /** + * AreaCode: 源站区域代码 + * + * @param string $areaCode + */ + public function setAreaCode($areaCode) + { + $this->set("AreaCode", $areaCode); + } + + /** + * Area: 源站区域中文 + * + * @return string|null + */ + public function getArea() + { + return $this->get("Area"); + } + + /** + * Area: 源站区域中文 + * + * @param string $area + */ + public function setArea($area) + { + $this->set("Area", $area); + } + + /** + * CountryCode: 国家代码 + * + * @return string|null + */ + public function getCountryCode() + { + return $this->get("CountryCode"); + } + + /** + * CountryCode: 国家代码 + * + * @param string $countryCode + */ + public function setCountryCode($countryCode) + { + $this->set("CountryCode", $countryCode); + } + + /** + * FlagUnicode: 国旗unicode + * + * @return string|null + */ + public function getFlagUnicode() + { + return $this->get("FlagUnicode"); + } + + /** + * FlagUnicode: 国旗unicode + * + * @param string $flagUnicode + */ + public function setFlagUnicode($flagUnicode) + { + $this->set("FlagUnicode", $flagUnicode); + } + + /** + * FlagEmoji: 国旗 emoji + * + * @return string|null + */ + public function getFlagEmoji() + { + return $this->get("FlagEmoji"); + } + + /** + * FlagEmoji: 国旗 emoji + * + * @param string $flagEmoji + */ + public function setFlagEmoji($flagEmoji) + { + $this->set("FlagEmoji", $flagEmoji); + } + + /** + * ContinentCode: 大陆代码 + * + * @return string|null + */ + public function getContinentCode() + { + return $this->get("ContinentCode"); + } + + /** + * ContinentCode: 大陆代码 + * + * @param string $continentCode + */ + public function setContinentCode($continentCode) + { + $this->set("ContinentCode", $continentCode); + } +} diff --git a/src/PathX/Models/ForwardInfo.php b/src/PathX/Models/ForwardInfo.php new file mode 100644 index 00000000..4f53260b --- /dev/null +++ b/src/PathX/Models/ForwardInfo.php @@ -0,0 +1,400 @@ +get("InstanceId"); + } + + /** + * InstanceId: 加速配置ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * CName: 加速域名 + * + * @return string|null + */ + public function getCName() + { + return $this->get("CName"); + } + + /** + * CName: 加速域名 + * + * @param string $cName + */ + public function setCName($cName) + { + $this->set("CName", $cName); + } + + /** + * Name: 加速实例名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 加速实例名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * AccelerationArea: 加速大区代码 + * + * @return string|null + */ + public function getAccelerationArea() + { + return $this->get("AccelerationArea"); + } + + /** + * AccelerationArea: 加速大区代码 + * + * @param string $accelerationArea + */ + public function setAccelerationArea($accelerationArea) + { + $this->set("AccelerationArea", $accelerationArea); + } + + /** + * AccelerationAreaName: 加速大区名称 + * + * @return string|null + */ + public function getAccelerationAreaName() + { + return $this->get("AccelerationAreaName"); + } + + /** + * AccelerationAreaName: 加速大区名称 + * + * @param string $accelerationAreaName + */ + public function setAccelerationAreaName($accelerationAreaName) + { + $this->set("AccelerationAreaName", $accelerationAreaName); + } + + /** + * AccelerationAreaInfos: 加速节点列表 + * + * @return AccelerationAreaInfos[]|null + */ + public function getAccelerationAreaInfos() + { + $items = $this->get("AccelerationAreaInfos"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new AccelerationAreaInfos($item)); + } + return $result; + } + + /** + * AccelerationAreaInfos: 加速节点列表 + * + * @param AccelerationAreaInfos[] $accelerationAreaInfos + */ + public function setAccelerationAreaInfos(array $accelerationAreaInfos) + { + $result = []; + foreach ($accelerationAreaInfos as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * EgressIpList: 回源出口IP地址 + * + * @return OutPublicIpInfo[]|null + */ + public function getEgressIpList() + { + $items = $this->get("EgressIpList"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new OutPublicIpInfo($item)); + } + return $result; + } + + /** + * EgressIpList: 回源出口IP地址 + * + * @param OutPublicIpInfo[] $egressIpList + */ + public function setEgressIpList(array $egressIpList) + { + $result = []; + foreach ($egressIpList as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * Bandwidth: 购买的带宽值 + * + * @return integer|null + */ + public function getBandwidth() + { + return $this->get("Bandwidth"); + } + + /** + * Bandwidth: 购买的带宽值 + * + * @param int $bandwidth + */ + public function setBandwidth($bandwidth) + { + $this->set("Bandwidth", $bandwidth); + } + + /** + * OriginArea: 源站中文名 + * + * @return string|null + */ + public function getOriginArea() + { + return $this->get("OriginArea"); + } + + /** + * OriginArea: 源站中文名 + * + * @param string $originArea + */ + public function setOriginArea($originArea) + { + $this->set("OriginArea", $originArea); + } + + /** + * OriginAreaCode: 源站AreaCode + * + * @return string|null + */ + public function getOriginAreaCode() + { + return $this->get("OriginAreaCode"); + } + + /** + * OriginAreaCode: 源站AreaCode + * + * @param string $originAreaCode + */ + public function setOriginAreaCode($originAreaCode) + { + $this->set("OriginAreaCode", $originAreaCode); + } + + /** + * CreateTime: 资源创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 资源创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * ExpireTime: 资源过期时间 + * + * @return integer|null + */ + public function getExpireTime() + { + return $this->get("ExpireTime"); + } + + /** + * ExpireTime: 资源过期时间 + * + * @param int $expireTime + */ + public function setExpireTime($expireTime) + { + $this->set("ExpireTime", $expireTime); + } + + /** + * ChargeType: 计费方式 + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费方式 + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * Remark: 备注 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 备注 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } + + /** + * PortSets: 端口列表 + * + * @return ForwardTask[]|null + */ + public function getPortSets() + { + $items = $this->get("PortSets"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ForwardTask($item)); + } + return $result; + } + + /** + * PortSets: 端口列表 + * + * @param ForwardTask[] $portSets + */ + public function setPortSets(array $portSets) + { + $result = []; + foreach ($portSets as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * IPList: 源站IP列表,多个值由半角英文逗号相隔 + * + * @return string[]|null + */ + public function getIPList() + { + return $this->get("IPList"); + } + + /** + * IPList: 源站IP列表,多个值由半角英文逗号相隔 + * + * @param string[] $ipList + */ + public function setIPList(array $ipList) + { + $this->set("IPList", $ipList); + } + + /** + * Domain: 源站域名 + * + * @return string|null + */ + public function getDomain() + { + return $this->get("Domain"); + } + + /** + * Domain: 源站域名 + * + * @param string $domain + */ + public function setDomain($domain) + { + $this->set("Domain", $domain); + } +} diff --git a/src/PathX/Models/ForwardTask.php b/src/PathX/Models/ForwardTask.php new file mode 100644 index 00000000..168975ba --- /dev/null +++ b/src/PathX/Models/ForwardTask.php @@ -0,0 +1,84 @@ +get("Protocol"); + } + + /** + * Protocol: 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS","WSWS","WSSWS","WSSWSS"]。TCP和UDP代表四层转发,其余为七层转发。 + * + * @param string $protocol + */ + public function setProtocol($protocol) + { + $this->set("Protocol", $protocol); + } + + /** + * RSPort: 源站服务器监听的端口号 + * + * @return integer|null + */ + public function getRSPort() + { + return $this->get("RSPort"); + } + + /** + * RSPort: 源站服务器监听的端口号 + * + * @param int $rsPort + */ + public function setRSPort($rsPort) + { + $this->set("RSPort", $rsPort); + } + + /** + * Port: 加速端口 + * + * @return integer|null + */ + public function getPort() + { + return $this->get("Port"); + } + + /** + * Port: 加速端口 + * + * @param int $port + */ + public function setPort($port) + { + $this->set("Port", $port); + } +} diff --git a/src/PathX/Models/GlobalSSHInfo.php b/src/PathX/Models/GlobalSSHInfo.php index 103cb7b2..53698136 100644 --- a/src/PathX/Models/GlobalSSHInfo.php +++ b/src/PathX/Models/GlobalSSHInfo.php @@ -1,6 +1,6 @@ get("Area"); + } + + /** + * Area: 加速区域 + * + * @param string $area + */ + public function setArea($area) + { + $this->set("Area", $area); + } + + /** + * AreaCode: 加速区域Code + * + * @return string|null + */ + public function getAreaCode() + { + return $this->get("AreaCode"); + } + + /** + * AreaCode: 加速区域Code + * + * @param string $areaCode + */ + public function setAreaCode($areaCode) + { + $this->set("AreaCode", $areaCode); + } + + /** + * CountryCode: 国家代码 + * + * @return string|null + */ + public function getCountryCode() + { + return $this->get("CountryCode"); + } + + /** + * CountryCode: 国家代码 + * + * @param string $countryCode + */ + public function setCountryCode($countryCode) + { + $this->set("CountryCode", $countryCode); + } + + /** + * FlagUnicode: 国旗Code + * + * @return string|null + */ + public function getFlagUnicode() + { + return $this->get("FlagUnicode"); + } + + /** + * FlagUnicode: 国旗Code + * + * @param string $flagUnicode + */ + public function setFlagUnicode($flagUnicode) + { + $this->set("FlagUnicode", $flagUnicode); + } + + /** + * FlagEmoji: 国旗Emoji + * + * @return string|null + */ + public function getFlagEmoji() + { + return $this->get("FlagEmoji"); + } + + /** + * FlagEmoji: 国旗Emoji + * + * @param string $flagEmoji + */ + public function setFlagEmoji($flagEmoji) + { + $this->set("FlagEmoji", $flagEmoji); + } + + /** + * Latency: 加速延迟 + * + * @return float|null + */ + public function getLatency() + { + return $this->get("Latency"); + } + + /** + * Latency: 加速延迟 + * + * @param float $latency + */ + public function setLatency($latency) + { + $this->set("Latency", $latency); + } + + /** + * LatencyInternet: 公网延迟 + * + * @return float|null + */ + public function getLatencyInternet() + { + return $this->get("LatencyInternet"); + } + + /** + * LatencyInternet: 公网延迟 + * + * @param float $latencyInternet + */ + public function setLatencyInternet($latencyInternet) + { + $this->set("LatencyInternet", $latencyInternet); + } + + /** + * LatencyOptimization: 加速提升比例 + * + * @return float|null + */ + public function getLatencyOptimization() + { + return $this->get("LatencyOptimization"); + } + + /** + * LatencyOptimization: 加速提升比例 + * + * @param float $latencyOptimization + */ + public function setLatencyOptimization($latencyOptimization) + { + $this->set("LatencyOptimization", $latencyOptimization); + } + + /** + * Loss: 加速后丢包率 + * + * @return float|null + */ + public function getLoss() + { + return $this->get("Loss"); + } + + /** + * Loss: 加速后丢包率 + * + * @param float $loss + */ + public function setLoss($loss) + { + $this->set("Loss", $loss); + } + + /** + * LossInternet: 原始丢包率 + * + * @return float|null + */ + public function getLossInternet() + { + return $this->get("LossInternet"); + } + + /** + * LossInternet: 原始丢包率 + * + * @param float $lossInternet + */ + public function setLossInternet($lossInternet) + { + $this->set("LossInternet", $lossInternet); + } + + /** + * LossOptimization: 丢包下降比例 + * + * @return float|null + */ + public function getLossOptimization() + { + return $this->get("LossOptimization"); + } + + /** + * LossOptimization: 丢包下降比例 + * + * @param float $lossOptimization + */ + public function setLossOptimization($lossOptimization) + { + $this->set("LossOptimization", $lossOptimization); + } +} diff --git a/src/PathX/Models/OutPublicIpInfo.php b/src/PathX/Models/OutPublicIpInfo.php index 27cfaf2b..42d366ec 100644 --- a/src/PathX/Models/OutPublicIpInfo.php +++ b/src/PathX/Models/OutPublicIpInfo.php @@ -1,6 +1,6 @@ get("AreaCode"); + } + + /** + * AreaCode: AreaCode ,城市机场代码 + * + * @param string $areaCode + */ + public function setAreaCode($areaCode) + { + $this->set("AreaCode", $areaCode); + } + + /** + * Area: AreaCode对应城市名 + * + * @return string|null + */ + public function getArea() + { + return $this->get("Area"); + } + + /** + * Area: AreaCode对应城市名 + * + * @param string $area + */ + public function setArea($area) + { + $this->set("Area", $area); + } + + /** + * FlagEmoji: 国旗Emoji + * + * @return string|null + */ + public function getFlagEmoji() + { + return $this->get("FlagEmoji"); + } + + /** + * FlagEmoji: 国旗Emoji + * + * @param string $flagEmoji + */ + public function setFlagEmoji($flagEmoji) + { + $this->set("FlagEmoji", $flagEmoji); + } + + /** + * FlagUnicode: 国旗Unicode + * + * @return string|null + */ + public function getFlagUnicode() + { + return $this->get("FlagUnicode"); + } + + /** + * FlagUnicode: 国旗Unicode + * + * @param string $flagUnicode + */ + public function setFlagUnicode($flagUnicode) + { + $this->set("FlagUnicode", $flagUnicode); + } +} diff --git a/src/PathX/Models/UGA3Metric.php b/src/PathX/Models/UGA3Metric.php new file mode 100644 index 00000000..b837685b --- /dev/null +++ b/src/PathX/Models/UGA3Metric.php @@ -0,0 +1,408 @@ +get("NetworkOut"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MatricPoint($item)); + } + return $result; + } + + /** + * NetworkOut: 出向带宽 + * + * @param MatricPoint[] $networkOut + */ + public function setNetworkOut(array $networkOut) + { + $result = []; + foreach ($networkOut as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * NetworkIn: 入向带宽 + * + * @return MatricPoint[]|null + */ + public function getNetworkIn() + { + $items = $this->get("NetworkIn"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MatricPoint($item)); + } + return $result; + } + + /** + * NetworkIn: 入向带宽 + * + * @param MatricPoint[] $networkIn + */ + public function setNetworkIn(array $networkIn) + { + $result = []; + foreach ($networkIn as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * NetworkOutUsage: 出向带宽使用率 + * + * @return MatricPoint[]|null + */ + public function getNetworkOutUsage() + { + $items = $this->get("NetworkOutUsage"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MatricPoint($item)); + } + return $result; + } + + /** + * NetworkOutUsage: 出向带宽使用率 + * + * @param MatricPoint[] $networkOutUsage + */ + public function setNetworkOutUsage(array $networkOutUsage) + { + $result = []; + foreach ($networkOutUsage as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * NetworkInUsage: 入向带宽使用率 + * + * @return MatricPoint[]|null + */ + public function getNetworkInUsage() + { + $items = $this->get("NetworkInUsage"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MatricPoint($item)); + } + return $result; + } + + /** + * NetworkInUsage: 入向带宽使用率 + * + * @param MatricPoint[] $networkInUsage + */ + public function setNetworkInUsage(array $networkInUsage) + { + $result = []; + foreach ($networkInUsage as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * NetworkOutSubline: 子线路出口带宽 + * + * @return MatricPoint[]|null + */ + public function getNetworkOutSubline() + { + $items = $this->get("NetworkOutSubline"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MatricPoint($item)); + } + return $result; + } + + /** + * NetworkOutSubline: 子线路出口带宽 + * + * @param MatricPoint[] $networkOutSubline + */ + public function setNetworkOutSubline(array $networkOutSubline) + { + $result = []; + foreach ($networkOutSubline as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * NetworkInSubline: 子线路入口带宽 + * + * @return MatricPoint[]|null + */ + public function getNetworkInSubline() + { + $items = $this->get("NetworkInSubline"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MatricPoint($item)); + } + return $result; + } + + /** + * NetworkInSubline: 子线路入口带宽 + * + * @param MatricPoint[] $networkInSubline + */ + public function setNetworkInSubline(array $networkInSubline) + { + $result = []; + foreach ($networkInSubline as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * Delay: 线路平均延迟 + * + * @return MatricPoint[]|null + */ + public function getDelay() + { + $items = $this->get("Delay"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MatricPoint($item)); + } + return $result; + } + + /** + * Delay: 线路平均延迟 + * + * @param MatricPoint[] $delay + */ + public function setDelay(array $delay) + { + $result = []; + foreach ($delay as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * DelaySubline: 子线路延迟 + * + * @return MatricPoint[]|null + */ + public function getDelaySubline() + { + $items = $this->get("DelaySubline"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MatricPoint($item)); + } + return $result; + } + + /** + * DelaySubline: 子线路延迟 + * + * @param MatricPoint[] $delaySubline + */ + public function setDelaySubline(array $delaySubline) + { + $result = []; + foreach ($delaySubline as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * DelayPromote: 延迟提升 + * + * @return MatricPoint[]|null + */ + public function getDelayPromote() + { + $items = $this->get("DelayPromote"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MatricPoint($item)); + } + return $result; + } + + /** + * DelayPromote: 延迟提升 + * + * @param MatricPoint[] $delayPromote + */ + public function setDelayPromote(array $delayPromote) + { + $result = []; + foreach ($delayPromote as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * DelayPromoteSubline: 子线路延迟提升 + * + * @return MatricPoint[]|null + */ + public function getDelayPromoteSubline() + { + $items = $this->get("DelayPromoteSubline"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MatricPoint($item)); + } + return $result; + } + + /** + * DelayPromoteSubline: 子线路延迟提升 + * + * @param MatricPoint[] $delayPromoteSubline + */ + public function setDelayPromoteSubline(array $delayPromoteSubline) + { + $result = []; + foreach ($delayPromoteSubline as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * ConnectCount: 当前连接数 + * + * @return MatricPoint[]|null + */ + public function getConnectCount() + { + $items = $this->get("ConnectCount"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MatricPoint($item)); + } + return $result; + } + + /** + * ConnectCount: 当前连接数 + * + * @param MatricPoint[] $connectCount + */ + public function setConnectCount(array $connectCount) + { + $result = []; + foreach ($connectCount as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * ConnectCountSubline: 子线路当前连接数 + * + * @return MatricPoint[]|null + */ + public function getConnectCountSubline() + { + $items = $this->get("ConnectCountSubline"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MatricPoint($item)); + } + return $result; + } + + /** + * ConnectCountSubline: 子线路当前连接数 + * + * @param MatricPoint[] $connectCountSubline + */ + public function setConnectCountSubline(array $connectCountSubline) + { + $result = []; + foreach ($connectCountSubline as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/PathX/Models/UGA3Price.php b/src/PathX/Models/UGA3Price.php new file mode 100644 index 00000000..ffcf70da --- /dev/null +++ b/src/PathX/Models/UGA3Price.php @@ -0,0 +1,104 @@ +get("AccelerationArea"); + } + + /** + * AccelerationArea: 加速大区代码 + * + * @param string $accelerationArea + */ + public function setAccelerationArea($accelerationArea) + { + $this->set("AccelerationArea", $accelerationArea); + } + + /** + * AccelerationAreaName: 加速大区名称 + * + * @return string|null + */ + public function getAccelerationAreaName() + { + return $this->get("AccelerationAreaName"); + } + + /** + * AccelerationAreaName: 加速大区名称 + * + * @param string $accelerationAreaName + */ + public function setAccelerationAreaName($accelerationAreaName) + { + $this->set("AccelerationAreaName", $accelerationAreaName); + } + + /** + * AccelerationForwarderPrice: 转发配置价格 + * + * @return float|null + */ + public function getAccelerationForwarderPrice() + { + return $this->get("AccelerationForwarderPrice"); + } + + /** + * AccelerationForwarderPrice: 转发配置价格 + * + * @param float $accelerationForwarderPrice + */ + public function setAccelerationForwarderPrice($accelerationForwarderPrice) + { + $this->set("AccelerationForwarderPrice", $accelerationForwarderPrice); + } + + /** + * AccelerationBandwidthPrice: 加速配置带宽价格 + * + * @return float|null + */ + public function getAccelerationBandwidthPrice() + { + return $this->get("AccelerationBandwidthPrice"); + } + + /** + * AccelerationBandwidthPrice: 加速配置带宽价格 + * + * @param float $accelerationBandwidthPrice + */ + public function setAccelerationBandwidthPrice($accelerationBandwidthPrice) + { + $this->set("AccelerationBandwidthPrice", $accelerationBandwidthPrice); + } +} diff --git a/src/PathX/Models/UGAAInfo.php b/src/PathX/Models/UGAAInfo.php index 5cca88e7..eff13b30 100644 --- a/src/PathX/Models/UGAAInfo.php +++ b/src/PathX/Models/UGAAInfo.php @@ -1,6 +1,6 @@ toArray(), $resp->getRequestId()); } + /** + * CreateUGA3Instance - 创建全球统一接入加速配置项 + * + * See also: https://docs.ucloud.cn/api/pathx-api/create_uga3_instance + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Bandwidth" => (integer) 实例的共享带宽大小,单位Mbps + * "Name" => (string) 加速配置实例名称,默认PathX + * "AreaCode" => (string) 非必填,如果不填,会根据Domain 和IPList 去选一个最近的源站区域BKK表示AreaCode;曼谷表示Area["BKK":"曼谷","DXB":"迪拜","FRA":"法兰克福","SGN":"胡志明市","HKG":"香港",CGK":"雅加达","LOS":"拉各斯","LHR":"伦敦","LAX":"洛杉矶","MNL":"马尼拉","DME":"莫斯科","BOM":"孟买","MSP":"圣保罗","ICN":"首尔","PVG":"上海","SIN":"新加坡","NRT":"东京","IAD":"华盛顿","TPE": "台北"] + * "Remark" => (string) 备注项 + * "ChargeType" => (string) 支付方式,如按月、按年、按时[Year,Month,Dynamic] + * "Quantity" => (integer) 购买周期 + * "AccelerationArea" => (string) 加速大区,默认Global,[ "Global":"全球", "AP":"亚太", "EU":"欧洲", "ME":"中东", "OA":"大洋洲", "AF":"非洲", "NA":"北美洲", "SA":"南美洲"] + * "OriginIPList" => (string) 加速源IP,多个IP用英文半角逗号(,)隔开;IPList和Domain二选一必填 + * "OriginDomain" => (string) 加速源域名,IPList和Domain二选一必填 + * "CouponId" => (string) 使用代金券可冲抵部分费用,仅全地域可用的代金券 + * ] + * + * Outputs: + * + * $outputs = [ + * "InstanceId" => (string) 加速配置ID + * "CName" => (string) 加速域名 用户可把业务域名CName到此域名上 + * ] + * + * @return CreateUGA3InstanceResponse + * @throws UCloudException + */ + public function createUGA3Instance(CreateUGA3InstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateUGA3InstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateUGA3Port - 创建统一接入加速实例端口,目前仅支持四层TCP端口 + * + * See also: https://docs.ucloud.cn/api/pathx-api/create_uga3_port + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 加速配置实例ID + * "TCP" => (array) TCP接入端口,禁用65123端口 + * "TCPRS" => (array) TCP回源端口 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return CreateUGA3PortResponse + * @throws UCloudException + */ + public function createUGA3Port(CreateUGA3PortRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateUGA3PortResponse($resp->toArray(), $resp->getRequestId()); + } + /** * CreateUGAForwarder - 创建加速实例转发器,支持HTTPS接入HTTPS回源、HTTPS接入HTTP回源、HTTP接入HTTP回源、TCP接入TCP回源、UDP接入UDP回源、 支持WSS接入WSS回源、WSS接入WS回源、WS接入WS回源 * @@ -261,20 +356,21 @@ public function createUGAInstance(CreateUGAInstanceRequest $request = null) * Arguments: * * $args = [ - * "ProjectId" => (string) 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) - * "Name" => (string) UPath名字 - * "LineId" => (string) 选择的线路 - * "Bandwidth" => (integer) 线路带宽,最小1Mbps,最大带宽由 DescribePathXLineConfig 接口获得。如需更大带宽,请联系产品团队。 + * "ProjectId" => (string) 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Name" => (string) 名字,便于记忆区分 + * "LineId" => (string) 选择的线路,由DescribePathXLineConfig接口提供 + * "Bandwidth" => (integer) 当PostPaid为false时,该值为预付费固定带宽;当PostPaid为true时,该值为后付费保底带宽,保底带宽越大可用的上限带宽越大。最小1Mbps,最大带宽由 DescribePathXLineConfig 接口获得。可联系产品团队咨询最大带宽。 * "ChargeType" => (string) 计费模式,默认为Month 按月收费,可选范围['Month','Year','Dynamic'] * "Quantity" => (integer) 购买周期,ChargeType为Month时,Quantity默认为0代表购买到月底,按时和按年付费该参数必须大于0 - * "PostPaid" => (boolean) 是否开启后付费, 默认为false + * "PostPaid" => (boolean) 是否开启后付费, 默认为false ,不开启后付费。当ChargeType为Dynamic时不能开启后付费。 + * "PathType" => (string) private:专线线路;public:海外SD-WAN。默认为private。 * "CouponId" => (string) 代金券Id * ] * * Outputs: * * $outputs = [ - * "UPathId" => (string) 加速线路实例Id + * "PathId" => (string) 加速线路实例Id * ] * * @return CreateUPathResponse @@ -338,6 +434,59 @@ public function deletePathXSSL(DeletePathXSSLRequest $request = null) return new DeletePathXSSLResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DeleteUGA3Instance - 删除全球统一接入转发实例 + * + * See also: https://docs.ucloud.cn/api/pathx-api/delete_uga3_instance + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 实例Id,资源的唯一标识 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteUGA3InstanceResponse + * @throws UCloudException + */ + public function deleteUGA3Instance(DeleteUGA3InstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteUGA3InstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DeleteUGA3Port - 删除统一接入加速实例转发器 按接入端口删除 + * + * See also: https://docs.ucloud.cn/api/pathx-api/delete_uga3_port + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 加速配置实例ID + * "TCP" => (array) TCP接入端口 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteUGA3PortResponse + * @throws UCloudException + */ + public function deleteUGA3Port(DeleteUGA3PortRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteUGA3PortResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DeleteUGAForwarder - 删除加速实例转发器 按接入端口删除 * @@ -560,6 +709,165 @@ public function describePathXSSL(DescribePathXSSLRequest $request = null) return new DescribePathXSSLResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeUGA3Area - 获取全球接入源站可选列表 + * + * See also: https://docs.ucloud.cn/api/pathx-api/describe_uga3_area + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "IPList" => (string) IP集合,非必填。如果填IP或者域名,会推荐一个地域在返回列表的第一个,源站IP集合,以逗号分隔[127.0.0.1,127.0.0.2] + * "Domain" => (string) 域名,非必填。如果填IP或者域名,会推荐一个地域在返回列表的第一个 + * ] + * + * Outputs: + * + * $outputs = [ + * "AreaSet" => (array) 支持源站的地区,比如:AreaSet[{ "Area": "首尔", "AreaCode": "ICN", "CountryCode": "CN", "ContinentCode": "CN" }]ContinentCode:["CN","NA","OT"];"CN":表示国内,"NA":表示美洲,“OT":表示欧洲等其他地区[ + * [ + * "AreaCode" => (string) 源站区域代码 + * "Area" => (string) 源站区域中文 + * "CountryCode" => (string) 国家代码 + * "FlagUnicode" => (string) 国旗unicode + * "FlagEmoji" => (string) 国旗 emoji + * "ContinentCode" => (string) 大陆代码 + * ] + * ] + * ] + * + * @return DescribeUGA3AreaResponse + * @throws UCloudException + */ + public function describeUGA3Area(DescribeUGA3AreaRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUGA3AreaResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeUGA3Instance - 获取全球统一接入加速服务加速配置信息,指定实例ID返回单个实例。未指定实例ID时 指定分页参数 则按创建时间降序 返回记录 + * + * See also: https://docs.ucloud.cn/api/pathx-api/describe_uga3_instance + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 加速配置实例ID,如果传了实例ID 则返回匹配实例ID的记录;如果没传则返回 ProjectId 下全部实例且符合分页要求 + * "Limit" => (integer) 返回的最大条数,默认为100,最大值400 + * "Offset" => (integer) 偏移量,默认为0 + * ] + * + * Outputs: + * + * $outputs = [ + * "ForwardInstanceInfos" => (array) 全球加速实例信息列表[ + * [ + * "InstanceId" => (string) 加速配置ID + * "CName" => (string) 加速域名 + * "Name" => (string) 加速实例名称 + * "AccelerationArea" => (string) 加速大区代码 + * "AccelerationAreaName" => (string) 加速大区名称 + * "AccelerationAreaInfos" => (array) 加速节点列表[ + * [ + * "AccelerationArea" => (string) 加速区code + * "AccelerationNodes" => (array) 加速节点信息[ + * [ + * "AreaCode" => (string) AreaCode ,城市机场代码 + * "Area" => (string) AreaCode对应城市名 + * "FlagEmoji" => (string) 国旗Emoji + * "FlagUnicode" => (string) 国旗Unicode + * ] + * ] + * ] + * ] + * "EgressIpList" => (array) 回源出口IP地址[ + * [ + * "IP" => (string) 线路回源节点EIP + * "Area" => (string) 线路回源节点机房代号 + * ] + * ] + * "Bandwidth" => (integer) 购买的带宽值 + * "OriginArea" => (string) 源站中文名 + * "OriginAreaCode" => (string) 源站AreaCode + * "CreateTime" => (integer) 资源创建时间 + * "ExpireTime" => (integer) 资源过期时间 + * "ChargeType" => (string) 计费方式 + * "Remark" => (string) 备注 + * "PortSets" => (array) 端口列表[ + * [ + * "Protocol" => (string) 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS","WSWS","WSSWS","WSSWSS"]。TCP和UDP代表四层转发,其余为七层转发。 + * "RSPort" => (integer) 源站服务器监听的端口号 + * "Port" => (integer) 加速端口 + * ] + * ] + * "IPList" => (array) 源站IP列表,多个值由半角英文逗号相隔 + * "Domain" => (string) 源站域名 + * ] + * ] + * "TotalCount" => (integer) 符合条件的总数 + * ] + * + * @return DescribeUGA3InstanceResponse + * @throws UCloudException + */ + public function describeUGA3Instance(DescribeUGA3InstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUGA3InstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeUGA3Optimization - 获取全球接入UGA3线路加速化情况 + * + * See also: https://docs.ucloud.cn/api/pathx-api/describe_uga3_optimization + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "AreaCode" => (string) 源站AreaCode + * "TimeRange" => (string) 默认一天 ,枚举类型["Hour","Day","Week"] + * "AccelerationArea" => (string) 加速大区,默认Global,[ "Global":"全球", "AP":"亚太", "EU":"欧洲", "ME":"中东", "OA":"大洋洲", "AF":"非洲", "NA":"北美洲", "SA":"南美洲"] + * ] + * + * Outputs: + * + * $outputs = [ + * "AccelerationInfos" => (array) 加速详情[ + * [ + * "AccelerationArea" => (string) 加速大区代码 + * "AccelerationName" => (string) 加速大区名称 + * "NodeInfo" => (array) 加速提升情况[ + * [ + * "Area" => (string) 加速区域 + * "AreaCode" => (string) 加速区域Code + * "CountryCode" => (string) 国家代码 + * "FlagUnicode" => (string) 国旗Code + * "FlagEmoji" => (string) 国旗Emoji + * "Latency" => (number) 加速延迟 + * "LatencyInternet" => (number) 公网延迟 + * "LatencyOptimization" => (number) 加速提升比例 + * "Loss" => (number) 加速后丢包率 + * "LossInternet" => (number) 原始丢包率 + * "LossOptimization" => (number) 丢包下降比例 + * ] + * ] + * ] + * ] + * ] + * + * @return DescribeUGA3OptimizationResponse + * @throws UCloudException + */ + public function describeUGA3Optimization(DescribeUGA3OptimizationRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUGA3OptimizationResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeUGAInstance - 获取全球加速服务加速配置信息,指定实例ID返回单个实例。未指定实例ID时 指定分页参数 则按创建时间降序 返回记录 * @@ -621,8 +929,8 @@ public function describePathXSSL(DescribePathXSSLRequest $request = null) * ] * "OutPublicIpList" => (array) 线路出口IP地址[ * [ - * "IP" => (string) 线路出口EIP - * "Area" => (string) 线路出口机房代号 + * "IP" => (string) 线路回源节点EIP + * "Area" => (string) 线路回源节点机房代号 * ] * ] * ] @@ -675,8 +983,8 @@ public function describeUGAInstance(DescribeUGAInstanceRequest $request = null) * "LineToName" => (string) 线路出口名称 * "OutPublicIpList" => (array) 线路出口IP数组[ * [ - * "IP" => (string) 线路出口EIP - * "Area" => (string) 线路出口机房代号 + * "IP" => (string) 线路回源节点EIP + * "Area" => (string) 线路回源节点机房代号 * ] * ] * ] @@ -847,6 +1155,179 @@ public function getPathXMetric(GetPathXMetricRequest $request = null) return new GetPathXMetricResponse($resp->toArray(), $resp->getRequestId()); } + /** + * GetUGA3Metric - 获取全地域加速监控信息 + * + * See also: https://docs.ucloud.cn/api/pathx-api/get_uga3_metric + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 资源ID + * "BeginTime" => (integer) 查询起始时间,10位长度时间戳 + * "EndTime" => (integer) 查询结束时间,10位长度时间戳 + * "MetricName" => (array) 查询监控的指标项。可不传 NetworkOut:出口总带宽 NetworkIn:入口总带宽 NetworkOutUsage:出口带宽使用率 NetworkInUsage:入口总带宽使用率 NetworkOutSubline :子线路出口带宽 NetworkInSubline:子线路入口带宽 Delay:线路平均延迟 DelaySubline:子线路延迟 ConnectCount:当前连接数 ConnectCountSubline:子线路当前连接数 DelayPromote:延迟提升 DelayPromoteSubline:子线路延迟提升 + * "IsSubline" => (boolean) 是否为子线路。为了简化查询,true 会返回所有子线路监控项可以,false:返回所有汇总的监控数据 + * "AreaCode" => (string) 子线路AreaCode ,子线路的时候传,不是子线路可以不传 + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (object) 监控数据结果集[ + * "NetworkOut" => (array) 出向带宽[ + * [ + * "Timestamp" => (integer) 时间戳 + * "Value" => (integer) 监控点数值 + * ] + * ] + * "NetworkIn" => (array) 入向带宽[ + * [ + * "Timestamp" => (integer) 时间戳 + * "Value" => (integer) 监控点数值 + * ] + * ] + * "NetworkOutUsage" => (array) 出向带宽使用率[ + * [ + * "Timestamp" => (integer) 时间戳 + * "Value" => (integer) 监控点数值 + * ] + * ] + * "NetworkInUsage" => (array) 入向带宽使用率[ + * [ + * "Timestamp" => (integer) 时间戳 + * "Value" => (integer) 监控点数值 + * ] + * ] + * "NetworkOutSubline" => (array) 子线路出口带宽[ + * [ + * "Timestamp" => (integer) 时间戳 + * "Value" => (integer) 监控点数值 + * ] + * ] + * "NetworkInSubline" => (array) 子线路入口带宽[ + * [ + * "Timestamp" => (integer) 时间戳 + * "Value" => (integer) 监控点数值 + * ] + * ] + * "Delay" => (array) 线路平均延迟[ + * [ + * "Timestamp" => (integer) 时间戳 + * "Value" => (integer) 监控点数值 + * ] + * ] + * "DelaySubline" => (array) 子线路延迟[ + * [ + * "Timestamp" => (integer) 时间戳 + * "Value" => (integer) 监控点数值 + * ] + * ] + * "DelayPromote" => (array) 延迟提升[ + * [ + * "Timestamp" => (integer) 时间戳 + * "Value" => (integer) 监控点数值 + * ] + * ] + * "DelayPromoteSubline" => (array) 子线路延迟提升[ + * [ + * "Timestamp" => (integer) 时间戳 + * "Value" => (integer) 监控点数值 + * ] + * ] + * "ConnectCount" => (array) 当前连接数[ + * [ + * "Timestamp" => (integer) 时间戳 + * "Value" => (integer) 监控点数值 + * ] + * ] + * "ConnectCountSubline" => (array) 子线路当前连接数[ + * [ + * "Timestamp" => (integer) 时间戳 + * "Value" => (integer) 监控点数值 + * ] + * ] + * ] + * ] + * + * @return GetUGA3MetricResponse + * @throws UCloudException + */ + public function getUGA3Metric(GetUGA3MetricRequest $request = null) + { + $resp = $this->invoke($request); + return new GetUGA3MetricResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetUGA3Price - 获取全球统一接入转发实例价格 + * + * See also: https://docs.ucloud.cn/api/pathx-api/get_uga3_price + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Bandwidth" => (integer) 共享带宽大小 + * "AreaCode" => (string) 源站区域 + * "Quantity" => (integer) 购买时间数量,当ChargeType为Month时 Quantity默认为0,代表购买至月底。按年按小时必须为大于0 + * "ChargeType" => (string) 计费方式,默认按月支付。Month: 按月; Year: 按年; Dynamic: 按小时收 + * "AccelerationArea" => (string) 加速大区,默认返回所有加速大区价格 + * ] + * + * Outputs: + * + * $outputs = [ + * "UGA3Price" => (array) 加速大区对应价格[ + * [ + * "AccelerationArea" => (string) 加速大区代码 + * "AccelerationAreaName" => (string) 加速大区名称 + * "AccelerationForwarderPrice" => (number) 转发配置价格 + * "AccelerationBandwidthPrice" => (number) 加速配置带宽价格 + * ] + * ] + * ] + * + * @return GetUGA3PriceResponse + * @throws UCloudException + */ + public function getUGA3Price(GetUGA3PriceRequest $request = null) + { + $resp = $this->invoke($request); + return new GetUGA3PriceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetUGA3UpdatePrice - 全球统一接入获取实例更新价格(增加、删退) + * + * See also: https://docs.ucloud.cn/api/pathx-api/get_uga3_update_price + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 资源ID + * "Bandwidth" => (integer) 只有升级带宽的时候有价格变化 + * "AccelerationArea" => (string) 暂未支持,加速大区,在更换加速大区的时候使用 + * "AreaCode" => (string) 暂未支持,源站区域 + * ] + * + * Outputs: + * + * $outputs = [ + * "Price" => (number) 价格 元。大于0需付费,小于0则退费。 + * ] + * + * @return GetUGA3UpdatePriceResponse + * @throws UCloudException + */ + public function getUGA3UpdatePrice(GetUGA3UpdatePriceRequest $request = null) + { + $resp = $this->invoke($request); + return new GetUGA3UpdatePriceResponse($resp->toArray(), $resp->getRequestId()); + } + /** * ModifyGlobalSSHPort - 修改GlobalSSH端口 * @@ -874,6 +1355,33 @@ public function modifyGlobalSSHPort(ModifyGlobalSSHPortRequest $request = null) return new ModifyGlobalSSHPortResponse($resp->toArray(), $resp->getRequestId()); } + /** + * ModifyGlobalSSHRemark - 修改GlobalSSH备注 + * + * See also: https://docs.ucloud.cn/api/pathx-api/modify_global_ssh_remark + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 实例ID,资源唯一标识 + * "Remark" => (string) 备注信息,不填默认为空字符串 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ModifyGlobalSSHRemarkResponse + * @throws UCloudException + */ + public function modifyGlobalSSHRemark(ModifyGlobalSSHRemarkRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyGlobalSSHRemarkResponse($resp->toArray(), $resp->getRequestId()); + } + /** * ModifyGlobalSSHType - 修改GlobalSSH实例类型,仅支持低版本升级到高版本,不支持高版本降级到低版本 * @@ -904,6 +1412,118 @@ public function modifyGlobalSSHType(ModifyGlobalSSHTypeRequest $request = null) return new ModifyGlobalSSHTypeResponse($resp->toArray(), $resp->getRequestId()); } + /** + * ModifyUGA3Bandwidth - 修改统一接入加速配置带宽 + * + * See also: https://docs.ucloud.cn/api/pathx-api/modify_uga3_bandwidth + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 加速配置实例ID,格式uga3-xxxx + * "Bandwidth" => (integer) 带宽大小,范围[1,100],不传则不更新 + * "CouponId" => (string) 需要全地域可用的代金券 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ModifyUGA3BandwidthResponse + * @throws UCloudException + */ + public function modifyUGA3Bandwidth(ModifyUGA3BandwidthRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyUGA3BandwidthResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ModifyUGA3Instance - 修改统一接入加速配置属性,如Name,ReMark + * + * See also: https://docs.ucloud.cn/api/pathx-api/modify_uga3_instance + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 加速配置实例ID,格式uga-xxxx。不支持GlobalSSH实例。 + * "Name" => (string) 加速配置实例名称,不填或空字符串则不更新 + * "Remark" => (string) 备注信息,暂时前端为使用 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ModifyUGA3InstanceResponse + * @throws UCloudException + */ + public function modifyUGA3Instance(ModifyUGA3InstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyUGA3InstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ModifyUGA3OriginInfo - Domain, IPList注意:修改Domain或IPList时, 请确保源站服务端口已经开启且外网防火墙允许pathx出口ip访问。 + * + * See also: https://docs.ucloud.cn/api/pathx-api/modify_uga3_origin_info + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 加速配置实例ID,格式uga3-xxxx。 + * "OriginDomain" => (string) 加速源域名,仅支持1个域名。修改源站时 OriginIPList和OriginDomain至少填一个。OriginIPList和OriginDomain都填时 以Domain为准,如果两个都不填,不修改 + * "OriginIPList" => (string) ,加速源IP,多个IP用英文半角逗号(,)隔开。修改源站时 ,OriginIPList和OriginDomain至少填一个。OriginIPList和OriginDomain都填时 以OriginDomain为准。如果两个都不填,不修改 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ModifyUGA3OriginInfoResponse + * @throws UCloudException + */ + public function modifyUGA3OriginInfo(ModifyUGA3OriginInfoRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyUGA3OriginInfoResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ModifyUGA3Port - 修改统一接入加速实例端口,目前仅支持四层TCP端口 + * + * See also: https://docs.ucloud.cn/api/pathx-api/modify_uga3_port + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 加速配置实例ID + * "TCP" => (array) TCP接入端口,禁用65123端口 + * "TCPRS" => (array) TCP回源端口 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ModifyUGA3PortResponse + * @throws UCloudException + */ + public function modifyUGA3Port(ModifyUGA3PortRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyUGA3PortResponse($resp->toArray(), $resp->getRequestId()); + } + /** * ModifyUPathBandwidth - 修改加速线路带宽 * diff --git a/src/UAccount/Apis/AddMemberToProjectRequest.php b/src/UAccount/Apis/AddMemberToProjectRequest.php index 274b6566..734bf508 100644 --- a/src/UAccount/Apis/AddMemberToProjectRequest.php +++ b/src/UAccount/Apis/AddMemberToProjectRequest.php @@ -1,6 +1,6 @@ "GetBillDataFileUrl"]); - $this->markRequired("BillPeriod"); $this->markRequired("BillType"); + $this->markRequired("BillingCycle"); } /** - * BillPeriod: 账期(时间戳格式) + * BillType: 账单类型,传 0 时获取账单总览报表,传 1 获取账单明细报表 * * @return integer|null */ - public function getBillPeriod() + public function getBillType() { - return $this->get("BillPeriod"); + return $this->get("BillType"); } /** - * BillPeriod: 账期(时间戳格式) + * BillType: 账单类型,传 0 时获取账单总览报表,传 1 获取账单明细报表 * - * @param int $billPeriod + * @param int $billType */ - public function setBillPeriod($billPeriod) + public function setBillType($billType) { - $this->set("BillPeriod", $billPeriod); + $this->set("BillType", $billType); } /** - * BillType: 账单类型,传 0 时获取账单总览报表,传 1 获取账单明细报表 + * BillingCycle: 账期(字符串格式,YYYY-MM,例如2021-08). 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先 + * + * @return string|null + */ + public function getBillingCycle() + { + return $this->get("BillingCycle"); + } + + /** + * BillingCycle: 账期(字符串格式,YYYY-MM,例如2021-08). 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先 + * + * @param string $billingCycle + */ + public function setBillingCycle($billingCycle) + { + $this->set("BillingCycle", $billingCycle); + } + + /** + * BillPeriod: 此字段不推荐使用,建议使用BillingCycle. 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先 * * @return integer|null */ - public function getBillType() + public function getBillPeriod() { - return $this->get("BillType"); + return $this->get("BillPeriod"); } /** - * BillType: 账单类型,传 0 时获取账单总览报表,传 1 获取账单明细报表 + * BillPeriod: 此字段不推荐使用,建议使用BillingCycle. 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先 * - * @param int $billType + * @param int $billPeriod */ - public function setBillType($billType) + public function setBillPeriod($billPeriod) { - $this->set("BillType", $billType); + $this->set("BillPeriod", $billPeriod); } /** @@ -108,4 +128,24 @@ public function setRequireVersion($requireVersion) { $this->set("RequireVersion", $requireVersion); } + + /** + * Version: 文件版本,若为"v1"表示获取带有子用户信息的账单,可以为空 + * + * @return string|null + */ + public function getVersion() + { + return $this->get("Version"); + } + + /** + * Version: 文件版本,若为"v1"表示获取带有子用户信息的账单,可以为空 + * + * @param string $version + */ + public function setVersion($version) + { + $this->set("Version", $version); + } } diff --git a/src/UBill/Apis/GetBillDataFileUrlResponse.php b/src/UBill/Apis/GetBillDataFileUrlResponse.php index 4abc9f33..7a557aab 100644 --- a/src/UBill/Apis/GetBillDataFileUrlResponse.php +++ b/src/UBill/Apis/GetBillDataFileUrlResponse.php @@ -1,6 +1,6 @@ "ListUBillDetail"]); + $this->markRequired("BillingCycle"); + } + + + + /** + * BillingCycle: 账期,YYYY-MM,比如2021-08,只支持2018-05之后的查询 + * + * @return string|null + */ + public function getBillingCycle() + { + return $this->get("BillingCycle"); + } + + /** + * BillingCycle: 账期,YYYY-MM,比如2021-08,只支持2018-05之后的查询 + * + * @param string $billingCycle + */ + public function setBillingCycle($billingCycle) + { + $this->set("BillingCycle", $billingCycle); + } + + /** + * ProjectName: 项目名称 (筛选项, 默认全部) + * + * @return string|null + */ + public function getProjectName() + { + return $this->get("ProjectName"); + } + + /** + * ProjectName: 项目名称 (筛选项, 默认全部) + * + * @param string $projectName + */ + public function setProjectName($projectName) + { + $this->set("ProjectName", $projectName); + } + + /** + * ResourceIds: 资源ID(筛选项, 默认全部) 支持多筛选,多筛选请在请求参数中添加多个字段例ResourceIds.0: uhost-bzgf1gh5,ResourceIds.1: uhost-gu1xpspa, + * + * @return string[]|null + */ + public function getResourceIds() + { + return $this->get("ResourceIds"); + } + + /** + * ResourceIds: 资源ID(筛选项, 默认全部) 支持多筛选,多筛选请在请求参数中添加多个字段例ResourceIds.0: uhost-bzgf1gh5,ResourceIds.1: uhost-gu1xpspa, + * + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds) + { + $this->set("ResourceIds", $resourceIds); + } + + /** + * OrderType: 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_REFUND:退费 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_PAYMENT:删除资源回款 \\ > OT_POSTPAID_PAYMENT:后付费回款 \\ > OT_RECOVER:删除恢复 \\ > OT_POSTPAID_RENEW:过期续费回款 + * + * @return string|null + */ + public function getOrderType() + { + return $this->get("OrderType"); + } + + /** + * OrderType: 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_REFUND:退费 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_PAYMENT:删除资源回款 \\ > OT_POSTPAID_PAYMENT:后付费回款 \\ > OT_RECOVER:删除恢复 \\ > OT_POSTPAID_RENEW:过期续费回款 + * + * @param string $orderType + */ + public function setOrderType($orderType) + { + $this->set("OrderType", $orderType); + } + + /** + * ChargeType: 计费方式 (筛选项, 默认全部)。枚举值:\\ > Dynamic:按时 \\ > Month:按月 \\ > Year:按年 \\ > Once:一次性按量 \\ > Used:按量 \\ > Post:后付费 + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费方式 (筛选项, 默认全部)。枚举值:\\ > Dynamic:按时 \\ > Month:按月 \\ > Year:按年 \\ > Once:一次性按量 \\ > Used:按量 \\ > Post:后付费 + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * ShowZero: 是否显示0元订单 (0 不显示, 1 显示, 默认0) + * + * @return integer|null + */ + public function getShowZero() + { + return $this->get("ShowZero"); + } + + /** + * ShowZero: 是否显示0元订单 (0 不显示, 1 显示, 默认0) + * + * @param int $showZero + */ + public function setShowZero($showZero) + { + $this->set("ShowZero", $showZero); + } + + /** + * PaidState: 支付状态 (筛选项, 1:仅显示未支付订单; 2:仅显示已支付订单; 0:两者都显示) + * + * @return integer|null + */ + public function getPaidState() + { + return $this->get("PaidState"); + } + + /** + * PaidState: 支付状态 (筛选项, 1:仅显示未支付订单; 2:仅显示已支付订单; 0:两者都显示) + * + * @param int $paidState + */ + public function setPaidState($paidState) + { + $this->set("PaidState", $paidState); + } + + /** + * UserEmail: 用户邮箱,可以根据用户邮箱来进行筛选 + * + * @return string|null + */ + public function getUserEmail() + { + return $this->get("UserEmail"); + } + + /** + * UserEmail: 用户邮箱,可以根据用户邮箱来进行筛选 + * + * @param string $userEmail + */ + public function setUserEmail($userEmail) + { + $this->set("UserEmail", $userEmail); + } + + /** + * Limit: 每页数量,默认值25,最大值:100。 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 每页数量,默认值25,最大值:100。 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } + + /** + * Offset: 数据偏移量 (默认0) + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 数据偏移量 (默认0) + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * ResourceTypes: 产品类型 (筛选项, 默认全部),支持多筛选,多筛选请在请求参数中添加多个字段。枚举值:\\ > uhost:云主机 \\ > udisk:普通云硬盘 \\ > udb:云数据库 \\ > eip:弹性IP \\ > ufile:对象存储 \\ > fortress_host:堡垒机 \\ > ufs:文件存储 \\ > waf:WEB应用防火墙 \\ > ues:弹性搜索 \\ > udisk_ssd:SSD云硬盘 \\ > rssd:RSSD云硬盘 + * + * @return string[]|null + */ + public function getResourceTypes() + { + return $this->get("ResourceTypes"); + } + + /** + * ResourceTypes: 产品类型 (筛选项, 默认全部),支持多筛选,多筛选请在请求参数中添加多个字段。枚举值:\\ > uhost:云主机 \\ > udisk:普通云硬盘 \\ > udb:云数据库 \\ > eip:弹性IP \\ > ufile:对象存储 \\ > fortress_host:堡垒机 \\ > ufs:文件存储 \\ > waf:WEB应用防火墙 \\ > ues:弹性搜索 \\ > udisk_ssd:SSD云硬盘 \\ > rssd:RSSD云硬盘 + * + * @param string[] $resourceTypes + */ + public function setResourceTypes(array $resourceTypes) + { + $this->set("ResourceTypes", $resourceTypes); + } +} diff --git a/src/UBill/Apis/ListUBillDetailResponse.php b/src/UBill/Apis/ListUBillDetailResponse.php new file mode 100644 index 00000000..204faff2 --- /dev/null +++ b/src/UBill/Apis/ListUBillDetailResponse.php @@ -0,0 +1,79 @@ +get("Items"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new BillDetailItem($item)); + } + return $result; + } + + /** + * Items: 账单明细数组 + * + * @param BillDetailItem[] $items + */ + public function setItems(array $items) + { + $result = []; + foreach ($items as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * TotalCount: 账单明细总长度 + * + * @return integer|null + */ + public function getTotalCount() + { + return $this->get("TotalCount"); + } + + /** + * TotalCount: 账单明细总长度 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } +} diff --git a/src/UBill/Apis/ListUBillOverviewRequest.php b/src/UBill/Apis/ListUBillOverviewRequest.php new file mode 100644 index 00000000..3e086a12 --- /dev/null +++ b/src/UBill/Apis/ListUBillOverviewRequest.php @@ -0,0 +1,91 @@ + "ListUBillOverview"]); + $this->markRequired("BillingCycle"); + $this->markRequired("Dimension"); + } + + + + /** + * BillingCycle: 账期,YYYY-MM格式,例如2022-02,只支持2018-05之后的查询 + * + * @return string|null + */ + public function getBillingCycle() + { + return $this->get("BillingCycle"); + } + + /** + * BillingCycle: 账期,YYYY-MM格式,例如2022-02,只支持2018-05之后的查询 + * + * @param string $billingCycle + */ + public function setBillingCycle($billingCycle) + { + $this->set("BillingCycle", $billingCycle); + } + + /** + * Dimension: 账单维度, product 按产品聚合,project 按项目聚合,user 按子账号聚合 + * + * @return string|null + */ + public function getDimension() + { + return $this->get("Dimension"); + } + + /** + * Dimension: 账单维度, product 按产品聚合,project 按项目聚合,user 按子账号聚合 + * + * @param string $dimension + */ + public function setDimension($dimension) + { + $this->set("Dimension", $dimension); + } + + /** + * HideUnpaid: 是否显示已入账账单, 1 已入账, 0 待入账 (默认0 ) + * + * @return integer|null + */ + public function getHideUnpaid() + { + return $this->get("HideUnpaid"); + } + + /** + * HideUnpaid: 是否显示已入账账单, 1 已入账, 0 待入账 (默认0 ) + * + * @param int $hideUnpaid + */ + public function setHideUnpaid($hideUnpaid) + { + $this->set("HideUnpaid", $hideUnpaid); + } +} diff --git a/src/UBill/Apis/ListUBillOverviewResponse.php b/src/UBill/Apis/ListUBillOverviewResponse.php new file mode 100644 index 00000000..147271bd --- /dev/null +++ b/src/UBill/Apis/ListUBillOverviewResponse.php @@ -0,0 +1,137 @@ +get("TotalCount"); + } + + /** + * TotalCount: 账单总览数据总数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } + + /** + * TotalPaidAmount: 已入账订单总额(已入账时显示) + * + * @return string|null + */ + public function getTotalPaidAmount() + { + return $this->get("TotalPaidAmount"); + } + + /** + * TotalPaidAmount: 已入账订单总额(已入账时显示) + * + * @param string $totalPaidAmount + */ + public function setTotalPaidAmount($totalPaidAmount) + { + $this->set("TotalPaidAmount", $totalPaidAmount); + } + + /** + * TotalPaidAmountReal: 现金账户扣款总额 (已入账时显示) + * + * @return string|null + */ + public function getTotalPaidAmountReal() + { + return $this->get("TotalPaidAmountReal"); + } + + /** + * TotalPaidAmountReal: 现金账户扣款总额 (已入账时显示) + * + * @param string $totalPaidAmountReal + */ + public function setTotalPaidAmountReal($totalPaidAmountReal) + { + $this->set("TotalPaidAmountReal", $totalPaidAmountReal); + } + + /** + * TotalUnpaidAmount: 待入账订单总额(待入账时显示) + * + * @return string|null + */ + public function getTotalUnpaidAmount() + { + return $this->get("TotalUnpaidAmount"); + } + + /** + * TotalUnpaidAmount: 待入账订单总额(待入账时显示) + * + * @param string $totalUnpaidAmount + */ + public function setTotalUnpaidAmount($totalUnpaidAmount) + { + $this->set("TotalUnpaidAmount", $totalUnpaidAmount); + } + + /** + * Items: 账单聚合数据 + * + * @return BillOverviewItem[]|null + */ + public function getItems() + { + $items = $this->get("Items"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new BillOverviewItem($item)); + } + return $result; + } + + /** + * Items: 账单聚合数据 + * + * @param BillOverviewItem[] $items + */ + public function setItems(array $items) + { + $result = []; + foreach ($items as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UBill/Models/AccountInfo.php b/src/UBill/Models/AccountInfo.php index 20729ede..7d42d0fb 100644 --- a/src/UBill/Models/AccountInfo.php +++ b/src/UBill/Models/AccountInfo.php @@ -1,6 +1,6 @@ get("Amount"); + } + + /** + * Amount: 订单总金额 + * + * @param string $amount + */ + public function setAmount($amount) + { + $this->set("Amount", $amount); + } + + /** + * AmountReal: 现金账户支付 + * + * @return string|null + */ + public function getAmountReal() + { + return $this->get("AmountReal"); + } + + /** + * AmountReal: 现金账户支付 + * + * @param string $amountReal + */ + public function setAmountReal($amountReal) + { + $this->set("AmountReal", $amountReal); + } + + /** + * AmountFree: 赠送金额抵扣 + * + * @return string|null + */ + public function getAmountFree() + { + return $this->get("AmountFree"); + } + + /** + * AmountFree: 赠送金额抵扣 + * + * @param string $amountFree + */ + public function setAmountFree($amountFree) + { + $this->set("AmountFree", $amountFree); + } + + /** + * AmountCoupon: 代金券抵扣 + * + * @return string|null + */ + public function getAmountCoupon() + { + return $this->get("AmountCoupon"); + } + + /** + * AmountCoupon: 代金券抵扣 + * + * @param string $amountCoupon + */ + public function setAmountCoupon($amountCoupon) + { + $this->set("AmountCoupon", $amountCoupon); + } + + /** + * AzGroupCName: 可用区 + * + * @return string|null + */ + public function getAzGroupCName() + { + return $this->get("AzGroupCName"); + } + + /** + * AzGroupCName: 可用区 + * + * @param string $azGroupCName + */ + public function setAzGroupCName($azGroupCName) + { + $this->set("AzGroupCName", $azGroupCName); + } + + /** + * ChargeType: 计费方式 (筛选项, 默认全部)。枚举值:\\ > Dynamic:按时 \\ > Month:按月 \\ > Year:按年 \\ > Once:一次性按量 \\ > Used:按量 \\ > Post:后付费 + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费方式 (筛选项, 默认全部)。枚举值:\\ > Dynamic:按时 \\ > Month:按月 \\ > Year:按年 \\ > Once:一次性按量 \\ > Used:按量 \\ > Post:后付费 + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * CreateTime: 创建时间(时间戳) + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间(时间戳) + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * StartTime: 开始时间(时间戳) + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 开始时间(时间戳) + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * OrderNo: 订单号 + * + * @return string|null + */ + public function getOrderNo() + { + return $this->get("OrderNo"); + } + + /** + * OrderNo: 订单号 + * + * @param string $orderNo + */ + public function setOrderNo($orderNo) + { + $this->set("OrderNo", $orderNo); + } + + /** + * OrderType: 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_REFUND:退费 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_PAYMENT:删除资源回款 \\ > OT_POSTPAID_PAYMENT:后付费回款 \\ > OT_RECOVER:删除恢复 \\ > OT_POSTPAID_RENEW:过期续费回款 + * + * @return string|null + */ + public function getOrderType() + { + return $this->get("OrderType"); + } + + /** + * OrderType: 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_REFUND:退费 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_PAYMENT:删除资源回款 \\ > OT_POSTPAID_PAYMENT:后付费回款 \\ > OT_RECOVER:删除恢复 \\ > OT_POSTPAID_RENEW:过期续费回款 + * + * @param string $orderType + */ + public function setOrderType($orderType) + { + $this->set("OrderType", $orderType); + } + + /** + * ProjectName: 项目名称 + * + * @return string|null + */ + public function getProjectName() + { + return $this->get("ProjectName"); + } + + /** + * ProjectName: 项目名称 + * + * @param string $projectName + */ + public function setProjectName($projectName) + { + $this->set("ProjectName", $projectName); + } + + /** + * ResourceId: 资源ID + * + * @return string|null + */ + public function getResourceId() + { + return $this->get("ResourceId"); + } + + /** + * ResourceId: 资源ID + * + * @param string $resourceId + */ + public function setResourceId($resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * ResourceType: 产品类型。枚举值:\\ > uhost:云主机 \\ > udisk:普通云硬盘 \\ > udb:云数据库 \\ > eip:弹性IP \\ > ufile:对象存储 \\ > fortress_host:堡垒机 \\ > ufs:文件存储 \\ > waf:WEB应用防火墙 \\ > ues:弹性搜索 \\ > udisk_ssd:SSD云硬盘 \\ > rssd:RSSD云硬盘 + * + * @return string|null + */ + public function getResourceType() + { + return $this->get("ResourceType"); + } + + /** + * ResourceType: 产品类型。枚举值:\\ > uhost:云主机 \\ > udisk:普通云硬盘 \\ > udb:云数据库 \\ > eip:弹性IP \\ > ufile:对象存储 \\ > fortress_host:堡垒机 \\ > ufs:文件存储 \\ > waf:WEB应用防火墙 \\ > ues:弹性搜索 \\ > udisk_ssd:SSD云硬盘 \\ > rssd:RSSD云硬盘 + * + * @param string $resourceType + */ + public function setResourceType($resourceType) + { + $this->set("ResourceType", $resourceType); + } + + /** + * ResourceTypeCode: 产品类型代码 + * + * @return integer|null + */ + public function getResourceTypeCode() + { + return $this->get("ResourceTypeCode"); + } + + /** + * ResourceTypeCode: 产品类型代码 + * + * @param int $resourceTypeCode + */ + public function setResourceTypeCode($resourceTypeCode) + { + $this->set("ResourceTypeCode", $resourceTypeCode); + } + + /** + * ItemDetails: 产品配置 + * + * @return ItemDetail[]|null + */ + public function getItemDetails() + { + $items = $this->get("ItemDetails"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ItemDetail($item)); + } + return $result; + } + + /** + * ItemDetails: 产品配置 + * + * @param ItemDetail[] $itemDetails + */ + public function setItemDetails(array $itemDetails) + { + $result = []; + foreach ($itemDetails as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * ResourceExtendInfo: 资源标识 + * + * @return ResourceExtendInfo[]|null + */ + public function getResourceExtendInfo() + { + $items = $this->get("ResourceExtendInfo"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ResourceExtendInfo($item)); + } + return $result; + } + + /** + * ResourceExtendInfo: 资源标识 + * + * @param ResourceExtendInfo[] $resourceExtendInfo + */ + public function setResourceExtendInfo(array $resourceExtendInfo) + { + $result = []; + foreach ($resourceExtendInfo as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * ShowHover: 订单支付状态。枚举值:\\> 0:未支付 \\ > 1:已支付 + * + * @return integer|null + */ + public function getShowHover() + { + return $this->get("ShowHover"); + } + + /** + * ShowHover: 订单支付状态。枚举值:\\> 0:未支付 \\ > 1:已支付 + * + * @param int $showHover + */ + public function setShowHover($showHover) + { + $this->set("ShowHover", $showHover); + } + + /** + * UserEmail: 账户邮箱 + * + * @return string|null + */ + public function getUserEmail() + { + return $this->get("UserEmail"); + } + + /** + * UserEmail: 账户邮箱 + * + * @param string $userEmail + */ + public function setUserEmail($userEmail) + { + $this->set("UserEmail", $userEmail); + } + + /** + * UserName: 账户名 + * + * @return string|null + */ + public function getUserName() + { + return $this->get("UserName"); + } + + /** + * UserName: 账户名 + * + * @param string $userName + */ + public function setUserName($userName) + { + $this->set("UserName", $userName); + } + + /** + * UserDisplayName: 账户昵称 + * + * @return string|null + */ + public function getUserDisplayName() + { + return $this->get("UserDisplayName"); + } + + /** + * UserDisplayName: 账户昵称 + * + * @param string $userDisplayName + */ + public function setUserDisplayName($userDisplayName) + { + $this->set("UserDisplayName", $userDisplayName); + } + + /** + * Admin: 是否为主账号。枚举值:\\ > 0:子账号 \\ > 1:主账号 + * + * @return integer|null + */ + public function getAdmin() + { + return $this->get("Admin"); + } + + /** + * Admin: 是否为主账号。枚举值:\\ > 0:子账号 \\ > 1:主账号 + * + * @param int $admin + */ + public function setAdmin($admin) + { + $this->set("Admin", $admin); + } +} diff --git a/src/UBill/Models/BillOverviewItem.php b/src/UBill/Models/BillOverviewItem.php new file mode 100644 index 00000000..e1095f32 --- /dev/null +++ b/src/UBill/Models/BillOverviewItem.php @@ -0,0 +1,284 @@ +get("Dimension"); + } + + /** + * Dimension: 账单维度, product 按产品维度聚合,project 按项目维度聚合,user 按子账号维度聚合 + * + * @param string $dimension + */ + public function setDimension($dimension) + { + $this->set("Dimension", $dimension); + } + + /** + * Amount: 订单总金额 + * + * @return string|null + */ + public function getAmount() + { + return $this->get("Amount"); + } + + /** + * Amount: 订单总金额 + * + * @param string $amount + */ + public function setAmount($amount) + { + $this->set("Amount", $amount); + } + + /** + * AmountCoupon: 代金券抵扣(已入账时显示) + * + * @return string|null + */ + public function getAmountCoupon() + { + return $this->get("AmountCoupon"); + } + + /** + * AmountCoupon: 代金券抵扣(已入账时显示) + * + * @param string $amountCoupon + */ + public function setAmountCoupon($amountCoupon) + { + $this->set("AmountCoupon", $amountCoupon); + } + + /** + * AmountFree: 赠送金额抵扣(已入账时显示) + * + * @return string|null + */ + public function getAmountFree() + { + return $this->get("AmountFree"); + } + + /** + * AmountFree: 赠送金额抵扣(已入账时显示) + * + * @param string $amountFree + */ + public function setAmountFree($amountFree) + { + $this->set("AmountFree", $amountFree); + } + + /** + * AmountReal: 现金账户支付(已入账时显示) + * + * @return string|null + */ + public function getAmountReal() + { + return $this->get("AmountReal"); + } + + /** + * AmountReal: 现金账户支付(已入账时显示) + * + * @param string $amountReal + */ + public function setAmountReal($amountReal) + { + $this->set("AmountReal", $amountReal); + } + + /** + * ProductCategory: 产品分类 (账单维度按产品筛选时显示) + * + * @return string|null + */ + public function getProductCategory() + { + return $this->get("ProductCategory"); + } + + /** + * ProductCategory: 产品分类 (账单维度按产品筛选时显示) + * + * @param string $productCategory + */ + public function setProductCategory($productCategory) + { + $this->set("ProductCategory", $productCategory); + } + + /** + * ResourceType: 产品类型 (账单维度按产品筛选时显示) + * + * @return string|null + */ + public function getResourceType() + { + return $this->get("ResourceType"); + } + + /** + * ResourceType: 产品类型 (账单维度按产品筛选时显示) + * + * @param string $resourceType + */ + public function setResourceType($resourceType) + { + $this->set("ResourceType", $resourceType); + } + + /** + * ResourceTypeCode: 产品类型代码(账单维度按产品筛选时显示) + * + * @return integer|null + */ + public function getResourceTypeCode() + { + return $this->get("ResourceTypeCode"); + } + + /** + * ResourceTypeCode: 产品类型代码(账单维度按产品筛选时显示) + * + * @param int $resourceTypeCode + */ + public function setResourceTypeCode($resourceTypeCode) + { + $this->set("ResourceTypeCode", $resourceTypeCode); + } + + /** + * ProjectName: 项目名称(账单维度按项目筛选时显示) + * + * @return string|null + */ + public function getProjectName() + { + return $this->get("ProjectName"); + } + + /** + * ProjectName: 项目名称(账单维度按项目筛选时显示) + * + * @param string $projectName + */ + public function setProjectName($projectName) + { + $this->set("ProjectName", $projectName); + } + + /** + * UserEmail: 账户邮箱(账单维度按子账号筛选时显示) + * + * @return string|null + */ + public function getUserEmail() + { + return $this->get("UserEmail"); + } + + /** + * UserEmail: 账户邮箱(账单维度按子账号筛选时显示) + * + * @param string $userEmail + */ + public function setUserEmail($userEmail) + { + $this->set("UserEmail", $userEmail); + } + + /** + * UserName: 账户名 (账单维度按子账号筛选时显示) + * + * @return string|null + */ + public function getUserName() + { + return $this->get("UserName"); + } + + /** + * UserName: 账户名 (账单维度按子账号筛选时显示) + * + * @param string $userName + */ + public function setUserName($userName) + { + $this->set("UserName", $userName); + } + + /** + * UserDisplayName: 账户昵称(账单维度按子账号筛选时显示) + * + * @return string|null + */ + public function getUserDisplayName() + { + return $this->get("UserDisplayName"); + } + + /** + * UserDisplayName: 账户昵称(账单维度按子账号筛选时显示) + * + * @param string $userDisplayName + */ + public function setUserDisplayName($userDisplayName) + { + $this->set("UserDisplayName", $userDisplayName); + } + + /** + * Admin: 该账户是否为主账号,1 主账号,0 子账号(账单维度按子账号筛选时显示) + * + * @return integer|null + */ + public function getAdmin() + { + return $this->get("Admin"); + } + + /** + * Admin: 该账户是否为主账号,1 主账号,0 子账号(账单维度按子账号筛选时显示) + * + * @param int $admin + */ + public function setAdmin($admin) + { + $this->set("Admin", $admin); + } +} diff --git a/src/UBill/Models/ItemDetail.php b/src/UBill/Models/ItemDetail.php new file mode 100644 index 00000000..217504b1 --- /dev/null +++ b/src/UBill/Models/ItemDetail.php @@ -0,0 +1,64 @@ +get("ProductName"); + } + + /** + * ProductName: 产品小类名称 + * + * @param string $productName + */ + public function setProductName($productName) + { + $this->set("ProductName", $productName); + } + + /** + * Value: 产品小类规格 + * + * @return string|null + */ + public function getValue() + { + return $this->get("Value"); + } + + /** + * Value: 产品小类规格 + * + * @param string $value + */ + public function setValue($value) + { + $this->set("Value", $value); + } +} diff --git a/src/UBill/Models/ResourceExtendInfo.php b/src/UBill/Models/ResourceExtendInfo.php new file mode 100644 index 00000000..526a242a --- /dev/null +++ b/src/UBill/Models/ResourceExtendInfo.php @@ -0,0 +1,64 @@ +get("KeyId"); + } + + /** + * KeyId: 资源标识健 + * + * @param string $keyId + */ + public function setKeyId($keyId) + { + $this->set("KeyId", $keyId); + } + + /** + * Value: 资源标识值 + * + * @return string|null + */ + public function getValue() + { + return $this->get("Value"); + } + + /** + * Value: 资源标识值 + * + * @param string $value + */ + public function setValue($value) + { + $this->set("Value", $value); + } +} diff --git a/src/UBill/UBillClient.php b/src/UBill/UBillClient.php index c745803f..5c8b00e2 100644 --- a/src/UBill/UBillClient.php +++ b/src/UBill/UBillClient.php @@ -1,6 +1,6 @@ (integer) 账期(时间戳格式) * "BillType" => (integer) 账单类型,传 0 时获取账单总览报表,传 1 获取账单明细报表 + * "BillingCycle" => (string) 账期(字符串格式,YYYY-MM,例如2021-08). 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先 + * "BillPeriod" => (integer) 此字段不推荐使用,建议使用BillingCycle. 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先 * "PaidType" => (integer) 获取账单总览报表时,账单的支付状态,传 0 时获取待支付账单,传 1 时获取已支付账单。获取账单明细报表时该参数无效 * "RequireVersion" => (string) 如需求其他语言版本的账单则使用此参数。默认中文。如 RequireVersion = "EN",则提供英文版本账单。 + * "Version" => (string) 文件版本,若为"v1"表示获取带有子用户信息的账单,可以为空 * ] * * Outputs: @@ -89,4 +95,123 @@ public function getBillDataFileUrl(GetBillDataFileUrlRequest $request = null) $resp = $this->invoke($request); return new GetBillDataFileUrlResponse($resp->toArray(), $resp->getRequestId()); } + + /** + * ListUBillDetail - 获取某个账期内的所有消费。 + * + * See also: https://docs.ucloud.cn/api/ubill-api/list_u_bill_detail + * + * Arguments: + * + * $args = [ + * "BillingCycle" => (string) 账期,YYYY-MM,比如2021-08,只支持2018-05之后的查询 + * "ProjectName" => (string) 项目名称 (筛选项, 默认全部) + * "ResourceIds" => (array) 资源ID(筛选项, 默认全部) 支持多筛选,多筛选请在请求参数中添加多个字段例ResourceIds.0: uhost-bzgf1gh5,ResourceIds.1: uhost-gu1xpspa, + * "OrderType" => (string) 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_REFUND:退费 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_PAYMENT:删除资源回款 \\ > OT_POSTPAID_PAYMENT:后付费回款 \\ > OT_RECOVER:删除恢复 \\ > OT_POSTPAID_RENEW:过期续费回款 + * "ChargeType" => (string) 计费方式 (筛选项, 默认全部)。枚举值:\\ > Dynamic:按时 \\ > Month:按月 \\ > Year:按年 \\ > Once:一次性按量 \\ > Used:按量 \\ > Post:后付费 + * "ShowZero" => (integer) 是否显示0元订单 (0 不显示, 1 显示, 默认0) + * "PaidState" => (integer) 支付状态 (筛选项, 1:仅显示未支付订单; 2:仅显示已支付订单; 0:两者都显示) + * "UserEmail" => (string) 用户邮箱,可以根据用户邮箱来进行筛选 + * "Limit" => (integer) 每页数量,默认值25,最大值:100。 + * "Offset" => (integer) 数据偏移量 (默认0) + * "ResourceTypes" => (array) 产品类型 (筛选项, 默认全部),支持多筛选,多筛选请在请求参数中添加多个字段。枚举值:\\ > uhost:云主机 \\ > udisk:普通云硬盘 \\ > udb:云数据库 \\ > eip:弹性IP \\ > ufile:对象存储 \\ > fortress_host:堡垒机 \\ > ufs:文件存储 \\ > waf:WEB应用防火墙 \\ > ues:弹性搜索 \\ > udisk_ssd:SSD云硬盘 \\ > rssd:RSSD云硬盘 + * ] + * + * Outputs: + * + * $outputs = [ + * "Items" => (array) 账单明细数组[ + * [ + * "Amount" => (string) 订单总金额 + * "AmountReal" => (string) 现金账户支付 + * "AmountFree" => (string) 赠送金额抵扣 + * "AmountCoupon" => (string) 代金券抵扣 + * "AzGroupCName" => (string) 可用区 + * "ChargeType" => (string) 计费方式 (筛选项, 默认全部)。枚举值:\\ > Dynamic:按时 \\ > Month:按月 \\ > Year:按年 \\ > Once:一次性按量 \\ > Used:按量 \\ > Post:后付费 + * "CreateTime" => (integer) 创建时间(时间戳) + * "StartTime" => (integer) 开始时间(时间戳) + * "OrderNo" => (string) 订单号 + * "OrderType" => (string) 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_REFUND:退费 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_PAYMENT:删除资源回款 \\ > OT_POSTPAID_PAYMENT:后付费回款 \\ > OT_RECOVER:删除恢复 \\ > OT_POSTPAID_RENEW:过期续费回款 + * "ProjectName" => (string) 项目名称 + * "ResourceId" => (string) 资源ID + * "ResourceType" => (string) 产品类型。枚举值:\\ > uhost:云主机 \\ > udisk:普通云硬盘 \\ > udb:云数据库 \\ > eip:弹性IP \\ > ufile:对象存储 \\ > fortress_host:堡垒机 \\ > ufs:文件存储 \\ > waf:WEB应用防火墙 \\ > ues:弹性搜索 \\ > udisk_ssd:SSD云硬盘 \\ > rssd:RSSD云硬盘 + * "ResourceTypeCode" => (integer) 产品类型代码 + * "ItemDetails" => (array) 产品配置[ + * [ + * "ProductName" => (string) 产品小类名称 + * "Value" => (string) 产品小类规格 + * ] + * ] + * "ResourceExtendInfo" => (array) 资源标识[ + * [ + * "KeyId" => (string) 资源标识健 + * "Value" => (string) 资源标识值 + * ] + * ] + * "ShowHover" => (integer) 订单支付状态。枚举值:\\> 0:未支付 \\ > 1:已支付 + * "UserEmail" => (string) 账户邮箱 + * "UserName" => (string) 账户名 + * "UserDisplayName" => (string) 账户昵称 + * "Admin" => (integer) 是否为主账号。枚举值:\\ > 0:子账号 \\ > 1:主账号 + * ] + * ] + * "TotalCount" => (integer) 账单明细总长度 + * ] + * + * @return ListUBillDetailResponse + * @throws UCloudException + */ + public function listUBillDetail(ListUBillDetailRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUBillDetailResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUBillOverview - 账单总览。可按产品/项目/用户纬度获取某个账期内账单总览信息。 + * + * See also: https://docs.ucloud.cn/api/ubill-api/list_u_bill_overview + * + * Arguments: + * + * $args = [ + * "BillingCycle" => (string) 账期,YYYY-MM格式,例如2022-02,只支持2018-05之后的查询 + * "Dimension" => (string) 账单维度, product 按产品聚合,project 按项目聚合,user 按子账号聚合 + * "HideUnpaid" => (integer) 是否显示已入账账单, 1 已入账, 0 待入账 (默认0 ) + * ] + * + * Outputs: + * + * $outputs = [ + * "TotalCount" => (integer) 账单总览数据总数 + * "TotalPaidAmount" => (string) 已入账订单总额(已入账时显示) + * "TotalPaidAmountReal" => (string) 现金账户扣款总额 (已入账时显示) + * "TotalUnpaidAmount" => (string) 待入账订单总额(待入账时显示) + * "Items" => (array) 账单聚合数据[ + * [ + * "Dimension" => (string) 账单维度, product 按产品维度聚合,project 按项目维度聚合,user 按子账号维度聚合 + * "Amount" => (string) 订单总金额 + * "AmountCoupon" => (string) 代金券抵扣(已入账时显示) + * "AmountFree" => (string) 赠送金额抵扣(已入账时显示) + * "AmountReal" => (string) 现金账户支付(已入账时显示) + * "ProductCategory" => (string) 产品分类 (账单维度按产品筛选时显示) + * "ResourceType" => (string) 产品类型 (账单维度按产品筛选时显示) + * "ResourceTypeCode" => (integer) 产品类型代码(账单维度按产品筛选时显示) + * "ProjectName" => (string) 项目名称(账单维度按项目筛选时显示) + * "UserEmail" => (string) 账户邮箱(账单维度按子账号筛选时显示) + * "UserName" => (string) 账户名 (账单维度按子账号筛选时显示) + * "UserDisplayName" => (string) 账户昵称(账单维度按子账号筛选时显示) + * "Admin" => (integer) 该账户是否为主账号,1 主账号,0 子账号(账单维度按子账号筛选时显示) + * ] + * ] + * ] + * + * @return ListUBillOverviewResponse + * @throws UCloudException + */ + public function listUBillOverview(ListUBillOverviewRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUBillOverviewResponse($resp->toArray(), $resp->getRequestId()); + } } diff --git a/src/UCDN/Apis/AddCertificateRequest.php b/src/UCDN/Apis/AddCertificateRequest.php index 7b360e36..99daa405 100644 --- a/src/UCDN/Apis/AddCertificateRequest.php +++ b/src/UCDN/Apis/AddCertificateRequest.php @@ -1,6 +1,6 @@ "ControlUcdnDomainCacheAccess"]); + $this->markRequired("UrlList"); + $this->markRequired("Type"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * UrlList: 待封禁的Url,一次封禁多个Url时最多一次30条,只能对表示文件的Url进行操作 + * + * @return string[]|null + */ + public function getUrlList() + { + return $this->get("UrlList"); + } + + /** + * UrlList: 待封禁的Url,一次封禁多个Url时最多一次30条,只能对表示文件的Url进行操作 + * + * @param string[] $urlList + */ + public function setUrlList(array $urlList) + { + $this->set("UrlList", $urlList); + } + + /** + * Type: forbid=封禁 unforbid=解封 其他值非法 + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: forbid=封禁 unforbid=解封 其他值非法 + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } +} diff --git a/src/UCDN/Apis/ControlUcdnDomainCacheAccessResponse.php b/src/UCDN/Apis/ControlUcdnDomainCacheAccessResponse.php new file mode 100644 index 00000000..ae6a5c11 --- /dev/null +++ b/src/UCDN/Apis/ControlUcdnDomainCacheAccessResponse.php @@ -0,0 +1,26 @@ + "GetNewUcdnLogRefererStatistics"]); + } + + + + /** + * DomainId: 域名id,创建域名时生成的id + * + * @return string|null + */ + public function getDomainId() + { + return $this->get("DomainId"); + } + + /** + * DomainId: 域名id,创建域名时生成的id + * + * @param string $domainId + */ + public function setDomainId($domainId) + { + $this->set("DomainId", $domainId); + } + + /** + * Areacode: 查询带宽区域 cn代表国内 abroad代表海外 ;目前只支持国内 + * + * @return string|null + */ + public function getAreacode() + { + return $this->get("Areacode"); + } + + /** + * Areacode: 查询带宽区域 cn代表国内 abroad代表海外 ;目前只支持国内 + * + * @param string $areacode + */ + public function setAreacode($areacode) + { + $this->set("Areacode", $areacode); + } + + /** + * BeginTime: 查询带宽的起始时间,格式:时间戳 + * + * @return integer|null + */ + public function getBeginTime() + { + return $this->get("BeginTime"); + } + + /** + * BeginTime: 查询带宽的起始时间,格式:时间戳 + * + * @param int $beginTime + */ + public function setBeginTime($beginTime) + { + $this->set("BeginTime", $beginTime); + } + + /** + * EndTime: 查询统计日志的结束时间,格式:时间戳。最大时间间隔30天 + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询统计日志的结束时间,格式:时间戳。最大时间间隔30天 + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * OrderBy: 0表示按流量降序排列,1表示按照下载次数降序排列,默认为0 + * + * @return integer|null + */ + public function getOrderBy() + { + return $this->get("OrderBy"); + } + + /** + * OrderBy: 0表示按流量降序排列,1表示按照下载次数降序排列,默认为0 + * + * @param int $orderBy + */ + public function setOrderBy($orderBy) + { + $this->set("OrderBy", $orderBy); + } + + /** + * Limit: 返回的结果数量限制,默认1000 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 返回的结果数量限制,默认1000 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } +} diff --git a/src/UCDN/Apis/GetNewUcdnLogRefererStatisticsResponse.php b/src/UCDN/Apis/GetNewUcdnLogRefererStatisticsResponse.php new file mode 100644 index 00000000..c47da26d --- /dev/null +++ b/src/UCDN/Apis/GetNewUcdnLogRefererStatisticsResponse.php @@ -0,0 +1,58 @@ +get("RefererStatistics"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new RefererStatistics($item)); + } + return $result; + } + + /** + * RefererStatistics: 按天统计实例 + * + * @param RefererStatistics[] $refererStatistics + */ + public function setRefererStatistics(array $refererStatistics) + { + $result = []; + foreach ($refererStatistics as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UCDN/Apis/GetNewUcdnLogUrlStatisticsRequest.php b/src/UCDN/Apis/GetNewUcdnLogUrlStatisticsRequest.php new file mode 100644 index 00000000..4a4fae2d --- /dev/null +++ b/src/UCDN/Apis/GetNewUcdnLogUrlStatisticsRequest.php @@ -0,0 +1,170 @@ + "GetNewUcdnLogUrlStatistics"]); + $this->markRequired("DomainId"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * DomainId: 域名Id + * + * @return string|null + */ + public function getDomainId() + { + return $this->get("DomainId"); + } + + /** + * DomainId: 域名Id + * + * @param string $domainId + */ + public function setDomainId($domainId) + { + $this->set("DomainId", $domainId); + } + + /** + * Areacode: 查询带宽区域 cn代表国内 abroad代表海外 只支持国内 + * + * @return string|null + */ + public function getAreacode() + { + return $this->get("Areacode"); + } + + /** + * Areacode: 查询带宽区域 cn代表国内 abroad代表海外 只支持国内 + * + * @param string $areacode + */ + public function setAreacode($areacode) + { + $this->set("Areacode", $areacode); + } + + /** + * BeginTime: 查询带宽的起始时间,格式:时间戳。BeginTime和EndTime必须同时赋值 + * + * @return integer|null + */ + public function getBeginTime() + { + return $this->get("BeginTime"); + } + + /** + * BeginTime: 查询带宽的起始时间,格式:时间戳。BeginTime和EndTime必须同时赋值 + * + * @param int $beginTime + */ + public function setBeginTime($beginTime) + { + $this->set("BeginTime", $beginTime); + } + + /** + * EndTime: 查询统计日志的结束时间,格式:时间戳,最多可拉取30天 + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询统计日志的结束时间,格式:时间戳,最多可拉取30天 + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * OrderBy: 0表示按流量降序排列,1表示按照下载次数降序排列,默认为0 + * + * @return integer|null + */ + public function getOrderBy() + { + return $this->get("OrderBy"); + } + + /** + * OrderBy: 0表示按流量降序排列,1表示按照下载次数降序排列,默认为0 + * + * @param int $orderBy + */ + public function setOrderBy($orderBy) + { + $this->set("OrderBy", $orderBy); + } + + /** + * Limit: 返回的结果数量限制,默认1000 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 返回的结果数量限制,默认1000 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } +} diff --git a/src/UCDN/Apis/GetNewUcdnLogUrlStatisticsResponse.php b/src/UCDN/Apis/GetNewUcdnLogUrlStatisticsResponse.php new file mode 100644 index 00000000..9c83ab8b --- /dev/null +++ b/src/UCDN/Apis/GetNewUcdnLogUrlStatisticsResponse.php @@ -0,0 +1,58 @@ +get("UrlStatisticsList"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UrlStatistics($item)); + } + return $result; + } + + /** + * UrlStatisticsList: 按天统计实例。 + * + * @param UrlStatistics[] $urlStatisticsList + */ + public function setUrlStatisticsList(array $urlStatisticsList) + { + $result = []; + foreach ($urlStatisticsList as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UCDN/Apis/GetUcdnDomain95BandwidthV2Request.php b/src/UCDN/Apis/GetUcdnDomain95BandwidthV2Request.php index aad32fc9..d8feb67e 100644 --- a/src/UCDN/Apis/GetUcdnDomain95BandwidthV2Request.php +++ b/src/UCDN/Apis/GetUcdnDomain95BandwidthV2Request.php @@ -1,6 +1,6 @@ "GetUcdnDomainLogV2"]); + $this->markRequired("BeginTime"); + $this->markRequired("EndTime"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * BeginTime: 查询的起始时间,格式为Unix Timestamp + * + * @return integer|null + */ + public function getBeginTime() + { + return $this->get("BeginTime"); + } + + /** + * BeginTime: 查询的起始时间,格式为Unix Timestamp + * + * @param int $beginTime + */ + public function setBeginTime($beginTime) + { + $this->set("BeginTime", $beginTime); + } + + /** + * EndTime: 查询的结束时间,格式为Unix Timestamp + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询的结束时间,格式为Unix Timestamp + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * DomainId: 域名id,创建域名时生成的id。默认全部域名 + * + * @return string[]|null + */ + public function getDomainId() + { + return $this->get("DomainId"); + } + + /** + * DomainId: 域名id,创建域名时生成的id。默认全部域名 + * + * @param string[] $domainId + */ + public function setDomainId(array $domainId) + { + $this->set("DomainId", $domainId); + } +} diff --git a/src/UCDN/Apis/GetUcdnDomainLogV2Response.php b/src/UCDN/Apis/GetUcdnDomainLogV2Response.php new file mode 100644 index 00000000..9b1c2c25 --- /dev/null +++ b/src/UCDN/Apis/GetUcdnDomainLogV2Response.php @@ -0,0 +1,58 @@ +get("DomainLogSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new DomanLogList($item)); + } + return $result; + } + + /** + * DomainLogSet: + * + * @param DomanLogList[] $domainLogSet + */ + public function setDomainLogSet(array $domainLogSet) + { + $result = []; + foreach ($domainLogSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UCDN/Apis/GetUcdnDomainOriginHttpCodeDetailRequest.php b/src/UCDN/Apis/GetUcdnDomainOriginHttpCodeDetailRequest.php index 8e2f0315..ea237bd9 100644 --- a/src/UCDN/Apis/GetUcdnDomainOriginHttpCodeDetailRequest.php +++ b/src/UCDN/Apis/GetUcdnDomainOriginHttpCodeDetailRequest.php @@ -1,6 +1,6 @@ get("Domain"); + } + + /** + * Domain: 域名 + * + * @param string $domain + */ + public function setDomain($domain) + { + $this->set("Domain", $domain); + } + + /** + * LogList: 日志信息列表 + * + * @return LogInfo[]|null + */ + public function getLogList() + { + $items = $this->get("LogList"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new LogInfo($item)); + } + return $result; + } + + /** + * LogList: 日志信息列表 + * + * @param LogInfo[] $logList + */ + public function setLogList(array $logList) + { + $result = []; + foreach ($logList as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UCDN/Models/DownloadStatisticInfo.php b/src/UCDN/Models/DownloadStatisticInfo.php new file mode 100644 index 00000000..df9cd074 --- /dev/null +++ b/src/UCDN/Models/DownloadStatisticInfo.php @@ -0,0 +1,104 @@ +get("Url"); + } + + /** + * Url: 下载链接的url + * + * @param string $url + */ + public function setUrl($url) + { + $this->set("Url", $url); + } + + /** + * Traffic: 流量(单位为G) + * + * @return float|null + */ + public function getTraffic() + { + return $this->get("Traffic"); + } + + /** + * Traffic: 流量(单位为G) + * + * @param float $traffic + */ + public function setTraffic($traffic) + { + $this->set("Traffic", $traffic); + } + + /** + * DownloadTimes: 下载次数 + * + * @return integer|null + */ + public function getDownloadTimes() + { + return $this->get("DownloadTimes"); + } + + /** + * DownloadTimes: 下载次数 + * + * @param int $downloadTimes + */ + public function setDownloadTimes($downloadTimes) + { + $this->set("DownloadTimes", $downloadTimes); + } + + /** + * Percent: 流量占比,单位% + * + * @return float|null + */ + public function getPercent() + { + return $this->get("Percent"); + } + + /** + * Percent: 流量占比,单位% + * + * @param float $percent + */ + public function setPercent($percent) + { + $this->set("Percent", $percent); + } +} diff --git a/src/UCDN/Models/HitRateInfo.php b/src/UCDN/Models/HitRateInfo.php index 534011d2..7400ea00 100644 --- a/src/UCDN/Models/HitRateInfo.php +++ b/src/UCDN/Models/HitRateInfo.php @@ -1,6 +1,6 @@ get("LogTime"); + } + + /** + * LogTime: Unix时间戳 + * + * @param int $logTime + */ + public function setLogTime($logTime) + { + $this->set("LogTime", $logTime); + } + + /** + * LogUrl: 日志url地址 + * + * @return string|null + */ + public function getLogUrl() + { + return $this->get("LogUrl"); + } + + /** + * LogUrl: 日志url地址 + * + * @param string $logUrl + */ + public function setLogUrl($logUrl) + { + $this->set("LogUrl", $logUrl); + } +} diff --git a/src/UCDN/Models/LogSetInfo.php b/src/UCDN/Models/LogSetInfo.php index 69b0bfff..e376f502 100644 --- a/src/UCDN/Models/LogSetInfo.php +++ b/src/UCDN/Models/LogSetInfo.php @@ -1,6 +1,6 @@ get("Referer"); + } + + /** + * Referer: 客户端请求的referer + * + * @param string $referer + */ + public function setReferer($referer) + { + $this->set("Referer", $referer); + } + + /** + * RequestTimes: 次数 + * + * @return integer|null + */ + public function getRequestTimes() + { + return $this->get("RequestTimes"); + } + + /** + * RequestTimes: 次数 + * + * @param int $requestTimes + */ + public function setRequestTimes($requestTimes) + { + $this->set("RequestTimes", $requestTimes); + } + + /** + * Percent: 次数占比,单位% + * + * @return float|null + */ + public function getPercent() + { + return $this->get("Percent"); + } + + /** + * Percent: 次数占比,单位% + * + * @param float $percent + */ + public function setPercent($percent) + { + $this->set("Percent", $percent); + } +} diff --git a/src/UCDN/Models/RefererStatistics.php b/src/UCDN/Models/RefererStatistics.php new file mode 100644 index 00000000..d0c0d23a --- /dev/null +++ b/src/UCDN/Models/RefererStatistics.php @@ -0,0 +1,76 @@ +get("Date"); + } + + /** + * Date: 日期 + * + * @param string $date + */ + public function setDate($date) + { + $this->set("Date", $date); + } + + /** + * RefererList: Referer实例表 + * + * @return RefererList[]|null + */ + public function getRefererList() + { + $items = $this->get("RefererList"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new RefererList($item)); + } + return $result; + } + + /** + * RefererList: Referer实例表 + * + * @param RefererList[] $refererList + */ + public function setRefererList(array $refererList) + { + $result = []; + foreach ($refererList as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UCDN/Models/RequestInfoV2.php b/src/UCDN/Models/RequestInfoV2.php index ab70b3ad..e18eea09 100644 --- a/src/UCDN/Models/RequestInfoV2.php +++ b/src/UCDN/Models/RequestInfoV2.php @@ -1,6 +1,6 @@ get("UrlList"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new DownloadStatisticInfo($item)); + } + return $result; + } + + /** + * UrlList: + * + * @param DownloadStatisticInfo[] $urlList + */ + public function setUrlList(array $urlList) + { + $result = []; + foreach ($urlList as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * Date: 日期 + * + * @return string|null + */ + public function getDate() + { + return $this->get("Date"); + } + + /** + * Date: 日期 + * + * @param string $date + */ + public function setDate($date) + { + $this->set("Date", $date); + } +} diff --git a/src/UCDN/UCDNClient.php b/src/UCDN/UCDNClient.php index cffb116a..43e26a87 100644 --- a/src/UCDN/UCDNClient.php +++ b/src/UCDN/UCDNClient.php @@ -1,6 +1,6 @@ toArray(), $resp->getRequestId()); } + /** + * ControlUcdnDomainCacheAccess - 封禁解封缓存访问 + * + * See also: https://docs.ucloud.cn/api/ucdn-api/control_ucdn_domain_cache_access + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "UrlList" => (array) 待封禁的Url,一次封禁多个Url时最多一次30条,只能对表示文件的Url进行操作 + * "Type" => (string) forbid=封禁 unforbid=解封 其他值非法 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ControlUcdnDomainCacheAccessResponse + * @throws UCloudException + */ + public function controlUcdnDomainCacheAccess(ControlUcdnDomainCacheAccessRequest $request = null) + { + $resp = $this->invoke($request); + return new ControlUcdnDomainCacheAccessResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DeleteCertificate - 删除证书 * @@ -283,43 +304,6 @@ public function getCertificateV2(GetCertificateV2Request $request = null) return new GetCertificateV2Response($resp->toArray(), $resp->getRequestId()); } - /** - * GetNewUcdnDomainBandwidth - 获取域名带宽数据 - * - * See also: https://docs.ucloud.cn/api/ucdn-api/get_new_ucdn_domain_bandwidth - * - * Arguments: - * - * $args = [ - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) - * "Type" => (integer) 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度) - * "DomainId" => (array) 域名id,创建域名时生成的id。默认全部域名 - * "Areacode" => (string) 查询带宽区域 cn代表国内 abroad代表海外 不填默认为全部区域 - * "BeginTime" => (integer) 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 - * "EndTime" => (integer) 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 - * ] - * - * Outputs: - * - * $outputs = [ - * "BandwidthList" => (array) 带宽信息列表,参见BandwidthInfo[ - * [ - * "Time" => (integer) 带宽获取的时间点。格式:时间戳 - * "CdnBandwidth" => (number) 返回值返回指定时间区间内CDN的带宽峰值,单位Mbps(如果请求参数Type为0,则Value是五分钟粒度的带宽值,如果Type为1,则Value是1小时的带宽峰值,如果Type为2,则Value是一天内的带宽峰值) - * ] - * ] - * "Traffic" => (number) 从起始时间到结束时间内的所使用的CDN总流量,单位GB - * ] - * - * @return GetNewUcdnDomainBandwidthResponse - * @throws UCloudException - */ - public function getNewUcdnDomainBandwidth(GetNewUcdnDomainBandwidthRequest $request = null) - { - $resp = $this->invoke($request); - return new GetNewUcdnDomainBandwidthResponse($resp->toArray(), $resp->getRequestId()); - } - /** * GetNewUcdnDomainHitRate - 获取域名命中率 * @@ -358,135 +342,89 @@ public function getNewUcdnDomainHitRate(GetNewUcdnDomainHitRateRequest $request } /** - * GetNewUcdnDomainHttpCode - 获取域名状态码监控 + * GetNewUcdnLogRefererStatistics - 获取热点referer统计 * - * See also: https://docs.ucloud.cn/api/ucdn-api/get_new_ucdn_domain_http_code + * See also: https://docs.ucloud.cn/api/ucdn-api/get_new_ucdn_log_referer_statistics * * Arguments: * * $args = [ - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) - * "Type" => (integer) 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度) - * "DomainId" => (array) 域名id,创建域名时生成的id。默认全部域名 - * "Areacode" => (string) 查询带宽区域 cn代表国内 abroad代表海外,只支持国内 - * "BeginTime" => (integer) 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 - * "EndTime" => (integer) 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 + * "DomainId" => (string) 域名id,创建域名时生成的id + * "Areacode" => (string) 查询带宽区域 cn代表国内 abroad代表海外 ;目前只支持国内 + * "BeginTime" => (integer) 查询带宽的起始时间,格式:时间戳 + * "EndTime" => (integer) 查询统计日志的结束时间,格式:时间戳。最大时间间隔30天 + * "OrderBy" => (integer) 0表示按流量降序排列,1表示按照下载次数降序排列,默认为0 + * "Limit" => (integer) 返回的结果数量限制,默认1000 * ] * * Outputs: * * $outputs = [ - * "HttpCodeDetail" => (array) 状态码实例表。详细见HttpCodeInfo[ + * "RefererStatistics" => (array) 按天统计实例[ * [ - * "Time" => (integer) 带宽获取的时间点。格式:时间戳 - * "HttpOneXX" => (integer) 1xx数量 - * "HttpTwoXX" => (integer) 2xx数量 - * "HttpThreeXX" => (integer) 3xx数量 - * "HttpFourXX" => (integer) 4xx数量 - * "HttpFiveXX" => (integer) 5xx数量 + * "Date" => (string) 日期 + * "RefererList" => (array) Referer实例表[ + * [ + * "Referer" => (string) 客户端请求的referer + * "RequestTimes" => (integer) 次数 + * "Percent" => (number) 次数占比,单位% + * ] + * ] * ] * ] * ] * - * @return GetNewUcdnDomainHttpCodeResponse + * @return GetNewUcdnLogRefererStatisticsResponse * @throws UCloudException */ - public function getNewUcdnDomainHttpCode(GetNewUcdnDomainHttpCodeRequest $request = null) + public function getNewUcdnLogRefererStatistics(GetNewUcdnLogRefererStatisticsRequest $request = null) { $resp = $this->invoke($request); - return new GetNewUcdnDomainHttpCodeResponse($resp->toArray(), $resp->getRequestId()); + return new GetNewUcdnLogRefererStatisticsResponse($resp->toArray(), $resp->getRequestId()); } /** - * GetNewUcdnDomainHttpCodeV2 - 获取域名详细状态码监控 + * GetNewUcdnLogUrlStatistics - 获取日志url统计 * - * See also: https://docs.ucloud.cn/api/ucdn-api/get_new_ucdn_domain_http_code_v2 + * See also: https://docs.ucloud.cn/api/ucdn-api/get_new_ucdn_log_url_statistics * * Arguments: * * $args = [ * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) - * "Type" => (integer) 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天粒度,3表示按照一分钟粒度) - * "BeginTime" => (integer) 查询的起始时间,格式为Unix Timestamp。 - * "EndTime" => (integer) 查询的结束时间,格式为Unix Timestamp。 - * "DomainId" => (array) 域名id,创建域名时生成的id。默认全部域名 - * "Areacode" => (string) 查询带宽区域 cn代表国内 abroad代表海外,只支持国内 + * "DomainId" => (string) 域名Id + * "Areacode" => (string) 查询带宽区域 cn代表国内 abroad代表海外 只支持国内 + * "BeginTime" => (integer) 查询带宽的起始时间,格式:时间戳。BeginTime和EndTime必须同时赋值 + * "EndTime" => (integer) 查询统计日志的结束时间,格式:时间戳,最多可拉取30天 + * "OrderBy" => (integer) 0表示按流量降序排列,1表示按照下载次数降序排列,默认为0 + * "Limit" => (integer) 返回的结果数量限制,默认1000 * ] * * Outputs: * * $outputs = [ - * "HttpCodeV2Detail" => (array) 状态码详情[ + * "UrlStatisticsList" => (array) 按天统计实例。[ * [ - * "Time" => (integer) 时间 - * "Total" => (integer) 当前分组的总状态码数 - * "Http100" => (integer) http100数量 - * "Http101" => (integer) http101数量 - * "Http102" => (integer) http102数量 - * "Http200" => (integer) http200数量 - * "Http201" => (integer) http201数量 - * "Http202" => (integer) http202数量 - * "Http203" => (integer) http203数量 - * "Http204" => (integer) http204数量 - * "Http205" => (integer) http205数量 - * "Http206" => (integer) http206数量 - * "Http207" => (integer) http207数量 - * "Http300" => (integer) http300数量 - * "Http301" => (integer) http301数量 - * "Http302" => (integer) http302数量 - * "Http303" => (integer) http303数量 - * "Http304" => (integer) http304数量 - * "Http305" => (integer) http305数量 - * "Http306" => (integer) http306数量 - * "Http307" => (integer) http307数量 - * "Http400" => (integer) http400数量 - * "Http401" => (integer) http401数量 - * "Http402" => (integer) http402数量 - * "Http403" => (integer) http403数量 - * "Http404" => (integer) http404数量 - * "Http405" => (integer) http405数量 - * "Http406" => (integer) http406数量 - * "Http407" => (integer) http407数量 - * "Http408" => (integer) http408数量 - * "Http409" => (integer) http409数量 - * "Http410" => (integer) http410数量 - * "Http411" => (integer) http411数量 - * "Http412" => (integer) http412数量 - * "Http413" => (integer) http413数量 - * "Http414" => (integer) http414数量 - * "Http415" => (integer) http415数量 - * "Http416" => (integer) http416数量 - * "Http417" => (integer) http417数量 - * "Http418" => (integer) http418数量 - * "Http421" => (integer) http421数量 - * "Http422" => (integer) http422数量 - * "Http423" => (integer) http423数量 - * "Http424" => (integer) http424数量 - * "Http425" => (integer) http425数量 - * "Http426" => (integer) http426数量 - * "Http449" => (integer) http449数量 - * "Http451" => (integer) http451数量 - * "Http500" => (integer) http500数量 - * "Http501" => (integer) http501数量 - * "Http502" => (integer) http502数量 - * "Http503" => (integer) http503数量 - * "Http504" => (integer) http504数量 - * "Http505" => (integer) http505数量 - * "Http506" => (integer) http506数量 - * "Http507" => (integer) http507数量 - * "Http509" => (integer) http509数量 - * "Http510" => (integer) http510数量 + * "UrlList" => (array) [ + * [ + * "Url" => (string) 下载链接的url + * "Traffic" => (number) 流量(单位为G) + * "DownloadTimes" => (integer) 下载次数 + * "Percent" => (number) 流量占比,单位% + * ] + * ] + * "Date" => (string) 日期 * ] * ] * ] * - * @return GetNewUcdnDomainHttpCodeV2Response + * @return GetNewUcdnLogUrlStatisticsResponse * @throws UCloudException */ - public function getNewUcdnDomainHttpCodeV2(GetNewUcdnDomainHttpCodeV2Request $request = null) + public function getNewUcdnLogUrlStatistics(GetNewUcdnLogUrlStatisticsRequest $request = null) { $resp = $this->invoke($request); - return new GetNewUcdnDomainHttpCodeV2Response($resp->toArray(), $resp->getRequestId()); + return new GetNewUcdnLogUrlStatisticsResponse($resp->toArray(), $resp->getRequestId()); } /** @@ -1171,6 +1109,45 @@ public function getUcdnDomainLog(GetUcdnDomainLogRequest $request = null) return new GetUcdnDomainLogResponse($resp->toArray(), $resp->getRequestId()); } + /** + * GetUcdnDomainLogV2 - 获取域名5分钟日志 + * + * See also: https://docs.ucloud.cn/api/ucdn-api/get_ucdn_domain_log_v2 + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "BeginTime" => (integer) 查询的起始时间,格式为Unix Timestamp + * "EndTime" => (integer) 查询的结束时间,格式为Unix Timestamp + * "DomainId" => (array) 域名id,创建域名时生成的id。默认全部域名 + * ] + * + * Outputs: + * + * $outputs = [ + * "DomainLogSet" => (array) [ + * [ + * "Domain" => (string) 域名 + * "LogList" => (array) 日志信息列表[ + * [ + * "LogTime" => (integer) Unix时间戳 + * "LogUrl" => (string) 日志url地址 + * ] + * ] + * ] + * ] + * ] + * + * @return GetUcdnDomainLogV2Response + * @throws UCloudException + */ + public function getUcdnDomainLogV2(GetUcdnDomainLogV2Request $request = null) + { + $resp = $this->invoke($request); + return new GetUcdnDomainLogV2Response($resp->toArray(), $resp->getRequestId()); + } + /** * GetUcdnDomainOriginHttpCode - 获取域名源站状态码监控 * @@ -1366,43 +1343,6 @@ public function getUcdnDomainPrefetchEnable(GetUcdnDomainPrefetchEnableRequest $ return new GetUcdnDomainPrefetchEnableResponse($resp->toArray(), $resp->getRequestId()); } - /** - * GetUcdnDomainRequestNumV2 - 获取域名请求数 - * - * See also: https://docs.ucloud.cn/api/ucdn-api/get_ucdn_domain_request_num_v2 - * - * Arguments: - * - * $args = [ - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) - * "Type" => (integer) 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度, 3=按1分钟) - * "BeginTime" => (integer) 查询的起始时间,格式为Unix Timestamp - * "EndTime" => (integer) 查询的结束时间,格式为Unix Timestamp - * "DomainId" => (array) 域名id,创建域名时生成的id。默认全部域名 - * "Areacode" => (string) 查询区域 cn代表国内 abroad代表海外,只支持国内 - * ] - * - * Outputs: - * - * $outputs = [ - * "RequestList" => (array) 请求数实例表。[ - * [ - * "Time" => (integer) 带宽获取的时间点。格式:时间戳 - * "CdnRequest" => (number) 返回值返回指定时间区间内的cdn收到的请求次数之和 - * "OriginRequest" => (number) 返回值返回指定时间区间内的cdn回源的请求次数之和 - * ] - * ] - * ] - * - * @return GetUcdnDomainRequestNumV2Response - * @throws UCloudException - */ - public function getUcdnDomainRequestNumV2(GetUcdnDomainRequestNumV2Request $request = null) - { - $resp = $this->invoke($request); - return new GetUcdnDomainRequestNumV2Response($resp->toArray(), $resp->getRequestId()); - } - /** * GetUcdnDomainRequestNumV3 - 获取域名请求数 * @@ -1440,78 +1380,6 @@ public function getUcdnDomainRequestNumV3(GetUcdnDomainRequestNumV3Request $requ return new GetUcdnDomainRequestNumV3Response($resp->toArray(), $resp->getRequestId()); } - /** - * GetUcdnDomainTraffic - 获取加速域名流量使用信息 - * - * See also: https://docs.ucloud.cn/api/ucdn-api/get_ucdn_domain_traffic - * - * Arguments: - * - * $args = [ - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) - * "AccountType" => (string) 指定按项目查询,还是按整个账户查询 取值 top 表示按整个账户查询,取值org表示按项目查询 - * "DomainId" => (array) 域名ID,创建加速域名时生成,n从自然数0开始。默认全部域名 - * "Areacode" => (string) 查询流量区域 cn代表国内 abroad代表海外,默认全部区域 - * "BeginTime" => (integer) 查询的起始日期,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值 - * "EndTime" => (integer) 查询的结束日期,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天 - * ] - * - * Outputs: - * - * $outputs = [ - * "TrafficSet" => (array) 流量实例表,具体结构见 UcdnDomainTrafficSet[ - * [ - * "Time" => (integer) 流量获取的时间点,格式为Unix Timestamp - * "Value" => (number) 查询每日流量总值,单位:GB - * ] - * ] - * ] - * - * @return GetUcdnDomainTrafficResponse - * @throws UCloudException - */ - public function getUcdnDomainTraffic(GetUcdnDomainTrafficRequest $request = null) - { - $resp = $this->invoke($request); - return new GetUcdnDomainTrafficResponse($resp->toArray(), $resp->getRequestId()); - } - - /** - * GetUcdnPassBandwidth - 获取回源带宽数据(cdn回客户源站部分) - * - * See also: https://docs.ucloud.cn/api/ucdn-api/get_ucdn_pass_bandwidth - * - * Arguments: - * - * $args = [ - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) - * "Type" => (integer) 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度) - * "DomainId" => (array) 域名id,创建域名时生成的id。默认全部域名 - * "Areacode" => (string) 查询带宽区域 cn代表国内 abroad代表海外,只支持国内 - * "BeginTime" => (integer) 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 - * "EndTime" => (integer) 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 - * ] - * - * Outputs: - * - * $outputs = [ - * "BandwidthDetail" => (array) 回源带宽数据[ - * [ - * "Time" => (integer) 宽获取的时间点。格式:时间戳 - * "Bandwidth" => (number) 返回值带宽值数据。 - * ] - * ] - * ] - * - * @return GetUcdnPassBandwidthResponse - * @throws UCloudException - */ - public function getUcdnPassBandwidth(GetUcdnPassBandwidthRequest $request = null) - { - $resp = $this->invoke($request); - return new GetUcdnPassBandwidthResponse($resp->toArray(), $resp->getRequestId()); - } - /** * GetUcdnPassBandwidthV2 - 获取回源带宽数据(cdn回客户源站部分) * @@ -1633,39 +1501,6 @@ public function getUcdnProIspRequestNumV2(GetUcdnProIspRequestNumV2Request $requ return new GetUcdnProIspRequestNumV2Response($resp->toArray(), $resp->getRequestId()); } - /** - * GetUcdnTraffic - 获取流量信息 - * - * See also: https://docs.ucloud.cn/api/ucdn-api/get_ucdn_traffic - * - * Arguments: - * - * $args = [ - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) - * ] - * - * Outputs: - * - * $outputs = [ - * "TrafficSet" => (array) 用户不同区域的流量信息, 具体结构参见TrafficSet部分[ - * [ - * "Areacode" => (string) 购买流量的区域, cn: 国内; abroad: 国外 - * "TrafficTotal" => (number) Areacode区域内总购买流量, 单位GB - * "TrafficLeft" => (number) Areacode区域内总剩余流量, 单位GB - * "TrafficUsed" => (number) Areacode区域内总使用流量, 单位GB - * ] - * ] - * ] - * - * @return GetUcdnTrafficResponse - * @throws UCloudException - */ - public function getUcdnTraffic(GetUcdnTrafficRequest $request = null) - { - $resp = $this->invoke($request); - return new GetUcdnTrafficResponse($resp->toArray(), $resp->getRequestId()); - } - /** * GetUcdnTrafficV2 - 获取流量信息 * @@ -1769,7 +1604,7 @@ public function queryIpLocation(QueryIpLocationRequest $request = null) * * $args = [ * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) - * "Type" => (string) 刷新类型,file代表文件刷新,dir 代表路径刷新 + * "Type" => (string) 刷新类型,file代表文件刷新,dir 代表路径刷新,m3u8带表m3u8刷新 * "UrlList" => (array) 需要刷新的URL,n 从自然数0开始,刷新多个URL列表时,一次最多提交30个。必须以”http://域名/”开始。目录要以”/”结尾, 如刷新目录a下所有文件,格式为:http://abc.ucloud.cn/a/;如刷新文件目录a下面img.png文件, 格式为http://abc.ucloud.cn/a/img.png。请正确提交需要刷新的域名 * ] * diff --git a/src/UDB/Apis/BackupUDBInstanceBinlogRequest.php b/src/UDB/Apis/BackupUDBInstanceBinlogRequest.php index 61ecb562..1480a582 100644 --- a/src/UDB/Apis/BackupUDBInstanceBinlogRequest.php +++ b/src/UDB/Apis/BackupUDBInstanceBinlogRequest.php @@ -1,6 +1,6 @@ "GetUDBClientConnNum"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("DBId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * DBId: DB实例id + * + * @return string|null + */ + public function getDBId() + { + return $this->get("DBId"); + } + + /** + * DBId: DB实例id + * + * @param string $dbId + */ + public function setDBId($dbId) + { + $this->set("DBId", $dbId); + } +} diff --git a/src/UDB/Apis/GetUDBClientConnNumResponse.php b/src/UDB/Apis/GetUDBClientConnNumResponse.php new file mode 100644 index 00000000..fccfeeba --- /dev/null +++ b/src/UDB/Apis/GetUDBClientConnNumResponse.php @@ -0,0 +1,57 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ConnNumMap($item)); + } + return $result; + } + + /** + * DataSet: db实例ip和连接数信息 + * + * @param ConnNumMap[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UDB/Apis/ModifyUDBInstanceNameRequest.php b/src/UDB/Apis/ModifyUDBInstanceNameRequest.php index ddfa17ac..b15f4488 100644 --- a/src/UDB/Apis/ModifyUDBInstanceNameRequest.php +++ b/src/UDB/Apis/ModifyUDBInstanceNameRequest.php @@ -1,6 +1,6 @@ set("DBId", $dbId); } + + /** + * ForceSwitch: 是否跳过预检查强制升级。 + * + * @return boolean|null + */ + public function getForceSwitch() + { + return $this->get("ForceSwitch"); + } + + /** + * ForceSwitch: 是否跳过预检查强制升级。 + * + * @param boolean $forceSwitch + */ + public function setForceSwitch($forceSwitch) + { + $this->set("ForceSwitch", $forceSwitch); + } } diff --git a/src/UDB/Apis/SwitchUDBHAToSentinelResponse.php b/src/UDB/Apis/SwitchUDBHAToSentinelResponse.php index 7ede4c09..e3ade7cc 100644 --- a/src/UDB/Apis/SwitchUDBHAToSentinelResponse.php +++ b/src/UDB/Apis/SwitchUDBHAToSentinelResponse.php @@ -1,6 +1,6 @@ get("Ip"); + } + + /** + * Ip: 客户端IP + * + * @param string $ip + */ + public function setIp($ip) + { + $this->set("Ip", $ip); + } + + /** + * Num: 该Ip连接数 + * + * @return integer|null + */ + public function getNum() + { + return $this->get("Num"); + } + + /** + * Num: 该Ip连接数 + * + * @param int $num + */ + public function setNum($num) + { + $this->set("Num", $num); + } +} diff --git a/src/UDB/Models/LogPackageDataSet.php b/src/UDB/Models/LogPackageDataSet.php index ccb3ef61..5e8b36f8 100644 --- a/src/UDB/Models/LogPackageDataSet.php +++ b/src/UDB/Models/LogPackageDataSet.php @@ -1,6 +1,6 @@ toArray(), $resp->getRequestId()); } + /** + * GetUDBClientConnNum - 输入一个DBID,能够获取客户端来源IP以及对应的连接数 + * + * See also: https://docs.ucloud.cn/api/udb-api/get_udb_client_conn_num + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "DBId" => (string) DB实例id + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) db实例ip和连接数信息[ + * [ + * "Ip" => (string) 客户端IP + * "Num" => (integer) 该Ip连接数 + * ] + * ] + * ] + * + * @return GetUDBClientConnNumResponse + * @throws UCloudException + */ + public function getUDBClientConnNum(GetUDBClientConnNumRequest $request = null) + { + $resp = $this->invoke($request); + return new GetUDBClientConnNumResponse($resp->toArray(), $resp->getRequestId()); + } + /** * ModifyUDBInstanceName - 重命名UDB实例 * @@ -1907,17 +1943,18 @@ public function stopUDBInstance(StopUDBInstanceRequest $request = null) } /** - * SwitchUDBHAToSentinel - UDB高可用实例从HAProxy版本升级为Sentinel版本(不带HAProxy)升级耗时30-70秒 + * SwitchUDBHAToSentinel - UDB高可用实例从HAProxy版本升级为Sentinel版本(不带HAProxy)升级耗时5-10秒 * * See also: https://docs.ucloud.cn/api/udb-api/switch_udb_ha_to_sentinel * * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "Zone" => (string) 可用区。参见 [可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "DBId" => (string) UDB的实例ID + * "ForceSwitch" => (boolean) 是否跳过预检查强制升级。 * ] * * Outputs: diff --git a/src/UDDB/Apis/ChangeUDDBInstanceNameRequest.php b/src/UDDB/Apis/ChangeUDDBInstanceNameRequest.php index 5fac0e38..3ce9bb76 100644 --- a/src/UDDB/Apis/ChangeUDDBInstanceNameRequest.php +++ b/src/UDDB/Apis/ChangeUDDBInstanceNameRequest.php @@ -1,6 +1,6 @@ (string) Disk注释 * "ChargeType" => (string) Year , Month, Dynamic,Postpay,Trial 默认: Month * "Tag" => (string) 业务组 默认:Default - * "RdmaClusterId" => (string) 【已废弃】RDMA集群id。指定RSSD云盘克隆到对应的RDMA集群。 + * "RdmaClusterId" => (string) RDMA集群id。指定RSSD云盘克隆到对应的RDMA集群。 * "HostId" => (string) Host实例ID。克隆出的云盘可直接挂载到该主机上。 * "CouponId" => (string) 使用的代金券id * ] @@ -159,7 +159,7 @@ public function cloneUDisk(CloneUDiskRequest $request = null) * "UDataArkMode" => (string) 【开启数据方舟入口已关闭】是否开启数据方舟。Yes:开启,No:不开启,默认值:No * "SnapshotService" => (string) 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No * "Tag" => (string) 业务组 默认:Default - * "RdmaClusterId" => (string) 【已废弃】RDMA集群id。指定RSSD云盘克隆到对应的RDMA集群。 + * "RdmaClusterId" => (string) RDMA集群id。指定RSSD云盘克隆到对应的RDMA集群。 * "HostId" => (string) Host实例ID。克隆出的云盘可直接挂载到该主机上。 * "CouponId" => (string) 使用的代金券id * ] @@ -200,7 +200,7 @@ public function cloneUDiskSnapshot(CloneUDiskSnapshotRequest $request = null) * "SnapshotService" => (string) 是否开启快照服务(开启快照服务,可免费开启数据方舟)。Yes:开启,No:不开启,默认值:No * "Size" => (integer) 购买UDisk大小,单位:GB,范围[1~8000]。(UDisk大小设定对本地盘备份有效,对云盘备份无效) * "Tag" => (string) 业务组 默认:Default - * "RdmaClusterId" => (string) 【已废弃】RDMA集群id。指定RSSD云盘克隆到对应的RDMA集群。 + * "RdmaClusterId" => (string) RDMA集群id。指定RSSD云盘克隆到对应的RDMA集群。 * "HostId" => (string) Host实例ID。克隆出的云盘可直接挂载到该主机上。 * "CouponId" => (string) 使用的代金券id * ] diff --git a/src/UEC/Apis/BindUEcFirewallRequest.php b/src/UEC/Apis/BindUEcFirewallRequest.php index 87c75b70..77540e4f 100644 --- a/src/UEC/Apis/BindUEcFirewallRequest.php +++ b/src/UEC/Apis/BindUEcFirewallRequest.php @@ -1,6 +1,6 @@ "CreateUEcCustomImage"]); + $this->markRequired("NodeId"); + $this->markRequired("ImageName"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * NodeId: 虚拟机实例ID + * + * @return string|null + */ + public function getNodeId() + { + return $this->get("NodeId"); + } + + /** + * NodeId: 虚拟机实例ID + * + * @param string $nodeId + */ + public function setNodeId($nodeId) + { + $this->set("NodeId", $nodeId); + } + + /** + * ImageName: 镜像名称 + * + * @return string|null + */ + public function getImageName() + { + return $this->get("ImageName"); + } + + /** + * ImageName: 镜像名称 + * + * @param string $imageName + */ + public function setImageName($imageName) + { + $this->set("ImageName", $imageName); + } + + /** + * ImageDescription: 镜像描述 + * + * @return string|null + */ + public function getImageDescription() + { + return $this->get("ImageDescription"); + } + + /** + * ImageDescription: 镜像描述 + * + * @param string $imageDescription + */ + public function setImageDescription($imageDescription) + { + $this->set("ImageDescription", $imageDescription); + } +} diff --git a/src/UEC/Apis/CreateUEcCustomImageResponse.php b/src/UEC/Apis/CreateUEcCustomImageResponse.php new file mode 100644 index 00000000..c03154b8 --- /dev/null +++ b/src/UEC/Apis/CreateUEcCustomImageResponse.php @@ -0,0 +1,44 @@ +get("ImageId"); + } + + /** + * ImageId: 镜像ID + * + * @param string $imageId + */ + public function setImageId($imageId) + { + $this->set("ImageId", $imageId); + } +} diff --git a/src/UEC/Apis/CreateUEcFirewallRequest.php b/src/UEC/Apis/CreateUEcFirewallRequest.php index 4e701eb0..0ba0c34d 100644 --- a/src/UEC/Apis/CreateUEcFirewallRequest.php +++ b/src/UEC/Apis/CreateUEcFirewallRequest.php @@ -1,6 +1,6 @@ set("ProductType", $productType); } + + /** + * Gpu: Gpu卡核心数 + * + * @return integer|null + */ + public function getGpu() + { + return $this->get("Gpu"); + } + + /** + * Gpu: Gpu卡核心数 + * + * @param int $gpu + */ + public function setGpu($gpu) + { + $this->set("Gpu", $gpu); + } } diff --git a/src/UEC/Apis/DescribeUEcIDCResponse.php b/src/UEC/Apis/DescribeUEcIDCResponse.php index 7159a602..bc0118ab 100644 --- a/src/UEC/Apis/DescribeUEcIDCResponse.php +++ b/src/UEC/Apis/DescribeUEcIDCResponse.php @@ -1,6 +1,6 @@ set("ProductType", $productType); } + + /** + * InnerIps: 内网ip列表 + * + * @return string[]|null + */ + public function getInnerIps() + { + return $this->get("InnerIps"); + } + + /** + * InnerIps: 内网ip列表 + * + * @param string[] $innerIps + */ + public function setInnerIps(array $innerIps) + { + $this->set("InnerIps", $innerIps); + } } diff --git a/src/UEC/Models/NodeIpList.php b/src/UEC/Models/NodeIpList.php index 9e4c3066..875e4803 100644 --- a/src/UEC/Models/NodeIpList.php +++ b/src/UEC/Models/NodeIpList.php @@ -1,6 +1,6 @@ toArray(), $resp->getRequestId()); } + /** + * CreateUEcCustomImage - 从指定虚拟机,生成自定义镜像。 + * + * See also: https://docs.ucloud.cn/api/uec-api/create_u_ec_custom_image + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "NodeId" => (string) 虚拟机实例ID + * "ImageName" => (string) 镜像名称 + * "ImageDescription" => (string) 镜像描述 + * ] + * + * Outputs: + * + * $outputs = [ + * "ImageId" => (string) 镜像ID + * ] + * + * @return CreateUEcCustomImageResponse + * @throws UCloudException + */ + public function createUEcCustomImage(CreateUEcCustomImageRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateUEcCustomImageResponse($resp->toArray(), $resp->getRequestId()); + } + /** * CreateUEcFirewall - 创建外网防火墙 * @@ -658,7 +689,8 @@ public function describeUEcHolderIDC(DescribeUEcHolderIDCRequest $request = null * "Memory" => (integer) 节点内存大小, 单位GB * "IdcId" => (array) Idc机房id。默认全部机房 * "Type" => (integer) 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通 - * "ProductType" => (string) 产品类型:normal(通用型),hf(高主频型) + * "ProductType" => (string) 产品类型:normal(经济型),hf(标准型),g(GPU型) + * "Gpu" => (integer) Gpu卡核心数 * ] * * Outputs: @@ -772,6 +804,7 @@ public function describeUEcSubnet(DescribeUEcSubnetRequest $request = null) * ] * "FirewallId" => (string) 防火墙Id * "ProductType" => (string) 机器类型(normal-经济型,hf-标准型,g-GPU型) + * "InnerIps" => (array) 内网ip列表 * ] * ] * ] diff --git a/src/UFS/Apis/AddUFSVolumeMountPointRequest.php b/src/UFS/Apis/AddUFSVolumeMountPointRequest.php new file mode 100644 index 00000000..e6150f34 --- /dev/null +++ b/src/UFS/Apis/AddUFSVolumeMountPointRequest.php @@ -0,0 +1,154 @@ + "AddUFSVolumeMountPoint"]); + $this->markRequired("Region"); + $this->markRequired("VolumeId"); + $this->markRequired("MountPointName"); + $this->markRequired("VpcId"); + $this->markRequired("SubnetId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * VolumeId: 文件系统ID + * + * @return string|null + */ + public function getVolumeId() + { + return $this->get("VolumeId"); + } + + /** + * VolumeId: 文件系统ID + * + * @param string $volumeId + */ + public function setVolumeId($volumeId) + { + $this->set("VolumeId", $volumeId); + } + + /** + * MountPointName: 挂载点名称 + * + * @return string|null + */ + public function getMountPointName() + { + return $this->get("MountPointName"); + } + + /** + * MountPointName: 挂载点名称 + * + * @param string $mountPointName + */ + public function setMountPointName($mountPointName) + { + $this->set("MountPointName", $mountPointName); + } + + /** + * VpcId: Vpc ID + * + * @return string|null + */ + public function getVpcId() + { + return $this->get("VpcId"); + } + + /** + * VpcId: Vpc ID + * + * @param string $vpcId + */ + public function setVpcId($vpcId) + { + $this->set("VpcId", $vpcId); + } + + /** + * SubnetId: Subnet ID + * + * @return string|null + */ + public function getSubnetId() + { + return $this->get("SubnetId"); + } + + /** + * SubnetId: Subnet ID + * + * @param string $subnetId + */ + public function setSubnetId($subnetId) + { + $this->set("SubnetId", $subnetId); + } +} diff --git a/src/UFS/Apis/AddUFSVolumeMountPointResponse.php b/src/UFS/Apis/AddUFSVolumeMountPointResponse.php new file mode 100644 index 00000000..c34df31a --- /dev/null +++ b/src/UFS/Apis/AddUFSVolumeMountPointResponse.php @@ -0,0 +1,26 @@ + "DescribeUFSVolumeMountpoint"]); + $this->markRequired("Region"); + $this->markRequired("VolumeId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * VolumeId: 文件系统ID + * + * @return string|null + */ + public function getVolumeId() + { + return $this->get("VolumeId"); + } + + /** + * VolumeId: 文件系统ID + * + * @param string $volumeId + */ + public function setVolumeId($volumeId) + { + $this->set("VolumeId", $volumeId); + } +} diff --git a/src/UFS/Apis/DescribeUFSVolumeMountpointResponse.php b/src/UFS/Apis/DescribeUFSVolumeMountpointResponse.php new file mode 100644 index 00000000..ee4d0159 --- /dev/null +++ b/src/UFS/Apis/DescribeUFSVolumeMountpointResponse.php @@ -0,0 +1,97 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MountPointInfo($item)); + } + return $result; + } + + /** + * DataSet: + * + * @param MountPointInfo[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * TotalMountPointNum: 目前的挂载点总数 + * + * @return integer|null + */ + public function getTotalMountPointNum() + { + return $this->get("TotalMountPointNum"); + } + + /** + * TotalMountPointNum: 目前的挂载点总数 + * + * @param int $totalMountPointNum + */ + public function setTotalMountPointNum($totalMountPointNum) + { + $this->set("TotalMountPointNum", $totalMountPointNum); + } + + /** + * MaxMountPointNum: 文件系统能创建的最大挂载点数目 + * + * @return integer|null + */ + public function getMaxMountPointNum() + { + return $this->get("MaxMountPointNum"); + } + + /** + * MaxMountPointNum: 文件系统能创建的最大挂载点数目 + * + * @param int $maxMountPointNum + */ + public function setMaxMountPointNum($maxMountPointNum) + { + $this->set("MaxMountPointNum", $maxMountPointNum); + } +} diff --git a/src/UFS/Apis/DescribeUFSVolumePriceRequest.php b/src/UFS/Apis/DescribeUFSVolumePriceRequest.php new file mode 100644 index 00000000..3a09bc85 --- /dev/null +++ b/src/UFS/Apis/DescribeUFSVolumePriceRequest.php @@ -0,0 +1,172 @@ + "DescribeUFSVolumePrice"]); + $this->markRequired("Region"); + $this->markRequired("Size"); + $this->markRequired("StorageType"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * Size: 文件系统大小,单位为GB,新架构容量型最小容量为500GB,以100GB递增,最大不超过100TB。新架构性能型最小容量为100GB,以100GB递增,最大不超过20TB + * + * @return integer|null + */ + public function getSize() + { + return $this->get("Size"); + } + + /** + * Size: 文件系统大小,单位为GB,新架构容量型最小容量为500GB,以100GB递增,最大不超过100TB。新架构性能型最小容量为100GB,以100GB递增,最大不超过20TB + * + * @param int $size + */ + public function setSize($size) + { + $this->set("Size", $size); + } + + /** + * StorageType: 文件存储类型,枚举值,Basic表示容量型产品,Advanced表示性能型产品 + * + * @return string|null + */ + public function getStorageType() + { + return $this->get("StorageType"); + } + + /** + * StorageType: 文件存储类型,枚举值,Basic表示容量型产品,Advanced表示性能型产品 + * + * @param string $storageType + */ + public function setStorageType($storageType) + { + $this->set("StorageType", $storageType); + } + + /** + * Quantity: 购买UFS的时长, 默认为1 + * + * @return integer|null + */ + public function getQuantity() + { + return $this->get("Quantity"); + } + + /** + * Quantity: 购买UFS的时长, 默认为1 + * + * @param int $quantity + */ + public function setQuantity($quantity) + { + $this->set("Quantity", $quantity); + } + + /** + * ChargeType: Year, Month, Dynamic,Trial,默认: Dynamic + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: Year, Month, Dynamic,Trial,默认: Dynamic + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * VolumeId: 文件系统id,第一次创建文件系统时不需要传这个参数 + * + * @return string|null + */ + public function getVolumeId() + { + return $this->get("VolumeId"); + } + + /** + * VolumeId: 文件系统id,第一次创建文件系统时不需要传这个参数 + * + * @param string $volumeId + */ + public function setVolumeId($volumeId) + { + $this->set("VolumeId", $volumeId); + } +} diff --git a/src/UFS/Apis/DescribeUFSVolumePriceResponse.php b/src/UFS/Apis/DescribeUFSVolumePriceResponse.php new file mode 100644 index 00000000..170a27bc --- /dev/null +++ b/src/UFS/Apis/DescribeUFSVolumePriceResponse.php @@ -0,0 +1,57 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UFSPriceDataSet($item)); + } + return $result; + } + + /** + * DataSet: ufs 价格信息 + * + * @param UFSPriceDataSet[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UFS/Apis/ExtendUFSVolumeRequest.php b/src/UFS/Apis/ExtendUFSVolumeRequest.php index 36fbd607..2ec29af5 100644 --- a/src/UFS/Apis/ExtendUFSVolumeRequest.php +++ b/src/UFS/Apis/ExtendUFSVolumeRequest.php @@ -1,6 +1,6 @@ "RemoveUFSVolumeMountPoint"]); + $this->markRequired("Region"); + $this->markRequired("VolumeId"); + $this->markRequired("VpcId"); + $this->markRequired("SubnetId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * VolumeId: 文件系统ID + * + * @return string|null + */ + public function getVolumeId() + { + return $this->get("VolumeId"); + } + + /** + * VolumeId: 文件系统ID + * + * @param string $volumeId + */ + public function setVolumeId($volumeId) + { + $this->set("VolumeId", $volumeId); + } + + /** + * VpcId: Vpc ID + * + * @return string|null + */ + public function getVpcId() + { + return $this->get("VpcId"); + } + + /** + * VpcId: Vpc ID + * + * @param string $vpcId + */ + public function setVpcId($vpcId) + { + $this->set("VpcId", $vpcId); + } + + /** + * SubnetId: Subnet ID + * + * @return string|null + */ + public function getSubnetId() + { + return $this->get("SubnetId"); + } + + /** + * SubnetId: Subnet ID + * + * @param string $subnetId + */ + public function setSubnetId($subnetId) + { + $this->set("SubnetId", $subnetId); + } +} diff --git a/src/UFS/Apis/RemoveUFSVolumeMountPointResponse.php b/src/UFS/Apis/RemoveUFSVolumeMountPointResponse.php new file mode 100644 index 00000000..90483cae --- /dev/null +++ b/src/UFS/Apis/RemoveUFSVolumeMountPointResponse.php @@ -0,0 +1,26 @@ + "UpdateUFSVolumeInfo"]); + $this->markRequired("Region"); + $this->markRequired("VolumeId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * VolumeId: 文件系统ID + * + * @return string|null + */ + public function getVolumeId() + { + return $this->get("VolumeId"); + } + + /** + * VolumeId: 文件系统ID + * + * @param string $volumeId + */ + public function setVolumeId($volumeId) + { + $this->set("VolumeId", $volumeId); + } + + /** + * VolumeName: 文件系统名称(文件系统名称/备注至少传入其中一个) + * + * @return string|null + */ + public function getVolumeName() + { + return $this->get("VolumeName"); + } + + /** + * VolumeName: 文件系统名称(文件系统名称/备注至少传入其中一个) + * + * @param string $volumeName + */ + public function setVolumeName($volumeName) + { + $this->set("VolumeName", $volumeName); + } + + /** + * Remark: 文件系统备注(文件系统名称/备注至少传入其中一个) + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 文件系统备注(文件系统名称/备注至少传入其中一个) + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } +} diff --git a/src/UFS/Apis/UpdateUFSVolumeInfoResponse.php b/src/UFS/Apis/UpdateUFSVolumeInfoResponse.php new file mode 100644 index 00000000..ff5fbdb2 --- /dev/null +++ b/src/UFS/Apis/UpdateUFSVolumeInfoResponse.php @@ -0,0 +1,26 @@ +get("MountPointName"); + } + + /** + * MountPointName: 挂载点名称 + * + * @param string $mountPointName + */ + public function setMountPointName($mountPointName) + { + $this->set("MountPointName", $mountPointName); + } + + /** + * VpcId: Vpc ID + * + * @return string|null + */ + public function getVpcId() + { + return $this->get("VpcId"); + } + + /** + * VpcId: Vpc ID + * + * @param string $vpcId + */ + public function setVpcId($vpcId) + { + $this->set("VpcId", $vpcId); + } + + /** + * SubnetId: Subnet ID + * + * @return string|null + */ + public function getSubnetId() + { + return $this->get("SubnetId"); + } + + /** + * SubnetId: Subnet ID + * + * @param string $subnetId + */ + public function setSubnetId($subnetId) + { + $this->set("SubnetId", $subnetId); + } + + /** + * MountPointIp: ${挂载点IP}:/ + * + * @return string|null + */ + public function getMountPointIp() + { + return $this->get("MountPointIp"); + } + + /** + * MountPointIp: ${挂载点IP}:/ + * + * @param string $mountPointIp + */ + public function setMountPointIp($mountPointIp) + { + $this->set("MountPointIp", $mountPointIp); + } + + /** + * CreateTime: 文件系统创建时间(unix时间戳) + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 文件系统创建时间(unix时间戳) + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * SubnetDescription: Subnet ID + 网段的形式,方便前端展示 + * + * @return string|null + */ + public function getSubnetDescription() + { + return $this->get("SubnetDescription"); + } + + /** + * SubnetDescription: Subnet ID + 网段的形式,方便前端展示 + * + * @param string $subnetDescription + */ + public function setSubnetDescription($subnetDescription) + { + $this->set("SubnetDescription", $subnetDescription); + } +} diff --git a/src/UFS/Models/UFSPriceDataSet.php b/src/UFS/Models/UFSPriceDataSet.php new file mode 100644 index 00000000..00cbc222 --- /dev/null +++ b/src/UFS/Models/UFSPriceDataSet.php @@ -0,0 +1,84 @@ +get("ChargeType"); + } + + /** + * ChargeType: Year, Month, Dynamic,Trial + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * Price: 价格 (单位: 分) + * + * @return float|null + */ + public function getPrice() + { + return $this->get("Price"); + } + + /** + * Price: 价格 (单位: 分) + * + * @param float $price + */ + public function setPrice($price) + { + $this->set("Price", $price); + } + + /** + * ChargeName: “UFS” + * + * @return string|null + */ + public function getChargeName() + { + return $this->get("ChargeName"); + } + + /** + * ChargeName: “UFS” + * + * @param string $chargeName + */ + public function setChargeName($chargeName) + { + $this->set("ChargeName", $chargeName); + } +} diff --git a/src/UFS/Models/UFSVolumeInfo2.php b/src/UFS/Models/UFSVolumeInfo2.php index 11bea829..aa50c711 100644 --- a/src/UFS/Models/UFSVolumeInfo2.php +++ b/src/UFS/Models/UFSVolumeInfo2.php @@ -1,6 +1,6 @@ (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "VolumeId" => (string) 文件系统ID + * "MountPointName" => (string) 挂载点名称 + * "VpcId" => (string) Vpc ID + * "SubnetId" => (string) Subnet ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return AddUFSVolumeMountPointResponse + * @throws UCloudException + */ + public function addUFSVolumeMountPoint(AddUFSVolumeMountPointRequest $request = null) + { + $resp = $this->invoke($request); + return new AddUFSVolumeMountPointResponse($resp->toArray(), $resp->getRequestId()); + } + /** * CreateUFSVolume - 创建文件系统 * @@ -41,11 +81,11 @@ class UFSClient extends Client * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) - * "Size" => (integer) 文件系统大小,单位为GB,最大不超过20T,香港容量型必须为100的整数倍,Size最小为500GB,北京,上海,广州的容量型必须为1024的整数倍,Size最小为1024GB。性能型文件系统Size最小为100GB - * "StorageType" => (string) 文件系统存储类型,枚举值,Basic表示容量型,Advanced表示性能型 - * "ProtocolType" => (string) 文件系统协议,枚举值,NFSv3表示NFS V3协议,NFSv4表示NFS V4协议 + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Size" => (integer) 文件系统大小,单位为GB,必须为100的整数倍,容量型Size最小为500GB,性能型文件系统Size最小为100GB + * "StorageType" => (string) 文件系统存储类型,Basic表示容量型,Advanced表示性能型 + * "ProtocolType" => (string) 文件系统协议,目前仅支持NFSv4 * "VolumeName" => (string) 文件系统名称 * "Remark" => (string) 备注 * "Tag" => (string) 文件系统所属业务组 @@ -118,6 +158,83 @@ public function describeUFSVolume2(DescribeUFSVolume2Request $request = null) return new DescribeUFSVolume2Response($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeUFSVolumeMountpoint - 获取文件系统挂载点信息 + * + * See also: https://docs.ucloud.cn/api/ufs-api/describe_ufs_volume_mountpoint + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "VolumeId" => (string) 文件系统ID + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) [ + * [ + * "MountPointName" => (string) 挂载点名称 + * "VpcId" => (string) Vpc ID + * "SubnetId" => (string) Subnet ID + * "MountPointIp" => (string) ${挂载点IP}:/ + * "CreateTime" => (integer) 文件系统创建时间(unix时间戳) + * "SubnetDescription" => (string) Subnet ID + 网段的形式,方便前端展示 + * ] + * ] + * "TotalMountPointNum" => (integer) 目前的挂载点总数 + * "MaxMountPointNum" => (integer) 文件系统能创建的最大挂载点数目 + * ] + * + * @return DescribeUFSVolumeMountpointResponse + * @throws UCloudException + */ + public function describeUFSVolumeMountpoint(DescribeUFSVolumeMountpointRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUFSVolumeMountpointResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeUFSVolumePrice - 获取文件系统价格 + * + * See also: https://docs.ucloud.cn/api/ufs-api/describe_ufs_volume_price + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Size" => (integer) 文件系统大小,单位为GB,新架构容量型最小容量为500GB,以100GB递增,最大不超过100TB。新架构性能型最小容量为100GB,以100GB递增,最大不超过20TB + * "StorageType" => (string) 文件存储类型,枚举值,Basic表示容量型产品,Advanced表示性能型产品 + * "Quantity" => (integer) 购买UFS的时长, 默认为1 + * "ChargeType" => (string) Year, Month, Dynamic,Trial,默认: Dynamic + * "VolumeId" => (string) 文件系统id,第一次创建文件系统时不需要传这个参数 + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) ufs 价格信息[ + * [ + * "ChargeType" => (string) Year, Month, Dynamic,Trial + * "Price" => (number) 价格 (单位: 分) + * "ChargeName" => (string) “UFS” + * ] + * ] + * ] + * + * @return DescribeUFSVolumePriceResponse + * @throws UCloudException + */ + public function describeUFSVolumePrice(DescribeUFSVolumePriceRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUFSVolumePriceResponse($resp->toArray(), $resp->getRequestId()); + } + /** * ExtendUFSVolume - 文件系统扩容 * @@ -172,4 +289,62 @@ public function removeUFSVolume(RemoveUFSVolumeRequest $request = null) $resp = $this->invoke($request); return new RemoveUFSVolumeResponse($resp->toArray(), $resp->getRequestId()); } + + /** + * RemoveUFSVolumeMountPoint - 删除文件系统挂载点 + * + * See also: https://docs.ucloud.cn/api/ufs-api/remove_ufs_volume_mount_point + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "VolumeId" => (string) 文件系统ID + * "VpcId" => (string) Vpc ID + * "SubnetId" => (string) Subnet ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return RemoveUFSVolumeMountPointResponse + * @throws UCloudException + */ + public function removeUFSVolumeMountPoint(RemoveUFSVolumeMountPointRequest $request = null) + { + $resp = $this->invoke($request); + return new RemoveUFSVolumeMountPointResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * UpdateUFSVolumeInfo - 更改文件系统相关信息(名称/备注) + * + * See also: https://docs.ucloud.cn/api/ufs-api/update_ufs_volume_info + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "VolumeId" => (string) 文件系统ID + * "VolumeName" => (string) 文件系统名称(文件系统名称/备注至少传入其中一个) + * "Remark" => (string) 文件系统备注(文件系统名称/备注至少传入其中一个) + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateUFSVolumeInfoResponse + * @throws UCloudException + */ + public function updateUFSVolumeInfo(UpdateUFSVolumeInfoRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateUFSVolumeInfoResponse($resp->toArray(), $resp->getRequestId()); + } } diff --git a/src/UFile/Apis/CreateBucketRequest.php b/src/UFile/Apis/CreateBucketRequest.php index b4203819..a8521b04 100644 --- a/src/UFile/Apis/CreateBucketRequest.php +++ b/src/UFile/Apis/CreateBucketRequest.php @@ -1,6 +1,6 @@ "CreateUFileLifeCycle"]); + $this->markRequired("LifeCycleName"); + $this->markRequired("Prefix"); + $this->markRequired("Status"); + $this->markRequired("BucketName"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * LifeCycleName: 生命周期名称 + * + * @return string|null + */ + public function getLifeCycleName() + { + return $this->get("LifeCycleName"); + } + + /** + * LifeCycleName: 生命周期名称 + * + * @param string $lifeCycleName + */ + public function setLifeCycleName($lifeCycleName) + { + $this->set("LifeCycleName", $lifeCycleName); + } + + /** + * Prefix: 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀; + * + * @return string|null + */ + public function getPrefix() + { + return $this->get("Prefix"); + } + + /** + * Prefix: 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀; + * + * @param string $prefix + */ + public function setPrefix($prefix) + { + $this->set("Prefix", $prefix); + } + + /** + * Status: Enabled -- 启用,Disabled -- 不启用 + * + * @return string|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: Enabled -- 启用,Disabled -- 不启用 + * + * @param string $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * BucketName: 存储空间名称 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: 存储空间名称 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * Days: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;参数范围:[7,36500],0代表不启用 + * + * @return integer|null + */ + public function getDays() + { + return $this->get("Days"); + } + + /** + * Days: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;参数范围:[7,36500],0代表不启用 + * + * @param int $days + */ + public function setDays($days) + { + $this->set("Days", $days); + } + + /** + * ArchivalDays: 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为归档存储类型;参数范围:[7,36500],0代表不启用 + * + * @return integer|null + */ + public function getArchivalDays() + { + return $this->get("ArchivalDays"); + } + + /** + * ArchivalDays: 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为归档存储类型;参数范围:[7,36500],0代表不启用 + * + * @param int $archivalDays + */ + public function setArchivalDays($archivalDays) + { + $this->set("ArchivalDays", $archivalDays); + } + + /** + * IADays: 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为低频存储类型;参数范围:[7,36500],0代表不启用 + * + * @return integer|null + */ + public function getIADays() + { + return $this->get("IADays"); + } + + /** + * IADays: 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为低频存储类型;参数范围:[7,36500],0代表不启用 + * + * @param int $iaDays + */ + public function setIADays($iaDays) + { + $this->set("IADays", $iaDays); + } +} diff --git a/src/UFile/Apis/CreateUFileLifeCycleResponse.php b/src/UFile/Apis/CreateUFileLifeCycleResponse.php new file mode 100644 index 00000000..b0ba2738 --- /dev/null +++ b/src/UFile/Apis/CreateUFileLifeCycleResponse.php @@ -0,0 +1,44 @@ +get("LifeCycleId"); + } + + /** + * LifeCycleId: 生命周期Id + * + * @param string $lifeCycleId + */ + public function setLifeCycleId($lifeCycleId) + { + $this->set("LifeCycleId", $lifeCycleId); + } +} diff --git a/src/UFile/Apis/CreateUFileTokenRequest.php b/src/UFile/Apis/CreateUFileTokenRequest.php index 2ddfd5ab..2f6378b7 100644 --- a/src/UFile/Apis/CreateUFileTokenRequest.php +++ b/src/UFile/Apis/CreateUFileTokenRequest.php @@ -1,6 +1,6 @@ "DeleteUFileLifeCycle"]); + $this->markRequired("LifeCycleId"); + $this->markRequired("BucketName"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * LifeCycleId: 生命周期Id + * + * @return string|null + */ + public function getLifeCycleId() + { + return $this->get("LifeCycleId"); + } + + /** + * LifeCycleId: 生命周期Id + * + * @param string $lifeCycleId + */ + public function setLifeCycleId($lifeCycleId) + { + $this->set("LifeCycleId", $lifeCycleId); + } + + /** + * BucketName: 存储空间名称 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: 存储空间名称 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } +} diff --git a/src/UFile/Apis/DeleteUFileLifeCycleResponse.php b/src/UFile/Apis/DeleteUFileLifeCycleResponse.php new file mode 100644 index 00000000..0a53f26d --- /dev/null +++ b/src/UFile/Apis/DeleteUFileLifeCycleResponse.php @@ -0,0 +1,26 @@ + "DescribeUFileLifeCycle"]); + $this->markRequired("BucketName"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * BucketName: 存储空间名称 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: 存储空间名称 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * LifeCycleId: 生命周期Id;不传递此参数拉取存储空间下面的所有生命周期信息 + * + * @return string|null + */ + public function getLifeCycleId() + { + return $this->get("LifeCycleId"); + } + + /** + * LifeCycleId: 生命周期Id;不传递此参数拉取存储空间下面的所有生命周期信息 + * + * @param string $lifeCycleId + */ + public function setLifeCycleId($lifeCycleId) + { + $this->set("LifeCycleId", $lifeCycleId); + } +} diff --git a/src/UFile/Apis/DescribeUFileLifeCycleResponse.php b/src/UFile/Apis/DescribeUFileLifeCycleResponse.php new file mode 100644 index 00000000..80473d0d --- /dev/null +++ b/src/UFile/Apis/DescribeUFileLifeCycleResponse.php @@ -0,0 +1,57 @@ +get("DateSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new LifeCycleItem($item)); + } + return $result; + } + + /** + * DateSet: 生命周期信息 + * + * @param LifeCycleItem[] $dateSet + */ + public function setDateSet(array $dateSet) + { + $result = []; + foreach ($dateSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UFile/Apis/DescribeUFileTokenRequest.php b/src/UFile/Apis/DescribeUFileTokenRequest.php index 467f110b..891171b9 100644 --- a/src/UFile/Apis/DescribeUFileTokenRequest.php +++ b/src/UFile/Apis/DescribeUFileTokenRequest.php @@ -1,6 +1,6 @@ "UpdateUFileLifeCycle"]); + $this->markRequired("LifeCycleId"); + $this->markRequired("LifeCycleName"); + $this->markRequired("Prefix"); + $this->markRequired("Status"); + $this->markRequired("BucketName"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * LifeCycleId: 生命周期Id + * + * @return string|null + */ + public function getLifeCycleId() + { + return $this->get("LifeCycleId"); + } + + /** + * LifeCycleId: 生命周期Id + * + * @param string $lifeCycleId + */ + public function setLifeCycleId($lifeCycleId) + { + $this->set("LifeCycleId", $lifeCycleId); + } + + /** + * LifeCycleName: 生命周期名称 + * + * @return string|null + */ + public function getLifeCycleName() + { + return $this->get("LifeCycleName"); + } + + /** + * LifeCycleName: 生命周期名称 + * + * @param string $lifeCycleName + */ + public function setLifeCycleName($lifeCycleName) + { + $this->set("LifeCycleName", $lifeCycleName); + } + + /** + * Prefix: 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀; + * + * @return string|null + */ + public function getPrefix() + { + return $this->get("Prefix"); + } + + /** + * Prefix: 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀; + * + * @param string $prefix + */ + public function setPrefix($prefix) + { + $this->set("Prefix", $prefix); + } + + /** + * Status: Enabled -- 启用,Disabled -- 不启用 + * + * @return string|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: Enabled -- 启用,Disabled -- 不启用 + * + * @param string $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * BucketName: 存储空间名称 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: 存储空间名称 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * Days: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500] + * + * @return integer|null + */ + public function getDays() + { + return $this->get("Days"); + } + + /** + * Days: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500] + * + * @param int $days + */ + public function setDays($days) + { + $this->set("Days", $days); + } + + /** + * ArchivalDays: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型;范围: [7,36500],0代表不启用 + * + * @return integer|null + */ + public function getArchivalDays() + { + return $this->get("ArchivalDays"); + } + + /** + * ArchivalDays: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型;范围: [7,36500],0代表不启用 + * + * @param int $archivalDays + */ + public function setArchivalDays($archivalDays) + { + $this->set("ArchivalDays", $archivalDays); + } + + /** + * IADays: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型;范围: [7,36500],0代表不启用 + * + * @return integer|null + */ + public function getIADays() + { + return $this->get("IADays"); + } + + /** + * IADays: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型;范围: [7,36500],0代表不启用 + * + * @param int $iaDays + */ + public function setIADays($iaDays) + { + $this->set("IADays", $iaDays); + } +} diff --git a/src/UFile/Apis/UpdateUFileLifeCycleResponse.php b/src/UFile/Apis/UpdateUFileLifeCycleResponse.php new file mode 100644 index 00000000..7112d0ee --- /dev/null +++ b/src/UFile/Apis/UpdateUFileLifeCycleResponse.php @@ -0,0 +1,26 @@ +get("LifeCycleId"); + } + + /** + * LifeCycleId: 生命周期Id + * + * @param string $lifeCycleId + */ + public function setLifeCycleId($lifeCycleId) + { + $this->set("LifeCycleId", $lifeCycleId); + } + + /** + * LifeCycleName: 生命周期名称 + * + * @return string|null + */ + public function getLifeCycleName() + { + return $this->get("LifeCycleName"); + } + + /** + * LifeCycleName: 生命周期名称 + * + * @param string $lifeCycleName + */ + public function setLifeCycleName($lifeCycleName) + { + $this->set("LifeCycleName", $lifeCycleName); + } + + /** + * Prefix: 生命周期所适用的前缀;*为整个存储空间文件; + * + * @return string|null + */ + public function getPrefix() + { + return $this->get("Prefix"); + } + + /** + * Prefix: 生命周期所适用的前缀;*为整个存储空间文件; + * + * @param string $prefix + */ + public function setPrefix($prefix) + { + $this->set("Prefix", $prefix); + } + + /** + * Days: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除,0代表不启用; + * + * @return integer|null + */ + public function getDays() + { + return $this->get("Days"); + } + + /** + * Days: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除,0代表不启用; + * + * @param int $days + */ + public function setDays($days) + { + $this->set("Days", $days); + } + + /** + * Status: Enabled -- 启用,Disabled -- 不启用 + * + * @return string|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: Enabled -- 启用,Disabled -- 不启用 + * + * @param string $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * BucketName: 存储空间名称 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: 存储空间名称 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * ArchivalDays: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型,0代表不启用; + * + * @return integer|null + */ + public function getArchivalDays() + { + return $this->get("ArchivalDays"); + } + + /** + * ArchivalDays: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型,0代表不启用; + * + * @param int $archivalDays + */ + public function setArchivalDays($archivalDays) + { + $this->set("ArchivalDays", $archivalDays); + } + + /** + * IADays: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型,0代表不启用; + * + * @return integer|null + */ + public function getIADays() + { + return $this->get("IADays"); + } + + /** + * IADays: 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型,0代表不启用; + * + * @param int $iaDays + */ + public function setIADays($iaDays) + { + $this->set("IADays", $iaDays); + } +} diff --git a/src/UFile/Models/UFileBucketSet.php b/src/UFile/Models/UFileBucketSet.php index 983c9ac4..2a87aeca 100644 --- a/src/UFile/Models/UFileBucketSet.php +++ b/src/UFile/Models/UFileBucketSet.php @@ -1,6 +1,6 @@ toArray(), $resp->getRequestId()); } + /** + * CreateUFileLifeCycle - 创建生命周期管理 + * + * See also: https://docs.ucloud.cn/api/ufile-api/create_ufile_life_cycle + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "LifeCycleName" => (string) 生命周期名称 + * "Prefix" => (string) 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀; + * "Status" => (string) Enabled -- 启用,Disabled -- 不启用 + * "BucketName" => (string) 存储空间名称 + * "Days" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;参数范围:[7,36500],0代表不启用 + * "ArchivalDays" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为归档存储类型;参数范围:[7,36500],0代表不启用 + * "IADays" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为低频存储类型;参数范围:[7,36500],0代表不启用 + * ] + * + * Outputs: + * + * $outputs = [ + * "LifeCycleId" => (string) 生命周期Id + * ] + * + * @return CreateUFileLifeCycleResponse + * @throws UCloudException + */ + public function createUFileLifeCycle(CreateUFileLifeCycleRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateUFileLifeCycleResponse($resp->toArray(), $resp->getRequestId()); + } + /** * CreateUFileToken - 创建US3令牌 * @@ -143,6 +185,34 @@ public function deleteBucket(DeleteBucketRequest $request = null) return new DeleteBucketResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DeleteUFileLifeCycle - 删除生命周期管理 + * + * See also: https://docs.ucloud.cn/api/ufile-api/delete_ufile_life_cycle + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "LifeCycleId" => (string) 生命周期Id + * "BucketName" => (string) 存储空间名称 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteUFileLifeCycleResponse + * @throws UCloudException + */ + public function deleteUFileLifeCycle(DeleteUFileLifeCycleRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteUFileLifeCycleResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DeleteUFileToken - 删除令牌 * @@ -219,6 +289,46 @@ public function describeBucket(DescribeBucketRequest $request = null) return new DescribeBucketResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeUFileLifeCycle - 获取生命周期信息 + * + * See also: https://docs.ucloud.cn/api/ufile-api/describe_ufile_life_cycle + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "BucketName" => (string) 存储空间名称 + * "LifeCycleId" => (string) 生命周期Id;不传递此参数拉取存储空间下面的所有生命周期信息 + * ] + * + * Outputs: + * + * $outputs = [ + * "DateSet" => (array) 生命周期信息[ + * [ + * "LifeCycleId" => (string) 生命周期Id + * "LifeCycleName" => (string) 生命周期名称 + * "Prefix" => (string) 生命周期所适用的前缀;*为整个存储空间文件; + * "Days" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除,0代表不启用; + * "Status" => (string) Enabled -- 启用,Disabled -- 不启用 + * "BucketName" => (string) 存储空间名称 + * "ArchivalDays" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型,0代表不启用; + * "IADays" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型,0代表不启用; + * ] + * ] + * ] + * + * @return DescribeUFileLifeCycleResponse + * @throws UCloudException + */ + public function describeUFileLifeCycle(DescribeUFileLifeCycleRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUFileLifeCycleResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeUFileToken - 获取令牌信息 * @@ -289,7 +399,7 @@ public function describeUFileToken(DescribeUFileTokenRequest $request = null) * "IdleFlow" => (number) 闲时流量;单位byte;海外无此字段 * "BusyFlow" => (number) 忙时流量;单位byte;海外无此字段 * "CdnFlow" => (number) cdn回源流量;单位byte - * "ApiTimes" => (number) API请求次数(次) + * "ApiTimes" => (number) API请求次数(万次) * ] * ] * "Daily" => (array) 日消费情况[ @@ -304,7 +414,7 @@ public function describeUFileToken(DescribeUFileTokenRequest $request = null) * "CdnFlow" => (number) cdn回源流量;单位byte * "Flow" => (number) 下载流量:单位byte;国内无此字段 * "Date" => (integer) 配额消费时间,unix时间戳(单位s),精确到日期 - * "ApiTimes" => (number) API请求次数(次) + * "ApiTimes" => (number) API请求次数(万次) * ] * ] * ] @@ -514,6 +624,40 @@ public function updateBucket(UpdateBucketRequest $request = null) return new UpdateBucketResponse($resp->toArray(), $resp->getRequestId()); } + /** + * UpdateUFileLifeCycle - 更新生命周期管理 + * + * See also: https://docs.ucloud.cn/api/ufile-api/update_ufile_life_cycle + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "LifeCycleId" => (string) 生命周期Id + * "LifeCycleName" => (string) 生命周期名称 + * "Prefix" => (string) 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀; + * "Status" => (string) Enabled -- 启用,Disabled -- 不启用 + * "BucketName" => (string) 存储空间名称 + * "Days" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500] + * "ArchivalDays" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型;范围: [7,36500],0代表不启用 + * "IADays" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型;范围: [7,36500],0代表不启用 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateUFileLifeCycleResponse + * @throws UCloudException + */ + public function updateUFileLifeCycle(UpdateUFileLifeCycleRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateUFileLifeCycleResponse($resp->toArray(), $resp->getRequestId()); + } + /** * UpdateUFileToken - 更新令牌的操作权限,可操作key的前缀,可操作bucket和令牌超时时间点 * diff --git a/src/UHost/Apis/CopyCustomImageRequest.php b/src/UHost/Apis/CopyCustomImageRequest.php index 1ba80ca2..78e8ce49 100644 --- a/src/UHost/Apis/CopyCustomImageRequest.php +++ b/src/UHost/Apis/CopyCustomImageRequest.php @@ -1,6 +1,6 @@ Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\Preemptive计费为抢占式实例 \\ 默认为月付 + * ChargeType: 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\Preemptive计费为抢占式实例(内测阶段) \\ 默认为月付 * * @return string|null */ @@ -241,7 +240,7 @@ public function getChargeType() } /** - * ChargeType: 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\Preemptive计费为抢占式实例 \\ 默认为月付 + * ChargeType: 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\Preemptive计费为抢占式实例(内测阶段) \\ 默认为月付 * * @param string $chargeType */ diff --git a/src/UHost/Apis/CreateUHostInstanceResponse.php b/src/UHost/Apis/CreateUHostInstanceResponse.php index 7351b387..d9e367d6 100644 --- a/src/UHost/Apis/CreateUHostInstanceResponse.php +++ b/src/UHost/Apis/CreateUHostInstanceResponse.php @@ -1,6 +1,6 @@ NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT(SNAPSHOT模式目前仅在上海C支持),快照 \\当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE + * BackupType: 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE * * @return string|null */ @@ -93,7 +93,7 @@ public function getBackupType() } /** - * BackupType: 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT(SNAPSHOT模式目前仅在上海C支持),快照 \\当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE + * BackupType: 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE * * @param string $backupType */ diff --git a/src/UHost/Params/CreateUHostInstanceParamFeatures.php b/src/UHost/Params/CreateUHostInstanceParamFeatures.php index d8fac1c4..1422c187 100644 --- a/src/UHost/Params/CreateUHostInstanceParamFeatures.php +++ b/src/UHost/Params/CreateUHostInstanceParamFeatures.php @@ -1,6 +1,6 @@ set("ShareBandwidthId", $shareBandwidthId); } - /** - * GlobalSSH: - * - * @return CreateUHostInstanceParamNetworkInterfaceEIPGlobalSSH|null - */ - public function getGlobalSSH() - { - return new CreateUHostInstanceParamNetworkInterfaceEIPGlobalSSH($this->get("GlobalSSH")); - } - - /** - * GlobalSSH: - * - * @param CreateUHostInstanceParamNetworkInterfaceEIPGlobalSSH $globalSSH - */ - public function setGlobalSSH(array $globalSSH) - { - $this->set("GlobalSSH", $globalSSH->getAll()); - } - /** * OperatorName: 【若绑定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 * diff --git a/src/UHost/Params/CreateUHostInstanceParamNetworkInterfaceIPv6.php b/src/UHost/Params/CreateUHostInstanceParamNetworkInterfaceIPv6.php index d8c3a58c..fe2d2c71 100644 --- a/src/UHost/Params/CreateUHostInstanceParamNetworkInterfaceIPv6.php +++ b/src/UHost/Params/CreateUHostInstanceParamNetworkInterfaceIPv6.php @@ -1,6 +1,6 @@ (string) 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 * "Type" => (string) 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 * "Size" => (integer) 磁盘大小,单位GB,必须是10GB的整数倍。请参考[[api:uhost-api:disk_type|磁盘类型]]。 - * "BackupType" => (string) 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT(SNAPSHOT模式目前仅在上海C支持),快照 \\当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE + * "BackupType" => (string) 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE * "Encrypted" => (boolean) 【功能仅部分可用区开放,详询技术支持】磁盘是否加密。加密:true, 不加密: false加密必须传入对应的的KmsKeyId,默认值false * "KmsKeyId" => (string) 【功能仅部分可用区开放,详询技术支持】kms key id。选择加密盘时必填。 * "CouponId" => (string) 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看 @@ -213,7 +213,7 @@ public function createIsolationGroup(CreateIsolationGroupRequest $request = null * "Password" => (string) UHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。 * "Name" => (string) UHost实例名称。默认:UHost。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。 * "Tag" => (string) 业务组。默认:Default(Default即为未分组)。请遵照[[api:uhost-api:specification|字段规范]]设定业务组。 - * "ChargeType" => (string) 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\Preemptive计费为抢占式实例 \\ 默认为月付 + * "ChargeType" => (string) 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\Preemptive计费为抢占式实例(内测阶段) \\ 默认为月付 * "Quantity" => (integer) 购买时长。默认:值 1。按小时购买(Dynamic/Postpay)时无需此参数。 月付时,此参数传0,代表购买至月末。 * "UHostType" => (string) 【建议后续不再使用】云主机机型(V1.0),在本字段和字段MachineType中,仅需要其中1个字段即可。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 * "CPU" => (integer) 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。 @@ -237,11 +237,6 @@ public function createIsolationGroup(CreateIsolationGroupRequest $request = null * "Bandwidth" => (integer) 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800] * "PayMode" => (string) 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. "Free":免费带宽模式,默认为 "Bandwidth" * "ShareBandwidthId" => (string) 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效 - * "GlobalSSH" => (object) [ - * "Area" => (string) 填写支持SSH访问IP的地区名称,如“洛杉矶”,“新加坡”,“香港”,“东京”,“华盛顿”,“法兰克福”。Area和AreaCode两者必填其中之一。 - * "Port" => (integer) SSH端口,1-65535且不能使用80,443端口 - * "AreaCode" => (string) GlobalSSH的地区编码,格式为区域航空港国际通用代码。Area和AreaCode两者必填其中之一。 - * ] * "OperatorName" => (string) 【若绑定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 * "CouponId" => (string) 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。 * ] diff --git a/src/UK8S/Apis/AddUK8SExistingUHostRequest.php b/src/UK8S/Apis/AddUK8SExistingUHostRequest.php index 968bd54d..a9313f13 100644 --- a/src/UK8S/Apis/AddUK8SExistingUHostRequest.php +++ b/src/UK8S/Apis/AddUK8SExistingUHostRequest.php @@ -1,6 +1,6 @@ "AddUK8SNodeGroup"]); + $this->markRequired("Region"); + $this->markRequired("NodeGroupName"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * NodeGroupName: 节点池名字 + * + * @return string|null + */ + public function getNodeGroupName() + { + return $this->get("NodeGroupName"); + } + + /** + * NodeGroupName: 节点池名字 + * + * @param string $nodeGroupName + */ + public function setNodeGroupName($nodeGroupName) + { + $this->set("NodeGroupName", $nodeGroupName); + } + + /** + * ClusterId: 集群ID + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 集群ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } + + /** + * ImageId: 镜像ID + * + * @return string|null + */ + public function getImageId() + { + return $this->get("ImageId"); + } + + /** + * ImageId: 镜像ID + * + * @param string $imageId + */ + public function setImageId($imageId) + { + $this->set("ImageId", $imageId); + } + + /** + * MachineType: 云主机机型。枚举值["N", "C", "G", "O", "OS"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + * + * @return string|null + */ + public function getMachineType() + { + return $this->get("MachineType"); + } + + /** + * MachineType: 云主机机型。枚举值["N", "C", "G", "O", "OS"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + * + * @param string $machineType + */ + public function setMachineType($machineType) + { + $this->set("MachineType", $machineType); + } + + /** + * MinimalCpuPlatform: 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake";"Intel/CascadelakeR"; “Amd/Epyc2”,"Amd/Auto"],默认值是"Intel/Auto" + * + * @return string|null + */ + public function getMinimalCpuPlatform() + { + return $this->get("MinimalCpuPlatform"); + } + + /** + * MinimalCpuPlatform: 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake";"Intel/CascadelakeR"; “Amd/Epyc2”,"Amd/Auto"],默认值是"Intel/Auto" + * + * @param string $minimalCpuPlatform + */ + public function setMinimalCpuPlatform($minimalCpuPlatform) + { + $this->set("MinimalCpuPlatform", $minimalCpuPlatform); + } + + /** + * CPU: GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) + * + * @return integer|null + */ + public function getCPU() + { + return $this->get("CPU"); + } + + /** + * CPU: GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) + * + * @param int $cpu + */ + public function setCPU($cpu) + { + $this->set("CPU", $cpu); + } + + /** + * Mem: 内存大小。单位:MB + * + * @return integer|null + */ + public function getMem() + { + return $this->get("Mem"); + } + + /** + * Mem: 内存大小。单位:MB + * + * @param int $mem + */ + public function setMem($mem) + { + $this->set("Mem", $mem); + } + + /** + * GpuType: GPU类型 + * + * @return string|null + */ + public function getGpuType() + { + return $this->get("GpuType"); + } + + /** + * GpuType: GPU类型 + * + * @param string $gpuType + */ + public function setGpuType($gpuType) + { + $this->set("GpuType", $gpuType); + } + + /** + * GPU: GPU卡核心数 + * + * @return integer|null + */ + public function getGPU() + { + return $this->get("GPU"); + } + + /** + * GPU: GPU卡核心数 + * + * @param int $gpu + */ + public function setGPU($gpu) + { + $this->set("GPU", $gpu); + } + + /** + * BootDiskType: 磁盘类型 + * + * @return string|null + */ + public function getBootDiskType() + { + return $this->get("BootDiskType"); + } + + /** + * BootDiskType: 磁盘类型 + * + * @param string $bootDiskType + */ + public function setBootDiskType($bootDiskType) + { + $this->set("BootDiskType", $bootDiskType); + } + + /** + * DataDiskSize: 数据磁盘大小 + * + * @return integer|null + */ + public function getDataDiskSize() + { + return $this->get("DataDiskSize"); + } + + /** + * DataDiskSize: 数据磁盘大小 + * + * @param int $dataDiskSize + */ + public function setDataDiskSize($dataDiskSize) + { + $this->set("DataDiskSize", $dataDiskSize); + } + + /** + * DataDiskType: 磁盘类型 + * + * @return string|null + */ + public function getDataDiskType() + { + return $this->get("DataDiskType"); + } + + /** + * DataDiskType: 磁盘类型 + * + * @param string $dataDiskType + */ + public function setDataDiskType($dataDiskType) + { + $this->set("DataDiskType", $dataDiskType); + } + + /** + * Tag: 业务组 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 业务组 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * ChargeType: 计费模式 + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费模式 + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } +} diff --git a/src/UK8S/Apis/AddUK8SNodeGroupResponse.php b/src/UK8S/Apis/AddUK8SNodeGroupResponse.php new file mode 100644 index 00000000..2047c4fd --- /dev/null +++ b/src/UK8S/Apis/AddUK8SNodeGroupResponse.php @@ -0,0 +1,44 @@ +get("NodeGroupId"); + } + + /** + * NodeGroupId: 节点池ID + * + * @param string $nodeGroupId + */ + public function setNodeGroupId($nodeGroupId) + { + $this->set("NodeGroupId", $nodeGroupId); + } +} diff --git a/src/UK8S/Apis/AddUK8SPHostNodeRequest.php b/src/UK8S/Apis/AddUK8SPHostNodeRequest.php index c55b9fdd..9413902d 100644 --- a/src/UK8S/Apis/AddUK8SPHostNodeRequest.php +++ b/src/UK8S/Apis/AddUK8SPHostNodeRequest.php @@ -1,6 +1,6 @@ "DescribeUK8SCluster"]); + $this->markRequired("Region"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 所属区域 + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 所属区域 + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目id + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目id + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ClusterId: k8s集群ID + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: k8s集群ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UK8S/Apis/DescribeUK8SClusterResponse.php b/src/UK8S/Apis/DescribeUK8SClusterResponse.php new file mode 100644 index 00000000..f0a397dd --- /dev/null +++ b/src/UK8S/Apis/DescribeUK8SClusterResponse.php @@ -0,0 +1,475 @@ +get("ClusterName"); + } + + /** + * ClusterName: 资源名字 + * + * @param string $clusterName + */ + public function setClusterName($clusterName) + { + $this->set("ClusterName", $clusterName); + } + + /** + * ClusterId: 集群ID + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 集群ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } + + /** + * VPCId: 所属VPC + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: 所属VPC + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * SubnetId: 所属子网 + * + * @return string|null + */ + public function getSubnetId() + { + return $this->get("SubnetId"); + } + + /** + * SubnetId: 所属子网 + * + * @param string $subnetId + */ + public function setSubnetId($subnetId) + { + $this->set("SubnetId", $subnetId); + } + + /** + * PodCIDR: Pod网段 + * + * @return string|null + */ + public function getPodCIDR() + { + return $this->get("PodCIDR"); + } + + /** + * PodCIDR: Pod网段 + * + * @param string $podCIDR + */ + public function setPodCIDR($podCIDR) + { + $this->set("PodCIDR", $podCIDR); + } + + /** + * ServiceCIDR: 服务网段 + * + * @return string|null + */ + public function getServiceCIDR() + { + return $this->get("ServiceCIDR"); + } + + /** + * ServiceCIDR: 服务网段 + * + * @param string $serviceCIDR + */ + public function setServiceCIDR($serviceCIDR) + { + $this->set("ServiceCIDR", $serviceCIDR); + } + + /** + * MasterCount: Master 节点数量 + * + * @return integer|null + */ + public function getMasterCount() + { + return $this->get("MasterCount"); + } + + /** + * MasterCount: Master 节点数量 + * + * @param int $masterCount + */ + public function setMasterCount($masterCount) + { + $this->set("MasterCount", $masterCount); + } + + /** + * MasterList: Master节点配置信息,具体参考UhostInfo。托管版不返回该信息 + * + * @return UhostInfo[]|null + */ + public function getMasterList() + { + $items = $this->get("MasterList"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UhostInfo($item)); + } + return $result; + } + + /** + * MasterList: Master节点配置信息,具体参考UhostInfo。托管版不返回该信息 + * + * @param UhostInfo[] $masterList + */ + public function setMasterList(array $masterList) + { + $result = []; + foreach ($masterList as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * NodeList: Node节点配置信息,具体参考UhostInfo + * + * @return UhostInfo[]|null + */ + public function getNodeList() + { + $items = $this->get("NodeList"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UhostInfo($item)); + } + return $result; + } + + /** + * NodeList: Node节点配置信息,具体参考UhostInfo + * + * @param UhostInfo[] $nodeList + */ + public function setNodeList(array $nodeList) + { + $result = []; + foreach ($nodeList as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * CreateTime: 创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * NodeCount: Node节点数量 + * + * @return integer|null + */ + public function getNodeCount() + { + return $this->get("NodeCount"); + } + + /** + * NodeCount: Node节点数量 + * + * @param int $nodeCount + */ + public function setNodeCount($nodeCount) + { + $this->set("NodeCount", $nodeCount); + } + + /** + * ApiServer: 集群apiserver地址 + * + * @return string|null + */ + public function getApiServer() + { + return $this->get("ApiServer"); + } + + /** + * ApiServer: 集群apiserver地址 + * + * @param string $apiServer + */ + public function setApiServer($apiServer) + { + $this->set("ApiServer", $apiServer); + } + + /** + * Status: 状态 + * + * @return string|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: 状态 + * + * @param string $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * ExternalApiServer: 集群外部apiserver地址 + * + * @return string|null + */ + public function getExternalApiServer() + { + return $this->get("ExternalApiServer"); + } + + /** + * ExternalApiServer: 集群外部apiserver地址 + * + * @param string $externalApiServer + */ + public function setExternalApiServer($externalApiServer) + { + $this->set("ExternalApiServer", $externalApiServer); + } + + /** + * KubeProxy: kube-proxy配置 + * + * @return KubeProxy|null + */ + public function getKubeProxy() + { + return new KubeProxy($this->get("KubeProxy")); + } + + /** + * KubeProxy: kube-proxy配置 + * + * @param KubeProxy $kubeProxy + */ + public function setKubeProxy(array $kubeProxy) + { + $this->set("KubeProxy", $kubeProxy->getAll()); + } + + /** + * Version: K8S版本 + * + * @return string|null + */ + public function getVersion() + { + return $this->get("Version"); + } + + /** + * Version: K8S版本 + * + * @param string $version + */ + public function setVersion($version) + { + $this->set("Version", $version); + } + + /** + * ClusterDomain: 自定义或者默认的clusterdomain + * + * @return string|null + */ + public function getClusterDomain() + { + return $this->get("ClusterDomain"); + } + + /** + * ClusterDomain: 自定义或者默认的clusterdomain + * + * @param string $clusterDomain + */ + public function setClusterDomain($clusterDomain) + { + $this->set("ClusterDomain", $clusterDomain); + } + + /** + * EtcdCert: 集群etcd服务证书 + * + * @return string|null + */ + public function getEtcdCert() + { + return $this->get("EtcdCert"); + } + + /** + * EtcdCert: 集群etcd服务证书 + * + * @param string $etcdCert + */ + public function setEtcdCert($etcdCert) + { + $this->set("EtcdCert", $etcdCert); + } + + /** + * EtcdKey: 集群etcd服务密钥 + * + * @return string|null + */ + public function getEtcdKey() + { + return $this->get("EtcdKey"); + } + + /** + * EtcdKey: 集群etcd服务密钥 + * + * @param string $etcdKey + */ + public function setEtcdKey($etcdKey) + { + $this->set("EtcdKey", $etcdKey); + } + + /** + * CACert: 集群CA根证书 + * + * @return string|null + */ + public function getCACert() + { + return $this->get("CACert"); + } + + /** + * CACert: 集群CA根证书 + * + * @param string $caCert + */ + public function setCACert($caCert) + { + $this->set("CACert", $caCert); + } + + /** + * MasterResourceStatus: Master配置预警:Normal正常;Warning 需要升级;Error 需要紧急升级; + * + * @return string|null + */ + public function getMasterResourceStatus() + { + return $this->get("MasterResourceStatus"); + } + + /** + * MasterResourceStatus: Master配置预警:Normal正常;Warning 需要升级;Error 需要紧急升级; + * + * @param string $masterResourceStatus + */ + public function setMasterResourceStatus($masterResourceStatus) + { + $this->set("MasterResourceStatus", $masterResourceStatus); + } +} diff --git a/src/UK8S/Apis/DescribeUK8SImageRequest.php b/src/UK8S/Apis/DescribeUK8SImageRequest.php index 667d9f13..3c4233ab 100644 --- a/src/UK8S/Apis/DescribeUK8SImageRequest.php +++ b/src/UK8S/Apis/DescribeUK8SImageRequest.php @@ -1,6 +1,6 @@ "ListUK8SNodeGroup"]); + $this->markRequired("Region"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ClusterId: 集群ID + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 集群ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UK8S/Apis/ListUK8SNodeGroupResponse.php b/src/UK8S/Apis/ListUK8SNodeGroupResponse.php new file mode 100644 index 00000000..c231c4e8 --- /dev/null +++ b/src/UK8S/Apis/ListUK8SNodeGroupResponse.php @@ -0,0 +1,57 @@ +get("NodeGroupList"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new NodeGroupSet($item)); + } + return $result; + } + + /** + * NodeGroupList: 节点池列表 + * + * @param NodeGroupSet[] $nodeGroupList + */ + public function setNodeGroupList(array $nodeGroupList) + { + $result = []; + foreach ($nodeGroupList as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UK8S/Apis/RemoveUK8SNodeGroupRequest.php b/src/UK8S/Apis/RemoveUK8SNodeGroupRequest.php new file mode 100644 index 00000000..52ef1e38 --- /dev/null +++ b/src/UK8S/Apis/RemoveUK8SNodeGroupRequest.php @@ -0,0 +1,112 @@ + "RemoveUK8SNodeGroup"]); + $this->markRequired("Region"); + $this->markRequired("NodeGroupId"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * NodeGroupId: 节点池Id + * + * @return string|null + */ + public function getNodeGroupId() + { + return $this->get("NodeGroupId"); + } + + /** + * NodeGroupId: 节点池Id + * + * @param string $nodeGroupId + */ + public function setNodeGroupId($nodeGroupId) + { + $this->set("NodeGroupId", $nodeGroupId); + } + + /** + * ClusterId: 集群id + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 集群id + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UK8S/Apis/RemoveUK8SNodeGroupResponse.php b/src/UK8S/Apis/RemoveUK8SNodeGroupResponse.php new file mode 100644 index 00000000..65d9f995 --- /dev/null +++ b/src/UK8S/Apis/RemoveUK8SNodeGroupResponse.php @@ -0,0 +1,26 @@ +get("Type"); + } + + /** + * Type: 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * DiskId: 磁盘长ID + * + * @return string|null + */ + public function getDiskId() + { + return $this->get("DiskId"); + } + + /** + * DiskId: 磁盘长ID + * + * @param string $diskId + */ + public function setDiskId($diskId) + { + $this->set("DiskId", $diskId); + } + + /** + * Name: UDisk名字(仅当磁盘是UDisk时返回) + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: UDisk名字(仅当磁盘是UDisk时返回) + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Drive: 磁盘盘符 + * + * @return string|null + */ + public function getDrive() + { + return $this->get("Drive"); + } + + /** + * Drive: 磁盘盘符 + * + * @param string $drive + */ + public function setDrive($drive) + { + $this->set("Drive", $drive); + } + + /** + * Size: 磁盘大小,单位: GB + * + * @return integer|null + */ + public function getSize() + { + return $this->get("Size"); + } + + /** + * Size: 磁盘大小,单位: GB + * + * @param int $size + */ + public function setSize($size) + { + $this->set("Size", $size); + } + + /** + * BackupType: 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。 + * + * @return string|null + */ + public function getBackupType() + { + return $this->get("BackupType"); + } + + /** + * BackupType: 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。 + * + * @param string $backupType + */ + public function setBackupType($backupType) + { + $this->set("BackupType", $backupType); + } + + /** + * IOPS: 当前主机的IOPS值 + * + * @return integer|null + */ + public function getIOPS() + { + return $this->get("IOPS"); + } + + /** + * IOPS: 当前主机的IOPS值 + * + * @param int $iops + */ + public function setIOPS($iops) + { + $this->set("IOPS", $iops); + } + + /** + * Encrypted: Yes: 加密 No: 非加密 + * + * @return string|null + */ + public function getEncrypted() + { + return $this->get("Encrypted"); + } + + /** + * Encrypted: Yes: 加密 No: 非加密 + * + * @param string $encrypted + */ + public function setEncrypted($encrypted) + { + $this->set("Encrypted", $encrypted); + } + + /** + * DiskType: LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK + * + * @return string|null + */ + public function getDiskType() + { + return $this->get("DiskType"); + } + + /** + * DiskType: LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK + * + * @param string $diskType + */ + public function setDiskType($diskType) + { + $this->set("DiskType", $diskType); + } + + /** + * IsBoot: True| False + * + * @return string|null + */ + public function getIsBoot() + { + return $this->get("IsBoot"); + } + + /** + * IsBoot: True| False + * + * @param string $isBoot + */ + public function setIsBoot($isBoot) + { + $this->set("IsBoot", $isBoot); + } +} diff --git a/src/UK8S/Models/IPSet.php b/src/UK8S/Models/IPSet.php new file mode 100644 index 00000000..4e347cbb --- /dev/null +++ b/src/UK8S/Models/IPSet.php @@ -0,0 +1,124 @@ +get("Type"); + } + + /** + * Type: 国际: Internation,BGP: Bgp,内网: Private + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * IPId: IP资源ID (内网IP无对应的资源ID) + * + * @return string|null + */ + public function getIPId() + { + return $this->get("IPId"); + } + + /** + * IPId: IP资源ID (内网IP无对应的资源ID) + * + * @param string $ipId + */ + public function setIPId($ipId) + { + $this->set("IPId", $ipId); + } + + /** + * IP: IP地址 + * + * @return string|null + */ + public function getIP() + { + return $this->get("IP"); + } + + /** + * IP: IP地址 + * + * @param string $ip + */ + public function setIP($ip) + { + $this->set("IP", $ip); + } + + /** + * Bandwidth: IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) + * + * @return integer|null + */ + public function getBandwidth() + { + return $this->get("Bandwidth"); + } + + /** + * Bandwidth: IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) + * + * @param int $bandwidth + */ + public function setBandwidth($bandwidth) + { + $this->set("Bandwidth", $bandwidth); + } + + /** + * Default: 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。 + * + * @return string|null + */ + public function getDefault() + { + return $this->get("Default"); + } + + /** + * Default: 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。 + * + * @param string $default + */ + public function setDefault($default) + { + $this->set("Default", $default); + } +} diff --git a/src/UK8S/Models/ImageInfo.php b/src/UK8S/Models/ImageInfo.php index ef07f86e..1cb1c239 100644 --- a/src/UK8S/Models/ImageInfo.php +++ b/src/UK8S/Models/ImageInfo.php @@ -1,6 +1,6 @@ get("NodeGroupId"); + } + + /** + * NodeGroupId: 节点池ID + * + * @param string $nodeGroupId + */ + public function setNodeGroupId($nodeGroupId) + { + $this->set("NodeGroupId", $nodeGroupId); + } + + /** + * NodeGroupName: 节点池名字 + * + * @return string|null + */ + public function getNodeGroupName() + { + return $this->get("NodeGroupName"); + } + + /** + * NodeGroupName: 节点池名字 + * + * @param string $nodeGroupName + */ + public function setNodeGroupName($nodeGroupName) + { + $this->set("NodeGroupName", $nodeGroupName); + } + + /** + * ImageId: 镜像ID + * + * @return string|null + */ + public function getImageId() + { + return $this->get("ImageId"); + } + + /** + * ImageId: 镜像ID + * + * @param string $imageId + */ + public function setImageId($imageId) + { + $this->set("ImageId", $imageId); + } + + /** + * MachineType: 机型 + * + * @return string|null + */ + public function getMachineType() + { + return $this->get("MachineType"); + } + + /** + * MachineType: 机型 + * + * @param string $machineType + */ + public function setMachineType($machineType) + { + $this->set("MachineType", $machineType); + } + + /** + * MinimalCpuPlatform: cpu平台 + * + * @return string|null + */ + public function getMinimalCpuPlatform() + { + return $this->get("MinimalCpuPlatform"); + } + + /** + * MinimalCpuPlatform: cpu平台 + * + * @param string $minimalCpuPlatform + */ + public function setMinimalCpuPlatform($minimalCpuPlatform) + { + $this->set("MinimalCpuPlatform", $minimalCpuPlatform); + } + + /** + * CPU: 虚拟CPU核数 + * + * @return integer|null + */ + public function getCPU() + { + return $this->get("CPU"); + } + + /** + * CPU: 虚拟CPU核数 + * + * @param int $cpu + */ + public function setCPU($cpu) + { + $this->set("CPU", $cpu); + } + + /** + * Mem: 内存大小 + * + * @return integer|null + */ + public function getMem() + { + return $this->get("Mem"); + } + + /** + * Mem: 内存大小 + * + * @param int $mem + */ + public function setMem($mem) + { + $this->set("Mem", $mem); + } + + /** + * GpuType: GPU类型 + * + * @return string|null + */ + public function getGpuType() + { + return $this->get("GpuType"); + } + + /** + * GpuType: GPU类型 + * + * @param string $gpuType + */ + public function setGpuType($gpuType) + { + $this->set("GpuType", $gpuType); + } + + /** + * GPU: GPU卡核心数 + * + * @return integer|null + */ + public function getGPU() + { + return $this->get("GPU"); + } + + /** + * GPU: GPU卡核心数 + * + * @param int $gpu + */ + public function setGPU($gpu) + { + $this->set("GPU", $gpu); + } + + /** + * BootDiskType: 系统盘类型 + * + * @return string|null + */ + public function getBootDiskType() + { + return $this->get("BootDiskType"); + } + + /** + * BootDiskType: 系统盘类型 + * + * @param string $bootDiskType + */ + public function setBootDiskType($bootDiskType) + { + $this->set("BootDiskType", $bootDiskType); + } + + /** + * DataDiskSize: 数据盘大小 + * + * @return integer|null + */ + public function getDataDiskSize() + { + return $this->get("DataDiskSize"); + } + + /** + * DataDiskSize: 数据盘大小 + * + * @param int $dataDiskSize + */ + public function setDataDiskSize($dataDiskSize) + { + $this->set("DataDiskSize", $dataDiskSize); + } + + /** + * DataDiskType: 数据盘类型 + * + * @return string|null + */ + public function getDataDiskType() + { + return $this->get("DataDiskType"); + } + + /** + * DataDiskType: 数据盘类型 + * + * @param string $dataDiskType + */ + public function setDataDiskType($dataDiskType) + { + $this->set("DataDiskType", $dataDiskType); + } + + /** + * Tag: 业务组 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 业务组 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * ChargeType: 付费方式 + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 付费方式 + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * NodeList: 节点id列表 + * + * @return string[]|null + */ + public function getNodeList() + { + return $this->get("NodeList"); + } + + /** + * NodeList: 节点id列表 + * + * @param string[] $nodeList + */ + public function setNodeList(array $nodeList) + { + $this->set("NodeList", $nodeList); + } +} diff --git a/src/UK8S/Models/NodeInfoV2.php b/src/UK8S/Models/NodeInfoV2.php index c81d9e61..b084e40e 100644 --- a/src/UK8S/Models/NodeInfoV2.php +++ b/src/UK8S/Models/NodeInfoV2.php @@ -1,6 +1,6 @@ get("Zone"); + } + + /** + * Zone: 所在机房 + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * Name: 主机名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 主机名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * CPU: Cpu数量 + * + * @return integer|null + */ + public function getCPU() + { + return $this->get("CPU"); + } + + /** + * CPU: Cpu数量 + * + * @param int $cpu + */ + public function setCPU($cpu) + { + $this->set("CPU", $cpu); + } + + /** + * Memory: 内存 + * + * @return integer|null + */ + public function getMemory() + { + return $this->get("Memory"); + } + + /** + * Memory: 内存 + * + * @param int $memory + */ + public function setMemory($memory) + { + $this->set("Memory", $memory); + } + + /** + * IPSet: 节点IP信息 + * + * @return IPSet[]|null + */ + public function getIPSet() + { + $items = $this->get("IPSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new IPSet($item)); + } + return $result; + } + + /** + * IPSet: 节点IP信息 + * + * @param IPSet[] $ipSet + */ + public function setIPSet(array $ipSet) + { + $result = []; + foreach ($ipSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * DiskSet: 节点磁盘信息 + * + * @return DiskSet[]|null + */ + public function getDiskSet() + { + $items = $this->get("DiskSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new DiskSet($item)); + } + return $result; + } + + /** + * DiskSet: 节点磁盘信息 + * + * @param DiskSet[] $diskSet + */ + public function setDiskSet(array $diskSet) + { + $result = []; + foreach ($diskSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * NodeId: 主机ID + * + * @return string|null + */ + public function getNodeId() + { + return $this->get("NodeId"); + } + + /** + * NodeId: 主机ID + * + * @param string $nodeId + */ + public function setNodeId($nodeId) + { + $this->set("NodeId", $nodeId); + } + + /** + * OsName: 镜像信息 + * + * @return string|null + */ + public function getOsName() + { + return $this->get("OsName"); + } + + /** + * OsName: 镜像信息 + * + * @param string $osName + */ + public function setOsName($osName) + { + $this->set("OsName", $osName); + } + + /** + * CreateTime: 创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * ExpireTime: 到期时间 + * + * @return integer|null + */ + public function getExpireTime() + { + return $this->get("ExpireTime"); + } + + /** + * ExpireTime: 到期时间 + * + * @param int $expireTime + */ + public function setExpireTime($expireTime) + { + $this->set("ExpireTime", $expireTime); + } + + /** + * State: 主机状态 + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 主机状态 + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * NodeType: 节点类型:uhost表示云主机;uphost表示物理云主机 + * + * @return string|null + */ + public function getNodeType() + { + return $this->get("NodeType"); + } + + /** + * NodeType: 节点类型:uhost表示云主机;uphost表示物理云主机 + * + * @param string $nodeType + */ + public function setNodeType($nodeType) + { + $this->set("NodeType", $nodeType); + } +} diff --git a/src/UK8S/Params/CreateUK8SClusterV2ParamKubeProxy.php b/src/UK8S/Params/CreateUK8SClusterV2ParamKubeProxy.php index 1a8a5400..3fa6a636 100644 --- a/src/UK8S/Params/CreateUK8SClusterV2ParamKubeProxy.php +++ b/src/UK8S/Params/CreateUK8SClusterV2ParamKubeProxy.php @@ -1,6 +1,6 @@ toArray(), $resp->getRequestId()); } + /** + * AddUK8SNodeGroup - 添加UK8S节点池 + * + * See also: https://docs.ucloud.cn/api/uk8s-api/add_uk8s_node_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "NodeGroupName" => (string) 节点池名字 + * "ClusterId" => (string) 集群ID + * "ImageId" => (string) 镜像ID + * "MachineType" => (string) 云主机机型。枚举值["N", "C", "G", "O", "OS"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + * "MinimalCpuPlatform" => (string) 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake";"Intel/CascadelakeR"; “Amd/Epyc2”,"Amd/Auto"],默认值是"Intel/Auto" + * "CPU" => (integer) GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) + * "Mem" => (integer) 内存大小。单位:MB + * "GpuType" => (string) GPU类型 + * "GPU" => (integer) GPU卡核心数 + * "BootDiskType" => (string) 磁盘类型 + * "DataDiskSize" => (integer) 数据磁盘大小 + * "DataDiskType" => (string) 磁盘类型 + * "Tag" => (string) 业务组 + * "ChargeType" => (string) 计费模式 + * ] + * + * Outputs: + * + * $outputs = [ + * "NodeGroupId" => (string) 节点池ID + * ] + * + * @return AddUK8SNodeGroupResponse + * @throws UCloudException + */ + public function addUK8SNodeGroup(AddUK8SNodeGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new AddUK8SNodeGroupResponse($resp->toArray(), $resp->getRequestId()); + } + /** * AddUK8SPHostNode - 为UK8S集群添加一台或多台物理云主机类型的节点。 * @@ -303,6 +353,128 @@ public function delUK8SClusterNodeV2(DelUK8SClusterNodeV2Request $request = null return new DelUK8SClusterNodeV2Response($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeUK8SCluster - 获取集群信息 + * + * See also: https://docs.ucloud.cn/api/uk8s-api/describe_uk8s_cluster + * + * Arguments: + * + * $args = [ + * "Region" => (string) 所属区域 + * "ProjectId" => (string) 项目id + * "ClusterId" => (string) k8s集群ID + * ] + * + * Outputs: + * + * $outputs = [ + * "ClusterName" => (string) 资源名字 + * "ClusterId" => (string) 集群ID + * "VPCId" => (string) 所属VPC + * "SubnetId" => (string) 所属子网 + * "PodCIDR" => (string) Pod网段 + * "ServiceCIDR" => (string) 服务网段 + * "MasterCount" => (integer) Master 节点数量 + * "MasterList" => (array) Master节点配置信息,具体参考UhostInfo。托管版不返回该信息[ + * [ + * "Zone" => (string) 所在机房 + * "Name" => (string) 主机名称 + * "CPU" => (integer) Cpu数量 + * "Memory" => (integer) 内存 + * "IPSet" => (array) 节点IP信息[ + * [ + * "Type" => (string) 国际: Internation,BGP: Bgp,内网: Private + * "IPId" => (string) IP资源ID (内网IP无对应的资源ID) + * "IP" => (string) IP地址 + * "Bandwidth" => (integer) IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) + * "Default" => (string) 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。 + * ] + * ] + * "DiskSet" => (array) 节点磁盘信息[ + * [ + * "Type" => (string) 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk + * "DiskId" => (string) 磁盘长ID + * "Name" => (string) UDisk名字(仅当磁盘是UDisk时返回) + * "Drive" => (string) 磁盘盘符 + * "Size" => (integer) 磁盘大小,单位: GB + * "BackupType" => (string) 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。 + * "IOPS" => (integer) 当前主机的IOPS值 + * "Encrypted" => (string) Yes: 加密 No: 非加密 + * "DiskType" => (string) LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK + * "IsBoot" => (string) True| False + * ] + * ] + * "NodeId" => (string) 主机ID + * "OsName" => (string) 镜像信息 + * "CreateTime" => (integer) 创建时间 + * "ExpireTime" => (integer) 到期时间 + * "State" => (string) 主机状态 + * "NodeType" => (string) 节点类型:uhost表示云主机;uphost表示物理云主机 + * ] + * ] + * "NodeList" => (array) Node节点配置信息,具体参考UhostInfo[ + * [ + * "Zone" => (string) 所在机房 + * "Name" => (string) 主机名称 + * "CPU" => (integer) Cpu数量 + * "Memory" => (integer) 内存 + * "IPSet" => (array) 节点IP信息[ + * [ + * "Type" => (string) 国际: Internation,BGP: Bgp,内网: Private + * "IPId" => (string) IP资源ID (内网IP无对应的资源ID) + * "IP" => (string) IP地址 + * "Bandwidth" => (integer) IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) + * "Default" => (string) 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。 + * ] + * ] + * "DiskSet" => (array) 节点磁盘信息[ + * [ + * "Type" => (string) 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk + * "DiskId" => (string) 磁盘长ID + * "Name" => (string) UDisk名字(仅当磁盘是UDisk时返回) + * "Drive" => (string) 磁盘盘符 + * "Size" => (integer) 磁盘大小,单位: GB + * "BackupType" => (string) 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。 + * "IOPS" => (integer) 当前主机的IOPS值 + * "Encrypted" => (string) Yes: 加密 No: 非加密 + * "DiskType" => (string) LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK + * "IsBoot" => (string) True| False + * ] + * ] + * "NodeId" => (string) 主机ID + * "OsName" => (string) 镜像信息 + * "CreateTime" => (integer) 创建时间 + * "ExpireTime" => (integer) 到期时间 + * "State" => (string) 主机状态 + * "NodeType" => (string) 节点类型:uhost表示云主机;uphost表示物理云主机 + * ] + * ] + * "CreateTime" => (integer) 创建时间 + * "NodeCount" => (integer) Node节点数量 + * "ApiServer" => (string) 集群apiserver地址 + * "Status" => (string) 状态 + * "ExternalApiServer" => (string) 集群外部apiserver地址 + * "KubeProxy" => (object) kube-proxy配置[ + * "Mode" => (string) KubeProxy模式,枚举值为[ipvs,iptables] + * ] + * "Version" => (string) K8S版本 + * "ClusterDomain" => (string) 自定义或者默认的clusterdomain + * "EtcdCert" => (string) 集群etcd服务证书 + * "EtcdKey" => (string) 集群etcd服务密钥 + * "CACert" => (string) 集群CA根证书 + * "MasterResourceStatus" => (string) Master配置预警:Normal正常;Warning 需要升级;Error 需要紧急升级; + * ] + * + * @return DescribeUK8SClusterResponse + * @throws UCloudException + */ + public function describeUK8SCluster(DescribeUK8SClusterRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUK8SClusterResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeUK8SImage - 获取UK8S支持的Node节点操作系统,可基于该操作系统制定自定义镜像 * @@ -522,4 +694,78 @@ public function listUK8SClusterV2(ListUK8SClusterV2Request $request = null) $resp = $this->invoke($request); return new ListUK8SClusterV2Response($resp->toArray(), $resp->getRequestId()); } + + /** + * ListUK8SNodeGroup - 列出UK8S节点池 + * + * See also: https://docs.ucloud.cn/api/uk8s-api/list_uk8s_node_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ClusterId" => (string) 集群ID + * ] + * + * Outputs: + * + * $outputs = [ + * "NodeGroupList" => (array) 节点池列表[ + * [ + * "NodeGroupId" => (string) 节点池ID + * "NodeGroupName" => (string) 节点池名字 + * "ImageId" => (string) 镜像ID + * "MachineType" => (string) 机型 + * "MinimalCpuPlatform" => (string) cpu平台 + * "CPU" => (integer) 虚拟CPU核数 + * "Mem" => (integer) 内存大小 + * "GpuType" => (string) GPU类型 + * "GPU" => (integer) GPU卡核心数 + * "BootDiskType" => (string) 系统盘类型 + * "DataDiskSize" => (integer) 数据盘大小 + * "DataDiskType" => (string) 数据盘类型 + * "Tag" => (string) 业务组 + * "ChargeType" => (string) 付费方式 + * "NodeList" => (array) 节点id列表 + * ] + * ] + * ] + * + * @return ListUK8SNodeGroupResponse + * @throws UCloudException + */ + public function listUK8SNodeGroup(ListUK8SNodeGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUK8SNodeGroupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * RemoveUK8SNodeGroup - 删除UK8S节点池 + * + * See also: https://docs.ucloud.cn/api/uk8s-api/remove_uk8s_node_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "NodeGroupId" => (string) 节点池Id + * "ClusterId" => (string) 集群id + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return RemoveUK8SNodeGroupResponse + * @throws UCloudException + */ + public function removeUK8SNodeGroup(RemoveUK8SNodeGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new RemoveUK8SNodeGroupResponse($resp->toArray(), $resp->getRequestId()); + } } diff --git a/src/ULB/Apis/AllocateBackendRequest.php b/src/ULB/Apis/AllocateBackendRequest.php index 9d1945a6..300279aa 100644 --- a/src/ULB/Apis/AllocateBackendRequest.php +++ b/src/ULB/Apis/AllocateBackendRequest.php @@ -1,6 +1,6 @@ 云主机;UNI -> 虚拟网卡;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器;UHybrid->混合云主机;CUBE->Cube;默认值为UHost。报文转发模式不支持UDocker、UHybrid、CUBE + * ResourceType: 所添加的后端资源的类型,枚举值:UHost -> 云主机;UNI -> 虚拟网卡;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器;UHybrid->混合云主机;CUBE->Cube,USDP->智能大数据平台;默认值为UHost。报文转发模式不支持UDocker、UHybrid、CUBE * * @return string|null */ @@ -124,7 +124,7 @@ public function getResourceType() } /** - * ResourceType: 所添加的后端资源的类型,枚举值:UHost -> 云主机;UNI -> 虚拟网卡;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器;UHybrid->混合云主机;CUBE->Cube;默认值为UHost。报文转发模式不支持UDocker、UHybrid、CUBE + * ResourceType: 所添加的后端资源的类型,枚举值:UHost -> 云主机;UNI -> 虚拟网卡;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器;UHybrid->混合云主机;CUBE->Cube,USDP->智能大数据平台;默认值为UHost。报文转发模式不支持UDocker、UHybrid、CUBE * * @param string $resourceType */ @@ -234,7 +234,7 @@ public function setPort($port) } /** - * Weight: 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1 + * Weight: 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1 * * @return integer|null */ @@ -244,7 +244,7 @@ public function getWeight() } /** - * Weight: 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1 + * Weight: 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1 * * @param int $weight */ diff --git a/src/ULB/Apis/AllocateBackendResponse.php b/src/ULB/Apis/AllocateBackendResponse.php index f531b22a..a67d9236 100644 --- a/src/ULB/Apis/AllocateBackendResponse.php +++ b/src/ULB/Apis/AllocateBackendResponse.php @@ -1,6 +1,6 @@ "DescribeVServer"]); $this->markRequired("Region"); $this->markRequired("ProjectId"); - $this->markRequired("ULBId"); } diff --git a/src/ULB/Apis/DescribeVServerResponse.php b/src/ULB/Apis/DescribeVServerResponse.php index 0be387ba..b6ad20f0 100644 --- a/src/ULB/Apis/DescribeVServerResponse.php +++ b/src/ULB/Apis/DescribeVServerResponse.php @@ -1,6 +1,6 @@ "UpdateSSLAttribute"]); + $this->markRequired("Region"); + $this->markRequired("ProjectId"); + $this->markRequired("SSLId"); + $this->markRequired("SSLName"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SSLId: SSL的资源id + * + * @return string|null + */ + public function getSSLId() + { + return $this->get("SSLId"); + } + + /** + * SSLId: SSL的资源id + * + * @param string $sslId + */ + public function setSSLId($sslId) + { + $this->set("SSLId", $sslId); + } + + /** + * SSLName: SSL实例名称,不允许传空 + * + * @return string|null + */ + public function getSSLName() + { + return $this->get("SSLName"); + } + + /** + * SSLName: SSL实例名称,不允许传空 + * + * @param string $sslName + */ + public function setSSLName($sslName) + { + $this->set("SSLName", $sslName); + } +} diff --git a/src/ULB/Apis/UpdateSSLAttributeResponse.php b/src/ULB/Apis/UpdateSSLAttributeResponse.php new file mode 100644 index 00000000..1e111791 --- /dev/null +++ b/src/ULB/Apis/UpdateSSLAttributeResponse.php @@ -0,0 +1,26 @@ +get("DomainMatchMode"); + } + + /** + * DomainMatchMode: 内容转发规则中域名的匹配方式。枚举值:Regular,正则;Wildcard,泛域名 + * + * @param string $domainMatchMode + */ + public function setDomainMatchMode($domainMatchMode) + { + $this->set("DomainMatchMode", $domainMatchMode); + } + /** * PolicyId: 内容转发Id,默认内容转发类型下为空。 * diff --git a/src/ULB/Models/ULBSSLSet.php b/src/ULB/Models/ULBSSLSet.php index e4820f3e..6b67033d 100644 --- a/src/ULB/Models/ULBSSLSet.php +++ b/src/ULB/Models/ULBSSLSet.php @@ -1,6 +1,6 @@ set("MonitorType", $monitorType); } + /** + * ULBId: 负载均衡实例的Id + * + * @return string|null + */ + public function getULBId() + { + return $this->get("ULBId"); + } + + /** + * ULBId: 负载均衡实例的Id + * + * @param string $ulbId + */ + public function setULBId($ulbId) + { + $this->set("ULBId", $ulbId); + } + /** * Domain: 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名 * diff --git a/src/ULB/ULBClient.php b/src/ULB/ULBClient.php index dff26f54..ffdfadc5 100644 --- a/src/ULB/ULBClient.php +++ b/src/ULB/ULBClient.php @@ -1,6 +1,6 @@ (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "ULBId" => (string) 负载均衡实例的ID * "VServerId" => (string) VServer实例的ID - * "ResourceType" => (string) 所添加的后端资源的类型,枚举值:UHost -> 云主机;UNI -> 虚拟网卡;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器;UHybrid->混合云主机;CUBE->Cube;默认值为UHost。报文转发模式不支持UDocker、UHybrid、CUBE + * "ResourceType" => (string) 所添加的后端资源的类型,枚举值:UHost -> 云主机;UNI -> 虚拟网卡;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器;UHybrid->混合云主机;CUBE->Cube,USDP->智能大数据平台;默认值为UHost。报文转发模式不支持UDocker、UHybrid、CUBE * "ResourceId" => (string) 所添加的后端资源的资源ID * "ResourceIP" => (string) 所添加的后端服务器的资源实例IP,当ResourceType 为 UHybrid 时有效,且必填 * "VPCId" => (string) 所添加的后端服务器所在的vpc,当ResourceType 为 UHybrid 时有效,且必填 * "SubnetId" => (string) 所添加的后端服务器所在的子网,当ResourceType 为 UHybrid 时有效,且必填 * "Port" => (integer) 所添加的后端资源服务端口,取值范围[1-65535],默认80 - * "Weight" => (integer) 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1 + * "Weight" => (integer) 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1 * "Enabled" => (integer) 后端实例状态开关,枚举值: 1:启用; 0:禁用 默认为启用 * "IsBackup" => (integer) rs是否为backup,默认为00:普通rs1:backup的rs * ] @@ -480,6 +482,7 @@ public function describeSSL(DescribeSSLRequest $request = null) * "VServerSet" => (array) 负载均衡实例中存在的VServer实例列表,具体结构见下方 ULBVServerSet[ * [ * "MonitorType" => (string) 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测, Customize -> UDP检查请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize + * "ULBId" => (string) 负载均衡实例的Id * "Domain" => (string) 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名 * "Path" => (string) 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径 * "RequestMsg" => (string) 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文 @@ -531,6 +534,7 @@ public function describeSSL(DescribeSSLRequest $request = null) * "ListenType" => (string) 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发 * "PolicySet" => (array) 内容转发信息列表,具体结构见下方 ULBPolicySet[ * [ + * "DomainMatchMode" => (string) 内容转发规则中域名的匹配方式。枚举值:Regular,正则;Wildcard,泛域名 * "PolicyId" => (string) 内容转发Id,默认内容转发类型下为空。 * "PolicyType" => (string) 内容类型,枚举值:Custom -> 客户自定义;Default -> 默认内容转发 * "Type" => (string) 内容转发匹配字段的类型,枚举值:Domain -> 域名;Path -> 路径; 默认内容转发类型下为空 @@ -683,6 +687,7 @@ public function describeULBSimple(DescribeULBSimpleRequest $request = null) * "DataSet" => (array) VServer列表,每项参数详见 ULBVServerSet[ * [ * "MonitorType" => (string) 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测, Customize -> UDP检查请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize + * "ULBId" => (string) 负载均衡实例的Id * "Domain" => (string) 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名 * "Path" => (string) 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径 * "RequestMsg" => (string) 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文 @@ -734,6 +739,7 @@ public function describeULBSimple(DescribeULBSimpleRequest $request = null) * "ListenType" => (string) 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发 * "PolicySet" => (array) 内容转发信息列表,具体结构见下方 ULBPolicySet[ * [ + * "DomainMatchMode" => (string) 内容转发规则中域名的匹配方式。枚举值:Regular,正则;Wildcard,泛域名 * "PolicyId" => (string) 内容转发Id,默认内容转发类型下为空。 * "PolicyType" => (string) 内容类型,枚举值:Custom -> 客户自定义;Default -> 默认内容转发 * "Type" => (string) 内容转发匹配字段的类型,枚举值:Domain -> 域名;Path -> 路径; 默认内容转发类型下为空 @@ -890,6 +896,34 @@ public function updatePolicy(UpdatePolicyRequest $request = null) return new UpdatePolicyResponse($resp->toArray(), $resp->getRequestId()); } + /** + * UpdateSSLAttribute - 更新修改SSL的属性,如:修改SSLName + * + * See also: https://docs.ucloud.cn/api/ulb-api/update_ssl_attribute + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SSLId" => (string) SSL的资源id + * "SSLName" => (string) SSL实例名称,不允许传空 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateSSLAttributeResponse + * @throws UCloudException + */ + public function updateSSLAttribute(UpdateSSLAttributeRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateSSLAttributeResponse($resp->toArray(), $resp->getRequestId()); + } + /** * UpdateULBAttribute - 更新ULB名字业务组备注等属性字段 * diff --git a/src/UMem/Apis/CheckUDredisSpaceAllowanceRequest.php b/src/UMem/Apis/CheckUDredisSpaceAllowanceRequest.php index 70f17b83..ab5c6974 100644 --- a/src/UMem/Apis/CheckUDredisSpaceAllowanceRequest.php +++ b/src/UMem/Apis/CheckUDredisSpaceAllowanceRequest.php @@ -1,6 +1,6 @@ "DescribeUDRedisProxyInfo"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("SpaceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * SpaceId: udredis实例id + * + * @return string|null + */ + public function getSpaceId() + { + return $this->get("SpaceId"); + } + + /** + * SpaceId: udredis实例id + * + * @param string $spaceId + */ + public function setSpaceId($spaceId) + { + $this->set("SpaceId", $spaceId); + } +} diff --git a/src/UMem/Apis/DescribeUDRedisProxyInfoResponse.php b/src/UMem/Apis/DescribeUDRedisProxyInfoResponse.php new file mode 100644 index 00000000..84f89191 --- /dev/null +++ b/src/UMem/Apis/DescribeUDRedisProxyInfoResponse.php @@ -0,0 +1,57 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UDRedisProxyInfo($item)); + } + return $result; + } + + /** + * DataSet: 代理数据集 + * + * @param UDRedisProxyInfo[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UMem/Apis/DescribeUDRedisSlowlogRequest.php b/src/UMem/Apis/DescribeUDRedisSlowlogRequest.php index 0fef4bdd..ea357632 100644 --- a/src/UMem/Apis/DescribeUDRedisSlowlogRequest.php +++ b/src/UMem/Apis/DescribeUDRedisSlowlogRequest.php @@ -1,6 +1,6 @@ get("ResourceId"); + } + + /** + * ResourceId: 代理资源id + * + * @param string $resourceId + */ + public function setResourceId($resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * ProxyId: 代理id + * + * @return string|null + */ + public function getProxyId() + { + return $this->get("ProxyId"); + } + + /** + * ProxyId: 代理id + * + * @param string $proxyId + */ + public function setProxyId($proxyId) + { + $this->set("ProxyId", $proxyId); + } + + /** + * Vip: 代理ip + * + * @return string|null + */ + public function getVip() + { + return $this->get("Vip"); + } + + /** + * Vip: 代理ip + * + * @param string $vip + */ + public function setVip($vip) + { + $this->set("Vip", $vip); + } + + /** + * State: 代理状态 + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 代理状态 + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } +} diff --git a/src/UMem/Models/UDRedisSlowlogSet.php b/src/UMem/Models/UDRedisSlowlogSet.php index e6bba3e7..a1f6c84d 100644 --- a/src/UMem/Models/UDRedisSlowlogSet.php +++ b/src/UMem/Models/UDRedisSlowlogSet.php @@ -1,6 +1,6 @@ set("BlockId", $blockId); } - /** - * BlockVip: 分片ip - * - * @return string|null - */ - public function getBlockVip() - { - return $this->get("BlockVip"); - } - - /** - * BlockVip: 分片ip - * - * @param string $blockVip - */ - public function setBlockVip($blockVip) - { - $this->set("BlockVip", $blockVip); - } - /** * BlockPort: 分片端口 * @@ -102,26 +82,6 @@ public function setBlockSize($blockSize) $this->set("BlockSize", $blockSize); } - /** - * BlockUsedSize: 使用量单位MB - * - * @return integer|null - */ - public function getBlockUsedSize() - { - return $this->get("BlockUsedSize"); - } - - /** - * BlockUsedSize: 使用量单位MB - * - * @param int $blockUsedSize - */ - public function setBlockUsedSize($blockUsedSize) - { - $this->set("BlockUsedSize", $blockUsedSize); - } - /** * BlockState: 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中 SetPasswordFail //设置密码失败 * @@ -181,4 +141,44 @@ public function setBlockSlotEnd($blockSlotEnd) { $this->set("BlockSlotEnd", $blockSlotEnd); } + + /** + * BlockVip: 分片ip + * + * @return string|null + */ + public function getBlockVip() + { + return $this->get("BlockVip"); + } + + /** + * BlockVip: 分片ip + * + * @param string $blockVip + */ + public function setBlockVip($blockVip) + { + $this->set("BlockVip", $blockVip); + } + + /** + * BlockUsedSize: 使用量单位MB + * + * @return integer|null + */ + public function getBlockUsedSize() + { + return $this->get("BlockUsedSize"); + } + + /** + * BlockUsedSize: 使用量单位MB + * + * @param int $blockUsedSize + */ + public function setBlockUsedSize($blockUsedSize) + { + $this->set("BlockUsedSize", $blockUsedSize); + } } diff --git a/src/UMem/Models/UMemDataSet.php b/src/UMem/Models/UMemDataSet.php index d0ae3ed2..909e769d 100644 --- a/src/UMem/Models/UMemDataSet.php +++ b/src/UMem/Models/UMemDataSet.php @@ -1,6 +1,6 @@ toArray(), $resp->getRequestId()); } + /** + * DescribeUDRedisProxyInfo - 拉取udredis所有的代理信息 + * + * See also: https://docs.ucloud.cn/api/umem-api/describe_ud_redis_proxy_info + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "SpaceId" => (string) udredis实例id + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 代理数据集[ + * [ + * "ResourceId" => (string) 代理资源id + * "ProxyId" => (string) 代理id + * "Vip" => (string) 代理ip + * "State" => (string) 代理状态 + * ] + * ] + * ] + * + * @return DescribeUDRedisProxyInfoResponse + * @throws UCloudException + */ + public function describeUDRedisProxyInfo(DescribeUDRedisProxyInfoRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUDRedisProxyInfoResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeUDRedisSlowlog - 查询UDRedis慢日志 * @@ -642,9 +680,9 @@ public function describeUMemBackupURL(DescribeUMemBackupURLRequest $request = nu * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "Zone" => (string) 可用区。参见 [可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "SpaceId" => (string) UMem内存资源ID * "Offset" => (integer) 分页显示的起始偏移, 默认值为0 * "Limit" => (integer) 分页显示的条目数, 默认值为10 @@ -656,13 +694,13 @@ public function describeUMemBackupURL(DescribeUMemBackupURLRequest $request = nu * "DataSet" => (array) 分布式redis 分片信息[ * [ * "BlockId" => (string) 分片id - * "BlockVip" => (string) 分片ip * "BlockPort" => (integer) 分片端口 * "BlockSize" => (integer) 容量单位GB - * "BlockUsedSize" => (integer) 使用量单位MB * "BlockState" => (string) 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中 SetPasswordFail //设置密码失败 * "BlockSlotBegin" => (integer) 分片维护的键槽起始值 * "BlockSlotEnd" => (integer) 分片维护的键槽结束值 + * "BlockVip" => (string) 分片ip + * "BlockUsedSize" => (integer) 使用量单位MB * ] * ] * ] diff --git a/src/UNet/Apis/AllocateEIPRequest.php b/src/UNet/Apis/AllocateEIPRequest.php index 1971a196..d17f8120 100644 --- a/src/UNet/Apis/AllocateEIPRequest.php +++ b/src/UNet/Apis/AllocateEIPRequest.php @@ -1,6 +1,6 @@ set("Name", $name); } + /** + * Count: 购买EIP数量,默认值为1 + * + * @return integer|null + */ + public function getCount() + { + return $this->get("Count"); + } + + /** + * Count: 购买EIP数量,默认值为1 + * + * @param int $count + */ + public function setCount($count) + { + $this->set("Count", $count); + } + /** * Remark: 弹性IP的备注, 默认为空 * diff --git a/src/UNet/Apis/AllocateEIPResponse.php b/src/UNet/Apis/AllocateEIPResponse.php index f557d96d..44074257 100644 --- a/src/UNet/Apis/AllocateEIPResponse.php +++ b/src/UNet/Apis/AllocateEIPResponse.php @@ -1,6 +1,6 @@ "DescribeShareBandwidthPrice"]); + $this->markRequired("Region"); + $this->markRequired("ChargeType"); + $this->markRequired("ShareBandwidth"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ChargeType: 付费方式, 预付费:Year 按年,Month 按月,Dynamic 按需; + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 付费方式, 预付费:Year 按年,Month 按月,Dynamic 按需; + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * ShareBandwidth: 共享带宽值 + * + * @return integer|null + */ + public function getShareBandwidth() + { + return $this->get("ShareBandwidth"); + } + + /** + * ShareBandwidth: 共享带宽值 + * + * @param int $shareBandwidth + */ + public function setShareBandwidth($shareBandwidth) + { + $this->set("ShareBandwidth", $shareBandwidth); + } + + /** + * Quantity: 购买数量 + * + * @return integer|null + */ + public function getQuantity() + { + return $this->get("Quantity"); + } + + /** + * Quantity: 购买数量 + * + * @param int $quantity + */ + public function setQuantity($quantity) + { + $this->set("Quantity", $quantity); + } + + /** + * OperatorName: 香港地域支持:BGPPro和International。其他地域无需填写该字段 + * + * @return string|null + */ + public function getOperatorName() + { + return $this->get("OperatorName"); + } + + /** + * OperatorName: 香港地域支持:BGPPro和International。其他地域无需填写该字段 + * + * @param string $operatorName + */ + public function setOperatorName($operatorName) + { + $this->set("OperatorName", $operatorName); + } +} diff --git a/src/UNet/Apis/DescribeShareBandwidthPriceResponse.php b/src/UNet/Apis/DescribeShareBandwidthPriceResponse.php new file mode 100644 index 00000000..72759db6 --- /dev/null +++ b/src/UNet/Apis/DescribeShareBandwidthPriceResponse.php @@ -0,0 +1,44 @@ +get("TotalPrice"); + } + + /** + * TotalPrice: 共享带宽总价格 + * + * @param int $totalPrice + */ + public function setTotalPrice($totalPrice) + { + $this->set("TotalPrice", $totalPrice); + } +} diff --git a/src/UNet/Apis/DescribeShareBandwidthRequest.php b/src/UNet/Apis/DescribeShareBandwidthRequest.php index 45087cd6..6ad0ee49 100644 --- a/src/UNet/Apis/DescribeShareBandwidthRequest.php +++ b/src/UNet/Apis/DescribeShareBandwidthRequest.php @@ -1,6 +1,6 @@ "DescribeShareBandwidthUpdatePrice"]); + $this->markRequired("Region"); + $this->markRequired("ShareBandwidthId"); + $this->markRequired("ShareBandwidth"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ShareBandwidthId: 共享带宽Id + * + * @return string|null + */ + public function getShareBandwidthId() + { + return $this->get("ShareBandwidthId"); + } + + /** + * ShareBandwidthId: 共享带宽Id + * + * @param string $shareBandwidthId + */ + public function setShareBandwidthId($shareBandwidthId) + { + $this->set("ShareBandwidthId", $shareBandwidthId); + } + + /** + * ShareBandwidth: 共享带宽值 + * + * @return integer|null + */ + public function getShareBandwidth() + { + return $this->get("ShareBandwidth"); + } + + /** + * ShareBandwidth: 共享带宽值 + * + * @param int $shareBandwidth + */ + public function setShareBandwidth($shareBandwidth) + { + $this->set("ShareBandwidth", $shareBandwidth); + } +} diff --git a/src/UNet/Apis/DescribeShareBandwidthUpdatePriceResponse.php b/src/UNet/Apis/DescribeShareBandwidthUpdatePriceResponse.php new file mode 100644 index 00000000..9536329e --- /dev/null +++ b/src/UNet/Apis/DescribeShareBandwidthUpdatePriceResponse.php @@ -0,0 +1,44 @@ +get("Price"); + } + + /** + * Price: 共享带宽升降级价格 + * + * @param float $price + */ + public function setPrice($price) + { + $this->set("Price", $price); + } +} diff --git a/src/UNet/Apis/DisassociateEIPWithShareBandwidthRequest.php b/src/UNet/Apis/DisassociateEIPWithShareBandwidthRequest.php index 29a9aa08..59fbb55d 100644 --- a/src/UNet/Apis/DisassociateEIPWithShareBandwidthRequest.php +++ b/src/UNet/Apis/DisassociateEIPWithShareBandwidthRequest.php @@ -1,6 +1,6 @@ set("Zone", $zone); } + /** + * SubResourceName: 资源绑定的虚拟网卡的名称 + * + * @return string|null + */ + public function getSubResourceName() + { + return $this->get("SubResourceName"); + } + + /** + * SubResourceName: 资源绑定的虚拟网卡的名称 + * + * @param string $subResourceName + */ + public function setSubResourceName($subResourceName) + { + $this->set("SubResourceName", $subResourceName); + } + + /** + * SubResourceId: 资源绑定的虚拟网卡的ID + * + * @return string|null + */ + public function getSubResourceId() + { + return $this->get("SubResourceId"); + } + + /** + * SubResourceId: 资源绑定的虚拟网卡的ID + * + * @param string $subResourceId + */ + public function setSubResourceId($subResourceId) + { + $this->set("SubResourceId", $subResourceId); + } + + /** + * SubResourceType: 资源绑定的虚拟网卡的类型,“uni”,虚拟网卡。 + * + * @return string|null + */ + public function getSubResourceType() + { + return $this->get("SubResourceType"); + } + + /** + * SubResourceType: 资源绑定的虚拟网卡的类型,“uni”,虚拟网卡。 + * + * @param string $subResourceType + */ + public function setSubResourceType($subResourceType) + { + $this->set("SubResourceType", $subResourceType); + } + /** * Name: 名称 * @@ -123,7 +183,7 @@ public function setResourceID($resourceID) } /** - * ResourceType: 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计. + * ResourceType: 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,“uni”,虚拟网卡。 * * @return string|null */ @@ -133,7 +193,7 @@ public function getResourceType() } /** - * ResourceType: 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计. + * ResourceType: 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,“uni”,虚拟网卡。 * * @param string $resourceType */ diff --git a/src/UNet/Models/ShareBandwidthSet.php b/src/UNet/Models/ShareBandwidthSet.php index 590d3758..f8453340 100644 --- a/src/UNet/Models/ShareBandwidthSet.php +++ b/src/UNet/Models/ShareBandwidthSet.php @@ -1,6 +1,6 @@ (string) 地域。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 - * "OperatorName" => (string) 弹性IP线路,枚举值:国际线路, International;BGP线路:Bgp。使用BGP线路的地域:北京二、上海金融云、上海二、广州等,其他地域均使用国际线路。 + * "OperatorName" => (string) 弹性IP线路,枚举值:国际线路, International;BGP线路:Bgp;精品BGP:BGPPro。使用BGP线路的地域:北京二、上海金融云、上海二、广州等,其他地域均使用国际线路。使用BGPPro线路的地域:香港 * "Bandwidth" => (integer) 弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-10000] * "Tag" => (string) 业务组名称, 默认为 "Default" * "ChargeType" => (string) 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费,默认为按月付费。 @@ -105,6 +109,7 @@ class UNetClient extends Client * "PayMode" => (string) 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. 默认为 "Bandwidth".“PostAccurateBandwidth”:带宽后付费模式 * "ShareBandwidthId" => (string) 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效 * "Name" => (string) 弹性IP的名称, 默认为 "EIP" + * "Count" => (integer) 购买EIP数量,默认值为1 * "Remark" => (string) 弹性IP的备注, 默认为空 * "CouponId" => (string) 代金券ID, 默认不使用 * ] @@ -142,7 +147,7 @@ public function allocateEIP(AllocateEIPRequest $request = null) * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 * "Name" => (string) 共享带宽名字 * "ChargeType" => (string) 付费方式:Year 按年,Month 按月,Dynamic 按时; @@ -553,10 +558,10 @@ public function describeFirewall(DescribeFirewallRequest $request = null) * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "FWId" => (string) 防火墙ID - * "Limit" => (integer) 返回数据长度,默认为20,最大10000000 + * "Limit" => (integer) 返回数据长度,默认为20,最大1000 * "Offset" => (integer) 列表起始位置偏移量,默认为0 * ] * @@ -566,11 +571,14 @@ public function describeFirewall(DescribeFirewallRequest $request = null) * "ResourceSet" => (array) 资源列表,见 ResourceSet[ * [ * "Zone" => (integer) 可用区 + * "SubResourceName" => (string) 资源绑定的虚拟网卡的名称 + * "SubResourceId" => (string) 资源绑定的虚拟网卡的ID + * "SubResourceType" => (string) 资源绑定的虚拟网卡的类型,“uni”,虚拟网卡。 * "Name" => (string) 名称 * "PrivateIP" => (string) 内网IP * "Remark" => (string) 备注 * "ResourceID" => (string) 绑定该防火墙的资源id - * "ResourceType" => (string) 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计. + * "ResourceType" => (string) 绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,“uni”,虚拟网卡。 * "Status" => (integer) 状态 * "Tag" => (string) 业务组 * ] @@ -638,6 +646,65 @@ public function describeShareBandwidth(DescribeShareBandwidthRequest $request = return new DescribeShareBandwidthResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeShareBandwidthPrice - 获取共享带宽价格 + * + * See also: https://docs.ucloud.cn/api/unet-api/describe_share_bandwidth_price + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ChargeType" => (string) 付费方式, 预付费:Year 按年,Month 按月,Dynamic 按需; + * "ShareBandwidth" => (integer) 共享带宽值 + * "Quantity" => (integer) 购买数量 + * "OperatorName" => (string) 香港地域支持:BGPPro和International。其他地域无需填写该字段 + * ] + * + * Outputs: + * + * $outputs = [ + * "TotalPrice" => (integer) 共享带宽总价格 + * ] + * + * @return DescribeShareBandwidthPriceResponse + * @throws UCloudException + */ + public function describeShareBandwidthPrice(DescribeShareBandwidthPriceRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeShareBandwidthPriceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeShareBandwidthUpdatePrice - 获取共享带宽升级价格 + * + * See also: https://docs.ucloud.cn/api/unet-api/describe_share_bandwidth_update_price + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ShareBandwidthId" => (string) 共享带宽Id + * "ShareBandwidth" => (integer) 共享带宽值 + * ] + * + * Outputs: + * + * $outputs = [ + * "Price" => (number) 共享带宽升降级价格 + * ] + * + * @return DescribeShareBandwidthUpdatePriceResponse + * @throws UCloudException + */ + public function describeShareBandwidthUpdatePrice(DescribeShareBandwidthUpdatePriceRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeShareBandwidthUpdatePriceResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DisassociateEIPWithShareBandwidth - 将EIP移出共享带宽 * diff --git a/src/UPHost/Apis/CreatePHostImageRequest.php b/src/UPHost/Apis/CreatePHostImageRequest.php new file mode 100644 index 00000000..0203b8de --- /dev/null +++ b/src/UPHost/Apis/CreatePHostImageRequest.php @@ -0,0 +1,153 @@ + "CreatePHostImage"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("PHostId"); + $this->markRequired("ImageName"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * PHostId: UPHost实例ID + * + * @return string|null + */ + public function getPHostId() + { + return $this->get("PHostId"); + } + + /** + * PHostId: UPHost实例ID + * + * @param string $pHostId + */ + public function setPHostId($pHostId) + { + $this->set("PHostId", $pHostId); + } + + /** + * ImageName: 镜像名称 + * + * @return string|null + */ + public function getImageName() + { + return $this->get("ImageName"); + } + + /** + * ImageName: 镜像名称 + * + * @param string $imageName + */ + public function setImageName($imageName) + { + $this->set("ImageName", $imageName); + } + + /** + * ImageDescription: 镜像描述 + * + * @return string|null + */ + public function getImageDescription() + { + return $this->get("ImageDescription"); + } + + /** + * ImageDescription: 镜像描述 + * + * @param string $imageDescription + */ + public function setImageDescription($imageDescription) + { + $this->set("ImageDescription", $imageDescription); + } +} diff --git a/src/UPHost/Apis/CreatePHostImageResponse.php b/src/UPHost/Apis/CreatePHostImageResponse.php new file mode 100644 index 00000000..c81af50e --- /dev/null +++ b/src/UPHost/Apis/CreatePHostImageResponse.php @@ -0,0 +1,44 @@ +get("ImageId"); + } + + /** + * ImageId: 镜像ID + * + * @param string $imageId + */ + public function setImageId($imageId) + { + $this->set("ImageId", $imageId); + } +} diff --git a/src/UPHost/Apis/CreatePHostRequest.php b/src/UPHost/Apis/CreatePHostRequest.php index 05bf314b..0ce219ed 100644 --- a/src/UPHost/Apis/CreatePHostRequest.php +++ b/src/UPHost/Apis/CreatePHostRequest.php @@ -1,6 +1,6 @@ "ModifyPHostImageInfo"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ImageId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ImageId: 镜像ID + * + * @return string|null + */ + public function getImageId() + { + return $this->get("ImageId"); + } + + /** + * ImageId: 镜像ID + * + * @param string $imageId + */ + public function setImageId($imageId) + { + $this->set("ImageId", $imageId); + } + + /** + * Name: 镜像名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 镜像名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Remark: 备注 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 备注 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } +} diff --git a/src/UPHost/Apis/ModifyPHostImageInfoResponse.php b/src/UPHost/Apis/ModifyPHostImageInfoResponse.php new file mode 100644 index 00000000..64953717 --- /dev/null +++ b/src/UPHost/Apis/ModifyPHostImageInfoResponse.php @@ -0,0 +1,44 @@ +get("ImageId"); + } + + /** + * ImageId: 镜像ID + * + * @param string $imageId + */ + public function setImageId($imageId) + { + $this->set("ImageId", $imageId); + } +} diff --git a/src/UPHost/Apis/ModifyPHostInfoRequest.php b/src/UPHost/Apis/ModifyPHostInfoRequest.php index c328f126..378aaccf 100644 --- a/src/UPHost/Apis/ModifyPHostInfoRequest.php +++ b/src/UPHost/Apis/ModifyPHostInfoRequest.php @@ -1,6 +1,6 @@ "StopPHost"]); + $this->markRequired("Region"); + $this->markRequired("ProjectId"); + $this->markRequired("PHostId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * PHostId: PHost资源ID + * + * @return string|null + */ + public function getPHostId() + { + return $this->get("PHostId"); + } + + /** + * PHostId: PHost资源ID + * + * @param string $pHostId + */ + public function setPHostId($pHostId) + { + $this->set("PHostId", $pHostId); + } +} diff --git a/src/UPHost/Apis/StopPHostResponse.php b/src/UPHost/Apis/StopPHostResponse.php new file mode 100644 index 00000000..97ed6831 --- /dev/null +++ b/src/UPHost/Apis/StopPHostResponse.php @@ -0,0 +1,44 @@ +get("PHostId"); + } + + /** + * PHostId: PHost 的资源ID + * + * @param string $pHostId + */ + public function setPHostId($pHostId) + { + $this->set("PHostId", $pHostId); + } +} diff --git a/src/UPHost/Apis/TerminatePHostImageRequest.php b/src/UPHost/Apis/TerminatePHostImageRequest.php new file mode 100644 index 00000000..f1089c24 --- /dev/null +++ b/src/UPHost/Apis/TerminatePHostImageRequest.php @@ -0,0 +1,112 @@ + "TerminatePHostImage"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ImageId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ImageId: 自制镜像ID + * + * @return string|null + */ + public function getImageId() + { + return $this->get("ImageId"); + } + + /** + * ImageId: 自制镜像ID + * + * @param string $imageId + */ + public function setImageId($imageId) + { + $this->set("ImageId", $imageId); + } +} diff --git a/src/UPHost/Apis/TerminatePHostImageResponse.php b/src/UPHost/Apis/TerminatePHostImageResponse.php new file mode 100644 index 00000000..0d405ecd --- /dev/null +++ b/src/UPHost/Apis/TerminatePHostImageResponse.php @@ -0,0 +1,44 @@ +get("ImageId"); + } + + /** + * ImageId: 自制镜像ID + * + * @param string $imageId + */ + public function setImageId($imageId) + { + $this->set("ImageId", $imageId); + } +} diff --git a/src/UPHost/Apis/TerminatePHostRequest.php b/src/UPHost/Apis/TerminatePHostRequest.php index c56c01b1..bc79ccda 100644 --- a/src/UPHost/Apis/TerminatePHostRequest.php +++ b/src/UPHost/Apis/TerminatePHostRequest.php @@ -1,6 +1,6 @@ set("Version", $version); } + + /** + * ImageType: 枚举值:Base=>基础镜像,Custom=>自制镜像。 + * + * @return string|null + */ + public function getImageType() + { + return $this->get("ImageType"); + } + + /** + * ImageType: 枚举值:Base=>基础镜像,Custom=>自制镜像。 + * + * @param string $imageType + */ + public function setImageType($imageType) + { + $this->set("ImageType", $imageType); + } + + /** + * CreateTime: 裸金属2.0参数。镜像创建时间。 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 裸金属2.0参数。镜像创建时间。 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * State: 裸金属2.0参数。镜像当前状态。 + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 裸金属2.0参数。镜像当前状态。 + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * ImageSize: 裸金属2.0参数。镜像大小。 + * + * @return integer|null + */ + public function getImageSize() + { + return $this->get("ImageSize"); + } + + /** + * ImageSize: 裸金属2.0参数。镜像大小。 + * + * @param int $imageSize + */ + public function setImageSize($imageSize) + { + $this->set("ImageSize", $imageSize); + } + + /** + * ImageDescription: 镜像描述 + * + * @return string|null + */ + public function getImageDescription() + { + return $this->get("ImageDescription"); + } + + /** + * ImageDescription: 镜像描述 + * + * @param string $imageDescription + */ + public function setImageDescription($imageDescription) + { + $this->set("ImageDescription", $imageDescription); + } } diff --git a/src/UPHost/Models/PHostMachineTypeSet.php b/src/UPHost/Models/PHostMachineTypeSet.php index a377046f..28783c23 100644 --- a/src/UPHost/Models/PHostMachineTypeSet.php +++ b/src/UPHost/Models/PHostMachineTypeSet.php @@ -1,6 +1,6 @@ toArray(), $resp->getRequestId()); } + /** + * CreatePHostImage - 创建裸金属2.0用户自定义镜像 + * + * See also: https://docs.ucloud.cn/api/uphost-api/create_phost_image + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "PHostId" => (string) UPHost实例ID + * "ImageName" => (string) 镜像名称 + * "ImageDescription" => (string) 镜像描述 + * ] + * + * Outputs: + * + * $outputs = [ + * "ImageId" => (string) 镜像ID + * ] + * + * @return CreatePHostImageResponse + * @throws UCloudException + */ + public function createPHostImage(CreatePHostImageRequest $request = null) + { + $resp = $this->invoke($request); + return new CreatePHostImageResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeBaremetalMachineType - 获取裸金属机型的详细描述信息 * @@ -254,10 +293,10 @@ public function describePHost(DescribePHostRequest $request = null) * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "Zone" => (string) 可用区。参见 [可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) - * "ImageType" => (string) 镜像类别,枚举值,Base是基础镜像; + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ImageType" => (string) 镜像类别,枚举值,Base是基础镜像;Custom是自制镜像。 * "ImageId" => (array) 镜像ID * "Offset" => (integer) 数据偏移量,默认为0 * "Limit" => (integer) 返回数据长度,默认为20 @@ -276,6 +315,11 @@ public function describePHost(DescribePHostRequest $request = null) * "OsType" => (string) 操作系统类型 * "Support" => (array) 支持的机型 * "Version" => (string) 当前版本 + * "ImageType" => (string) 枚举值:Base=>基础镜像,Custom=>自制镜像。 + * "CreateTime" => (integer) 裸金属2.0参数。镜像创建时间。 + * "State" => (string) 裸金属2.0参数。镜像当前状态。 + * "ImageSize" => (integer) 裸金属2.0参数。镜像大小。 + * "ImageDescription" => (string) 镜像描述 * ] * ] * ] @@ -463,6 +507,37 @@ public function getPHostPrice(GetPHostPriceRequest $request = null) return new GetPHostPriceResponse($resp->toArray(), $resp->getRequestId()); } + /** + * ModifyPHostImageInfo - 修改自定义镜像名称和备注 + * + * See also: https://docs.ucloud.cn/api/uphost-api/modify_phost_image_info + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ImageId" => (string) 镜像ID + * "Name" => (string) 镜像名称 + * "Remark" => (string) 备注 + * ] + * + * Outputs: + * + * $outputs = [ + * "ImageId" => (string) 镜像ID + * ] + * + * @return ModifyPHostImageInfoResponse + * @throws UCloudException + */ + public function modifyPHostImageInfo(ModifyPHostImageInfoRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyPHostImageInfoResponse($resp->toArray(), $resp->getRequestId()); + } + /** * ModifyPHostInfo - 更改物理机信息 * @@ -680,6 +755,35 @@ public function startPHost(StartPHostRequest $request = null) return new StartPHostResponse($resp->toArray(), $resp->getRequestId()); } + /** + * StopPHost - 关闭物理机 + * + * See also: https://docs.ucloud.cn/api/uphost-api/stop_phost + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "PHostId" => (string) PHost资源ID + * ] + * + * Outputs: + * + * $outputs = [ + * "PHostId" => (string) PHost 的资源ID + * ] + * + * @return StopPHostResponse + * @throws UCloudException + */ + public function stopPHost(StopPHostRequest $request = null) + { + $resp = $this->invoke($request); + return new StopPHostResponse($resp->toArray(), $resp->getRequestId()); + } + /** * TerminatePHost - 删除物理云主机 * @@ -710,4 +814,33 @@ public function terminatePHost(TerminatePHostRequest $request = null) $resp = $this->invoke($request); return new TerminatePHostResponse($resp->toArray(), $resp->getRequestId()); } + + /** + * TerminatePHostImage - 删除裸金属2.0用户自定义镜像 + * + * See also: https://docs.ucloud.cn/api/uphost-api/terminate_phost_image + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ImageId" => (string) 自制镜像ID + * ] + * + * Outputs: + * + * $outputs = [ + * "ImageId" => (string) 自制镜像ID + * ] + * + * @return TerminatePHostImageResponse + * @throws UCloudException + */ + public function terminatePHostImage(TerminatePHostImageRequest $request = null) + { + $resp = $this->invoke($request); + return new TerminatePHostImageResponse($resp->toArray(), $resp->getRequestId()); + } } diff --git a/src/USMS/Apis/CreateUSMSSignatureRequest.php b/src/USMS/Apis/CreateUSMSSignatureRequest.php index 67926b09..08e363c0 100644 --- a/src/USMS/Apis/CreateUSMSSignatureRequest.php +++ b/src/USMS/Apis/CreateUSMSSignatureRequest.php @@ -1,6 +1,6 @@ set("UnsubscribeInfo", $unsubscribeInfo); } + + /** + * Instruction: 模板变量属性说明 + * + * @return string|null + */ + public function getInstruction() + { + return $this->get("Instruction"); + } + + /** + * Instruction: 模板变量属性说明 + * + * @param string $instruction + */ + public function setInstruction($instruction) + { + $this->set("Instruction", $instruction); + } } diff --git a/src/USMS/Apis/CreateUSMSTemplateResponse.php b/src/USMS/Apis/CreateUSMSTemplateResponse.php index 6be1e505..1b595967 100644 --- a/src/USMS/Apis/CreateUSMSTemplateResponse.php +++ b/src/USMS/Apis/CreateUSMSTemplateResponse.php @@ -1,6 +1,6 @@ set("Remark", $remark); } + + /** + * Instruction: 模板变量属性说明 + * + * @return string|null + */ + public function getInstruction() + { + return $this->get("Instruction"); + } + + /** + * Instruction: 模板变量属性说明 + * + * @param string $instruction + */ + public function setInstruction($instruction) + { + $this->set("Instruction", $instruction); + } } diff --git a/src/USMS/Apis/UpdateUSMSTemplateResponse.php b/src/USMS/Apis/UpdateUSMSTemplateResponse.php index 6485cf6a..589cf5d3 100644 --- a/src/USMS/Apis/UpdateUSMSTemplateResponse.php +++ b/src/USMS/Apis/UpdateUSMSTemplateResponse.php @@ -1,6 +1,6 @@ set("CreateTime", $createTime); } + + /** + * Instruction: 模板变量属性说明 + * + * @return string|null + */ + public function getInstruction() + { + return $this->get("Instruction"); + } + + /** + * Instruction: 模板变量属性说明 + * + * @param string $instruction + */ + public function setInstruction($instruction) + { + $this->set("Instruction", $instruction); + } } diff --git a/src/USMS/Models/ReceiptPerPhone.php b/src/USMS/Models/ReceiptPerPhone.php index 8021745a..222cc8d7 100644 --- a/src/USMS/Models/ReceiptPerPhone.php +++ b/src/USMS/Models/ReceiptPerPhone.php @@ -1,6 +1,6 @@ (boolean) 标记是否为国际短信。true:国际短信,false:国内短信,若不传值则默认该值为false * "Remark" => (string) 短信模板申请原因说明,字数不超过128,每个中文、符号、英文、数字等都计为1个字。 * "UnsubscribeInfo" => (string) 当Purpose为3时,也即会员推广类短信模板,该项必填。枚举值:TD退订、回T退订、回N退订、回TD退订、退订回T、退订回D、退订回TD、退订回复T、退订回复D、退订回复N、退订回复TD、拒收回T + * "Instruction" => (string) 模板变量属性说明 * ] * * Outputs: @@ -250,7 +251,7 @@ public function queryUSMSSignature(QueryUSMSSignatureRequest $request = null) * Arguments: * * $args = [ - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "TemplateId" => (string) 模板ID * ] * @@ -267,6 +268,7 @@ public function queryUSMSSignature(QueryUSMSSignatureRequest $request = null) * "Remark" => (string) 模板说明 * "ErrDesc" => (string) 审核失败原因 * "CreateTime" => (integer) 创建时间 + * "Instruction" => (string) 模板变量属性说明 * ] * ] * @@ -399,11 +401,12 @@ public function updateUSMSSignature(UpdateUSMSSignatureRequest $request = null) * Arguments: * * $args = [ - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "TemplateId" => (string) 短信模板ID * "Template" => (string) 新的模板内容。模板名称和模板内容必须提供一个,否则会报错。小于等于600个字 * "TemplateName" => (string) 新的模板名称。小于等于32个字,每个中文、英文、数组、符合都计为一个字 * "Remark" => (string) 短信模板申请原因说明,字数不超过128,每个中文、符号、英文、数字等都计为1个字。 + * "Instruction" => (string) 模板变量属性说明 * ] * * Outputs: diff --git a/src/VPC/Apis/AddSnatRuleRequest.php b/src/VPC/Apis/AddSnatRuleRequest.php index 531f0792..87a2d4a3 100644 --- a/src/VPC/Apis/AddSnatRuleRequest.php +++ b/src/VPC/Apis/AddSnatRuleRequest.php @@ -1,6 +1,6 @@ "CreateSnatDnatRule"]); + $this->markRequired("Region"); + $this->markRequired("PrivateIp"); + $this->markRequired("EIP"); + $this->markRequired("NATGWId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * PrivateIp: 内网P地址 + * + * @return string[]|null + */ + public function getPrivateIp() + { + return $this->get("PrivateIp"); + } + + /** + * PrivateIp: 内网P地址 + * + * @param string[] $privateIp + */ + public function setPrivateIp(array $privateIp) + { + $this->set("PrivateIp", $privateIp); + } + + /** + * EIP: EIP的IP地址。按入参顺序,PrivateIp与EIP一一对应建立映射关系。 + * + * @return string[]|null + */ + public function getEIP() + { + return $this->get("EIP"); + } + + /** + * EIP: EIP的IP地址。按入参顺序,PrivateIp与EIP一一对应建立映射关系。 + * + * @param string[] $eip + */ + public function setEIP(array $eip) + { + $this->set("EIP", $eip); + } + + /** + * NATGWId: 映射所使用的NAT网关资源ID + * + * @return string|null + */ + public function getNATGWId() + { + return $this->get("NATGWId"); + } + + /** + * NATGWId: 映射所使用的NAT网关资源ID + * + * @param string $natgwId + */ + public function setNATGWId($natgwId) + { + $this->set("NATGWId", $natgwId); + } +} diff --git a/src/VPC/Apis/CreateSnatDnatRuleResponse.php b/src/VPC/Apis/CreateSnatDnatRuleResponse.php new file mode 100644 index 00000000..7e8efb2e --- /dev/null +++ b/src/VPC/Apis/CreateSnatDnatRuleResponse.php @@ -0,0 +1,26 @@ + "DeleteSnatDnatRule"]); + $this->markRequired("Region"); + $this->markRequired("EIP"); + $this->markRequired("PrivateIp"); + $this->markRequired("NATGWId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * EIP: EIP的IP地址,PrivateIp与EIP需一一对应 + * + * @return string[]|null + */ + public function getEIP() + { + return $this->get("EIP"); + } + + /** + * EIP: EIP的IP地址,PrivateIp与EIP需一一对应 + * + * @param string[] $eip + */ + public function setEIP(array $eip) + { + $this->set("EIP", $eip); + } + + /** + * PrivateIp: 内网P地址 + * + * @return string[]|null + */ + public function getPrivateIp() + { + return $this->get("PrivateIp"); + } + + /** + * PrivateIp: 内网P地址 + * + * @param string[] $privateIp + */ + public function setPrivateIp(array $privateIp) + { + $this->set("PrivateIp", $privateIp); + } + + /** + * NATGWId: 映射所使用的NAT网关资源ID + * + * @return string|null + */ + public function getNATGWId() + { + return $this->get("NATGWId"); + } + + /** + * NATGWId: 映射所使用的NAT网关资源ID + * + * @param string $natgwId + */ + public function setNATGWId($natgwId) + { + $this->set("NATGWId", $natgwId); + } +} diff --git a/src/VPC/Apis/DeleteSnatDnatRuleResponse.php b/src/VPC/Apis/DeleteSnatDnatRuleResponse.php new file mode 100644 index 00000000..ab30db37 --- /dev/null +++ b/src/VPC/Apis/DeleteSnatDnatRuleResponse.php @@ -0,0 +1,26 @@ + "DescribeInstanceNetworkInterface"]); + $this->markRequired("Region"); + $this->markRequired("ProjectId"); + $this->markRequired("InstanceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 云主机ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 云主机ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * Offset: 默认为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 默认为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * Limit: 默认为20 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 默认为20 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } +} diff --git a/src/VPC/Apis/DescribeInstanceNetworkInterfaceResponse.php b/src/VPC/Apis/DescribeInstanceNetworkInterfaceResponse.php new file mode 100644 index 00000000..8fbc5b93 --- /dev/null +++ b/src/VPC/Apis/DescribeInstanceNetworkInterfaceResponse.php @@ -0,0 +1,57 @@ +get("NetworkInterfaceSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new NetworkInterface($item)); + } + return $result; + } + + /** + * NetworkInterfaceSet: 虚拟网卡信息 + * + * @param NetworkInterface[] $networkInterfaceSet + */ + public function setNetworkInterfaceSet(array $networkInterfaceSet) + { + $result = []; + foreach ($networkInterfaceSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/VPC/Apis/DescribeNATGWPolicyRequest.php b/src/VPC/Apis/DescribeNATGWPolicyRequest.php index 10e23620..6444957d 100644 --- a/src/VPC/Apis/DescribeNATGWPolicyRequest.php +++ b/src/VPC/Apis/DescribeNATGWPolicyRequest.php @@ -1,6 +1,6 @@ "DescribeNetworkInterface"]); + $this->markRequired("Region"); + $this->markRequired("ProjectId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * VPCId: 所属VPC + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: 所属VPC + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * SubnetId: 所属子网 + * + * @return string|null + */ + public function getSubnetId() + { + return $this->get("SubnetId"); + } + + /** + * SubnetId: 所属子网 + * + * @param string $subnetId + */ + public function setSubnetId($subnetId) + { + $this->set("SubnetId", $subnetId); + } + + /** + * InterfaceId: 虚拟网卡ID,可指定 0~n + * + * @return string[]|null + */ + public function getInterfaceId() + { + return $this->get("InterfaceId"); + } + + /** + * InterfaceId: 虚拟网卡ID,可指定 0~n + * + * @param string[] $interfaceId + */ + public function setInterfaceId(array $interfaceId) + { + $this->set("InterfaceId", $interfaceId); + } + + /** + * OnlyDefault: 若为true 只返回默认网卡默认为false + * + * @return boolean|null + */ + public function getOnlyDefault() + { + return $this->get("OnlyDefault"); + } + + /** + * OnlyDefault: 若为true 只返回默认网卡默认为false + * + * @param boolean $onlyDefault + */ + public function setOnlyDefault($onlyDefault) + { + $this->set("OnlyDefault", $onlyDefault); + } + + /** + * NoRecycled: 若为true 过滤绑定在回收站主机中的网卡。默认为false。 + * + * @return boolean|null + */ + public function getNoRecycled() + { + return $this->get("NoRecycled"); + } + + /** + * NoRecycled: 若为true 过滤绑定在回收站主机中的网卡。默认为false。 + * + * @param boolean $noRecycled + */ + public function setNoRecycled($noRecycled) + { + $this->set("NoRecycled", $noRecycled); + } + + /** + * Tag: 业务组 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 业务组 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * Limit: 默认为20 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 默认为20 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } + + /** + * Offset: 默认为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 默认为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } +} diff --git a/src/VPC/Apis/DescribeNetworkInterfaceResponse.php b/src/VPC/Apis/DescribeNetworkInterfaceResponse.php new file mode 100644 index 00000000..ab99edbc --- /dev/null +++ b/src/VPC/Apis/DescribeNetworkInterfaceResponse.php @@ -0,0 +1,77 @@ +get("NetworkInterfaceSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new NetworkInterface($item)); + } + return $result; + } + + /** + * NetworkInterfaceSet: 虚拟网卡信息 + * + * @param NetworkInterface[] $networkInterfaceSet + */ + public function setNetworkInterfaceSet(array $networkInterfaceSet) + { + $result = []; + foreach ($networkInterfaceSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * TotalCount: 虚拟网卡总数 + * + * @return integer|null + */ + public function getTotalCount() + { + return $this->get("TotalCount"); + } + + /** + * TotalCount: 虚拟网卡总数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } +} diff --git a/src/VPC/Apis/DescribeRouteTableRequest.php b/src/VPC/Apis/DescribeRouteTableRequest.php index 4fa575ef..0e1dc5b6 100644 --- a/src/VPC/Apis/DescribeRouteTableRequest.php +++ b/src/VPC/Apis/DescribeRouteTableRequest.php @@ -1,6 +1,6 @@ "DescribeSnatDnatRule"]); + $this->markRequired("Region"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * NATGWId: 获取NAT上添加的所有SnatDnatRule信息 + * + * @return string[]|null + */ + public function getNATGWId() + { + return $this->get("NATGWId"); + } + + /** + * NATGWId: 获取NAT上添加的所有SnatDnatRule信息 + * + * @param string[] $natgwId + */ + public function setNATGWId(array $natgwId) + { + $this->set("NATGWId", $natgwId); + } + + /** + * EIP: 获取EIP对应的SnatDnatRule信息 + * + * @return string[]|null + */ + public function getEIP() + { + return $this->get("EIP"); + } + + /** + * EIP: 获取EIP对应的SnatDnatRule信息 + * + * @param string[] $eip + */ + public function setEIP(array $eip) + { + $this->set("EIP", $eip); + } +} diff --git a/src/VPC/Apis/DescribeSnatDnatRuleResponse.php b/src/VPC/Apis/DescribeSnatDnatRuleResponse.php new file mode 100644 index 00000000..db3ea3ee --- /dev/null +++ b/src/VPC/Apis/DescribeSnatDnatRuleResponse.php @@ -0,0 +1,57 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new SnatDnatRuleInfo($item)); + } + return $result; + } + + /** + * DataSet: 规则信息 + * + * @param SnatDnatRuleInfo[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/VPC/Apis/DescribeSnatRuleRequest.php b/src/VPC/Apis/DescribeSnatRuleRequest.php index 3b971d23..34f11955 100644 --- a/src/VPC/Apis/DescribeSnatRuleRequest.php +++ b/src/VPC/Apis/DescribeSnatRuleRequest.php @@ -1,6 +1,6 @@ "UpdateNATGWSubnet"]); $this->markRequired("Region"); $this->markRequired("NATGWId"); - $this->markRequired("SubnetworkIds"); } /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -41,7 +40,7 @@ public function getRegion() } /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $region */ @@ -51,7 +50,7 @@ public function setRegion($region) } /** - * ProjectId: 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @return string|null */ @@ -61,7 +60,7 @@ public function getProjectId() } /** - * ProjectId: 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @param string $projectId */ diff --git a/src/VPC/Apis/UpdateNATGWSubnetResponse.php b/src/VPC/Apis/UpdateNATGWSubnetResponse.php index 1a44a2c6..0389787a 100644 --- a/src/VPC/Apis/UpdateNATGWSubnetResponse.php +++ b/src/VPC/Apis/UpdateNATGWSubnetResponse.php @@ -1,6 +1,6 @@ set("NATGWName", $natgwName); } - /** - * CreateTime: natgw创建时间 - * - * @return integer|null - */ - public function getCreateTime() - { - return $this->get("CreateTime"); - } - - /** - * CreateTime: natgw创建时间 - * - * @param int $createTime - */ - public function setCreateTime($createTime) - { - $this->set("CreateTime", $createTime); - } - /** * Tag: 业务组 * @@ -122,6 +102,26 @@ public function setRemark($remark) $this->set("Remark", $remark); } + /** + * CreateTime: natgw创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: natgw创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + /** * FirewallId: 绑定的防火墙Id * @@ -226,6 +226,46 @@ public function setIPSet(array $ipSet) return $result; } + /** + * VPCName: VPC名称 + * + * @return string|null + */ + public function getVPCName() + { + return $this->get("VPCName"); + } + + /** + * VPCName: VPC名称 + * + * @param string $vpcName + */ + public function setVPCName($vpcName) + { + $this->set("VPCName", $vpcName); + } + + /** + * IsSnatpoolEnabled: 枚举值,“enable”,默认出口规则使用了负载均衡;“disable”,默认出口规则未使用负载均衡。 + * + * @return string|null + */ + public function getIsSnatpoolEnabled() + { + return $this->get("IsSnatpoolEnabled"); + } + + /** + * IsSnatpoolEnabled: 枚举值,“enable”,默认出口规则使用了负载均衡;“disable”,默认出口规则未使用负载均衡。 + * + * @param string $isSnatpoolEnabled + */ + public function setIsSnatpoolEnabled($isSnatpoolEnabled) + { + $this->set("IsSnatpoolEnabled", $isSnatpoolEnabled); + } + /** * PolicyId: 转发策略Id * diff --git a/src/VPC/Models/NatGatewayIPSet.php b/src/VPC/Models/NatGatewayIPSet.php index 57ce4c2c..6d1f57a7 100644 --- a/src/VPC/Models/NatGatewayIPSet.php +++ b/src/VPC/Models/NatGatewayIPSet.php @@ -1,6 +1,6 @@ get("InterfaceId"); + } + + /** + * InterfaceId: 虚拟网卡资源ID + * + * @param string $interfaceId + */ + public function setInterfaceId($interfaceId) + { + $this->set("InterfaceId", $interfaceId); + } + + /** + * VPCId: 所属VPC + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: 所属VPC + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * SubnetId: 所属子网 + * + * @return string|null + */ + public function getSubnetId() + { + return $this->get("SubnetId"); + } + + /** + * SubnetId: 所属子网 + * + * @param string $subnetId + */ + public function setSubnetId($subnetId) + { + $this->set("SubnetId", $subnetId); + } + + /** + * PrivateIpSet: 关联内网IP。当前一个网卡仅支持绑定一个内网IP + * + * @return string[]|null + */ + public function getPrivateIpSet() + { + return $this->get("PrivateIpSet"); + } + + /** + * PrivateIpSet: 关联内网IP。当前一个网卡仅支持绑定一个内网IP + * + * @param string[] $privateIpSet + */ + public function setPrivateIpSet(array $privateIpSet) + { + $this->set("PrivateIpSet", $privateIpSet); + } + + /** + * MacAddress: 关联Mac + * + * @return string|null + */ + public function getMacAddress() + { + return $this->get("MacAddress"); + } + + /** + * MacAddress: 关联Mac + * + * @param string $macAddress + */ + public function setMacAddress($macAddress) + { + $this->set("MacAddress", $macAddress); + } + + /** + * Status: 绑定状态 + * + * @return integer|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: 绑定状态 + * + * @param int $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * PrivateIp: 网卡的内网IP信息 + * + * @return string[]|null + */ + public function getPrivateIp() + { + return $this->get("PrivateIp"); + } + + /** + * PrivateIp: 网卡的内网IP信息 + * + * @param string[] $privateIp + */ + public function setPrivateIp(array $privateIp) + { + $this->set("PrivateIp", $privateIp); + } + + /** + * Name: 虚拟网卡名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 虚拟网卡名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Netmask: 内网IP掩码 + * + * @return string|null + */ + public function getNetmask() + { + return $this->get("Netmask"); + } + + /** + * Netmask: 内网IP掩码 + * + * @param string $netmask + */ + public function setNetmask($netmask) + { + $this->set("Netmask", $netmask); + } + + /** + * Gateway: 默认网关 + * + * @return string|null + */ + public function getGateway() + { + return $this->get("Gateway"); + } + + /** + * Gateway: 默认网关 + * + * @param string $gateway + */ + public function setGateway($gateway) + { + $this->set("Gateway", $gateway); + } + + /** + * AttachInstanceId: 绑定实例资源ID + * + * @return string|null + */ + public function getAttachInstanceId() + { + return $this->get("AttachInstanceId"); + } + + /** + * AttachInstanceId: 绑定实例资源ID + * + * @param string $attachInstanceId + */ + public function setAttachInstanceId($attachInstanceId) + { + $this->set("AttachInstanceId", $attachInstanceId); + } + + /** + * Default: 是否是绑定实例的默认网卡 false:不是 true:是 + * + * @return boolean|null + */ + public function getDefault() + { + return $this->get("Default"); + } + + /** + * Default: 是否是绑定实例的默认网卡 false:不是 true:是 + * + * @param boolean $default + */ + public function setDefault($default) + { + $this->set("Default", $default); + } + + /** + * CreateTime: 创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * Remark: 备注 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 备注 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } + + /** + * Tag: 业务组 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 业务组 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * EIPIdSet: 虚拟网卡绑定的EIP ID信息 + * + * @return string[]|null + */ + public function getEIPIdSet() + { + return $this->get("EIPIdSet"); + } + + /** + * EIPIdSet: 虚拟网卡绑定的EIP ID信息 + * + * @param string[] $eipIdSet + */ + public function setEIPIdSet(array $eipIdSet) + { + $this->set("EIPIdSet", $eipIdSet); + } + + /** + * FirewallIdSet: 虚拟网卡绑定的防火墙ID信息 + * + * @return string[]|null + */ + public function getFirewallIdSet() + { + return $this->get("FirewallIdSet"); + } + + /** + * FirewallIdSet: 虚拟网卡绑定的防火墙ID信息 + * + * @param string[] $firewallIdSet + */ + public function setFirewallIdSet(array $firewallIdSet) + { + $this->set("FirewallIdSet", $firewallIdSet); + } + + /** + * PrivateIplimit: 网卡的内网IP配额信息 + * + * @return string[]|null + */ + public function getPrivateIplimit() + { + return $this->get("PrivateIplimit"); + } + + /** + * PrivateIplimit: 网卡的内网IP配额信息 + * + * @param string[] $privateIplimit + */ + public function setPrivateIplimit(array $privateIplimit) + { + $this->set("PrivateIplimit", $privateIplimit); + } +} diff --git a/src/VPC/Models/RouteRuleInfo.php b/src/VPC/Models/RouteRuleInfo.php index 523b61fa..5662235c 100644 --- a/src/VPC/Models/RouteRuleInfo.php +++ b/src/VPC/Models/RouteRuleInfo.php @@ -1,6 +1,6 @@ get("PrivateIp"); + } + + /** + * PrivateIp: 内网IP地址 + * + * @param string $privateIp + */ + public function setPrivateIp($privateIp) + { + $this->set("PrivateIp", $privateIp); + } + + /** + * NATGWId: 映射所使用的NAT网关资源ID + * + * @return string|null + */ + public function getNATGWId() + { + return $this->get("NATGWId"); + } + + /** + * NATGWId: 映射所使用的NAT网关资源ID + * + * @param string $natgwId + */ + public function setNATGWId($natgwId) + { + $this->set("NATGWId", $natgwId); + } + + /** + * EIP: EIP的IP地址 + * + * @return string|null + */ + public function getEIP() + { + return $this->get("EIP"); + } + + /** + * EIP: EIP的IP地址 + * + * @param string $eip + */ + public function setEIP($eip) + { + $this->set("EIP", $eip); + } +} diff --git a/src/VPC/Models/SubnetInfo.php b/src/VPC/Models/SubnetInfo.php index 4b83b086..76d3b34a 100644 --- a/src/VPC/Models/SubnetInfo.php +++ b/src/VPC/Models/SubnetInfo.php @@ -1,6 +1,6 @@ toArray(), $resp->getRequestId()); } + /** + * CreateSnatDnatRule - 调用接口后会自动创建内外网IP之间的SNAT和DNAT规则,支持TCP、UDP协议全端口 + * + * See also: https://docs.ucloud.cn/api/vpc2.0-api/create_snat_dnat_rule + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "PrivateIp" => (array) 内网P地址 + * "EIP" => (array) EIP的IP地址。按入参顺序,PrivateIp与EIP一一对应建立映射关系。 + * "NATGWId" => (string) 映射所使用的NAT网关资源ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return CreateSnatDnatRuleResponse + * @throws UCloudException + */ + public function createSnatDnatRule(CreateSnatDnatRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateSnatDnatRuleResponse($resp->toArray(), $resp->getRequestId()); + } + /** * CreateSubnet - 创建子网 * @@ -678,8 +717,8 @@ public function createVPCIntercom(CreateVPCIntercomRequest $request = null) * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "NATGWId" => (string) NAT网关Id * "ReleaseEip" => (boolean) 是否释放绑定的EIP。true:解绑并释放;false:只解绑不释放。默认为false * ] @@ -868,6 +907,35 @@ public function deleteSecondaryIp(DeleteSecondaryIpRequest $request = null) return new DeleteSecondaryIpResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DeleteSnatDnatRule - 删除NAT创建内外网IP映射规则 + * + * See also: https://docs.ucloud.cn/api/vpc2.0-api/delete_snat_dnat_rule + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "EIP" => (array) EIP的IP地址,PrivateIp与EIP需一一对应 + * "PrivateIp" => (array) 内网P地址 + * "NATGWId" => (string) 映射所使用的NAT网关资源ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteSnatDnatRuleResponse + * @throws UCloudException + */ + public function deleteSnatDnatRule(DeleteSnatDnatRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteSnatDnatRuleResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DeleteSnatRule - 删除指定的出口规则(SNAT规则) * @@ -1008,6 +1076,57 @@ public function deleteWhiteListResource(DeleteWhiteListResourceRequest $request return new DeleteWhiteListResourceResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeInstanceNetworkInterface - 展示云主机绑定的网卡信息 + * + * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_instance_network_interface + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 云主机ID + * "Offset" => (integer) 默认为0 + * "Limit" => (integer) 默认为20 + * ] + * + * Outputs: + * + * $outputs = [ + * "NetworkInterfaceSet" => (array) 虚拟网卡信息[ + * [ + * "InterfaceId" => (string) 虚拟网卡资源ID + * "VPCId" => (string) 所属VPC + * "SubnetId" => (string) 所属子网 + * "PrivateIpSet" => (array) 关联内网IP。当前一个网卡仅支持绑定一个内网IP + * "MacAddress" => (string) 关联Mac + * "Status" => (integer) 绑定状态 + * "PrivateIp" => (array) 网卡的内网IP信息 + * "Name" => (string) 虚拟网卡名称 + * "Netmask" => (string) 内网IP掩码 + * "Gateway" => (string) 默认网关 + * "AttachInstanceId" => (string) 绑定实例资源ID + * "Default" => (boolean) 是否是绑定实例的默认网卡 false:不是 true:是 + * "CreateTime" => (integer) 创建时间 + * "Remark" => (string) 备注 + * "Tag" => (string) 业务组 + * "EIPIdSet" => (array) 虚拟网卡绑定的EIP ID信息 + * "FirewallIdSet" => (array) 虚拟网卡绑定的防火墙ID信息 + * "PrivateIplimit" => (array) 网卡的内网IP配额信息 + * ] + * ] + * ] + * + * @return DescribeInstanceNetworkInterfaceResponse + * @throws UCloudException + */ + public function describeInstanceNetworkInterface(DescribeInstanceNetworkInterfaceRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeInstanceNetworkInterfaceResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeNATGW - 获取NAT网关信息 * @@ -1016,8 +1135,8 @@ public function deleteWhiteListResource(DeleteWhiteListResourceRequest $request * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "NATGWIds" => (array) NAT网关Id。默认为该项目下所有NAT网关 * "Offset" => (integer) 数据偏移量。默认为0 * "Limit" => (integer) 数据分页值。默认为20 @@ -1031,9 +1150,9 @@ public function deleteWhiteListResource(DeleteWhiteListResourceRequest $request * [ * "NATGWId" => (string) natgw id * "NATGWName" => (string) natgw名称 - * "CreateTime" => (integer) natgw创建时间 * "Tag" => (string) 业务组 * "Remark" => (string) 备注 + * "CreateTime" => (integer) natgw创建时间 * "FirewallId" => (string) 绑定的防火墙Id * "VPCId" => (string) 所属VPC Id * "SubnetSet" => (array) 子网 Id[ @@ -1057,6 +1176,8 @@ public function deleteWhiteListResource(DeleteWhiteListResourceRequest $request * ] * ] * ] + * "VPCName" => (string) VPC名称 + * "IsSnatpoolEnabled" => (string) 枚举值,“enable”,默认出口规则使用了负载均衡;“disable”,默认出口规则未使用负载均衡。 * "PolicyId" => (array) 转发策略Id * ] * ] @@ -1312,6 +1433,63 @@ public function describeNetworkAclEntry(DescribeNetworkAclEntryRequest $request return new DescribeNetworkAclEntryResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeNetworkInterface - 展示虚拟网卡信息 + * + * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_network_interface + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "VPCId" => (string) 所属VPC + * "SubnetId" => (string) 所属子网 + * "InterfaceId" => (array) 虚拟网卡ID,可指定 0~n + * "OnlyDefault" => (boolean) 若为true 只返回默认网卡默认为false + * "NoRecycled" => (boolean) 若为true 过滤绑定在回收站主机中的网卡。默认为false。 + * "Tag" => (string) 业务组 + * "Limit" => (integer) 默认为20 + * "Offset" => (integer) 默认为0 + * ] + * + * Outputs: + * + * $outputs = [ + * "NetworkInterfaceSet" => (array) 虚拟网卡信息[ + * [ + * "InterfaceId" => (string) 虚拟网卡资源ID + * "VPCId" => (string) 所属VPC + * "SubnetId" => (string) 所属子网 + * "PrivateIpSet" => (array) 关联内网IP。当前一个网卡仅支持绑定一个内网IP + * "MacAddress" => (string) 关联Mac + * "Status" => (integer) 绑定状态 + * "PrivateIp" => (array) 网卡的内网IP信息 + * "Name" => (string) 虚拟网卡名称 + * "Netmask" => (string) 内网IP掩码 + * "Gateway" => (string) 默认网关 + * "AttachInstanceId" => (string) 绑定实例资源ID + * "Default" => (boolean) 是否是绑定实例的默认网卡 false:不是 true:是 + * "CreateTime" => (integer) 创建时间 + * "Remark" => (string) 备注 + * "Tag" => (string) 业务组 + * "EIPIdSet" => (array) 虚拟网卡绑定的EIP ID信息 + * "FirewallIdSet" => (array) 虚拟网卡绑定的防火墙ID信息 + * "PrivateIplimit" => (array) 网卡的内网IP配额信息 + * ] + * ] + * "TotalCount" => (integer) 虚拟网卡总数 + * ] + * + * @return DescribeNetworkInterfaceResponse + * @throws UCloudException + */ + public function describeNetworkInterface(DescribeNetworkInterfaceRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeNetworkInterfaceResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeRouteTable - 获取路由表详细信息(包括路由策略) * @@ -1414,6 +1592,41 @@ public function describeSecondaryIp(DescribeSecondaryIpRequest $request = null) return new DescribeSecondaryIpResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeSnatDnatRule - 获取基于NAT创建的内外网IP映射规则信息 + * + * See also: https://docs.ucloud.cn/api/vpc2.0-api/describe_snat_dnat_rule + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "NATGWId" => (array) 获取NAT上添加的所有SnatDnatRule信息 + * "EIP" => (array) 获取EIP对应的SnatDnatRule信息 + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 规则信息[ + * [ + * "PrivateIp" => (string) 内网IP地址 + * "NATGWId" => (string) 映射所使用的NAT网关资源ID + * "EIP" => (string) EIP的IP地址 + * ] + * ] + * ] + * + * @return DescribeSnatDnatRuleResponse + * @throws UCloudException + */ + public function describeSnatDnatRule(DescribeSnatDnatRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeSnatDnatRuleResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeSnatRule - 获取Nat网关的出口规则(SNAT规则) * @@ -2115,8 +2328,8 @@ public function updateNATGWPolicy(UpdateNATGWPolicyRequest $request = null) * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目Id。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "NATGWId" => (string) NAT网关Id * "SubnetworkIds" => (array) NAT网关绑定的子网Id * ]