diff --git a/VERSION b/VERSION index b3682c13..cd3dcaaf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.49 +0.3.50 diff --git a/src/Sandbox/Apis/CreateSandboxSiteRequest.php b/src/Sandbox/Apis/CreateSandboxSiteRequest.php index e842717e..565b09b7 100644 --- a/src/Sandbox/Apis/CreateSandboxSiteRequest.php +++ b/src/Sandbox/Apis/CreateSandboxSiteRequest.php @@ -29,6 +29,7 @@ public function __construct() $this->markRequired("APIKey"); $this->markRequired("KeyID"); $this->markRequired("AccessCode"); + $this->markRequired("TemplateName"); } @@ -173,6 +174,26 @@ public function setAccessCode($accessCode) $this->set("AccessCode", $accessCode); } + /** + * TemplateName: 站点空间空间模版,格式:site-nc-ng,n为偶数 + * + * @return string|null + */ + public function getTemplateName() + { + return $this->get("TemplateName"); + } + + /** + * TemplateName: 站点空间空间模版,格式:site-nc-ng,n为偶数 + * + * @param string $templateName + */ + public function setTemplateName($templateName) + { + $this->set("TemplateName", $templateName); + } + /** * Envs: 环境变量,格式:["key=value"] * diff --git a/src/Sandbox/SandboxClient.php b/src/Sandbox/SandboxClient.php index 8739d64a..1eec4227 100644 --- a/src/Sandbox/SandboxClient.php +++ b/src/Sandbox/SandboxClient.php @@ -85,6 +85,7 @@ public function checkSandboxCustomDomain(CheckSandboxCustomDomainRequest $reques * "APIKey" => (string) 密钥 * "KeyID" => (string) 密钥ID * "AccessCode" => (string) 访问码 + * "TemplateName" => (string) 站点空间空间模版,格式:site-nc-ng,n为偶数 * "Envs" => (string) 环境变量,格式:["key=value"] * ] * diff --git a/src/UK8S/Apis/ModifyUK8SClusterNameRequest.php b/src/UK8S/Apis/ModifyUK8SClusterNameRequest.php new file mode 100644 index 00000000..8cd1a493 --- /dev/null +++ b/src/UK8S/Apis/ModifyUK8SClusterNameRequest.php @@ -0,0 +1,112 @@ + "ModifyUK8SClusterName"]); + $this->markRequired("Region"); + $this->markRequired("ClusterId"); + $this->markRequired("ClusterName"); + } + + + + /** + * 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); + } + + /** + * Region: 所在地域 + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 所在地域 + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * 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); + } + + /** + * ClusterName: 集群名称 + * + * @return string|null + */ + public function getClusterName() + { + return $this->get("ClusterName"); + } + + /** + * ClusterName: 集群名称 + * + * @param string $clusterName + */ + public function setClusterName($clusterName) + { + $this->set("ClusterName", $clusterName); + } +} diff --git a/src/UK8S/Apis/ModifyUK8SClusterNameResponse.php b/src/UK8S/Apis/ModifyUK8SClusterNameResponse.php new file mode 100644 index 00000000..52cd3552 --- /dev/null +++ b/src/UK8S/Apis/ModifyUK8SClusterNameResponse.php @@ -0,0 +1,26 @@ +toArray(), $resp->getRequestId()); } + /** + * ModifyUK8SClusterName - 修改k8s集群名称 + * + * See also: https://docs.ucloud.cn/api/uk8s-api/modify_uk8s_cluster_name + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID + * "Region" => (string) 所在地域 + * "ClusterId" => (string) 集群ID + * "ClusterName" => (string) 集群名称 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ModifyUK8SClusterNameResponse + * @throws UCloudException + */ + public function modifyUK8SClusterName(ModifyUK8SClusterNameRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyUK8SClusterNameResponse($resp->toArray(), $resp->getRequestId()); + } + /** * RemoveUK8SNodeGroup - 删除UK8S节点池 * diff --git a/src/UMem/Apis/CheckUDredisSpaceAllowanceRequest.php b/src/UMem/Apis/CheckUDredisSpaceAllowanceRequest.php index ab5c6974..f00249f7 100644 --- a/src/UMem/Apis/CheckUDredisSpaceAllowanceRequest.php +++ b/src/UMem/Apis/CheckUDredisSpaceAllowanceRequest.php @@ -1,6 +1,6 @@ "CreateScanHotBigKeys"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("GroupId"); + $this->markRequired("Type"); + } + + + + /** + * 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); + } + + /** + * GroupId: 资源id + * + * @return string|null + */ + public function getGroupId() + { + return $this->get("GroupId"); + } + + /** + * GroupId: 资源id + * + * @param string $groupId + */ + public function setGroupId($groupId) + { + $this->set("GroupId", $groupId); + } + + /** + * Type: 任务类型。"ScanBigKeys":扫大key,"ScanHotKeys":扫热key + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 任务类型。"ScanBigKeys":扫大key,"ScanHotKeys":扫热key + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * SpaceId: 分布式资源ID + * + * @return string|null + */ + public function getSpaceId() + { + return $this->get("SpaceId"); + } + + /** + * SpaceId: 分布式资源ID + * + * @param string $spaceId + */ + public function setSpaceId($spaceId) + { + $this->set("SpaceId", $spaceId); + } + + /** + * IsRetry: 是否要重试任务,如果是的话,TaskId必填 + * + * @return boolean|null + */ + public function getIsRetry() + { + return $this->get("IsRetry"); + } + + /** + * IsRetry: 是否要重试任务,如果是的话,TaskId必填 + * + * @param boolean $isRetry + */ + public function setIsRetry($isRetry) + { + $this->set("IsRetry", $isRetry); + } + + /** + * TaskId: 要重试的任务id + * + * @return string|null + */ + public function getTaskId() + { + return $this->get("TaskId"); + } + + /** + * TaskId: 要重试的任务id + * + * @param string $taskId + */ + public function setTaskId($taskId) + { + $this->set("TaskId", $taskId); + } +} diff --git a/src/UMem/Apis/CreateScanHotBigKeysResponse.php b/src/UMem/Apis/CreateScanHotBigKeysResponse.php new file mode 100644 index 00000000..fbdfa7c1 --- /dev/null +++ b/src/UMem/Apis/CreateScanHotBigKeysResponse.php @@ -0,0 +1,26 @@ + "CreateUDRedisUhproxy"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("SpaceId"); + $this->markRequired("CPU"); + } + + + + /** + * 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: UMem内存空间ID + * + * @return string|null + */ + public function getSpaceId() + { + return $this->get("SpaceId"); + } + + /** + * SpaceId: UMem内存空间ID + * + * @param string $spaceId + */ + public function setSpaceId($spaceId) + { + $this->set("SpaceId", $spaceId); + } + + /** + * CPU: 代理核数 + * + * @return integer|null + */ + public function getCPU() + { + return $this->get("CPU"); + } + + /** + * CPU: 代理核数 + * + * @param int $cpu + */ + public function setCPU($cpu) + { + $this->set("CPU", $cpu); + } + + /** + * Port: 代理端口, 默认为 6379 + * + * @return integer|null + */ + public function getPort() + { + return $this->get("Port"); + } + + /** + * Port: 代理端口, 默认为 6379 + * + * @param int $port + */ + public function setPort($port) + { + $this->set("Port", $port); + } + + /** + * ProxyCnt: 代理个数 + * + * @return integer|null + */ + public function getProxyCnt() + { + return $this->get("ProxyCnt"); + } + + /** + * ProxyCnt: 代理个数 + * + * @param int $proxyCnt + */ + public function setProxyCnt($proxyCnt) + { + $this->set("ProxyCnt", $proxyCnt); + } + + /** + * CouponId: 使用的代金券id + * + * @return string|null + */ + public function getCouponId() + { + return $this->get("CouponId"); + } + + /** + * CouponId: 使用的代金券id + * + * @param string $couponId + */ + public function setCouponId($couponId) + { + $this->set("CouponId", $couponId); + } +} diff --git a/src/UMem/Apis/CreateUDRedisUhproxyResponse.php b/src/UMem/Apis/CreateUDRedisUhproxyResponse.php new file mode 100644 index 00000000..eefafaed --- /dev/null +++ b/src/UMem/Apis/CreateUDRedisUhproxyResponse.php @@ -0,0 +1,44 @@ +get("ResourceId"); + } + + /** + * ResourceId: 代理资源id + * + * @param string $resourceId + */ + public function setResourceId($resourceId) + { + $this->set("ResourceId", $resourceId); + } +} diff --git a/src/UMem/Apis/CreateUMemBackupRequest.php b/src/UMem/Apis/CreateUMemBackupRequest.php index b8875d89..17138ebc 100644 --- a/src/UMem/Apis/CreateUMemBackupRequest.php +++ b/src/UMem/Apis/CreateUMemBackupRequest.php @@ -1,6 +1,6 @@ set("Quantity", $quantity); } + /** + * 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: 子网ID + * + * @return string|null + */ + public function getSubnetId() + { + return $this->get("SubnetId"); + } + + /** + * SubnetId: 子网ID + * + * @param string $subnetId + */ + public function setSubnetId($subnetId) + { + $this->set("SubnetId", $subnetId); + } + + /** + * Tag: 业务组名称 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 业务组名称 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * Password: URedis密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。 + * + * @return string|null + */ + public function getPassword() + { + return $this->get("Password"); + } + + /** + * Password: URedis密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。 + * + * @param string $password + */ + public function setPassword($password) + { + $this->set("Password", $password); + } + + /** + * SlaveZone: 跨机房UDRedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + * + * @return string|null + */ + public function getSlaveZone() + { + return $this->get("SlaveZone"); + } + + /** + * SlaveZone: 跨机房UDRedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + * + * @param string $slaveZone + */ + public function setSlaveZone($slaveZone) + { + $this->set("SlaveZone", $slaveZone); + } + + /** + * BlockCnt: 分片个数 + * + * @return integer|null + */ + public function getBlockCnt() + { + return $this->get("BlockCnt"); + } + + /** + * BlockCnt: 分片个数 + * + * @param int $blockCnt + */ + public function setBlockCnt($blockCnt) + { + $this->set("BlockCnt", $blockCnt); + } + + /** + * ClusterMode: "RWMode":表示创建读写分离版本;其他为创建普通版本 + * + * @return string|null + */ + public function getClusterMode() + { + return $this->get("ClusterMode"); + } + + /** + * ClusterMode: "RWMode":表示创建读写分离版本;其他为创建普通版本 + * + * @param string $clusterMode + */ + public function setClusterMode($clusterMode) + { + $this->set("ClusterMode", $clusterMode); + } + + /** + * Version: 分布式分片版本(默认版本是4.0,其他版本见DescribeUDRedisBlockVersion) + * + * @return string|null + */ + public function getVersion() + { + return $this->get("Version"); + } + + /** + * Version: 分布式分片版本(默认版本是4.0,其他版本见DescribeUDRedisBlockVersion) + * + * @param string $version + */ + public function setVersion($version) + { + $this->set("Version", $version); + } + + /** + * HighPerformance: 是否创建性能增强性。默认为false,或者不填,填true为性能增强型。 + * + * @return boolean|null + */ + public function getHighPerformance() + { + return $this->get("HighPerformance"); + } + + /** + * HighPerformance: 是否创建性能增强性。默认为false,或者不填,填true为性能增强型。 + * + * @param boolean $highPerformance + */ + public function setHighPerformance($highPerformance) + { + $this->set("HighPerformance", $highPerformance); + } + + /** + * ProxySize: 分布式代理CPU核数,不填或者传0时默认不创建代理 + * + * @return integer|null + */ + public function getProxySize() + { + return $this->get("ProxySize"); + } + + /** + * ProxySize: 分布式代理CPU核数,不填或者传0时默认不创建代理 + * + * @param int $proxySize + */ + public function setProxySize($proxySize) + { + $this->set("ProxySize", $proxySize); + } + + /** + * UlbMode: 是否创建负载均衡型分布式代理,true时表示创建负载均衡型代理 + * + * @return boolean|null + */ + public function getUlbMode() + { + return $this->get("UlbMode"); + } + + /** + * UlbMode: 是否创建负载均衡型分布式代理,true时表示创建负载均衡型代理 + * + * @param boolean $ulbMode + */ + public function setUlbMode($ulbMode) + { + $this->set("UlbMode", $ulbMode); + } + + /** + * Port: 分片端口, 默认为 6379 + * + * @return integer|null + */ + public function getPort() + { + return $this->get("Port"); + } + + /** + * Port: 分片端口, 默认为 6379 + * + * @param int $port + */ + public function setPort($port) + { + $this->set("Port", $port); + } + + /** + * ProxyPort: 代理端口, 默认为 6379 + * + * @return integer|null + */ + public function getProxyPort() + { + return $this->get("ProxyPort"); + } + + /** + * ProxyPort: 代理端口, 默认为 6379 + * + * @param int $proxyPort + */ + public function setProxyPort($proxyPort) + { + $this->set("ProxyPort", $proxyPort); + } + + /** + * BackupId: 备份ID,选择从该备份新建集群 + * + * @return string|null + */ + public function getBackupId() + { + return $this->get("BackupId"); + } + + /** + * BackupId: 备份ID,选择从该备份新建集群 + * + * @param string $backupId + */ + public function setBackupId($backupId) + { + $this->set("BackupId", $backupId); + } + + /** + * SpaceId: 集群ID,选择某个备份创建时,需要填写源集群ID + * + * @return string|null + */ + public function getSpaceId() + { + return $this->get("SpaceId"); + } + + /** + * SpaceId: 集群ID,选择某个备份创建时,需要填写源集群ID + * + * @param string $spaceId + */ + public function setSpaceId($spaceId) + { + $this->set("SpaceId", $spaceId); + } + + /** + * RollbackSpaceId: 如果是通过回档创建,该实例ID不为空 + * + * @return string|null + */ + public function getRollbackSpaceId() + { + return $this->get("RollbackSpaceId"); + } + + /** + * RollbackSpaceId: 如果是通过回档创建,该实例ID不为空 + * + * @param string $rollbackSpaceId + */ + public function setRollbackSpaceId($rollbackSpaceId) + { + $this->set("RollbackSpaceId", $rollbackSpaceId); + } + + /** + * RollbackTime: 要回档的时间戳 + * + * @return integer|null + */ + public function getRollbackTime() + { + return $this->get("RollbackTime"); + } + + /** + * RollbackTime: 要回档的时间戳 + * + * @param int $rollbackTime + */ + public function setRollbackTime($rollbackTime) + { + $this->set("RollbackTime", $rollbackTime); + } + /** * CouponId: 使用的代金券id * diff --git a/src/UMem/Apis/CreateUMemSpaceResponse.php b/src/UMem/Apis/CreateUMemSpaceResponse.php index 1947f7ac..93de34a0 100644 --- a/src/UMem/Apis/CreateUMemSpaceResponse.php +++ b/src/UMem/Apis/CreateUMemSpaceResponse.php @@ -1,6 +1,6 @@ set("VPCId", $vpcId); } + /** + * HighPerformance: 是否创建高性能Redis, 默认为false, 或者不填, 创建高性能为true + * + * @return boolean|null + */ + public function getHighPerformance() + { + return $this->get("HighPerformance"); + } + + /** + * HighPerformance: 是否创建高性能Redis, 默认为false, 或者不填, 创建高性能为true + * + * @param boolean $highPerformance + */ + public function setHighPerformance($highPerformance) + { + $this->set("HighPerformance", $highPerformance); + } + + /** + * Port: 端口 + * + * @return integer|null + */ + public function getPort() + { + return $this->get("Port"); + } + + /** + * Port: 端口 + * + * @param int $port + */ + public function setPort($port) + { + $this->set("Port", $port); + } + + /** + * RollbackGroupId: 如果是通过回档创建实例,需要传回档实例的GroupId + * + * @return string|null + */ + public function getRollbackGroupId() + { + return $this->get("RollbackGroupId"); + } + + /** + * RollbackGroupId: 如果是通过回档创建实例,需要传回档实例的GroupId + * + * @param string $rollbackGroupId + */ + public function setRollbackGroupId($rollbackGroupId) + { + $this->set("RollbackGroupId", $rollbackGroupId); + } + + /** + * AOFID: 回档的AOF文件ID + * + * @return string|null + */ + public function getAOFID() + { + return $this->get("AOFID"); + } + + /** + * AOFID: 回档的AOF文件ID + * + * @param string $aofid + */ + public function setAOFID($aofid) + { + $this->set("AOFID", $aofid); + } + + /** + * RollbackTime: 回档时间点 + * + * @return integer|null + */ + public function getRollbackTime() + { + return $this->get("RollbackTime"); + } + + /** + * RollbackTime: 回档时间点 + * + * @param int $rollbackTime + */ + public function setRollbackTime($rollbackTime) + { + $this->set("RollbackTime", $rollbackTime); + } + /** * CouponId: 代金券ID * diff --git a/src/UMem/Apis/CreateURedisGroupResponse.php b/src/UMem/Apis/CreateURedisGroupResponse.php index 7cb25ede..6ed2f431 100644 --- a/src/UMem/Apis/CreateURedisGroupResponse.php +++ b/src/UMem/Apis/CreateURedisGroupResponse.php @@ -1,6 +1,6 @@ "DeleteUDRedisProxy"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("SpaceId"); + $this->markRequired("ProxyId"); + } + + + + /** + * 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: 分布式Redis资源ID + * + * @return string|null + */ + public function getSpaceId() + { + return $this->get("SpaceId"); + } + + /** + * SpaceId: 分布式Redis资源ID + * + * @param string $spaceId + */ + public function setSpaceId($spaceId) + { + $this->set("SpaceId", $spaceId); + } + + /** + * 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); + } +} diff --git a/src/UMem/Apis/DeleteUDRedisProxyResponse.php b/src/UMem/Apis/DeleteUDRedisProxyResponse.php new file mode 100644 index 00000000..9297e850 --- /dev/null +++ b/src/UMem/Apis/DeleteUDRedisProxyResponse.php @@ -0,0 +1,26 @@ + "DeleteUMemSpace"]); $this->markRequired("Region"); + $this->markRequired("Zone"); $this->markRequired("SpaceId"); } /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -40,7 +41,7 @@ public function getRegion() } /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $region */ @@ -50,7 +51,7 @@ public function setRegion($region) } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -60,7 +61,7 @@ public function getZone() } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $zone */ @@ -70,7 +71,7 @@ public function setZone($zone) } /** - * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @return string|null */ @@ -80,7 +81,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/UMem/Apis/DeleteUMemSpaceResponse.php b/src/UMem/Apis/DeleteUMemSpaceResponse.php index 4f5728a3..b7aa8cdb 100644 --- a/src/UMem/Apis/DeleteUMemSpaceResponse.php +++ b/src/UMem/Apis/DeleteUMemSpaceResponse.php @@ -1,6 +1,6 @@ "DescribeUDRedisProxyClientList"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("SpaceId"); + $this->markRequired("ProxyId"); + } + + + + /** + * 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: 分布式Redis集群id + * + * @return string|null + */ + public function getSpaceId() + { + return $this->get("SpaceId"); + } + + /** + * SpaceId: 分布式Redis集群id + * + * @param string $spaceId + */ + public function setSpaceId($spaceId) + { + $this->set("SpaceId", $spaceId); + } + + /** + * ProxyId: 分布式Redis代理Id + * + * @return string|null + */ + public function getProxyId() + { + return $this->get("ProxyId"); + } + + /** + * ProxyId: 分布式Redis代理Id + * + * @param string $proxyId + */ + public function setProxyId($proxyId) + { + $this->set("ProxyId", $proxyId); + } +} diff --git a/src/UMem/Apis/DescribeUDRedisProxyClientListResponse.php b/src/UMem/Apis/DescribeUDRedisProxyClientListResponse.php new file mode 100644 index 00000000..7738fbe9 --- /dev/null +++ b/src/UMem/Apis/DescribeUDRedisProxyClientListResponse.php @@ -0,0 +1,97 @@ +get("Count"); + } + + /** + * Count: 连接数 + * + * @param int $count + */ + public function setCount($count) + { + $this->set("Count", $count); + } + + /** + * ProxyClientList: 代理连接信息 + * + * @return ProxyClientList[]|null + */ + public function getProxyClientList() + { + $items = $this->get("ProxyClientList"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ProxyClientList($item)); + } + return $result; + } + + /** + * ProxyClientList: 代理连接信息 + * + * @param ProxyClientList[] $proxyClientList + */ + public function setProxyClientList(array $proxyClientList) + { + $result = []; + foreach ($proxyClientList as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * Time: 连接获取时间 + * + * @return integer|null + */ + public function getTime() + { + return $this->get("Time"); + } + + /** + * Time: 连接获取时间 + * + * @param int $time + */ + public function setTime($time) + { + $this->set("Time", $time); + } +} diff --git a/src/UMem/Apis/DescribeUDRedisProxyInfoRequest.php b/src/UMem/Apis/DescribeUDRedisProxyInfoRequest.php index c8c1ff6c..57c06a87 100644 --- a/src/UMem/Apis/DescribeUDRedisProxyInfoRequest.php +++ b/src/UMem/Apis/DescribeUDRedisProxyInfoRequest.php @@ -1,6 +1,6 @@ set("InstanceId", $instanceId); } + /** + * 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); + } + /** * Limit: 分页显示的条目数,默认为10 * @@ -129,4 +149,24 @@ public function setLimit($limit) { $this->set("Limit", $limit); } + + /** + * SpaceId: 分布式资源Id + * + * @return string|null + */ + public function getSpaceId() + { + return $this->get("SpaceId"); + } + + /** + * SpaceId: 分布式资源Id + * + * @param string $spaceId + */ + public function setSpaceId($spaceId) + { + $this->set("SpaceId", $spaceId); + } } diff --git a/src/UMem/Apis/DescribeUDRedisSlowlogResponse.php b/src/UMem/Apis/DescribeUDRedisSlowlogResponse.php index 506b711e..67ae1f88 100644 --- a/src/UMem/Apis/DescribeUDRedisSlowlogResponse.php +++ b/src/UMem/Apis/DescribeUDRedisSlowlogResponse.php @@ -1,6 +1,6 @@ get("TotalCount"); + } + + /** + * TotalCount: 备份总数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } } diff --git a/src/UMem/Apis/DescribeUMemBackupURLRequest.php b/src/UMem/Apis/DescribeUMemBackupURLRequest.php index 91c3e47a..0c88846f 100644 --- a/src/UMem/Apis/DescribeUMemBackupURLRequest.php +++ b/src/UMem/Apis/DescribeUMemBackupURLRequest.php @@ -1,6 +1,6 @@ get("ReadMode"); + } + + /** + * ReadMode: 集群读写分离策略。 枚举值[ "Custom": 用户自定义节点权重, "Uniform": 包括主节点在内的所有节点平均读请求, "ReadOnly": 读请求均分至只读节点] + * + * @param string $readMode + */ + public function setReadMode($readMode) + { + $this->set("ReadMode", $readMode); + } } diff --git a/src/UMem/Apis/DescribeUMemPriceRequest.php b/src/UMem/Apis/DescribeUMemPriceRequest.php index 63a82a16..4073e7fd 100644 --- a/src/UMem/Apis/DescribeUMemPriceRequest.php +++ b/src/UMem/Apis/DescribeUMemPriceRequest.php @@ -1,6 +1,6 @@ set("Quantity", $quantity); } + + /** + * HighPerformance: 实例类型是否为性能增强型。默认为false,或者不填,true为性能增强型。 + * + * @return boolean|null + */ + public function getHighPerformance() + { + return $this->get("HighPerformance"); + } + + /** + * HighPerformance: 实例类型是否为性能增强型。默认为false,或者不填,true为性能增强型。 + * + * @param boolean $highPerformance + */ + public function setHighPerformance($highPerformance) + { + $this->set("HighPerformance", $highPerformance); + } + + /** + * BlockCnt: umem 分片个数 + * + * @return integer|null + */ + public function getBlockCnt() + { + return $this->get("BlockCnt"); + } + + /** + * BlockCnt: umem 分片个数 + * + * @param int $blockCnt + */ + public function setBlockCnt($blockCnt) + { + $this->set("BlockCnt", $blockCnt); + } + + /** + * ProxySize: umem 代理CPU核心数 + * + * @return integer|null + */ + public function getProxySize() + { + return $this->get("ProxySize"); + } + + /** + * ProxySize: umem 代理CPU核心数 + * + * @param int $proxySize + */ + public function setProxySize($proxySize) + { + $this->set("ProxySize", $proxySize); + } + + /** + * UlbMode: umem分布式代理类型,默认false,true为负载均衡型代理 + * + * @return string|null + */ + public function getUlbMode() + { + return $this->get("UlbMode"); + } + + /** + * UlbMode: umem分布式代理类型,默认false,true为负载均衡型代理 + * + * @param string $ulbMode + */ + public function setUlbMode($ulbMode) + { + $this->set("UlbMode", $ulbMode); + } + + /** + * ClusterMode: 数据库类型,RWMode为读写分离 + * + * @return string|null + */ + public function getClusterMode() + { + return $this->get("ClusterMode"); + } + + /** + * ClusterMode: 数据库类型,RWMode为读写分离 + * + * @param string $clusterMode + */ + public function setClusterMode($clusterMode) + { + $this->set("ClusterMode", $clusterMode); + } + + /** + * ProxyCnt: umem 代理个数 + * + * @return integer|null + */ + public function getProxyCnt() + { + return $this->get("ProxyCnt"); + } + + /** + * ProxyCnt: umem 代理个数 + * + * @param int $proxyCnt + */ + public function setProxyCnt($proxyCnt) + { + $this->set("ProxyCnt", $proxyCnt); + } } diff --git a/src/UMem/Apis/DescribeUMemPriceResponse.php b/src/UMem/Apis/DescribeUMemPriceResponse.php index 6ecbeeda..f0a47193 100644 --- a/src/UMem/Apis/DescribeUMemPriceResponse.php +++ b/src/UMem/Apis/DescribeUMemPriceResponse.php @@ -1,6 +1,6 @@ set("SpaceId", $spaceId); } + + /** + * HighPerformance: 是否为性能增强型。默认为false,或者不填,true为性能增强型。 + * + * @return string|null + */ + public function getHighPerformance() + { + return $this->get("HighPerformance"); + } + + /** + * HighPerformance: 是否为性能增强型。默认为false,或者不填,true为性能增强型。 + * + * @param string $highPerformance + */ + public function setHighPerformance($highPerformance) + { + $this->set("HighPerformance", $highPerformance); + } + + /** + * IsSplit: 如果是拆分按钮查询价格就填 true, 否则就填 false,默认为 false + * + * @return string|null + */ + public function getIsSplit() + { + return $this->get("IsSplit"); + } + + /** + * IsSplit: 如果是拆分按钮查询价格就填 true, 否则就填 false,默认为 false + * + * @param string $isSplit + */ + public function setIsSplit($isSplit) + { + $this->set("IsSplit", $isSplit); + } + + /** + * BlockIds: 进行容量调整分片的分片ID(性能增强型不需要传入) + * + * @return string[]|null + */ + public function getBlockIds() + { + return $this->get("BlockIds"); + } + + /** + * BlockIds: 进行容量调整分片的分片ID(性能增强型不需要传入) + * + * @param string[] $blockIds + */ + public function setBlockIds(array $blockIds) + { + $this->set("BlockIds", $blockIds); + } + + /** + * BlockSize: 进行容量调整的分片的目标容量,单位 GB(性能增强型不需要传入) + * + * @return int[]|null + */ + public function getBlockSize() + { + return $this->get("BlockSize"); + } + + /** + * BlockSize: 进行容量调整的分片的目标容量,单位 GB(性能增强型不需要传入) + * + * @param int[] $blockSize + */ + public function setBlockSize(array $blockSize) + { + $this->set("BlockSize", $blockSize); + } + + /** + * 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); + } + + /** + * NewCPU: 代理升级后CPU核数 + * + * @return integer|null + */ + public function getNewCPU() + { + return $this->get("NewCPU"); + } + + /** + * NewCPU: 代理升级后CPU核数 + * + * @param int $newCPU + */ + public function setNewCPU($newCPU) + { + $this->set("NewCPU", $newCPU); + } + + /** + * ReplicaSize: 新增读写分离节点容量大小 + * + * @return integer|null + */ + public function getReplicaSize() + { + return $this->get("ReplicaSize"); + } + + /** + * ReplicaSize: 新增读写分离节点容量大小 + * + * @param int $replicaSize + */ + public function setReplicaSize($replicaSize) + { + $this->set("ReplicaSize", $replicaSize); + } } diff --git a/src/UMem/Apis/DescribeUMemUpgradePriceResponse.php b/src/UMem/Apis/DescribeUMemUpgradePriceResponse.php index 47318006..539478e0 100644 --- a/src/UMem/Apis/DescribeUMemUpgradePriceResponse.php +++ b/src/UMem/Apis/DescribeUMemUpgradePriceResponse.php @@ -1,6 +1,6 @@ "DescribeUMemcacheUpgradePrice"]); + $this->markRequired("Region"); $this->markRequired("Size"); $this->markRequired("GroupId"); } + /** + * 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); + } + /** * Size: 购买umemcache大小,单位:GB * diff --git a/src/UMem/Apis/DescribeUMemcacheUpgradePriceResponse.php b/src/UMem/Apis/DescribeUMemcacheUpgradePriceResponse.php index 941cc22b..0e679448 100644 --- a/src/UMem/Apis/DescribeUMemcacheUpgradePriceResponse.php +++ b/src/UMem/Apis/DescribeUMemcacheUpgradePriceResponse.php @@ -1,6 +1,6 @@ set("Price", $price); } + + /** + * OriginalPrice: 原价 + * + * @return integer|null + */ + public function getOriginalPrice() + { + return $this->get("OriginalPrice"); + } + + /** + * OriginalPrice: 原价 + * + * @param int $originalPrice + */ + public function setOriginalPrice($originalPrice) + { + $this->set("OriginalPrice", $originalPrice); + } + + /** + * ListPrice: 列表价格 + * + * @return integer|null + */ + public function getListPrice() + { + return $this->get("ListPrice"); + } + + /** + * ListPrice: 列表价格 + * + * @param int $listPrice + */ + public function setListPrice($listPrice) + { + $this->set("ListPrice", $listPrice); + } } diff --git a/src/UMem/Apis/DescribeURedisBackupRequest.php b/src/UMem/Apis/DescribeURedisBackupRequest.php index 8cf40045..cd2dba6e 100644 --- a/src/UMem/Apis/DescribeURedisBackupRequest.php +++ b/src/UMem/Apis/DescribeURedisBackupRequest.php @@ -1,6 +1,6 @@ set("ProjectId", $projectId); } + /** + * GroupId: 组的ID,如果不传RegionType,GroupId为必传项 + * + * @return string|null + */ + public function getGroupId() + { + return $this->get("GroupId"); + } + + /** + * GroupId: 组的ID,如果不传RegionType,GroupId为必传项 + * + * @param string $groupId + */ + public function setGroupId($groupId) + { + $this->set("GroupId", $groupId); + } + /** * Offset: 分页显示的起始偏移, 默认值为0 * @@ -109,22 +129,62 @@ public function setLimit($limit) } /** - * GroupId: 组的ID + * SlaveZone: 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) * * @return string|null */ - public function getGroupId() + public function getSlaveZone() { - return $this->get("GroupId"); + return $this->get("SlaveZone"); } /** - * GroupId: 组的ID + * SlaveZone: 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) * - * @param string $groupId + * @param string $slaveZone */ - public function setGroupId($groupId) + public function setSlaveZone($slaveZone) { - $this->set("GroupId", $groupId); + $this->set("SlaveZone", $slaveZone); + } + + /** + * RegionType: 用于区分跨可用备份以及普通备份。默认为normal。跨可用则分为(source, target) + * + * @return string|null + */ + public function getRegionType() + { + return $this->get("RegionType"); + } + + /** + * RegionType: 用于区分跨可用备份以及普通备份。默认为normal。跨可用则分为(source, target) + * + * @param string $regionType + */ + public function setRegionType($regionType) + { + $this->set("RegionType", $regionType); + } + + /** + * BackupId: 备份Id,若传入,则只返回该BackupId的备份信息 + * + * @return string|null + */ + public function getBackupId() + { + return $this->get("BackupId"); + } + + /** + * BackupId: 备份Id,若传入,则只返回该BackupId的备份信息 + * + * @param string $backupId + */ + public function setBackupId($backupId) + { + $this->set("BackupId", $backupId); } } diff --git a/src/UMem/Apis/DescribeURedisBackupResponse.php b/src/UMem/Apis/DescribeURedisBackupResponse.php index 1e0f8a9d..41935ae2 100644 --- a/src/UMem/Apis/DescribeURedisBackupResponse.php +++ b/src/UMem/Apis/DescribeURedisBackupResponse.php @@ -1,6 +1,6 @@ set("SlaveZone", $slaveZone); } + + /** + * IsCrossRegion: 默认为false,true时代表查询跨地域备份URL + * + * @return boolean|null + */ + public function getIsCrossRegion() + { + return $this->get("IsCrossRegion"); + } + + /** + * IsCrossRegion: 默认为false,true时代表查询跨地域备份URL + * + * @param boolean $isCrossRegion + */ + public function setIsCrossRegion($isCrossRegion) + { + $this->set("IsCrossRegion", $isCrossRegion); + } } diff --git a/src/UMem/Apis/DescribeURedisBackupURLResponse.php b/src/UMem/Apis/DescribeURedisBackupURLResponse.php index 3dd13bce..922c95cd 100644 --- a/src/UMem/Apis/DescribeURedisBackupURLResponse.php +++ b/src/UMem/Apis/DescribeURedisBackupURLResponse.php @@ -1,6 +1,6 @@ set("ProductType", $productType); } + + /** + * HighPerformance: 查询高性能Redis, 默认为false, 或者不填, 查询高性能为true + * + * @return boolean|null + */ + public function getHighPerformance() + { + return $this->get("HighPerformance"); + } + + /** + * HighPerformance: 查询高性能Redis, 默认为false, 或者不填, 查询高性能为true + * + * @param boolean $highPerformance + */ + public function setHighPerformance($highPerformance) + { + $this->set("HighPerformance", $highPerformance); + } } diff --git a/src/UMem/Apis/DescribeURedisPriceResponse.php b/src/UMem/Apis/DescribeURedisPriceResponse.php index 7ac3dbe4..7e2aee50 100644 --- a/src/UMem/Apis/DescribeURedisPriceResponse.php +++ b/src/UMem/Apis/DescribeURedisPriceResponse.php @@ -1,6 +1,6 @@ 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); + } + /** * Size: 购买uredis大小,单位:GB,范围是[1-32] * @@ -109,4 +129,44 @@ public function setGroupId($groupId) { $this->set("GroupId", $groupId); } + + /** + * HighPerformance: 查询高性能Redis, 默认为false, 或者不填, 查询高性能为true + * + * @return boolean|null + */ + public function getHighPerformance() + { + return $this->get("HighPerformance"); + } + + /** + * HighPerformance: 查询高性能Redis, 默认为false, 或者不填, 查询高性能为true + * + * @param boolean $highPerformance + */ + public function setHighPerformance($highPerformance) + { + $this->set("HighPerformance", $highPerformance); + } + + /** + * ConvertType: 切换类型,执行类型切换时询价需要传入的参数。“HighPerformance”: 表示转换为性能加强型,“Normal”: 表示转换为普通主备版类型 + * + * @return string|null + */ + public function getConvertType() + { + return $this->get("ConvertType"); + } + + /** + * ConvertType: 切换类型,执行类型切换时询价需要传入的参数。“HighPerformance”: 表示转换为性能加强型,“Normal”: 表示转换为普通主备版类型 + * + * @param string $convertType + */ + public function setConvertType($convertType) + { + $this->set("ConvertType", $convertType); + } } diff --git a/src/UMem/Apis/DescribeURedisUpgradePriceResponse.php b/src/UMem/Apis/DescribeURedisUpgradePriceResponse.php index e08d2525..5ced0ca1 100644 --- a/src/UMem/Apis/DescribeURedisUpgradePriceResponse.php +++ b/src/UMem/Apis/DescribeURedisUpgradePriceResponse.php @@ -1,6 +1,6 @@ set("Price", $price); } + + /** + * OriginalPrice: 原价 + * + * @return integer|null + */ + public function getOriginalPrice() + { + return $this->get("OriginalPrice"); + } + + /** + * OriginalPrice: 原价 + * + * @param int $originalPrice + */ + public function setOriginalPrice($originalPrice) + { + $this->set("OriginalPrice", $originalPrice); + } } diff --git a/src/UMem/Apis/DescribeURedisVersionRequest.php b/src/UMem/Apis/DescribeURedisVersionRequest.php index 757bc7f5..fe8b01a9 100644 --- a/src/UMem/Apis/DescribeURedisVersionRequest.php +++ b/src/UMem/Apis/DescribeURedisVersionRequest.php @@ -1,6 +1,6 @@ "GetUMemSpaceState"]); $this->markRequired("Region"); + $this->markRequired("Zone"); $this->markRequired("SpaceId"); } /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -40,7 +41,7 @@ public function getRegion() } /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $region */ @@ -50,7 +51,7 @@ public function setRegion($region) } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -60,7 +61,7 @@ public function getZone() } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $zone */ @@ -70,7 +71,7 @@ public function setZone($zone) } /** - * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @return string|null */ @@ -80,7 +81,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/UMem/Apis/GetUMemSpaceStateResponse.php b/src/UMem/Apis/GetUMemSpaceStateResponse.php index 1757e973..36c2424a 100644 --- a/src/UMem/Apis/GetUMemSpaceStateResponse.php +++ b/src/UMem/Apis/GetUMemSpaceStateResponse.php @@ -1,6 +1,6 @@ set("State", $state); } diff --git a/src/UMem/Apis/ISolationURedisGroupRequest.php b/src/UMem/Apis/ISolationURedisGroupRequest.php index 61ba51e0..a3691828 100644 --- a/src/UMem/Apis/ISolationURedisGroupRequest.php +++ b/src/UMem/Apis/ISolationURedisGroupRequest.php @@ -1,6 +1,6 @@ "ModifyUMemPassword"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("SpaceId"); + $this->markRequired("Password"); + } + + + + /** + * 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: 资源id + * + * @return string|null + */ + public function getSpaceId() + { + return $this->get("SpaceId"); + } + + /** + * SpaceId: 资源id + * + * @param string $spaceId + */ + public function setSpaceId($spaceId) + { + $this->set("SpaceId", $spaceId); + } + + /** + * Password: 新密码字符串,要求长度为6~36个字符,且只能包含英文、数字以及-和下划线;并且需要base64加密;如要取消密码,此值为空字符串 + * + * @return string|null + */ + public function getPassword() + { + return $this->get("Password"); + } + + /** + * Password: 新密码字符串,要求长度为6~36个字符,且只能包含英文、数字以及-和下划线;并且需要base64加密;如要取消密码,此值为空字符串 + * + * @param string $password + */ + public function setPassword($password) + { + $this->set("Password", $password); + } +} diff --git a/src/UMem/Apis/ModifyUMemPasswordResponse.php b/src/UMem/Apis/ModifyUMemPasswordResponse.php new file mode 100644 index 00000000..2b42c407 --- /dev/null +++ b/src/UMem/Apis/ModifyUMemPasswordResponse.php @@ -0,0 +1,26 @@ + "ModifyUMemSpaceName"]); $this->markRequired("Region"); + $this->markRequired("Zone"); $this->markRequired("SpaceId"); $this->markRequired("Name"); } @@ -31,7 +32,7 @@ public function __construct() /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -41,7 +42,7 @@ public function getRegion() } /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $region */ @@ -51,7 +52,7 @@ public function setRegion($region) } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -61,7 +62,7 @@ public function getZone() } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $zone */ @@ -71,7 +72,7 @@ public function setZone($zone) } /** - * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @return string|null */ @@ -81,7 +82,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/UMem/Apis/ModifyUMemSpaceNameResponse.php b/src/UMem/Apis/ModifyUMemSpaceNameResponse.php index 544ff5a7..d1289706 100644 --- a/src/UMem/Apis/ModifyUMemSpaceNameResponse.php +++ b/src/UMem/Apis/ModifyUMemSpaceNameResponse.php @@ -1,6 +1,6 @@ "ModifyURedisConfig"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ConfigId"); + $this->markRequired("Key"); + $this->markRequired("Value"); + } + + + + /** + * 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); + } + + /** + * ConfigId: 配置文件的ID + * + * @return string|null + */ + public function getConfigId() + { + return $this->get("ConfigId"); + } + + /** + * ConfigId: 配置文件的ID + * + * @param string $configId + */ + public function setConfigId($configId) + { + $this->set("ConfigId", $configId); + } + + /** + * Key: 参数名称 + * + * @return string|null + */ + public function getKey() + { + return $this->get("Key"); + } + + /** + * Key: 参数名称 + * + * @param string $key + */ + public function setKey($key) + { + $this->set("Key", $key); + } + + /** + * Value: 对应参数的值 + * + * @return string|null + */ + public function getValue() + { + return $this->get("Value"); + } + + /** + * Value: 对应参数的值 + * + * @param string $value + */ + public function setValue($value) + { + $this->set("Value", $value); + } + + /** + * GroupId: 如果实例使用默认配置创建,修改配置信息需要填写GroupId + * + * @return string|null + */ + public function getGroupId() + { + return $this->get("GroupId"); + } + + /** + * GroupId: 如果实例使用默认配置创建,修改配置信息需要填写GroupId + * + * @param string $groupId + */ + public function setGroupId($groupId) + { + $this->set("GroupId", $groupId); + } + + /** + * RegionFlag: 是否是跨机房URedis(默认false) + * + * @return boolean|null + */ + public function getRegionFlag() + { + return $this->get("RegionFlag"); + } + + /** + * RegionFlag: 是否是跨机房URedis(默认false) + * + * @param boolean $regionFlag + */ + public function setRegionFlag($regionFlag) + { + $this->set("RegionFlag", $regionFlag); + } +} diff --git a/src/UMem/Apis/ModifyURedisConfigResponse.php b/src/UMem/Apis/ModifyURedisConfigResponse.php new file mode 100644 index 00000000..904fc544 --- /dev/null +++ b/src/UMem/Apis/ModifyURedisConfigResponse.php @@ -0,0 +1,26 @@ +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 */ @@ -61,7 +81,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/UMem/Apis/ModifyURedisGroupNameResponse.php b/src/UMem/Apis/ModifyURedisGroupNameResponse.php index fc126b1f..19d2e63a 100644 --- a/src/UMem/Apis/ModifyURedisGroupNameResponse.php +++ b/src/UMem/Apis/ModifyURedisGroupNameResponse.php @@ -1,6 +1,6 @@ "RegisterUMemDefrag"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ResourceId"); + } + + + + /** + * 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); + } + + /** + * 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); + } + + /** + * StartTime: 开始时间戳 + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 开始时间戳 + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * EndTime: 关闭时间戳 + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 关闭时间戳 + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * OperateType: 操作类型:“Once”: 表示单次执行, “Open”:表示开启策略“Close”: 表示关闭策略(分布式实例只支持Once)。 + * + * @return string|null + */ + public function getOperateType() + { + return $this->get("OperateType"); + } + + /** + * OperateType: 操作类型:“Once”: 表示单次执行, “Open”:表示开启策略“Close”: 表示关闭策略(分布式实例只支持Once)。 + * + * @param string $operateType + */ + public function setOperateType($operateType) + { + $this->set("OperateType", $operateType); + } + + /** + * FragTime: 任务时间周期,单位为分钟。 + * + * @return integer|null + */ + public function getFragTime() + { + return $this->get("FragTime"); + } + + /** + * FragTime: 任务时间周期,单位为分钟。 + * + * @param int $fragTime + */ + public function setFragTime($fragTime) + { + $this->set("FragTime", $fragTime); + } + + /** + * FragSize: 碎片整理阈值,范围为 100-200(分布式实例该参数无效)。 + * + * @return integer|null + */ + public function getFragSize() + { + return $this->get("FragSize"); + } + + /** + * FragSize: 碎片整理阈值,范围为 100-200(分布式实例该参数无效)。 + * + * @param int $fragSize + */ + public function setFragSize($fragSize) + { + $this->set("FragSize", $fragSize); + } + + /** + * StartHour: 开始整点数值(分布式实例该参数无效)。 + * + * @return integer|null + */ + public function getStartHour() + { + return $this->get("StartHour"); + } + + /** + * StartHour: 开始整点数值(分布式实例该参数无效)。 + * + * @param int $startHour + */ + public function setStartHour($startHour) + { + $this->set("StartHour", $startHour); + } + + /** + * StartMin: 开始分钟数(分布式实例该参数无效)。 + * + * @return integer|null + */ + public function getStartMin() + { + return $this->get("StartMin"); + } + + /** + * StartMin: 开始分钟数(分布式实例该参数无效)。 + * + * @param int $startMin + */ + public function setStartMin($startMin) + { + $this->set("StartMin", $startMin); + } + + /** + * EndHour: 结束整点数值(分布式实例该参数无效)。 + * + * @return integer|null + */ + public function getEndHour() + { + return $this->get("EndHour"); + } + + /** + * EndHour: 结束整点数值(分布式实例该参数无效)。 + * + * @param int $endHour + */ + public function setEndHour($endHour) + { + $this->set("EndHour", $endHour); + } + + /** + * EndMin: 结束分钟数(分布式实例该参数无效)。 + * + * @return integer|null + */ + public function getEndMin() + { + return $this->get("EndMin"); + } + + /** + * EndMin: 结束分钟数(分布式实例该参数无效)。 + * + * @param int $endMin + */ + public function setEndMin($endMin) + { + $this->set("EndMin", $endMin); + } + + /** + * IsUnion: AND逻辑字段,表示 阈值和时间段都满足(分布式实例该参数无效)。 + * + * @return boolean|null + */ + public function getIsUnion() + { + return $this->get("IsUnion"); + } + + /** + * IsUnion: AND逻辑字段,表示 阈值和时间段都满足(分布式实例该参数无效)。 + * + * @param boolean $isUnion + */ + public function setIsUnion($isUnion) + { + $this->set("IsUnion", $isUnion); + } +} diff --git a/src/UMem/Apis/RegisterUMemDefragResponse.php b/src/UMem/Apis/RegisterUMemDefragResponse.php new file mode 100644 index 00000000..49f94764 --- /dev/null +++ b/src/UMem/Apis/RegisterUMemDefragResponse.php @@ -0,0 +1,26 @@ + "ResizeUDRedisBlockSize"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("SpaceId"); + $this->markRequired("BlockId"); + $this->markRequired("BlockSize"); + } + + + + /** + * 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: spaceid + * + * @return string|null + */ + public function getSpaceId() + { + return $this->get("SpaceId"); + } + + /** + * SpaceId: spaceid + * + * @param string $spaceId + */ + public function setSpaceId($spaceId) + { + $this->set("SpaceId", $spaceId); + } + + /** + * BlockId: 分片id + * + * @return string|null + */ + public function getBlockId() + { + return $this->get("BlockId"); + } + + /** + * BlockId: 分片id + * + * @param string $blockId + */ + public function setBlockId($blockId) + { + $this->set("BlockId", $blockId); + } + + /** + * BlockSize: 分片容量(单位GB)4/8/12/16/20 + * + * @return integer|null + */ + public function getBlockSize() + { + return $this->get("BlockSize"); + } + + /** + * BlockSize: 分片容量(单位GB)4/8/12/16/20 + * + * @param int $blockSize + */ + public function setBlockSize($blockSize) + { + $this->set("BlockSize", $blockSize); + } + + /** + * StartTime: 任务执行时间戳,时间戳需满足未来一天时间范围内。默认不传或者值为0时,即为立即执行 + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 任务执行时间戳,时间戳需满足未来一天时间范围内。默认不传或者值为0时,即为立即执行 + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * HighPerformance: 是否为性能增强型。默认为false,或者不填,true为性能增强型。 + * + * @return boolean|null + */ + public function getHighPerformance() + { + return $this->get("HighPerformance"); + } + + /** + * HighPerformance: 是否为性能增强型。默认为false,或者不填,true为性能增强型。 + * + * @param boolean $highPerformance + */ + public function setHighPerformance($highPerformance) + { + $this->set("HighPerformance", $highPerformance); + } +} diff --git a/src/UMem/Apis/ResizeUDRedisBlockSizeResponse.php b/src/UMem/Apis/ResizeUDRedisBlockSizeResponse.php new file mode 100644 index 00000000..a93af453 --- /dev/null +++ b/src/UMem/Apis/ResizeUDRedisBlockSizeResponse.php @@ -0,0 +1,26 @@ + "ResizeUMemSpace"]); $this->markRequired("Region"); + $this->markRequired("Zone"); $this->markRequired("SpaceId"); $this->markRequired("Size"); } @@ -31,7 +32,7 @@ public function __construct() /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -41,7 +42,7 @@ public function getRegion() } /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $region */ @@ -51,7 +52,7 @@ public function setRegion($region) } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -61,7 +62,7 @@ public function getZone() } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $zone */ @@ -71,7 +72,7 @@ public function setZone($zone) } /** - * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @return string|null */ @@ -81,7 +82,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 */ @@ -130,6 +131,26 @@ public function setSize($size) $this->set("Size", $size); } + /** + * Type: 空间类型:single(无热备),double(热备)(默认: double) + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 空间类型:single(无热备),double(热备)(默认: double) + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + /** * CouponId: 使用的代金券Id * diff --git a/src/UMem/Apis/ResizeUMemSpaceResponse.php b/src/UMem/Apis/ResizeUMemSpaceResponse.php index 854728a6..4a588dbd 100644 --- a/src/UMem/Apis/ResizeUMemSpaceResponse.php +++ b/src/UMem/Apis/ResizeUMemSpaceResponse.php @@ -1,6 +1,6 @@ "ResizeUMemcacheGroup"]); + $this->markRequired("Region"); + $this->markRequired("GroupId"); + $this->markRequired("Size"); + } + + + + /** + * 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); + } + + /** + * GroupId: umemcache资源ID + * + * @return string|null + */ + public function getGroupId() + { + return $this->get("GroupId"); + } + + /** + * GroupId: umemcache资源ID + * + * @param string $groupId + */ + public function setGroupId($groupId) + { + $this->set("GroupId", $groupId); + } + + /** + * Size: 内存大小, 单位:GB 目前支持1/2/4/8/16/32五种规格(暂时只支持扩容) + * + * @return integer|null + */ + public function getSize() + { + return $this->get("Size"); + } + + /** + * Size: 内存大小, 单位:GB 目前支持1/2/4/8/16/32五种规格(暂时只支持扩容) + * + * @param int $size + */ + public function setSize($size) + { + $this->set("Size", $size); + } + + /** + * CouponId: 代金券ID + * + * @return integer|null + */ + public function getCouponId() + { + return $this->get("CouponId"); + } + + /** + * CouponId: 代金券ID + * + * @param int $couponId + */ + public function setCouponId($couponId) + { + $this->set("CouponId", $couponId); + } +} diff --git a/src/UMem/Apis/ResizeUMemcacheGroupResponse.php b/src/UMem/Apis/ResizeUMemcacheGroupResponse.php new file mode 100644 index 00000000..e2511e55 --- /dev/null +++ b/src/UMem/Apis/ResizeUMemcacheGroupResponse.php @@ -0,0 +1,26 @@ + "ResizeURedisGroup"]); $this->markRequired("Region"); + $this->markRequired("Zone"); $this->markRequired("GroupId"); $this->markRequired("Size"); } @@ -31,7 +32,7 @@ public function __construct() /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -41,7 +42,7 @@ public function getRegion() } /** - * Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html) + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $region */ @@ -51,7 +52,7 @@ public function setRegion($region) } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -61,7 +62,7 @@ public function getZone() } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $zone */ @@ -71,7 +72,7 @@ public function setZone($zone) } /** - * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @return string|null */ @@ -81,7 +82,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 */ @@ -131,7 +132,7 @@ public function setSize($size) } /** - * ChargeType: + * ChargeType: 计费类型 * * @return string|null */ @@ -141,7 +142,7 @@ public function getChargeType() } /** - * ChargeType: + * ChargeType: 计费类型 * * @param string $chargeType */ @@ -170,6 +171,46 @@ public function setType($type) $this->set("Type", $type); } + /** + * StartTime: 任务执行时间戳,默认为0或者不传时,为立即执行,传入时间需满足未来一天范围 + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 任务执行时间戳,默认为0或者不传时,为立即执行,传入时间需满足未来一天范围 + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * HighPerformance: 高性能Redis, 默认为false, 或者不填, 高性能为true + * + * @return boolean|null + */ + public function getHighPerformance() + { + return $this->get("HighPerformance"); + } + + /** + * HighPerformance: 高性能Redis, 默认为false, 或者不填, 高性能为true + * + * @param boolean $highPerformance + */ + public function setHighPerformance($highPerformance) + { + $this->set("HighPerformance", $highPerformance); + } + /** * CouponId: 代金券ID 请参考DescribeCoupon接口 * diff --git a/src/UMem/Apis/ResizeURedisGroupResponse.php b/src/UMem/Apis/ResizeURedisGroupResponse.php index b09fe9a9..3938fd15 100644 --- a/src/UMem/Apis/ResizeURedisGroupResponse.php +++ b/src/UMem/Apis/ResizeURedisGroupResponse.php @@ -1,6 +1,6 @@ "ResizeUhproxy"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("SpaceId"); + $this->markRequired("ProxyId"); + $this->markRequired("NewCPU"); + } + + + + /** + * 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: 分布式Redis资源ID + * + * @return string|null + */ + public function getSpaceId() + { + return $this->get("SpaceId"); + } + + /** + * SpaceId: 分布式Redis资源ID + * + * @param string $spaceId + */ + public function setSpaceId($spaceId) + { + $this->set("SpaceId", $spaceId); + } + + /** + * 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); + } + + /** + * NewCPU: 代理目标核数 + * + * @return integer|null + */ + public function getNewCPU() + { + return $this->get("NewCPU"); + } + + /** + * NewCPU: 代理目标核数 + * + * @param int $newCPU + */ + public function setNewCPU($newCPU) + { + $this->set("NewCPU", $newCPU); + } + + /** + * CouponId: 使用的代金券id + * + * @return string|null + */ + public function getCouponId() + { + return $this->get("CouponId"); + } + + /** + * CouponId: 使用的代金券id + * + * @param string $couponId + */ + public function setCouponId($couponId) + { + $this->set("CouponId", $couponId); + } +} diff --git a/src/UMem/Apis/ResizeUhproxyResponse.php b/src/UMem/Apis/ResizeUhproxyResponse.php new file mode 100644 index 00000000..dc16240d --- /dev/null +++ b/src/UMem/Apis/ResizeUhproxyResponse.php @@ -0,0 +1,26 @@ + "RestartUMemcacheGroup"]); $this->markRequired("Region"); - $this->markRequired("Zone"); $this->markRequired("GroupId"); } /** - * 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) } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -61,7 +60,7 @@ public function getZone() } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $zone */ @@ -71,7 +70,7 @@ public function setZone($zone) } /** - * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @return string|null */ @@ -81,7 +80,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/UMem/Apis/RestartUMemcacheGroupResponse.php b/src/UMem/Apis/RestartUMemcacheGroupResponse.php index f2cfd482..4e8efc20 100644 --- a/src/UMem/Apis/RestartUMemcacheGroupResponse.php +++ b/src/UMem/Apis/RestartUMemcacheGroupResponse.php @@ -1,6 +1,6 @@ "UpdateURedisBackupStrategy"]); $this->markRequired("Region"); $this->markRequired("GroupId"); - $this->markRequired("BackupTime"); } /** - * 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) } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @return string|null */ @@ -61,7 +60,7 @@ public function getZone() } /** - * Zone: 可用区。参见 [可用区列表](../summary/regionlist.html) + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) * * @param string $zone */ @@ -71,7 +70,7 @@ public function setZone($zone) } /** - * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * * @return string|null */ @@ -81,7 +80,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 */ @@ -169,4 +168,64 @@ public function setSlaveZone($slaveZone) { $this->set("SlaveZone", $slaveZone); } + + /** + * OperationType: 操作类型,不传默认为normal(即操控自动备份打开以及时间),modify(修改跨地域备份策略),close(关闭跨地域备份策略) + * + * @return string|null + */ + public function getOperationType() + { + return $this->get("OperationType"); + } + + /** + * OperationType: 操作类型,不传默认为normal(即操控自动备份打开以及时间),modify(修改跨地域备份策略),close(关闭跨地域备份策略) + * + * @param string $operationType + */ + public function setOperationType($operationType) + { + $this->set("OperationType", $operationType); + } + + /** + * DstRegion: 跨可用备份目标地域(当Operation为modify时必选) + * + * @return string|null + */ + public function getDstRegion() + { + return $this->get("DstRegion"); + } + + /** + * DstRegion: 跨可用备份目标地域(当Operation为modify时必选) + * + * @param string $dstRegion + */ + public function setDstRegion($dstRegion) + { + $this->set("DstRegion", $dstRegion); + } + + /** + * SaveDays: 保存天数(当Operation为modify时必选) + * + * @return integer|null + */ + public function getSaveDays() + { + return $this->get("SaveDays"); + } + + /** + * SaveDays: 保存天数(当Operation为modify时必选) + * + * @param int $saveDays + */ + public function setSaveDays($saveDays) + { + $this->set("SaveDays", $saveDays); + } } diff --git a/src/UMem/Apis/UpdateURedisBackupStrategyResponse.php b/src/UMem/Apis/UpdateURedisBackupStrategyResponse.php index 96358aaf..781d8ded 100644 --- a/src/UMem/Apis/UpdateURedisBackupStrategyResponse.php +++ b/src/UMem/Apis/UpdateURedisBackupStrategyResponse.php @@ -1,6 +1,6 @@ "UpdateURedisRewriteTime"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("GroupId"); + $this->markRequired("RewriteTime"); + } + + + + /** + * 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); + } + + /** + * GroupId: 实例名称 + * + * @return string|null + */ + public function getGroupId() + { + return $this->get("GroupId"); + } + + /** + * GroupId: 实例名称 + * + * @param string $groupId + */ + public function setGroupId($groupId) + { + $this->set("GroupId", $groupId); + } + + /** + * RewriteTime: 重写时间 + * + * @return integer|null + */ + public function getRewriteTime() + { + return $this->get("RewriteTime"); + } + + /** + * RewriteTime: 重写时间 + * + * @param int $rewriteTime + */ + public function setRewriteTime($rewriteTime) + { + $this->set("RewriteTime", $rewriteTime); + } + + /** + * SlaveZone: 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + * + * @return string|null + */ + public function getSlaveZone() + { + return $this->get("SlaveZone"); + } + + /** + * SlaveZone: 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + * + * @param string $slaveZone + */ + public function setSlaveZone($slaveZone) + { + $this->set("SlaveZone", $slaveZone); + } +} diff --git a/src/UMem/Apis/UpdateURedisRewriteTimeResponse.php b/src/UMem/Apis/UpdateURedisRewriteTimeResponse.php new file mode 100644 index 00000000..cbae9a9b --- /dev/null +++ b/src/UMem/Apis/UpdateURedisRewriteTimeResponse.php @@ -0,0 +1,26 @@ +get("Ip"); + } + + /** + * Ip: 客户端Ip + * + * @param string $ip + */ + public function setIp($ip) + { + $this->set("Ip", $ip); + } + + /** + * ConnCnt: 该客户端Ip连接数量 + * + * @return integer|null + */ + public function getConnCnt() + { + return $this->get("ConnCnt"); + } + + /** + * ConnCnt: 该客户端Ip连接数量 + * + * @param int $connCnt + */ + public function setConnCnt($connCnt) + { + $this->set("ConnCnt", $connCnt); + } +} diff --git a/src/UMem/Models/UDRedisProxyInfo.php b/src/UMem/Models/UDRedisProxyInfo.php index 5c875af0..c6a153a0 100644 --- a/src/UMem/Models/UDRedisProxyInfo.php +++ b/src/UMem/Models/UDRedisProxyInfo.php @@ -1,6 +1,6 @@ set("State", $state); } + + /** + * 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); + } + + /** + * ProxyType: 0 : 物理机版分布式代理, 1: NVME(或SSD)版分布式代理 + * + * @return integer|null + */ + public function getProxyType() + { + return $this->get("ProxyType"); + } + + /** + * ProxyType: 0 : 物理机版分布式代理, 1: NVME(或SSD)版分布式代理 + * + * @param int $proxyType + */ + public function setProxyType($proxyType) + { + $this->set("ProxyType", $proxyType); + } + + /** + * PublicIp: 开启外网状态下的外网IP,否则为空 + * + * @return string|null + */ + public function getPublicIp() + { + return $this->get("PublicIp"); + } + + /** + * PublicIp: 开启外网状态下的外网IP,否则为空 + * + * @param string $publicIp + */ + public function setPublicIp($publicIp) + { + $this->set("PublicIp", $publicIp); + } + + /** + * SupportReadOnly: 代理是否支持设置为只读 + * + * @return boolean|null + */ + public function getSupportReadOnly() + { + return $this->get("SupportReadOnly"); + } + + /** + * SupportReadOnly: 代理是否支持设置为只读 + * + * @param boolean $supportReadOnly + */ + public function setSupportReadOnly($supportReadOnly) + { + $this->set("SupportReadOnly", $supportReadOnly); + } + + /** + * ReadOnly: 代理是否为只读 + * + * @return boolean|null + */ + public function getReadOnly() + { + return $this->get("ReadOnly"); + } + + /** + * ReadOnly: 代理是否为只读 + * + * @param boolean $readOnly + */ + public function setReadOnly($readOnly) + { + $this->set("ReadOnly", $readOnly); + } + + /** + * ReadMode: 读写分离策略, "Custom": 用户自定义节点权重, "Uniform": 包括主节点在内的所有节点平均读请求, "ReadOnly": 读请求均分至只读节点 + * + * @return string|null + */ + public function getReadMode() + { + return $this->get("ReadMode"); + } + + /** + * ReadMode: 读写分离策略, "Custom": 用户自定义节点权重, "Uniform": 包括主节点在内的所有节点平均读请求, "ReadOnly": 读请求均分至只读节点 + * + * @param string $readMode + */ + public function setReadMode($readMode) + { + $this->set("ReadMode", $readMode); + } } diff --git a/src/UMem/Models/UDRedisSlowlogSet.php b/src/UMem/Models/UDRedisSlowlogSet.php index a1f6c84d..39825f71 100644 --- a/src/UMem/Models/UDRedisSlowlogSet.php +++ b/src/UMem/Models/UDRedisSlowlogSet.php @@ -1,6 +1,6 @@ set("BlockId", $blockId); } + + /** + * Client: 慢日志的的客户信息 + * + * @return string|null + */ + public function getClient() + { + return $this->get("Client"); + } + + /** + * Client: 慢日志的的客户信息 + * + * @param string $client + */ + public function setClient($client) + { + $this->set("Client", $client); + } } diff --git a/src/UMem/Models/UMemBackupSet.php b/src/UMem/Models/UMemBackupSet.php index d96caa12..8b6eb372 100644 --- a/src/UMem/Models/UMemBackupSet.php +++ b/src/UMem/Models/UMemBackupSet.php @@ -1,6 +1,6 @@ set("BlockCount", $blockCount); } + + /** + * BlockSize: 备份大小 + * + * @return integer|null + */ + public function getBlockSize() + { + return $this->get("BlockSize"); + } + + /** + * BlockSize: 备份大小 + * + * @param int $blockSize + */ + public function setBlockSize($blockSize) + { + $this->set("BlockSize", $blockSize); + } } diff --git a/src/UMem/Models/UMemBlockInfo.php b/src/UMem/Models/UMemBlockInfo.php index a7c07df6..3bf50fc3 100644 --- a/src/UMem/Models/UMemBlockInfo.php +++ b/src/UMem/Models/UMemBlockInfo.php @@ -1,6 +1,6 @@ set("BlockUsedSize", $blockUsedSize); } + + /** + * BlockType: 分片类型,master 或者 slave + * + * @return string|null + */ + public function getBlockType() + { + return $this->get("BlockType"); + } + + /** + * BlockType: 分片类型,master 或者 slave + * + * @param string $blockType + */ + public function setBlockType($blockType) + { + $this->set("BlockType", $blockType); + } + + /** + * BlockReadWeight: 分片读权重 + * + * @return integer|null + */ + public function getBlockReadWeight() + { + return $this->get("BlockReadWeight"); + } + + /** + * BlockReadWeight: 分片读权重 + * + * @param int $blockReadWeight + */ + public function setBlockReadWeight($blockReadWeight) + { + $this->set("BlockReadWeight", $blockReadWeight); + } + + /** + * BlockName: 分片名称 + * + * @return string|null + */ + public function getBlockName() + { + return $this->get("BlockName"); + } + + /** + * BlockName: 分片名称 + * + * @param string $blockName + */ + public function setBlockName($blockName) + { + $this->set("BlockName", $blockName); + } } diff --git a/src/UMem/Models/UMemDataSet.php b/src/UMem/Models/UMemDataSet.php index 909e769d..7be5dedc 100644 --- a/src/UMem/Models/UMemDataSet.php +++ b/src/UMem/Models/UMemDataSet.php @@ -1,6 +1,6 @@ set("SlaveZone", $slaveZone); } + + /** + * ProxyName: URedis是否开启读写分离 + * + * @return string|null + */ + public function getProxyName() + { + return $this->get("ProxyName"); + } + + /** + * ProxyName: URedis是否开启读写分离 + * + * @param string $proxyName + */ + public function setProxyName($proxyName) + { + $this->set("ProxyName", $proxyName); + } + + /** + * ProductType: 判断后端是否快杰资源(非快杰: 0或者1 快杰: 2或者3) + * + * @return integer|null + */ + public function getProductType() + { + return $this->get("ProductType"); + } + + /** + * ProductType: 判断后端是否快杰资源(非快杰: 0或者1 快杰: 2或者3) + * + * @param int $productType + */ + public function setProductType($productType) + { + $this->set("ProductType", $productType); + } + + /** + * DefaultConfigId: 是否是默认配置文件,true表示默认;false表示非默认 + * + * @return string|null + */ + public function getDefaultConfigId() + { + return $this->get("DefaultConfigId"); + } + + /** + * DefaultConfigId: 是否是默认配置文件,true表示默认;false表示非默认 + * + * @param string $defaultConfigId + */ + public function setDefaultConfigId($defaultConfigId) + { + $this->set("DefaultConfigId", $defaultConfigId); + } + + /** + * IsHighPerformance: 是否是高性能Redis,true表示是;false表示否 + * + * @return boolean|null + */ + public function getIsHighPerformance() + { + return $this->get("IsHighPerformance"); + } + + /** + * IsHighPerformance: 是否是高性能Redis,true表示是;false表示否 + * + * @param boolean $isHighPerformance + */ + public function setIsHighPerformance($isHighPerformance) + { + $this->set("IsHighPerformance", $isHighPerformance); + } + + /** + * SupportAofRollback: 实例是否支持回档 + * + * @return boolean|null + */ + public function getSupportAofRollback() + { + return $this->get("SupportAofRollback"); + } + + /** + * SupportAofRollback: 实例是否支持回档 + * + * @param boolean $supportAofRollback + */ + public function setSupportAofRollback($supportAofRollback) + { + $this->set("SupportAofRollback", $supportAofRollback); + } + + /** + * AofRollbackEnable: 实例是否开启了回档 + * + * @return boolean|null + */ + public function getAofRollbackEnable() + { + return $this->get("AofRollbackEnable"); + } + + /** + * AofRollbackEnable: 实例是否开启了回档 + * + * @param boolean $aofRollbackEnable + */ + public function setAofRollbackEnable($aofRollbackEnable) + { + $this->set("AofRollbackEnable", $aofRollbackEnable); + } + + /** + * IsRWMode: 是否是读写分离 + * + * @return boolean|null + */ + public function getIsRWMode() + { + return $this->get("IsRWMode"); + } + + /** + * IsRWMode: 是否是读写分离 + * + * @param boolean $isRWMode + */ + public function setIsRWMode($isRWMode) + { + $this->set("IsRWMode", $isRWMode); + } + + /** + * SSLVersion: SSL版本 + * + * @return string|null + */ + public function getSSLVersion() + { + return $this->get("SSLVersion"); + } + + /** + * SSLVersion: SSL版本 + * + * @param string $sslVersion + */ + public function setSSLVersion($sslVersion) + { + $this->set("SSLVersion", $sslVersion); + } + + /** + * SSLEnable: 实例是否开启SSL + * + * @return boolean|null + */ + public function getSSLEnable() + { + return $this->get("SSLEnable"); + } + + /** + * SSLEnable: 实例是否开启SSL + * + * @param boolean $sslEnable + */ + public function setSSLEnable($sslEnable) + { + $this->set("SSLEnable", $sslEnable); + } + + /** + * SSLCertExpireTime: 证书过期时间 + * + * @return integer|null + */ + public function getSSLCertExpireTime() + { + return $this->get("SSLCertExpireTime"); + } + + /** + * SSLCertExpireTime: 证书过期时间 + * + * @param int $sslCertExpireTime + */ + public function setSSLCertExpireTime($sslCertExpireTime) + { + $this->set("SSLCertExpireTime", $sslCertExpireTime); + } + + /** + * SecPolicy: 安全策略。1:内网隔离,2:加密通信,3:内网隔离+加密通信 + * + * @return integer|null + */ + public function getSecPolicy() + { + return $this->get("SecPolicy"); + } + + /** + * SecPolicy: 安全策略。1:内网隔离,2:加密通信,3:内网隔离+加密通信 + * + * @param int $secPolicy + */ + public function setSecPolicy($secPolicy) + { + $this->set("SecPolicy", $secPolicy); + } + + /** + * HasPassword: 实例是否设置密码 + * + * @return boolean|null + */ + public function getHasPassword() + { + return $this->get("HasPassword"); + } + + /** + * HasPassword: 实例是否设置密码 + * + * @param boolean $hasPassword + */ + public function setHasPassword($hasPassword) + { + $this->set("HasPassword", $hasPassword); + } + + /** + * UDACEnable: 实例是否有加入到自治中心 + * + * @return boolean|null + */ + public function getUDACEnable() + { + return $this->get("UDACEnable"); + } + + /** + * UDACEnable: 实例是否有加入到自治中心 + * + * @param boolean $udacEnable + */ + public function setUDACEnable($udacEnable) + { + $this->set("UDACEnable", $udacEnable); + } } diff --git a/src/UMem/Models/UMemPriceSet.php b/src/UMem/Models/UMemPriceSet.php index ebf95a2e..c607bf5c 100644 --- a/src/UMem/Models/UMemPriceSet.php +++ b/src/UMem/Models/UMemPriceSet.php @@ -1,6 +1,6 @@ set("Version", $version); } + + /** + * DefaultConfigId: 是否是默认配置文件;true表示默认;false表示非默认 + * + * @return string|null + */ + public function getDefaultConfigId() + { + return $this->get("DefaultConfigId"); + } + + /** + * DefaultConfigId: 是否是默认配置文件;true表示默认;false表示非默认 + * + * @param string $defaultConfigId + */ + public function setDefaultConfigId($defaultConfigId) + { + $this->set("DefaultConfigId", $defaultConfigId); + } + + /** + * HasPassword: 实例是否设置密码 + * + * @return boolean|null + */ + public function getHasPassword() + { + return $this->get("HasPassword"); + } + + /** + * HasPassword: 实例是否设置密码 + * + * @param boolean $hasPassword + */ + public function setHasPassword($hasPassword) + { + $this->set("HasPassword", $hasPassword); + } + + /** + * UDACEnable: 实例是否有加入到自治中心 + * + * @return boolean|null + */ + public function getUDACEnable() + { + return $this->get("UDACEnable"); + } + + /** + * UDACEnable: 实例是否有加入到自治中心 + * + * @param boolean $udacEnable + */ + public function setUDACEnable($udacEnable) + { + $this->set("UDACEnable", $udacEnable); + } } diff --git a/src/UMem/Models/UMemSpaceAddressSet.php b/src/UMem/Models/UMemSpaceAddressSet.php index ce08d1c3..a68f6c03 100644 --- a/src/UMem/Models/UMemSpaceAddressSet.php +++ b/src/UMem/Models/UMemSpaceAddressSet.php @@ -1,6 +1,6 @@ set("IP", $ip); } + /** + * PrivateDomain: UMem实例内网访问域名地址,未开启状态下返回为空 + * + * @return string|null + */ + public function getPrivateDomain() + { + return $this->get("PrivateDomain"); + } + + /** + * PrivateDomain: UMem实例内网访问域名地址,未开启状态下返回为空 + * + * @param string $privateDomain + */ + public function setPrivateDomain($privateDomain) + { + $this->set("PrivateDomain", $privateDomain); + } + + /** + * PublicIp: 开启外网状态下外网IP,否则为空 + * + * @return string|null + */ + public function getPublicIp() + { + return $this->get("PublicIp"); + } + + /** + * PublicIp: 开启外网状态下外网IP,否则为空 + * + * @param string $publicIp + */ + public function setPublicIp($publicIp) + { + $this->set("PublicIp", $publicIp); + } + /** * Port: UMem实例访问Port * diff --git a/src/UMem/Models/UMemSpaceSet.php b/src/UMem/Models/UMemSpaceSet.php index 561e5b56..0a8ad16a 100644 --- a/src/UMem/Models/UMemSpaceSet.php +++ b/src/UMem/Models/UMemSpaceSet.php @@ -1,6 +1,6 @@ get("SupportAofRollback"); + } + + /** + * SupportAofRollback: 实例是否支持回档 + * + * @param boolean $supportAofRollback + */ + public function setSupportAofRollback($supportAofRollback) + { + $this->set("SupportAofRollback", $supportAofRollback); + } + + /** + * AofRollbackEnable: 实例是否开启了回档 + * + * @return boolean|null + */ + public function getAofRollbackEnable() + { + return $this->get("AofRollbackEnable"); + } + + /** + * AofRollbackEnable: 实例是否开启了回档 + * + * @param boolean $aofRollbackEnable + */ + public function setAofRollbackEnable($aofRollbackEnable) + { + $this->set("AofRollbackEnable", $aofRollbackEnable); + } } diff --git a/src/UMem/Models/UMemcacheGroupSet.php b/src/UMem/Models/UMemcacheGroupSet.php index 1a531847..add9e14c 100644 --- a/src/UMem/Models/UMemcacheGroupSet.php +++ b/src/UMem/Models/UMemcacheGroupSet.php @@ -1,6 +1,6 @@ get("BackupId"); + return $this->get("Zone"); } /** - * BackupId: 备份ID + * Zone: 可用区,参见[可用区列表](../summary/regionlist.html) * - * @param string $backupId + * @param string $zone */ - public function setBackupId($backupId) + public function setZone($zone) { - $this->set("BackupId", $backupId); + $this->set("Zone", $zone); } /** - * Zone: 可用区,参见[可用区列表](../summary/regionlist.html) + * BackupId: 备份ID * * @return string|null */ - public function getZone() + public function getBackupId() { - return $this->get("Zone"); + return $this->get("BackupId"); } /** - * Zone: 可用区,参见[可用区列表](../summary/regionlist.html) + * BackupId: 备份ID * - * @param string $zone + * @param string $backupId */ - public function setZone($zone) + public function setBackupId($backupId) { - $this->set("Zone", $zone); + $this->set("BackupId", $backupId); } /** @@ -201,4 +201,84 @@ public function setState($state) { $this->set("State", $state); } + + /** + * SrcRegionName: 跨地域备份源地域 + * + * @return string|null + */ + public function getSrcRegionName() + { + return $this->get("SrcRegionName"); + } + + /** + * SrcRegionName: 跨地域备份源地域 + * + * @param string $srcRegionName + */ + public function setSrcRegionName($srcRegionName) + { + $this->set("SrcRegionName", $srcRegionName); + } + + /** + * DstRegionName: 跨地域备份目标地域 + * + * @return string|null + */ + public function getDstRegionName() + { + return $this->get("DstRegionName"); + } + + /** + * DstRegionName: 跨地域备份目标地域 + * + * @param string $dstRegionName + */ + public function setDstRegionName($dstRegionName) + { + $this->set("DstRegionName", $dstRegionName); + } + + /** + * MemorySize: 源实例容量大小 + * + * @return integer|null + */ + public function getMemorySize() + { + return $this->get("MemorySize"); + } + + /** + * MemorySize: 源实例容量大小 + * + * @param int $memorySize + */ + public function setMemorySize($memorySize) + { + $this->set("MemorySize", $memorySize); + } + + /** + * RedisVersion: 源实例Redis版本 + * + * @return string|null + */ + public function getRedisVersion() + { + return $this->get("RedisVersion"); + } + + /** + * RedisVersion: 源实例Redis版本 + * + * @param string $redisVersion + */ + public function setRedisVersion($redisVersion) + { + $this->set("RedisVersion", $redisVersion); + } } diff --git a/src/UMem/Models/URedisConfigSet.php b/src/UMem/Models/URedisConfigSet.php index f635cf07..37e70b3a 100644 --- a/src/UMem/Models/URedisConfigSet.php +++ b/src/UMem/Models/URedisConfigSet.php @@ -1,6 +1,6 @@ set("SlaveZone", $slaveZone); } + + /** + * IsHighPerformance: 是否是高性能Redis, true表示是; false表示否 + * + * @return boolean|null + */ + public function getIsHighPerformance() + { + return $this->get("IsHighPerformance"); + } + + /** + * IsHighPerformance: 是否是高性能Redis, true表示是; false表示否 + * + * @param boolean $isHighPerformance + */ + public function setIsHighPerformance($isHighPerformance) + { + $this->set("IsHighPerformance", $isHighPerformance); + } + + /** + * SSLVersion: SSL版本 + * + * @return string|null + */ + public function getSSLVersion() + { + return $this->get("SSLVersion"); + } + + /** + * SSLVersion: SSL版本 + * + * @param string $sslVersion + */ + public function setSSLVersion($sslVersion) + { + $this->set("SSLVersion", $sslVersion); + } + + /** + * SSLEnable: 实例是否开启SSL + * + * @return boolean|null + */ + public function getSSLEnable() + { + return $this->get("SSLEnable"); + } + + /** + * SSLEnable: 实例是否开启SSL + * + * @param boolean $sslEnable + */ + public function setSSLEnable($sslEnable) + { + $this->set("SSLEnable", $sslEnable); + } + + /** + * SSLCertExpireTime: 证书过期时间 + * + * @return integer|null + */ + public function getSSLCertExpireTime() + { + return $this->get("SSLCertExpireTime"); + } + + /** + * SSLCertExpireTime: 证书过期时间 + * + * @param int $sslCertExpireTime + */ + public function setSSLCertExpireTime($sslCertExpireTime) + { + $this->set("SSLCertExpireTime", $sslCertExpireTime); + } + + /** + * SecPolicy: 安全策略。1:内网隔离,2:加密通信,3:内网隔离+加密通信 + * + * @return integer|null + */ + public function getSecPolicy() + { + return $this->get("SecPolicy"); + } + + /** + * SecPolicy: 安全策略。1:内网隔离,2:加密通信,3:内网隔离+加密通信 + * + * @param int $secPolicy + */ + public function setSecPolicy($secPolicy) + { + $this->set("SecPolicy", $secPolicy); + } + + /** + * UDACEnable: 实例是否有加入到自治中心 + * + * @return boolean|null + */ + public function getUDACEnable() + { + return $this->get("UDACEnable"); + } + + /** + * UDACEnable: 实例是否有加入到自治中心 + * + * @param boolean $udacEnable + */ + public function setUDACEnable($udacEnable) + { + $this->set("UDACEnable", $udacEnable); + } } diff --git a/src/UMem/Models/URedisPriceSet.php b/src/UMem/Models/URedisPriceSet.php index cee1f5e7..69251679 100644 --- a/src/UMem/Models/URedisPriceSet.php +++ b/src/UMem/Models/URedisPriceSet.php @@ -1,6 +1,6 @@ toArray(), $resp->getRequestId()); } + /** + * CreateScanHotBigKeys - 创建执行扫大key和热key的任务 + * + * See also: https://docs.ucloud.cn/api/umem-api/create_scan_hot_big_keys + * + * 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) + * "GroupId" => (string) 资源id + * "Type" => (string) 任务类型。"ScanBigKeys":扫大key,"ScanHotKeys":扫热key + * "SpaceId" => (string) 分布式资源ID + * "IsRetry" => (boolean) 是否要重试任务,如果是的话,TaskId必填 + * "TaskId" => (string) 要重试的任务id + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return CreateScanHotBigKeysResponse + * @throws UCloudException + */ + public function createScanHotBigKeys(CreateScanHotBigKeysRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateScanHotBigKeysResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateUDRedisUhproxy - 添加分布式Redis代理 + * + * See also: https://docs.ucloud.cn/api/umem-api/create_ud_redis_uhproxy + * + * 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) UMem内存空间ID + * "CPU" => (integer) 代理核数 + * "Port" => (integer) 代理端口, 默认为 6379 + * "ProxyCnt" => (integer) 代理个数 + * "CouponId" => (string) 使用的代金券id + * ] + * + * Outputs: + * + * $outputs = [ + * "ResourceId" => (string) 代理资源id + * ] + * + * @return CreateUDRedisUhproxyResponse + * @throws UCloudException + */ + public function createUDRedisUhproxy(CreateUDRedisUhproxyRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateUDRedisUhproxyResponse($resp->toArray(), $resp->getRequestId()); + } + /** * CreateUMemBackup - 创建分布式redis备份 * @@ -180,9 +267,9 @@ public function checkURedisAllowance(CheckURedisAllowanceRequest $request = null * 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) 资源id * "BackupName" => (string) 请求创建备份的名称 (范围[6-63],只能包含英文、数字以及符号-和_) * ] @@ -210,15 +297,32 @@ public function createUMemBackup(CreateUMemBackupRequest $request = null) * 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) * "Size" => (integer) 内存大小, 单位:GB, 范围[1~1024] * "Name" => (string) 空间名称,长度(6<=size<=63) * "Protocol" => (string) 协议:memcache, redis (默认redis).注意:redis无single类型 * "Type" => (string) 空间类型:single(无热备),double(热备)(默认: double) - * "ChargeType" => (string) Year , Month, Dynamic, Trial 默认: Month + * "ChargeType" => (string) Year , Month, Dynamic 默认: Month * "Quantity" => (integer) 购买时长 默认: 1 + * "VPCId" => (string) VPC的ID + * "SubnetId" => (string) 子网ID + * "Tag" => (string) 业务组名称 + * "Password" => (string) URedis密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。 + * "SlaveZone" => (string) 跨机房UDRedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + * "BlockCnt" => (integer) 分片个数 + * "ClusterMode" => (string) "RWMode":表示创建读写分离版本;其他为创建普通版本 + * "Version" => (string) 分布式分片版本(默认版本是4.0,其他版本见DescribeUDRedisBlockVersion) + * "HighPerformance" => (boolean) 是否创建性能增强性。默认为false,或者不填,填true为性能增强型。 + * "ProxySize" => (integer) 分布式代理CPU核数,不填或者传0时默认不创建代理 + * "UlbMode" => (boolean) 是否创建负载均衡型分布式代理,true时表示创建负载均衡型代理 + * "Port" => (integer) 分片端口, 默认为 6379 + * "ProxyPort" => (integer) 代理端口, 默认为 6379 + * "BackupId" => (string) 备份ID,选择从该备份新建集群 + * "SpaceId" => (string) 集群ID,选择某个备份创建时,需要填写源集群ID + * "RollbackSpaceId" => (string) 如果是通过回档创建,该实例ID不为空 + * "RollbackTime" => (integer) 要回档的时间戳 * "CouponId" => (string) 使用的代金券id * ] * @@ -282,9 +386,9 @@ public function createUMemcacheGroup(CreateUMemcacheGroupRequest $request = null * 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) * "GroupId" => (string) 资源id * "BackupName" => (string) 请求创建组的名称 (范围[6-63],只能包含英文、数字以及符号-和_) * "SlaveZone" => (string) 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) @@ -313,16 +417,16 @@ public function createURedisBackup(CreateURedisBackupRequest $request = null) * 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) * "Name" => (string) 请求创建组的名称 (范围[6-63],只能包含英文、数字以及符号-和_) * "HighAvailability" => (string) 是否开启高可用,enable或disable * "Size" => (integer) 每个节点的内存大小,单位GB,默认1GB,目前仅支持1/2/4/8/16/32,六种 * "AutoBackup" => (string) 是否自动备份,enable或disable,默认disable * "BackupTime" => (integer) 自动备份开始时间,范围[0-23],默认3点 - * "ConfigId" => (string) 配置ID,目前支持 3.0版本配置ID:"03f58ca9-b64d-4bdd-abc7-c6b9a46fd801",3.2版本配置ID:"3e45ac48-f8a2-a9q2-261d-l342dab130gf", 4.0版本配置ID:"6c9298a3-9d7f-428c-b1d0-e87ab3b8a1ea",默认版本3.0,从备份创建为必传项 - * "Version" => (string) Redis版本信息(详见DescribeURedisVersion返回结果),默认版本3.0 + * "ConfigId" => (string) 配置ID,目前支持 4.0版本配置ID:"6c9298a3-9d7f-428c-b1d0-e87ab3b8a1ea", 5.0版本配置ID:"3cdeeb90-dcbf-46e8-95cd-a05d8860a22c",6.0版本配置ID:"1d990520-aac8-4e0f-9384-f58611e8eb28",7.0版本配置ID:"48dcf534-db41-11ec-a1a6-52670028d520",默认版本4.0,从备份创建为必传项 + * "Version" => (string) Redis版本信息(详见DescribeURedisVersion返回结果),默认版本4.0 * "ChargeType" => (string) 计费模式,Year , Month, Dynamic 默认: Month * "Quantity" => (integer) 购买时长,默认为1 * "Tag" => (string) 业务组名称 @@ -330,9 +434,14 @@ public function createURedisBackup(CreateURedisBackupRequest $request = null) * "BackupId" => (string) 有此项代表从备份中创建,无代表正常创建 * "SlaveZone" => (string) 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) * "MasterGroupId" => (string) Master Redis Group的ID,创建只读Slave时,必须填写 - * "EnableIpV6" => (boolean) 是否创建使用ipv6 资源, 默认为false, 或者不填, 创建ipv6为true + * "EnableIpV6" => (boolean) 【即将下线,请勿使用】是否创建使用ipv6 资源, 默认为false, 或者不填, 创建ipv6为true * "SubnetId" => (string) 子网ID * "VPCId" => (string) VPC的ID + * "HighPerformance" => (boolean) 是否创建高性能Redis, 默认为false, 或者不填, 创建高性能为true + * "Port" => (integer) 端口 + * "RollbackGroupId" => (string) 如果是通过回档创建实例,需要传回档实例的GroupId + * "AOFID" => (string) 回档的AOF文件ID + * "RollbackTime" => (integer) 回档时间点 * "CouponId" => (string) 代金券ID * ] * @@ -351,6 +460,35 @@ public function createURedisGroup(CreateURedisGroupRequest $request = null) return new CreateURedisGroupResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DeleteUDRedisProxy - 删除分布式Redis代理 + * + * See also: https://docs.ucloud.cn/api/umem-api/delete_ud_redis_proxy + * + * 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) 分布式Redis资源ID + * "ProxyId" => (string) 代理id + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteUDRedisProxyResponse + * @throws UCloudException + */ + public function deleteUDRedisProxy(DeleteUDRedisProxyRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteUDRedisProxyResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DeleteUMemSpace - 删除UMem内存空间 * @@ -359,9 +497,9 @@ public function createURedisGroup(CreateURedisGroupRequest $request = null) * 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 * ] * @@ -387,9 +525,9 @@ public function deleteUMemSpace(DeleteUMemSpaceRequest $request = null) * 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) * "GroupId" => (string) 组ID * ] * @@ -415,8 +553,8 @@ public function deleteUMemcacheGroup(DeleteUMemcacheGroupRequest $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) * "GroupId" => (string) 组ID * ] * @@ -434,6 +572,43 @@ public function deleteURedisGroup(DeleteURedisGroupRequest $request = null) return new DeleteURedisGroupResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeUDRedisProxyClientList - 查询分布式代理客户端连接信息 + * + * See also: https://docs.ucloud.cn/api/umem-api/describe_ud_redis_proxy_client_list + * + * 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) 分布式Redis集群id + * "ProxyId" => (string) 分布式Redis代理Id + * ] + * + * Outputs: + * + * $outputs = [ + * "Count" => (integer) 连接数 + * "ProxyClientList" => (array) 代理连接信息[ + * [ + * "Ip" => (string) 客户端Ip + * "ConnCnt" => (integer) 该客户端Ip连接数量 + * ] + * ] + * "Time" => (integer) 连接获取时间 + * ] + * + * @return DescribeUDRedisProxyClientListResponse + * @throws UCloudException + */ + public function describeUDRedisProxyClientList(DescribeUDRedisProxyClientListRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUDRedisProxyClientListResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeUDRedisProxyInfo - 拉取udredis所有的代理信息 * @@ -456,7 +631,13 @@ public function deleteURedisGroup(DeleteURedisGroupRequest $request = null) * "ResourceId" => (string) 代理资源id * "ProxyId" => (string) 代理id * "Vip" => (string) 代理ip - * "State" => (string) 代理状态 + * "State" => (string) 代理状态 [PROXY_CREATING:创建中, PROXY_NORMAL:正常运行, PROXY_FAILED:创建失败, PROXY_CLOSED:关闭, PROXY_INIT_RESIZE:初始化核数调整, PROXY_WAIT_RESIZE:等待核数调整, PROXY_RESIZING:核数调整中, PROXY_RESIZE_ERROR:核数调整失败] + * "CPU" => (integer) 代理CPU核数 + * "ProxyType" => (integer) 0 : 物理机版分布式代理, 1: NVME(或SSD)版分布式代理 + * "PublicIp" => (string) 开启外网状态下的外网IP,否则为空 + * "SupportReadOnly" => (boolean) 代理是否支持设置为只读 + * "ReadOnly" => (boolean) 代理是否为只读 + * "ReadMode" => (string) 读写分离策略, "Custom": 用户自定义节点权重, "Uniform": 包括主节点在内的所有节点平均读请求, "ReadOnly": 读请求均分至只读节点 * ] * ] * ] @@ -478,11 +659,13 @@ public function describeUDRedisProxyInfo(DescribeUDRedisProxyInfoRequest $reques * 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) * "InstanceId" => (string) 实例id + * "ProxyId" => (string) 代理Id * "Limit" => (integer) 分页显示的条目数,默认为10 + * "SpaceId" => (string) 分布式资源Id * ] * * Outputs: @@ -495,6 +678,7 @@ public function describeUDRedisProxyInfo(DescribeUDRedisProxyInfoRequest $reques * "SpendTime" => (integer) 查询消耗的时间 * "Command" => (string) 查询命令 * "BlockId" => (string) 分片id + * "Client" => (string) 慢日志的的客户信息 * ] * ] * ] @@ -558,6 +742,9 @@ public function describeUDRedisSlowlog(DescribeUDRedisSlowlogRequest $request = * "ResourceType" => (string) distributed: 分布式版Redis,或者分布式Memcache;single:主备版Redis,或者单机Memcache;performance:高性能版 * "ConfigId" => (string) 节点的配置ID * "Version" => (string) Redis版本信息 + * "DefaultConfigId" => (string) 是否是默认配置文件;true表示默认;false表示非默认 + * "HasPassword" => (boolean) 实例是否设置密码 + * "UDACEnable" => (boolean) 实例是否有加入到自治中心 * ] * ] * "Role" => (string) 表示实例是主库还是从库,master,slave仅主备redis返回该项参数 @@ -572,11 +759,13 @@ public function describeUDRedisSlowlog(DescribeUDRedisSlowlogRequest $request = * "Protocol" => (string) 协议类型: memcache, redis * "Size" => (integer) 容量单位GB * "UsedSize" => (integer) 使用量单位MB - * "State" => (string) 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中SetPasswordFail //设置密码失败 + * "State" => (string) 实例状态Starting // 创建中Creating // 初始化中Deleting // 删除中CreateFail // 创建失败DeleteFail // 删除失败Resizing // 容量调整中ResizeFail // 容量调整失败Disasting // 容灾中Running // 运行SetPassword // 设置密码SetPasswordFail // 设置密码失败ISolation // 关闭Replicating // 同步中ReplicateDone // 数据同步完成ExecTimeout // 待重试SlaveRecovering // 备库恢复中ReplicateFail // 同步失败DelayUpgrade // 待扩容迁移 VersionUpgrading // 升级中VersionUpgradeFail // 升级失败UpgradeMemInit // 任务初始化ClusterUpgrading // 规格调整中SSLSwitching // 修改TLS中SSLSwitchFail // 修改TLS失败 * "ChargeType" => (string) 计费模式,Year, Month, Dynamic, Trial * "Address" => (array) IP端口信息请,参见UMemSpaceAddressSet[ * [ - * "IP" => (string) UMem实例访问IP + * "IP" => (string) UMem实例内网访问IP + * "PrivateDomain" => (string) UMem实例内网访问域名地址,未开启状态下返回为空 + * "PublicIp" => (string) 开启外网状态下外网IP,否则为空 * "Port" => (integer) UMem实例访问Port * ] * ] @@ -588,6 +777,19 @@ public function describeUDRedisSlowlog(DescribeUDRedisSlowlogRequest $request = * "HighAvailability" => (string) 是否开启高可用,enable,disable * "Version" => (string) Redis版本信息 * "SlaveZone" => (string) 跨机房URedis,slave redis所在可用区,参见 [可用区列表](../summary/regionlist.html) + * "ProxyName" => (string) URedis是否开启读写分离 + * "ProductType" => (integer) 判断后端是否快杰资源(非快杰: 0或者1 快杰: 2或者3) + * "DefaultConfigId" => (string) 是否是默认配置文件,true表示默认;false表示非默认 + * "IsHighPerformance" => (boolean) 是否是高性能Redis,true表示是;false表示否 + * "SupportAofRollback" => (boolean) 实例是否支持回档 + * "AofRollbackEnable" => (boolean) 实例是否开启了回档 + * "IsRWMode" => (boolean) 是否是读写分离 + * "SSLVersion" => (string) SSL版本 + * "SSLEnable" => (boolean) 实例是否开启SSL + * "SSLCertExpireTime" => (integer) 证书过期时间 + * "SecPolicy" => (integer) 安全策略。1:内网隔离,2:加密通信,3:内网隔离+加密通信 + * "HasPassword" => (boolean) 实例是否设置密码 + * "UDACEnable" => (boolean) 实例是否有加入到自治中心 * ] * ] * ] @@ -609,9 +811,9 @@ public function describeUMem(DescribeUMemRequest $request = null) * 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) 资源id * "Offset" => (integer) 分页显示的起始偏移, 默认值为0 * "Limit" => (integer) 分页显示的条目数, 默认值为10 @@ -628,8 +830,10 @@ public function describeUMem(DescribeUMemRequest $request = null) * "BackupId" => (string) 空间的备份ID * "BackupType" => (string) 备份类型: auto(自动) ,manual(手动) * "BlockCount" => (integer) 本次备份,分片的数量 + * "BlockSize" => (integer) 备份大小 * ] * ] + * "TotalCount" => (integer) 备份总数 * ] * * @return DescribeUMemBackupResponse @@ -649,9 +853,9 @@ public function describeUMemBackup(DescribeUMemBackupRequest $request = null) * 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) 资源id * "BackupId" => (string) 备份Id * "BlockId" => (string) 分片id @@ -696,13 +900,17 @@ public function describeUMemBackupURL(DescribeUMemBackupURLRequest $request = nu * "BlockId" => (string) 分片id * "BlockPort" => (integer) 分片端口 * "BlockSize" => (integer) 容量单位GB - * "BlockState" => (string) 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中 SetPasswordFail //设置密码失败 + * "BlockState" => (string) 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中 SetPasswordFail //设置密码失败UpgradeMemInit //任务初始化 * "BlockSlotBegin" => (integer) 分片维护的键槽起始值 * "BlockSlotEnd" => (integer) 分片维护的键槽结束值 * "BlockVip" => (string) 分片ip * "BlockUsedSize" => (integer) 使用量单位MB + * "BlockType" => (string) 分片类型,master 或者 slave + * "BlockReadWeight" => (integer) 分片读权重 + * "BlockName" => (string) 分片名称 * ] * ] + * "ReadMode" => (string) 集群读写分离策略。 枚举值[ "Custom": 用户自定义节点权重, "Uniform": 包括主节点在内的所有节点平均读请求, "ReadOnly": 读请求均分至只读节点] * ] * * @return DescribeUMemBlockInfoResponse @@ -729,6 +937,12 @@ public function describeUMemBlockInfo(DescribeUMemBlockInfoRequest $request = nu * "Type" => (string) 空间类型:single(无热备),double(热备)(默认: double) * "ChargeType" => (string) Year, Month, Dynamic 如果不指定,则一次性获取三种计费 * "Quantity" => (integer) 购买UMem的时长,默认值为1 + * "HighPerformance" => (boolean) 实例类型是否为性能增强型。默认为false,或者不填,true为性能增强型。 + * "BlockCnt" => (integer) umem 分片个数 + * "ProxySize" => (integer) umem 代理CPU核心数 + * "UlbMode" => (string) umem分布式代理类型,默认false,true为负载均衡型代理 + * "ClusterMode" => (string) 数据库类型,RWMode为读写分离 + * "ProxyCnt" => (integer) umem 代理个数 * ] * * Outputs: @@ -753,16 +967,16 @@ public function describeUMemPrice(DescribeUMemPriceRequest $request = null) } /** - * DescribeUMemSpace - 获取UMem内存空间列表 + * DescribeUMemSpace - 获取UMem内存空间列表(已废弃,建议是使用DescribeUMem接口) * * See also: https://docs.ucloud.cn/api/umem-api/describe_umem_space * * 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) * "Offset" => (integer) 数据偏移量, 默认为0 * "Limit" => (integer) 返回数据长度, 默认为20 * "SpaceId" => (string) 内存空间ID (无ID,则获取所有) @@ -775,11 +989,11 @@ public function describeUMemPrice(DescribeUMemPriceRequest $request = null) * "DataSet" => (array) JSON 格式的UMem内存空间实例列表, 详细参见 UMemSpaceSet[ * [ * "Zone" => (string) 可用区,参见[可用区列表](../summary/regionlist.html) - * "Tag" => (string) + * "Tag" => (string) 实例tag * "RewriteTime" => (integer) 运维时间0 //0点1 //1点依次类推 * "SpaceId" => (string) 内存空间ID - * "SubnetId" => (string) - * "VPCId" => (string) + * "SubnetId" => (string) 子网ID + * "VPCId" => (string) VPC ID * "Name" => (string) 内存空间名称 * "CreateTime" => (integer) 创建时间 * "ExpireTime" => (integer) 到期时间 @@ -791,10 +1005,14 @@ public function describeUMemPrice(DescribeUMemPriceRequest $request = null) * "ChargeType" => (string) Year, Month, Dynamic, Trial * "Address" => (array) IP端口信息请参见 UMemSpaceAddressSet[ * [ - * "IP" => (string) UMem实例访问IP + * "IP" => (string) UMem实例内网访问IP + * "PrivateDomain" => (string) UMem实例内网访问域名地址,未开启状态下返回为空 + * "PublicIp" => (string) 开启外网状态下外网IP,否则为空 * "Port" => (integer) UMem实例访问Port * ] * ] + * "SupportAofRollback" => (boolean) 实例是否支持回档 + * "AofRollbackEnable" => (boolean) 实例是否开启了回档 * ] * ] * "TotalCount" => (integer) 根据过滤条件得到的总数 @@ -823,6 +1041,13 @@ public function describeUMemSpace(DescribeUMemSpaceRequest $request = null) * "Size" => (integer) 购买UMem大小,单位:GB * "Type" => (string) 空间类型:single(无热备),double(热备)(默认: double) * "SpaceId" => (string) 需要升级的空间的SpaceId + * "HighPerformance" => (string) 是否为性能增强型。默认为false,或者不填,true为性能增强型。 + * "IsSplit" => (string) 如果是拆分按钮查询价格就填 true, 否则就填 false,默认为 false + * "BlockIds" => (array) 进行容量调整分片的分片ID(性能增强型不需要传入) + * "BlockSize" => (array) 进行容量调整的分片的目标容量,单位 GB(性能增强型不需要传入) + * "ProxyId" => (string) 代理id + * "NewCPU" => (integer) 代理升级后CPU核数 + * "ReplicaSize" => (integer) 新增读写分离节点容量大小 * ] * * Outputs: @@ -849,9 +1074,9 @@ public function describeUMemUpgradePrice(DescribeUMemUpgradePriceRequest $reques * 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) * "GroupId" => (string) 组的ID,如果指定则获取描述,否则为列表操 作,需指定Offset/Limit * "Offset" => (integer) 分页显示的起始偏移, 默认值为0 * "Limit" => (integer) 分页显示的条目数, 默认值为20 @@ -937,6 +1162,9 @@ public function describeUMemcachePrice(DescribeUMemcachePriceRequest $request = * 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) * "Size" => (integer) 购买umemcache大小,单位:GB * "GroupId" => (string) 需要升级的空间的GroupId,请参考DescribeUMemcacheGroup接口 * ] @@ -944,7 +1172,9 @@ public function describeUMemcachePrice(DescribeUMemcachePriceRequest $request = * Outputs: * * $outputs = [ - * "Price" => (number) 价格,单位:元 + * "Price" => (integer) 价格 + * "OriginalPrice" => (integer) 原价 + * "ListPrice" => (integer) 列表价格 * ] * * @return DescribeUMemcacheUpgradePriceResponse @@ -964,11 +1194,14 @@ public function describeUMemcacheUpgradePrice(DescribeUMemcacheUpgradePriceReque * 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) + * "GroupId" => (string) 组的ID,如果不传RegionType,GroupId为必传项 * "Offset" => (integer) 分页显示的起始偏移, 默认值为0 * "Limit" => (integer) 分页显示的条目数, 默认值为10 - * "GroupId" => (string) 组的ID + * "SlaveZone" => (string) 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + * "RegionType" => (string) 用于区分跨可用备份以及普通备份。默认为normal。跨可用则分为(source, target) + * "BackupId" => (string) 备份Id,若传入,则只返回该BackupId的备份信息 * ] * * Outputs: @@ -977,8 +1210,8 @@ public function describeUMemcacheUpgradePrice(DescribeUMemcacheUpgradePriceReque * "TotalCount" => (integer) 用户名下总的备份个数 * "DataSet" => (array) 备份列表 参见 URedisBackupSet[ * [ - * "BackupId" => (string) 备份ID * "Zone" => (string) 可用区,参见[可用区列表](../summary/regionlist.html) + * "BackupId" => (string) 备份ID * "GroupId" => (string) 对应的实例ID * "GroupName" => (string) 组名称 * "BackupName" => (string) 备份的名称 @@ -986,6 +1219,10 @@ public function describeUMemcacheUpgradePrice(DescribeUMemcacheUpgradePriceReque * "BackupSize" => (integer) 备份文件大小, 以字节为单位 * "BackupType" => (string) 备份类型: Manual 手动 Auto 自动 * "State" => (string) 备份的状态: Backuping 备份中 Success 备份成功 Error 备份失败 Expired 备份过期 + * "SrcRegionName" => (string) 跨地域备份源地域 + * "DstRegionName" => (string) 跨地域备份目标地域 + * "MemorySize" => (integer) 源实例容量大小 + * "RedisVersion" => (string) 源实例Redis版本 * ] * ] * ] @@ -1007,19 +1244,20 @@ public function describeURedisBackup(DescribeURedisBackupRequest $request = null * 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) * "BackupId" => (string) 备份ID * "RegionFlag" => (boolean) 是否是跨机房URedis(默认false) - * "GroupId" => (string) 实例名称 + * "GroupId" => (string) 实例ID * "SlaveZone" => (string) 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + * "IsCrossRegion" => (boolean) 默认为false,true时代表查询跨地域备份URL * ] * * Outputs: * * $outputs = [ - * "BackupURL" => (string) 备份文件公网的地址 + * "BackupURL" => (string) [即将下线,请使用BackupPath] * "BackupPath" => (string) 备份文件公网的地址 * ] * @@ -1080,7 +1318,7 @@ public function describeURedisConfig(DescribeURedisConfigRequest $request = null } /** - * DescribeURedisGroup - 查询主备Redis + * DescribeURedisGroup - 查询主备Redis(已废弃,建议使用DescribeUMem) * * See also: https://docs.ucloud.cn/api/umem-api/describe_uredis_group * @@ -1110,8 +1348,8 @@ public function describeURedisConfig(DescribeURedisConfigRequest $request = null * "Name" => (string) 组名称 * "Type" => (string) 空间类型:single(无热备),double(热备) * "Protocol" => (string) 协议 - * "MemorySize" => (integer) 容量单位GB - * "GroupName" => (string) 组名称 + * "MemorySize" => (integer) [即将下线,请使用Size] 容量单位GB + * "GroupName" => (string) [即将下线,请使用Name] 组名称 * "ConfigId" => (string) 节点的配置ID * "VirtualIP" => (string) 节点的虚拟IP地址 * "Port" => (integer) 节点分配的服务端口 @@ -1123,11 +1361,17 @@ public function describeURedisConfig(DescribeURedisConfigRequest $request = null * "Version" => (string) Redis版本信息 * "ExpireTime" => (integer) 过期时间 (UNIX时间戳) * "ChargeType" => (string) 计费类型:Year,Month,Dynamic 默认Dynamic - * "State" => (string) 状态标记 Creating // 初始化中 CreateFail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败 + * "State" => (string) 状态标记 Creating // 初始化中 CreateFail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败// 修改SSL中SSLSwitching //SSLSwitchFail修改SSL失败 * "CreateTime" => (integer) 创建时间 (UNIX时间戳) * "ModifyTime" => (integer) 修改时间 (UNIX时间戳) * "Tag" => (string) 业务组名称 * "SlaveZone" => (string) 跨机房URedis,slave redis所在可用区,参见 [可用区列表](../summary/regionlist.html) + * "IsHighPerformance" => (boolean) 是否是高性能Redis, true表示是; false表示否 + * "SSLVersion" => (string) SSL版本 + * "SSLEnable" => (boolean) 实例是否开启SSL + * "SSLCertExpireTime" => (integer) 证书过期时间 + * "SecPolicy" => (integer) 安全策略。1:内网隔离,2:加密通信,3:内网隔离+加密通信 + * "UDACEnable" => (boolean) 实例是否有加入到自治中心 * ] * ] * ] @@ -1142,21 +1386,22 @@ public function describeURedisGroup(DescribeURedisGroupRequest $request = null) } /** - * DescribeURedisPrice - 取uredis价格信息 + * DescribeURedisPrice - 获取URedis价格信息 * * See also: https://docs.ucloud.cn/api/umem-api/describe_uredis_price * * 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) * "Size" => (integer) 量大小,单位:GB 取值范围[1-32] * "ChargeType" => (string) 计费模式,Year, Month, Dynamic;如果不指定,则一次性获取三种计费 * "Quantity" => (integer) 计费模式为Dynamic时,购买的时长, 默认为1 * "RegionFlag" => (boolean) 是否是跨机房URedis(默认false) * "ProductType" => (string) 产品类型:MS_Redis(标准主备版),S_Redis(从库),默认为MS_Redis + * "HighPerformance" => (boolean) 查询高性能Redis, 默认为false, 或者不填, 查询高性能为true * ] * * Outputs: @@ -1189,9 +1434,9 @@ public function describeURedisPrice(DescribeURedisPriceRequest $request = null) * 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) * "GroupId" => (string) 资源ID * "Limit" => (integer) 分页显示的条目数,默认为10 * ] @@ -1226,16 +1471,20 @@ public function describeURedisSlowlog(DescribeURedisSlowlogRequest $request = nu * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "Zone" => (string) 可用区。参见 [可用区列表](../summary/regionlist.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) * "Size" => (integer) 购买uredis大小,单位:GB,范围是[1-32] * "GroupId" => (string) 要升级的空间的GroupId,请参考DescribeURedisGroup接口 + * "HighPerformance" => (boolean) 查询高性能Redis, 默认为false, 或者不填, 查询高性能为true + * "ConvertType" => (string) 切换类型,执行类型切换时询价需要传入的参数。“HighPerformance”: 表示转换为性能加强型,“Normal”: 表示转换为普通主备版类型 * ] * * Outputs: * * $outputs = [ - * "Price" => (number) 扩容差价,单位: 元,保留小数点后两位有效数字 + * "Price" => (number) 价格 + * "OriginalPrice" => (integer) 原价 * ] * * @return DescribeURedisUpgradePriceResponse @@ -1288,9 +1537,9 @@ public function describeURedisVersion(DescribeURedisVersionRequest $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) * "GroupId" => (string) 组的ID * "FlushType" => (string) FlushDb或FlushAll * "DbNum" => (integer) 清空的db,FlushType为FlushDb,此项为必传项 @@ -1321,16 +1570,16 @@ public function flushallURedisGroup(FlushallURedisGroupRequest $request = null) * 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) 内存空间ID * ] * * Outputs: * * $outputs = [ - * "State" => (string) Starting:创建中 Running:运行中 Fail:失败 + * "State" => (array) Starting:创建中 Running:运行中 Fail:失败 * ] * * @return GetUMemSpaceStateResponse @@ -1372,6 +1621,35 @@ public function iSolationURedisGroup(ISolationURedisGroupRequest $request = null return new ISolationURedisGroupResponse($resp->toArray(), $resp->getRequestId()); } + /** + * ModifyUMemPassword - 更改分布式redis密码 + * + * See also: https://docs.ucloud.cn/api/umem-api/modify_umem_password + * + * 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) 资源id + * "Password" => (string) 新密码字符串,要求长度为6~36个字符,且只能包含英文、数字以及-和下划线;并且需要base64加密;如要取消密码,此值为空字符串 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ModifyUMemPasswordResponse + * @throws UCloudException + */ + public function modifyUMemPassword(ModifyUMemPasswordRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyUMemPasswordResponse($resp->toArray(), $resp->getRequestId()); + } + /** * ModifyUMemSpaceName - 修改UMem内存空间名称 * @@ -1380,9 +1658,9 @@ public function iSolationURedisGroup(ISolationURedisGroupRequest $request = null * 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 * "Name" => (string) 新的名称,长度(6<=size<=63) * ] @@ -1401,6 +1679,38 @@ public function modifyUMemSpaceName(ModifyUMemSpaceNameRequest $request = null) return new ModifyUMemSpaceNameResponse($resp->toArray(), $resp->getRequestId()); } + /** + * ModifyURedisConfig - 修改主备Redis配置文件参数 + * + * See also: https://docs.ucloud.cn/api/umem-api/modify_uredis_config + * + * 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) + * "ConfigId" => (string) 配置文件的ID + * "Key" => (string) 参数名称 + * "Value" => (string) 对应参数的值 + * "GroupId" => (string) 如果实例使用默认配置创建,修改配置信息需要填写GroupId + * "RegionFlag" => (boolean) 是否是跨机房URedis(默认false) + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ModifyURedisConfigResponse + * @throws UCloudException + */ + public function modifyURedisConfig(ModifyURedisConfigRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyURedisConfigResponse($resp->toArray(), $resp->getRequestId()); + } + /** * ModifyURedisGroupName - 修改主备redis名称 * @@ -1409,8 +1719,9 @@ public function modifyUMemSpaceName(ModifyUMemSpaceNameRequest $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) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "GroupId" => (string) 组的ID * "Name" => (string) Redis组名称 (范围[6-63],只能包含英文、数字以及符号-和_) * ] @@ -1437,9 +1748,9 @@ public function modifyURedisGroupName(ModifyURedisGroupNameRequest $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) * "GroupId" => (string) 组的ID * "Password" => (string) 新密码字符串,要求长度为6~36个字符,且只能包含英文、数字以及-和下划线;并且需要base64加密;如要取消密码,此值为空字符串, * ] @@ -1458,6 +1769,43 @@ public function modifyURedisGroupPassword(ModifyURedisGroupPasswordRequest $requ return new ModifyURedisGroupPasswordResponse($resp->toArray(), $resp->getRequestId()); } + /** + * RegisterUMemDefrag - 动态开关redis碎片整理选项 + * + * See also: https://docs.ucloud.cn/api/umem-api/register_umem_defrag + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ResourceId" => (string) 资源ID + * "StartTime" => (integer) 开始时间戳 + * "EndTime" => (integer) 关闭时间戳 + * "OperateType" => (string) 操作类型:“Once”: 表示单次执行, “Open”:表示开启策略“Close”: 表示关闭策略(分布式实例只支持Once)。 + * "FragTime" => (integer) 任务时间周期,单位为分钟。 + * "FragSize" => (integer) 碎片整理阈值,范围为 100-200(分布式实例该参数无效)。 + * "StartHour" => (integer) 开始整点数值(分布式实例该参数无效)。 + * "StartMin" => (integer) 开始分钟数(分布式实例该参数无效)。 + * "EndHour" => (integer) 结束整点数值(分布式实例该参数无效)。 + * "EndMin" => (integer) 结束分钟数(分布式实例该参数无效)。 + * "IsUnion" => (boolean) AND逻辑字段,表示 阈值和时间段都满足(分布式实例该参数无效)。 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return RegisterUMemDefragResponse + * @throws UCloudException + */ + public function registerUMemDefrag(RegisterUMemDefragRequest $request = null) + { + $resp = $this->invoke($request); + return new RegisterUMemDefragResponse($resp->toArray(), $resp->getRequestId()); + } + /** * RemoveUDRedisData - 清除udredis实例数据 * @@ -1466,9 +1814,9 @@ public function modifyURedisGroupPassword(ModifyURedisGroupPasswordRequest $requ * 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) 实例id * ] * @@ -1487,18 +1835,51 @@ public function removeUDRedisData(RemoveUDRedisDataRequest $request = null) } /** - * ResizeUMemSpace - 调整内存空间容量 + * ResizeUDRedisBlockSize - 更改udredis分片容量 + * + * See also: https://docs.ucloud.cn/api/umem-api/resize_ud_redis_block_size + * + * 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) spaceid + * "BlockId" => (string) 分片id + * "BlockSize" => (integer) 分片容量(单位GB)4/8/12/16/20 + * "StartTime" => (integer) 任务执行时间戳,时间戳需满足未来一天时间范围内。默认不传或者值为0时,即为立即执行 + * "HighPerformance" => (boolean) 是否为性能增强型。默认为false,或者不填,true为性能增强型。 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ResizeUDRedisBlockSizeResponse + * @throws UCloudException + */ + public function resizeUDRedisBlockSize(ResizeUDRedisBlockSizeRequest $request = null) + { + $resp = $this->invoke($request); + return new ResizeUDRedisBlockSizeResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ResizeUMemSpace - 调整内存空间容量,只支持存量老分布式产品,不支持高性能分布式。(已废弃,不建议使用) * * See also: https://docs.ucloud.cn/api/umem-api/resize_umem_space * * 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 * "Size" => (integer) 内存大小, 单位:GB (需要大于原size,<= 1024) + * "Type" => (string) 空间类型:single(无热备),double(热备)(默认: double) * "CouponId" => (string) 使用的代金券Id * ] * @@ -1516,6 +1897,36 @@ public function resizeUMemSpace(ResizeUMemSpaceRequest $request = null) return new ResizeUMemSpaceResponse($resp->toArray(), $resp->getRequestId()); } + /** + * ResizeUMemcacheGroup - 调整memcache实例的容量 + * + * See also: https://docs.ucloud.cn/api/umem-api/resize_umem_cache_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) + * "GroupId" => (string) umemcache资源ID + * "Size" => (integer) 内存大小, 单位:GB 目前支持1/2/4/8/16/32五种规格(暂时只支持扩容) + * "CouponId" => (integer) 代金券ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ResizeUMemcacheGroupResponse + * @throws UCloudException + */ + public function resizeUMemcacheGroup(ResizeUMemcacheGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new ResizeUMemcacheGroupResponse($resp->toArray(), $resp->getRequestId()); + } + /** * ResizeURedisGroup - 通过调用CheckURedisAllowance接口,检查资源情况,根据不同情形来调整主备redis容量,其中主要包括可用区资源不足无法扩容,主备所在宿主机资源不足需要迁移完成扩容(需要主从切换,会闪断及负载升高),以及直接扩容(业务无感知) * @@ -1524,13 +1935,15 @@ public function resizeUMemSpace(ResizeUMemSpaceRequest $request = null) * 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) * "GroupId" => (string) 组ID * "Size" => (integer) 内存大小, 单位:GB (需要大于原size,且小于等于32) 目前仅支持1/2/4/8/16/32 G 六种容量规格 - * "ChargeType" => (string) + * "ChargeType" => (string) 计费类型 * "Type" => (string) 空间类型:single(无热备),double(热备)(默认: double) + * "StartTime" => (integer) 任务执行时间戳,默认为0或者不传时,为立即执行,传入时间需满足未来一天范围 + * "HighPerformance" => (boolean) 高性能Redis, 默认为false, 或者不填, 高性能为true * "CouponId" => (integer) 代金券ID 请参考DescribeCoupon接口 * ] * @@ -1548,6 +1961,37 @@ public function resizeURedisGroup(ResizeURedisGroupRequest $request = null) return new ResizeURedisGroupResponse($resp->toArray(), $resp->getRequestId()); } + /** + * ResizeUhproxy - 分布式Redis代理规格调整 + * + * See also: https://docs.ucloud.cn/api/umem-api/resize_uhproxy + * + * 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) 分布式Redis资源ID + * "ProxyId" => (string) 代理id + * "NewCPU" => (integer) 代理目标核数 + * "CouponId" => (string) 使用的代金券id + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ResizeUhproxyResponse + * @throws UCloudException + */ + public function resizeUhproxy(ResizeUhproxyRequest $request = null) + { + $resp = $this->invoke($request); + return new ResizeUhproxyResponse($resp->toArray(), $resp->getRequestId()); + } + /** * RestartUMemcacheGroup - 重启单机Memcache * @@ -1556,9 +2000,9 @@ public function resizeURedisGroup(ResizeURedisGroupRequest $request = null) * 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) * "GroupId" => (string) 组的ID * ] * @@ -1584,9 +2028,9 @@ public function restartUMemcacheGroup(RestartUMemcacheGroupRequest $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) * "GroupId" => (string) 资源ID * ] * @@ -1612,13 +2056,16 @@ public function restartURedisGroup(RestartURedisGroupRequest $request = null) * 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) * "GroupId" => (string) 组的ID * "BackupTime" => (string) 备份时间,默认为0 * "AutoBackup" => (string) 是否打开默认备份功能。enable(打开),disable(关闭),默认enable * "SlaveZone" => (string) 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + * "OperationType" => (string) 操作类型,不传默认为normal(即操控自动备份打开以及时间),modify(修改跨地域备份策略),close(关闭跨地域备份策略) + * "DstRegion" => (string) 跨可用备份目标地域(当Operation为modify时必选) + * "SaveDays" => (integer) 保存天数(当Operation为modify时必选) * ] * * Outputs: @@ -1634,4 +2081,34 @@ public function updateURedisBackupStrategy(UpdateURedisBackupStrategyRequest $re $resp = $this->invoke($request); return new UpdateURedisBackupStrategyResponse($resp->toArray(), $resp->getRequestId()); } + + /** + * UpdateURedisRewriteTime - 修改主备redis重写时间 + * + * See also: https://docs.ucloud.cn/api/umem-api/update_uredis_rewrite_time + * + * 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) + * "GroupId" => (string) 实例名称 + * "RewriteTime" => (integer) 重写时间 + * "SlaveZone" => (string) 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateURedisRewriteTimeResponse + * @throws UCloudException + */ + public function updateURedisRewriteTime(UpdateURedisRewriteTimeRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateURedisRewriteTimeResponse($resp->toArray(), $resp->getRequestId()); + } }