From c2259d66599710ee90a987e0e1d182fa42104f08 Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Thu, 16 Apr 2026 06:39:50 +0000 Subject: [PATCH] sdk: rolling update for 0.3.14 --- VERSION | 2 +- .../Apis/BackupUMongoDBClusterRequest.php | 133 ++ .../Apis/BackupUMongoDBClusterResponse.php | 64 + .../Apis/BackupUMongoDBLogRequest.php | 217 +++ .../Apis/BackupUMongoDBLogResponse.php | 26 + .../CreateUMongoDBConfigTemplateRequest.php | 174 +++ .../CreateUMongoDBConfigTemplateResponse.php | 44 + .../Apis/CreateUMongoDBReplSetRequest.php | 423 ++++++ .../Apis/CreateUMongoDBReplSetResponse.php | 26 + .../CreateUMongoDBShardedClusterRequest.php | 485 +++++++ .../CreateUMongoDBShardedClusterResponse.php | 26 + .../Apis/DescribeUMongoDBBackupURLRequest.php | 191 +++ .../DescribeUMongoDBBackupURLResponse.php | 64 + .../Apis/DescribeUMongoDBInstanceRequest.php | 131 ++ .../Apis/DescribeUMongoDBInstanceResponse.php | 59 + .../Apis/GetUMongoDBBackupParamRequest.php | 112 ++ .../Apis/GetUMongoDBBackupParamResponse.php | 45 + .../Apis/GetUMongoDBCfgTempItemRequest.php | 91 ++ .../Apis/GetUMongoDBCfgTempItemResponse.php | 58 + src/UMongoDB/Apis/GetUMongoDBLogRequest.php | 194 +++ src/UMongoDB/Apis/GetUMongoDBLogResponse.php | 84 ++ .../GetUMongoDBRecoverTimeRangeRequest.php | 112 ++ .../GetUMongoDBRecoverTimeRangeResponse.php | 64 + .../Apis/ListUMongoDBBackupRequest.php | 112 ++ .../Apis/ListUMongoDBBackupResponse.php | 57 + .../ListUMongoDBConfigTemplateRequest.php | 70 + .../ListUMongoDBConfigTemplateResponse.php | 57 + .../Apis/ListUMongoDBInstancesRequest.php | 110 ++ .../Apis/ListUMongoDBInstancesResponse.php | 58 + .../Apis/ListUMongoDBLogPackageRequest.php | 132 ++ .../Apis/ListUMongoDBLogPackageResponse.php | 57 + .../Apis/ListUMongoDBMachineSpecRequest.php | 131 ++ .../Apis/ListUMongoDBMachineSpecResponse.php | 59 + .../Apis/ListUMongoDBMachineTypeRequest.php | 91 ++ .../Apis/ListUMongoDBMachineTypeResponse.php | 57 + .../Apis/ListUMongoDBVersionRequest.php | 91 ++ .../Apis/ListUMongoDBVersionResponse.php | 57 + .../ModifyUMongoDBAdminPasswordRequest.php | 133 ++ .../ModifyUMongoDBAdminPasswordResponse.php | 26 + .../Apis/ModifyUMongoDBAttributeRequest.php | 152 +++ .../Apis/ModifyUMongoDBAttributeResponse.php | 26 + .../Apis/ModifyUMongoDBBackupParamRequest.php | 172 +++ .../ModifyUMongoDBBackupParamResponse.php | 26 + .../Apis/ResizeUMongoDBInstanceRequest.php | 151 +++ .../Apis/ResizeUMongoDBInstanceResponse.php | 26 + .../Apis/RestartUMongoDBClusterRequest.php | 112 ++ .../Apis/RestartUMongoDBClusterResponse.php | 44 + .../Apis/StartUMongoDBClusterRequest.php | 112 ++ .../Apis/StartUMongoDBClusterResponse.php | 44 + .../Apis/StopUMongoDBClusterRequest.php | 112 ++ .../Apis/StopUMongoDBClusterResponse.php | 44 + src/UMongoDB/Models/BackupInfo.php | 284 ++++ src/UMongoDB/Models/BackupParam.php | 144 ++ src/UMongoDB/Models/ClusterInfo.php | 628 +++++++++ src/UMongoDB/Models/ConfigOptions.php | 264 ++++ src/UMongoDB/Models/ConfigTemplate.php | 204 +++ src/UMongoDB/Models/ConfigTemplateItem.php | 184 +++ src/UMongoDB/Models/DiskInfo.php | 64 + src/UMongoDB/Models/MongoDBVersion.php | 44 + src/UMongoDB/Models/MongodbInstance.php | 344 +++++ src/UMongoDB/Models/MongodbMachineSpec.php | 116 ++ src/UMongoDB/Models/MongodbMachineType.php | 144 ++ src/UMongoDB/Models/NodeInfo.php | 304 +++++ src/UMongoDB/Models/PackageInfo.php | 264 ++++ src/UMongoDB/Models/ReplicaInfo.php | 276 ++++ .../CreateUMongoDBReplSetParamLabels.php | 64 + .../CreateUMongoDBReplSetParamSecGroupId.php | 64 + ...reateUMongoDBShardedClusterParamLabels.php | 64 + ...eUMongoDBShardedClusterParamSecGroupId.php | 64 + src/UMongoDB/UMongoDBClient.php | 1158 +++++++++++++++++ 70 files changed, 9821 insertions(+), 1 deletion(-) create mode 100644 src/UMongoDB/Apis/BackupUMongoDBClusterRequest.php create mode 100644 src/UMongoDB/Apis/BackupUMongoDBClusterResponse.php create mode 100644 src/UMongoDB/Apis/BackupUMongoDBLogRequest.php create mode 100644 src/UMongoDB/Apis/BackupUMongoDBLogResponse.php create mode 100644 src/UMongoDB/Apis/CreateUMongoDBConfigTemplateRequest.php create mode 100644 src/UMongoDB/Apis/CreateUMongoDBConfigTemplateResponse.php create mode 100644 src/UMongoDB/Apis/CreateUMongoDBReplSetRequest.php create mode 100644 src/UMongoDB/Apis/CreateUMongoDBReplSetResponse.php create mode 100644 src/UMongoDB/Apis/CreateUMongoDBShardedClusterRequest.php create mode 100644 src/UMongoDB/Apis/CreateUMongoDBShardedClusterResponse.php create mode 100644 src/UMongoDB/Apis/DescribeUMongoDBBackupURLRequest.php create mode 100644 src/UMongoDB/Apis/DescribeUMongoDBBackupURLResponse.php create mode 100644 src/UMongoDB/Apis/DescribeUMongoDBInstanceRequest.php create mode 100644 src/UMongoDB/Apis/DescribeUMongoDBInstanceResponse.php create mode 100644 src/UMongoDB/Apis/GetUMongoDBBackupParamRequest.php create mode 100644 src/UMongoDB/Apis/GetUMongoDBBackupParamResponse.php create mode 100644 src/UMongoDB/Apis/GetUMongoDBCfgTempItemRequest.php create mode 100644 src/UMongoDB/Apis/GetUMongoDBCfgTempItemResponse.php create mode 100644 src/UMongoDB/Apis/GetUMongoDBLogRequest.php create mode 100644 src/UMongoDB/Apis/GetUMongoDBLogResponse.php create mode 100644 src/UMongoDB/Apis/GetUMongoDBRecoverTimeRangeRequest.php create mode 100644 src/UMongoDB/Apis/GetUMongoDBRecoverTimeRangeResponse.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBBackupRequest.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBBackupResponse.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBConfigTemplateRequest.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBConfigTemplateResponse.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBInstancesRequest.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBInstancesResponse.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBLogPackageRequest.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBLogPackageResponse.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBMachineSpecRequest.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBMachineSpecResponse.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBMachineTypeRequest.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBMachineTypeResponse.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBVersionRequest.php create mode 100644 src/UMongoDB/Apis/ListUMongoDBVersionResponse.php create mode 100644 src/UMongoDB/Apis/ModifyUMongoDBAdminPasswordRequest.php create mode 100644 src/UMongoDB/Apis/ModifyUMongoDBAdminPasswordResponse.php create mode 100644 src/UMongoDB/Apis/ModifyUMongoDBAttributeRequest.php create mode 100644 src/UMongoDB/Apis/ModifyUMongoDBAttributeResponse.php create mode 100644 src/UMongoDB/Apis/ModifyUMongoDBBackupParamRequest.php create mode 100644 src/UMongoDB/Apis/ModifyUMongoDBBackupParamResponse.php create mode 100644 src/UMongoDB/Apis/ResizeUMongoDBInstanceRequest.php create mode 100644 src/UMongoDB/Apis/ResizeUMongoDBInstanceResponse.php create mode 100644 src/UMongoDB/Apis/RestartUMongoDBClusterRequest.php create mode 100644 src/UMongoDB/Apis/RestartUMongoDBClusterResponse.php create mode 100644 src/UMongoDB/Apis/StartUMongoDBClusterRequest.php create mode 100644 src/UMongoDB/Apis/StartUMongoDBClusterResponse.php create mode 100644 src/UMongoDB/Apis/StopUMongoDBClusterRequest.php create mode 100644 src/UMongoDB/Apis/StopUMongoDBClusterResponse.php create mode 100644 src/UMongoDB/Models/BackupInfo.php create mode 100644 src/UMongoDB/Models/BackupParam.php create mode 100644 src/UMongoDB/Models/ClusterInfo.php create mode 100644 src/UMongoDB/Models/ConfigOptions.php create mode 100644 src/UMongoDB/Models/ConfigTemplate.php create mode 100644 src/UMongoDB/Models/ConfigTemplateItem.php create mode 100644 src/UMongoDB/Models/DiskInfo.php create mode 100644 src/UMongoDB/Models/MongoDBVersion.php create mode 100644 src/UMongoDB/Models/MongodbInstance.php create mode 100644 src/UMongoDB/Models/MongodbMachineSpec.php create mode 100644 src/UMongoDB/Models/MongodbMachineType.php create mode 100644 src/UMongoDB/Models/NodeInfo.php create mode 100644 src/UMongoDB/Models/PackageInfo.php create mode 100644 src/UMongoDB/Models/ReplicaInfo.php create mode 100644 src/UMongoDB/Params/CreateUMongoDBReplSetParamLabels.php create mode 100644 src/UMongoDB/Params/CreateUMongoDBReplSetParamSecGroupId.php create mode 100644 src/UMongoDB/Params/CreateUMongoDBShardedClusterParamLabels.php create mode 100644 src/UMongoDB/Params/CreateUMongoDBShardedClusterParamSecGroupId.php create mode 100644 src/UMongoDB/UMongoDBClient.php diff --git a/VERSION b/VERSION index e473765..0b69c00 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.13 +0.3.14 diff --git a/src/UMongoDB/Apis/BackupUMongoDBClusterRequest.php b/src/UMongoDB/Apis/BackupUMongoDBClusterRequest.php new file mode 100644 index 0000000..76b54eb --- /dev/null +++ b/src/UMongoDB/Apis/BackupUMongoDBClusterRequest.php @@ -0,0 +1,133 @@ + "BackupUMongoDBCluster"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ClusterId"); + $this->markRequired("BackupName"); + } + + + + /** + * 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); + } + + /** + * 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); + } + + /** + * BackupName: 备份名称 + * + * @return string|null + */ + public function getBackupName() + { + return $this->get("BackupName"); + } + + /** + * BackupName: 备份名称 + * + * @param string $backupName + */ + public function setBackupName($backupName) + { + $this->set("BackupName", $backupName); + } +} diff --git a/src/UMongoDB/Apis/BackupUMongoDBClusterResponse.php b/src/UMongoDB/Apis/BackupUMongoDBClusterResponse.php new file mode 100644 index 0000000..e295edd --- /dev/null +++ b/src/UMongoDB/Apis/BackupUMongoDBClusterResponse.php @@ -0,0 +1,64 @@ +get("BackupId"); + } + + /** + * BackupId: 备份ID + * + * @param string $backupId + */ + public function setBackupId($backupId) + { + $this->set("BackupId", $backupId); + } + + /** + * ClusterId: 实例ID + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 实例ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UMongoDB/Apis/BackupUMongoDBLogRequest.php b/src/UMongoDB/Apis/BackupUMongoDBLogRequest.php new file mode 100644 index 0000000..3b50c02 --- /dev/null +++ b/src/UMongoDB/Apis/BackupUMongoDBLogRequest.php @@ -0,0 +1,217 @@ + "BackupUMongoDBLog"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("Name"); + $this->markRequired("ClusterId"); + $this->markRequired("NodeId"); + $this->markRequired("Begin"); + $this->markRequired("End"); + $this->markRequired("LogType"); + } + + + + /** + * 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); + } + + /** + * Name: 日志包名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 日志包名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * 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); + } + + /** + * NodeId: 节点id, 慢日志 mongos 节点不可选 + * + * @return string|null + */ + public function getNodeId() + { + return $this->get("NodeId"); + } + + /** + * NodeId: 节点id, 慢日志 mongos 节点不可选 + * + * @param string $nodeId + */ + public function setNodeId($nodeId) + { + $this->set("NodeId", $nodeId); + } + + /** + * Begin: 日志开始时间,最早为7x24小时前 + * + * @return integer|null + */ + public function getBegin() + { + return $this->get("Begin"); + } + + /** + * Begin: 日志开始时间,最早为7x24小时前 + * + * @param int $begin + */ + public function setBegin($begin) + { + $this->set("Begin", $begin); + } + + /** + * End: 日志结束时间,时间区间不能超过24小时 + * + * @return integer|null + */ + public function getEnd() + { + return $this->get("End"); + } + + /** + * End: 日志结束时间,时间区间不能超过24小时 + * + * @param int $end + */ + public function setEnd($end) + { + $this->set("End", $end); + } + + /** + * LogType: 日志类型:SlowLog,ErrorLog + * + * @return string|null + */ + public function getLogType() + { + return $this->get("LogType"); + } + + /** + * LogType: 日志类型:SlowLog,ErrorLog + * + * @param string $logType + */ + public function setLogType($logType) + { + $this->set("LogType", $logType); + } +} diff --git a/src/UMongoDB/Apis/BackupUMongoDBLogResponse.php b/src/UMongoDB/Apis/BackupUMongoDBLogResponse.php new file mode 100644 index 0000000..e502420 --- /dev/null +++ b/src/UMongoDB/Apis/BackupUMongoDBLogResponse.php @@ -0,0 +1,26 @@ + "CreateUMongoDBConfigTemplate"]); + $this->markRequired("Region"); + $this->markRequired("TemplateName"); + $this->markRequired("ClusterType"); + $this->markRequired("MongodbVersion"); + $this->markRequired("BaseTemplateId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * TemplateName: 模板名称 + * + * @return string|null + */ + public function getTemplateName() + { + return $this->get("TemplateName"); + } + + /** + * TemplateName: 模板名称 + * + * @param string $templateName + */ + public function setTemplateName($templateName) + { + $this->set("TemplateName", $templateName); + } + + /** + * ClusterType: 集群类型 + * + * @return string|null + */ + public function getClusterType() + { + return $this->get("ClusterType"); + } + + /** + * ClusterType: 集群类型 + * + * @param string $clusterType + */ + public function setClusterType($clusterType) + { + $this->set("ClusterType", $clusterType); + } + + /** + * MongodbVersion: mongo版本 + * + * @return string|null + */ + public function getMongodbVersion() + { + return $this->get("MongodbVersion"); + } + + /** + * MongodbVersion: mongo版本 + * + * @param string $mongodbVersion + */ + public function setMongodbVersion($mongodbVersion) + { + $this->set("MongodbVersion", $mongodbVersion); + } + + /** + * BaseTemplateId: 基础模板 + * + * @return string|null + */ + public function getBaseTemplateId() + { + return $this->get("BaseTemplateId"); + } + + /** + * BaseTemplateId: 基础模板 + * + * @param string $baseTemplateId + */ + public function setBaseTemplateId($baseTemplateId) + { + $this->set("BaseTemplateId", $baseTemplateId); + } + + /** + * Description: 模板描述 + * + * @return string|null + */ + public function getDescription() + { + return $this->get("Description"); + } + + /** + * Description: 模板描述 + * + * @param string $description + */ + public function setDescription($description) + { + $this->set("Description", $description); + } +} diff --git a/src/UMongoDB/Apis/CreateUMongoDBConfigTemplateResponse.php b/src/UMongoDB/Apis/CreateUMongoDBConfigTemplateResponse.php new file mode 100644 index 0000000..cd0901d --- /dev/null +++ b/src/UMongoDB/Apis/CreateUMongoDBConfigTemplateResponse.php @@ -0,0 +1,44 @@ +get("TemplateId"); + } + + /** + * TemplateId: 模板Id + * + * @param string $templateId + */ + public function setTemplateId($templateId) + { + $this->set("TemplateId", $templateId); + } +} diff --git a/src/UMongoDB/Apis/CreateUMongoDBReplSetRequest.php b/src/UMongoDB/Apis/CreateUMongoDBReplSetRequest.php new file mode 100644 index 0000000..7e3eee4 --- /dev/null +++ b/src/UMongoDB/Apis/CreateUMongoDBReplSetRequest.php @@ -0,0 +1,423 @@ + "CreateUMongoDBReplSet"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("Name"); + $this->markRequired("DBVersion"); + $this->markRequired("AdminPassword"); + $this->markRequired("DiskSpace"); + $this->markRequired("MachineTypeId"); + $this->markRequired("NodeCount"); + } + + + + /** + * 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); + } + + /** + * Name: 副本集实例名称,至少6位 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 副本集实例名称,至少6位 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * DBVersion: 副本集的Mongodb的版本,例如MongoDB 3.6, MongoDB 4.2 + * + * @return string|null + */ + public function getDBVersion() + { + return $this->get("DBVersion"); + } + + /** + * DBVersion: 副本集的Mongodb的版本,例如MongoDB 3.6, MongoDB 4.2 + * + * @param string $dbVersion + */ + public function setDBVersion($dbVersion) + { + $this->set("DBVersion", $dbVersion); + } + + /** + * AdminPassword: 管理员密码 + * + * @return string|null + */ + public function getAdminPassword() + { + return $this->get("AdminPassword"); + } + + /** + * AdminPassword: 管理员密码 + * + * @param string $adminPassword + */ + public function setAdminPassword($adminPassword) + { + $this->set("AdminPassword", $adminPassword); + } + + /** + * DiskSpace: 磁盘空间 (GB):取值范围 20~32000,仅支持 10 的整数倍 + * + * @return integer|null + */ + public function getDiskSpace() + { + return $this->get("DiskSpace"); + } + + /** + * DiskSpace: 磁盘空间 (GB):取值范围 20~32000,仅支持 10 的整数倍 + * + * @param int $diskSpace + */ + public function setDiskSpace($diskSpace) + { + $this->set("DiskSpace", $diskSpace); + } + + /** + * MachineTypeId: 机型配置,如 o.mongo2m.medium + * + * @return string|null + */ + public function getMachineTypeId() + { + return $this->get("MachineTypeId"); + } + + /** + * MachineTypeId: 机型配置,如 o.mongo2m.medium + * + * @param string $machineTypeId + */ + public function setMachineTypeId($machineTypeId) + { + $this->set("MachineTypeId", $machineTypeId); + } + + /** + * NodeCount: 副本集节点数量:仅支持 3、5、7 奇数节点 + * + * @return integer|null + */ + public function getNodeCount() + { + return $this->get("NodeCount"); + } + + /** + * NodeCount: 副本集节点数量:仅支持 3、5、7 奇数节点 + * + * @param int $nodeCount + */ + public function setNodeCount($nodeCount) + { + $this->set("NodeCount", $nodeCount); + } + + /** + * ListenPort: mongo服务端口 + * + * @return integer|null + */ + public function getListenPort() + { + return $this->get("ListenPort"); + } + + /** + * ListenPort: mongo服务端口 + * + * @param int $listenPort + */ + public function setListenPort($listenPort) + { + $this->set("ListenPort", $listenPort); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * Tag: 实例所在的业务组名称 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 实例所在的业务组名称 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * ChargeType: 付费方式:Year, Month, Dynamic,Trial,默认: Month + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 付费方式:Year, Month, Dynamic,Trial,默认: Month + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * Quantity: 购买时长,默认值1 + * + * @return integer|null + */ + public function getQuantity() + { + return $this->get("Quantity"); + } + + /** + * Quantity: 购买时长,默认值1 + * + * @param int $quantity + */ + public function setQuantity($quantity) + { + $this->set("Quantity", $quantity); + } + + /** + * CrossZones: 跨可用区列表 + * + * @return string[]|null + */ + public function getCrossZones() + { + return $this->get("CrossZones"); + } + + /** + * CrossZones: 跨可用区列表 + * + * @param string[] $crossZones + */ + public function setCrossZones(array $crossZones) + { + $this->set("CrossZones", $crossZones); + } + + /** + * Labels: + * + * @return CreateUMongoDBReplSetParamLabels[]|null + */ + public function getLabels() + { + $items = $this->get("Labels"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CreateUMongoDBReplSetParamLabels($item)); + } + return $result; + } + + /** + * Labels: + * + * @param CreateUMongoDBReplSetParamLabels[] $labels + */ + public function setLabels(array $labels) + { + $result = []; + foreach ($labels as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * SecGroupId: + * + * @return CreateUMongoDBReplSetParamSecGroupId[]|null + */ + public function getSecGroupId() + { + $items = $this->get("SecGroupId"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CreateUMongoDBReplSetParamSecGroupId($item)); + } + return $result; + } + + /** + * SecGroupId: + * + * @param CreateUMongoDBReplSetParamSecGroupId[] $secGroupId + */ + public function setSecGroupId(array $secGroupId) + { + $result = []; + foreach ($secGroupId as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UMongoDB/Apis/CreateUMongoDBReplSetResponse.php b/src/UMongoDB/Apis/CreateUMongoDBReplSetResponse.php new file mode 100644 index 0000000..fedbd67 --- /dev/null +++ b/src/UMongoDB/Apis/CreateUMongoDBReplSetResponse.php @@ -0,0 +1,26 @@ + "CreateUMongoDBShardedCluster"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("Name"); + $this->markRequired("DBVersion"); + $this->markRequired("AdminPassword"); + $this->markRequired("MongosNodeCount"); + $this->markRequired("ShardCount"); + $this->markRequired("NodeCount"); + $this->markRequired("DiskSpace"); + $this->markRequired("MachineTypeId"); + } + + + + /** + * 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); + } + + /** + * Name: 副本集实例名称,至少6位 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 副本集实例名称,至少6位 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * DBVersion: 副本集的Mongodb的版本,例如MongoDB 3.6, MongoDB 4.2 + * + * @return string|null + */ + public function getDBVersion() + { + return $this->get("DBVersion"); + } + + /** + * DBVersion: 副本集的Mongodb的版本,例如MongoDB 3.6, MongoDB 4.2 + * + * @param string $dbVersion + */ + public function setDBVersion($dbVersion) + { + $this->set("DBVersion", $dbVersion); + } + + /** + * AdminPassword: 管理员密码 + * + * @return string|null + */ + public function getAdminPassword() + { + return $this->get("AdminPassword"); + } + + /** + * AdminPassword: 管理员密码 + * + * @param string $adminPassword + */ + public function setAdminPassword($adminPassword) + { + $this->set("AdminPassword", $adminPassword); + } + + /** + * MongosNodeCount: Mongos节点数量 + * + * @return integer|null + */ + public function getMongosNodeCount() + { + return $this->get("MongosNodeCount"); + } + + /** + * MongosNodeCount: Mongos节点数量 + * + * @param int $mongosNodeCount + */ + public function setMongosNodeCount($mongosNodeCount) + { + $this->set("MongosNodeCount", $mongosNodeCount); + } + + /** + * ShardCount: 分片数量 + * + * @return integer|null + */ + public function getShardCount() + { + return $this->get("ShardCount"); + } + + /** + * ShardCount: 分片数量 + * + * @param int $shardCount + */ + public function setShardCount($shardCount) + { + $this->set("ShardCount", $shardCount); + } + + /** + * NodeCount: 每个分片中节点数量 + * + * @return integer|null + */ + public function getNodeCount() + { + return $this->get("NodeCount"); + } + + /** + * NodeCount: 每个分片中节点数量 + * + * @param int $nodeCount + */ + public function setNodeCount($nodeCount) + { + $this->set("NodeCount", $nodeCount); + } + + /** + * DiskSpace: 数据节点磁盘空间(GB):取值范围 20~32000,仅支持 10 的整数倍 + * + * @return integer|null + */ + public function getDiskSpace() + { + return $this->get("DiskSpace"); + } + + /** + * DiskSpace: 数据节点磁盘空间(GB):取值范围 20~32000,仅支持 10 的整数倍 + * + * @param int $diskSpace + */ + public function setDiskSpace($diskSpace) + { + $this->set("DiskSpace", $diskSpace); + } + + /** + * MachineTypeId: 数据节点机型配置,如 o.mongo2m.medium + * + * @return string|null + */ + public function getMachineTypeId() + { + return $this->get("MachineTypeId"); + } + + /** + * MachineTypeId: 数据节点机型配置,如 o.mongo2m.medium + * + * @param string $machineTypeId + */ + public function setMachineTypeId($machineTypeId) + { + $this->set("MachineTypeId", $machineTypeId); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * Tag: 实例所在的业务组名称 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 实例所在的业务组名称 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * ChargeType: 付费方式:Year, Month, Dynamic,Trial,默认: Month + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 付费方式:Year, Month, Dynamic,Trial,默认: Month + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * Quantity: 购买时长,默认值1 + * + * @return integer|null + */ + public function getQuantity() + { + return $this->get("Quantity"); + } + + /** + * Quantity: 购买时长,默认值1 + * + * @param int $quantity + */ + public function setQuantity($quantity) + { + $this->set("Quantity", $quantity); + } + + /** + * ListenPort: mongo服务端口 + * + * @return integer|null + */ + public function getListenPort() + { + return $this->get("ListenPort"); + } + + /** + * ListenPort: mongo服务端口 + * + * @param int $listenPort + */ + public function setListenPort($listenPort) + { + $this->set("ListenPort", $listenPort); + } + + /** + * TemplateId: 参数配置模版id + * + * @return string|null + */ + public function getTemplateId() + { + return $this->get("TemplateId"); + } + + /** + * TemplateId: 参数配置模版id + * + * @param string $templateId + */ + public function setTemplateId($templateId) + { + $this->set("TemplateId", $templateId); + } + + /** + * MongosMachineTypeId: Mongos节点机型配置 + * + * @return string|null + */ + public function getMongosMachineTypeId() + { + return $this->get("MongosMachineTypeId"); + } + + /** + * MongosMachineTypeId: Mongos节点机型配置 + * + * @param string $mongosMachineTypeId + */ + public function setMongosMachineTypeId($mongosMachineTypeId) + { + $this->set("MongosMachineTypeId", $mongosMachineTypeId); + } + + /** + * Labels: + * + * @return CreateUMongoDBShardedClusterParamLabels[]|null + */ + public function getLabels() + { + $items = $this->get("Labels"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CreateUMongoDBShardedClusterParamLabels($item)); + } + return $result; + } + + /** + * Labels: + * + * @param CreateUMongoDBShardedClusterParamLabels[] $labels + */ + public function setLabels(array $labels) + { + $result = []; + foreach ($labels as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * SecGroupId: + * + * @return CreateUMongoDBShardedClusterParamSecGroupId[]|null + */ + public function getSecGroupId() + { + $items = $this->get("SecGroupId"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CreateUMongoDBShardedClusterParamSecGroupId($item)); + } + return $result; + } + + /** + * SecGroupId: + * + * @param CreateUMongoDBShardedClusterParamSecGroupId[] $secGroupId + */ + public function setSecGroupId(array $secGroupId) + { + $result = []; + foreach ($secGroupId as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UMongoDB/Apis/CreateUMongoDBShardedClusterResponse.php b/src/UMongoDB/Apis/CreateUMongoDBShardedClusterResponse.php new file mode 100644 index 0000000..6f9e028 --- /dev/null +++ b/src/UMongoDB/Apis/CreateUMongoDBShardedClusterResponse.php @@ -0,0 +1,26 @@ + "DescribeUMongoDBBackupURL"]); + $this->markRequired("Region"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * PackageId: 打包ID + * + * @return integer|null + */ + public function getPackageId() + { + return $this->get("PackageId"); + } + + /** + * PackageId: 打包ID + * + * @param int $packageId + */ + public function setPackageId($packageId) + { + $this->set("PackageId", $packageId); + } + + /** + * ValidTime: 备份链接过期时间(单位秒) + * + * @return integer|null + */ + public function getValidTime() + { + return $this->get("ValidTime"); + } + + /** + * ValidTime: 备份链接过期时间(单位秒) + * + * @param int $validTime + */ + public function setValidTime($validTime) + { + $this->set("ValidTime", $validTime); + } + + /** + * Category: 类型:如 oplog + * + * @return string|null + */ + public function getCategory() + { + return $this->get("Category"); + } + + /** + * Category: 类型:如 oplog + * + * @param string $category + */ + public function setCategory($category) + { + $this->set("Category", $category); + } +} diff --git a/src/UMongoDB/Apis/DescribeUMongoDBBackupURLResponse.php b/src/UMongoDB/Apis/DescribeUMongoDBBackupURLResponse.php new file mode 100644 index 0000000..a581e4e --- /dev/null +++ b/src/UMongoDB/Apis/DescribeUMongoDBBackupURLResponse.php @@ -0,0 +1,64 @@ +get("InternetAddress"); + } + + /** + * InternetAddress: 备份文件公网地址 + * + * @param string $internetAddress + */ + public function setInternetAddress($internetAddress) + { + $this->set("InternetAddress", $internetAddress); + } + + /** + * IntranetAddress: 备份文件内网地址 + * + * @return string|null + */ + public function getIntranetAddress() + { + return $this->get("IntranetAddress"); + } + + /** + * IntranetAddress: 备份文件内网地址 + * + * @param string $intranetAddress + */ + public function setIntranetAddress($intranetAddress) + { + $this->set("IntranetAddress", $intranetAddress); + } +} diff --git a/src/UMongoDB/Apis/DescribeUMongoDBInstanceRequest.php b/src/UMongoDB/Apis/DescribeUMongoDBInstanceRequest.php new file mode 100644 index 0000000..2d03802 --- /dev/null +++ b/src/UMongoDB/Apis/DescribeUMongoDBInstanceRequest.php @@ -0,0 +1,131 @@ + "DescribeUMongoDBInstance"]); + $this->markRequired("Region"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * ClusterType: 集群类型,ReplicaSet:副本集,SharedCluster:分片集群 + * + * @return string|null + */ + public function getClusterType() + { + return $this->get("ClusterType"); + } + + /** + * ClusterType: 集群类型,ReplicaSet:副本集,SharedCluster:分片集群 + * + * @param string $clusterType + */ + public function setClusterType($clusterType) + { + $this->set("ClusterType", $clusterType); + } +} diff --git a/src/UMongoDB/Apis/DescribeUMongoDBInstanceResponse.php b/src/UMongoDB/Apis/DescribeUMongoDBInstanceResponse.php new file mode 100644 index 0000000..efedd66 --- /dev/null +++ b/src/UMongoDB/Apis/DescribeUMongoDBInstanceResponse.php @@ -0,0 +1,59 @@ +get("ClusterInfo")); + } + + /** + * ClusterInfo: 副本集信息 + * + * @param ClusterInfo $clusterInfo + */ + public function setClusterInfo(array $clusterInfo) + { + $this->set("ClusterInfo", $clusterInfo->getAll()); + } +} diff --git a/src/UMongoDB/Apis/GetUMongoDBBackupParamRequest.php b/src/UMongoDB/Apis/GetUMongoDBBackupParamRequest.php new file mode 100644 index 0000000..45ddd47 --- /dev/null +++ b/src/UMongoDB/Apis/GetUMongoDBBackupParamRequest.php @@ -0,0 +1,112 @@ + "GetUMongoDBBackupParam"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ClusterId: 实例ID + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 实例ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UMongoDB/Apis/GetUMongoDBBackupParamResponse.php b/src/UMongoDB/Apis/GetUMongoDBBackupParamResponse.php new file mode 100644 index 0000000..14135cc --- /dev/null +++ b/src/UMongoDB/Apis/GetUMongoDBBackupParamResponse.php @@ -0,0 +1,45 @@ +get("DataSet")); + } + + /** + * DataSet: 备份策略信息 + * + * @param BackupParam $dataSet + */ + public function setDataSet(array $dataSet) + { + $this->set("DataSet", $dataSet->getAll()); + } +} diff --git a/src/UMongoDB/Apis/GetUMongoDBCfgTempItemRequest.php b/src/UMongoDB/Apis/GetUMongoDBCfgTempItemRequest.php new file mode 100644 index 0000000..572a372 --- /dev/null +++ b/src/UMongoDB/Apis/GetUMongoDBCfgTempItemRequest.php @@ -0,0 +1,91 @@ + "GetUMongoDBCfgTempItem"]); + $this->markRequired("Region"); + $this->markRequired("TemplateId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * TemplateId: 配置模板Id + * + * @return string|null + */ + public function getTemplateId() + { + return $this->get("TemplateId"); + } + + /** + * TemplateId: 配置模板Id + * + * @param string $templateId + */ + public function setTemplateId($templateId) + { + $this->set("TemplateId", $templateId); + } +} diff --git a/src/UMongoDB/Apis/GetUMongoDBCfgTempItemResponse.php b/src/UMongoDB/Apis/GetUMongoDBCfgTempItemResponse.php new file mode 100644 index 0000000..154bc4b --- /dev/null +++ b/src/UMongoDB/Apis/GetUMongoDBCfgTempItemResponse.php @@ -0,0 +1,58 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ConfigTemplateItem($item)); + } + return $result; + } + + /** + * DataSet: 配置模板项 + * + * @param ConfigTemplateItem[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UMongoDB/Apis/GetUMongoDBLogRequest.php b/src/UMongoDB/Apis/GetUMongoDBLogRequest.php new file mode 100644 index 0000000..5db45e4 --- /dev/null +++ b/src/UMongoDB/Apis/GetUMongoDBLogRequest.php @@ -0,0 +1,194 @@ + "GetUMongoDBLog"]); + $this->markRequired("Region"); + $this->markRequired("ClusterId"); + $this->markRequired("NodeId"); + $this->markRequired("Begin"); + $this->markRequired("LogType"); + } + + + + /** + * 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); + } + + /** + * 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); + } + + /** + * NodeId: 节点id, 慢日志 mongos 节点不可选 + * + * @return string|null + */ + public function getNodeId() + { + return $this->get("NodeId"); + } + + /** + * NodeId: 节点id, 慢日志 mongos 节点不可选 + * + * @param string $nodeId + */ + public function setNodeId($nodeId) + { + $this->set("NodeId", $nodeId); + } + + /** + * Begin: 查询的日志开始的时间戳(Unix Timestamp)。对于实时查询,这个参数应该是上次轮询请求时的时间戳,后台会返回从该值到当前时间的日志内容 + * + * @return integer|null + */ + public function getBegin() + { + return $this->get("Begin"); + } + + /** + * Begin: 查询的日志开始的时间戳(Unix Timestamp)。对于实时查询,这个参数应该是上次轮询请求时的时间戳,后台会返回从该值到当前时间的日志内容 + * + * @param int $begin + */ + public function setBegin($begin) + { + $this->set("Begin", $begin); + } + + /** + * LogType: 日志类型:SlowLog,ErrorLog + * + * @return string|null + */ + public function getLogType() + { + return $this->get("LogType"); + } + + /** + * LogType: 日志类型:SlowLog,ErrorLog + * + * @param string $logType + */ + public function setLogType($logType) + { + $this->set("LogType", $logType); + } + + /** + * End: 查询日志的结束时间戳(Unix Timestamp),对于实时查询不传该值,与BeginTime的差值不超过24小时:(EndTime-BeginTime) < 24*60*60 + * + * @return integer|null + */ + public function getEnd() + { + return $this->get("End"); + } + + /** + * End: 查询日志的结束时间戳(Unix Timestamp),对于实时查询不传该值,与BeginTime的差值不超过24小时:(EndTime-BeginTime) < 24*60*60 + * + * @param int $end + */ + public function setEnd($end) + { + $this->set("End", $end); + } +} diff --git a/src/UMongoDB/Apis/GetUMongoDBLogResponse.php b/src/UMongoDB/Apis/GetUMongoDBLogResponse.php new file mode 100644 index 0000000..da35fe5 --- /dev/null +++ b/src/UMongoDB/Apis/GetUMongoDBLogResponse.php @@ -0,0 +1,84 @@ +get("Log"); + } + + /** + * Log: 查询到的日志内容,一段纯文本 + * + * @param string $log + */ + public function setLog($log) + { + $this->set("Log", $log); + } + + /** + * MaxLine: 支持的最大行数 + * + * @return integer|null + */ + public function getMaxLine() + { + return $this->get("MaxLine"); + } + + /** + * MaxLine: 支持的最大行数 + * + * @param int $maxLine + */ + public function setMaxLine($maxLine) + { + $this->set("MaxLine", $maxLine); + } + + /** + * IsTruncate: 是否已被截断 + * + * @return boolean|null + */ + public function getIsTruncate() + { + return $this->get("IsTruncate"); + } + + /** + * IsTruncate: 是否已被截断 + * + * @param boolean $isTruncate + */ + public function setIsTruncate($isTruncate) + { + $this->set("IsTruncate", $isTruncate); + } +} diff --git a/src/UMongoDB/Apis/GetUMongoDBRecoverTimeRangeRequest.php b/src/UMongoDB/Apis/GetUMongoDBRecoverTimeRangeRequest.php new file mode 100644 index 0000000..b6c145f --- /dev/null +++ b/src/UMongoDB/Apis/GetUMongoDBRecoverTimeRangeRequest.php @@ -0,0 +1,112 @@ + "GetUMongoDBRecoverTimeRange"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ClusterId: 集群id + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 集群id + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UMongoDB/Apis/GetUMongoDBRecoverTimeRangeResponse.php b/src/UMongoDB/Apis/GetUMongoDBRecoverTimeRangeResponse.php new file mode 100644 index 0000000..08540ab --- /dev/null +++ b/src/UMongoDB/Apis/GetUMongoDBRecoverTimeRangeResponse.php @@ -0,0 +1,64 @@ +get("EarliestTime"); + } + + /** + * EarliestTime: 最早可回档时间点 + * + * @param int $earliestTime + */ + public function setEarliestTime($earliestTime) + { + $this->set("EarliestTime", $earliestTime); + } + + /** + * LatestTime: 最晚可回档时间点 + * + * @return integer|null + */ + public function getLatestTime() + { + return $this->get("LatestTime"); + } + + /** + * LatestTime: 最晚可回档时间点 + * + * @param int $latestTime + */ + public function setLatestTime($latestTime) + { + $this->set("LatestTime", $latestTime); + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBBackupRequest.php b/src/UMongoDB/Apis/ListUMongoDBBackupRequest.php new file mode 100644 index 0000000..4a93260 --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBBackupRequest.php @@ -0,0 +1,112 @@ + "ListUMongoDBBackup"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ClusterId: 实例ID + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 实例ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBBackupResponse.php b/src/UMongoDB/Apis/ListUMongoDBBackupResponse.php new file mode 100644 index 0000000..9af74b4 --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBBackupResponse.php @@ -0,0 +1,57 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new BackupInfo($item)); + } + return $result; + } + + /** + * DataSet: 备份列表 + * + * @param BackupInfo[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBConfigTemplateRequest.php b/src/UMongoDB/Apis/ListUMongoDBConfigTemplateRequest.php new file mode 100644 index 0000000..0705a92 --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBConfigTemplateRequest.php @@ -0,0 +1,70 @@ + "ListUMongoDBConfigTemplate"]); + $this->markRequired("Region"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBConfigTemplateResponse.php b/src/UMongoDB/Apis/ListUMongoDBConfigTemplateResponse.php new file mode 100644 index 0000000..002c1b2 --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBConfigTemplateResponse.php @@ -0,0 +1,57 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ConfigTemplate($item)); + } + return $result; + } + + /** + * DataSet: 配置模板列表 + * + * @param ConfigTemplate[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBInstancesRequest.php b/src/UMongoDB/Apis/ListUMongoDBInstancesRequest.php new file mode 100644 index 0000000..1c5afa9 --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBInstancesRequest.php @@ -0,0 +1,110 @@ + "ListUMongoDBInstances"]); + $this->markRequired("Region"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * 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); + } + + /** + * ClusterId: 集群ID + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 集群ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBInstancesResponse.php b/src/UMongoDB/Apis/ListUMongoDBInstancesResponse.php new file mode 100644 index 0000000..1f24e4a --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBInstancesResponse.php @@ -0,0 +1,58 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MongodbInstance($item)); + } + return $result; + } + + /** + * DataSet: 副本集ID + * + * @param MongodbInstance[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBLogPackageRequest.php b/src/UMongoDB/Apis/ListUMongoDBLogPackageRequest.php new file mode 100644 index 0000000..0ab2713 --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBLogPackageRequest.php @@ -0,0 +1,132 @@ + "ListUMongoDBLogPackage"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * 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); + } + + /** + * NodeId: 节点id + * + * @return string|null + */ + public function getNodeId() + { + return $this->get("NodeId"); + } + + /** + * NodeId: 节点id + * + * @param string $nodeId + */ + public function setNodeId($nodeId) + { + $this->set("NodeId", $nodeId); + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBLogPackageResponse.php b/src/UMongoDB/Apis/ListUMongoDBLogPackageResponse.php new file mode 100644 index 0000000..921fc70 --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBLogPackageResponse.php @@ -0,0 +1,57 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new PackageInfo($item)); + } + return $result; + } + + /** + * DataSet: 列表 + * + * @param PackageInfo[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBMachineSpecRequest.php b/src/UMongoDB/Apis/ListUMongoDBMachineSpecRequest.php new file mode 100644 index 0000000..ba20f44 --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBMachineSpecRequest.php @@ -0,0 +1,131 @@ + "ListUMongoDBMachineSpec"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + } + + + + /** + * 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); + } + + /** + * ClassType: 机型,如O + * + * @return string|null + */ + public function getClassType() + { + return $this->get("ClassType"); + } + + /** + * ClassType: 机型,如O + * + * @param string $classType + */ + public function setClassType($classType) + { + $this->set("ClassType", $classType); + } + + /** + * DiskType: 磁盘类型,如CLOUD_RSSD + * + * @return string|null + */ + public function getDiskType() + { + return $this->get("DiskType"); + } + + /** + * DiskType: 磁盘类型,如CLOUD_RSSD + * + * @param string $diskType + */ + public function setDiskType($diskType) + { + $this->set("DiskType", $diskType); + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBMachineSpecResponse.php b/src/UMongoDB/Apis/ListUMongoDBMachineSpecResponse.php new file mode 100644 index 0000000..25a0ed7 --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBMachineSpecResponse.php @@ -0,0 +1,59 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MongodbMachineSpec($item)); + } + return $result; + } + + /** + * DataSet: 规格列表 + * + * @param MongodbMachineSpec[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBMachineTypeRequest.php b/src/UMongoDB/Apis/ListUMongoDBMachineTypeRequest.php new file mode 100644 index 0000000..97358cc --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBMachineTypeRequest.php @@ -0,0 +1,91 @@ + "ListUMongoDBMachineType"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + } + + + + /** + * 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); + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBMachineTypeResponse.php b/src/UMongoDB/Apis/ListUMongoDBMachineTypeResponse.php new file mode 100644 index 0000000..3d9d56f --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBMachineTypeResponse.php @@ -0,0 +1,57 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MongodbMachineType($item)); + } + return $result; + } + + /** + * DataSet: + * + * @param MongodbMachineType[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBVersionRequest.php b/src/UMongoDB/Apis/ListUMongoDBVersionRequest.php new file mode 100644 index 0000000..6a36b02 --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBVersionRequest.php @@ -0,0 +1,91 @@ + "ListUMongoDBVersion"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + } + + + + /** + * 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); + } +} diff --git a/src/UMongoDB/Apis/ListUMongoDBVersionResponse.php b/src/UMongoDB/Apis/ListUMongoDBVersionResponse.php new file mode 100644 index 0000000..d252f04 --- /dev/null +++ b/src/UMongoDB/Apis/ListUMongoDBVersionResponse.php @@ -0,0 +1,57 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MongoDBVersion($item)); + } + return $result; + } + + /** + * DataSet: + * + * @param MongoDBVersion[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UMongoDB/Apis/ModifyUMongoDBAdminPasswordRequest.php b/src/UMongoDB/Apis/ModifyUMongoDBAdminPasswordRequest.php new file mode 100644 index 0000000..f3aab09 --- /dev/null +++ b/src/UMongoDB/Apis/ModifyUMongoDBAdminPasswordRequest.php @@ -0,0 +1,133 @@ + "ModifyUMongoDBAdminPassword"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ClusterId"); + $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); + } + + /** + * 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); + } + + /** + * Password: 集群新密码(密码格式使用BASE64编码) + * + * @return string|null + */ + public function getPassword() + { + return $this->get("Password"); + } + + /** + * Password: 集群新密码(密码格式使用BASE64编码) + * + * @param string $password + */ + public function setPassword($password) + { + $this->set("Password", $password); + } +} diff --git a/src/UMongoDB/Apis/ModifyUMongoDBAdminPasswordResponse.php b/src/UMongoDB/Apis/ModifyUMongoDBAdminPasswordResponse.php new file mode 100644 index 0000000..7fab1ff --- /dev/null +++ b/src/UMongoDB/Apis/ModifyUMongoDBAdminPasswordResponse.php @@ -0,0 +1,26 @@ + "ModifyUMongoDBAttribute"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * 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); + } + + /** + * Name: 集群新名称(输入长度为6~63位名称) + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 集群新名称(输入长度为6~63位名称) + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * RemarkName: 集群备注(Name和RemarkName必传其一) + * + * @return string|null + */ + public function getRemarkName() + { + return $this->get("RemarkName"); + } + + /** + * RemarkName: 集群备注(Name和RemarkName必传其一) + * + * @param string $remarkName + */ + public function setRemarkName($remarkName) + { + $this->set("RemarkName", $remarkName); + } +} diff --git a/src/UMongoDB/Apis/ModifyUMongoDBAttributeResponse.php b/src/UMongoDB/Apis/ModifyUMongoDBAttributeResponse.php new file mode 100644 index 0000000..b1b25cf --- /dev/null +++ b/src/UMongoDB/Apis/ModifyUMongoDBAttributeResponse.php @@ -0,0 +1,26 @@ + "ModifyUMongoDBBackupParam"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * 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); + } + + /** + * AutoBackupToggleWeek: 自动备份预期星期几(1~7),默认 3,7 (周三,周日) + * + * @return string|null + */ + public function getAutoBackupToggleWeek() + { + return $this->get("AutoBackupToggleWeek"); + } + + /** + * AutoBackupToggleWeek: 自动备份预期星期几(1~7),默认 3,7 (周三,周日) + * + * @param string $autoBackupToggleWeek + */ + public function setAutoBackupToggleWeek($autoBackupToggleWeek) + { + $this->set("AutoBackupToggleWeek", $autoBackupToggleWeek); + } + + /** + * AutoBackupToggleTime: 自动备份预期开始时间范围(00:00~23:59),默认 5:00~6:00 + * + * @return string|null + */ + public function getAutoBackupToggleTime() + { + return $this->get("AutoBackupToggleTime"); + } + + /** + * AutoBackupToggleTime: 自动备份预期开始时间范围(00:00~23:59),默认 5:00~6:00 + * + * @param string $autoBackupToggleTime + */ + public function setAutoBackupToggleTime($autoBackupToggleTime) + { + $this->set("AutoBackupToggleTime", $autoBackupToggleTime); + } + + /** + * Disabled: 是否禁用,true:禁用;false:开启 + * + * @return boolean|null + */ + public function getDisabled() + { + return $this->get("Disabled"); + } + + /** + * Disabled: 是否禁用,true:禁用;false:开启 + * + * @param boolean $disabled + */ + public function setDisabled($disabled) + { + $this->set("Disabled", $disabled); + } +} diff --git a/src/UMongoDB/Apis/ModifyUMongoDBBackupParamResponse.php b/src/UMongoDB/Apis/ModifyUMongoDBBackupParamResponse.php new file mode 100644 index 0000000..bf3fd67 --- /dev/null +++ b/src/UMongoDB/Apis/ModifyUMongoDBBackupParamResponse.php @@ -0,0 +1,26 @@ + "ResizeUMongoDBInstance"]); + $this->markRequired("Region"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ClusterId: 集群资源ID + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 集群资源ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } + + /** + * DiskSpace: 集群数据节点磁盘配置 + * + * @return integer|null + */ + public function getDiskSpace() + { + return $this->get("DiskSpace"); + } + + /** + * DiskSpace: 集群数据节点磁盘配置 + * + * @param int $diskSpace + */ + public function setDiskSpace($diskSpace) + { + $this->set("DiskSpace", $diskSpace); + } + + /** + * MachineTypeId: 集群数据节点机型配置 + * + * @return string|null + */ + public function getMachineTypeId() + { + return $this->get("MachineTypeId"); + } + + /** + * MachineTypeId: 集群数据节点机型配置 + * + * @param string $machineTypeId + */ + public function setMachineTypeId($machineTypeId) + { + $this->set("MachineTypeId", $machineTypeId); + } + + /** + * MongosMachineTypeId: 集群Mongos节点机型配置 + * + * @return string|null + */ + public function getMongosMachineTypeId() + { + return $this->get("MongosMachineTypeId"); + } + + /** + * MongosMachineTypeId: 集群Mongos节点机型配置 + * + * @param string $mongosMachineTypeId + */ + public function setMongosMachineTypeId($mongosMachineTypeId) + { + $this->set("MongosMachineTypeId", $mongosMachineTypeId); + } +} diff --git a/src/UMongoDB/Apis/ResizeUMongoDBInstanceResponse.php b/src/UMongoDB/Apis/ResizeUMongoDBInstanceResponse.php new file mode 100644 index 0000000..bbc3d4e --- /dev/null +++ b/src/UMongoDB/Apis/ResizeUMongoDBInstanceResponse.php @@ -0,0 +1,26 @@ + "RestartUMongoDBCluster"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ClusterId: 集群ID + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 集群ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UMongoDB/Apis/RestartUMongoDBClusterResponse.php b/src/UMongoDB/Apis/RestartUMongoDBClusterResponse.php new file mode 100644 index 0000000..a28625f --- /dev/null +++ b/src/UMongoDB/Apis/RestartUMongoDBClusterResponse.php @@ -0,0 +1,44 @@ +get("ClusterId"); + } + + /** + * ClusterId: 集群ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UMongoDB/Apis/StartUMongoDBClusterRequest.php b/src/UMongoDB/Apis/StartUMongoDBClusterRequest.php new file mode 100644 index 0000000..ccdabdd --- /dev/null +++ b/src/UMongoDB/Apis/StartUMongoDBClusterRequest.php @@ -0,0 +1,112 @@ + "StartUMongoDBCluster"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ClusterId: 集群ID + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 集群ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UMongoDB/Apis/StartUMongoDBClusterResponse.php b/src/UMongoDB/Apis/StartUMongoDBClusterResponse.php new file mode 100644 index 0000000..3bcbebc --- /dev/null +++ b/src/UMongoDB/Apis/StartUMongoDBClusterResponse.php @@ -0,0 +1,44 @@ +get("ClusterId"); + } + + /** + * ClusterId: 集群ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UMongoDB/Apis/StopUMongoDBClusterRequest.php b/src/UMongoDB/Apis/StopUMongoDBClusterRequest.php new file mode 100644 index 0000000..864bd62 --- /dev/null +++ b/src/UMongoDB/Apis/StopUMongoDBClusterRequest.php @@ -0,0 +1,112 @@ + "StopUMongoDBCluster"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ClusterId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ClusterId: 集群ID + * + * @return string|null + */ + public function getClusterId() + { + return $this->get("ClusterId"); + } + + /** + * ClusterId: 集群ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UMongoDB/Apis/StopUMongoDBClusterResponse.php b/src/UMongoDB/Apis/StopUMongoDBClusterResponse.php new file mode 100644 index 0000000..bf85605 --- /dev/null +++ b/src/UMongoDB/Apis/StopUMongoDBClusterResponse.php @@ -0,0 +1,44 @@ +get("ClusterId"); + } + + /** + * ClusterId: 集群ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } +} diff --git a/src/UMongoDB/Models/BackupInfo.php b/src/UMongoDB/Models/BackupInfo.php new file mode 100644 index 0000000..8bc91d9 --- /dev/null +++ b/src/UMongoDB/Models/BackupInfo.php @@ -0,0 +1,284 @@ +get("Zone"); + } + + /** + * Zone: 可用区 + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * 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); + } + + /** + * BackupName: 备份名称 + * + * @return string|null + */ + public function getBackupName() + { + return $this->get("BackupName"); + } + + /** + * BackupName: 备份名称 + * + * @param string $backupName + */ + public function setBackupName($backupName) + { + $this->set("BackupName", $backupName); + } + + /** + * 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); + } + + /** + * State: 备份状态 + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 备份状态 + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * BackupSize: 备份数据大小 + * + * @return integer|null + */ + public function getBackupSize() + { + return $this->get("BackupSize"); + } + + /** + * BackupSize: 备份数据大小 + * + * @param int $backupSize + */ + public function setBackupSize($backupSize) + { + $this->set("BackupSize", $backupSize); + } + + /** + * BackupType: 备份类型 + * + * @return string|null + */ + public function getBackupType() + { + return $this->get("BackupType"); + } + + /** + * BackupType: 备份类型 + * + * @param string $backupType + */ + public function setBackupType($backupType) + { + $this->set("BackupType", $backupType); + } + + /** + * 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); + } + + /** + * VirtualClusterId: 虚拟节点id + * + * @return string|null + */ + public function getVirtualClusterId() + { + return $this->get("VirtualClusterId"); + } + + /** + * VirtualClusterId: 虚拟节点id + * + * @param string $virtualClusterId + */ + public function setVirtualClusterId($virtualClusterId) + { + $this->set("VirtualClusterId", $virtualClusterId); + } + + /** + * ReplicaType: 副本类型,ConfigRepl或者DataRepl + * + * @return string|null + */ + public function getReplicaType() + { + return $this->get("ReplicaType"); + } + + /** + * ReplicaType: 副本类型,ConfigRepl或者DataRepl + * + * @param string $replicaType + */ + public function setReplicaType($replicaType) + { + $this->set("ReplicaType", $replicaType); + } + + /** + * BatchId: 批次id + * + * @return string|null + */ + public function getBatchId() + { + return $this->get("BatchId"); + } + + /** + * BatchId: 批次id + * + * @param string $batchId + */ + public function setBatchId($batchId) + { + $this->set("BatchId", $batchId); + } + + /** + * DiskSize: 磁盘大小 + * + * @return integer|null + */ + public function getDiskSize() + { + return $this->get("DiskSize"); + } + + /** + * DiskSize: 磁盘大小 + * + * @param int $diskSize + */ + public function setDiskSize($diskSize) + { + $this->set("DiskSize", $diskSize); + } +} diff --git a/src/UMongoDB/Models/BackupParam.php b/src/UMongoDB/Models/BackupParam.php new file mode 100644 index 0000000..9586ae1 --- /dev/null +++ b/src/UMongoDB/Models/BackupParam.php @@ -0,0 +1,144 @@ +get("ClusterId"); + } + + /** + * ClusterId: 实例ID + * + * @param string $clusterId + */ + public function setClusterId($clusterId) + { + $this->set("ClusterId", $clusterId); + } + + /** + * AutoBackupToggleWeek: 自动备份预期周几 (1-7 表示 周一到周末,多个数据用','分割,eg: 3,7) + * + * @return string|null + */ + public function getAutoBackupToggleWeek() + { + return $this->get("AutoBackupToggleWeek"); + } + + /** + * AutoBackupToggleWeek: 自动备份预期周几 (1-7 表示 周一到周末,多个数据用','分割,eg: 3,7) + * + * @param string $autoBackupToggleWeek + */ + public function setAutoBackupToggleWeek($autoBackupToggleWeek) + { + $this->set("AutoBackupToggleWeek", $autoBackupToggleWeek); + } + + /** + * AutoBackupToggleTime: 自动备份预期时间范围 (24小时制,精确到分钟,00:00~23:59) + * + * @return string|null + */ + public function getAutoBackupToggleTime() + { + return $this->get("AutoBackupToggleTime"); + } + + /** + * AutoBackupToggleTime: 自动备份预期时间范围 (24小时制,精确到分钟,00:00~23:59) + * + * @param string $autoBackupToggleTime + */ + public function setAutoBackupToggleTime($autoBackupToggleTime) + { + $this->set("AutoBackupToggleTime", $autoBackupToggleTime); + } + + /** + * AutoBackupCopies: 自动备份保存份数 + * + * @return integer|null + */ + public function getAutoBackupCopies() + { + return $this->get("AutoBackupCopies"); + } + + /** + * AutoBackupCopies: 自动备份保存份数 + * + * @param int $autoBackupCopies + */ + public function setAutoBackupCopies($autoBackupCopies) + { + $this->set("AutoBackupCopies", $autoBackupCopies); + } + + /** + * ManualBackupCopies: 手动备份保存份数 + * + * @return integer|null + */ + public function getManualBackupCopies() + { + return $this->get("ManualBackupCopies"); + } + + /** + * ManualBackupCopies: 手动备份保存份数 + * + * @param int $manualBackupCopies + */ + public function setManualBackupCopies($manualBackupCopies) + { + $this->set("ManualBackupCopies", $manualBackupCopies); + } + + /** + * Disabled: 是否禁用(false:未禁用;true:禁用) + * + * @return boolean|null + */ + public function getDisabled() + { + return $this->get("Disabled"); + } + + /** + * Disabled: 是否禁用(false:未禁用;true:禁用) + * + * @param boolean $disabled + */ + public function setDisabled($disabled) + { + $this->set("Disabled", $disabled); + } +} diff --git a/src/UMongoDB/Models/ClusterInfo.php b/src/UMongoDB/Models/ClusterInfo.php new file mode 100644 index 0000000..8d4be4b --- /dev/null +++ b/src/UMongoDB/Models/ClusterInfo.php @@ -0,0 +1,628 @@ +get("Zone"); + } + + /** + * Zone: 可用区 + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ZoneId: + * + * @return integer|null + */ + public function getZoneId() + { + return $this->get("ZoneId"); + } + + /** + * ZoneId: + * + * @param int $zoneId + */ + public function setZoneId($zoneId) + { + $this->set("ZoneId", $zoneId); + } + + /** + * ClusterType: 集群类型,ReplicaSet :副本集,SharedCluster:分片集 + * + * @return string|null + */ + public function getClusterType() + { + return $this->get("ClusterType"); + } + + /** + * ClusterType: 集群类型,ReplicaSet :副本集,SharedCluster:分片集 + * + * @param string $clusterType + */ + public function setClusterType($clusterType) + { + $this->set("ClusterType", $clusterType); + } + + /** + * 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); + } + + /** + * InstanceName: 实例名称 + * + * @return string|null + */ + public function getInstanceName() + { + return $this->get("InstanceName"); + } + + /** + * InstanceName: 实例名称 + * + * @param string $instanceName + */ + public function setInstanceName($instanceName) + { + $this->set("InstanceName", $instanceName); + } + + /** + * State: 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败,Upgrading: 升降级中,UpgradeFailed: 升降级失败,Switching:主备切换中,UpdatingSSL:修改SSL中,UpdateSSLFail:修改SSL失败 + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败,Upgrading: 升降级中,UpgradeFailed: 升降级失败,Switching:主备切换中,UpdatingSSL:修改SSL中,UpdateSSLFail:修改SSL失败 + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * DBVersion: 副本集的Mongodb的版本 + * + * @return string|null + */ + public function getDBVersion() + { + return $this->get("DBVersion"); + } + + /** + * DBVersion: 副本集的Mongodb的版本 + * + * @param string $dbVersion + */ + public function setDBVersion($dbVersion) + { + $this->set("DBVersion", $dbVersion); + } + + /** + * DiskSpace: 磁盘空间(GB), 默认根据配置机型 + * + * @return integer|null + */ + public function getDiskSpace() + { + return $this->get("DiskSpace"); + } + + /** + * DiskSpace: 磁盘空间(GB), 默认根据配置机型 + * + * @param int $diskSpace + */ + public function setDiskSpace($diskSpace) + { + $this->set("DiskSpace", $diskSpace); + } + + /** + * MachineTypeId: 计算规格 + * + * @return string|null + */ + public function getMachineTypeId() + { + return $this->get("MachineTypeId"); + } + + /** + * MachineTypeId: 计算规格 + * + * @param string $machineTypeId + */ + public function setMachineTypeId($machineTypeId) + { + $this->set("MachineTypeId", $machineTypeId); + } + + /** + * CreateTime: DB实例创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: DB实例创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * ConfigReplicaInfo: ConfigSrv信息 + * + * @return ReplicaInfo|null + */ + public function getConfigReplicaInfo() + { + return new ReplicaInfo($this->get("ConfigReplicaInfo")); + } + + /** + * ConfigReplicaInfo: ConfigSrv信息 + * + * @param ReplicaInfo $configReplicaInfo + */ + public function setConfigReplicaInfo(array $configReplicaInfo) + { + $this->set("ConfigReplicaInfo", $configReplicaInfo->getAll()); + } + + /** + * DataReplicaInfos: 数据副本信息 + * + * @return ReplicaInfo[]|null + */ + public function getDataReplicaInfos() + { + $items = $this->get("DataReplicaInfos"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ReplicaInfo($item)); + } + return $result; + } + + /** + * DataReplicaInfos: 数据副本信息 + * + * @param ReplicaInfo[] $dataReplicaInfos + */ + public function setDataReplicaInfos(array $dataReplicaInfos) + { + $result = []; + foreach ($dataReplicaInfos as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * MongosInfo: Mongos节点信息 + * + * @return NodeInfo[]|null + */ + public function getMongosInfo() + { + $items = $this->get("MongosInfo"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new NodeInfo($item)); + } + return $result; + } + + /** + * MongosInfo: Mongos节点信息 + * + * @param NodeInfo[] $mongosInfo + */ + public function setMongosInfo(array $mongosInfo) + { + $result = []; + foreach ($mongosInfo as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * ConnectURL: 副本集的访问地址 + * + * @return string|null + */ + public function getConnectURL() + { + return $this->get("ConnectURL"); + } + + /** + * ConnectURL: 副本集的访问地址 + * + * @param string $connectURL + */ + public function setConnectURL($connectURL) + { + $this->set("ConnectURL", $connectURL); + } + + /** + * DeleteTime: DB实例删除时间 + * + * @return integer|null + */ + public function getDeleteTime() + { + return $this->get("DeleteTime"); + } + + /** + * DeleteTime: DB实例删除时间 + * + * @param int $deleteTime + */ + public function setDeleteTime($deleteTime) + { + $this->set("DeleteTime", $deleteTime); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * ShardCount: 分片数量,分片集有效 + * + * @return integer|null + */ + public function getShardCount() + { + return $this->get("ShardCount"); + } + + /** + * ShardCount: 分片数量,分片集有效 + * + * @param int $shardCount + */ + public function setShardCount($shardCount) + { + $this->set("ShardCount", $shardCount); + } + + /** + * ShardNodeCount: 每分片节点数量,分片集有效 + * + * @return integer|null + */ + public function getShardNodeCount() + { + return $this->get("ShardNodeCount"); + } + + /** + * ShardNodeCount: 每分片节点数量,分片集有效 + * + * @param int $shardNodeCount + */ + public function setShardNodeCount($shardNodeCount) + { + $this->set("ShardNodeCount", $shardNodeCount); + } + + /** + * MongosCount: Mongos节点数量,分片集有效 + * + * @return integer|null + */ + public function getMongosCount() + { + return $this->get("MongosCount"); + } + + /** + * MongosCount: Mongos节点数量,分片集有效 + * + * @param int $mongosCount + */ + public function setMongosCount($mongosCount) + { + $this->set("MongosCount", $mongosCount); + } + + /** + * ConfigNodeCount: Config配置集群节点数量,分片集有效 + * + * @return integer|null + */ + public function getConfigNodeCount() + { + return $this->get("ConfigNodeCount"); + } + + /** + * ConfigNodeCount: Config配置集群节点数量,分片集有效 + * + * @param int $configNodeCount + */ + public function setConfigNodeCount($configNodeCount) + { + $this->set("ConfigNodeCount", $configNodeCount); + } + + /** + * ConfigMachineType: Config配置集群节点配置,分片集有效 + * + * @return string|null + */ + public function getConfigMachineType() + { + return $this->get("ConfigMachineType"); + } + + /** + * ConfigMachineType: Config配置集群节点配置,分片集有效 + * + * @param string $configMachineType + */ + public function setConfigMachineType($configMachineType) + { + $this->set("ConfigMachineType", $configMachineType); + } + + /** + * Tag: 实例业务组 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 实例业务组 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * DataComputeType: 数据节点计算规格 + * + * @return MongodbMachineType|null + */ + public function getDataComputeType() + { + return new MongodbMachineType($this->get("DataComputeType")); + } + + /** + * DataComputeType: 数据节点计算规格 + * + * @param MongodbMachineType $dataComputeType + */ + public function setDataComputeType(array $dataComputeType) + { + $this->set("DataComputeType", $dataComputeType->getAll()); + } + + /** + * ConfigComputeType: 配置节点计算规格 + * + * @return MongodbMachineType|null + */ + public function getConfigComputeType() + { + return new MongodbMachineType($this->get("ConfigComputeType")); + } + + /** + * ConfigComputeType: 配置节点计算规格 + * + * @param MongodbMachineType $configComputeType + */ + public function setConfigComputeType(array $configComputeType) + { + $this->set("ConfigComputeType", $configComputeType->getAll()); + } + + /** + * MongosComputeType: 路由节点计算规格 + * + * @return MongodbMachineType|null + */ + public function getMongosComputeType() + { + return new MongodbMachineType($this->get("MongosComputeType")); + } + + /** + * MongosComputeType: 路由节点计算规格 + * + * @param MongodbMachineType $mongosComputeType + */ + public function setMongosComputeType(array $mongosComputeType) + { + $this->set("MongosComputeType", $mongosComputeType->getAll()); + } + + /** + * CrossZones: 跨用区列表 + * + * @return string[]|null + */ + public function getCrossZones() + { + return $this->get("CrossZones"); + } + + /** + * CrossZones: 跨用区列表 + * + * @param string[] $crossZones + */ + public function setCrossZones(array $crossZones) + { + $this->set("CrossZones", $crossZones); + } + + /** + * EnableSSL: 是否开启了SSL;1->未开启 2->开启 + * + * @return integer|null + */ + public function getEnableSSL() + { + return $this->get("EnableSSL"); + } + + /** + * EnableSSL: 是否开启了SSL;1->未开启 2->开启 + * + * @param int $enableSSL + */ + public function setEnableSSL($enableSSL) + { + $this->set("EnableSSL", $enableSSL); + } + + /** + * SSLExpirationTime: SSL到期时间 + * + * @return integer|null + */ + public function getSSLExpirationTime() + { + return $this->get("SSLExpirationTime"); + } + + /** + * SSLExpirationTime: SSL到期时间 + * + * @param int $sslExpirationTime + */ + public function setSSLExpirationTime($sslExpirationTime) + { + $this->set("SSLExpirationTime", $sslExpirationTime); + } +} diff --git a/src/UMongoDB/Models/ConfigOptions.php b/src/UMongoDB/Models/ConfigOptions.php new file mode 100644 index 0000000..a028771 --- /dev/null +++ b/src/UMongoDB/Models/ConfigOptions.php @@ -0,0 +1,264 @@ +get("MongodbVersion"); + } + + /** + * MongodbVersion: mongo版本 + * + * @param string $mongodbVersion + */ + public function setMongodbVersion($mongodbVersion) + { + $this->set("MongodbVersion", $mongodbVersion); + } + + /** + * OptionName: 配置选项名 + * + * @return string|null + */ + public function getOptionName() + { + return $this->get("OptionName"); + } + + /** + * OptionName: 配置选项名 + * + * @param string $optionName + */ + public function setOptionName($optionName) + { + $this->set("OptionName", $optionName); + } + + /** + * OptionValueType: 配置选项类型 string,int,bool + * + * @return string|null + */ + public function getOptionValueType() + { + return $this->get("OptionValueType"); + } + + /** + * OptionValueType: 配置选项类型 string,int,bool + * + * @param string $optionValueType + */ + public function setOptionValueType($optionValueType) + { + $this->set("OptionValueType", $optionValueType); + } + + /** + * OptionValues: 配置选项值范围 + * + * @return string|null + */ + public function getOptionValues() + { + return $this->get("OptionValues"); + } + + /** + * OptionValues: 配置选项值范围 + * + * @param string $optionValues + */ + public function setOptionValues($optionValues) + { + $this->set("OptionValues", $optionValues); + } + + /** + * OptionDefaultValue: 默认值 + * + * @return string|null + */ + public function getOptionDefaultValue() + { + return $this->get("OptionDefaultValue"); + } + + /** + * OptionDefaultValue: 默认值 + * + * @param string $optionDefaultValue + */ + public function setOptionDefaultValue($optionDefaultValue) + { + $this->set("OptionDefaultValue", $optionDefaultValue); + } + + /** + * IsDefaultOption: 是否为默认选项 + * + * @return boolean|null + */ + public function getIsDefaultOption() + { + return $this->get("IsDefaultOption"); + } + + /** + * IsDefaultOption: 是否为默认选项 + * + * @param boolean $isDefaultOption + */ + public function setIsDefaultOption($isDefaultOption) + { + $this->set("IsDefaultOption", $isDefaultOption); + } + + /** + * EnableModify: 是否可修改 + * + * @return boolean|null + */ + public function getEnableModify() + { + return $this->get("EnableModify"); + } + + /** + * EnableModify: 是否可修改 + * + * @param boolean $enableModify + */ + public function setEnableModify($enableModify) + { + $this->set("EnableModify", $enableModify); + } + + /** + * EnableDisplay: 是否前端展示 + * + * @return boolean|null + */ + public function getEnableDisplay() + { + return $this->get("EnableDisplay"); + } + + /** + * EnableDisplay: 是否前端展示 + * + * @param boolean $enableDisplay + */ + public function setEnableDisplay($enableDisplay) + { + $this->set("EnableDisplay", $enableDisplay); + } + + /** + * ForceRestart: 是否需重启 + * + * @return boolean|null + */ + public function getForceRestart() + { + return $this->get("ForceRestart"); + } + + /** + * ForceRestart: 是否需重启 + * + * @param boolean $forceRestart + */ + public function setForceRestart($forceRestart) + { + $this->set("ForceRestart", $forceRestart); + } + + /** + * OptionFormatType: 选项值格式 + * + * @return string|null + */ + public function getOptionFormatType() + { + return $this->get("OptionFormatType"); + } + + /** + * OptionFormatType: 选项值格式 + * + * @param string $optionFormatType + */ + public function setOptionFormatType($optionFormatType) + { + $this->set("OptionFormatType", $optionFormatType); + } + + /** + * AllowedApplyType: 允许应用类型 + * + * @return string|null + */ + public function getAllowedApplyType() + { + return $this->get("AllowedApplyType"); + } + + /** + * AllowedApplyType: 允许应用类型 + * + * @param string $allowedApplyType + */ + public function setAllowedApplyType($allowedApplyType) + { + $this->set("AllowedApplyType", $allowedApplyType); + } + + /** + * Description: 描述 + * + * @return string|null + */ + public function getDescription() + { + return $this->get("Description"); + } + + /** + * Description: 描述 + * + * @param string $description + */ + public function setDescription($description) + { + $this->set("Description", $description); + } +} diff --git a/src/UMongoDB/Models/ConfigTemplate.php b/src/UMongoDB/Models/ConfigTemplate.php new file mode 100644 index 0000000..ee1714e --- /dev/null +++ b/src/UMongoDB/Models/ConfigTemplate.php @@ -0,0 +1,204 @@ +get("TemplateId"); + } + + /** + * TemplateId: 模板ID + * + * @param string $templateId + */ + public function setTemplateId($templateId) + { + $this->set("TemplateId", $templateId); + } + + /** + * TemplateName: 模板名称 + * + * @return string|null + */ + public function getTemplateName() + { + return $this->get("TemplateName"); + } + + /** + * TemplateName: 模板名称 + * + * @param string $templateName + */ + public function setTemplateName($templateName) + { + $this->set("TemplateName", $templateName); + } + + /** + * MongodbVersion: mongo版本 + * + * @return string|null + */ + public function getMongodbVersion() + { + return $this->get("MongodbVersion"); + } + + /** + * MongodbVersion: mongo版本 + * + * @param string $mongodbVersion + */ + public function setMongodbVersion($mongodbVersion) + { + $this->set("MongodbVersion", $mongodbVersion); + } + + /** + * ClusterType: 集群类型 + * + * @return string|null + */ + public function getClusterType() + { + return $this->get("ClusterType"); + } + + /** + * ClusterType: 集群类型 + * + * @param string $clusterType + */ + public function setClusterType($clusterType) + { + $this->set("ClusterType", $clusterType); + } + + /** + * TemplateType: 模板类型 UsersTemplate DefaultTemplate + * + * @return string|null + */ + public function getTemplateType() + { + return $this->get("TemplateType"); + } + + /** + * TemplateType: 模板类型 UsersTemplate DefaultTemplate + * + * @param string $templateType + */ + public function setTemplateType($templateType) + { + $this->set("TemplateType", $templateType); + } + + /** + * CreateTime: 创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * ModifyTime: 修改时间 + * + * @return integer|null + */ + public function getModifyTime() + { + return $this->get("ModifyTime"); + } + + /** + * ModifyTime: 修改时间 + * + * @param int $modifyTime + */ + public function setModifyTime($modifyTime) + { + $this->set("ModifyTime", $modifyTime); + } + + /** + * DeleteTime: 删除时间 + * + * @return integer|null + */ + public function getDeleteTime() + { + return $this->get("DeleteTime"); + } + + /** + * DeleteTime: 删除时间 + * + * @param int $deleteTime + */ + public function setDeleteTime($deleteTime) + { + $this->set("DeleteTime", $deleteTime); + } + + /** + * Description: 模板描述 + * + * @return string|null + */ + public function getDescription() + { + return $this->get("Description"); + } + + /** + * Description: 模板描述 + * + * @param string $description + */ + public function setDescription($description) + { + $this->set("Description", $description); + } +} diff --git a/src/UMongoDB/Models/ConfigTemplateItem.php b/src/UMongoDB/Models/ConfigTemplateItem.php new file mode 100644 index 0000000..0cbc84d --- /dev/null +++ b/src/UMongoDB/Models/ConfigTemplateItem.php @@ -0,0 +1,184 @@ +get("ItemId"); + } + + /** + * ItemId: itemId + * + * @param string $itemId + */ + public function setItemId($itemId) + { + $this->set("ItemId", $itemId); + } + + /** + * TemplateId: 模板ID + * + * @return string|null + */ + public function getTemplateId() + { + return $this->get("TemplateId"); + } + + /** + * TemplateId: 模板ID + * + * @param string $templateId + */ + public function setTemplateId($templateId) + { + $this->set("TemplateId", $templateId); + } + + /** + * ConfigName: 配置名称 + * + * @return string|null + */ + public function getConfigName() + { + return $this->get("ConfigName"); + } + + /** + * ConfigName: 配置名称 + * + * @param string $configName + */ + public function setConfigName($configName) + { + $this->set("ConfigName", $configName); + } + + /** + * ConfigValue: 配置值 + * + * @return string|null + */ + public function getConfigValue() + { + return $this->get("ConfigValue"); + } + + /** + * ConfigValue: 配置值 + * + * @param string $configValue + */ + public function setConfigValue($configValue) + { + $this->set("ConfigValue", $configValue); + } + + /** + * CreateTime: 创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * ModifyTime: 修改时间 + * + * @return integer|null + */ + public function getModifyTime() + { + return $this->get("ModifyTime"); + } + + /** + * ModifyTime: 修改时间 + * + * @param int $modifyTime + */ + public function setModifyTime($modifyTime) + { + $this->set("ModifyTime", $modifyTime); + } + + /** + * ConfigOption: 配置选项 + * + * @return ConfigOptions|null + */ + public function getConfigOption() + { + return new ConfigOptions($this->get("ConfigOption")); + } + + /** + * ConfigOption: 配置选项 + * + * @param ConfigOptions $configOption + */ + public function setConfigOption(array $configOption) + { + $this->set("ConfigOption", $configOption->getAll()); + } + + /** + * NodeType: 节点类型: DataNode:数据节点 | ConfigSrvNode:配置节点 | MongosNode:路由节点 + * + * @return string|null + */ + public function getNodeType() + { + return $this->get("NodeType"); + } + + /** + * NodeType: 节点类型: DataNode:数据节点 | ConfigSrvNode:配置节点 | MongosNode:路由节点 + * + * @param string $nodeType + */ + public function setNodeType($nodeType) + { + $this->set("NodeType", $nodeType); + } +} diff --git a/src/UMongoDB/Models/DiskInfo.php b/src/UMongoDB/Models/DiskInfo.php new file mode 100644 index 0000000..0e939e1 --- /dev/null +++ b/src/UMongoDB/Models/DiskInfo.php @@ -0,0 +1,64 @@ +get("DiskId"); + } + + /** + * DiskId: 磁盘id + * + * @param string $diskId + */ + public function setDiskId($diskId) + { + $this->set("DiskId", $diskId); + } + + /** + * DiskSize: 磁盘容量单位GB + * + * @return integer|null + */ + public function getDiskSize() + { + return $this->get("DiskSize"); + } + + /** + * DiskSize: 磁盘容量单位GB + * + * @param int $diskSize + */ + public function setDiskSize($diskSize) + { + $this->set("DiskSize", $diskSize); + } +} diff --git a/src/UMongoDB/Models/MongoDBVersion.php b/src/UMongoDB/Models/MongoDBVersion.php new file mode 100644 index 0000000..dc5c551 --- /dev/null +++ b/src/UMongoDB/Models/MongoDBVersion.php @@ -0,0 +1,44 @@ +get("DBVersion"); + } + + /** + * DBVersion: MongoDB版本 + * + * @param string $dbVersion + */ + public function setDBVersion($dbVersion) + { + $this->set("DBVersion", $dbVersion); + } +} diff --git a/src/UMongoDB/Models/MongodbInstance.php b/src/UMongoDB/Models/MongodbInstance.php new file mode 100644 index 0000000..6ddeb43 --- /dev/null +++ b/src/UMongoDB/Models/MongodbInstance.php @@ -0,0 +1,344 @@ +get("Zone"); + } + + /** + * Zone: 可用区 + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * 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); + } + + /** + * Name: 副本集/分片集群实例名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 副本集/分片集群实例名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * DBVersion: 副本集/分片集群的Mongodb的版本,包括MongoDB-3.6, MongoDB-4.2 + * + * @return string|null + */ + public function getDBVersion() + { + return $this->get("DBVersion"); + } + + /** + * DBVersion: 副本集/分片集群的Mongodb的版本,包括MongoDB-3.6, MongoDB-4.2 + * + * @param string $dbVersion + */ + public function setDBVersion($dbVersion) + { + $this->set("DBVersion", $dbVersion); + } + + /** + * ConnectURL: 副本集/分片集群的访问地址 + * + * @return string|null + */ + public function getConnectURL() + { + return $this->get("ConnectURL"); + } + + /** + * ConnectURL: 副本集/分片集群的访问地址 + * + * @param string $connectURL + */ + public function setConnectURL($connectURL) + { + $this->set("ConnectURL", $connectURL); + } + + /** + * CreateTime: 副本集/分片集群的创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 副本集/分片集群的创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * ClusterType: 集群类型,ReplicaSet :副本集,SharedCluster:分片集 + * + * @return string|null + */ + public function getClusterType() + { + return $this->get("ClusterType"); + } + + /** + * ClusterType: 集群类型,ReplicaSet :副本集,SharedCluster:分片集 + * + * @param string $clusterType + */ + public function setClusterType($clusterType) + { + $this->set("ClusterType", $clusterType); + } + + /** + * State: 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败,Upgrading: 升降级中,UpgradeFailed: 升降级失败,Switching:主备切换中 + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败,Upgrading: 升降级中,UpgradeFailed: 升降级失败,Switching:主备切换中 + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * IPv6ConnectURL: 副本集/分片集IPv6访问地址 + * + * @return string|null + */ + public function getIPv6ConnectURL() + { + return $this->get("IPv6ConnectURL"); + } + + /** + * IPv6ConnectURL: 副本集/分片集IPv6访问地址 + * + * @param string $iPv6ConnectURL + */ + public function setIPv6ConnectURL($iPv6ConnectURL) + { + $this->set("IPv6ConnectURL", $iPv6ConnectURL); + } + + /** + * ExpiredTime: DB实例过期时间,采用UTC计时时间戳 + * + * @return integer|null + */ + public function getExpiredTime() + { + return $this->get("ExpiredTime"); + } + + /** + * ExpiredTime: DB实例过期时间,采用UTC计时时间戳 + * + * @param int $expiredTime + */ + public function setExpiredTime($expiredTime) + { + $this->set("ExpiredTime", $expiredTime); + } + + /** + * DataComputeType: 数据节点计算规格 + * + * @return MongodbMachineType|null + */ + public function getDataComputeType() + { + return new MongodbMachineType($this->get("DataComputeType")); + } + + /** + * DataComputeType: 数据节点计算规格 + * + * @param MongodbMachineType $dataComputeType + */ + public function setDataComputeType(array $dataComputeType) + { + $this->set("DataComputeType", $dataComputeType->getAll()); + } + + /** + * 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); + } + + /** + * DiskSpace: 数据节点磁盘空间(GB) + * + * @return integer|null + */ + public function getDiskSpace() + { + return $this->get("DiskSpace"); + } + + /** + * DiskSpace: 数据节点磁盘空间(GB) + * + * @param int $diskSpace + */ + public function setDiskSpace($diskSpace) + { + $this->set("DiskSpace", $diskSpace); + } + + /** + * Tag: 业务组 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 业务组 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * CrossZones: 跨可用区列表 + * + * @return string[]|null + */ + public function getCrossZones() + { + return $this->get("CrossZones"); + } + + /** + * CrossZones: 跨可用区列表 + * + * @param string[] $crossZones + */ + public function setCrossZones(array $crossZones) + { + $this->set("CrossZones", $crossZones); + } +} diff --git a/src/UMongoDB/Models/MongodbMachineSpec.php b/src/UMongoDB/Models/MongodbMachineSpec.php new file mode 100644 index 0000000..f08cc8c --- /dev/null +++ b/src/UMongoDB/Models/MongodbMachineSpec.php @@ -0,0 +1,116 @@ +get("ClassType"); + } + + /** + * ClassType: 规格类型;O | N + * + * @param string $classType + */ + public function setClassType($classType) + { + $this->set("ClassType", $classType); + } + + /** + * DiskType: 磁盘类型;CLOUD_RSSD | CLOUD_SSD | LOCAL_SSD + * + * @return string[]|null + */ + public function getDiskType() + { + return $this->get("DiskType"); + } + + /** + * DiskType: 磁盘类型;CLOUD_RSSD | CLOUD_SSD | LOCAL_SSD + * + * @param string[] $diskType + */ + public function setDiskType(array $diskType) + { + $this->set("DiskType", $diskType); + } + + /** + * ComputeType: 计算规格列表 + * + * @return MongodbMachineType[]|null + */ + public function getComputeType() + { + $items = $this->get("ComputeType"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MongodbMachineType($item)); + } + return $result; + } + + /** + * ComputeType: 计算规格列表 + * + * @param MongodbMachineType[] $computeType + */ + public function setComputeType(array $computeType) + { + $result = []; + foreach ($computeType as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * DefaultMachineType: 默认规格 + * + * @return MongodbMachineType|null + */ + public function getDefaultMachineType() + { + return new MongodbMachineType($this->get("DefaultMachineType")); + } + + /** + * DefaultMachineType: 默认规格 + * + * @param MongodbMachineType $defaultMachineType + */ + public function setDefaultMachineType(array $defaultMachineType) + { + $this->set("DefaultMachineType", $defaultMachineType->getAll()); + } +} diff --git a/src/UMongoDB/Models/MongodbMachineType.php b/src/UMongoDB/Models/MongodbMachineType.php new file mode 100644 index 0000000..bbaefeb --- /dev/null +++ b/src/UMongoDB/Models/MongodbMachineType.php @@ -0,0 +1,144 @@ +get("MachineTypeId"); + } + + /** + * MachineTypeId: 机器类型ID o.mongo2m.medium,o.mongo2m.xlarge + * + * @param string $machineTypeId + */ + public function setMachineTypeId($machineTypeId) + { + $this->set("MachineTypeId", $machineTypeId); + } + + /** + * Description: 配置简称 2C4G + * + * @return string|null + */ + public function getDescription() + { + return $this->get("Description"); + } + + /** + * Description: 配置简称 2C4G + * + * @param string $description + */ + public function setDescription($description) + { + $this->set("Description", $description); + } + + /** + * Cpu: cpu核数 + * + * @return integer|null + */ + public function getCpu() + { + return $this->get("Cpu"); + } + + /** + * Cpu: cpu核数 + * + * @param int $cpu + */ + public function setCpu($cpu) + { + $this->set("Cpu", $cpu); + } + + /** + * Memory: 内存用量(GB) + * + * @return integer|null + */ + public function getMemory() + { + return $this->get("Memory"); + } + + /** + * Memory: 内存用量(GB) + * + * @param int $memory + */ + public function setMemory($memory) + { + $this->set("Memory", $memory); + } + + /** + * UHhostMachineType: 机器类型,N/O + * + * @return string|null + */ + public function getUHhostMachineType() + { + return $this->get("UHhostMachineType"); + } + + /** + * UHhostMachineType: 机器类型,N/O + * + * @param string $uHhostMachineType + */ + public function setUHhostMachineType($uHhostMachineType) + { + $this->set("UHhostMachineType", $uHhostMachineType); + } + + /** + * Group: 配置分组,2m , 4m + * + * @return string|null + */ + public function getGroup() + { + return $this->get("Group"); + } + + /** + * Group: 配置分组,2m , 4m + * + * @param string $group + */ + public function setGroup($group) + { + $this->set("Group", $group); + } +} diff --git a/src/UMongoDB/Models/NodeInfo.php b/src/UMongoDB/Models/NodeInfo.php new file mode 100644 index 0000000..7200f59 --- /dev/null +++ b/src/UMongoDB/Models/NodeInfo.php @@ -0,0 +1,304 @@ +get("Zone"); + } + + /** + * Zone: 可用区 + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ZoneId: 可用区ID + * + * @return integer|null + */ + public function getZoneId() + { + return $this->get("ZoneId"); + } + + /** + * ZoneId: 可用区ID + * + * @param int $zoneId + */ + public function setZoneId($zoneId) + { + $this->set("ZoneId", $zoneId); + } + + /** + * NodeId: 节点ID + * + * @return string|null + */ + public function getNodeId() + { + return $this->get("NodeId"); + } + + /** + * NodeId: 节点ID + * + * @param string $nodeId + */ + public function setNodeId($nodeId) + { + $this->set("NodeId", $nodeId); + } + + /** + * NodeRole: 节点角色,Primary/Secondary/Arbiter/Startup等等 + * + * @return string|null + */ + public function getNodeRole() + { + return $this->get("NodeRole"); + } + + /** + * NodeRole: 节点角色,Primary/Secondary/Arbiter/Startup等等 + * + * @param string $nodeRole + */ + public function setNodeRole($nodeRole) + { + $this->set("NodeRole", $nodeRole); + } + + /** + * NodeType: 节点类型 + * + * @return string|null + */ + public function getNodeType() + { + return $this->get("NodeType"); + } + + /** + * NodeType: 节点类型 + * + * @param string $nodeType + */ + public function setNodeType($nodeType) + { + $this->set("NodeType", $nodeType); + } + + /** + * State: 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * DBVersion: 副本集的Mongodb的版本 + * + * @return string|null + */ + public function getDBVersion() + { + return $this->get("DBVersion"); + } + + /** + * DBVersion: 副本集的Mongodb的版本 + * + * @param string $dbVersion + */ + public function setDBVersion($dbVersion) + { + $this->set("DBVersion", $dbVersion); + } + + /** + * 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); + } + + /** + * VirtualClusterId: 虚拟节点ID + * + * @return string|null + */ + public function getVirtualClusterId() + { + return $this->get("VirtualClusterId"); + } + + /** + * VirtualClusterId: 虚拟节点ID + * + * @param string $virtualClusterId + */ + public function setVirtualClusterId($virtualClusterId) + { + $this->set("VirtualClusterId", $virtualClusterId); + } + + /** + * MachineType: 机型信息 + * + * @return string|null + */ + public function getMachineType() + { + return $this->get("MachineType"); + } + + /** + * MachineType: 机型信息 + * + * @param string $machineType + */ + public function setMachineType($machineType) + { + $this->set("MachineType", $machineType); + } + + /** + * MachineTypeId: 机型信息ID + * + * @return string|null + */ + public function getMachineTypeId() + { + return $this->get("MachineTypeId"); + } + + /** + * MachineTypeId: 机型信息ID + * + * @param string $machineTypeId + */ + public function setMachineTypeId($machineTypeId) + { + $this->set("MachineTypeId", $machineTypeId); + } + + /** + * CreateTime: DB实例创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: DB实例创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * DataDisk: 数据盘信息 + * + * @return DiskInfo|null + */ + public function getDataDisk() + { + return new DiskInfo($this->get("DataDisk")); + } + + /** + * DataDisk: 数据盘信息 + * + * @param DiskInfo $dataDisk + */ + public function setDataDisk(array $dataDisk) + { + $this->set("DataDisk", $dataDisk->getAll()); + } + + /** + * SysDisk: 系统盘信息 + * + * @return DiskInfo|null + */ + public function getSysDisk() + { + return new DiskInfo($this->get("SysDisk")); + } + + /** + * SysDisk: 系统盘信息 + * + * @param DiskInfo $sysDisk + */ + public function setSysDisk(array $sysDisk) + { + $this->set("SysDisk", $sysDisk->getAll()); + } +} diff --git a/src/UMongoDB/Models/PackageInfo.php b/src/UMongoDB/Models/PackageInfo.php new file mode 100644 index 0000000..2ace443 --- /dev/null +++ b/src/UMongoDB/Models/PackageInfo.php @@ -0,0 +1,264 @@ +get("Id"); + } + + /** + * Id: id + * + * @param int $id + */ + public function setId($id) + { + $this->set("Id", $id); + } + + /** + * Name: 名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * State: Package_Running,Package_Success,Package_Failed,Package_Deleting,Package_Deleted,Package_DeleteFailed + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: Package_Running,Package_Success,Package_Failed,Package_Deleting,Package_Deleted,Package_DeleteFailed + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * Size: 大小,单位字节 + * + * @return integer|null + */ + public function getSize() + { + return $this->get("Size"); + } + + /** + * Size: 大小,单位字节 + * + * @param int $size + */ + public function setSize($size) + { + $this->set("Size", $size); + } + + /** + * PackageType: SlowLog,ErrorLog + * + * @return string|null + */ + public function getPackageType() + { + return $this->get("PackageType"); + } + + /** + * PackageType: SlowLog,ErrorLog + * + * @param string $packageType + */ + public function setPackageType($packageType) + { + $this->set("PackageType", $packageType); + } + + /** + * 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); + } + + /** + * NodeId: 节点id + * + * @return string|null + */ + public function getNodeId() + { + return $this->get("NodeId"); + } + + /** + * NodeId: 节点id + * + * @param string $nodeId + */ + public function setNodeId($nodeId) + { + $this->set("NodeId", $nodeId); + } + + /** + * Role: 角色 + * + * @return string|null + */ + public function getRole() + { + return $this->get("Role"); + } + + /** + * Role: 角色 + * + * @param string $role + */ + public function setRole($role) + { + $this->set("Role", $role); + } + + /** + * Begin: 开始时间 + * + * @return integer|null + */ + public function getBegin() + { + return $this->get("Begin"); + } + + /** + * Begin: 开始时间 + * + * @param int $begin + */ + public function setBegin($begin) + { + $this->set("Begin", $begin); + } + + /** + * End: 结束时间 + * + * @return integer|null + */ + public function getEnd() + { + return $this->get("End"); + } + + /** + * End: 结束时间 + * + * @param int $end + */ + public function setEnd($end) + { + $this->set("End", $end); + } + + /** + * CreateTime: 创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * FinishTime: 完成时间 + * + * @return integer|null + */ + public function getFinishTime() + { + return $this->get("FinishTime"); + } + + /** + * FinishTime: 完成时间 + * + * @param int $finishTime + */ + public function setFinishTime($finishTime) + { + $this->set("FinishTime", $finishTime); + } +} diff --git a/src/UMongoDB/Models/ReplicaInfo.php b/src/UMongoDB/Models/ReplicaInfo.php new file mode 100644 index 0000000..18aa17f --- /dev/null +++ b/src/UMongoDB/Models/ReplicaInfo.php @@ -0,0 +1,276 @@ +get("ReplicaId"); + } + + /** + * ReplicaId: 副本集ID + * + * @param string $replicaId + */ + public function setReplicaId($replicaId) + { + $this->set("ReplicaId", $replicaId); + } + + /** + * 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); + } + + /** + * ReplicaType: 副本类型,ConfigRepl或者DataRepl + * + * @return string|null + */ + public function getReplicaType() + { + return $this->get("ReplicaType"); + } + + /** + * ReplicaType: 副本类型,ConfigRepl或者DataRepl + * + * @param string $replicaType + */ + public function setReplicaType($replicaType) + { + $this->set("ReplicaType", $replicaType); + } + + /** + * State: 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * MachineType: 机器类型 + * + * @return string|null + */ + public function getMachineType() + { + return $this->get("MachineType"); + } + + /** + * MachineType: 机器类型 + * + * @param string $machineType + */ + public function setMachineType($machineType) + { + $this->set("MachineType", $machineType); + } + + /** + * MachineTypeId: 机器类型Id + * + * @return string|null + */ + public function getMachineTypeId() + { + return $this->get("MachineTypeId"); + } + + /** + * MachineTypeId: 机器类型Id + * + * @param string $machineTypeId + */ + public function setMachineTypeId($machineTypeId) + { + $this->set("MachineTypeId", $machineTypeId); + } + + /** + * IsolationGroupId: 隔离组ID + * + * @return string|null + */ + public function getIsolationGroupId() + { + return $this->get("IsolationGroupId"); + } + + /** + * IsolationGroupId: 隔离组ID + * + * @param string $isolationGroupId + */ + public function setIsolationGroupId($isolationGroupId) + { + $this->set("IsolationGroupId", $isolationGroupId); + } + + /** + * NodeInfos: 副本集下的节点信息 + * + * @return NodeInfo[]|null + */ + public function getNodeInfos() + { + $items = $this->get("NodeInfos"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new NodeInfo($item)); + } + return $result; + } + + /** + * NodeInfos: 副本集下的节点信息 + * + * @param NodeInfo[] $nodeInfos + */ + public function setNodeInfos(array $nodeInfos) + { + $result = []; + foreach ($nodeInfos as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * NodeCount: 副本集下的节点数量 + * + * @return integer|null + */ + public function getNodeCount() + { + return $this->get("NodeCount"); + } + + /** + * NodeCount: 副本集下的节点数量 + * + * @param int $nodeCount + */ + public function setNodeCount($nodeCount) + { + $this->set("NodeCount", $nodeCount); + } + + /** + * CreateTime: 副本集创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 副本集创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * DeleteTime: 副本集删除时间 + * + * @return integer|null + */ + public function getDeleteTime() + { + return $this->get("DeleteTime"); + } + + /** + * DeleteTime: 副本集删除时间 + * + * @param int $deleteTime + */ + public function setDeleteTime($deleteTime) + { + $this->set("DeleteTime", $deleteTime); + } + + /** + * ModifyTime: 副本集修改时间 + * + * @return integer|null + */ + public function getModifyTime() + { + return $this->get("ModifyTime"); + } + + /** + * ModifyTime: 副本集修改时间 + * + * @param int $modifyTime + */ + public function setModifyTime($modifyTime) + { + $this->set("ModifyTime", $modifyTime); + } +} diff --git a/src/UMongoDB/Params/CreateUMongoDBReplSetParamLabels.php b/src/UMongoDB/Params/CreateUMongoDBReplSetParamLabels.php new file mode 100644 index 0000000..355d5cd --- /dev/null +++ b/src/UMongoDB/Params/CreateUMongoDBReplSetParamLabels.php @@ -0,0 +1,64 @@ +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); + } +} diff --git a/src/UMongoDB/Params/CreateUMongoDBReplSetParamSecGroupId.php b/src/UMongoDB/Params/CreateUMongoDBReplSetParamSecGroupId.php new file mode 100644 index 0000000..4f3375a --- /dev/null +++ b/src/UMongoDB/Params/CreateUMongoDBReplSetParamSecGroupId.php @@ -0,0 +1,64 @@ +get("Id"); + } + + /** + * Id: 安全组 ID。至多可以同时绑定5个安全组。 + * + * @param string $id + */ + public function setId($id) + { + $this->set("Id", $id); + } + + /** + * Priority: 安全组优先级。取值范围[1, 5] + * + * @return integer|null + */ + public function getPriority() + { + return $this->get("Priority"); + } + + /** + * Priority: 安全组优先级。取值范围[1, 5] + * + * @param int $priority + */ + public function setPriority($priority) + { + $this->set("Priority", $priority); + } +} diff --git a/src/UMongoDB/Params/CreateUMongoDBShardedClusterParamLabels.php b/src/UMongoDB/Params/CreateUMongoDBShardedClusterParamLabels.php new file mode 100644 index 0000000..c5ac54f --- /dev/null +++ b/src/UMongoDB/Params/CreateUMongoDBShardedClusterParamLabels.php @@ -0,0 +1,64 @@ +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); + } +} diff --git a/src/UMongoDB/Params/CreateUMongoDBShardedClusterParamSecGroupId.php b/src/UMongoDB/Params/CreateUMongoDBShardedClusterParamSecGroupId.php new file mode 100644 index 0000000..33dc4c9 --- /dev/null +++ b/src/UMongoDB/Params/CreateUMongoDBShardedClusterParamSecGroupId.php @@ -0,0 +1,64 @@ +get("Id"); + } + + /** + * Id: 安全组 ID。至多可以同时绑定5个安全组。 + * + * @param string $id + */ + public function setId($id) + { + $this->set("Id", $id); + } + + /** + * Priority: 安全组优先级。取值范围[1, 5] + * + * @return integer|null + */ + public function getPriority() + { + return $this->get("Priority"); + } + + /** + * Priority: 安全组优先级。取值范围[1, 5] + * + * @param int $priority + */ + public function setPriority($priority) + { + $this->set("Priority", $priority); + } +} diff --git a/src/UMongoDB/UMongoDBClient.php b/src/UMongoDB/UMongoDBClient.php new file mode 100644 index 0000000..fedae71 --- /dev/null +++ b/src/UMongoDB/UMongoDBClient.php @@ -0,0 +1,1158 @@ + (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) + * "ClusterId" => (string) 实例ID + * "BackupName" => (string) 备份名称 + * ] + * + * Outputs: + * + * $outputs = [ + * "BackupId" => (string) 备份ID + * "ClusterId" => (string) 实例ID + * ] + * + * @return BackupUMongoDBClusterResponse + * @throws UCloudException + */ + public function backupUMongoDBCluster(BackupUMongoDBClusterRequest $request = null) + { + $resp = $this->invoke($request); + return new BackupUMongoDBClusterResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * BackupUMongoDBLog - 日志打包 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/backup_umon_go_db_log + * + * 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) + * "Name" => (string) 日志包名称 + * "ClusterId" => (string) 集群id + * "NodeId" => (string) 节点id, 慢日志 mongos 节点不可选 + * "Begin" => (integer) 日志开始时间,最早为7x24小时前 + * "End" => (integer) 日志结束时间,时间区间不能超过24小时 + * "LogType" => (string) 日志类型:SlowLog,ErrorLog + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return BackupUMongoDBLogResponse + * @throws UCloudException + */ + public function backupUMongoDBLog(BackupUMongoDBLogRequest $request = null) + { + $resp = $this->invoke($request); + return new BackupUMongoDBLogResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateUMongoDBConfigTemplate - 创建配置模板 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/create_umon_go_db_config_template + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "TemplateName" => (string) 模板名称 + * "ClusterType" => (string) 集群类型 + * "MongodbVersion" => (string) mongo版本 + * "BaseTemplateId" => (string) 基础模板 + * "Description" => (string) 模板描述 + * ] + * + * Outputs: + * + * $outputs = [ + * "TemplateId" => (string) 模板Id + * ] + * + * @return CreateUMongoDBConfigTemplateResponse + * @throws UCloudException + */ + public function createUMongoDBConfigTemplate(CreateUMongoDBConfigTemplateRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateUMongoDBConfigTemplateResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateUMongoDBReplSet - 创建一个Mongodb副本集群 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/create_umon_go_db_repl_set + * + * 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) + * "Name" => (string) 副本集实例名称,至少6位 + * "DBVersion" => (string) 副本集的Mongodb的版本,例如MongoDB 3.6, MongoDB 4.2 + * "AdminPassword" => (string) 管理员密码 + * "DiskSpace" => (integer) 磁盘空间 (GB):取值范围 20~32000,仅支持 10 的整数倍 + * "MachineTypeId" => (string) 机型配置,如 o.mongo2m.medium + * "NodeCount" => (integer) 副本集节点数量:仅支持 3、5、7 奇数节点 + * "ListenPort" => (integer) mongo服务端口 + * "SubnetId" => (string) 子网ID + * "VPCId" => (string) VPC的ID + * "Tag" => (string) 实例所在的业务组名称 + * "ChargeType" => (string) 付费方式:Year, Month, Dynamic,Trial,默认: Month + * "Quantity" => (integer) 购买时长,默认值1 + * "CrossZones" => (array) 跨可用区列表 + * "Labels" => (array) [ + * [ + * "Key" => (string) 用户资源标签的键值 + * "Value" => (string) 用户资源标签值 + * ] + * ] + * "SecGroupId" => (array) [ + * [ + * "Id" => (string) 安全组 ID。至多可以同时绑定5个安全组。 + * "Priority" => (integer) 安全组优先级。取值范围[1, 5] + * ] + * ] + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return CreateUMongoDBReplSetResponse + * @throws UCloudException + */ + public function createUMongoDBReplSet(CreateUMongoDBReplSetRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateUMongoDBReplSetResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateUMongoDBShardedCluster - 创建一个Mongodb分片集群 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/create_umon_go_db_sharded_cluster + * + * 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) + * "Name" => (string) 副本集实例名称,至少6位 + * "DBVersion" => (string) 副本集的Mongodb的版本,例如MongoDB 3.6, MongoDB 4.2 + * "AdminPassword" => (string) 管理员密码 + * "MongosNodeCount" => (integer) Mongos节点数量 + * "ShardCount" => (integer) 分片数量 + * "NodeCount" => (integer) 每个分片中节点数量 + * "DiskSpace" => (integer) 数据节点磁盘空间(GB):取值范围 20~32000,仅支持 10 的整数倍 + * "MachineTypeId" => (string) 数据节点机型配置,如 o.mongo2m.medium + * "SubnetId" => (string) 子网ID + * "VPCId" => (string) VPC的ID + * "Tag" => (string) 实例所在的业务组名称 + * "ChargeType" => (string) 付费方式:Year, Month, Dynamic,Trial,默认: Month + * "Quantity" => (integer) 购买时长,默认值1 + * "ListenPort" => (integer) mongo服务端口 + * "TemplateId" => (string) 参数配置模版id + * "MongosMachineTypeId" => (string) Mongos节点机型配置 + * "Labels" => (array) [ + * [ + * "Key" => (string) 用户资源标签的键值 + * "Value" => (string) 用户资源标签值 + * ] + * ] + * "SecGroupId" => (array) [ + * [ + * "Id" => (string) 安全组 ID。至多可以同时绑定5个安全组。 + * "Priority" => (integer) 安全组优先级。取值范围[1, 5] + * ] + * ] + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return CreateUMongoDBShardedClusterResponse + * @throws UCloudException + */ + public function createUMongoDBShardedCluster(CreateUMongoDBShardedClusterRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateUMongoDBShardedClusterResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeUMongoDBBackupURL - 获取实例备份下载链接 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/describe_umon_go_db_backup_url + * + * 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) + * "ClusterId" => (string) 集群ID + * "BackupId" => (string) 文件备份ID + * "PackageId" => (integer) 打包ID + * "ValidTime" => (integer) 备份链接过期时间(单位秒) + * "Category" => (string) 类型:如 oplog + * ] + * + * Outputs: + * + * $outputs = [ + * "InternetAddress" => (string) 备份文件公网地址 + * "IntranetAddress" => (string) 备份文件内网地址 + * ] + * + * @return DescribeUMongoDBBackupURLResponse + * @throws UCloudException + */ + public function describeUMongoDBBackupURL(DescribeUMongoDBBackupURLRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUMongoDBBackupURLResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeUMongoDBInstance - 描述MongoDB实例 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/describe_umon_go_db_instance + * + * 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) + * "ClusterId" => (string) 实例资源ID + * "ClusterType" => (string) 集群类型,ReplicaSet:副本集,SharedCluster:分片集群 + * ] + * + * Outputs: + * + * $outputs = [ + * "ClusterInfo" => (object) 副本集信息[ + * "Zone" => (string) 可用区 + * "ZoneId" => (integer) + * "ClusterType" => (string) 集群类型,ReplicaSet :副本集,SharedCluster:分片集 + * "ClusterId" => (string) 集群ID + * "InstanceName" => (string) 实例名称 + * "State" => (string) 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败,Upgrading: 升降级中,UpgradeFailed: 升降级失败,Switching:主备切换中,UpdatingSSL:修改SSL中,UpdateSSLFail:修改SSL失败 + * "DBVersion" => (string) 副本集的Mongodb的版本 + * "DiskSpace" => (integer) 磁盘空间(GB), 默认根据配置机型 + * "MachineTypeId" => (string) 计算规格 + * "CreateTime" => (integer) DB实例创建时间 + * "ConfigReplicaInfo" => (object) ConfigSrv信息[ + * "ReplicaId" => (string) 副本集ID + * "ClusterId" => (string) 集群ID + * "ReplicaType" => (string) 副本类型,ConfigRepl或者DataRepl + * "State" => (string) 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + * "MachineType" => (string) 机器类型 + * "MachineTypeId" => (string) 机器类型Id + * "IsolationGroupId" => (string) 隔离组ID + * "NodeInfos" => (array) 副本集下的节点信息[ + * [ + * "Zone" => (string) 可用区 + * "ZoneId" => (integer) 可用区ID + * "NodeId" => (string) 节点ID + * "NodeRole" => (string) 节点角色,Primary/Secondary/Arbiter/Startup等等 + * "NodeType" => (string) 节点类型 + * "State" => (string) 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + * "DBVersion" => (string) 副本集的Mongodb的版本 + * "ClusterId" => (string) 节点所属副本集ID + * "VirtualClusterId" => (string) 虚拟节点ID + * "MachineType" => (string) 机型信息 + * "MachineTypeId" => (string) 机型信息ID + * "CreateTime" => (integer) DB实例创建时间 + * "DataDisk" => (object) 数据盘信息[ + * "DiskId" => (string) 磁盘id + * "DiskSize" => (integer) 磁盘容量单位GB + * ] + * "SysDisk" => (object) 系统盘信息[ + * "DiskId" => (string) 磁盘id + * "DiskSize" => (integer) 磁盘容量单位GB + * ] + * ] + * ] + * "NodeCount" => (integer) 副本集下的节点数量 + * "CreateTime" => (integer) 副本集创建时间 + * "DeleteTime" => (integer) 副本集删除时间 + * "ModifyTime" => (integer) 副本集修改时间 + * ] + * "DataReplicaInfos" => (array) 数据副本信息 [ + * [ + * "ReplicaId" => (string) 副本集ID + * "ClusterId" => (string) 集群ID + * "ReplicaType" => (string) 副本类型,ConfigRepl或者DataRepl + * "State" => (string) 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + * "MachineType" => (string) 机器类型 + * "MachineTypeId" => (string) 机器类型Id + * "IsolationGroupId" => (string) 隔离组ID + * "NodeInfos" => (array) 副本集下的节点信息[ + * [ + * "Zone" => (string) 可用区 + * "ZoneId" => (integer) 可用区ID + * "NodeId" => (string) 节点ID + * "NodeRole" => (string) 节点角色,Primary/Secondary/Arbiter/Startup等等 + * "NodeType" => (string) 节点类型 + * "State" => (string) 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + * "DBVersion" => (string) 副本集的Mongodb的版本 + * "ClusterId" => (string) 节点所属副本集ID + * "VirtualClusterId" => (string) 虚拟节点ID + * "MachineType" => (string) 机型信息 + * "MachineTypeId" => (string) 机型信息ID + * "CreateTime" => (integer) DB实例创建时间 + * "DataDisk" => (object) 数据盘信息[ + * "DiskId" => (string) 磁盘id + * "DiskSize" => (integer) 磁盘容量单位GB + * ] + * "SysDisk" => (object) 系统盘信息[ + * "DiskId" => (string) 磁盘id + * "DiskSize" => (integer) 磁盘容量单位GB + * ] + * ] + * ] + * "NodeCount" => (integer) 副本集下的节点数量 + * "CreateTime" => (integer) 副本集创建时间 + * "DeleteTime" => (integer) 副本集删除时间 + * "ModifyTime" => (integer) 副本集修改时间 + * ] + * ] + * "MongosInfo" => (array) Mongos节点信息[ + * [ + * "Zone" => (string) 可用区 + * "ZoneId" => (integer) 可用区ID + * "NodeId" => (string) 节点ID + * "NodeRole" => (string) 节点角色,Primary/Secondary/Arbiter/Startup等等 + * "NodeType" => (string) 节点类型 + * "State" => (string) 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败。 + * "DBVersion" => (string) 副本集的Mongodb的版本 + * "ClusterId" => (string) 节点所属副本集ID + * "VirtualClusterId" => (string) 虚拟节点ID + * "MachineType" => (string) 机型信息 + * "MachineTypeId" => (string) 机型信息ID + * "CreateTime" => (integer) DB实例创建时间 + * "DataDisk" => (object) 数据盘信息[ + * "DiskId" => (string) 磁盘id + * "DiskSize" => (integer) 磁盘容量单位GB + * ] + * "SysDisk" => (object) 系统盘信息[ + * "DiskId" => (string) 磁盘id + * "DiskSize" => (integer) 磁盘容量单位GB + * ] + * ] + * ] + * "ConnectURL" => (string) 副本集的访问地址 + * "DeleteTime" => (integer) DB实例删除时间 + * "SubnetId" => (string) 子网ID + * "VPCId" => (string) VPC的ID + * "ShardCount" => (integer) 分片数量,分片集有效 + * "ShardNodeCount" => (integer) 每分片节点数量,分片集有效 + * "MongosCount" => (integer) Mongos节点数量,分片集有效 + * "ConfigNodeCount" => (integer) Config配置集群节点数量,分片集有效 + * "ConfigMachineType" => (string) Config配置集群节点配置,分片集有效 + * "Tag" => (string) 实例业务组 + * "DataComputeType" => (object) 数据节点计算规格[ + * "MachineTypeId" => (string) 机器类型ID o.mongo2m.medium,o.mongo2m.xlarge + * "Description" => (string) 配置简称 2C4G + * "Cpu" => (integer) cpu核数 + * "Memory" => (integer) 内存用量(GB) + * "UHhostMachineType" => (string) 机器类型,N/O + * "Group" => (string) 配置分组,2m , 4m + * ] + * "ConfigComputeType" => (object) 配置节点计算规格[ + * "MachineTypeId" => (string) 机器类型ID o.mongo2m.medium,o.mongo2m.xlarge + * "Description" => (string) 配置简称 2C4G + * "Cpu" => (integer) cpu核数 + * "Memory" => (integer) 内存用量(GB) + * "UHhostMachineType" => (string) 机器类型,N/O + * "Group" => (string) 配置分组,2m , 4m + * ] + * "MongosComputeType" => (object) 路由节点计算规格[ + * "MachineTypeId" => (string) 机器类型ID o.mongo2m.medium,o.mongo2m.xlarge + * "Description" => (string) 配置简称 2C4G + * "Cpu" => (integer) cpu核数 + * "Memory" => (integer) 内存用量(GB) + * "UHhostMachineType" => (string) 机器类型,N/O + * "Group" => (string) 配置分组,2m , 4m + * ] + * "CrossZones" => (array) 跨用区列表 + * "EnableSSL" => (integer) 是否开启了SSL;1->未开启 2->开启 + * "SSLExpirationTime" => (integer) SSL到期时间 + * ] + * ] + * + * @return DescribeUMongoDBInstanceResponse + * @throws UCloudException + */ + public function describeUMongoDBInstance(DescribeUMongoDBInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUMongoDBInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetUMongoDBBackupParam - 获取实例备份策略 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/get_umon_go_db_backup_param + * + * 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) + * "ClusterId" => (string) 实例ID + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (object) 备份策略信息[ + * "ClusterId" => (string) 实例ID + * "AutoBackupToggleWeek" => (string) 自动备份预期周几 (1-7 表示 周一到周末,多个数据用','分割,eg: 3,7) + * "AutoBackupToggleTime" => (string) 自动备份预期时间范围 (24小时制,精确到分钟,00:00~23:59) + * "AutoBackupCopies" => (integer) 自动备份保存份数 + * "ManualBackupCopies" => (integer) 手动备份保存份数 + * "Disabled" => (boolean) 是否禁用(false:未禁用;true:禁用) + * ] + * ] + * + * @return GetUMongoDBBackupParamResponse + * @throws UCloudException + */ + public function getUMongoDBBackupParam(GetUMongoDBBackupParamRequest $request = null) + { + $resp = $this->invoke($request); + return new GetUMongoDBBackupParamResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetUMongoDBCfgTempItem - 获取配置模板内容 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/get_umon_go_db_cfg_temp_item + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "TemplateId" => (string) 配置模板Id + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 配置模板项[ + * [ + * "ItemId" => (string) itemId + * "TemplateId" => (string) 模板ID + * "ConfigName" => (string) 配置名称 + * "ConfigValue" => (string) 配置值 + * "CreateTime" => (integer) 创建时间 + * "ModifyTime" => (integer) 修改时间 + * "ConfigOption" => (object) 配置选项[ + * "MongodbVersion" => (string) mongo版本 + * "OptionName" => (string) 配置选项名 + * "OptionValueType" => (string) 配置选项类型 string,int,bool + * "OptionValues" => (string) 配置选项值范围 + * "OptionDefaultValue" => (string) 默认值 + * "IsDefaultOption" => (boolean) 是否为默认选项 + * "EnableModify" => (boolean) 是否可修改 + * "EnableDisplay" => (boolean) 是否前端展示 + * "ForceRestart" => (boolean) 是否需重启 + * "OptionFormatType" => (string) 选项值格式 + * "AllowedApplyType" => (string) 允许应用类型 + * "Description" => (string) 描述 + * ] + * "NodeType" => (string) 节点类型: DataNode:数据节点 | ConfigSrvNode:配置节点 | MongosNode:路由节点 + * ] + * ] + * ] + * + * @return GetUMongoDBCfgTempItemResponse + * @throws UCloudException + */ + public function getUMongoDBCfgTempItem(GetUMongoDBCfgTempItemRequest $request = null) + { + $resp = $this->invoke($request); + return new GetUMongoDBCfgTempItemResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetUMongoDBLog - 查询某一段时间内集群节点的错误日志或慢查询日志 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/get_umon_go_db_log + * + * 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) + * "ClusterId" => (string) 集群id + * "NodeId" => (string) 节点id, 慢日志 mongos 节点不可选 + * "Begin" => (integer) 查询的日志开始的时间戳(Unix Timestamp)。对于实时查询,这个参数应该是上次轮询请求时的时间戳,后台会返回从该值到当前时间的日志内容 + * "LogType" => (string) 日志类型:SlowLog,ErrorLog + * "End" => (integer) 查询日志的结束时间戳(Unix Timestamp),对于实时查询不传该值,与BeginTime的差值不超过24小时:(EndTime-BeginTime) < 24*60*60 + * ] + * + * Outputs: + * + * $outputs = [ + * "Log" => (string) 查询到的日志内容,一段纯文本 + * "MaxLine" => (integer) 支持的最大行数 + * "IsTruncate" => (boolean) 是否已被截断 + * ] + * + * @return GetUMongoDBLogResponse + * @throws UCloudException + */ + public function getUMongoDBLog(GetUMongoDBLogRequest $request = null) + { + $resp = $this->invoke($request); + return new GetUMongoDBLogResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetUMongoDBRecoverTimeRange - 获取UMongoDB可回档时间范围 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/get_umon_go_db_recover_time_range + * + * 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) + * "ClusterId" => (string) 集群id + * ] + * + * Outputs: + * + * $outputs = [ + * "EarliestTime" => (integer) 最早可回档时间点 + * "LatestTime" => (integer) 最晚可回档时间点 + * ] + * + * @return GetUMongoDBRecoverTimeRangeResponse + * @throws UCloudException + */ + public function getUMongoDBRecoverTimeRange(GetUMongoDBRecoverTimeRangeRequest $request = null) + { + $resp = $this->invoke($request); + return new GetUMongoDBRecoverTimeRangeResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUMongoDBBackup - 拉取实例备份列表 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_backup + * + * 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) + * "ClusterId" => (string) 实例ID + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 备份列表[ + * [ + * "Zone" => (string) 可用区 + * "BackupId" => (string) 备份ID + * "BackupName" => (string) 备份名称 + * "ClusterId" => (string) 实例ID + * "State" => (string) 备份状态 + * "BackupSize" => (integer) 备份数据大小 + * "BackupType" => (string) 备份类型 + * "StartTime" => (integer) 备份开始时间 + * "EndTime" => (integer) 备份结束时间 + * "VirtualClusterId" => (string) 虚拟节点id + * "ReplicaType" => (string) 副本类型,ConfigRepl或者DataRepl + * "BatchId" => (string) 批次id + * "DiskSize" => (integer) 磁盘大小 + * ] + * ] + * ] + * + * @return ListUMongoDBBackupResponse + * @throws UCloudException + */ + public function listUMongoDBBackup(ListUMongoDBBackupRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUMongoDBBackupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUMongoDBConfigTemplate - 拉取配置模板 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_config_template + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 配置模板列表[ + * [ + * "TemplateId" => (string) 模板ID + * "TemplateName" => (string) 模板名称 + * "MongodbVersion" => (string) mongo版本 + * "ClusterType" => (string) 集群类型 + * "TemplateType" => (string) 模板类型 UsersTemplate DefaultTemplate + * "CreateTime" => (integer) 创建时间 + * "ModifyTime" => (integer) 修改时间 + * "DeleteTime" => (integer) 删除时间 + * "Description" => (string) 模板描述 + * ] + * ] + * ] + * + * @return ListUMongoDBConfigTemplateResponse + * @throws UCloudException + */ + public function listUMongoDBConfigTemplate(ListUMongoDBConfigTemplateRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUMongoDBConfigTemplateResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUMongoDBInstances - 获取副本集/分片集群列表 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_instances + * + * 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) + * "ClusterId" => (string) 集群ID + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 副本集ID[ + * [ + * "Zone" => (string) 可用区 + * "ClusterId" => (string) 副本集/分片集群ID + * "Name" => (string) 副本集/分片集群实例名称 + * "DBVersion" => (string) 副本集/分片集群的Mongodb的版本,包括MongoDB-3.6, MongoDB-4.2 + * "ConnectURL" => (string) 副本集/分片集群的访问地址 + * "CreateTime" => (integer) 副本集/分片集群的创建时间 + * "ClusterType" => (string) 集群类型,ReplicaSet :副本集,SharedCluster:分片集 + * "State" => (string) 副本集/分片集群状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中,StartFailed:启动失败,Running:运行,Stopping:关闭中,Stopped:已关闭, StopFailed:关闭失败,Deleting:删除中,Deleted:已删除,DeleteFailed:删除失败,Restarting:重启中,RestartFailed:重启失败,Upgrading: 升降级中,UpgradeFailed: 升降级失败,Switching:主备切换中 + * "IPv6ConnectURL" => (string) 副本集/分片集IPv6访问地址 + * "ExpiredTime" => (integer) DB实例过期时间,采用UTC计时时间戳 + * "DataComputeType" => (object) 数据节点计算规格[ + * "MachineTypeId" => (string) 机器类型ID o.mongo2m.medium,o.mongo2m.xlarge + * "Description" => (string) 配置简称 2C4G + * "Cpu" => (integer) cpu核数 + * "Memory" => (integer) 内存用量(GB) + * "UHhostMachineType" => (string) 机器类型,N/O + * "Group" => (string) 配置分组,2m , 4m + * ] + * "VPCId" => (string) VPC的ID + * "SubnetId" => (string) 子网ID + * "DiskSpace" => (integer) 数据节点磁盘空间(GB) + * "Tag" => (string) 业务组 + * "CrossZones" => (array) 跨可用区列表 + * ] + * ] + * ] + * + * @return ListUMongoDBInstancesResponse + * @throws UCloudException + */ + public function listUMongoDBInstances(ListUMongoDBInstancesRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUMongoDBInstancesResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUMongoDBLogPackage - 日志打包列表 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_log_package + * + * 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) + * "ClusterId" => (string) 集群id + * "NodeId" => (string) 节点id + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 列表[ + * [ + * "Id" => (integer) id + * "Name" => (string) 名称 + * "State" => (string) Package_Running,Package_Success,Package_Failed,Package_Deleting,Package_Deleted,Package_DeleteFailed + * "Size" => (integer) 大小,单位字节 + * "PackageType" => (string) SlowLog,ErrorLog + * "ClusterId" => (string) 集群id + * "NodeId" => (string) 节点id + * "Role" => (string) 角色 + * "Begin" => (integer) 开始时间 + * "End" => (integer) 结束时间 + * "CreateTime" => (integer) 创建时间 + * "FinishTime" => (integer) 完成时间 + * ] + * ] + * ] + * + * @return ListUMongoDBLogPackageResponse + * @throws UCloudException + */ + public function listUMongoDBLogPackage(ListUMongoDBLogPackageRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUMongoDBLogPackageResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUMongoDBMachineSpec - 获取UMongoDB支持机器类型列表 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_machine_spec + * + * 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) + * "ClassType" => (string) 机型,如O + * "DiskType" => (string) 磁盘类型,如CLOUD_RSSD + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 规格列表[ + * [ + * "ClassType" => (string) 规格类型;O | N + * "DiskType" => (array) 磁盘类型;CLOUD_RSSD | CLOUD_SSD | LOCAL_SSD + * "ComputeType" => (array) 计算规格列表[ + * [ + * "MachineTypeId" => (string) 机器类型ID o.mongo2m.medium,o.mongo2m.xlarge + * "Description" => (string) 配置简称 2C4G + * "Cpu" => (integer) cpu核数 + * "Memory" => (integer) 内存用量(GB) + * "UHhostMachineType" => (string) 机器类型,N/O + * "Group" => (string) 配置分组,2m , 4m + * ] + * ] + * "DefaultMachineType" => (object) 默认规格[ + * "MachineTypeId" => (string) 机器类型ID o.mongo2m.medium,o.mongo2m.xlarge + * "Description" => (string) 配置简称 2C4G + * "Cpu" => (integer) cpu核数 + * "Memory" => (integer) 内存用量(GB) + * "UHhostMachineType" => (string) 机器类型,N/O + * "Group" => (string) 配置分组,2m , 4m + * ] + * ] + * ] + * ] + * + * @return ListUMongoDBMachineSpecResponse + * @throws UCloudException + */ + public function listUMongoDBMachineSpec(ListUMongoDBMachineSpecRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUMongoDBMachineSpecResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUMongoDBMachineType - 获取UmongDB支持机器类型列表 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_machine_type + * + * 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) + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) [ + * [ + * "MachineTypeId" => (string) 机器类型ID o.mongo2m.medium,o.mongo2m.xlarge + * "Description" => (string) 配置简称 2C4G + * "Cpu" => (integer) cpu核数 + * "Memory" => (integer) 内存用量(GB) + * "UHhostMachineType" => (string) 机器类型,N/O + * "Group" => (string) 配置分组,2m , 4m + * ] + * ] + * ] + * + * @return ListUMongoDBMachineTypeResponse + * @throws UCloudException + */ + public function listUMongoDBMachineType(ListUMongoDBMachineTypeRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUMongoDBMachineTypeResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUMongoDBVersion - 获取UMongoDB支持版本列表 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/list_umon_go_db_version + * + * 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) + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) [ + * [ + * "DBVersion" => (string) MongoDB版本 + * ] + * ] + * ] + * + * @return ListUMongoDBVersionResponse + * @throws UCloudException + */ + public function listUMongoDBVersion(ListUMongoDBVersionRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUMongoDBVersionResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ModifyUMongoDBAdminPassword - 修改MongoDB集群root密码 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/modify_umon_go_db_admin_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) + * "ClusterId" => (string) 集群ID + * "Password" => (string) 集群新密码(密码格式使用BASE64编码) + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ModifyUMongoDBAdminPasswordResponse + * @throws UCloudException + */ + public function modifyUMongoDBAdminPassword(ModifyUMongoDBAdminPasswordRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyUMongoDBAdminPasswordResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ModifyUMongoDBAttribute - 修改MongoDB集群名称 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/modify_umon_go_db_attribute + * + * 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) + * "ClusterId" => (string) 集群id + * "Name" => (string) 集群新名称(输入长度为6~63位名称) + * "RemarkName" => (string) 集群备注(Name和RemarkName必传其一) + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ModifyUMongoDBAttributeResponse + * @throws UCloudException + */ + public function modifyUMongoDBAttribute(ModifyUMongoDBAttributeRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyUMongoDBAttributeResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ModifyUMongoDBBackupParam - 修改实例备份策略 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/modify_umon_go_db_backup_param + * + * 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) + * "ClusterId" => (string) 实例ID + * "AutoBackupToggleWeek" => (string) 自动备份预期星期几(1~7),默认 3,7 (周三,周日) + * "AutoBackupToggleTime" => (string) 自动备份预期开始时间范围(00:00~23:59),默认 5:00~6:00 + * "Disabled" => (boolean) 是否禁用,true:禁用;false:开启 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ModifyUMongoDBBackupParamResponse + * @throws UCloudException + */ + public function modifyUMongoDBBackupParam(ModifyUMongoDBBackupParamRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyUMongoDBBackupParamResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ResizeUMongoDBInstance - 集群配置升降级 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/resize_umon_go_db_instance + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ClusterId" => (string) 集群资源ID + * "DiskSpace" => (integer) 集群数据节点磁盘配置 + * "MachineTypeId" => (string) 集群数据节点机型配置 + * "MongosMachineTypeId" => (string) 集群Mongos节点机型配置 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return ResizeUMongoDBInstanceResponse + * @throws UCloudException + */ + public function resizeUMongoDBInstance(ResizeUMongoDBInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new ResizeUMongoDBInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * RestartUMongoDBCluster - 重启集群 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/restart_umon_go_db_cluster + * + * 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) + * "ClusterId" => (string) 集群ID + * ] + * + * Outputs: + * + * $outputs = [ + * "ClusterId" => (string) 集群ID + * ] + * + * @return RestartUMongoDBClusterResponse + * @throws UCloudException + */ + public function restartUMongoDBCluster(RestartUMongoDBClusterRequest $request = null) + { + $resp = $this->invoke($request); + return new RestartUMongoDBClusterResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * StartUMongoDBCluster - 启动集群 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/start_umon_go_db_cluster + * + * 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) + * "ClusterId" => (string) 集群ID + * ] + * + * Outputs: + * + * $outputs = [ + * "ClusterId" => (string) 集群ID + * ] + * + * @return StartUMongoDBClusterResponse + * @throws UCloudException + */ + public function startUMongoDBCluster(StartUMongoDBClusterRequest $request = null) + { + $resp = $this->invoke($request); + return new StartUMongoDBClusterResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * StopUMongoDBCluster - 停止集群 + * + * See also: https://docs.ucloud.cn/api/umongodb-api/stop_umon_go_db_cluster + * + * 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) + * "ClusterId" => (string) 集群ID + * ] + * + * Outputs: + * + * $outputs = [ + * "ClusterId" => (string) 集群ID + * ] + * + * @return StopUMongoDBClusterResponse + * @throws UCloudException + */ + public function stopUMongoDBCluster(StopUMongoDBClusterRequest $request = null) + { + $resp = $this->invoke($request); + return new StopUMongoDBClusterResponse($resp->toArray(), $resp->getRequestId()); + } +}