diff --git a/VERSION b/VERSION index 9e29e10..ec96a62 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.15 +0.3.16 diff --git a/src/UHadoop/Apis/AddUHadoopInstanceNodeRequest.php b/src/UHadoop/Apis/AddUHadoopInstanceNodeRequest.php new file mode 100644 index 0000000..9048100 --- /dev/null +++ b/src/UHadoop/Apis/AddUHadoopInstanceNodeRequest.php @@ -0,0 +1,293 @@ + "AddUHadoopInstanceNode"]); + $this->markRequired("Region"); + $this->markRequired("NodeRole"); + $this->markRequired("NodeType"); + $this->markRequired("InstanceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * 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); + } + + /** + * NodeRole: 节点的角色,值为task|core|client之一 + * + * @return string|null + */ + public function getNodeRole() + { + return $this->get("NodeRole"); + } + + /** + * NodeRole: 节点的角色,值为task|core|client之一 + * + * @param string $nodeRole + */ + public function setNodeRole($nodeRole) + { + $this->set("NodeRole", $nodeRole); + } + + /** + * NodeType: 机型,如:o.hadoop2m.medium,可从GetUHadoopNodeType接口获取 + * + * @return string|null + */ + public function getNodeType() + { + return $this->get("NodeType"); + } + + /** + * NodeType: 机型,如:o.hadoop2m.medium,可从GetUHadoopNodeType接口获取 + * + * @param string $nodeType + */ + public function setNodeType($nodeType) + { + $this->set("NodeType", $nodeType); + } + + /** + * InstanceId: 实例ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 实例ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * DataDiskNum: 数据盘数量,非裸金属机型时必填 + * + * @return string|null + */ + public function getDataDiskNum() + { + return $this->get("DataDiskNum"); + } + + /** + * DataDiskNum: 数据盘数量,非裸金属机型时必填 + * + * @param string $dataDiskNum + */ + public function setDataDiskNum($dataDiskNum) + { + $this->set("DataDiskNum", $dataDiskNum); + } + + /** + * Password: 密码,NodeRole为client时必填 + * + * @return string|null + */ + public function getPassword() + { + return $this->get("Password"); + } + + /** + * Password: 密码,NodeRole为client时必填 + * + * @param string $password + */ + public function setPassword($password) + { + $this->set("Password", $password); + } + + /** + * BootDiskSize: 系统盘容量,非裸金属机型必填 + * + * @return string|null + */ + public function getBootDiskSize() + { + return $this->get("BootDiskSize"); + } + + /** + * BootDiskSize: 系统盘容量,非裸金属机型必填 + * + * @param string $bootDiskSize + */ + public function setBootDiskSize($bootDiskSize) + { + $this->set("BootDiskSize", $bootDiskSize); + } + + /** + * BootDiskType: 系统盘类型,非裸金属机型必填,例如:CLOUD_RSSD + * + * @return string|null + */ + public function getBootDiskType() + { + return $this->get("BootDiskType"); + } + + /** + * BootDiskType: 系统盘类型,非裸金属机型必填,例如:CLOUD_RSSD + * + * @param string $bootDiskType + */ + public function setBootDiskType($bootDiskType) + { + $this->set("BootDiskType", $bootDiskType); + } + + /** + * DataDiskSize: 数据盘容量,非裸金属机型必填 + * + * @return string|null + */ + public function getDataDiskSize() + { + return $this->get("DataDiskSize"); + } + + /** + * DataDiskSize: 数据盘容量,非裸金属机型必填 + * + * @param string $dataDiskSize + */ + public function setDataDiskSize($dataDiskSize) + { + $this->set("DataDiskSize", $dataDiskSize); + } + + /** + * DataDiskType: 数据盘类型,非裸金属机型必填,例如:CLOUD_RSSD + * + * @return string|null + */ + public function getDataDiskType() + { + return $this->get("DataDiskType"); + } + + /** + * DataDiskType: 数据盘类型,非裸金属机型必填,例如:CLOUD_RSSD + * + * @param string $dataDiskType + */ + public function setDataDiskType($dataDiskType) + { + $this->set("DataDiskType", $dataDiskType); + } + + /** + * NodeCount: 节点数量,默认为1 + * + * @return integer|null + */ + public function getNodeCount() + { + return $this->get("NodeCount"); + } + + /** + * NodeCount: 节点数量,默认为1 + * + * @param int $nodeCount + */ + public function setNodeCount($nodeCount) + { + $this->set("NodeCount", $nodeCount); + } +} diff --git a/src/UHadoop/Apis/AddUHadoopInstanceNodeResponse.php b/src/UHadoop/Apis/AddUHadoopInstanceNodeResponse.php new file mode 100644 index 0000000..4a3920e --- /dev/null +++ b/src/UHadoop/Apis/AddUHadoopInstanceNodeResponse.php @@ -0,0 +1,26 @@ + "CreateUHadoopInstance"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("Password"); + $this->markRequired("FrameworkVersion"); + $this->markRequired("InstanceGroupConfigs"); + $this->markRequired("VPCId"); + $this->markRequired("SubnetId"); + $this->markRequired("AppConfig"); + $this->markRequired("Framework"); + } + + + + /** + * 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); + } + + /** + * Password: 集群机器的登录密码 + * + * @return string|null + */ + public function getPassword() + { + return $this->get("Password"); + } + + /** + * Password: 集群机器的登录密码 + * + * @param string $password + */ + public function setPassword($password) + { + $this->set("Password", $password); + } + + /** + * FrameworkVersion: 版本,例如:3.2.1-udh3.0,通过ListUHadoopFrameworkApp接口获取 + * + * @return string|null + */ + public function getFrameworkVersion() + { + return $this->get("FrameworkVersion"); + } + + /** + * FrameworkVersion: 版本,例如:3.2.1-udh3.0,通过ListUHadoopFrameworkApp接口获取 + * + * @param string $frameworkVersion + */ + public function setFrameworkVersion($frameworkVersion) + { + $this->set("FrameworkVersion", $frameworkVersion); + } + + /** + * InstanceGroupConfigs: 节点配置,里面包括NodeType(机型),NodeRole(节点类别,值为其中之一:master|core|task),Count(数量),DataDiskType(数据盘类别),DataDiskSize(数据盘大小),DataDiskNum(数据盘数量),BootDiskType(系统盘类型),BootDiskSize(系统盘大小),通过GetUHadoopNodeType接口获取,示例为:InstanceGroupConfigs.0.NodeType=o.hadoop2m.xlargeInstanceGroupConfigs.0.NodeRole=masterInstanceGroupConfigs.0.Count=2InstanceGroupConfigs.0.DataDiskType=CLOUD_RSSDInstanceGroupConfigs.0.DataDiskSize=100InstanceGroupConfigs.0.DataDiskNum=1InstanceGroupConfigs.0.BootDiskType=CLOUD_RSSDInstanceGroupConfigs.0.BootDiskSize=50InstanceGroupConfigs.1.NodeType=o.hadoop2m.xlargeInstanceGroupConfigs.1.NodeRole=coreInstanceGroupConfigs.1.Count=3InstanceGroupConfigs.1.DataDiskType=CLOUD_RSSDInstanceGroupConfigs.1.DataDiskSize=200InstanceGroupConfigs.1.DataDiskNum=1InstanceGroupConfigs.1.BootDiskType=CLOUD_RSSDInstanceGroupConfigs.1.BootDiskSize=50 + * + * @return string[]|null + */ + public function getInstanceGroupConfigs() + { + return $this->get("InstanceGroupConfigs"); + } + + /** + * InstanceGroupConfigs: 节点配置,里面包括NodeType(机型),NodeRole(节点类别,值为其中之一:master|core|task),Count(数量),DataDiskType(数据盘类别),DataDiskSize(数据盘大小),DataDiskNum(数据盘数量),BootDiskType(系统盘类型),BootDiskSize(系统盘大小),通过GetUHadoopNodeType接口获取,示例为:InstanceGroupConfigs.0.NodeType=o.hadoop2m.xlargeInstanceGroupConfigs.0.NodeRole=masterInstanceGroupConfigs.0.Count=2InstanceGroupConfigs.0.DataDiskType=CLOUD_RSSDInstanceGroupConfigs.0.DataDiskSize=100InstanceGroupConfigs.0.DataDiskNum=1InstanceGroupConfigs.0.BootDiskType=CLOUD_RSSDInstanceGroupConfigs.0.BootDiskSize=50InstanceGroupConfigs.1.NodeType=o.hadoop2m.xlargeInstanceGroupConfigs.1.NodeRole=coreInstanceGroupConfigs.1.Count=3InstanceGroupConfigs.1.DataDiskType=CLOUD_RSSDInstanceGroupConfigs.1.DataDiskSize=200InstanceGroupConfigs.1.DataDiskNum=1InstanceGroupConfigs.1.BootDiskType=CLOUD_RSSDInstanceGroupConfigs.1.BootDiskSize=50 + * + * @param string[] $instanceGroupConfigs + */ + public function setInstanceGroupConfigs(array $instanceGroupConfigs) + { + $this->set("InstanceGroupConfigs", $instanceGroupConfigs); + } + + /** + * VPCId: VPCId + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: VPCId + * + * @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); + } + + /** + * AppConfig: 集群需要安装的组件,格式:组件#版本通过ListUHadoopFrameworkApp接口获取,例如:Spark#3.3.0 + * + * @return string[]|null + */ + public function getAppConfig() + { + return $this->get("AppConfig"); + } + + /** + * AppConfig: 集群需要安装的组件,格式:组件#版本通过ListUHadoopFrameworkApp接口获取,例如:Spark#3.3.0 + * + * @param string[] $appConfig + */ + public function setAppConfig(array $appConfig) + { + $this->set("AppConfig", $appConfig); + } + + /** + * Framework: 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,框架,例如Hadoop|MR|HDFS|StarRocks Hadoop框架包含存储与计算服务 MR集群包含计算服务 HDFS只包含存储服务,StarRocks为StarRocks集群 + * + * @return string|null + */ + public function getFramework() + { + return $this->get("Framework"); + } + + /** + * Framework: 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,框架,例如Hadoop|MR|HDFS|StarRocks Hadoop框架包含存储与计算服务 MR集群包含计算服务 HDFS只包含存储服务,StarRocks为StarRocks集群 + * + * @param string $framework + */ + public function setFramework($framework) + { + $this->set("Framework", $framework); + } + + /** + * ChargeType: 支付类别,默认:Month + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 支付类别,默认: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); + } + + /** + * BusinessId: 工作组ID,默认Default + * + * @return string|null + */ + public function getBusinessId() + { + return $this->get("BusinessId"); + } + + /** + * BusinessId: 工作组ID,默认Default + * + * @param string $businessId + */ + public function setBusinessId($businessId) + { + $this->set("BusinessId", $businessId); + } + + /** + * StorgeClusterId: Framework为‘MR’时,存储集群ID + * + * @return string|null + */ + public function getStorgeClusterId() + { + return $this->get("StorgeClusterId"); + } + + /** + * StorgeClusterId: Framework为‘MR’时,存储集群ID + * + * @param string $storgeClusterId + */ + public function setStorgeClusterId($storgeClusterId) + { + $this->set("StorgeClusterId", $storgeClusterId); + } + + /** + * StandAloneMetaStore: 目前只支持传‘udb’ + * + * @return string|null + */ + public function getStandAloneMetaStore() + { + return $this->get("StandAloneMetaStore"); + } + + /** + * StandAloneMetaStore: 目前只支持传‘udb’ + * + * @param string $standAloneMetaStore + */ + public function setStandAloneMetaStore($standAloneMetaStore) + { + $this->set("StandAloneMetaStore", $standAloneMetaStore); + } + + /** + * IsSecurityEnabled: 是否开启安全组 + * + * @return string|null + */ + public function getIsSecurityEnabled() + { + return $this->get("IsSecurityEnabled"); + } + + /** + * IsSecurityEnabled: 是否开启安全组 + * + * @param string $isSecurityEnabled + */ + public function setIsSecurityEnabled($isSecurityEnabled) + { + $this->set("IsSecurityEnabled", $isSecurityEnabled); + } + + /** + * SecGroupIds: 安全组ID,字符串数组,IsSecurityEnabled为true时生效 + * + * @return string|null + */ + public function getSecGroupIds() + { + return $this->get("SecGroupIds"); + } + + /** + * SecGroupIds: 安全组ID,字符串数组,IsSecurityEnabled为true时生效 + * + * @param string $secGroupIds + */ + public function setSecGroupIds($secGroupIds) + { + $this->set("SecGroupIds", $secGroupIds); + } + + /** + * US3Bucket: US3 bucket名称,仅支持框架为StarRocks存算分离时传入 + * + * @return string|null + */ + public function getUS3Bucket() + { + return $this->get("US3Bucket"); + } + + /** + * US3Bucket: US3 bucket名称,仅支持框架为StarRocks存算分离时传入 + * + * @param string $us3Bucket + */ + public function setUS3Bucket($us3Bucket) + { + $this->set("US3Bucket", $us3Bucket); + } + + /** + * US3AccessKey: US3 配置公钥,仅支持框架为StarRocks存算分离时传入 + * + * @return string|null + */ + public function getUS3AccessKey() + { + return $this->get("US3AccessKey"); + } + + /** + * US3AccessKey: US3 配置公钥,仅支持框架为StarRocks存算分离时传入 + * + * @param string $us3AccessKey + */ + public function setUS3AccessKey($us3AccessKey) + { + $this->set("US3AccessKey", $us3AccessKey); + } + + /** + * US3SecretKey: US3 配置私钥,仅支持框架为StarRocks存算分离时传入 + * + * @return string|null + */ + public function getUS3SecretKey() + { + return $this->get("US3SecretKey"); + } + + /** + * US3SecretKey: US3 配置私钥,仅支持框架为StarRocks存算分离时传入 + * + * @param string $us3SecretKey + */ + public function setUS3SecretKey($us3SecretKey) + { + $this->set("US3SecretKey", $us3SecretKey); + } + + /** + * US3TokenName: US3 Token名称,仅支持框架为StarRocks存算分离时传入 + * + * @return string|null + */ + public function getUS3TokenName() + { + return $this->get("US3TokenName"); + } + + /** + * US3TokenName: US3 Token名称,仅支持框架为StarRocks存算分离时传入 + * + * @param string $us3TokenName + */ + public function setUS3TokenName($us3TokenName) + { + $this->set("US3TokenName", $us3TokenName); + } + + /** + * InstanceName: 实例名称,默认为实例ID + * + * @return string|null + */ + public function getInstanceName() + { + return $this->get("InstanceName"); + } + + /** + * InstanceName: 实例名称,默认为实例ID + * + * @param string $instanceName + */ + public function setInstanceName($instanceName) + { + $this->set("InstanceName", $instanceName); + } +} diff --git a/src/UHadoop/Apis/CreateUHadoopInstanceResponse.php b/src/UHadoop/Apis/CreateUHadoopInstanceResponse.php new file mode 100644 index 0000000..6d39c61 --- /dev/null +++ b/src/UHadoop/Apis/CreateUHadoopInstanceResponse.php @@ -0,0 +1,44 @@ +get("InstanceId"); + } + + /** + * InstanceId: 实例ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } +} diff --git a/src/UHadoop/Apis/DeleteUHadoopInstanceRequest.php b/src/UHadoop/Apis/DeleteUHadoopInstanceRequest.php new file mode 100644 index 0000000..57cff02 --- /dev/null +++ b/src/UHadoop/Apis/DeleteUHadoopInstanceRequest.php @@ -0,0 +1,132 @@ + "DeleteUHadoopInstance"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("InstanceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * 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); + } + + /** + * InstanceId: 实例ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 实例ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * ReleaseEIP: 是否释放绑定的EIP。true: 解绑EIP后,并释放;其他值或不填:解绑EIP。 + * + * @return boolean|null + */ + public function getReleaseEIP() + { + return $this->get("ReleaseEIP"); + } + + /** + * ReleaseEIP: 是否释放绑定的EIP。true: 解绑EIP后,并释放;其他值或不填:解绑EIP。 + * + * @param boolean $releaseEIP + */ + public function setReleaseEIP($releaseEIP) + { + $this->set("ReleaseEIP", $releaseEIP); + } +} diff --git a/src/UHadoop/Apis/DeleteUHadoopInstanceResponse.php b/src/UHadoop/Apis/DeleteUHadoopInstanceResponse.php new file mode 100644 index 0000000..4b849cd --- /dev/null +++ b/src/UHadoop/Apis/DeleteUHadoopInstanceResponse.php @@ -0,0 +1,26 @@ + "DescribeUHadoopInstance"]); + $this->markRequired("Region"); + $this->markRequired("InstanceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * 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); + } + + /** + * InstanceId: 实例ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 实例ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * VPCId: VPCID + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: VPCID + * + * @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); + } +} diff --git a/src/UHadoop/Apis/DescribeUHadoopInstanceResponse.php b/src/UHadoop/Apis/DescribeUHadoopInstanceResponse.php new file mode 100644 index 0000000..a9e9758 --- /dev/null +++ b/src/UHadoop/Apis/DescribeUHadoopInstanceResponse.php @@ -0,0 +1,57 @@ +get("ClusterSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ClusterInfo($item)); + } + return $result; + } + + /** + * ClusterSet: 集群信息 + * + * @param ClusterInfo[] $clusterSet + */ + public function setClusterSet(array $clusterSet) + { + $result = []; + foreach ($clusterSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UHadoop/Apis/GetUHadoopNodeTypeRequest.php b/src/UHadoop/Apis/GetUHadoopNodeTypeRequest.php new file mode 100644 index 0000000..3e09963 --- /dev/null +++ b/src/UHadoop/Apis/GetUHadoopNodeTypeRequest.php @@ -0,0 +1,151 @@ + "GetUHadoopNodeType"]); + $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); + } + + /** + * FrameworkVersion: 框架版本,例如3.2.1-udh3.0,通过ListUHadoopFrameworkApp接口获取 + * + * @return string|null + */ + public function getFrameworkVersion() + { + return $this->get("FrameworkVersion"); + } + + /** + * FrameworkVersion: 框架版本,例如3.2.1-udh3.0,通过ListUHadoopFrameworkApp接口获取 + * + * @param string $frameworkVersion + */ + public function setFrameworkVersion($frameworkVersion) + { + $this->set("FrameworkVersion", $frameworkVersion); + } + + /** + * NodeRole: 角色,master|core|task + * + * @return string|null + */ + public function getNodeRole() + { + return $this->get("NodeRole"); + } + + /** + * NodeRole: 角色,master|core|task + * + * @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); + } + + /** + * Framework: 框架,例如Hadoop|MR|HDFS|StarRocks,Hadoop框架包含存储与计算服务,MR集群包含计算服务,HDFS只包含存储服务,StarRocks为StarRocks集群 + * + * @return string|null + */ + public function getFramework() + { + return $this->get("Framework"); + } + + /** + * Framework: 框架,例如Hadoop|MR|HDFS|StarRocks,Hadoop框架包含存储与计算服务,MR集群包含计算服务,HDFS只包含存储服务,StarRocks为StarRocks集群 + * + * @param string $framework + */ + public function setFramework($framework) + { + $this->set("Framework", $framework); + } +} diff --git a/src/UHadoop/Apis/GetUHadoopNodeTypeResponse.php b/src/UHadoop/Apis/GetUHadoopNodeTypeResponse.php new file mode 100644 index 0000000..dfdbd98 --- /dev/null +++ b/src/UHadoop/Apis/GetUHadoopNodeTypeResponse.php @@ -0,0 +1,98 @@ +get("InstanceTypeSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new InstanceType($item)); + } + return $result; + } + + /** + * InstanceTypeSet: 类型信息 + * + * @param InstanceType[] $instanceTypeSet + */ + public function setInstanceTypeSet(array $instanceTypeSet) + { + $result = []; + foreach ($instanceTypeSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * MetaDataUDBUsable: 当前可用区是否支持元数据库使用UDB + * + * @return boolean|null + */ + public function getMetaDataUDBUsable() + { + return $this->get("MetaDataUDBUsable"); + } + + /** + * MetaDataUDBUsable: 当前可用区是否支持元数据库使用UDB + * + * @param boolean $metaDataUDBUsable + */ + public function setMetaDataUDBUsable($metaDataUDBUsable) + { + $this->set("MetaDataUDBUsable", $metaDataUDBUsable); + } + + /** + * HostTypeSupportNodeType: 机型可支持的节点类型 + * + * @return string|null + */ + public function getHostTypeSupportNodeType() + { + return $this->get("HostTypeSupportNodeType"); + } + + /** + * HostTypeSupportNodeType: 机型可支持的节点类型 + * + * @param string $hostTypeSupportNodeType + */ + public function setHostTypeSupportNodeType($hostTypeSupportNodeType) + { + $this->set("HostTypeSupportNodeType", $hostTypeSupportNodeType); + } +} diff --git a/src/UHadoop/Apis/ListUHadoopFrameworkAppByUseCaseRequest.php b/src/UHadoop/Apis/ListUHadoopFrameworkAppByUseCaseRequest.php new file mode 100644 index 0000000..3f8befb --- /dev/null +++ b/src/UHadoop/Apis/ListUHadoopFrameworkAppByUseCaseRequest.php @@ -0,0 +1,91 @@ + "ListUHadoopFrameworkAppByUseCase"]); + $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/UHadoop/Apis/ListUHadoopFrameworkAppByUseCaseResponse.php b/src/UHadoop/Apis/ListUHadoopFrameworkAppByUseCaseResponse.php new file mode 100644 index 0000000..ef241f7 --- /dev/null +++ b/src/UHadoop/Apis/ListUHadoopFrameworkAppByUseCaseResponse.php @@ -0,0 +1,58 @@ +get("AppConfigSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new AppConfigVersion($item)); + } + return $result; + } + + /** + * AppConfigSet: 使用场景的app版本信息 + * + * @param AppConfigVersion[] $appConfigSet + */ + public function setAppConfigSet(array $appConfigSet) + { + $result = []; + foreach ($appConfigSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UHadoop/Apis/ListUHadoopFrameworkAppRequest.php b/src/UHadoop/Apis/ListUHadoopFrameworkAppRequest.php new file mode 100644 index 0000000..b8347a4 --- /dev/null +++ b/src/UHadoop/Apis/ListUHadoopFrameworkAppRequest.php @@ -0,0 +1,132 @@ + "ListUHadoopFrameworkApp"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("Framework"); + } + + + + /** + * 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); + } + + /** + * Framework: 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,框架,例如Hadoop|MR|HDFS|StarRocks Hadoop框架包含存储与计算服务 MR集群包含计算服务 HDFS只包含存储服务,StarRocks为StarRocks集群 + * + * @return string|null + */ + public function getFramework() + { + return $this->get("Framework"); + } + + /** + * Framework: 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,框架,例如Hadoop|MR|HDFS|StarRocks Hadoop框架包含存储与计算服务 MR集群包含计算服务 HDFS只包含存储服务,StarRocks为StarRocks集群 + * + * @param string $framework + */ + public function setFramework($framework) + { + $this->set("Framework", $framework); + } + + /** + * InstanceId: 实例ID,可选。传的话,过滤出适合此集群的app信息。 + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 实例ID,可选。传的话,过滤出适合此集群的app信息。 + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } +} diff --git a/src/UHadoop/Apis/ListUHadoopFrameworkAppResponse.php b/src/UHadoop/Apis/ListUHadoopFrameworkAppResponse.php new file mode 100644 index 0000000..667db0f --- /dev/null +++ b/src/UHadoop/Apis/ListUHadoopFrameworkAppResponse.php @@ -0,0 +1,57 @@ +get("AppConfigSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new AppConfig($item)); + } + return $result; + } + + /** + * AppConfigSet: 应用配置详情 + * + * @param AppConfig[] $appConfigSet + */ + public function setAppConfigSet(array $appConfigSet) + { + $result = []; + foreach ($appConfigSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UHadoop/Apis/ListUHadoopInstanceRequest.php b/src/UHadoop/Apis/ListUHadoopInstanceRequest.php new file mode 100644 index 0000000..f19463e --- /dev/null +++ b/src/UHadoop/Apis/ListUHadoopInstanceRequest.php @@ -0,0 +1,130 @@ + "ListUHadoopInstance"]); + $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); + } + + /** + * Limit: 获取列表的长度限制,默认值为60 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 获取列表的长度限制,默认值为60 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } + + /** + * Offset: 获取列表的偏移,默认值为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 获取列表的偏移,默认值为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } +} diff --git a/src/UHadoop/Apis/ListUHadoopInstanceResponse.php b/src/UHadoop/Apis/ListUHadoopInstanceResponse.php new file mode 100644 index 0000000..f460070 --- /dev/null +++ b/src/UHadoop/Apis/ListUHadoopInstanceResponse.php @@ -0,0 +1,77 @@ +get("ClusterSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ListClusterInfo($item)); + } + return $result; + } + + /** + * ClusterSet: 集群信息集合 + * + * @param ListClusterInfo[] $clusterSet + */ + public function setClusterSet(array $clusterSet) + { + $result = []; + foreach ($clusterSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * TotalCount: 总数 + * + * @return integer|null + */ + public function getTotalCount() + { + return $this->get("TotalCount"); + } + + /** + * TotalCount: 总数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } +} diff --git a/src/UHadoop/Apis/RestartUHadoopServiceRequest.php b/src/UHadoop/Apis/RestartUHadoopServiceRequest.php new file mode 100644 index 0000000..6019149 --- /dev/null +++ b/src/UHadoop/Apis/RestartUHadoopServiceRequest.php @@ -0,0 +1,233 @@ + "RestartUHadoopService"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("ServiceName"); + $this->markRequired("InstanceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * 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); + } + + /** + * ServiceName: 要操作的服务名。可通过ListUHadoopFrameworkApp接口获取 + * + * @return string|null + */ + public function getServiceName() + { + return $this->get("ServiceName"); + } + + /** + * ServiceName: 要操作的服务名。可通过ListUHadoopFrameworkApp接口获取 + * + * @param string $serviceName + */ + public function setServiceName($serviceName) + { + $this->set("ServiceName", $serviceName); + } + + /** + * InstanceId: 实例ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 实例ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * ApplicationVersion: 应用版本,ApplicationVersion传参时,表示这次操作是整个应用所有服务。 + * + * @return string|null + */ + public function getApplicationVersion() + { + return $this->get("ApplicationVersion"); + } + + /** + * ApplicationVersion: 应用版本,ApplicationVersion传参时,表示这次操作是整个应用所有服务。 + * + * @param string $applicationVersion + */ + public function setApplicationVersion($applicationVersion) + { + $this->set("ApplicationVersion", $applicationVersion); + } + + /** + * OnlyStart: 只启动。值为false|true之一,默认false,当OnlyStart和OnlyStop同时置为true,则重启。 + * + * @return boolean|null + */ + public function getOnlyStart() + { + return $this->get("OnlyStart"); + } + + /** + * OnlyStart: 只启动。值为false|true之一,默认false,当OnlyStart和OnlyStop同时置为true,则重启。 + * + * @param boolean $onlyStart + */ + public function setOnlyStart($onlyStart) + { + $this->set("OnlyStart", $onlyStart); + } + + /** + * OnlyStop: 只停止。值为false|true之一,默认false。当OnlyStart和OnlyStop同时置为true,则重启。 + * + * @return boolean|null + */ + public function getOnlyStop() + { + return $this->get("OnlyStop"); + } + + /** + * OnlyStop: 只停止。值为false|true之一,默认false。当OnlyStart和OnlyStop同时置为true,则重启。 + * + * @param boolean $onlyStop + */ + public function setOnlyStop($onlyStop) + { + $this->set("OnlyStop", $onlyStop); + } + + /** + * NodeId: 要操作的NodeId数组。如果传入,则用于过滤操作哪些Node。 + * + * @return string[]|null + */ + public function getNodeId() + { + return $this->get("NodeId"); + } + + /** + * NodeId: 要操作的NodeId数组。如果传入,则用于过滤操作哪些Node。 + * + * @param string[] $nodeId + */ + public function setNodeId(array $nodeId) + { + $this->set("NodeId", $nodeId); + } + + /** + * NodeRole: 要操作的NodeRole数组。如果传入,则用于过滤操作哪些Node。值为以下之一master|core|task + * + * @return string[]|null + */ + public function getNodeRole() + { + return $this->get("NodeRole"); + } + + /** + * NodeRole: 要操作的NodeRole数组。如果传入,则用于过滤操作哪些Node。值为以下之一master|core|task + * + * @param string[] $nodeRole + */ + public function setNodeRole(array $nodeRole) + { + $this->set("NodeRole", $nodeRole); + } +} diff --git a/src/UHadoop/Apis/RestartUHadoopServiceResponse.php b/src/UHadoop/Apis/RestartUHadoopServiceResponse.php new file mode 100644 index 0000000..6448ddb --- /dev/null +++ b/src/UHadoop/Apis/RestartUHadoopServiceResponse.php @@ -0,0 +1,44 @@ +get("State"); + } + + /** + * State: 当前执行状态,running(操作运行中)|success(操作成功)|failed(操作失败)|killed(操作被终止)。 + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } +} diff --git a/src/UHadoop/Apis/UpgradeUHadoopNodeDiskRequest.php b/src/UHadoop/Apis/UpgradeUHadoopNodeDiskRequest.php new file mode 100644 index 0000000..4e83ed0 --- /dev/null +++ b/src/UHadoop/Apis/UpgradeUHadoopNodeDiskRequest.php @@ -0,0 +1,194 @@ + "UpgradeUHadoopNodeDisk"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("NodeRole"); + $this->markRequired("DataDiskSize"); + $this->markRequired("InstanceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * 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); + } + + /** + * NodeRole: 节点角色,值为master|core|task之一 + * + * @return string|null + */ + public function getNodeRole() + { + return $this->get("NodeRole"); + } + + /** + * NodeRole: 节点角色,值为master|core|task之一 + * + * @param string $nodeRole + */ + public function setNodeRole($nodeRole) + { + $this->set("NodeRole", $nodeRole); + } + + /** + * DataDiskSize: 新的数据盘磁盘大小 + * + * @return integer|null + */ + public function getDataDiskSize() + { + return $this->get("DataDiskSize"); + } + + /** + * DataDiskSize: 新的数据盘磁盘大小 + * + * @param int $dataDiskSize + */ + public function setDataDiskSize($dataDiskSize) + { + $this->set("DataDiskSize", $dataDiskSize); + } + + /** + * InstanceId: 实例ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 实例ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * NodeNames: 节点名称集合,当NodeRole不为master时必填 + * + * @return string[]|null + */ + public function getNodeNames() + { + return $this->get("NodeNames"); + } + + /** + * NodeNames: 节点名称集合,当NodeRole不为master时必填 + * + * @param string[] $nodeNames + */ + public function setNodeNames(array $nodeNames) + { + $this->set("NodeNames", $nodeNames); + } + + /** + * BootDiskSize: 系统盘磁盘大小,仅支持云盘裸金属机型(系统盘和数据盘数值同时增加、只会处理系统盘参数) + * + * @return integer|null + */ + public function getBootDiskSize() + { + return $this->get("BootDiskSize"); + } + + /** + * BootDiskSize: 系统盘磁盘大小,仅支持云盘裸金属机型(系统盘和数据盘数值同时增加、只会处理系统盘参数) + * + * @param int $bootDiskSize + */ + public function setBootDiskSize($bootDiskSize) + { + $this->set("BootDiskSize", $bootDiskSize); + } +} diff --git a/src/UHadoop/Apis/UpgradeUHadoopNodeDiskResponse.php b/src/UHadoop/Apis/UpgradeUHadoopNodeDiskResponse.php new file mode 100644 index 0000000..a018124 --- /dev/null +++ b/src/UHadoop/Apis/UpgradeUHadoopNodeDiskResponse.php @@ -0,0 +1,26 @@ + "UpgradeUHadoopNode"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("NodeRole"); + $this->markRequired("NodeType"); + $this->markRequired("InstanceId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * 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); + } + + /** + * NodeRole: 节点角色,支持"master"|"core"|"task" + * + * @return string|null + */ + public function getNodeRole() + { + return $this->get("NodeRole"); + } + + /** + * NodeRole: 节点角色,支持"master"|"core"|"task" + * + * @param string $nodeRole + */ + public function setNodeRole($nodeRole) + { + $this->set("NodeRole", $nodeRole); + } + + /** + * NodeType: 节点新机型,通过GetUHadoopNodeType接口获取 + * + * @return string|null + */ + public function getNodeType() + { + return $this->get("NodeType"); + } + + /** + * NodeType: 节点新机型,通过GetUHadoopNodeType接口获取 + * + * @param string $nodeType + */ + public function setNodeType($nodeType) + { + $this->set("NodeType", $nodeType); + } + + /** + * InstanceId: 实例ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 实例ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * NodeNames: 节点名称,当NodeRole不为master时必填 + * + * @return string[]|null + */ + public function getNodeNames() + { + return $this->get("NodeNames"); + } + + /** + * NodeNames: 节点名称,当NodeRole不为master时必填 + * + * @param string[] $nodeNames + */ + public function setNodeNames(array $nodeNames) + { + $this->set("NodeNames", $nodeNames); + } +} diff --git a/src/UHadoop/Apis/UpgradeUHadoopNodeResponse.php b/src/UHadoop/Apis/UpgradeUHadoopNodeResponse.php new file mode 100644 index 0000000..7d1f0ac --- /dev/null +++ b/src/UHadoop/Apis/UpgradeUHadoopNodeResponse.php @@ -0,0 +1,26 @@ +get("AppName"); + } + + /** + * AppName: 需要安装的应用如:Hive,HBase, Spark,Hue,Pig等其他组件 + * + * @param string $appName + */ + public function setAppName($appName) + { + $this->set("AppName", $appName); + } + + /** + * AppVersion: 应用的版本号(0.13.1,0.98.6 等等) + * + * @return string|null + */ + public function getAppVersion() + { + return $this->get("AppVersion"); + } + + /** + * AppVersion: 应用的版本号(0.13.1,0.98.6 等等) + * + * @param string $appVersion + */ + public function setAppVersion($appVersion) + { + $this->set("AppVersion", $appVersion); + } + + /** + * AppStatus: 应用的状态(运行中)'Running'|(已停止)'Stopped'|(启动中)'Starting'|(停止中)'Stopping'|(启动失败)'StartFailed'|(停止失败)'StopFailed'|(安装中)'Installing'|(安装失败)'InstallFailed'|(未安装)'NotInstalled', + * + * @return string|null + */ + public function getAppStatus() + { + return $this->get("AppStatus"); + } + + /** + * AppStatus: 应用的状态(运行中)'Running'|(已停止)'Stopped'|(启动中)'Starting'|(停止中)'Stopping'|(启动失败)'StartFailed'|(停止失败)'StopFailed'|(安装中)'Installing'|(安装失败)'InstallFailed'|(未安装)'NotInstalled', + * + * @param string $appStatus + */ + public function setAppStatus($appStatus) + { + $this->set("AppStatus", $appStatus); + } +} diff --git a/src/UHadoop/Models/AppConfigVersion.php b/src/UHadoop/Models/AppConfigVersion.php new file mode 100644 index 0000000..0dd2e91 --- /dev/null +++ b/src/UHadoop/Models/AppConfigVersion.php @@ -0,0 +1,136 @@ +get("ReleaseVersion"); + } + + /** + * ReleaseVersion: UHadoop版本,值为 uhadoop 3.0|uhadoop 2.2|uhadoop 3.1 + * + * @param string $releaseVersion + */ + public function setReleaseVersion($releaseVersion) + { + $this->set("ReleaseVersion", $releaseVersion); + } + + /** + * HadoopVersion: Hadoop版本,值为 hadoop3.2.1-udh3.0|hadoop3.3.4-udh3.1 |hadoop2.8.5-udh2.2 + * + * @return string|null + */ + public function getHadoopVersion() + { + return $this->get("HadoopVersion"); + } + + /** + * HadoopVersion: Hadoop版本,值为 hadoop3.2.1-udh3.0|hadoop3.3.4-udh3.1 |hadoop2.8.5-udh2.2 + * + * @param string $hadoopVersion + */ + public function setHadoopVersion($hadoopVersion) + { + $this->set("HadoopVersion", $hadoopVersion); + } + + /** + * Framework: 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,框架,例如Hadoop|MR|HDFS|StarRocks Hadoop框架包含存储与计算服务 MR集群包含计算服务 HDFS只包含存储服务,StarRocks为StarRocks集群 + * + * @return string|null + */ + public function getFramework() + { + return $this->get("Framework"); + } + + /** + * Framework: 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,框架,例如Hadoop|MR|HDFS|StarRocks Hadoop框架包含存储与计算服务 MR集群包含计算服务 HDFS只包含存储服务,StarRocks为StarRocks集群 + * + * @param string $framework + */ + public function setFramework($framework) + { + $this->set("Framework", $framework); + } + + /** + * FrameworkVersion: 框架版本 + * + * @return string|null + */ + public function getFrameworkVersion() + { + return $this->get("FrameworkVersion"); + } + + /** + * FrameworkVersion: 框架版本 + * + * @param string $frameworkVersion + */ + public function setFrameworkVersion($frameworkVersion) + { + $this->set("FrameworkVersion", $frameworkVersion); + } + + /** + * UseCases: 框架示例 + * + * @return UseCases[]|null + */ + public function getUseCases() + { + $items = $this->get("UseCases"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UseCases($item)); + } + return $result; + } + + /** + * UseCases: 框架示例 + * + * @param UseCases[] $useCases + */ + public function setUseCases(array $useCases) + { + $result = []; + foreach ($useCases as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UHadoop/Models/ClusterInfo.php b/src/UHadoop/Models/ClusterInfo.php new file mode 100644 index 0000000..afbeca5 --- /dev/null +++ b/src/UHadoop/Models/ClusterInfo.php @@ -0,0 +1,484 @@ +get("Zone"); + } + + /** + * Zone: 可用区 + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * Tag: 集群Tag + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 集群Tag + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * InstanceId: 实例ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 实例ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * InstanceName: 实例名称 + * + * @return string|null + */ + public function getInstanceName() + { + return $this->get("InstanceName"); + } + + /** + * InstanceName: 实例名称 + * + * @param string $instanceName + */ + public function setInstanceName($instanceName) + { + $this->set("InstanceName", $instanceName); + } + + /** + * Framework: 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,框架,例如Hadoop|MR|HDFS|StarRocks Hadoop框架包含存储与计算服务 MR集群包含计算服务 HDFS只包含存储服务,StarRocks为StarRocks集群 + * + * @return string|null + */ + public function getFramework() + { + return $this->get("Framework"); + } + + /** + * Framework: 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,框架,例如Hadoop|MR|HDFS|StarRocks Hadoop框架包含存储与计算服务 MR集群包含计算服务 HDFS只包含存储服务,StarRocks为StarRocks集群 + * + * @param string $framework + */ + public function setFramework($framework) + { + $this->set("Framework", $framework); + } + + /** + * 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); + } + + /** + * BusinessId: 业务组ID + * + * @return string|null + */ + public function getBusinessId() + { + return $this->get("BusinessId"); + } + + /** + * BusinessId: 业务组ID + * + * @param string $businessId + */ + public function setBusinessId($businessId) + { + $this->set("BusinessId", $businessId); + } + + /** + * ReleaseVersion: Uhadoop版本,值为 uhadoop 3.0|uhadoop 2.2|uhadoop 3.1 + * + * @return string|null + */ + public function getReleaseVersion() + { + return $this->get("ReleaseVersion"); + } + + /** + * ReleaseVersion: Uhadoop版本,值为 uhadoop 3.0|uhadoop 2.2|uhadoop 3.1 + * + * @param string $releaseVersion + */ + public function setReleaseVersion($releaseVersion) + { + $this->set("ReleaseVersion", $releaseVersion); + } + + /** + * HadoopVersion: Hadoop版本,值为 hadoop3.2.1-udh3.0|hadoop3.3.4-udh3.1|hadoop2.8.5-udh2.2 + * + * @return string|null + */ + public function getHadoopVersion() + { + return $this->get("HadoopVersion"); + } + + /** + * HadoopVersion: Hadoop版本,值为 hadoop3.2.1-udh3.0|hadoop3.3.4-udh3.1|hadoop2.8.5-udh2.2 + * + * @param string $hadoopVersion + */ + public function setHadoopVersion($hadoopVersion) + { + $this->set("HadoopVersion", $hadoopVersion); + } + + /** + * CreateTime: 创建时间 + * + * @return string|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param string $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * ChargeType: 付费类型 + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 付费类型 + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * ExpireTime: 到期时间 + * + * @return string|null + */ + public function getExpireTime() + { + return $this->get("ExpireTime"); + } + + /** + * ExpireTime: 到期时间 + * + * @param string $expireTime + */ + public function setExpireTime($expireTime) + { + $this->set("ExpireTime", $expireTime); + } + + /** + * State: 状态,值为以下其中之一,Running(运行中)|Creating(创建中)|CreateFailed(创建失败)|Deploying(部署中)|Updating(变更中) + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 状态,值为以下其中之一,Running(运行中)|Creating(创建中)|CreateFailed(创建失败)|Deploying(部署中)|Updating(变更中) + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * MasterCount: Master节点数量 + * + * @return string|null + */ + public function getMasterCount() + { + return $this->get("MasterCount"); + } + + /** + * MasterCount: Master节点数量 + * + * @param string $masterCount + */ + public function setMasterCount($masterCount) + { + $this->set("MasterCount", $masterCount); + } + + /** + * CoreCount: core节点数量 + * + * @return string|null + */ + public function getCoreCount() + { + return $this->get("CoreCount"); + } + + /** + * CoreCount: core节点数量 + * + * @param string $coreCount + */ + public function setCoreCount($coreCount) + { + $this->set("CoreCount", $coreCount); + } + + /** + * TaskCount: Task节点数量 + * + * @return string|null + */ + public function getTaskCount() + { + return $this->get("TaskCount"); + } + + /** + * TaskCount: Task节点数量 + * + * @param string $taskCount + */ + public function setTaskCount($taskCount) + { + $this->set("TaskCount", $taskCount); + } + + /** + * RunningTime: 运行时间 + * + * @return string|null + */ + public function getRunningTime() + { + return $this->get("RunningTime"); + } + + /** + * RunningTime: 运行时间 + * + * @param string $runningTime + */ + public function setRunningTime($runningTime) + { + $this->set("RunningTime", $runningTime); + } + + /** + * AppConfigSet: 组件集合 + * + * @return string|null + */ + public function getAppConfigSet() + { + return $this->get("AppConfigSet"); + } + + /** + * AppConfigSet: 组件集合 + * + * @param string $appConfigSet + */ + public function setAppConfigSet($appConfigSet) + { + $this->set("AppConfigSet", $appConfigSet); + } + + /** + * AppConfigCount: 组件数量 + * + * @return string|null + */ + public function getAppConfigCount() + { + return $this->get("AppConfigCount"); + } + + /** + * AppConfigCount: 组件数量 + * + * @param string $appConfigCount + */ + public function setAppConfigCount($appConfigCount) + { + $this->set("AppConfigCount", $appConfigCount); + } + + /** + * IsOpenSecGroup: 是否开启安全组 + * + * @return string|null + */ + public function getIsOpenSecGroup() + { + return $this->get("IsOpenSecGroup"); + } + + /** + * IsOpenSecGroup: 是否开启安全组 + * + * @param string $isOpenSecGroup + */ + public function setIsOpenSecGroup($isOpenSecGroup) + { + $this->set("IsOpenSecGroup", $isOpenSecGroup); + } + + /** + * NodeSet: 节点集合 + * + * @return string|null + */ + public function getNodeSet() + { + return $this->get("NodeSet"); + } + + /** + * NodeSet: 节点集合 + * + * @param string $nodeSet + */ + public function setNodeSet($nodeSet) + { + $this->set("NodeSet", $nodeSet); + } + + /** + * NodeCount: 节点数量 + * + * @return string|null + */ + public function getNodeCount() + { + return $this->get("NodeCount"); + } + + /** + * NodeCount: 节点数量 + * + * @param string $nodeCount + */ + public function setNodeCount($nodeCount) + { + $this->set("NodeCount", $nodeCount); + } +} diff --git a/src/UHadoop/Models/DiskSet.php b/src/UHadoop/Models/DiskSet.php new file mode 100644 index 0000000..c894063 --- /dev/null +++ b/src/UHadoop/Models/DiskSet.php @@ -0,0 +1,204 @@ +get("Size"); + } + + /** + * Size: 总磁盘大小 + * + * @param int $size + */ + public function setSize($size) + { + $this->set("Size", $size); + } + + /** + * Type: 磁盘角色,分Data数据盘和Boot系统盘 + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 磁盘角色,分Data数据盘和Boot系统盘 + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * DiskType: 可支持的磁盘类型 + * + * @return string[]|null + */ + public function getDiskType() + { + return $this->get("DiskType"); + } + + /** + * DiskType: 可支持的磁盘类型 + * + * @param string[] $diskType + */ + public function setDiskType(array $diskType) + { + $this->set("DiskType", $diskType); + } + + /** + * SingleDiskSize: 单块盘大小 + * + * @return integer|null + */ + public function getSingleDiskSize() + { + return $this->get("SingleDiskSize"); + } + + /** + * SingleDiskSize: 单块盘大小 + * + * @param int $singleDiskSize + */ + public function setSingleDiskSize($singleDiskSize) + { + $this->set("SingleDiskSize", $singleDiskSize); + } + + /** + * DiskNum: 磁盘数量 + * + * @return integer|null + */ + public function getDiskNum() + { + return $this->get("DiskNum"); + } + + /** + * DiskNum: 磁盘数量 + * + * @param int $diskNum + */ + public function setDiskNum($diskNum) + { + $this->set("DiskNum", $diskNum); + } + + /** + * DiskMaxNum: 最大磁盘数量 + * + * @return string|null + */ + public function getDiskMaxNum() + { + return $this->get("DiskMaxNum"); + } + + /** + * DiskMaxNum: 最大磁盘数量 + * + * @param string $diskMaxNum + */ + public function setDiskMaxNum($diskMaxNum) + { + $this->set("DiskMaxNum", $diskMaxNum); + } + + /** + * DiskMaxSize: 最大单块盘容量,单位GB + * + * @return string|null + */ + public function getDiskMaxSize() + { + return $this->get("DiskMaxSize"); + } + + /** + * DiskMaxSize: 最大单块盘容量,单位GB + * + * @param string $diskMaxSize + */ + public function setDiskMaxSize($diskMaxSize) + { + $this->set("DiskMaxSize", $diskMaxSize); + } + + /** + * DiskMinNum: 最小磁盘数量 + * + * @return string|null + */ + public function getDiskMinNum() + { + return $this->get("DiskMinNum"); + } + + /** + * DiskMinNum: 最小磁盘数量 + * + * @param string $diskMinNum + */ + public function setDiskMinNum($diskMinNum) + { + $this->set("DiskMinNum", $diskMinNum); + } + + /** + * DiskMinSize: 最小单块盘容量,单位GB + * + * @return string|null + */ + public function getDiskMinSize() + { + return $this->get("DiskMinSize"); + } + + /** + * DiskMinSize: 最小单块盘容量,单位GB + * + * @param string $diskMinSize + */ + public function setDiskMinSize($diskMinSize) + { + $this->set("DiskMinSize", $diskMinSize); + } +} diff --git a/src/UHadoop/Models/InstanceType.php b/src/UHadoop/Models/InstanceType.php new file mode 100644 index 0000000..58dc412 --- /dev/null +++ b/src/UHadoop/Models/InstanceType.php @@ -0,0 +1,256 @@ +get("NodeType"); + } + + /** + * NodeType: 机型名称 + * + * @param string $nodeType + */ + public function setNodeType($nodeType) + { + $this->set("NodeType", $nodeType); + } + + /** + * HostType: 机型种类,可选Outstanding(快杰机型)|General(普通机型)|BareMetal(裸金属机型)|GPU(GPU机型)四种类型 + * + * @return string|null + */ + public function getHostType() + { + return $this->get("HostType"); + } + + /** + * HostType: 机型种类,可选Outstanding(快杰机型)|General(普通机型)|BareMetal(裸金属机型)|GPU(GPU机型)四种类型 + * + * @param string $hostType + */ + public function setHostType($hostType) + { + $this->set("HostType", $hostType); + } + + /** + * SuitableRole: 可用的节点类型,值为core|task|master之一 + * + * @return string[]|null + */ + public function getSuitableRole() + { + return $this->get("SuitableRole"); + } + + /** + * SuitableRole: 可用的节点类型,值为core|task|master之一 + * + * @param string[] $suitableRole + */ + public function setSuitableRole(array $suitableRole) + { + $this->set("SuitableRole", $suitableRole); + } + + /** + * CPU: cpu大小 + * + * @return string|null + */ + public function getCPU() + { + return $this->get("CPU"); + } + + /** + * CPU: cpu大小 + * + * @param string $cpu + */ + public function setCPU($cpu) + { + $this->set("CPU", $cpu); + } + + /** + * CPUToMemoryRatio: cpu内存比 + * + * @return string|null + */ + public function getCPUToMemoryRatio() + { + return $this->get("CPUToMemoryRatio"); + } + + /** + * CPUToMemoryRatio: cpu内存比 + * + * @param string $cpuToMemoryRatio + */ + public function setCPUToMemoryRatio($cpuToMemoryRatio) + { + $this->set("CPUToMemoryRatio", $cpuToMemoryRatio); + } + + /** + * Memory: 内存大小 + * + * @return string|null + */ + public function getMemory() + { + return $this->get("Memory"); + } + + /** + * Memory: 内存大小 + * + * @param string $memory + */ + public function setMemory($memory) + { + $this->set("Memory", $memory); + } + + /** + * DiskSet: 磁盘信息 + * + * @return DiskSet[]|null + */ + public function getDiskSet() + { + $items = $this->get("DiskSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new DiskSet($item)); + } + return $result; + } + + /** + * DiskSet: 磁盘信息 + * + * @param DiskSet[] $diskSet + */ + public function setDiskSet(array $diskSet) + { + $result = []; + foreach ($diskSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * IsUsable: 是否可用,该机型是否支持创建 + * + * @return string|null + */ + public function getIsUsable() + { + return $this->get("IsUsable"); + } + + /** + * IsUsable: 是否可用,该机型是否支持创建 + * + * @param string $isUsable + */ + public function setIsUsable($isUsable) + { + $this->set("IsUsable", $isUsable); + } + + /** + * IsOpenSecgroup: 是否支持开启安全组 + * + * @return string|null + */ + public function getIsOpenSecgroup() + { + return $this->get("IsOpenSecgroup"); + } + + /** + * IsOpenSecgroup: 是否支持开启安全组 + * + * @param string $isOpenSecgroup + */ + public function setIsOpenSecgroup($isOpenSecgroup) + { + $this->set("IsOpenSecgroup", $isOpenSecgroup); + } + + /** + * GpuType: GPU型号 + * + * @return string|null + */ + public function getGpuType() + { + return $this->get("GpuType"); + } + + /** + * GpuType: GPU型号 + * + * @param string $gpuType + */ + public function setGpuType($gpuType) + { + $this->set("GpuType", $gpuType); + } + + /** + * GpuCount: GPU数量 + * + * @return integer|null + */ + public function getGpuCount() + { + return $this->get("GpuCount"); + } + + /** + * GpuCount: GPU数量 + * + * @param int $gpuCount + */ + public function setGpuCount($gpuCount) + { + $this->set("GpuCount", $gpuCount); + } +} diff --git a/src/UHadoop/Models/ListClusterInfo.php b/src/UHadoop/Models/ListClusterInfo.php new file mode 100644 index 0000000..c79aa64 --- /dev/null +++ b/src/UHadoop/Models/ListClusterInfo.php @@ -0,0 +1,244 @@ +get("Zone"); + } + + /** + * Zone: 可用区 + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * InstanceId: 实例ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 实例ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * InstanceName: 实例名称 + * + * @return string|null + */ + public function getInstanceName() + { + return $this->get("InstanceName"); + } + + /** + * InstanceName: 实例名称 + * + * @param string $instanceName + */ + public function setInstanceName($instanceName) + { + $this->set("InstanceName", $instanceName); + } + + /** + * Framework: 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,Hadoop框架包含存储与计算服务,MR集群包含计算服务,HDFS只包含存储服务,StarRocks为StarRocks集群 + * + * @return string|null + */ + public function getFramework() + { + return $this->get("Framework"); + } + + /** + * Framework: 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,Hadoop框架包含存储与计算服务,MR集群包含计算服务,HDFS只包含存储服务,StarRocks为StarRocks集群 + * + * @param string $framework + */ + public function setFramework($framework) + { + $this->set("Framework", $framework); + } + + /** + * 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); + } + + /** + * BusinessId: 业务组ID + * + * @return string|null + */ + public function getBusinessId() + { + return $this->get("BusinessId"); + } + + /** + * BusinessId: 业务组ID + * + * @param string $businessId + */ + public function setBusinessId($businessId) + { + $this->set("BusinessId", $businessId); + } + + /** + * ReleaseVersion: Uhadoop版本,值为 uhadoop 3.0|uhadoop 2.2|uhadoop 3.1 + * + * @return string|null + */ + public function getReleaseVersion() + { + return $this->get("ReleaseVersion"); + } + + /** + * ReleaseVersion: Uhadoop版本,值为 uhadoop 3.0|uhadoop 2.2|uhadoop 3.1 + * + * @param string $releaseVersion + */ + public function setReleaseVersion($releaseVersion) + { + $this->set("ReleaseVersion", $releaseVersion); + } + + /** + * HadoopVersion: Hadoop版本,值为 hadoop3.2.1-udh3.0|hadoop3.3.4-udh3.1 |hadoop2.8.5-udh2.2 + * + * @return string|null + */ + public function getHadoopVersion() + { + return $this->get("HadoopVersion"); + } + + /** + * HadoopVersion: Hadoop版本,值为 hadoop3.2.1-udh3.0|hadoop3.3.4-udh3.1 |hadoop2.8.5-udh2.2 + * + * @param string $hadoopVersion + */ + public function setHadoopVersion($hadoopVersion) + { + $this->set("HadoopVersion", $hadoopVersion); + } + + /** + * CreateTime: 创建时间 + * + * @return string|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param string $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * State: 状态,值为以下其中之一,Running(运行中)|Creating(创建中)|CreateFailed(创建失败)|Deploying(部署中)|Updating(变更中) + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 状态,值为以下其中之一,Running(运行中)|Creating(创建中)|CreateFailed(创建失败)|Deploying(部署中)|Updating(变更中) + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } +} diff --git a/src/UHadoop/Models/UseCases.php b/src/UHadoop/Models/UseCases.php new file mode 100644 index 0000000..1718e03 --- /dev/null +++ b/src/UHadoop/Models/UseCases.php @@ -0,0 +1,84 @@ +get("ClusterCase"); + } + + /** + * ClusterCase: 集群种类 + * + * @param string $clusterCase + */ + public function setClusterCase($clusterCase) + { + $this->set("ClusterCase", $clusterCase); + } + + /** + * MustHas: 依赖的组件 + * + * @return string|null + */ + public function getMustHas() + { + return $this->get("MustHas"); + } + + /** + * MustHas: 依赖的组件 + * + * @param string $mustHas + */ + public function setMustHas($mustHas) + { + $this->set("MustHas", $mustHas); + } + + /** + * AppVersion: 组件版本 + * + * @return string|null + */ + public function getAppVersion() + { + return $this->get("AppVersion"); + } + + /** + * AppVersion: 组件版本 + * + * @param string $appVersion + */ + public function setAppVersion($appVersion) + { + $this->set("AppVersion", $appVersion); + } +} diff --git a/src/UHadoop/UHadoopClient.php b/src/UHadoop/UHadoopClient.php new file mode 100644 index 0000000..05a0afb --- /dev/null +++ b/src/UHadoop/UHadoopClient.php @@ -0,0 +1,499 @@ + (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "NodeRole" => (string) 节点的角色,值为task|core|client之一 + * "NodeType" => (string) 机型,如:o.hadoop2m.medium,可从GetUHadoopNodeType接口获取 + * "InstanceId" => (string) 实例ID + * "DataDiskNum" => (string) 数据盘数量,非裸金属机型时必填 + * "Password" => (string) 密码,NodeRole为client时必填 + * "BootDiskSize" => (string) 系统盘容量,非裸金属机型必填 + * "BootDiskType" => (string) 系统盘类型,非裸金属机型必填,例如:CLOUD_RSSD + * "DataDiskSize" => (string) 数据盘容量,非裸金属机型必填 + * "DataDiskType" => (string) 数据盘类型,非裸金属机型必填,例如:CLOUD_RSSD + * "NodeCount" => (integer) 节点数量,默认为1 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return AddUHadoopInstanceNodeResponse + * @throws UCloudException + */ + public function addUHadoopInstanceNode(AddUHadoopInstanceNodeRequest $request = null) + { + $resp = $this->invoke($request); + return new AddUHadoopInstanceNodeResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateUHadoopInstance - 新建一个uhadoop集群 + * + * See also: https://docs.ucloud.cn/api/uhadoop-api/create_uhadoop_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) + * "Password" => (string) 集群机器的登录密码 + * "FrameworkVersion" => (string) 版本,例如:3.2.1-udh3.0,通过ListUHadoopFrameworkApp接口获取 + * "InstanceGroupConfigs" => (array) 节点配置,里面包括NodeType(机型),NodeRole(节点类别,值为其中之一:master|core|task),Count(数量),DataDiskType(数据盘类别),DataDiskSize(数据盘大小),DataDiskNum(数据盘数量),BootDiskType(系统盘类型),BootDiskSize(系统盘大小),通过GetUHadoopNodeType接口获取,示例为:InstanceGroupConfigs.0.NodeType=o.hadoop2m.xlargeInstanceGroupConfigs.0.NodeRole=masterInstanceGroupConfigs.0.Count=2InstanceGroupConfigs.0.DataDiskType=CLOUD_RSSDInstanceGroupConfigs.0.DataDiskSize=100InstanceGroupConfigs.0.DataDiskNum=1InstanceGroupConfigs.0.BootDiskType=CLOUD_RSSDInstanceGroupConfigs.0.BootDiskSize=50InstanceGroupConfigs.1.NodeType=o.hadoop2m.xlargeInstanceGroupConfigs.1.NodeRole=coreInstanceGroupConfigs.1.Count=3InstanceGroupConfigs.1.DataDiskType=CLOUD_RSSDInstanceGroupConfigs.1.DataDiskSize=200InstanceGroupConfigs.1.DataDiskNum=1InstanceGroupConfigs.1.BootDiskType=CLOUD_RSSDInstanceGroupConfigs.1.BootDiskSize=50 + * "VPCId" => (string) VPCId + * "SubnetId" => (string) 子网ID + * "AppConfig" => (array) 集群需要安装的组件,格式:组件#版本通过ListUHadoopFrameworkApp接口获取,例如:Spark#3.3.0 + * "Framework" => (string) 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,框架,例如Hadoop|MR|HDFS|StarRocks Hadoop框架包含存储与计算服务 MR集群包含计算服务 HDFS只包含存储服务,StarRocks为StarRocks集群 + * "ChargeType" => (string) 支付类别,默认:Month + * "Quantity" => (integer) 数量,默认1 + * "BusinessId" => (string) 工作组ID,默认Default + * "StorgeClusterId" => (string) Framework为‘MR’时,存储集群ID + * "StandAloneMetaStore" => (string) 目前只支持传‘udb’ + * "IsSecurityEnabled" => (string) 是否开启安全组 + * "SecGroupIds" => (string) 安全组ID,字符串数组,IsSecurityEnabled为true时生效 + * "US3Bucket" => (string) US3 bucket名称,仅支持框架为StarRocks存算分离时传入 + * "US3AccessKey" => (string) US3 配置公钥,仅支持框架为StarRocks存算分离时传入 + * "US3SecretKey" => (string) US3 配置私钥,仅支持框架为StarRocks存算分离时传入 + * "US3TokenName" => (string) US3 Token名称,仅支持框架为StarRocks存算分离时传入 + * "InstanceName" => (string) 实例名称,默认为实例ID + * ] + * + * Outputs: + * + * $outputs = [ + * "InstanceId" => (string) 实例ID + * ] + * + * @return CreateUHadoopInstanceResponse + * @throws UCloudException + */ + public function createUHadoopInstance(CreateUHadoopInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateUHadoopInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DeleteUHadoopInstance - 删除掉一个uhadoop集群 + * + * See also: https://docs.ucloud.cn/api/uhadoop-api/delete_uhadoop_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) + * "InstanceId" => (string) 实例ID + * "ReleaseEIP" => (boolean) 是否释放绑定的EIP。true: 解绑EIP后,并释放;其他值或不填:解绑EIP。 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteUHadoopInstanceResponse + * @throws UCloudException + */ + public function deleteUHadoopInstance(DeleteUHadoopInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteUHadoopInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeUHadoopInstance - 描述集群 + * + * See also: https://docs.ucloud.cn/api/uhadoop-api/describe_uhadoop_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) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "InstanceId" => (string) 实例ID + * "VPCId" => (string) VPCID + * "SubnetId" => (string) 子网ID + * ] + * + * Outputs: + * + * $outputs = [ + * "ClusterSet" => (array) 集群信息[ + * [ + * "Zone" => (string) 可用区 + * "Tag" => (string) 集群Tag + * "InstanceId" => (string) 实例ID + * "InstanceName" => (string) 实例名称 + * "Framework" => (string) 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,框架,例如Hadoop|MR|HDFS|StarRocks Hadoop框架包含存储与计算服务 MR集群包含计算服务 HDFS只包含存储服务,StarRocks为StarRocks集群 + * "VPCId" => (string) VPC ID + * "SubnetId" => (string) 子网ID + * "BusinessId" => (string) 业务组ID + * "ReleaseVersion" => (string) Uhadoop版本,值为 uhadoop 3.0|uhadoop 2.2|uhadoop 3.1 + * "HadoopVersion" => (string) Hadoop版本,值为 hadoop3.2.1-udh3.0|hadoop3.3.4-udh3.1|hadoop2.8.5-udh2.2 + * "CreateTime" => (string) 创建时间 + * "ChargeType" => (string) 付费类型 + * "ExpireTime" => (string) 到期时间 + * "State" => (string) 状态,值为以下其中之一,Running(运行中)|Creating(创建中)|CreateFailed(创建失败)|Deploying(部署中)|Updating(变更中) + * "MasterCount" => (string) Master节点数量 + * "CoreCount" => (string) core节点数量 + * "TaskCount" => (string) Task节点数量 + * "RunningTime" => (string) 运行时间 + * "AppConfigSet" => (string) 组件集合 + * "AppConfigCount" => (string) 组件数量 + * "IsOpenSecGroup" => (string) 是否开启安全组 + * "NodeSet" => (string) 节点集合 + * "NodeCount" => (string) 节点数量 + * ] + * ] + * ] + * + * @return DescribeUHadoopInstanceResponse + * @throws UCloudException + */ + public function describeUHadoopInstance(DescribeUHadoopInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUHadoopInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetUHadoopNodeType - 获取节点类型信息 + * + * See also: https://docs.ucloud.cn/api/uhadoop-api/get_uhadoop_node_type + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "FrameworkVersion" => (string) 框架版本,例如3.2.1-udh3.0,通过ListUHadoopFrameworkApp接口获取 + * "NodeRole" => (string) 角色,master|core|task + * "NodeType" => (string) 机型名称 + * "Framework" => (string) 框架,例如Hadoop|MR|HDFS|StarRocks,Hadoop框架包含存储与计算服务,MR集群包含计算服务,HDFS只包含存储服务,StarRocks为StarRocks集群 + * ] + * + * Outputs: + * + * $outputs = [ + * "InstanceTypeSet" => (array) 类型信息[ + * [ + * "NodeType" => (string) 机型名称 + * "HostType" => (string) 机型种类,可选Outstanding(快杰机型)|General(普通机型)|BareMetal(裸金属机型)|GPU(GPU机型)四种类型 + * "SuitableRole" => (array) 可用的节点类型,值为core|task|master之一 + * "CPU" => (string) cpu大小 + * "CPUToMemoryRatio" => (string) cpu内存比 + * "Memory" => (string) 内存大小 + * "DiskSet" => (array) 磁盘信息[ + * [ + * "Size" => (integer) 总磁盘大小 + * "Type" => (string) 磁盘角色,分Data数据盘和Boot系统盘 + * "DiskType" => (array) 可支持的磁盘类型 + * "SingleDiskSize" => (integer) 单块盘大小 + * "DiskNum" => (integer) 磁盘数量 + * "DiskMaxNum" => (string) 最大磁盘数量 + * "DiskMaxSize" => (string) 最大单块盘容量,单位GB + * "DiskMinNum" => (string) 最小磁盘数量 + * "DiskMinSize" => (string) 最小单块盘容量,单位GB + * ] + * ] + * "IsUsable" => (string) 是否可用,该机型是否支持创建 + * "IsOpenSecgroup" => (string) 是否支持开启安全组 + * "GpuType" => (string) GPU型号 + * "GpuCount" => (integer) GPU数量 + * ] + * ] + * "MetaDataUDBUsable" => (boolean) 当前可用区是否支持元数据库使用UDB + * "HostTypeSupportNodeType" => (string) 机型可支持的节点类型 + * ] + * + * @return GetUHadoopNodeTypeResponse + * @throws UCloudException + */ + public function getUHadoopNodeType(GetUHadoopNodeTypeRequest $request = null) + { + $resp = $this->invoke($request); + return new GetUHadoopNodeTypeResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUHadoopFrameworkApp - 列举可选app + * + * See also: https://docs.ucloud.cn/api/uhadoop-api/list_uhadoop_framework_app + * + * 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) + * "Framework" => (string) 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,框架,例如Hadoop|MR|HDFS|StarRocks Hadoop框架包含存储与计算服务 MR集群包含计算服务 HDFS只包含存储服务,StarRocks为StarRocks集群 + * "InstanceId" => (string) 实例ID,可选。传的话,过滤出适合此集群的app信息。 + * ] + * + * Outputs: + * + * $outputs = [ + * "AppConfigSet" => (array) 应用配置详情[ + * [ + * "AppName" => (string) 需要安装的应用如:Hive,HBase, Spark,Hue,Pig等其他组件 + * "AppVersion" => (string) 应用的版本号(0.13.1,0.98.6 等等) + * "AppStatus" => (string) 应用的状态(运行中)'Running'|(已停止)'Stopped'|(启动中)'Starting'|(停止中)'Stopping'|(启动失败)'StartFailed'|(停止失败)'StopFailed'|(安装中)'Installing'|(安装失败)'InstallFailed'|(未安装)'NotInstalled', + * ] + * ] + * ] + * + * @return ListUHadoopFrameworkAppResponse + * @throws UCloudException + */ + public function listUHadoopFrameworkApp(ListUHadoopFrameworkAppRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUHadoopFrameworkAppResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUHadoopFrameworkAppByUseCase - 按使用场景列出uhadoop的框架和框架中的应用 + * + * See also: https://docs.ucloud.cn/api/uhadoop-api/list_uhadoop_framework_app_by_use_case + * + * 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 = [ + * "AppConfigSet" => (array) 使用场景的app版本信息[ + * [ + * "ReleaseVersion" => (string) UHadoop版本,值为 uhadoop 3.0|uhadoop 2.2|uhadoop 3.1 + * "HadoopVersion" => (string) Hadoop版本,值为 hadoop3.2.1-udh3.0|hadoop3.3.4-udh3.1 |hadoop2.8.5-udh2.2 + * "Framework" => (string) 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,框架,例如Hadoop|MR|HDFS|StarRocks Hadoop框架包含存储与计算服务 MR集群包含计算服务 HDFS只包含存储服务,StarRocks为StarRocks集群 + * "FrameworkVersion" => (string) 框架版本 + * "UseCases" => (array) 框架示例[ + * [ + * "ClusterCase" => (string) 集群种类 + * "MustHas" => (string) 依赖的组件 + * "AppVersion" => (string) 组件版本 + * ] + * ] + * ] + * ] + * ] + * + * @return ListUHadoopFrameworkAppByUseCaseResponse + * @throws UCloudException + */ + public function listUHadoopFrameworkAppByUseCase(ListUHadoopFrameworkAppByUseCaseRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUHadoopFrameworkAppByUseCaseResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUHadoopInstance - 列出用户所有的uhadoop集群 + * + * See also: https://docs.ucloud.cn/api/uhadoop-api/list_uhadoop_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) + * "Limit" => (integer) 获取列表的长度限制,默认值为60 + * "Offset" => (integer) 获取列表的偏移,默认值为0 + * ] + * + * Outputs: + * + * $outputs = [ + * "ClusterSet" => (array) 集群信息集合[ + * [ + * "Zone" => (string) 可用区 + * "InstanceId" => (string) 实例ID + * "InstanceName" => (string) 实例名称 + * "Framework" => (string) 框架,值为'Hadoop'|'HDFS'|'MR'|'StarRocks'之一,Hadoop框架包含存储与计算服务,MR集群包含计算服务,HDFS只包含存储服务,StarRocks为StarRocks集群 + * "VPCId" => (string) VPC ID + * "SubnetId" => (string) 子网ID + * "BusinessId" => (string) 业务组ID + * "ReleaseVersion" => (string) Uhadoop版本,值为 uhadoop 3.0|uhadoop 2.2|uhadoop 3.1 + * "HadoopVersion" => (string) Hadoop版本,值为 hadoop3.2.1-udh3.0|hadoop3.3.4-udh3.1 |hadoop2.8.5-udh2.2 + * "CreateTime" => (string) 创建时间 + * "State" => (string) 状态,值为以下其中之一,Running(运行中)|Creating(创建中)|CreateFailed(创建失败)|Deploying(部署中)|Updating(变更中) + * ] + * ] + * "TotalCount" => (integer) 总数 + * ] + * + * @return ListUHadoopInstanceResponse + * @throws UCloudException + */ + public function listUHadoopInstance(ListUHadoopInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUHadoopInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * RestartUHadoopService - 重启集群服务(包含start|stop|restart) + * + * See also: https://docs.ucloud.cn/api/uhadoop-api/restart_uhadoop_service + * + * 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) + * "ServiceName" => (string) 要操作的服务名。可通过ListUHadoopFrameworkApp接口获取 + * "InstanceId" => (string) 实例ID + * "ApplicationVersion" => (string) 应用版本,ApplicationVersion传参时,表示这次操作是整个应用所有服务。 + * "OnlyStart" => (boolean) 只启动。值为false|true之一,默认false,当OnlyStart和OnlyStop同时置为true,则重启。 + * "OnlyStop" => (boolean) 只停止。值为false|true之一,默认false。当OnlyStart和OnlyStop同时置为true,则重启。 + * "NodeId" => (array) 要操作的NodeId数组。如果传入,则用于过滤操作哪些Node。 + * "NodeRole" => (array) 要操作的NodeRole数组。如果传入,则用于过滤操作哪些Node。值为以下之一master|core|task + * ] + * + * Outputs: + * + * $outputs = [ + * "State" => (string) 当前执行状态,running(操作运行中)|success(操作成功)|failed(操作失败)|killed(操作被终止)。 + * ] + * + * @return RestartUHadoopServiceResponse + * @throws UCloudException + */ + public function restartUHadoopService(RestartUHadoopServiceRequest $request = null) + { + $resp = $this->invoke($request); + return new RestartUHadoopServiceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * UpgradeUHadoopNode - 升级uhadoop节点 + * + * See also: https://docs.ucloud.cn/api/uhadoop-api/upgrade_uhadoop_node + * + * 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) + * "NodeRole" => (string) 节点角色,支持"master"|"core"|"task" + * "NodeType" => (string) 节点新机型,通过GetUHadoopNodeType接口获取 + * "InstanceId" => (string) 实例ID + * "NodeNames" => (array) 节点名称,当NodeRole不为master时必填 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpgradeUHadoopNodeResponse + * @throws UCloudException + */ + public function upgradeUHadoopNode(UpgradeUHadoopNodeRequest $request = null) + { + $resp = $this->invoke($request); + return new UpgradeUHadoopNodeResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * UpgradeUHadoopNodeDisk - 扩容集群节点磁盘 + * + * See also: https://docs.ucloud.cn/api/uhadoop-api/upgrade_uhadoop_node_disk + * + * 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) + * "NodeRole" => (string) 节点角色,值为master|core|task之一 + * "DataDiskSize" => (integer) 新的数据盘磁盘大小 + * "InstanceId" => (string) 实例ID + * "NodeNames" => (array) 节点名称集合,当NodeRole不为master时必填 + * "BootDiskSize" => (integer) 系统盘磁盘大小,仅支持云盘裸金属机型(系统盘和数据盘数值同时增加、只会处理系统盘参数) + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpgradeUHadoopNodeDiskResponse + * @throws UCloudException + */ + public function upgradeUHadoopNodeDisk(UpgradeUHadoopNodeDiskRequest $request = null) + { + $resp = $this->invoke($request); + return new UpgradeUHadoopNodeDiskResponse($resp->toArray(), $resp->getRequestId()); + } +}