Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.10
0.3.11
252 changes: 252 additions & 0 deletions src/ULightHost/Apis/CheckULHostResourceCapacityRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,252 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\ULightHost\Apis;

use UCloud\Core\Request\Request;

class CheckULHostResourceCapacityRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "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);
}
}
44 changes: 44 additions & 0 deletions src/ULightHost/Apis/CheckULHostResourceCapacityResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\ULightHost\Apis;

use UCloud\Core\Response\Response;

class CheckULHostResourceCapacityResponse extends Response
{


/**
* ResourceEnough: 资源是否充足
*
* @return boolean|null
*/
public function getResourceEnough()
{
return $this->get("ResourceEnough");
}

/**
* ResourceEnough: 资源是否充足
*
* @param boolean $resourceEnough
*/
public function setResourceEnough($resourceEnough)
{
$this->set("ResourceEnough", $resourceEnough);
}
}
Loading