diff --git a/VERSION b/VERSION index 5503126..2080591 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.10 +0.3.11 diff --git a/src/UCompShare/Apis/CreateCompShareInstanceRequest.php b/src/UCompShare/Apis/CreateCompShareInstanceRequest.php new file mode 100644 index 0000000..376b623 --- /dev/null +++ b/src/UCompShare/Apis/CreateCompShareInstanceRequest.php @@ -0,0 +1,390 @@ + "CreateCompShareInstance"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("MachineType"); + $this->markRequired("GPU"); + $this->markRequired("Memory"); + $this->markRequired("CPU"); + $this->markRequired("GpuType"); + $this->markRequired("CompShareImageId"); + } + + + + /** + * 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); + } + + /** + * Disks: + * + * @return CreateCompShareInstanceParamDisks[]|null + */ + public function getDisks() + { + $items = $this->get("Disks"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CreateCompShareInstanceParamDisks($item)); + } + return $result; + } + + /** + * Disks: + * + * @param CreateCompShareInstanceParamDisks[] $disks + */ + public function setDisks(array $disks) + { + $result = []; + foreach ($disks as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * MachineType: 云主机机型(V2.0),在本字段和字段UHostType中,仅需要其中1个字段即可。枚举值["N", "C", "G", "O", "OS", "OM", "OPRO", "OMAX", "O.BM", "O.EPC"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + * + * @return string|null + */ + public function getMachineType() + { + return $this->get("MachineType"); + } + + /** + * MachineType: 云主机机型(V2.0),在本字段和字段UHostType中,仅需要其中1个字段即可。枚举值["N", "C", "G", "O", "OS", "OM", "OPRO", "OMAX", "O.BM", "O.EPC"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + * + * @param string $machineType + */ + public function setMachineType($machineType) + { + $this->set("MachineType", $machineType); + } + + /** + * GPU: GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) + * + * @return integer|null + */ + public function getGPU() + { + return $this->get("GPU"); + } + + /** + * GPU: GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) + * + * @param int $gpu + */ + public function setGPU($gpu) + { + $this->set("GPU", $gpu); + } + + /** + * Memory: 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192 + * + * @return integer|null + */ + public function getMemory() + { + return $this->get("Memory"); + } + + /** + * Memory: 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192 + * + * @param int $memory + */ + public function setMemory($memory) + { + $this->set("Memory", $memory); + } + + /** + * CPU: 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。 + * + * @return integer|null + */ + public function getCPU() + { + return $this->get("CPU"); + } + + /** + * CPU: 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。 + * + * @param int $cpu + */ + public function setCPU($cpu) + { + $this->set("CPU", $cpu); + } + + /** + * GpuType: GPU类型,枚举值["K80", "P40", "V100", "T4","T4A", "T4S","2080Ti","2080Ti-4C","1080Ti", "T4/4", "MI100", "V100S",2080","2080TiS","2080TiPro","3090","A100"],MachineType为G时必填 + * + * @return string|null + */ + public function getGpuType() + { + return $this->get("GpuType"); + } + + /** + * GpuType: GPU类型,枚举值["K80", "P40", "V100", "T4","T4A", "T4S","2080Ti","2080Ti-4C","1080Ti", "T4/4", "MI100", "V100S",2080","2080TiS","2080TiPro","3090","A100"],MachineType为G时必填 + * + * @param string $gpuType + */ + public function setGpuType($gpuType) + { + $this->set("GpuType", $gpuType); + } + + /** + * CompShareImageId: 镜像ID + * + * @return string|null + */ + public function getCompShareImageId() + { + return $this->get("CompShareImageId"); + } + + /** + * CompShareImageId: 镜像ID + * + * @param string $compShareImageId + */ + public function setCompShareImageId($compShareImageId) + { + $this->set("CompShareImageId", $compShareImageId); + } + + /** + * LoginMode: 主机登陆模式。密码(默认选项): Password + * + * @return string|null + */ + public function getLoginMode() + { + return $this->get("LoginMode"); + } + + /** + * LoginMode: 主机登陆模式。密码(默认选项): Password + * + * @param string $loginMode + */ + public function setLoginMode($loginMode) + { + $this->set("LoginMode", $loginMode); + } + + /** + * ChargeType: 计费模式。枚举值为: \\ > Month,按月付费;\\ > Day,按天付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\ > Spot计费为抢占式实例(内测阶段) \\ 默认为月付 + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费模式。枚举值为: \\ > Month,按月付费;\\ > Day,按天付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\ > Spot计费为抢占式实例(内测阶段) \\ 默认为月付 + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * Quantity: 购买时长。默认:值 1。按小时购买(Dynamic/Postpay)时无需此参数。 月付时,此参数传0,代表购买至月末。 + * + * @return integer|null + */ + public function getQuantity() + { + return $this->get("Quantity"); + } + + /** + * Quantity: 购买时长。默认:值 1。按小时购买(Dynamic/Postpay)时无需此参数。 月付时,此参数传0,代表购买至月末。 + * + * @param int $quantity + */ + public function setQuantity($quantity) + { + $this->set("Quantity", $quantity); + } + + /** + * MinimalCpuPlatform: 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake", "Intel/CascadelakeR", "Intel/IceLake", "Amd/Epyc2", "Amd/Auto","Ampere/Auto","Ampere/Altra"],默认值是"Intel/Auto"。 + * + * @return string|null + */ + public function getMinimalCpuPlatform() + { + return $this->get("MinimalCpuPlatform"); + } + + /** + * MinimalCpuPlatform: 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake", "Intel/CascadelakeR", "Intel/IceLake", "Amd/Epyc2", "Amd/Auto","Ampere/Auto","Ampere/Altra"],默认值是"Intel/Auto"。 + * + * @param string $minimalCpuPlatform + */ + public function setMinimalCpuPlatform($minimalCpuPlatform) + { + $this->set("MinimalCpuPlatform", $minimalCpuPlatform); + } + + /** + * Password: UHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。 + * + * @return string|null + */ + public function getPassword() + { + return $this->get("Password"); + } + + /** + * Password: UHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。 + * + * @param string $password + */ + public function setPassword($password) + { + $this->set("Password", $password); + } + + /** + * Name: 实例名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 实例名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * SecurityGroupId: 防火墙Id + * + * @return string|null + */ + public function getSecurityGroupId() + { + return $this->get("SecurityGroupId"); + } + + /** + * SecurityGroupId: 防火墙Id + * + * @param string $securityGroupId + */ + public function setSecurityGroupId($securityGroupId) + { + $this->set("SecurityGroupId", $securityGroupId); + } +} diff --git a/src/UCompShare/Apis/CreateCompShareInstanceResponse.php b/src/UCompShare/Apis/CreateCompShareInstanceResponse.php new file mode 100644 index 0000000..1ca7b4d --- /dev/null +++ b/src/UCompShare/Apis/CreateCompShareInstanceResponse.php @@ -0,0 +1,44 @@ +get("UHostIds"); + } + + /** + * UHostIds: UHost实例Id集合 + * + * @param string[] $uHostIds + */ + public function setUHostIds(array $uHostIds) + { + $this->set("UHostIds", $uHostIds); + } +} diff --git a/src/UCompShare/Apis/CreateULHostInstanceRequest.php b/src/UCompShare/Apis/CreateULHostInstanceRequest.php new file mode 100644 index 0000000..247bd48 --- /dev/null +++ b/src/UCompShare/Apis/CreateULHostInstanceRequest.php @@ -0,0 +1,273 @@ + "CreateULHostInstance"]); + $this->markRequired("Region"); + $this->markRequired("ImageId"); + $this->markRequired("BundleId"); + $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); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ImageId: 镜像ID。 请通过 [DescribeImage](describe_image.html)获取 + * + * @return string|null + */ + public function getImageId() + { + return $this->get("ImageId"); + } + + /** + * ImageId: 镜像ID。 请通过 [DescribeImage](describe_image.html)获取 + * + * @param string $imageId + */ + public function setImageId($imageId) + { + $this->set("ImageId", $imageId); + } + + /** + * BundleId: 套餐ID。如:"ulh.c1m1s40b30t800" + * + * @return string|null + */ + public function getBundleId() + { + return $this->get("BundleId"); + } + + /** + * BundleId: 套餐ID。如:"ulh.c1m1s40b30t800" + * + * @param string $bundleId + */ + public function setBundleId($bundleId) + { + $this->set("BundleId", $bundleId); + } + + /** + * Password: ULHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64 + * + * @return string|null + */ + public function getPassword() + { + return $this->get("Password"); + } + + /** + * Password: ULHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64 + * + * @param string $password + */ + public function setPassword($password) + { + $this->set("Password", $password); + } + + /** + * Name: 轻量应用主机名称。默认:套餐ID。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 轻量应用主机名称。默认:套餐ID。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * ChargeType: 计费模式。枚举值: \\ > Year,按年付费; \\ > Month,按月付费;默认:Month + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费模式。枚举值: \\ > Year,按年付费; \\ > Month,按月付费;默认: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); + } + + /** + * VPCId: VPC ID。默认为当前地域的默认VPC。 + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: VPC ID。默认为当前地域的默认VPC。 + * + * @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); + } + + /** + * SecurityGroupId: 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 [DescribeFirewall](api/unet-api/describe_firewall.html)。 + * + * @return string|null + */ + public function getSecurityGroupId() + { + return $this->get("SecurityGroupId"); + } + + /** + * SecurityGroupId: 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 [DescribeFirewall](api/unet-api/describe_firewall.html)。 + * + * @param string $securityGroupId + */ + public function setSecurityGroupId($securityGroupId) + { + $this->set("SecurityGroupId", $securityGroupId); + } + + /** + * CouponId: 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看 + * + * @return string|null + */ + public function getCouponId() + { + return $this->get("CouponId"); + } + + /** + * CouponId: 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看 + * + * @param string $couponId + */ + public function setCouponId($couponId) + { + $this->set("CouponId", $couponId); + } +} diff --git a/src/UCompShare/Apis/CreateULHostInstanceResponse.php b/src/UCompShare/Apis/CreateULHostInstanceResponse.php new file mode 100644 index 0000000..d374a54 --- /dev/null +++ b/src/UCompShare/Apis/CreateULHostInstanceResponse.php @@ -0,0 +1,44 @@ +get("ULHostId"); + } + + /** + * ULHostId: 实例ID + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Apis/DescribeCommunityImagesRequest.php b/src/UCompShare/Apis/DescribeCommunityImagesRequest.php new file mode 100644 index 0000000..4718e87 --- /dev/null +++ b/src/UCompShare/Apis/DescribeCommunityImagesRequest.php @@ -0,0 +1,232 @@ + "DescribeCommunityImages"]); + $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); + } + + /** + * CompShareImageId: 镜像Id。支持指定镜像Id查询 + * + * @return string|null + */ + public function getCompShareImageId() + { + return $this->get("CompShareImageId"); + } + + /** + * CompShareImageId: 镜像Id。支持指定镜像Id查询 + * + * @param string $compShareImageId + */ + public function setCompShareImageId($compShareImageId) + { + $this->set("CompShareImageId", $compShareImageId); + } + + /** + * Name: 镜像名称。模糊搜索 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 镜像名称。模糊搜索 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Author: 搜索指定作者发布的镜像 + * + * @return string|null + */ + public function getAuthor() + { + return $this->get("Author"); + } + + /** + * Author: 搜索指定作者发布的镜像 + * + * @param string $author + */ + public function setAuthor($author) + { + $this->set("Author", $author); + } + + /** + * Offset: 列表起始位置偏移量,默认为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 列表起始位置偏移量,默认为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * Limit: 返回数据长度,默认为20,最大100 + * + * @return string|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 返回数据长度,默认为20,最大100 + * + * @param string $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } + + /** + * Tag: 按标签名称搜索,精确匹配 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 按标签名称搜索,精确匹配 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * SortCondition: + * + * @return DescribeCommunityImagesParamSortCondition|null + */ + public function getSortCondition() + { + return new DescribeCommunityImagesParamSortCondition($this->get("SortCondition")); + } + + /** + * SortCondition: + * + * @param DescribeCommunityImagesParamSortCondition $sortCondition + */ + public function setSortCondition(array $sortCondition) + { + $this->set("SortCondition", $sortCondition->getAll()); + } +} diff --git a/src/UCompShare/Apis/DescribeCommunityImagesResponse.php b/src/UCompShare/Apis/DescribeCommunityImagesResponse.php new file mode 100644 index 0000000..15f80d8 --- /dev/null +++ b/src/UCompShare/Apis/DescribeCommunityImagesResponse.php @@ -0,0 +1,79 @@ +get("ImageSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CompShareImage($item)); + } + return $result; + } + + /** + * ImageSet: 镜像详情列表 + * + * @param CompShareImage[] $imageSet + */ + public function setImageSet(array $imageSet) + { + $result = []; + foreach ($imageSet 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/UCompShare/Apis/DescribeCompShareCustomImagesRequest.php b/src/UCompShare/Apis/DescribeCompShareCustomImagesRequest.php new file mode 100644 index 0000000..3b4aedf --- /dev/null +++ b/src/UCompShare/Apis/DescribeCompShareCustomImagesRequest.php @@ -0,0 +1,151 @@ + "DescribeCompShareCustomImages"]); + $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); + } + + /** + * CompShareImageId: 指定镜像Id查询 + * + * @return string|null + */ + public function getCompShareImageId() + { + return $this->get("CompShareImageId"); + } + + /** + * CompShareImageId: 指定镜像Id查询 + * + * @param string $compShareImageId + */ + public function setCompShareImageId($compShareImageId) + { + $this->set("CompShareImageId", $compShareImageId); + } + + /** + * Offset: 列表起始位置偏移量,默认为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 列表起始位置偏移量,默认为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * Limit: 返回数据长度,默认为20,最大100 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 返回数据长度,默认为20,最大100 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } +} diff --git a/src/UCompShare/Apis/DescribeCompShareCustomImagesResponse.php b/src/UCompShare/Apis/DescribeCompShareCustomImagesResponse.php new file mode 100644 index 0000000..9767054 --- /dev/null +++ b/src/UCompShare/Apis/DescribeCompShareCustomImagesResponse.php @@ -0,0 +1,79 @@ +get("ImageSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CompShareImage($item)); + } + return $result; + } + + /** + * ImageSet: 镜像详情信息 + * + * @param CompShareImage[] $imageSet + */ + public function setImageSet(array $imageSet) + { + $result = []; + foreach ($imageSet 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/UCompShare/Apis/DescribeCompShareImagesRequest.php b/src/UCompShare/Apis/DescribeCompShareImagesRequest.php new file mode 100644 index 0000000..8cc785e --- /dev/null +++ b/src/UCompShare/Apis/DescribeCompShareImagesRequest.php @@ -0,0 +1,230 @@ + "DescribeCompShareImages"]); + $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); + } + + /** + * ImageType: 镜像类型。枚举值- System 平台镜像- App 应用镜像默认:System + * + * @return string|null + */ + public function getImageType() + { + return $this->get("ImageType"); + } + + /** + * ImageType: 镜像类型。枚举值- System 平台镜像- App 应用镜像默认:System + * + * @param string $imageType + */ + public function setImageType($imageType) + { + $this->set("ImageType", $imageType); + } + + /** + * CompShareImageId: 镜像Id。支持指定Id查询 + * + * @return string|null + */ + public function getCompShareImageId() + { + return $this->get("CompShareImageId"); + } + + /** + * CompShareImageId: 镜像Id。支持指定Id查询 + * + * @param string $compShareImageId + */ + public function setCompShareImageId($compShareImageId) + { + $this->set("CompShareImageId", $compShareImageId); + } + + /** + * Name: 镜像名称。支持模糊搜索 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 镜像名称。支持模糊搜索 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Author: 镜像作者昵称 + * + * @return string|null + */ + public function getAuthor() + { + return $this->get("Author"); + } + + /** + * Author: 镜像作者昵称 + * + * @param string $author + */ + public function setAuthor($author) + { + $this->set("Author", $author); + } + + /** + * Tag: 镜像标签 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 镜像标签 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * Offset: 列表起始位置偏移量,默认为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 列表起始位置偏移量,默认为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * Limit: 返回数据长度,默认为20,最大100 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 返回数据长度,默认为20,最大100 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } +} diff --git a/src/UCompShare/Apis/DescribeCompShareImagesResponse.php b/src/UCompShare/Apis/DescribeCompShareImagesResponse.php new file mode 100644 index 0000000..4d0f389 --- /dev/null +++ b/src/UCompShare/Apis/DescribeCompShareImagesResponse.php @@ -0,0 +1,79 @@ +get("ImageSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CompShareImage($item)); + } + return $result; + } + + /** + * ImageSet: 镜像详情列表 + * + * @param CompShareImage[] $imageSet + */ + public function setImageSet(array $imageSet) + { + $result = []; + foreach ($imageSet 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/UCompShare/Apis/DescribeCompShareInstanceRequest.php b/src/UCompShare/Apis/DescribeCompShareInstanceRequest.php new file mode 100644 index 0000000..a0b2288 --- /dev/null +++ b/src/UCompShare/Apis/DescribeCompShareInstanceRequest.php @@ -0,0 +1,169 @@ + "DescribeCompShareInstance"]); + } + + + + /** + * 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); + } + + /** + * UHostIds: 【数组】UHost主机的资源ID,例如UHostIds.0代表希望获取信息 的主机1,UHostIds.1代表主机2。 如果不传入,则返回当前Region 所有符合条件的UHost实例。 + * + * @return string[]|null + */ + public function getUHostIds() + { + return $this->get("UHostIds"); + } + + /** + * UHostIds: 【数组】UHost主机的资源ID,例如UHostIds.0代表希望获取信息 的主机1,UHostIds.1代表主机2。 如果不传入,则返回当前Region 所有符合条件的UHost实例。 + * + * @param string[] $uHostIds + */ + public function setUHostIds(array $uHostIds) + { + $this->set("UHostIds", $uHostIds); + } + + /** + * WithoutGpu: 无卡GPU + * + * @return boolean|null + */ + public function getWithoutGpu() + { + return $this->get("WithoutGpu"); + } + + /** + * WithoutGpu: 无卡GPU + * + * @param boolean $withoutGpu + */ + public function setWithoutGpu($withoutGpu) + { + $this->set("WithoutGpu", $withoutGpu); + } + + /** + * Offset: 列表起始位置偏移量,默认为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 列表起始位置偏移量,默认为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * Limit: 返回数据长度,默认为20,最大100 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 返回数据长度,默认为20,最大100 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } +} diff --git a/src/UCompShare/Apis/DescribeCompShareInstanceResponse.php b/src/UCompShare/Apis/DescribeCompShareInstanceResponse.php new file mode 100644 index 0000000..ce87086 --- /dev/null +++ b/src/UCompShare/Apis/DescribeCompShareInstanceResponse.php @@ -0,0 +1,86 @@ +get("TotalCount"); + } + + /** + * TotalCount: UHostInstance总数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } + + /** + * UHostSet: 云主机实例列表,每项参数可见下面 UHostInstanceSet + * + * @return CompShareInstanceSet[]|null + */ + public function getUHostSet() + { + $items = $this->get("UHostSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CompShareInstanceSet($item)); + } + return $result; + } + + /** + * UHostSet: 云主机实例列表,每项参数可见下面 UHostInstanceSet + * + * @param CompShareInstanceSet[] $uHostSet + */ + public function setUHostSet(array $uHostSet) + { + $result = []; + foreach ($uHostSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UCompShare/Apis/DescribeULHostBundlesRequest.php b/src/UCompShare/Apis/DescribeULHostBundlesRequest.php new file mode 100644 index 0000000..7ec5622 --- /dev/null +++ b/src/UCompShare/Apis/DescribeULHostBundlesRequest.php @@ -0,0 +1,70 @@ + "DescribeULHostBundles"]); + $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/UCompShare/Apis/DescribeULHostBundlesResponse.php b/src/UCompShare/Apis/DescribeULHostBundlesResponse.php new file mode 100644 index 0000000..da4ff03 --- /dev/null +++ b/src/UCompShare/Apis/DescribeULHostBundlesResponse.php @@ -0,0 +1,57 @@ +get("Bundles"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new Bundle($item)); + } + return $result; + } + + /** + * Bundles: 套餐列表 + * + * @param Bundle[] $bundles + */ + public function setBundles(array $bundles) + { + $result = []; + foreach ($bundles as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UCompShare/Apis/DescribeULHostInstanceRequest.php b/src/UCompShare/Apis/DescribeULHostInstanceRequest.php new file mode 100644 index 0000000..faf76e2 --- /dev/null +++ b/src/UCompShare/Apis/DescribeULHostInstanceRequest.php @@ -0,0 +1,130 @@ + "DescribeULHostInstance"]); + $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); + } + + /** + * ULHostIds: 【数组】轻量应用云主机ID。 + * + * @return string[]|null + */ + public function getULHostIds() + { + return $this->get("ULHostIds"); + } + + /** + * ULHostIds: 【数组】轻量应用云主机ID。 + * + * @param string[] $ulHostIds + */ + public function setULHostIds(array $ulHostIds) + { + $this->set("ULHostIds", $ulHostIds); + } + + /** + * Offset: 列表起始位置偏移量,默认为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 列表起始位置偏移量,默认为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * Limit: 返回数据长度,默认为20,最大100 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 返回数据长度,默认为20,最大100 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } +} diff --git a/src/UCompShare/Apis/DescribeULHostInstanceResponse.php b/src/UCompShare/Apis/DescribeULHostInstanceResponse.php new file mode 100644 index 0000000..7d9b2db --- /dev/null +++ b/src/UCompShare/Apis/DescribeULHostInstanceResponse.php @@ -0,0 +1,60 @@ +get("ULHostInstanceSets"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ULHostInstanceSet($item)); + } + return $result; + } + + /** + * ULHostInstanceSets: 实例列表 + * + * @param ULHostInstanceSet[] $ulHostInstanceSets + */ + public function setULHostInstanceSets(array $ulHostInstanceSets) + { + $result = []; + foreach ($ulHostInstanceSets as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UCompShare/Apis/GetULHostInstancePriceRequest.php b/src/UCompShare/Apis/GetULHostInstancePriceRequest.php new file mode 100644 index 0000000..9d34262 --- /dev/null +++ b/src/UCompShare/Apis/GetULHostInstancePriceRequest.php @@ -0,0 +1,151 @@ + "GetULHostInstancePrice"]); + $this->markRequired("Region"); + $this->markRequired("BundleId"); + } + + + + /** + * 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); + } + + /** + * BundleId: 套餐ID + * + * @return string|null + */ + public function getBundleId() + { + return $this->get("BundleId"); + } + + /** + * BundleId: 套餐ID + * + * @param string $bundleId + */ + public function setBundleId($bundleId) + { + $this->set("BundleId", $bundleId); + } + + /** + * ChargeType: 获取指定计费模式的价格。枚举值:\\ > Year,按年付费; \\ > Month。未指定时,返回所有计费模式价格 + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 获取指定计费模式的价格。枚举值:\\ > Year,按年付费; \\ > Month。未指定时,返回所有计费模式价格 + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * Count: 购买台数,范围[1,5]。默认:1 + * + * @return integer|null + */ + public function getCount() + { + return $this->get("Count"); + } + + /** + * Count: 购买台数,范围[1,5]。默认:1 + * + * @param int $count + */ + public function setCount($count) + { + $this->set("Count", $count); + } + + /** + * 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); + } +} diff --git a/src/UCompShare/Apis/GetULHostInstancePriceResponse.php b/src/UCompShare/Apis/GetULHostInstancePriceResponse.php new file mode 100644 index 0000000..606bef1 --- /dev/null +++ b/src/UCompShare/Apis/GetULHostInstancePriceResponse.php @@ -0,0 +1,57 @@ +get("PriceSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ULHostPriceSet($item)); + } + return $result; + } + + /** + * PriceSet: 价格 + * + * @param ULHostPriceSet[] $priceSet + */ + public function setPriceSet(array $priceSet) + { + $result = []; + foreach ($priceSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UCompShare/Apis/GetULHostRenewPriceRequest.php b/src/UCompShare/Apis/GetULHostRenewPriceRequest.php new file mode 100644 index 0000000..292f9d7 --- /dev/null +++ b/src/UCompShare/Apis/GetULHostRenewPriceRequest.php @@ -0,0 +1,111 @@ + "GetULHostRenewPrice"]); + $this->markRequired("Region"); + $this->markRequired("ULHostId"); + } + + + + /** + * 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); + } + + /** + * ULHostId: ULHost实例ID + * + * @return string|null + */ + public function getULHostId() + { + return $this->get("ULHostId"); + } + + /** + * ULHostId: ULHost实例ID + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } + + /** + * ChargeType: 计费类型。支持:Year/Month;默认:Month + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费类型。支持:Year/Month;默认:Month + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } +} diff --git a/src/UCompShare/Apis/GetULHostRenewPriceResponse.php b/src/UCompShare/Apis/GetULHostRenewPriceResponse.php new file mode 100644 index 0000000..50c480d --- /dev/null +++ b/src/UCompShare/Apis/GetULHostRenewPriceResponse.php @@ -0,0 +1,57 @@ +get("PriceSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ULHostPriceSet($item)); + } + return $result; + } + + /** + * PriceSet: 价格 + * + * @param ULHostPriceSet[] $priceSet + */ + public function setPriceSet(array $priceSet) + { + $result = []; + foreach ($priceSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UCompShare/Apis/ModifyULHostAttributeRequest.php b/src/UCompShare/Apis/ModifyULHostAttributeRequest.php new file mode 100644 index 0000000..e7ddea1 --- /dev/null +++ b/src/UCompShare/Apis/ModifyULHostAttributeRequest.php @@ -0,0 +1,131 @@ + "ModifyULHostAttribute"]); + $this->markRequired("Region"); + $this->markRequired("ULHostId"); + } + + + + /** + * 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); + } + + /** + * ULHostId: ULHost实例Id + * + * @return string|null + */ + public function getULHostId() + { + return $this->get("ULHostId"); + } + + /** + * ULHostId: ULHost实例Id + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } + + /** + * Name: 名称。和Remark至少选择一个进行修改 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 名称。和Remark至少选择一个进行修改 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Remark: 备注。和Name至少选择一个进行修改 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 备注。和Name至少选择一个进行修改 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } +} diff --git a/src/UCompShare/Apis/ModifyULHostAttributeResponse.php b/src/UCompShare/Apis/ModifyULHostAttributeResponse.php new file mode 100644 index 0000000..8704da7 --- /dev/null +++ b/src/UCompShare/Apis/ModifyULHostAttributeResponse.php @@ -0,0 +1,44 @@ +get("ULHostId"); + } + + /** + * ULHostId: ULHost实例Id + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Apis/PoweroffULHostInstanceRequest.php b/src/UCompShare/Apis/PoweroffULHostInstanceRequest.php new file mode 100644 index 0000000..aeb32ca --- /dev/null +++ b/src/UCompShare/Apis/PoweroffULHostInstanceRequest.php @@ -0,0 +1,91 @@ + "PoweroffULHostInstance"]); + $this->markRequired("Region"); + $this->markRequired("ULHostId"); + } + + + + /** + * 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); + } + + /** + * ULHostId: ULHost实例ID + * + * @return string|null + */ + public function getULHostId() + { + return $this->get("ULHostId"); + } + + /** + * ULHostId: ULHost实例ID + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Apis/PoweroffULHostInstanceResponse.php b/src/UCompShare/Apis/PoweroffULHostInstanceResponse.php new file mode 100644 index 0000000..4b37caf --- /dev/null +++ b/src/UCompShare/Apis/PoweroffULHostInstanceResponse.php @@ -0,0 +1,44 @@ +get("ULHostId"); + } + + /** + * ULHostId: ULHost实例ID + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Apis/RebootCompShareInstanceRequest.php b/src/UCompShare/Apis/RebootCompShareInstanceRequest.php new file mode 100644 index 0000000..3ec0d6a --- /dev/null +++ b/src/UCompShare/Apis/RebootCompShareInstanceRequest.php @@ -0,0 +1,112 @@ + "RebootCompShareInstance"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("UHostId"); + } + + + + /** + * 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); + } + + /** + * UHostId: 实例Id + * + * @return string|null + */ + public function getUHostId() + { + return $this->get("UHostId"); + } + + /** + * UHostId: 实例Id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } +} diff --git a/src/UCompShare/Apis/RebootCompShareInstanceResponse.php b/src/UCompShare/Apis/RebootCompShareInstanceResponse.php new file mode 100644 index 0000000..70caf92 --- /dev/null +++ b/src/UCompShare/Apis/RebootCompShareInstanceResponse.php @@ -0,0 +1,44 @@ +get("UHostId"); + } + + /** + * UHostId: 实例Id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } +} diff --git a/src/UCompShare/Apis/RebootULHostInstanceRequest.php b/src/UCompShare/Apis/RebootULHostInstanceRequest.php new file mode 100644 index 0000000..950692f --- /dev/null +++ b/src/UCompShare/Apis/RebootULHostInstanceRequest.php @@ -0,0 +1,91 @@ + "RebootULHostInstance"]); + $this->markRequired("Region"); + $this->markRequired("ULHostId"); + } + + + + /** + * 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); + } + + /** + * ULHostId: ULHost实例ID + * + * @return string|null + */ + public function getULHostId() + { + return $this->get("ULHostId"); + } + + /** + * ULHostId: ULHost实例ID + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Apis/RebootULHostInstanceResponse.php b/src/UCompShare/Apis/RebootULHostInstanceResponse.php new file mode 100644 index 0000000..6c3f64f --- /dev/null +++ b/src/UCompShare/Apis/RebootULHostInstanceResponse.php @@ -0,0 +1,44 @@ +get("ULHostId"); + } + + /** + * ULHostId: ULHost实例ID + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Apis/ReinstallCompShareInstanceRequest.php b/src/UCompShare/Apis/ReinstallCompShareInstanceRequest.php new file mode 100644 index 0000000..a115cf6 --- /dev/null +++ b/src/UCompShare/Apis/ReinstallCompShareInstanceRequest.php @@ -0,0 +1,153 @@ + "ReinstallCompShareInstance"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("UHostId"); + $this->markRequired("CompShareImageId"); + } + + + + /** + * 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); + } + + /** + * UHostId: 实例Id + * + * @return string|null + */ + public function getUHostId() + { + return $this->get("UHostId"); + } + + /** + * UHostId: 实例Id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } + + /** + * CompShareImageId: 镜像Id + * + * @return string|null + */ + public function getCompShareImageId() + { + return $this->get("CompShareImageId"); + } + + /** + * CompShareImageId: 镜像Id + * + * @param string $compShareImageId + */ + public function setCompShareImageId($compShareImageId) + { + $this->set("CompShareImageId", $compShareImageId); + } + + /** + * Password: 实例的新密码 + * + * @return string|null + */ + public function getPassword() + { + return $this->get("Password"); + } + + /** + * Password: 实例的新密码 + * + * @param string $password + */ + public function setPassword($password) + { + $this->set("Password", $password); + } +} diff --git a/src/UCompShare/Apis/ReinstallCompShareInstanceResponse.php b/src/UCompShare/Apis/ReinstallCompShareInstanceResponse.php new file mode 100644 index 0000000..88c3cf0 --- /dev/null +++ b/src/UCompShare/Apis/ReinstallCompShareInstanceResponse.php @@ -0,0 +1,44 @@ +get("UHostId"); + } + + /** + * UHostId: 实例Id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } +} diff --git a/src/UCompShare/Apis/ReinstallULHostInstanceRequest.php b/src/UCompShare/Apis/ReinstallULHostInstanceRequest.php new file mode 100644 index 0000000..4528517 --- /dev/null +++ b/src/UCompShare/Apis/ReinstallULHostInstanceRequest.php @@ -0,0 +1,133 @@ + "ReinstallULHostInstance"]); + $this->markRequired("Region"); + $this->markRequired("ImageId"); + $this->markRequired("ULHostId"); + $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); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ImageId: 镜像Id。暂不支持使用自定义镜像重装 + * + * @return string|null + */ + public function getImageId() + { + return $this->get("ImageId"); + } + + /** + * ImageId: 镜像Id。暂不支持使用自定义镜像重装 + * + * @param string $imageId + */ + public function setImageId($imageId) + { + $this->set("ImageId", $imageId); + } + + /** + * ULHostId: 实例Id + * + * @return string|null + */ + public function getULHostId() + { + return $this->get("ULHostId"); + } + + /** + * ULHostId: 实例Id + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } + + /** + * Password: 登陆密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64 UGFzc3dvcmQx + * + * @return string|null + */ + public function getPassword() + { + return $this->get("Password"); + } + + /** + * Password: 登陆密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64 UGFzc3dvcmQx + * + * @param string $password + */ + public function setPassword($password) + { + $this->set("Password", $password); + } +} diff --git a/src/UCompShare/Apis/ReinstallULHostInstanceResponse.php b/src/UCompShare/Apis/ReinstallULHostInstanceResponse.php new file mode 100644 index 0000000..81ea515 --- /dev/null +++ b/src/UCompShare/Apis/ReinstallULHostInstanceResponse.php @@ -0,0 +1,44 @@ +get("ULHostId"); + } + + /** + * ULHostId: 实例Id + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Apis/ResetCompShareInstancePasswordRequest.php b/src/UCompShare/Apis/ResetCompShareInstancePasswordRequest.php new file mode 100644 index 0000000..86de213 --- /dev/null +++ b/src/UCompShare/Apis/ResetCompShareInstancePasswordRequest.php @@ -0,0 +1,133 @@ + "ResetCompShareInstancePassword"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("UHostId"); + $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); + } + + /** + * UHostId: 实例Id + * + * @return string|null + */ + public function getUHostId() + { + return $this->get("UHostId"); + } + + /** + * UHostId: 实例Id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } + + /** + * 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/UCompShare/Apis/ResetCompShareInstancePasswordResponse.php b/src/UCompShare/Apis/ResetCompShareInstancePasswordResponse.php new file mode 100644 index 0000000..8dc870c --- /dev/null +++ b/src/UCompShare/Apis/ResetCompShareInstancePasswordResponse.php @@ -0,0 +1,44 @@ +get("UHostId"); + } + + /** + * UHostId: 实例Id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } +} diff --git a/src/UCompShare/Apis/ResetULHostInstancePasswordRequest.php b/src/UCompShare/Apis/ResetULHostInstancePasswordRequest.php new file mode 100644 index 0000000..34d01cf --- /dev/null +++ b/src/UCompShare/Apis/ResetULHostInstancePasswordRequest.php @@ -0,0 +1,112 @@ + "ResetULHostInstancePassword"]); + $this->markRequired("Region"); + $this->markRequired("ULHostId"); + $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); + } + + /** + * 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); + } + + /** + * ULHostId: ULHost实例ID + * + * @return string|null + */ + public function getULHostId() + { + return $this->get("ULHostId"); + } + + /** + * ULHostId: ULHost实例ID + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } + + /** + * Password: ULHost新密码(密码格式使用BASE64编码) + * + * @return string|null + */ + public function getPassword() + { + return $this->get("Password"); + } + + /** + * Password: ULHost新密码(密码格式使用BASE64编码) + * + * @param string $password + */ + public function setPassword($password) + { + $this->set("Password", $password); + } +} diff --git a/src/UCompShare/Apis/ResetULHostInstancePasswordResponse.php b/src/UCompShare/Apis/ResetULHostInstancePasswordResponse.php new file mode 100644 index 0000000..b512143 --- /dev/null +++ b/src/UCompShare/Apis/ResetULHostInstancePasswordResponse.php @@ -0,0 +1,44 @@ +get("ULHostId"); + } + + /** + * ULHostId: ULHost实例ID + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Apis/StartCompShareInstanceRequest.php b/src/UCompShare/Apis/StartCompShareInstanceRequest.php new file mode 100644 index 0000000..74bd6a9 --- /dev/null +++ b/src/UCompShare/Apis/StartCompShareInstanceRequest.php @@ -0,0 +1,112 @@ + "StartCompShareInstance"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("UHostId"); + } + + + + /** + * 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); + } + + /** + * UHostId: 实例Id + * + * @return string|null + */ + public function getUHostId() + { + return $this->get("UHostId"); + } + + /** + * UHostId: 实例Id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } +} diff --git a/src/UCompShare/Apis/StartCompShareInstanceResponse.php b/src/UCompShare/Apis/StartCompShareInstanceResponse.php new file mode 100644 index 0000000..ee0872c --- /dev/null +++ b/src/UCompShare/Apis/StartCompShareInstanceResponse.php @@ -0,0 +1,44 @@ +get("UHostId"); + } + + /** + * UHostId: 实例Id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } +} diff --git a/src/UCompShare/Apis/StartULHostInstanceRequest.php b/src/UCompShare/Apis/StartULHostInstanceRequest.php new file mode 100644 index 0000000..bf8ab9a --- /dev/null +++ b/src/UCompShare/Apis/StartULHostInstanceRequest.php @@ -0,0 +1,91 @@ + "StartULHostInstance"]); + $this->markRequired("Region"); + $this->markRequired("ULHostId"); + } + + + + /** + * 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); + } + + /** + * ULHostId: ULHost实例ID + * + * @return string|null + */ + public function getULHostId() + { + return $this->get("ULHostId"); + } + + /** + * ULHostId: ULHost实例ID + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Apis/StartULHostInstanceResponse.php b/src/UCompShare/Apis/StartULHostInstanceResponse.php new file mode 100644 index 0000000..157ef43 --- /dev/null +++ b/src/UCompShare/Apis/StartULHostInstanceResponse.php @@ -0,0 +1,44 @@ +get("ULHostId"); + } + + /** + * ULHostId: ULHost实例ID + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Apis/StopCompShareInstanceRequest.php b/src/UCompShare/Apis/StopCompShareInstanceRequest.php new file mode 100644 index 0000000..f94416c --- /dev/null +++ b/src/UCompShare/Apis/StopCompShareInstanceRequest.php @@ -0,0 +1,112 @@ + "StopCompShareInstance"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("UHostId"); + } + + + + /** + * 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); + } + + /** + * UHostId: 实例Id + * + * @return string|null + */ + public function getUHostId() + { + return $this->get("UHostId"); + } + + /** + * UHostId: 实例Id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } +} diff --git a/src/UCompShare/Apis/StopCompShareInstanceResponse.php b/src/UCompShare/Apis/StopCompShareInstanceResponse.php new file mode 100644 index 0000000..2a605ed --- /dev/null +++ b/src/UCompShare/Apis/StopCompShareInstanceResponse.php @@ -0,0 +1,44 @@ +get("UHostId"); + } + + /** + * UHostId: 实例Id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } +} diff --git a/src/UCompShare/Apis/StopULHostInstanceRequest.php b/src/UCompShare/Apis/StopULHostInstanceRequest.php new file mode 100644 index 0000000..56d1350 --- /dev/null +++ b/src/UCompShare/Apis/StopULHostInstanceRequest.php @@ -0,0 +1,91 @@ + "StopULHostInstance"]); + $this->markRequired("Region"); + $this->markRequired("ULHostId"); + } + + + + /** + * 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); + } + + /** + * ULHostId: ULHost实例ID。 + * + * @return string|null + */ + public function getULHostId() + { + return $this->get("ULHostId"); + } + + /** + * ULHostId: ULHost实例ID。 + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Apis/StopULHostInstanceResponse.php b/src/UCompShare/Apis/StopULHostInstanceResponse.php new file mode 100644 index 0000000..b3e794a --- /dev/null +++ b/src/UCompShare/Apis/StopULHostInstanceResponse.php @@ -0,0 +1,44 @@ +get("ULHostId"); + } + + /** + * ULHostId: ULHost实例ID + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Apis/TerminateCompShareInstanceRequest.php b/src/UCompShare/Apis/TerminateCompShareInstanceRequest.php new file mode 100644 index 0000000..2dfd02b --- /dev/null +++ b/src/UCompShare/Apis/TerminateCompShareInstanceRequest.php @@ -0,0 +1,112 @@ + "TerminateCompShareInstance"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("UHostId"); + } + + + + /** + * 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); + } + + /** + * UHostId: 虚机资源id + * + * @return string|null + */ + public function getUHostId() + { + return $this->get("UHostId"); + } + + /** + * UHostId: 虚机资源id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } +} diff --git a/src/UCompShare/Apis/TerminateCompShareInstanceResponse.php b/src/UCompShare/Apis/TerminateCompShareInstanceResponse.php new file mode 100644 index 0000000..f566ff8 --- /dev/null +++ b/src/UCompShare/Apis/TerminateCompShareInstanceResponse.php @@ -0,0 +1,44 @@ +get("UHostId"); + } + + /** + * UHostId: 虚机资源id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } +} diff --git a/src/UCompShare/Apis/TerminateULHostInstanceRequest.php b/src/UCompShare/Apis/TerminateULHostInstanceRequest.php new file mode 100644 index 0000000..96a2556 --- /dev/null +++ b/src/UCompShare/Apis/TerminateULHostInstanceRequest.php @@ -0,0 +1,111 @@ + "TerminateULHostInstance"]); + $this->markRequired("Region"); + $this->markRequired("ULHostId"); + } + + + + /** + * 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); + } + + /** + * ULHostId: ULHost资源Id + * + * @return string|null + */ + public function getULHostId() + { + return $this->get("ULHostId"); + } + + /** + * ULHostId: ULHost资源Id + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } + + /** + * ReleaseUDisk: 删除主机时是否同时删除挂载的数据盘。默认为false。 + * + * @return boolean|null + */ + public function getReleaseUDisk() + { + return $this->get("ReleaseUDisk"); + } + + /** + * ReleaseUDisk: 删除主机时是否同时删除挂载的数据盘。默认为false。 + * + * @param boolean $releaseUDisk + */ + public function setReleaseUDisk($releaseUDisk) + { + $this->set("ReleaseUDisk", $releaseUDisk); + } +} diff --git a/src/UCompShare/Apis/TerminateULHostInstanceResponse.php b/src/UCompShare/Apis/TerminateULHostInstanceResponse.php new file mode 100644 index 0000000..57cc217 --- /dev/null +++ b/src/UCompShare/Apis/TerminateULHostInstanceResponse.php @@ -0,0 +1,64 @@ +get("InRecycle"); + } + + /** + * InRecycle: 用于判断主机删除时是否进入回收站。放入回收站:"Yes", 彻底删除:“No”。 + * + * @param string $inRecycle + */ + public function setInRecycle($inRecycle) + { + $this->set("InRecycle", $inRecycle); + } + + /** + * ULHostId: ULHost 实例 Id + * + * @return string|null + */ + public function getULHostId() + { + return $this->get("ULHostId"); + } + + /** + * ULHostId: ULHost 实例 Id + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } +} diff --git a/src/UCompShare/Models/Bundle.php b/src/UCompShare/Models/Bundle.php new file mode 100644 index 0000000..1e389f6 --- /dev/null +++ b/src/UCompShare/Models/Bundle.php @@ -0,0 +1,144 @@ +get("BundleId"); + } + + /** + * BundleId: 套餐ID。 + * + * @param string $bundleId + */ + public function setBundleId($bundleId) + { + $this->set("BundleId", $bundleId); + } + + /** + * 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: 内存大小。单位:MB。 + * + * @return integer|null + */ + public function getMemory() + { + return $this->get("Memory"); + } + + /** + * Memory: 内存大小。单位:MB。 + * + * @param int $memory + */ + public function setMemory($memory) + { + $this->set("Memory", $memory); + } + + /** + * SysDiskSpace: 系统盘大小。单位:GB。 + * + * @return integer|null + */ + public function getSysDiskSpace() + { + return $this->get("SysDiskSpace"); + } + + /** + * SysDiskSpace: 系统盘大小。单位:GB。 + * + * @param int $sysDiskSpace + */ + public function setSysDiskSpace($sysDiskSpace) + { + $this->set("SysDiskSpace", $sysDiskSpace); + } + + /** + * Bandwidth: 外网带宽。单位:Mbps。 + * + * @return integer|null + */ + public function getBandwidth() + { + return $this->get("Bandwidth"); + } + + /** + * Bandwidth: 外网带宽。单位:Mbps。 + * + * @param int $bandwidth + */ + public function setBandwidth($bandwidth) + { + $this->set("Bandwidth", $bandwidth); + } + + /** + * TrafficPacket: 流量包大小。单位:GB。 + * + * @return integer|null + */ + public function getTrafficPacket() + { + return $this->get("TrafficPacket"); + } + + /** + * TrafficPacket: 流量包大小。单位:GB。 + * + * @param int $trafficPacket + */ + public function setTrafficPacket($trafficPacket) + { + $this->set("TrafficPacket", $trafficPacket); + } +} diff --git a/src/UCompShare/Models/CompShareImage.php b/src/UCompShare/Models/CompShareImage.php new file mode 100644 index 0000000..a9f3685 --- /dev/null +++ b/src/UCompShare/Models/CompShareImage.php @@ -0,0 +1,624 @@ +get("CompShareImageId"); + } + + /** + * CompShareImageId: 镜像Id + * + * @param string $compShareImageId + */ + public function setCompShareImageId($compShareImageId) + { + $this->set("CompShareImageId", $compShareImageId); + } + + /** + * Name: 镜像名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 镜像名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Author: 镜像作者昵称 + * + * @return string|null + */ + public function getAuthor() + { + return $this->get("Author"); + } + + /** + * Author: 镜像作者昵称 + * + * @param string $author + */ + public function setAuthor($author) + { + $this->set("Author", $author); + } + + /** + * AuthInfo: 镜像作者认证信息 + * + * @return integer|null + */ + public function getAuthInfo() + { + return $this->get("AuthInfo"); + } + + /** + * AuthInfo: 镜像作者认证信息 + * + * @param int $authInfo + */ + public function setAuthInfo($authInfo) + { + $this->set("AuthInfo", $authInfo); + } + + /** + * ImageOwnerAlias: 镜像来源。- Official 平台镜像;- Community 社区镜像 + * + * @return string|null + */ + public function getImageOwnerAlias() + { + return $this->get("ImageOwnerAlias"); + } + + /** + * ImageOwnerAlias: 镜像来源。- Official 平台镜像;- Community 社区镜像 + * + * @param string $imageOwnerAlias + */ + public function setImageOwnerAlias($imageOwnerAlias) + { + $this->set("ImageOwnerAlias", $imageOwnerAlias); + } + + /** + * ImageType: 镜像类型。- System 平台提供的公共镜像;- App 平台提供的应用镜像;- Custom 自制镜像;- Community 社区镜像 + * + * @return string|null + */ + public function getImageType() + { + return $this->get("ImageType"); + } + + /** + * ImageType: 镜像类型。- System 平台提供的公共镜像;- App 平台提供的应用镜像;- Custom 自制镜像;- Community 社区镜像 + * + * @param string $imageType + */ + public function setImageType($imageType) + { + $this->set("ImageType", $imageType); + } + + /** + * IsOfficial: 来源是否为官方镜像【仅自制镜像信息返回该字段】 + * + * @return boolean|null + */ + public function getIsOfficial() + { + return $this->get("IsOfficial"); + } + + /** + * IsOfficial: 来源是否为官方镜像【仅自制镜像信息返回该字段】 + * + * @param boolean $isOfficial + */ + public function setIsOfficial($isOfficial) + { + $this->set("IsOfficial", $isOfficial); + } + + /** + * Container: 是否为容器镜像。- True 容器镜像- False 虚机镜像 + * + * @return string|null + */ + public function getContainer() + { + return $this->get("Container"); + } + + /** + * Container: 是否为容器镜像。- True 容器镜像- False 虚机镜像 + * + * @param string $container + */ + public function setContainer($container) + { + $this->set("Container", $container); + } + + /** + * Status: 镜像状态。- Making 制作中;- Available 可用;- UnAvailable 不可用;- Reviewing 审核中;- Offline 已下线 + * + * @return string|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: 镜像状态。- Making 制作中;- Available 可用;- UnAvailable 不可用;- Reviewing 审核中;- Offline 已下线 + * + * @param string $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * Size: 镜像大小。单位MB + * + * @return integer|null + */ + public function getSize() + { + return $this->get("Size"); + } + + /** + * Size: 镜像大小。单位MB + * + * @param int $size + */ + public function setSize($size) + { + $this->set("Size", $size); + } + + /** + * Visibility: 可见性。0:私密镜像;1:公开至镜像社区 + * + * @return integer|null + */ + public function getVisibility() + { + return $this->get("Visibility"); + } + + /** + * Visibility: 可见性。0:私密镜像;1:公开至镜像社区 + * + * @param int $visibility + */ + public function setVisibility($visibility) + { + $this->set("Visibility", $visibility); + } + + /** + * Description: 镜像描述信息 + * + * @return string|null + */ + public function getDescription() + { + return $this->get("Description"); + } + + /** + * Description: 镜像描述信息 + * + * @param string $description + */ + public function setDescription($description) + { + $this->set("Description", $description); + } + + /** + * Tags: 【array of string】镜像标签 + * + * @return string[]|null + */ + public function getTags() + { + return $this->get("Tags"); + } + + /** + * Tags: 【array of string】镜像标签 + * + * @param string[] $tags + */ + public function setTags(array $tags) + { + $this->set("Tags", $tags); + } + + /** + * Price: 镜像价格。单位:元 + * + * @return float|null + */ + public function getPrice() + { + return $this->get("Price"); + } + + /** + * Price: 镜像价格。单位:元 + * + * @param float $price + */ + public function setPrice($price) + { + $this->set("Price", $price); + } + + /** + * Cover: 镜像封面URL + * + * @return string|null + */ + public function getCover() + { + return $this->get("Cover"); + } + + /** + * Cover: 镜像封面URL + * + * @param string $cover + */ + public function setCover($cover) + { + $this->set("Cover", $cover); + } + + /** + * Readme: 镜像详细描述。仅指定镜像Id查询时返回 + * + * @return string|null + */ + public function getReadme() + { + return $this->get("Readme"); + } + + /** + * Readme: 镜像详细描述。仅指定镜像Id查询时返回 + * + * @param string $readme + */ + public function setReadme($readme) + { + $this->set("Readme", $readme); + } + + /** + * Softwares: 镜像软件信息 + * + * @return Software|null + */ + public function getSoftwares() + { + return new Software($this->get("Softwares")); + } + + /** + * Softwares: 镜像软件信息 + * + * @param Software $softwares + */ + public function setSoftwares(array $softwares) + { + $this->set("Softwares", $softwares->getAll()); + } + + /** + * CreatedCount: 镜像引用创建计数 + * + * @return integer|null + */ + public function getCreatedCount() + { + return $this->get("CreatedCount"); + } + + /** + * CreatedCount: 镜像引用创建计数 + * + * @param int $createdCount + */ + public function setCreatedCount($createdCount) + { + $this->set("CreatedCount", $createdCount); + } + + /** + * FavoritesCount: 镜像收藏计数 + * + * @return integer|null + */ + public function getFavoritesCount() + { + return $this->get("FavoritesCount"); + } + + /** + * FavoritesCount: 镜像收藏计数 + * + * @param int $favoritesCount + */ + public function setFavoritesCount($favoritesCount) + { + $this->set("FavoritesCount", $favoritesCount); + } + + /** + * FailedReason: 镜像制作失败错误原因 + * + * @return string|null + */ + public function getFailedReason() + { + return $this->get("FailedReason"); + } + + /** + * FailedReason: 镜像制作失败错误原因 + * + * @param string $failedReason + */ + public function setFailedReason($failedReason) + { + $this->set("FailedReason", $failedReason); + } + + /** + * CreateTime: 创建时间戳 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间戳 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * PubTime: 发布时间戳 + * + * @return integer|null + */ + public function getPubTime() + { + return $this->get("PubTime"); + } + + /** + * PubTime: 发布时间戳 + * + * @param int $pubTime + */ + public function setPubTime($pubTime) + { + $this->set("PubTime", $pubTime); + } + + /** + * Owner: 镜像所属账号信息 + * + * @return Projects|null + */ + public function getOwner() + { + return new Projects($this->get("Owner")); + } + + /** + * Owner: 镜像所属账号信息 + * + * @param Projects $owner + */ + public function setOwner(array $owner) + { + $this->set("Owner", $owner->getAll()); + } + + /** + * GroupId: 镜像组id + * + * @return string|null + */ + public function getGroupId() + { + return $this->get("GroupId"); + } + + /** + * GroupId: 镜像组id + * + * @param string $groupId + */ + public function setGroupId($groupId) + { + $this->set("GroupId", $groupId); + } + + /** + * VersionName: 版本名称 + * + * @return string|null + */ + public function getVersionName() + { + return $this->get("VersionName"); + } + + /** + * VersionName: 版本名称 + * + * @param string $versionName + */ + public function setVersionName($versionName) + { + $this->set("VersionName", $versionName); + } + + /** + * VersionDesc: 版本描述 + * + * @return string|null + */ + public function getVersionDesc() + { + return $this->get("VersionDesc"); + } + + /** + * VersionDesc: 版本描述 + * + * @param string $versionDesc + */ + public function setVersionDesc($versionDesc) + { + $this->set("VersionDesc", $versionDesc); + } + + /** + * SourceGpuType: 自制镜像来源机型 + * + * @return string|null + */ + public function getSourceGpuType() + { + return $this->get("SourceGpuType"); + } + + /** + * SourceGpuType: 自制镜像来源机型 + * + * @param string $sourceGpuType + */ + public function setSourceGpuType($sourceGpuType) + { + $this->set("SourceGpuType", $sourceGpuType); + } + + /** + * AutoStart: 是否支持自启动 default:false + * + * @return boolean|null + */ + public function getAutoStart() + { + return $this->get("AutoStart"); + } + + /** + * AutoStart: 是否支持自启动 default:false + * + * @param boolean $autoStart + */ + public function setAutoStart($autoStart) + { + $this->set("AutoStart", $autoStart); + } + + /** + * ImageCharge: 是否镜像收费 default: false + * + * @return boolean|null + */ + public function getImageCharge() + { + return $this->get("ImageCharge"); + } + + /** + * ImageCharge: 是否镜像收费 default: false + * + * @param boolean $imageCharge + */ + public function setImageCharge($imageCharge) + { + $this->set("ImageCharge", $imageCharge); + } + + /** + * ImageUseTime: 镜像使用时长 + * + * @return integer|null + */ + public function getImageUseTime() + { + return $this->get("ImageUseTime"); + } + + /** + * ImageUseTime: 镜像使用时长 + * + * @param int $imageUseTime + */ + public function setImageUseTime($imageUseTime) + { + $this->set("ImageUseTime", $imageUseTime); + } +} diff --git a/src/UCompShare/Models/CompShareInstanceSet.php b/src/UCompShare/Models/CompShareInstanceSet.php new file mode 100644 index 0000000..f86b8a9 --- /dev/null +++ b/src/UCompShare/Models/CompShareInstanceSet.php @@ -0,0 +1,984 @@ +get("Zone"); + } + + /** + * Zone: 可用区 + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * StopSchedulerTime: 计划关机时间 + * + * @return integer|null + */ + public function getStopSchedulerTime() + { + return $this->get("StopSchedulerTime"); + } + + /** + * StopSchedulerTime: 计划关机时间 + * + * @param int $stopSchedulerTime + */ + public function setStopSchedulerTime($stopSchedulerTime) + { + $this->set("StopSchedulerTime", $stopSchedulerTime); + } + + /** + * UHostId: 实例Id + * + * @return string|null + */ + public function getUHostId() + { + return $this->get("UHostId"); + } + + /** + * UHostId: 实例Id + * + * @param string $uHostId + */ + public function setUHostId($uHostId) + { + $this->set("UHostId", $uHostId); + } + + /** + * MachineType: 机型信息 + * + * @return string|null + */ + public function getMachineType() + { + return $this->get("MachineType"); + } + + /** + * MachineType: 机型信息 + * + * @param string $machineType + */ + public function setMachineType($machineType) + { + $this->set("MachineType", $machineType); + } + + /** + * CpuPlatform: CPU平台。如"Intel/Auto"、"Amd/Auto"等等 + * + * @return string|null + */ + public function getCpuPlatform() + { + return $this->get("CpuPlatform"); + } + + /** + * CpuPlatform: CPU平台。如"Intel/Auto"、"Amd/Auto"等等 + * + * @param string $cpuPlatform + */ + public function setCpuPlatform($cpuPlatform) + { + $this->set("CpuPlatform", $cpuPlatform); + } + + /** + * CompShareImageId: 镜像Id + * + * @return string|null + */ + public function getCompShareImageId() + { + return $this->get("CompShareImageId"); + } + + /** + * CompShareImageId: 镜像Id + * + * @param string $compShareImageId + */ + public function setCompShareImageId($compShareImageId) + { + $this->set("CompShareImageId", $compShareImageId); + } + + /** + * CompShareImageName: 镜像名称 + * + * @return string|null + */ + public function getCompShareImageName() + { + return $this->get("CompShareImageName"); + } + + /** + * CompShareImageName: 镜像名称 + * + * @param string $compShareImageName + */ + public function setCompShareImageName($compShareImageName) + { + $this->set("CompShareImageName", $compShareImageName); + } + + /** + * CompShareImageOwnerAlias: 镜像来源 + * + * @return string|null + */ + public function getCompShareImageOwnerAlias() + { + return $this->get("CompShareImageOwnerAlias"); + } + + /** + * CompShareImageOwnerAlias: 镜像来源 + * + * @param string $compShareImageOwnerAlias + */ + public function setCompShareImageOwnerAlias($compShareImageOwnerAlias) + { + $this->set("CompShareImageOwnerAlias", $compShareImageOwnerAlias); + } + + /** + * CompShareImageBillId: 用于镜像计费的Id + * + * @return string|null + */ + public function getCompShareImageBillId() + { + return $this->get("CompShareImageBillId"); + } + + /** + * CompShareImageBillId: 用于镜像计费的Id + * + * @param string $compShareImageBillId + */ + public function setCompShareImageBillId($compShareImageBillId) + { + $this->set("CompShareImageBillId", $compShareImageBillId); + } + + /** + * CompShareImageStatus: 镜像状态 + * + * @return string|null + */ + public function getCompShareImageStatus() + { + return $this->get("CompShareImageStatus"); + } + + /** + * CompShareImageStatus: 镜像状态 + * + * @param string $compShareImageStatus + */ + public function setCompShareImageStatus($compShareImageStatus) + { + $this->set("CompShareImageStatus", $compShareImageStatus); + } + + /** + * CompShareImageType: 镜像类型- System 系统镜像- App 应用镜像- Custom 自制镜像- Community 社区镜像 + * + * @return string|null + */ + public function getCompShareImageType() + { + return $this->get("CompShareImageType"); + } + + /** + * CompShareImageType: 镜像类型- System 系统镜像- App 应用镜像- Custom 自制镜像- Community 社区镜像 + * + * @param string $compShareImageType + */ + public function setCompShareImageType($compShareImageType) + { + $this->set("CompShareImageType", $compShareImageType); + } + + /** + * InstanceType: 实例类型。"UHost": 普通主机;"Container": 容器主机 + * + * @return string|null + */ + public function getInstanceType() + { + return $this->get("InstanceType"); + } + + /** + * InstanceType: 实例类型。"UHost": 普通主机;"Container": 容器主机 + * + * @param string $instanceType + */ + public function setInstanceType($instanceType) + { + $this->set("InstanceType", $instanceType); + } + + /** + * 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); + } + + /** + * SshLoginCommand: SSH登录命令 + * + * @return string|null + */ + public function getSshLoginCommand() + { + return $this->get("SshLoginCommand"); + } + + /** + * SshLoginCommand: SSH登录命令 + * + * @param string $sshLoginCommand + */ + public function setSshLoginCommand($sshLoginCommand) + { + $this->set("SshLoginCommand", $sshLoginCommand); + } + + /** + * Name: 实例名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 实例名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Tag: 实例业务组 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 实例业务组 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * Remark: 实例备注 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 实例备注 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } + + /** + * State: 实例状态,枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting; \\ >升级改配中: Resizing; \\ > 未知(空字符串,获取状态超时或出错): + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 实例状态,枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting; \\ >升级改配中: Resizing; \\ > 未知(空字符串,获取状态超时或出错): + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * ChargeType: 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按时付费;Postpay,按需付费 + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按时付费;Postpay,按需付费 + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * 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: 内存大小,单位:MB + * + * @return integer|null + */ + public function getMemory() + { + return $this->get("Memory"); + } + + /** + * Memory: 内存大小,单位:MB + * + * @param int $memory + */ + public function setMemory($memory) + { + $this->set("Memory", $memory); + } + + /** + * GpuType: GPU类型。如: "4090" + * + * @return string|null + */ + public function getGpuType() + { + return $this->get("GpuType"); + } + + /** + * GpuType: GPU类型。如: "4090" + * + * @param string $gpuType + */ + public function setGpuType($gpuType) + { + $this->set("GpuType", $gpuType); + } + + /** + * GPU: GPU个数 + * + * @return integer|null + */ + public function getGPU() + { + return $this->get("GPU"); + } + + /** + * GPU: GPU个数 + * + * @param int $gpu + */ + public function setGPU($gpu) + { + $this->set("GPU", $gpu); + } + + /** + * GraphicsMemory: GPU显存信息 + * + * @return GraphicsMemory|null + */ + public function getGraphicsMemory() + { + return new GraphicsMemory($this->get("GraphicsMemory")); + } + + /** + * GraphicsMemory: GPU显存信息 + * + * @param GraphicsMemory $graphicsMemory + */ + public function setGraphicsMemory(array $graphicsMemory) + { + $this->set("GraphicsMemory", $graphicsMemory->getAll()); + } + + /** + * AutoRenew: 是否自动续费,自动续费:“Yes”,不自动续费:“No” + * + * @return string|null + */ + public function getAutoRenew() + { + return $this->get("AutoRenew"); + } + + /** + * AutoRenew: 是否自动续费,自动续费:“Yes”,不自动续费:“No” + * + * @param string $autoRenew + */ + public function setAutoRenew($autoRenew) + { + $this->set("AutoRenew", $autoRenew); + } + + /** + * IsExpire: 是否过期。Yes:已过期;No:未过期 + * + * @return string|null + */ + public function getIsExpire() + { + return $this->get("IsExpire"); + } + + /** + * IsExpire: 是否过期。Yes:已过期;No:未过期 + * + * @param string $isExpire + */ + public function setIsExpire($isExpire) + { + $this->set("IsExpire", $isExpire); + } + + /** + * OsName: 虚机镜像的名称 + * + * @return string|null + */ + public function getOsName() + { + return $this->get("OsName"); + } + + /** + * OsName: 虚机镜像的名称 + * + * @param string $osName + */ + public function setOsName($osName) + { + $this->set("OsName", $osName); + } + + /** + * OsType: 虚机镜像操作系统类型。"Linux"\"Windows" + * + * @return string|null + */ + public function getOsType() + { + return $this->get("OsType"); + } + + /** + * OsType: 虚机镜像操作系统类型。"Linux"\"Windows" + * + * @param string $osType + */ + public function setOsType($osType) + { + $this->set("OsType", $osType); + } + + /** + * TotalDiskSpace: 总的数据盘存储空间 + * + * @return integer|null + */ + public function getTotalDiskSpace() + { + return $this->get("TotalDiskSpace"); + } + + /** + * TotalDiskSpace: 总的数据盘存储空间 + * + * @param int $totalDiskSpace + */ + public function setTotalDiskSpace($totalDiskSpace) + { + $this->set("TotalDiskSpace", $totalDiskSpace); + } + + /** + * CpuArch: CPU架构。"x86_64"/"i386"等 + * + * @return string|null + */ + public function getCpuArch() + { + return $this->get("CpuArch"); + } + + /** + * CpuArch: CPU架构。"x86_64"/"i386"等 + * + * @param string $cpuArch + */ + public function setCpuArch($cpuArch) + { + $this->set("CpuArch", $cpuArch); + } + + /** + * DiskSet: 详情见UHostDiskSet + * + * @return UHostDiskSet[]|null + */ + public function getDiskSet() + { + $items = $this->get("DiskSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UHostDiskSet($item)); + } + return $result; + } + + /** + * DiskSet: 详情见UHostDiskSet + * + * @param UHostDiskSet[] $diskSet + */ + public function setDiskSet(array $diskSet) + { + $result = []; + foreach ($diskSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * IPSet: 详情见UHostIPSet + * + * @return UHostIPSet[]|null + */ + public function getIPSet() + { + $items = $this->get("IPSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UHostIPSet($item)); + } + return $result; + } + + /** + * IPSet: 详情见UHostIPSet + * + * @param UHostIPSet[] $ipSet + */ + public function setIPSet(array $ipSet) + { + $result = []; + foreach ($ipSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * Softwares: 软件地址 + * + * @return SoftwareAddr[]|null + */ + public function getSoftwares() + { + $items = $this->get("Softwares"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new SoftwareAddr($item)); + } + return $result; + } + + /** + * Softwares: 软件地址 + * + * @param SoftwareAddr[] $softwares + */ + public function setSoftwares(array $softwares) + { + $result = []; + foreach ($softwares as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * InstancePrice: 主机价格 + * + * @return float|null + */ + public function getInstancePrice() + { + return $this->get("InstancePrice"); + } + + /** + * InstancePrice: 主机价格 + * + * @param float $instancePrice + */ + public function setInstancePrice($instancePrice) + { + $this->set("InstancePrice", $instancePrice); + } + + /** + * CompShareImagePrice: 镜像价格 + * + * @return float|null + */ + public function getCompShareImagePrice() + { + return $this->get("CompShareImagePrice"); + } + + /** + * CompShareImagePrice: 镜像价格 + * + * @param float $compShareImagePrice + */ + public function setCompShareImagePrice($compShareImagePrice) + { + $this->set("CompShareImagePrice", $compShareImagePrice); + } + + /** + * ExpireTime: 过期时间 + * + * @return integer|null + */ + public function getExpireTime() + { + return $this->get("ExpireTime"); + } + + /** + * ExpireTime: 过期时间 + * + * @param int $expireTime + */ + public function setExpireTime($expireTime) + { + $this->set("ExpireTime", $expireTime); + } + + /** + * CreateTime: 创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * SupportWithoutGpuStart: 此实例是否支持无卡开机 + * + * @return boolean|null + */ + public function getSupportWithoutGpuStart() + { + return $this->get("SupportWithoutGpuStart"); + } + + /** + * SupportWithoutGpuStart: 此实例是否支持无卡开机 + * + * @param boolean $supportWithoutGpuStart + */ + public function setSupportWithoutGpuStart($supportWithoutGpuStart) + { + $this->set("SupportWithoutGpuStart", $supportWithoutGpuStart); + } + + /** + * WithoutGpuSpec: 无卡配置规格,详情见:WithoutGpuSpecInfo + * + * @return WithoutGpuSpec|null + */ + public function getWithoutGpuSpec() + { + return new WithoutGpuSpec($this->get("WithoutGpuSpec")); + } + + /** + * WithoutGpuSpec: 无卡配置规格,详情见:WithoutGpuSpecInfo + * + * @param WithoutGpuSpec $withoutGpuSpec + */ + public function setWithoutGpuSpec(array $withoutGpuSpec) + { + $this->set("WithoutGpuSpec", $withoutGpuSpec->getAll()); + } + + /** + * StopTime: 定时关机时间 + * + * @return integer|null + */ + public function getStopTime() + { + return $this->get("StopTime"); + } + + /** + * StopTime: 定时关机时间 + * + * @param int $stopTime + */ + public function setStopTime($stopTime) + { + $this->set("StopTime", $stopTime); + } + + /** + * UpdateTime: 虚机状态更新时间 + * + * @return integer|null + */ + public function getUpdateTime() + { + return $this->get("UpdateTime"); + } + + /** + * UpdateTime: 虚机状态更新时间 + * + * @param int $updateTime + */ + public function setUpdateTime($updateTime) + { + $this->set("UpdateTime", $updateTime); + } + + /** + * ReleaseTime: 释放时间(关机时候返回) + * + * @return integer|null + */ + public function getReleaseTime() + { + return $this->get("ReleaseTime"); + } + + /** + * ReleaseTime: 释放时间(关机时候返回) + * + * @param int $releaseTime + */ + public function setReleaseTime($releaseTime) + { + $this->set("ReleaseTime", $releaseTime); + } + + /** + * DiskPriceInfo: 磁盘价格信息,详见:DiskPriceInfo + * + * @return DiskPriceInfo[]|null + */ + public function getDiskPriceInfo() + { + $items = $this->get("DiskPriceInfo"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new DiskPriceInfo($item)); + } + return $result; + } + + /** + * DiskPriceInfo: 磁盘价格信息,详见:DiskPriceInfo + * + * @param DiskPriceInfo[] $diskPriceInfo + */ + public function setDiskPriceInfo(array $diskPriceInfo) + { + $result = []; + foreach ($diskPriceInfo as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * PostPayPowerOffBillingResource: 后付费关机计费信息列表,详见:详见:DiskPriceInfo + * + * @return DiskPriceInfo[]|null + */ + public function getPostPayPowerOffBillingResource() + { + $items = $this->get("PostPayPowerOffBillingResource"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new DiskPriceInfo($item)); + } + return $result; + } + + /** + * PostPayPowerOffBillingResource: 后付费关机计费信息列表,详见:详见:DiskPriceInfo + * + * @param DiskPriceInfo[] $postPayPowerOffBillingResource + */ + public function setPostPayPowerOffBillingResource(array $postPayPowerOffBillingResource) + { + $result = []; + foreach ($postPayPowerOffBillingResource as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * MonitorMessages: 监控信息,详见:MonitorMessage + * + * @return MonitorMessage|null + */ + public function getMonitorMessages() + { + return new MonitorMessage($this->get("MonitorMessages")); + } + + /** + * MonitorMessages: 监控信息,详见:MonitorMessage + * + * @param MonitorMessage $monitorMessages + */ + public function setMonitorMessages(array $monitorMessages) + { + $this->set("MonitorMessages", $monitorMessages->getAll()); + } +} diff --git a/src/UCompShare/Models/DiskPriceInfo.php b/src/UCompShare/Models/DiskPriceInfo.php new file mode 100644 index 0000000..65ae0bb --- /dev/null +++ b/src/UCompShare/Models/DiskPriceInfo.php @@ -0,0 +1,84 @@ +get("ChargeType"); + } + + /** + * ChargeType: 计费类型 + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * Price: 磁盘价格 + * + * @return float|null + */ + public function getPrice() + { + return $this->get("Price"); + } + + /** + * Price: 磁盘价格 + * + * @param float $price + */ + public function setPrice($price) + { + $this->set("Price", $price); + } + + /** + * IsBoot: 是否为系统盘 + * + * @return boolean|null + */ + public function getIsBoot() + { + return $this->get("IsBoot"); + } + + /** + * IsBoot: 是否为系统盘 + * + * @param boolean $isBoot + */ + public function setIsBoot($isBoot) + { + $this->set("IsBoot", $isBoot); + } +} diff --git a/src/UCompShare/Models/ExclusiveUTPInfo.php b/src/UCompShare/Models/ExclusiveUTPInfo.php new file mode 100644 index 0000000..be00dc6 --- /dev/null +++ b/src/UCompShare/Models/ExclusiveUTPInfo.php @@ -0,0 +1,164 @@ +get("TotalSize"); + } + + /** + * TotalSize: 当前周期总流量 + * + * @param int $totalSize + */ + public function setTotalSize($totalSize) + { + $this->set("TotalSize", $totalSize); + } + + /** + * AvailableSize: 当前周期剩余流量 + * + * @return integer|null + */ + public function getAvailableSize() + { + return $this->get("AvailableSize"); + } + + /** + * AvailableSize: 当前周期剩余流量 + * + * @param int $availableSize + */ + public function setAvailableSize($availableSize) + { + $this->set("AvailableSize", $availableSize); + } + + /** + * UsedSize: 当前周期已使用流量 + * + * @return integer|null + */ + public function getUsedSize() + { + return $this->get("UsedSize"); + } + + /** + * UsedSize: 当前周期已使用流量 + * + * @param int $usedSize + */ + public function setUsedSize($usedSize) + { + $this->set("UsedSize", $usedSize); + } + + /** + * ExcessSize: 当前周期超出限额的流量 + * + * @return integer|null + */ + public function getExcessSize() + { + return $this->get("ExcessSize"); + } + + /** + * ExcessSize: 当前周期超出限额的流量 + * + * @param int $excessSize + */ + public function setExcessSize($excessSize) + { + $this->set("ExcessSize", $excessSize); + } + + /** + * LastResetTime: 上次重置时间 + * + * @return integer|null + */ + public function getLastResetTime() + { + return $this->get("LastResetTime"); + } + + /** + * LastResetTime: 上次重置时间 + * + * @param int $lastResetTime + */ + public function setLastResetTime($lastResetTime) + { + $this->set("LastResetTime", $lastResetTime); + } + + /** + * NextResetTime: 下次重置时间 + * + * @return integer|null + */ + public function getNextResetTime() + { + return $this->get("NextResetTime"); + } + + /** + * NextResetTime: 下次重置时间 + * + * @param int $nextResetTime + */ + public function setNextResetTime($nextResetTime) + { + $this->set("NextResetTime", $nextResetTime); + } + + /** + * CreateTime: 创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } +} diff --git a/src/UCompShare/Models/GpuMonitorInfo.php b/src/UCompShare/Models/GpuMonitorInfo.php new file mode 100644 index 0000000..3252b9f --- /dev/null +++ b/src/UCompShare/Models/GpuMonitorInfo.php @@ -0,0 +1,84 @@ +get("GpuUsageRate"); + } + + /** + * GpuUsageRate: GPU卡使用率 + * + * @param string $gpuUsageRate + */ + public function setGpuUsageRate($gpuUsageRate) + { + $this->set("GpuUsageRate", $gpuUsageRate); + } + + /** + * MemoryUsageRate: GPU显存使用率 + * + * @return string|null + */ + public function getMemoryUsageRate() + { + return $this->get("MemoryUsageRate"); + } + + /** + * MemoryUsageRate: GPU显存使用率 + * + * @param string $memoryUsageRate + */ + public function setMemoryUsageRate($memoryUsageRate) + { + $this->set("MemoryUsageRate", $memoryUsageRate); + } + + /** + * GPU: GPU卡名称 + * + * @return string|null + */ + public function getGPU() + { + return $this->get("GPU"); + } + + /** + * GPU: GPU卡名称 + * + * @param string $gpu + */ + public function setGPU($gpu) + { + $this->set("GPU", $gpu); + } +} diff --git a/src/UCompShare/Models/GraphicsMemory.php b/src/UCompShare/Models/GraphicsMemory.php new file mode 100644 index 0000000..58c6119 --- /dev/null +++ b/src/UCompShare/Models/GraphicsMemory.php @@ -0,0 +1,64 @@ +get("Value"); + } + + /** + * Value: 值,单位是GB + * + * @param int $value + */ + public function setValue($value) + { + $this->set("Value", $value); + } + + /** + * Rate: 交互展示参数,可忽略 + * + * @return integer|null + */ + public function getRate() + { + return $this->get("Rate"); + } + + /** + * Rate: 交互展示参数,可忽略 + * + * @param int $rate + */ + public function setRate($rate) + { + $this->set("Rate", $rate); + } +} diff --git a/src/UCompShare/Models/MonitorMessage.php b/src/UCompShare/Models/MonitorMessage.php new file mode 100644 index 0000000..78a4df8 --- /dev/null +++ b/src/UCompShare/Models/MonitorMessage.php @@ -0,0 +1,96 @@ +get("CpuUsageRate"); + } + + /** + * CpuUsageRate: CPU使用率 + * + * @param string $cpuUsageRate + */ + public function setCpuUsageRate($cpuUsageRate) + { + $this->set("CpuUsageRate", $cpuUsageRate); + } + + /** + * MemUsageRate: 内存使用率 + * + * @return string|null + */ + public function getMemUsageRate() + { + return $this->get("MemUsageRate"); + } + + /** + * MemUsageRate: 内存使用率 + * + * @param string $memUsageRate + */ + public function setMemUsageRate($memUsageRate) + { + $this->set("MemUsageRate", $memUsageRate); + } + + /** + * GpuInfo: GPU卡监控信息 + * + * @return GpuMonitorInfo[]|null + */ + public function getGpuInfo() + { + $items = $this->get("GpuInfo"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new GpuMonitorInfo($item)); + } + return $result; + } + + /** + * GpuInfo: GPU卡监控信息 + * + * @param GpuMonitorInfo[] $gpuInfo + */ + public function setGpuInfo(array $gpuInfo) + { + $result = []; + foreach ($gpuInfo as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UCompShare/Models/Projects.php b/src/UCompShare/Models/Projects.php new file mode 100644 index 0000000..75d30df --- /dev/null +++ b/src/UCompShare/Models/Projects.php @@ -0,0 +1,64 @@ +get("AccountName"); + } + + /** + * AccountName: 账号昵称 + * + * @param string $accountName + */ + public function setAccountName($accountName) + { + $this->set("AccountName", $accountName); + } + + /** + * AccountId: 账号Id + * + * @return string|null + */ + public function getAccountId() + { + return $this->get("AccountId"); + } + + /** + * AccountId: 账号Id + * + * @param string $accountId + */ + public function setAccountId($accountId) + { + $this->set("AccountId", $accountId); + } +} diff --git a/src/UCompShare/Models/Software.php b/src/UCompShare/Models/Software.php new file mode 100644 index 0000000..4b3dde5 --- /dev/null +++ b/src/UCompShare/Models/Software.php @@ -0,0 +1,104 @@ +get("Framework"); + } + + /** + * Framework: 框架名称 + * + * @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); + } + + /** + * CUDAVersion: CUDA版本 + * + * @return string|null + */ + public function getCUDAVersion() + { + return $this->get("CUDAVersion"); + } + + /** + * CUDAVersion: CUDA版本 + * + * @param string $cudaVersion + */ + public function setCUDAVersion($cudaVersion) + { + $this->set("CUDAVersion", $cudaVersion); + } + + /** + * Applications: 【array of string】应用列表 + * + * @return string[]|null + */ + public function getApplications() + { + return $this->get("Applications"); + } + + /** + * Applications: 【array of string】应用列表 + * + * @param string[] $applications + */ + public function setApplications(array $applications) + { + $this->set("Applications", $applications); + } +} diff --git a/src/UCompShare/Models/SoftwareAddr.php b/src/UCompShare/Models/SoftwareAddr.php new file mode 100644 index 0000000..171d961 --- /dev/null +++ b/src/UCompShare/Models/SoftwareAddr.php @@ -0,0 +1,64 @@ +get("Name"); + } + + /** + * Name: 软件名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * URL: 软件地址 + * + * @return string|null + */ + public function getURL() + { + return $this->get("URL"); + } + + /** + * URL: 软件地址 + * + * @param string $url + */ + public function setURL($url) + { + $this->set("URL", $url); + } +} diff --git a/src/UCompShare/Models/UHostDiskSet.php b/src/UCompShare/Models/UHostDiskSet.php new file mode 100644 index 0000000..4a2cf0b --- /dev/null +++ b/src/UCompShare/Models/UHostDiskSet.php @@ -0,0 +1,184 @@ +get("DiskType"); + } + + /** + * DiskType: 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + * + * @param string $diskType + */ + public function setDiskType($diskType) + { + $this->set("DiskType", $diskType); + } + + /** + * IsBoot: 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + * + * @return string|null + */ + public function getIsBoot() + { + return $this->get("IsBoot"); + } + + /** + * IsBoot: 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + * + * @param string $isBoot + */ + public function setIsBoot($isBoot) + { + $this->set("IsBoot", $isBoot); + } + + /** + * Encrypted: "true": 加密盘 "false":非加密盘 + * + * @return string|null + */ + public function getEncrypted() + { + return $this->get("Encrypted"); + } + + /** + * Encrypted: "true": 加密盘 "false":非加密盘 + * + * @param string $encrypted + */ + public function setEncrypted($encrypted) + { + $this->set("Encrypted", $encrypted); + } + + /** + * Type: 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * DiskId: 磁盘ID + * + * @return string|null + */ + public function getDiskId() + { + return $this->get("DiskId"); + } + + /** + * DiskId: 磁盘ID + * + * @param string $diskId + */ + public function setDiskId($diskId) + { + $this->set("DiskId", $diskId); + } + + /** + * Name: UDisk名字(仅当磁盘是UDisk时返回) + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: UDisk名字(仅当磁盘是UDisk时返回) + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Drive: 磁盘盘符 + * + * @return string|null + */ + public function getDrive() + { + return $this->get("Drive"); + } + + /** + * Drive: 磁盘盘符 + * + * @param string $drive + */ + public function setDrive($drive) + { + $this->set("Drive", $drive); + } + + /** + * Size: 磁盘大小,单位: GB + * + * @return integer|null + */ + public function getSize() + { + return $this->get("Size"); + } + + /** + * Size: 磁盘大小,单位: GB + * + * @param int $size + */ + public function setSize($size) + { + $this->set("Size", $size); + } +} diff --git a/src/UCompShare/Models/UHostIPSet.php b/src/UCompShare/Models/UHostIPSet.php new file mode 100644 index 0000000..2bb0bd2 --- /dev/null +++ b/src/UCompShare/Models/UHostIPSet.php @@ -0,0 +1,244 @@ +get("IPMode"); + } + + /** + * IPMode: IPv4/IPv6; + * + * @param string $ipMode + */ + public function setIPMode($ipMode) + { + $this->set("IPMode", $ipMode); + } + + /** + * Default: 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。 + * + * @return string|null + */ + public function getDefault() + { + return $this->get("Default"); + } + + /** + * Default: 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。 + * + * @param string $default + */ + public function setDefault($default) + { + $this->set("Default", $default); + } + + /** + * Mac: 内网 Private 类型下,当前网卡的Mac。 + * + * @return string|null + */ + public function getMac() + { + return $this->get("Mac"); + } + + /** + * Mac: 内网 Private 类型下,当前网卡的Mac。 + * + * @param string $mac + */ + public function setMac($mac) + { + $this->set("Mac", $mac); + } + + /** + * Weight: 当前EIP的权重。权重最大的为当前的出口IP。 + * + * @return integer|null + */ + public function getWeight() + { + return $this->get("Weight"); + } + + /** + * Weight: 当前EIP的权重。权重最大的为当前的出口IP。 + * + * @param int $weight + */ + public function setWeight($weight) + { + $this->set("Weight", $weight); + } + + /** + * Type: 国际: Internation,BGP: Bgp,内网: Private + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 国际: Internation,BGP: Bgp,内网: Private + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * IPId: 外网IP资源ID 。(内网IP无对应的资源ID) + * + * @return string|null + */ + public function getIPId() + { + return $this->get("IPId"); + } + + /** + * IPId: 外网IP资源ID 。(内网IP无对应的资源ID) + * + * @param string $ipId + */ + public function setIPId($ipId) + { + $this->set("IPId", $ipId); + } + + /** + * IP: IP地址 + * + * @return string|null + */ + public function getIP() + { + return $this->get("IP"); + } + + /** + * IP: IP地址 + * + * @param string $ip + */ + public function setIP($ip) + { + $this->set("IP", $ip); + } + + /** + * Bandwidth: IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) + * + * @return integer|null + */ + public function getBandwidth() + { + return $this->get("Bandwidth"); + } + + /** + * Bandwidth: IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) + * + * @param int $bandwidth + */ + public function setBandwidth($bandwidth) + { + $this->set("Bandwidth", $bandwidth); + } + + /** + * VPCId: IP地址对应的VPC ID。(北京一不支持,字段返回为空) + * + * @return string|null + */ + public function getVPCId() + { + return $this->get("VPCId"); + } + + /** + * VPCId: IP地址对应的VPC ID。(北京一不支持,字段返回为空) + * + * @param string $vpcId + */ + public function setVPCId($vpcId) + { + $this->set("VPCId", $vpcId); + } + + /** + * SubnetId: IP地址对应的子网 ID。(北京一不支持,字段返回为空) + * + * @return string|null + */ + public function getSubnetId() + { + return $this->get("SubnetId"); + } + + /** + * SubnetId: IP地址对应的子网 ID。(北京一不支持,字段返回为空) + * + * @param string $subnetId + */ + public function setSubnetId($subnetId) + { + $this->set("SubnetId", $subnetId); + } + + /** + * NetworkInterfaceId: 弹性网卡为默认网卡时,返回对应的 ID 值 + * + * @return string|null + */ + public function getNetworkInterfaceId() + { + return $this->get("NetworkInterfaceId"); + } + + /** + * NetworkInterfaceId: 弹性网卡为默认网卡时,返回对应的 ID 值 + * + * @param string $networkInterfaceId + */ + public function setNetworkInterfaceId($networkInterfaceId) + { + $this->set("NetworkInterfaceId", $networkInterfaceId); + } +} diff --git a/src/UCompShare/Models/ULHostDiskSet.php b/src/UCompShare/Models/ULHostDiskSet.php new file mode 100644 index 0000000..cf1c83d --- /dev/null +++ b/src/UCompShare/Models/ULHostDiskSet.php @@ -0,0 +1,144 @@ +get("DiskId"); + } + + /** + * DiskId: 磁盘Id + * + * @param string $diskId + */ + public function setDiskId($diskId) + { + $this->set("DiskId", $diskId); + } + + /** + * DiskType: 磁盘类型。如:"CLOUD_RSSD"、"CLOUD_SSD" + * + * @return string|null + */ + public function getDiskType() + { + return $this->get("DiskType"); + } + + /** + * DiskType: 磁盘类型。如:"CLOUD_RSSD"、"CLOUD_SSD" + * + * @param string $diskType + */ + public function setDiskType($diskType) + { + $this->set("DiskType", $diskType); + } + + /** + * Type: 磁盘类型。系统盘:"Boot";数据盘:"Data" + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 磁盘类型。系统盘:"Boot";数据盘:"Data" + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * Size: 磁盘大小。单位:GB + * + * @return integer|null + */ + public function getSize() + { + return $this->get("Size"); + } + + /** + * Size: 磁盘大小。单位:GB + * + * @param int $size + */ + public function setSize($size) + { + $this->set("Size", $size); + } + + /** + * IsBoot: 是否为系统盘。是:"True";否:"False" + * + * @return string|null + */ + public function getIsBoot() + { + return $this->get("IsBoot"); + } + + /** + * IsBoot: 是否为系统盘。是:"True";否:"False" + * + * @param string $isBoot + */ + public function setIsBoot($isBoot) + { + $this->set("IsBoot", $isBoot); + } + + /** + * Drive: 磁盘盘符。系统盘:"vda" + * + * @return string|null + */ + public function getDrive() + { + return $this->get("Drive"); + } + + /** + * Drive: 磁盘盘符。系统盘:"vda" + * + * @param string $drive + */ + public function setDrive($drive) + { + $this->set("Drive", $drive); + } +} diff --git a/src/UCompShare/Models/ULHostInstanceSet.php b/src/UCompShare/Models/ULHostInstanceSet.php new file mode 100644 index 0000000..7f9260f --- /dev/null +++ b/src/UCompShare/Models/ULHostInstanceSet.php @@ -0,0 +1,428 @@ +get("Zone"); + } + + /** + * Zone: 可用区。 + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ULHostId: 实例Id。 + * + * @return string|null + */ + public function getULHostId() + { + return $this->get("ULHostId"); + } + + /** + * ULHostId: 实例Id。 + * + * @param string $ulHostId + */ + public function setULHostId($ulHostId) + { + $this->set("ULHostId", $ulHostId); + } + + /** + * Name: 实例名称。默认套餐Id + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 实例名称。默认套餐Id + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Tag: 业务组。 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 业务组。 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * Remark: 备注。 + * + * @return string|null + */ + public function getRemark() + { + return $this->get("Remark"); + } + + /** + * Remark: 备注。 + * + * @param string $remark + */ + public function setRemark($remark) + { + $this->set("Remark", $remark); + } + + /** + * ImageId: 镜像Id。 + * + * @return string|null + */ + public function getImageId() + { + return $this->get("ImageId"); + } + + /** + * ImageId: 镜像Id。 + * + * @param string $imageId + */ + public function setImageId($imageId) + { + $this->set("ImageId", $imageId); + } + + /** + * ImageName: 镜像名称。 + * + * @return string|null + */ + public function getImageName() + { + return $this->get("ImageName"); + } + + /** + * ImageName: 镜像名称。 + * + * @param string $imageName + */ + public function setImageName($imageName) + { + $this->set("ImageName", $imageName); + } + + /** + * Apps: 【数组】镜像包含的应用列表。 + * + * @return string[]|null + */ + public function getApps() + { + return $this->get("Apps"); + } + + /** + * Apps: 【数组】镜像包含的应用列表。 + * + * @param string[] $apps + */ + public function setApps(array $apps) + { + $this->set("Apps", $apps); + } + + /** + * 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: 内存。单位:MB + * + * @return integer|null + */ + public function getMemory() + { + return $this->get("Memory"); + } + + /** + * Memory: 内存。单位:MB + * + * @param int $memory + */ + public function setMemory($memory) + { + $this->set("Memory", $memory); + } + + /** + * State: 实例状态。枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting; \\ > 未知(空字符串,获取状态超时或出错):"" + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 实例状态。枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting; \\ > 未知(空字符串,获取状态超时或出错):"" + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * ChargeType: 计费模式。枚举值:Month/Year + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费模式。枚举值:Month/Year + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * IPSet: IP信息 + * + * @return UHostIPSet[]|null + */ + public function getIPSet() + { + $items = $this->get("IPSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UHostIPSet($item)); + } + return $result; + } + + /** + * IPSet: IP信息 + * + * @param UHostIPSet[] $ipSet + */ + public function setIPSet(array $ipSet) + { + $result = []; + foreach ($ipSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * DiskSet: 磁盘信息 + * + * @return ULHostDiskSet[]|null + */ + public function getDiskSet() + { + $items = $this->get("DiskSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ULHostDiskSet($item)); + } + return $result; + } + + /** + * DiskSet: 磁盘信息 + * + * @param ULHostDiskSet[] $diskSet + */ + public function setDiskSet(array $diskSet) + { + $result = []; + foreach ($diskSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * EIPExclusiveUTPInfo: 流量包详情信息 + * + * @return ExclusiveUTPInfo|null + */ + public function getEIPExclusiveUTPInfo() + { + return new ExclusiveUTPInfo($this->get("EIPExclusiveUTPInfo")); + } + + /** + * EIPExclusiveUTPInfo: 流量包详情信息 + * + * @param ExclusiveUTPInfo $eipExclusiveUTPInfo + */ + public function setEIPExclusiveUTPInfo(array $eipExclusiveUTPInfo) + { + $this->set("EIPExclusiveUTPInfo", $eipExclusiveUTPInfo->getAll()); + } + + /** + * AutoRenew: 是否自动续费。枚举值:Yes/No + * + * @return string|null + */ + public function getAutoRenew() + { + return $this->get("AutoRenew"); + } + + /** + * AutoRenew: 是否自动续费。枚举值:Yes/No + * + * @param string $autoRenew + */ + public function setAutoRenew($autoRenew) + { + $this->set("AutoRenew", $autoRenew); + } + + /** + * IsExpire: 是否过期。枚举值:Yes/No + * + * @return string|null + */ + public function getIsExpire() + { + return $this->get("IsExpire"); + } + + /** + * IsExpire: 是否过期。枚举值:Yes/No + * + * @param string $isExpire + */ + public function setIsExpire($isExpire) + { + $this->set("IsExpire", $isExpire); + } + + /** + * ExpireTime: 过期时间。Unix时间戳 + * + * @return integer|null + */ + public function getExpireTime() + { + return $this->get("ExpireTime"); + } + + /** + * ExpireTime: 过期时间。Unix时间戳 + * + * @param int $expireTime + */ + public function setExpireTime($expireTime) + { + $this->set("ExpireTime", $expireTime); + } + + /** + * CreateTime: 创建时间。Unix时间戳 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间。Unix时间戳 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } +} diff --git a/src/UCompShare/Models/ULHostPriceSet.php b/src/UCompShare/Models/ULHostPriceSet.php new file mode 100644 index 0000000..51fee44 --- /dev/null +++ b/src/UCompShare/Models/ULHostPriceSet.php @@ -0,0 +1,84 @@ +get("ChargeType"); + } + + /** + * ChargeType: 计费模式 + * + * @param string $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * Price: 价格 + * + * @return float|null + */ + public function getPrice() + { + return $this->get("Price"); + } + + /** + * Price: 价格 + * + * @param float $price + */ + public function setPrice($price) + { + $this->set("Price", $price); + } + + /** + * OriginalPrice: 原价 + * + * @return float|null + */ + public function getOriginalPrice() + { + return $this->get("OriginalPrice"); + } + + /** + * OriginalPrice: 原价 + * + * @param float $originalPrice + */ + public function setOriginalPrice($originalPrice) + { + $this->set("OriginalPrice", $originalPrice); + } +} diff --git a/src/UCompShare/Models/WithoutGpuSpec.php b/src/UCompShare/Models/WithoutGpuSpec.php new file mode 100644 index 0000000..3a2c9b9 --- /dev/null +++ b/src/UCompShare/Models/WithoutGpuSpec.php @@ -0,0 +1,84 @@ +get("Cpu"); + } + + /** + * Cpu: cpu + * + * @param int $cpu + */ + public function setCpu($cpu) + { + $this->set("Cpu", $cpu); + } + + /** + * Memory: 内存 + * + * @return integer|null + */ + public function getMemory() + { + return $this->get("Memory"); + } + + /** + * Memory: 内存 + * + * @param int $memory + */ + public function setMemory($memory) + { + $this->set("Memory", $memory); + } + + /** + * Gpu: gpu + * + * @return integer|null + */ + public function getGpu() + { + return $this->get("Gpu"); + } + + /** + * Gpu: gpu + * + * @param int $gpu + */ + public function setGpu($gpu) + { + $this->set("Gpu", $gpu); + } +} diff --git a/src/UCompShare/Params/CreateCompShareInstanceParamDisks.php b/src/UCompShare/Params/CreateCompShareInstanceParamDisks.php new file mode 100644 index 0000000..6db4bc9 --- /dev/null +++ b/src/UCompShare/Params/CreateCompShareInstanceParamDisks.php @@ -0,0 +1,84 @@ + True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + * + * @return boolean|null + */ + public function getIsBoot() + { + return $this->get("IsBoot"); + } + + /** + * IsBoot: 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + * + * @param boolean $isBoot + */ + public function setIsBoot($isBoot) + { + $this->set("IsBoot", $isBoot); + } + + /** + * Type: 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * Size: 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + * + * @return integer|null + */ + public function getSize() + { + return $this->get("Size"); + } + + /** + * Size: 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + * + * @param int $size + */ + public function setSize($size) + { + $this->set("Size", $size); + } +} diff --git a/src/UCompShare/Params/DescribeCommunityImagesParamSortCondition.php b/src/UCompShare/Params/DescribeCommunityImagesParamSortCondition.php new file mode 100644 index 0000000..3f2634d --- /dev/null +++ b/src/UCompShare/Params/DescribeCommunityImagesParamSortCondition.php @@ -0,0 +1,64 @@ +get("Field"); + } + + /** + * Field: 排序条件。- Favor:按热度排序,获取热点镜像;- PubTime:按发布时间排序,获取最新社区镜像;- Price 按价格排序;- CreatedCount 按使用量排序;默认:"PubTime" + * + * @param string $field + */ + public function setField($field) + { + $this->set("Field", $field); + } + + /** + * ASC: 是否升序排列 + * + * @return string|null + */ + public function getASC() + { + return $this->get("ASC"); + } + + /** + * ASC: 是否升序排列 + * + * @param string $asc + */ + public function setASC($asc) + { + $this->set("ASC", $asc); + } +} diff --git a/src/UCompShare/UCompShareClient.php b/src/UCompShare/UCompShareClient.php new file mode 100644 index 0000000..fa113e5 --- /dev/null +++ b/src/UCompShare/UCompShareClient.php @@ -0,0 +1,1129 @@ + (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) + * "Disks" => (array) [ + * [ + * "IsBoot" => (boolean) 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + * "Type" => (string) 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + * "Size" => (integer) 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + * ] + * ] + * "MachineType" => (string) 云主机机型(V2.0),在本字段和字段UHostType中,仅需要其中1个字段即可。枚举值["N", "C", "G", "O", "OS", "OM", "OPRO", "OMAX", "O.BM", "O.EPC"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + * "GPU" => (integer) GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) + * "Memory" => (integer) 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192 + * "CPU" => (integer) 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。 + * "GpuType" => (string) GPU类型,枚举值["K80", "P40", "V100", "T4","T4A", "T4S","2080Ti","2080Ti-4C","1080Ti", "T4/4", "MI100", "V100S",2080","2080TiS","2080TiPro","3090","A100"],MachineType为G时必填 + * "CompShareImageId" => (string) 镜像ID + * "LoginMode" => (string) 主机登陆模式。密码(默认选项): Password + * "ChargeType" => (string) 计费模式。枚举值为: \\ > Month,按月付费;\\ > Day,按天付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\ > Spot计费为抢占式实例(内测阶段) \\ 默认为月付 + * "Quantity" => (integer) 购买时长。默认:值 1。按小时购买(Dynamic/Postpay)时无需此参数。 月付时,此参数传0,代表购买至月末。 + * "MinimalCpuPlatform" => (string) 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake", "Intel/CascadelakeR", "Intel/IceLake", "Amd/Epyc2", "Amd/Auto","Ampere/Auto","Ampere/Altra"],默认值是"Intel/Auto"。 + * "Password" => (string) UHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。 + * "Name" => (string) 实例名称 + * "SecurityGroupId" => (string) 防火墙Id + * ] + * + * Outputs: + * + * $outputs = [ + * "UHostIds" => (array) UHost实例Id集合 + * ] + * + * @return CreateCompShareInstanceResponse + * @throws UCloudException + */ + public function createCompShareInstance(CreateCompShareInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateCompShareInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateULHostInstance - 创建轻量应用云主机 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/create_ul_host_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) + * "ImageId" => (string) 镜像ID。 请通过 [DescribeImage](describe_image.html)获取 + * "BundleId" => (string) 套餐ID。如:"ulh.c1m1s40b30t800" + * "Password" => (string) ULHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64 + * "Name" => (string) 轻量应用主机名称。默认:套餐ID。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。 + * "ChargeType" => (string) 计费模式。枚举值: \\ > Year,按年付费; \\ > Month,按月付费;默认:Month + * "Quantity" => (integer) 购买时长。默认:1。不支持购买到月末 + * "VPCId" => (string) VPC ID。默认为当前地域的默认VPC。 + * "SubnetId" => (string) 子网 ID。默认为当前地域的默认子网。 + * "SecurityGroupId" => (string) 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 [DescribeFirewall](api/unet-api/describe_firewall.html)。 + * "CouponId" => (string) 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看 + * ] + * + * Outputs: + * + * $outputs = [ + * "ULHostId" => (string) 实例ID + * ] + * + * @return CreateULHostInstanceResponse + * @throws UCloudException + */ + public function createULHostInstance(CreateULHostInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateULHostInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeCommunityImages - 获取社区镜像列表 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/describe_community_images + * + * 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) + * "CompShareImageId" => (string) 镜像Id。支持指定镜像Id查询 + * "Name" => (string) 镜像名称。模糊搜索 + * "Author" => (string) 搜索指定作者发布的镜像 + * "Offset" => (integer) 列表起始位置偏移量,默认为0 + * "Limit" => (string) 返回数据长度,默认为20,最大100 + * "Tag" => (string) 按标签名称搜索,精确匹配 + * "SortCondition" => (object) [ + * "Field" => (string) 排序条件。- Favor:按热度排序,获取热点镜像;- PubTime:按发布时间排序,获取最新社区镜像;- Price 按价格排序;- CreatedCount 按使用量排序;默认:"PubTime" + * "ASC" => (string) 是否升序排列 + * ] + * ] + * + * Outputs: + * + * $outputs = [ + * "ImageSet" => (array) 镜像详情列表[ + * [ + * "CompShareImageId" => (string) 镜像Id + * "Name" => (string) 镜像名称 + * "Author" => (string) 镜像作者昵称 + * "AuthInfo" => (integer) 镜像作者认证信息 + * "ImageOwnerAlias" => (string) 镜像来源。- Official 平台镜像;- Community 社区镜像 + * "ImageType" => (string) 镜像类型。- System 平台提供的公共镜像;- App 平台提供的应用镜像;- Custom 自制镜像;- Community 社区镜像 + * "IsOfficial" => (boolean) 来源是否为官方镜像【仅自制镜像信息返回该字段】 + * "Container" => (string) 是否为容器镜像。- True 容器镜像- False 虚机镜像 + * "Status" => (string) 镜像状态。- Making 制作中;- Available 可用;- UnAvailable 不可用;- Reviewing 审核中;- Offline 已下线 + * "Size" => (integer) 镜像大小。单位MB + * "Visibility" => (integer) 可见性。0:私密镜像;1:公开至镜像社区 + * "Description" => (string) 镜像描述信息 + * "Tags" => (array) 【array of string】镜像标签 + * "Price" => (number) 镜像价格。单位:元 + * "Cover" => (string) 镜像封面URL + * "Readme" => (string) 镜像详细描述。仅指定镜像Id查询时返回 + * "Softwares" => (object) 镜像软件信息[ + * "Framework" => (string) 框架名称 + * "FrameworkVersion" => (string) 框架版本 + * "CUDAVersion" => (string) CUDA版本 + * "Applications" => (array) 【array of string】应用列表 + * ] + * "CreatedCount" => (integer) 镜像引用创建计数 + * "FavoritesCount" => (integer) 镜像收藏计数 + * "FailedReason" => (string) 镜像制作失败错误原因 + * "CreateTime" => (integer) 创建时间戳 + * "PubTime" => (integer) 发布时间戳 + * "Owner" => (object) 镜像所属账号信息[ + * "AccountName" => (string) 账号昵称 + * "AccountId" => (string) 账号Id + * ] + * "GroupId" => (string) 镜像组id + * "VersionName" => (string) 版本名称 + * "VersionDesc" => (string) 版本描述 + * "SourceGpuType" => (string) 自制镜像来源机型 + * "AutoStart" => (boolean) 是否支持自启动 default:false + * "ImageCharge" => (boolean) 是否镜像收费 default: false + * "ImageUseTime" => (integer) 镜像使用时长 + * ] + * ] + * "TotalCount" => (integer) 总数量 + * ] + * + * @return DescribeCommunityImagesResponse + * @throws UCloudException + */ + public function describeCommunityImages(DescribeCommunityImagesRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeCommunityImagesResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeCompShareCustomImages - 获取自制镜像列表 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/describe_comp_share_custom_images + * + * 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) + * "CompShareImageId" => (string) 指定镜像Id查询 + * "Offset" => (integer) 列表起始位置偏移量,默认为0 + * "Limit" => (integer) 返回数据长度,默认为20,最大100 + * ] + * + * Outputs: + * + * $outputs = [ + * "ImageSet" => (array) 镜像详情信息[ + * [ + * "CompShareImageId" => (string) 镜像Id + * "Name" => (string) 镜像名称 + * "Author" => (string) 镜像作者昵称 + * "AuthInfo" => (integer) 镜像作者认证信息 + * "ImageOwnerAlias" => (string) 镜像来源。- Official 平台镜像;- Community 社区镜像 + * "ImageType" => (string) 镜像类型。- System 平台提供的公共镜像;- App 平台提供的应用镜像;- Custom 自制镜像;- Community 社区镜像 + * "IsOfficial" => (boolean) 来源是否为官方镜像【仅自制镜像信息返回该字段】 + * "Container" => (string) 是否为容器镜像。- True 容器镜像- False 虚机镜像 + * "Status" => (string) 镜像状态。- Making 制作中;- Available 可用;- UnAvailable 不可用;- Reviewing 审核中;- Offline 已下线 + * "Size" => (integer) 镜像大小。单位MB + * "Visibility" => (integer) 可见性。0:私密镜像;1:公开至镜像社区 + * "Description" => (string) 镜像描述信息 + * "Tags" => (array) 【array of string】镜像标签 + * "Price" => (number) 镜像价格。单位:元 + * "Cover" => (string) 镜像封面URL + * "Readme" => (string) 镜像详细描述。仅指定镜像Id查询时返回 + * "Softwares" => (object) 镜像软件信息[ + * "Framework" => (string) 框架名称 + * "FrameworkVersion" => (string) 框架版本 + * "CUDAVersion" => (string) CUDA版本 + * "Applications" => (array) 【array of string】应用列表 + * ] + * "CreatedCount" => (integer) 镜像引用创建计数 + * "FavoritesCount" => (integer) 镜像收藏计数 + * "FailedReason" => (string) 镜像制作失败错误原因 + * "CreateTime" => (integer) 创建时间戳 + * "PubTime" => (integer) 发布时间戳 + * "Owner" => (object) 镜像所属账号信息[ + * "AccountName" => (string) 账号昵称 + * "AccountId" => (string) 账号Id + * ] + * "GroupId" => (string) 镜像组id + * "VersionName" => (string) 版本名称 + * "VersionDesc" => (string) 版本描述 + * "SourceGpuType" => (string) 自制镜像来源机型 + * "AutoStart" => (boolean) 是否支持自启动 default:false + * "ImageCharge" => (boolean) 是否镜像收费 default: false + * "ImageUseTime" => (integer) 镜像使用时长 + * ] + * ] + * "TotalCount" => (integer) 总数量 + * ] + * + * @return DescribeCompShareCustomImagesResponse + * @throws UCloudException + */ + public function describeCompShareCustomImages(DescribeCompShareCustomImagesRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeCompShareCustomImagesResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeCompShareImages - 可获取平台、应用镜像信息 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/describe_comp_share_images + * + * 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) + * "ImageType" => (string) 镜像类型。枚举值- System 平台镜像- App 应用镜像默认:System + * "CompShareImageId" => (string) 镜像Id。支持指定Id查询 + * "Name" => (string) 镜像名称。支持模糊搜索 + * "Author" => (string) 镜像作者昵称 + * "Tag" => (string) 镜像标签 + * "Offset" => (integer) 列表起始位置偏移量,默认为0 + * "Limit" => (integer) 返回数据长度,默认为20,最大100 + * ] + * + * Outputs: + * + * $outputs = [ + * "ImageSet" => (array) 镜像详情列表[ + * [ + * "CompShareImageId" => (string) 镜像Id + * "Name" => (string) 镜像名称 + * "Author" => (string) 镜像作者昵称 + * "AuthInfo" => (integer) 镜像作者认证信息 + * "ImageOwnerAlias" => (string) 镜像来源。- Official 平台镜像;- Community 社区镜像 + * "ImageType" => (string) 镜像类型。- System 平台提供的公共镜像;- App 平台提供的应用镜像;- Custom 自制镜像;- Community 社区镜像 + * "IsOfficial" => (boolean) 来源是否为官方镜像【仅自制镜像信息返回该字段】 + * "Container" => (string) 是否为容器镜像。- True 容器镜像- False 虚机镜像 + * "Status" => (string) 镜像状态。- Making 制作中;- Available 可用;- UnAvailable 不可用;- Reviewing 审核中;- Offline 已下线 + * "Size" => (integer) 镜像大小。单位MB + * "Visibility" => (integer) 可见性。0:私密镜像;1:公开至镜像社区 + * "Description" => (string) 镜像描述信息 + * "Tags" => (array) 【array of string】镜像标签 + * "Price" => (number) 镜像价格。单位:元 + * "Cover" => (string) 镜像封面URL + * "Readme" => (string) 镜像详细描述。仅指定镜像Id查询时返回 + * "Softwares" => (object) 镜像软件信息[ + * "Framework" => (string) 框架名称 + * "FrameworkVersion" => (string) 框架版本 + * "CUDAVersion" => (string) CUDA版本 + * "Applications" => (array) 【array of string】应用列表 + * ] + * "CreatedCount" => (integer) 镜像引用创建计数 + * "FavoritesCount" => (integer) 镜像收藏计数 + * "FailedReason" => (string) 镜像制作失败错误原因 + * "CreateTime" => (integer) 创建时间戳 + * "PubTime" => (integer) 发布时间戳 + * "Owner" => (object) 镜像所属账号信息[ + * "AccountName" => (string) 账号昵称 + * "AccountId" => (string) 账号Id + * ] + * "GroupId" => (string) 镜像组id + * "VersionName" => (string) 版本名称 + * "VersionDesc" => (string) 版本描述 + * "SourceGpuType" => (string) 自制镜像来源机型 + * "AutoStart" => (boolean) 是否支持自启动 default:false + * "ImageCharge" => (boolean) 是否镜像收费 default: false + * "ImageUseTime" => (integer) 镜像使用时长 + * ] + * ] + * "TotalCount" => (integer) 总数量 + * ] + * + * @return DescribeCompShareImagesResponse + * @throws UCloudException + */ + public function describeCompShareImages(DescribeCompShareImagesRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeCompShareImagesResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeCompShareInstance - 获取用户所有地域下主机资源信息列表 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/describe_comp_share_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) + * "UHostIds" => (array) 【数组】UHost主机的资源ID,例如UHostIds.0代表希望获取信息 的主机1,UHostIds.1代表主机2。 如果不传入,则返回当前Region 所有符合条件的UHost实例。 + * "WithoutGpu" => (boolean) 无卡GPU + * "Offset" => (integer) 列表起始位置偏移量,默认为0 + * "Limit" => (integer) 返回数据长度,默认为20,最大100 + * ] + * + * Outputs: + * + * $outputs = [ + * "TotalCount" => (integer) UHostInstance总数 + * "UHostSet" => (array) 云主机实例列表,每项参数可见下面 UHostInstanceSet[ + * [ + * "Zone" => (string) 可用区 + * "StopSchedulerTime" => (integer) 计划关机时间 + * "UHostId" => (string) 实例Id + * "MachineType" => (string) 机型信息 + * "CpuPlatform" => (string) CPU平台。如"Intel/Auto"、"Amd/Auto"等等 + * "CompShareImageId" => (string) 镜像Id + * "CompShareImageName" => (string) 镜像名称 + * "CompShareImageOwnerAlias" => (string) 镜像来源 + * "CompShareImageBillId" => (string) 用于镜像计费的Id + * "CompShareImageStatus" => (string) 镜像状态 + * "CompShareImageType" => (string) 镜像类型- System 系统镜像- App 应用镜像- Custom 自制镜像- Community 社区镜像 + * "InstanceType" => (string) 实例类型。"UHost": 普通主机;"Container": 容器主机 + * "Password" => (string) 主机密码。由Base64编码 + * "SshLoginCommand" => (string) SSH登录命令 + * "Name" => (string) 实例名称 + * "Tag" => (string) 实例业务组 + * "Remark" => (string) 实例备注 + * "State" => (string) 实例状态,枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting; \\ >升级改配中: Resizing; \\ > 未知(空字符串,获取状态超时或出错): + * "ChargeType" => (string) 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按时付费;Postpay,按需付费 + * "CPU" => (integer) 虚拟CPU核数,单位: 个 + * "Memory" => (integer) 内存大小,单位:MB + * "GpuType" => (string) GPU类型。如: "4090" + * "GPU" => (integer) GPU个数 + * "GraphicsMemory" => (object) GPU显存信息[ + * "Value" => (integer) 值,单位是GB + * "Rate" => (integer) 交互展示参数,可忽略 + * ] + * "AutoRenew" => (string) 是否自动续费,自动续费:“Yes”,不自动续费:“No” + * "IsExpire" => (string) 是否过期。Yes:已过期;No:未过期 + * "OsName" => (string) 虚机镜像的名称 + * "OsType" => (string) 虚机镜像操作系统类型。"Linux"\"Windows" + * "TotalDiskSpace" => (integer) 总的数据盘存储空间 + * "CpuArch" => (string) CPU架构。"x86_64"/"i386"等 + * "DiskSet" => (array) 详情见UHostDiskSet[ + * [ + * "DiskType" => (string) 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 + * "IsBoot" => (string) 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + * "Encrypted" => (string) "true": 加密盘 "false":非加密盘 + * "Type" => (string) 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk + * "DiskId" => (string) 磁盘ID + * "Name" => (string) UDisk名字(仅当磁盘是UDisk时返回) + * "Drive" => (string) 磁盘盘符 + * "Size" => (integer) 磁盘大小,单位: GB + * ] + * ] + * "IPSet" => (array) 详情见UHostIPSet[ + * [ + * "IPMode" => (string) IPv4/IPv6; + * "Default" => (string) 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。 + * "Mac" => (string) 内网 Private 类型下,当前网卡的Mac。 + * "Weight" => (integer) 当前EIP的权重。权重最大的为当前的出口IP。 + * "Type" => (string) 国际: Internation,BGP: Bgp,内网: Private + * "IPId" => (string) 外网IP资源ID 。(内网IP无对应的资源ID) + * "IP" => (string) IP地址 + * "Bandwidth" => (integer) IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) + * "VPCId" => (string) IP地址对应的VPC ID。(北京一不支持,字段返回为空) + * "SubnetId" => (string) IP地址对应的子网 ID。(北京一不支持,字段返回为空) + * "NetworkInterfaceId" => (string) 弹性网卡为默认网卡时,返回对应的 ID 值 + * ] + * ] + * "Softwares" => (array) 软件地址[ + * [ + * "Name" => (string) 软件名称 + * "URL" => (string) 软件地址 + * ] + * ] + * "InstancePrice" => (number) 主机价格 + * "CompShareImagePrice" => (number) 镜像价格 + * "ExpireTime" => (integer) 过期时间 + * "CreateTime" => (integer) 创建时间 + * "SupportWithoutGpuStart" => (boolean) 此实例是否支持无卡开机 + * "WithoutGpuSpec" => (object) 无卡配置规格,详情见:WithoutGpuSpecInfo[ + * "Cpu" => (integer) cpu + * "Memory" => (integer) 内存 + * "Gpu" => (integer) gpu + * ] + * "StopTime" => (integer) 定时关机时间 + * "UpdateTime" => (integer) 虚机状态更新时间 + * "ReleaseTime" => (integer) 释放时间(关机时候返回) + * "DiskPriceInfo" => (array) 磁盘价格信息,详见:DiskPriceInfo[ + * [ + * "ChargeType" => (string) 计费类型 + * "Price" => (number) 磁盘价格 + * "IsBoot" => (boolean) 是否为系统盘 + * ] + * ] + * "PostPayPowerOffBillingResource" => (array) 后付费关机计费信息列表,详见:详见:DiskPriceInfo[ + * [ + * "ChargeType" => (string) 计费类型 + * "Price" => (number) 磁盘价格 + * "IsBoot" => (boolean) 是否为系统盘 + * ] + * ] + * "MonitorMessages" => (object) 监控信息,详见:MonitorMessage[ + * "CpuUsageRate" => (string) CPU使用率 + * "MemUsageRate" => (string) 内存使用率 + * "GpuInfo" => (array) GPU卡监控信息[ + * [ + * "GpuUsageRate" => (string) GPU卡使用率 + * "MemoryUsageRate" => (string) GPU显存使用率 + * "GPU" => (string) GPU卡名称 + * ] + * ] + * ] + * ] + * ] + * ] + * + * @return DescribeCompShareInstanceResponse + * @throws UCloudException + */ + public function describeCompShareInstance(DescribeCompShareInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeCompShareInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeULHostBundles - 获取轻量应用云主机套餐列表 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/describe_ul_host_bundles + * + * 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 = [ + * "Bundles" => (array) 套餐列表[ + * [ + * "BundleId" => (string) 套餐ID。 + * "CPU" => (integer) CPU核数。 + * "Memory" => (integer) 内存大小。单位:MB。 + * "SysDiskSpace" => (integer) 系统盘大小。单位:GB。 + * "Bandwidth" => (integer) 外网带宽。单位:Mbps。 + * "TrafficPacket" => (integer) 流量包大小。单位:GB。 + * ] + * ] + * ] + * + * @return DescribeULHostBundlesResponse + * @throws UCloudException + */ + public function describeULHostBundles(DescribeULHostBundlesRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeULHostBundlesResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeULHostInstance - 获取轻量应用云主机列表 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/describe_ul_host_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) + * "ULHostIds" => (array) 【数组】轻量应用云主机ID。 + * "Offset" => (integer) 列表起始位置偏移量,默认为0 + * "Limit" => (integer) 返回数据长度,默认为20,最大100 + * ] + * + * Outputs: + * + * $outputs = [ + * "ULHostInstanceSets" => (array) 实例列表[ + * [ + * "Zone" => (string) 可用区。 + * "ULHostId" => (string) 实例Id。 + * "Name" => (string) 实例名称。默认套餐Id + * "Tag" => (string) 业务组。 + * "Remark" => (string) 备注。 + * "ImageId" => (string) 镜像Id。 + * "ImageName" => (string) 镜像名称。 + * "Apps" => (array) 【数组】镜像包含的应用列表。 + * "CPU" => (integer) CPU核数。 + * "Memory" => (integer) 内存。单位:MB + * "State" => (string) 实例状态。枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting; \\ > 未知(空字符串,获取状态超时或出错):"" + * "ChargeType" => (string) 计费模式。枚举值:Month/Year + * "IPSet" => (array) IP信息[ + * [ + * "IPMode" => (string) IPv4/IPv6; + * "Default" => (string) 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。 + * "Mac" => (string) 内网 Private 类型下,当前网卡的Mac。 + * "Weight" => (integer) 当前EIP的权重。权重最大的为当前的出口IP。 + * "Type" => (string) 国际: Internation,BGP: Bgp,内网: Private + * "IPId" => (string) 外网IP资源ID 。(内网IP无对应的资源ID) + * "IP" => (string) IP地址 + * "Bandwidth" => (integer) IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) + * "VPCId" => (string) IP地址对应的VPC ID。(北京一不支持,字段返回为空) + * "SubnetId" => (string) IP地址对应的子网 ID。(北京一不支持,字段返回为空) + * "NetworkInterfaceId" => (string) 弹性网卡为默认网卡时,返回对应的 ID 值 + * ] + * ] + * "DiskSet" => (array) 磁盘信息[ + * [ + * "DiskId" => (string) 磁盘Id + * "DiskType" => (string) 磁盘类型。如:"CLOUD_RSSD"、"CLOUD_SSD" + * "Type" => (string) 磁盘类型。系统盘:"Boot";数据盘:"Data" + * "Size" => (integer) 磁盘大小。单位:GB + * "IsBoot" => (string) 是否为系统盘。是:"True";否:"False" + * "Drive" => (string) 磁盘盘符。系统盘:"vda" + * ] + * ] + * "EIPExclusiveUTPInfo" => (object) 流量包详情信息[ + * "TotalSize" => (integer) 当前周期总流量 + * "AvailableSize" => (integer) 当前周期剩余流量 + * "UsedSize" => (integer) 当前周期已使用流量 + * "ExcessSize" => (integer) 当前周期超出限额的流量 + * "LastResetTime" => (integer) 上次重置时间 + * "NextResetTime" => (integer) 下次重置时间 + * "CreateTime" => (integer) 创建时间 + * ] + * "AutoRenew" => (string) 是否自动续费。枚举值:Yes/No + * "IsExpire" => (string) 是否过期。枚举值:Yes/No + * "ExpireTime" => (integer) 过期时间。Unix时间戳 + * "CreateTime" => (integer) 创建时间。Unix时间戳 + * ] + * ] + * ] + * + * @return DescribeULHostInstanceResponse + * @throws UCloudException + */ + public function describeULHostInstance(DescribeULHostInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeULHostInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetULHostInstancePrice - 获取轻量应用云主机套餐价格 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/get_ul_host_instance_price + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "BundleId" => (string) 套餐ID + * "ChargeType" => (string) 获取指定计费模式的价格。枚举值:\\ > Year,按年付费; \\ > Month。未指定时,返回所有计费模式价格 + * "Count" => (integer) 购买台数,范围[1,5]。默认:1 + * "Quantity" => (integer) 购买时长。默认: 1。不支持购买到月末 + * ] + * + * Outputs: + * + * $outputs = [ + * "PriceSet" => (array) 价格[ + * [ + * "ChargeType" => (string) 计费模式 + * "Price" => (number) 价格 + * "OriginalPrice" => (number) 原价 + * ] + * ] + * ] + * + * @return GetULHostInstancePriceResponse + * @throws UCloudException + */ + public function getULHostInstancePrice(GetULHostInstancePriceRequest $request = null) + { + $resp = $this->invoke($request); + return new GetULHostInstancePriceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetULHostRenewPrice - 获取主机续费价格 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/get_ul_host_renew_price + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ULHostId" => (string) ULHost实例ID + * "ChargeType" => (string) 计费类型。支持:Year/Month;默认:Month + * ] + * + * Outputs: + * + * $outputs = [ + * "PriceSet" => (array) 价格[ + * [ + * "ChargeType" => (string) 计费模式 + * "Price" => (number) 价格 + * "OriginalPrice" => (number) 原价 + * ] + * ] + * ] + * + * @return GetULHostRenewPriceResponse + * @throws UCloudException + */ + public function getULHostRenewPrice(GetULHostRenewPriceRequest $request = null) + { + $resp = $this->invoke($request); + return new GetULHostRenewPriceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ModifyULHostAttribute - 修改指定ULHost实例属性信息,包含名称和备注 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/modify_ul_host_attribute + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ULHostId" => (string) ULHost实例Id + * "Name" => (string) 名称。和Remark至少选择一个进行修改 + * "Remark" => (string) 备注。和Name至少选择一个进行修改 + * ] + * + * Outputs: + * + * $outputs = [ + * "ULHostId" => (string) ULHost实例Id + * ] + * + * @return ModifyULHostAttributeResponse + * @throws UCloudException + */ + public function modifyULHostAttribute(ModifyULHostAttributeRequest $request = null) + { + $resp = $this->invoke($request); + return new ModifyULHostAttributeResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * PoweroffULHostInstance - 直接关闭UHost实例电源,无需等待实例正常关闭。 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/poweroff_ul_host_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) + * "ULHostId" => (string) ULHost实例ID + * ] + * + * Outputs: + * + * $outputs = [ + * "ULHostId" => (string) ULHost实例ID + * ] + * + * @return PoweroffULHostInstanceResponse + * @throws UCloudException + */ + public function poweroffULHostInstance(PoweroffULHostInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new PoweroffULHostInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * RebootCompShareInstance - 重启轻量算力平台实例 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/reboot_comp_share_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) + * "UHostId" => (string) 实例Id + * ] + * + * Outputs: + * + * $outputs = [ + * "UHostId" => (string) 实例Id + * ] + * + * @return RebootCompShareInstanceResponse + * @throws UCloudException + */ + public function rebootCompShareInstance(RebootCompShareInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new RebootCompShareInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * RebootULHostInstance - 重新启动UHost实例。 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/reboot_ul_host_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) + * "ULHostId" => (string) ULHost实例ID + * ] + * + * Outputs: + * + * $outputs = [ + * "ULHostId" => (string) ULHost实例ID + * ] + * + * @return RebootULHostInstanceResponse + * @throws UCloudException + */ + public function rebootULHostInstance(RebootULHostInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new RebootULHostInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ReinstallCompShareInstance - 重装算力平台实例 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/reinstall_comp_share_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) + * "UHostId" => (string) 实例Id + * "CompShareImageId" => (string) 镜像Id + * "Password" => (string) 实例的新密码 + * ] + * + * Outputs: + * + * $outputs = [ + * "UHostId" => (string) 实例Id + * ] + * + * @return ReinstallCompShareInstanceResponse + * @throws UCloudException + */ + public function reinstallCompShareInstance(ReinstallCompShareInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new ReinstallCompShareInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ReinstallULHostInstance - 重装轻量应用云主机 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/reinstall_ul_host_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) + * "ImageId" => (string) 镜像Id。暂不支持使用自定义镜像重装 + * "ULHostId" => (string) 实例Id + * "Password" => (string) 登陆密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64 UGFzc3dvcmQx + * ] + * + * Outputs: + * + * $outputs = [ + * "ULHostId" => (string) 实例Id + * ] + * + * @return ReinstallULHostInstanceResponse + * @throws UCloudException + */ + public function reinstallULHostInstance(ReinstallULHostInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new ReinstallULHostInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ResetCompShareInstancePassword - 重置算力平台实例密码 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/reset_comp_share_instance_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) + * "UHostId" => (string) 实例Id + * "Password" => (string) 新密码。需经Base64编码 + * ] + * + * Outputs: + * + * $outputs = [ + * "UHostId" => (string) 实例Id + * ] + * + * @return ResetCompShareInstancePasswordResponse + * @throws UCloudException + */ + public function resetCompShareInstancePassword(ResetCompShareInstancePasswordRequest $request = null) + { + $resp = $this->invoke($request); + return new ResetCompShareInstancePasswordResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ResetULHostInstancePassword - 重置轻量应用云主机管理员密码。 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/reset_ul_host_instance_password + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ULHostId" => (string) ULHost实例ID + * "Password" => (string) ULHost新密码(密码格式使用BASE64编码) + * ] + * + * Outputs: + * + * $outputs = [ + * "ULHostId" => (string) ULHost实例ID + * ] + * + * @return ResetULHostInstancePasswordResponse + * @throws UCloudException + */ + public function resetULHostInstancePassword(ResetULHostInstancePasswordRequest $request = null) + { + $resp = $this->invoke($request); + return new ResetULHostInstancePasswordResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * StartCompShareInstance - 启动算力平台实例 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/start_comp_share_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) + * "UHostId" => (string) 实例Id + * ] + * + * Outputs: + * + * $outputs = [ + * "UHostId" => (string) 实例Id + * ] + * + * @return StartCompShareInstanceResponse + * @throws UCloudException + */ + public function startCompShareInstance(StartCompShareInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new StartCompShareInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * StartULHostInstance - 启动处于关闭状态的UHost实例。 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/start_ul_host_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) + * "ULHostId" => (string) ULHost实例ID + * ] + * + * Outputs: + * + * $outputs = [ + * "ULHostId" => (string) ULHost实例ID + * ] + * + * @return StartULHostInstanceResponse + * @throws UCloudException + */ + public function startULHostInstance(StartULHostInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new StartULHostInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * StopCompShareInstance - 关闭算力平台实例 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/stop_comp_share_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) + * "UHostId" => (string) 实例Id + * ] + * + * Outputs: + * + * $outputs = [ + * "UHostId" => (string) 实例Id + * ] + * + * @return StopCompShareInstanceResponse + * @throws UCloudException + */ + public function stopCompShareInstance(StopCompShareInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new StopCompShareInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * StopULHostInstance - 指停止处于运行状态的ULHost实例 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/stop_ul_host_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) + * "ULHostId" => (string) ULHost实例ID。 + * ] + * + * Outputs: + * + * $outputs = [ + * "ULHostId" => (string) ULHost实例ID + * ] + * + * @return StopULHostInstanceResponse + * @throws UCloudException + */ + public function stopULHostInstance(StopULHostInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new StopULHostInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * TerminateCompShareInstance - 删除轻量算力共享平台虚机实例 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/terminate_comp_share_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) + * "UHostId" => (string) 虚机资源id + * ] + * + * Outputs: + * + * $outputs = [ + * "UHostId" => (string) 虚机资源id + * ] + * + * @return TerminateCompShareInstanceResponse + * @throws UCloudException + */ + public function terminateCompShareInstance(TerminateCompShareInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new TerminateCompShareInstanceResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * TerminateULHostInstance - 删除指定数据中心的ULHost实例。 + * + * See also: https://docs.ucloud.cn/api/ucompshare-api/terminate_ul_host_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) + * "ULHostId" => (string) ULHost资源Id + * "ReleaseUDisk" => (boolean) 删除主机时是否同时删除挂载的数据盘。默认为false。 + * ] + * + * Outputs: + * + * $outputs = [ + * "InRecycle" => (string) 用于判断主机删除时是否进入回收站。放入回收站:"Yes", 彻底删除:“No”。 + * "ULHostId" => (string) ULHost 实例 Id + * ] + * + * @return TerminateULHostInstanceResponse + * @throws UCloudException + */ + public function terminateULHostInstance(TerminateULHostInstanceRequest $request = null) + { + $resp = $this->invoke($request); + return new TerminateULHostInstanceResponse($resp->toArray(), $resp->getRequestId()); + } +}