From 4b3caaddfa5a01aba75193ddb28f372bdaa2e948 Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Wed, 17 Dec 2025 11:39:19 +0000 Subject: [PATCH] sdk: rolling update for 0.3.11 --- VERSION | 2 +- .../CheckULHostResourceCapacityRequest.php | 252 ++++++++ .../CheckULHostResourceCapacityResponse.php | 44 ++ .../Apis/CreateULHostInstanceRequest.php | 273 ++++++++ .../Apis/CreateULHostInstanceResponse.php | 44 ++ .../Apis/DescribeULHostBundlesRequest.php | 70 ++ .../Apis/DescribeULHostBundlesResponse.php | 57 ++ .../Apis/DescribeULHostImageRequest.php | 250 +++++++ .../Apis/DescribeULHostImageResponse.php | 77 +++ .../Apis/DescribeULHostInstanceRequest.php | 130 ++++ .../Apis/DescribeULHostInstanceResponse.php | 60 ++ .../Apis/GetULHostInstancePriceRequest.php | 151 +++++ .../Apis/GetULHostInstancePriceResponse.php | 57 ++ .../Apis/GetULHostRenewPriceRequest.php | 111 ++++ .../Apis/GetULHostRenewPriceResponse.php | 57 ++ .../Apis/ModifyULHostAttributeRequest.php | 131 ++++ .../Apis/ModifyULHostAttributeResponse.php | 44 ++ .../Apis/PoweroffULHostInstanceRequest.php | 91 +++ .../Apis/PoweroffULHostInstanceResponse.php | 44 ++ .../Apis/RebootULHostInstanceRequest.php | 91 +++ .../Apis/RebootULHostInstanceResponse.php | 44 ++ .../Apis/ReinstallULHostInstanceRequest.php | 133 ++++ .../Apis/ReinstallULHostInstanceResponse.php | 44 ++ .../ResetULHostInstancePasswordRequest.php | 112 ++++ .../ResetULHostInstancePasswordResponse.php | 44 ++ .../Apis/StartULHostInstanceRequest.php | 91 +++ .../Apis/StartULHostInstanceResponse.php | 44 ++ .../Apis/StopULHostInstanceRequest.php | 91 +++ .../Apis/StopULHostInstanceResponse.php | 44 ++ .../Apis/TerminateULHostInstanceRequest.php | 111 ++++ .../Apis/TerminateULHostInstanceResponse.php | 64 ++ src/ULightHost/Models/Bundle.php | 144 +++++ src/ULightHost/Models/ExclusiveUTPInfo.php | 164 +++++ src/ULightHost/Models/UHostIPSet.php | 244 +++++++ src/ULightHost/Models/ULHostDiskSet.php | 144 +++++ src/ULightHost/Models/ULHostImageSet.php | 384 +++++++++++ src/ULightHost/Models/ULHostInstanceSet.php | 428 ++++++++++++ src/ULightHost/Models/ULHostPriceSet.php | 84 +++ src/ULightHost/ULightHostClient.php | 610 ++++++++++++++++++ 39 files changed, 5059 insertions(+), 1 deletion(-) create mode 100644 src/ULightHost/Apis/CheckULHostResourceCapacityRequest.php create mode 100644 src/ULightHost/Apis/CheckULHostResourceCapacityResponse.php create mode 100644 src/ULightHost/Apis/CreateULHostInstanceRequest.php create mode 100644 src/ULightHost/Apis/CreateULHostInstanceResponse.php create mode 100644 src/ULightHost/Apis/DescribeULHostBundlesRequest.php create mode 100644 src/ULightHost/Apis/DescribeULHostBundlesResponse.php create mode 100644 src/ULightHost/Apis/DescribeULHostImageRequest.php create mode 100644 src/ULightHost/Apis/DescribeULHostImageResponse.php create mode 100644 src/ULightHost/Apis/DescribeULHostInstanceRequest.php create mode 100644 src/ULightHost/Apis/DescribeULHostInstanceResponse.php create mode 100644 src/ULightHost/Apis/GetULHostInstancePriceRequest.php create mode 100644 src/ULightHost/Apis/GetULHostInstancePriceResponse.php create mode 100644 src/ULightHost/Apis/GetULHostRenewPriceRequest.php create mode 100644 src/ULightHost/Apis/GetULHostRenewPriceResponse.php create mode 100644 src/ULightHost/Apis/ModifyULHostAttributeRequest.php create mode 100644 src/ULightHost/Apis/ModifyULHostAttributeResponse.php create mode 100644 src/ULightHost/Apis/PoweroffULHostInstanceRequest.php create mode 100644 src/ULightHost/Apis/PoweroffULHostInstanceResponse.php create mode 100644 src/ULightHost/Apis/RebootULHostInstanceRequest.php create mode 100644 src/ULightHost/Apis/RebootULHostInstanceResponse.php create mode 100644 src/ULightHost/Apis/ReinstallULHostInstanceRequest.php create mode 100644 src/ULightHost/Apis/ReinstallULHostInstanceResponse.php create mode 100644 src/ULightHost/Apis/ResetULHostInstancePasswordRequest.php create mode 100644 src/ULightHost/Apis/ResetULHostInstancePasswordResponse.php create mode 100644 src/ULightHost/Apis/StartULHostInstanceRequest.php create mode 100644 src/ULightHost/Apis/StartULHostInstanceResponse.php create mode 100644 src/ULightHost/Apis/StopULHostInstanceRequest.php create mode 100644 src/ULightHost/Apis/StopULHostInstanceResponse.php create mode 100644 src/ULightHost/Apis/TerminateULHostInstanceRequest.php create mode 100644 src/ULightHost/Apis/TerminateULHostInstanceResponse.php create mode 100644 src/ULightHost/Models/Bundle.php create mode 100644 src/ULightHost/Models/ExclusiveUTPInfo.php create mode 100644 src/ULightHost/Models/UHostIPSet.php create mode 100644 src/ULightHost/Models/ULHostDiskSet.php create mode 100644 src/ULightHost/Models/ULHostImageSet.php create mode 100644 src/ULightHost/Models/ULHostInstanceSet.php create mode 100644 src/ULightHost/Models/ULHostPriceSet.php create mode 100644 src/ULightHost/ULightHostClient.php 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/ULightHost/Apis/CheckULHostResourceCapacityRequest.php b/src/ULightHost/Apis/CheckULHostResourceCapacityRequest.php new file mode 100644 index 0000000..1f797ce --- /dev/null +++ b/src/ULightHost/Apis/CheckULHostResourceCapacityRequest.php @@ -0,0 +1,252 @@ + "CheckULHostResourceCapacity"]); + $this->markRequired("Region"); + $this->markRequired("ImageId"); + $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); + } + + /** + * 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); + } + + /** + * 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,按月付费;\\ > ThirtyDay,30天期付费,跨境电商相关套餐使用此计费方式;默认:Month + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费模式。枚举值: \\ > Year,按年付费; \\ > Month,按月付费;\\ > ThirtyDay,30天期付费,跨境电商相关套餐使用此计费方式;默认: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/ULightHost/Apis/CheckULHostResourceCapacityResponse.php b/src/ULightHost/Apis/CheckULHostResourceCapacityResponse.php new file mode 100644 index 0000000..e796337 --- /dev/null +++ b/src/ULightHost/Apis/CheckULHostResourceCapacityResponse.php @@ -0,0 +1,44 @@ +get("ResourceEnough"); + } + + /** + * ResourceEnough: 资源是否充足 + * + * @param boolean $resourceEnough + */ + public function setResourceEnough($resourceEnough) + { + $this->set("ResourceEnough", $resourceEnough); + } +} diff --git a/src/ULightHost/Apis/CreateULHostInstanceRequest.php b/src/ULightHost/Apis/CreateULHostInstanceRequest.php new file mode 100644 index 0000000..f9fe50a --- /dev/null +++ b/src/ULightHost/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,按月付费;\\ > ThirtyDay,30天期付费,跨境电商相关套餐使用此计费方式;默认:Month + * + * @return string|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费模式。枚举值: \\ > Year,按年付费; \\ > Month,按月付费;\\ > ThirtyDay,30天期付费,跨境电商相关套餐使用此计费方式;默认: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/ULightHost/Apis/CreateULHostInstanceResponse.php b/src/ULightHost/Apis/CreateULHostInstanceResponse.php new file mode 100644 index 0000000..91db291 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/DescribeULHostBundlesRequest.php b/src/ULightHost/Apis/DescribeULHostBundlesRequest.php new file mode 100644 index 0000000..8541a9f --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/DescribeULHostBundlesResponse.php b/src/ULightHost/Apis/DescribeULHostBundlesResponse.php new file mode 100644 index 0000000..20800bb --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/DescribeULHostImageRequest.php b/src/ULightHost/Apis/DescribeULHostImageRequest.php new file mode 100644 index 0000000..395c175 --- /dev/null +++ b/src/ULightHost/Apis/DescribeULHostImageRequest.php @@ -0,0 +1,250 @@ + "DescribeULHostImage"]); + $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: 镜像类型。标准镜像:Base,应用镜像:App, 自定义镜像:Custom,默认返回所有类型 + * + * @return string|null + */ + public function getImageType() + { + return $this->get("ImageType"); + } + + /** + * ImageType: 镜像类型。标准镜像:Base,应用镜像:App, 自定义镜像:Custom,默认返回所有类型 + * + * @param string $imageType + */ + public function setImageType($imageType) + { + $this->set("ImageType", $imageType); + } + + /** + * Scene: 使用场景,当ImageType为"App"时生效。- Normal 常规专区- CrossBorder 跨境专区默认返回所有 + * + * @return string|null + */ + public function getScene() + { + return $this->get("Scene"); + } + + /** + * Scene: 使用场景,当ImageType为"App"时生效。- Normal 常规专区- CrossBorder 跨境专区默认返回所有 + * + * @param string $scene + */ + public function setScene($scene) + { + $this->set("Scene", $scene); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * ImageIds: 镜像Id列表 + * + * @return string[]|null + */ + public function getImageIds() + { + return $this->get("ImageIds"); + } + + /** + * ImageIds: 镜像Id列表 + * + * @param string[] $imageIds + */ + public function setImageIds(array $imageIds) + { + $this->set("ImageIds", $imageIds); + } + + /** + * Tag: 业务组Id。默认:Default + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 业务组Id。默认:Default + * + * @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 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 返回数据长度,默认为20 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } +} diff --git a/src/ULightHost/Apis/DescribeULHostImageResponse.php b/src/ULightHost/Apis/DescribeULHostImageResponse.php new file mode 100644 index 0000000..33e8ca5 --- /dev/null +++ b/src/ULightHost/Apis/DescribeULHostImageResponse.php @@ -0,0 +1,77 @@ +get("TotalCount"); + } + + /** + * TotalCount: 满足条件的镜像总数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } + + /** + * ImageSet: 镜像列表详见 UHostImageSet + * + * @return ULHostImageSet[]|null + */ + public function getImageSet() + { + $items = $this->get("ImageSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new ULHostImageSet($item)); + } + return $result; + } + + /** + * ImageSet: 镜像列表详见 UHostImageSet + * + * @param ULHostImageSet[] $imageSet + */ + public function setImageSet(array $imageSet) + { + $result = []; + foreach ($imageSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/ULightHost/Apis/DescribeULHostInstanceRequest.php b/src/ULightHost/Apis/DescribeULHostInstanceRequest.php new file mode 100644 index 0000000..7507228 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/DescribeULHostInstanceResponse.php b/src/ULightHost/Apis/DescribeULHostInstanceResponse.php new file mode 100644 index 0000000..1530691 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/GetULHostInstancePriceRequest.php b/src/ULightHost/Apis/GetULHostInstancePriceRequest.php new file mode 100644 index 0000000..71e4450 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/GetULHostInstancePriceResponse.php b/src/ULightHost/Apis/GetULHostInstancePriceResponse.php new file mode 100644 index 0000000..bae5aab --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/GetULHostRenewPriceRequest.php b/src/ULightHost/Apis/GetULHostRenewPriceRequest.php new file mode 100644 index 0000000..70ebc74 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/GetULHostRenewPriceResponse.php b/src/ULightHost/Apis/GetULHostRenewPriceResponse.php new file mode 100644 index 0000000..22e0234 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/ModifyULHostAttributeRequest.php b/src/ULightHost/Apis/ModifyULHostAttributeRequest.php new file mode 100644 index 0000000..dd22dd5 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/ModifyULHostAttributeResponse.php b/src/ULightHost/Apis/ModifyULHostAttributeResponse.php new file mode 100644 index 0000000..d4fc70d --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/PoweroffULHostInstanceRequest.php b/src/ULightHost/Apis/PoweroffULHostInstanceRequest.php new file mode 100644 index 0000000..29982bd --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/PoweroffULHostInstanceResponse.php b/src/ULightHost/Apis/PoweroffULHostInstanceResponse.php new file mode 100644 index 0000000..b6a028f --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/RebootULHostInstanceRequest.php b/src/ULightHost/Apis/RebootULHostInstanceRequest.php new file mode 100644 index 0000000..b3f65d6 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/RebootULHostInstanceResponse.php b/src/ULightHost/Apis/RebootULHostInstanceResponse.php new file mode 100644 index 0000000..c23ca4c --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/ReinstallULHostInstanceRequest.php b/src/ULightHost/Apis/ReinstallULHostInstanceRequest.php new file mode 100644 index 0000000..c35d884 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/ReinstallULHostInstanceResponse.php b/src/ULightHost/Apis/ReinstallULHostInstanceResponse.php new file mode 100644 index 0000000..b71256a --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/ResetULHostInstancePasswordRequest.php b/src/ULightHost/Apis/ResetULHostInstancePasswordRequest.php new file mode 100644 index 0000000..12fbdab --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/ResetULHostInstancePasswordResponse.php b/src/ULightHost/Apis/ResetULHostInstancePasswordResponse.php new file mode 100644 index 0000000..a542229 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/StartULHostInstanceRequest.php b/src/ULightHost/Apis/StartULHostInstanceRequest.php new file mode 100644 index 0000000..bd4930a --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/StartULHostInstanceResponse.php b/src/ULightHost/Apis/StartULHostInstanceResponse.php new file mode 100644 index 0000000..c6ba8fa --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/StopULHostInstanceRequest.php b/src/ULightHost/Apis/StopULHostInstanceRequest.php new file mode 100644 index 0000000..bc98a37 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/StopULHostInstanceResponse.php b/src/ULightHost/Apis/StopULHostInstanceResponse.php new file mode 100644 index 0000000..ea04318 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/TerminateULHostInstanceRequest.php b/src/ULightHost/Apis/TerminateULHostInstanceRequest.php new file mode 100644 index 0000000..31b8717 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Apis/TerminateULHostInstanceResponse.php b/src/ULightHost/Apis/TerminateULHostInstanceResponse.php new file mode 100644 index 0000000..25e7481 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Models/Bundle.php b/src/ULightHost/Models/Bundle.php new file mode 100644 index 0000000..5e34a59 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Models/ExclusiveUTPInfo.php b/src/ULightHost/Models/ExclusiveUTPInfo.php new file mode 100644 index 0000000..75ce0a0 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Models/UHostIPSet.php b/src/ULightHost/Models/UHostIPSet.php new file mode 100644 index 0000000..e1d053e --- /dev/null +++ b/src/ULightHost/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/ULightHost/Models/ULHostDiskSet.php b/src/ULightHost/Models/ULHostDiskSet.php new file mode 100644 index 0000000..96fc925 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Models/ULHostImageSet.php b/src/ULightHost/Models/ULHostImageSet.php new file mode 100644 index 0000000..99124da --- /dev/null +++ b/src/ULightHost/Models/ULHostImageSet.php @@ -0,0 +1,384 @@ +get("Zone"); + } + + /** + * Zone: 可用区,参见 [可用区列表](../summary/regionlist.html) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * 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); + } + + /** + * DisplayName: 用于控制台显示的名称 + * + * @return string|null + */ + public function getDisplayName() + { + return $this->get("DisplayName"); + } + + /** + * DisplayName: 用于控制台显示的名称 + * + * @param string $displayName + */ + public function setDisplayName($displayName) + { + $this->set("DisplayName", $displayName); + } + + /** + * Tag: 业务组 + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: 业务组 + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } + + /** + * 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); + } + + /** + * OsName: 操作系统名称 + * + * @return string|null + */ + public function getOsName() + { + return $this->get("OsName"); + } + + /** + * OsName: 操作系统名称 + * + * @param string $osName + */ + public function setOsName($osName) + { + $this->set("OsName", $osName); + } + + /** + * ImageType: 镜像类型 标准镜像:Base, 行业镜像:Business,自定义镜像:Custom + * + * @return string|null + */ + public function getImageType() + { + return $this->get("ImageType"); + } + + /** + * ImageType: 镜像类型 标准镜像:Base, 行业镜像:Business,自定义镜像:Custom + * + * @param string $imageType + */ + public function setImageType($imageType) + { + $this->set("ImageType", $imageType); + } + + /** + * Features: 特殊状态标识,目前包含NetEnhnced(网络增强1.0), NetEnhanced_Ultra(网络增强2.0), NetEnhanced_Extreme(网络增强3.0), HotPlug(热升级), GPU(GPU镜像),CloudInit, IPv6(支持IPv6网络),RssdAttachable(支持RSSD云盘),Vgpu_AMD(支持AMD的vgpu),Vgpu_NVIDIA(支持NVIDIA的vgpu),Aarch64_Type(支持arm64架构) + * + * @return string[]|null + */ + public function getFeatures() + { + return $this->get("Features"); + } + + /** + * Features: 特殊状态标识,目前包含NetEnhnced(网络增强1.0), NetEnhanced_Ultra(网络增强2.0), NetEnhanced_Extreme(网络增强3.0), HotPlug(热升级), GPU(GPU镜像),CloudInit, IPv6(支持IPv6网络),RssdAttachable(支持RSSD云盘),Vgpu_AMD(支持AMD的vgpu),Vgpu_NVIDIA(支持NVIDIA的vgpu),Aarch64_Type(支持arm64架构) + * + * @param string[] $features + */ + public function setFeatures(array $features) + { + $this->set("Features", $features); + } + + /** + * IntegratedSoftware: 集成软件名称(仅行业镜像将返回这个值) + * + * @return string|null + */ + public function getIntegratedSoftware() + { + return $this->get("IntegratedSoftware"); + } + + /** + * IntegratedSoftware: 集成软件名称(仅行业镜像将返回这个值) + * + * @param string $integratedSoftware + */ + public function setIntegratedSoftware($integratedSoftware) + { + $this->set("IntegratedSoftware", $integratedSoftware); + } + + /** + * State: 镜像状态, 可用:Available,制作中:Making, 不可用:Unavailable,复制中:Copying + * + * @return string|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: 镜像状态, 可用:Available,制作中:Making, 不可用:Unavailable,复制中:Copying + * + * @param string $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * ImageDescription: 镜像描述 + * + * @return string|null + */ + public function getImageDescription() + { + return $this->get("ImageDescription"); + } + + /** + * ImageDescription: 镜像描述 + * + * @param string $imageDescription + */ + public function setImageDescription($imageDescription) + { + $this->set("ImageDescription", $imageDescription); + } + + /** + * 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); + } + + /** + * ImageSize: 镜像大小 + * + * @return integer|null + */ + public function getImageSize() + { + return $this->get("ImageSize"); + } + + /** + * ImageSize: 镜像大小 + * + * @param int $imageSize + */ + public function setImageSize($imageSize) + { + $this->set("ImageSize", $imageSize); + } + + /** + * MinimalCPU: 默认值为空'''。当CentOS 7.3/7.4/7.5等镜像会标记为“Broadwell” + * + * @return string|null + */ + public function getMinimalCPU() + { + return $this->get("MinimalCPU"); + } + + /** + * MinimalCPU: 默认值为空'''。当CentOS 7.3/7.4/7.5等镜像会标记为“Broadwell” + * + * @param string $minimalCPU + */ + public function setMinimalCPU($minimalCPU) + { + $this->set("MinimalCPU", $minimalCPU); + } + + /** + * MaintainEol: 系统EOL的时间,格式:YYYY/MM/DD + * + * @return string|null + */ + public function getMaintainEol() + { + return $this->get("MaintainEol"); + } + + /** + * MaintainEol: 系统EOL的时间,格式:YYYY/MM/DD + * + * @param string $maintainEol + */ + public function setMaintainEol($maintainEol) + { + $this->set("MaintainEol", $maintainEol); + } + + /** + * SceneCategories: 场景分类,目前包含Featured(精选),PreInstalledDrivers(预装驱动),AIPainting(AI绘画),AIModels(AI模型),HPC(高性能计算) + * + * @return string[]|null + */ + public function getSceneCategories() + { + return $this->get("SceneCategories"); + } + + /** + * SceneCategories: 场景分类,目前包含Featured(精选),PreInstalledDrivers(预装驱动),AIPainting(AI绘画),AIModels(AI模型),HPC(高性能计算) + * + * @param string[] $sceneCategories + */ + public function setSceneCategories(array $sceneCategories) + { + $this->set("SceneCategories", $sceneCategories); + } + + /** + * ImageLogoLink: 应用镜像图标url + * + * @return string|null + */ + public function getImageLogoLink() + { + return $this->get("ImageLogoLink"); + } + + /** + * ImageLogoLink: 应用镜像图标url + * + * @param string $imageLogoLink + */ + public function setImageLogoLink($imageLogoLink) + { + $this->set("ImageLogoLink", $imageLogoLink); + } +} diff --git a/src/ULightHost/Models/ULHostInstanceSet.php b/src/ULightHost/Models/ULHostInstanceSet.php new file mode 100644 index 0000000..8e68e24 --- /dev/null +++ b/src/ULightHost/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/ULightHost/Models/ULHostPriceSet.php b/src/ULightHost/Models/ULHostPriceSet.php new file mode 100644 index 0000000..a865de6 --- /dev/null +++ b/src/ULightHost/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/ULightHost/ULightHostClient.php b/src/ULightHost/ULightHostClient.php new file mode 100644 index 0000000..ef5b23e --- /dev/null +++ b/src/ULightHost/ULightHostClient.php @@ -0,0 +1,610 @@ + (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" + * "Name" => (string) 轻量应用主机名称。默认:套餐ID。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。 + * "ChargeType" => (string) 计费模式。枚举值: \\ > Year,按年付费; \\ > Month,按月付费;\\ > ThirtyDay,30天期付费,跨境电商相关套餐使用此计费方式;默认: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 = [ + * "ResourceEnough" => (boolean) 资源是否充足 + * ] + * + * @return CheckULHostResourceCapacityResponse + * @throws UCloudException + */ + public function checkULHostResourceCapacity(CheckULHostResourceCapacityRequest $request = null) + { + $resp = $this->invoke($request); + return new CheckULHostResourceCapacityResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateULHostInstance - 创建轻量应用云主机 + * + * See also: https://docs.ucloud.cn/api/ulighthost-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,按月付费;\\ > ThirtyDay,30天期付费,跨境电商相关套餐使用此计费方式;默认: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()); + } + + /** + * DescribeULHostBundles - 获取轻量应用云主机套餐列表 + * + * See also: https://docs.ucloud.cn/api/ulighthost-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()); + } + + /** + * DescribeULHostImage - 获取指定数据中心镜像列表 + * + * See also: https://docs.ucloud.cn/api/ulighthost-api/describe_ul_host_image + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ImageType" => (string) 镜像类型。标准镜像:Base,应用镜像:App, 自定义镜像:Custom,默认返回所有类型 + * "Scene" => (string) 使用场景,当ImageType为"App"时生效。- Normal 常规专区- CrossBorder 跨境专区默认返回所有 + * "OsType" => (string) 操作系统类型:Linux, Windows 默认返回所有类型 + * "ImageId" => (string) 镜像Id + * "ImageIds" => (array) 镜像Id列表 + * "Tag" => (string) 业务组Id。默认:Default + * "Offset" => (integer) 列表起始位置偏移量,默认为0 + * "Limit" => (integer) 返回数据长度,默认为20 + * ] + * + * Outputs: + * + * $outputs = [ + * "TotalCount" => (integer) 满足条件的镜像总数 + * "ImageSet" => (array) 镜像列表详见 UHostImageSet[ + * [ + * "Zone" => (string) 可用区,参见 [可用区列表](../summary/regionlist.html) + * "ImageId" => (string) 镜像ID + * "ImageName" => (string) 镜像名称 + * "DisplayName" => (string) 用于控制台显示的名称 + * "Tag" => (string) 业务组 + * "OsType" => (string) 操作系统类型:Linux,Windows + * "OsName" => (string) 操作系统名称 + * "ImageType" => (string) 镜像类型 标准镜像:Base, 行业镜像:Business,自定义镜像:Custom + * "Features" => (array) 特殊状态标识,目前包含NetEnhnced(网络增强1.0), NetEnhanced_Ultra(网络增强2.0), NetEnhanced_Extreme(网络增强3.0), HotPlug(热升级), GPU(GPU镜像),CloudInit, IPv6(支持IPv6网络),RssdAttachable(支持RSSD云盘),Vgpu_AMD(支持AMD的vgpu),Vgpu_NVIDIA(支持NVIDIA的vgpu),Aarch64_Type(支持arm64架构) + * "IntegratedSoftware" => (string) 集成软件名称(仅行业镜像将返回这个值) + * "State" => (string) 镜像状态, 可用:Available,制作中:Making, 不可用:Unavailable,复制中:Copying + * "ImageDescription" => (string) 镜像描述 + * "CreateTime" => (integer) 创建时间,格式为Unix时间戳 + * "ImageSize" => (integer) 镜像大小 + * "MinimalCPU" => (string) 默认值为空'''。当CentOS 7.3/7.4/7.5等镜像会标记为“Broadwell” + * "MaintainEol" => (string) 系统EOL的时间,格式:YYYY/MM/DD + * "SceneCategories" => (array) 场景分类,目前包含Featured(精选),PreInstalledDrivers(预装驱动),AIPainting(AI绘画),AIModels(AI模型),HPC(高性能计算) + * "ImageLogoLink" => (string) 应用镜像图标url + * ] + * ] + * ] + * + * @return DescribeULHostImageResponse + * @throws UCloudException + */ + public function describeULHostImage(DescribeULHostImageRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeULHostImageResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeULHostInstance - 获取轻量应用云主机列表 + * + * See also: https://docs.ucloud.cn/api/ulighthost-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/ulighthost-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/ulighthost-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/ulighthost-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/ulighthost-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()); + } + + /** + * RebootULHostInstance - 重新启动UHost实例。 + * + * See also: https://docs.ucloud.cn/api/ulighthost-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()); + } + + /** + * ReinstallULHostInstance - 重装轻量应用云主机 + * + * See also: https://docs.ucloud.cn/api/ulighthost-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()); + } + + /** + * ResetULHostInstancePassword - 重置轻量应用云主机管理员密码。 + * + * See also: https://docs.ucloud.cn/api/ulighthost-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()); + } + + /** + * StartULHostInstance - 启动处于关闭状态的UHost实例。 + * + * See also: https://docs.ucloud.cn/api/ulighthost-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()); + } + + /** + * StopULHostInstance - 指停止处于运行状态的ULHost实例 + * + * See also: https://docs.ucloud.cn/api/ulighthost-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()); + } + + /** + * TerminateULHostInstance - 删除指定数据中心的ULHost实例。 + * + * See also: https://docs.ucloud.cn/api/ulighthost-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()); + } +}