Skip to content

Commit

Permalink
release 3.0.1149
Browse files Browse the repository at this point in the history
  • Loading branch information
tencentcloudapi committed May 26, 2024
1 parent 749f195 commit 233375b
Show file tree
Hide file tree
Showing 10 changed files with 212 additions and 55 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"tencentcloud/common": "3.0.1148"
"tencentcloud/common": "3.0.1149"
},
"autoload": {
"psr-4": {
Expand Down
12 changes: 12 additions & 0 deletions src/TencentCloud/Cynosdb/V20190107/Models/AddInstancesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
* @method void setMemory(integer $Memory) 设置内存,单位为GB
* @method integer getReadOnlyCount() 获取新增只读实例数,取值范围为(0,15]
* @method void setReadOnlyCount(integer $ReadOnlyCount) 设置新增只读实例数,取值范围为(0,15]
* @method string getDeviceType() 获取实例机器类型
* @method void setDeviceType(string $DeviceType) 设置实例机器类型
* @method string getInstanceGrpId() 获取实例组ID,在已有RO组中新增实例时使用,不传则新增RO组。当前版本不建议传输该值。
* @method void setInstanceGrpId(string $InstanceGrpId) 设置实例组ID,在已有RO组中新增实例时使用,不传则新增RO组。当前版本不建议传输该值。
* @method string getVpcId() 获取所属VPC网络ID。
Expand Down Expand Up @@ -79,6 +81,11 @@ class AddInstancesRequest extends AbstractModel
*/
public $ReadOnlyCount;

/**
* @var string 实例机器类型
*/
public $DeviceType;

/**
* @var string 实例组ID,在已有RO组中新增实例时使用,不传则新增RO组。当前版本不建议传输该值。
* @deprecated
Expand Down Expand Up @@ -151,6 +158,7 @@ class AddInstancesRequest extends AbstractModel
* @param integer $Cpu Cpu核数
* @param integer $Memory 内存,单位为GB
* @param integer $ReadOnlyCount 新增只读实例数,取值范围为(0,15]
* @param string $DeviceType 实例机器类型
* @param string $InstanceGrpId 实例组ID,在已有RO组中新增实例时使用,不传则新增RO组。当前版本不建议传输该值。
* @param string $VpcId 所属VPC网络ID。
* @param string $SubnetId 所属子网ID,如果设置了VpcId,则SubnetId必填。
Expand Down Expand Up @@ -195,6 +203,10 @@ public function deserialize($param)
$this->ReadOnlyCount = $param["ReadOnlyCount"];
}

if (array_key_exists("DeviceType",$param) and $param["DeviceType"] !== null) {
$this->DeviceType = $param["DeviceType"];
}

if (array_key_exists("InstanceGrpId",$param) and $param["InstanceGrpId"] !== null) {
$this->InstanceGrpId = $param["InstanceGrpId"];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@
* @method string getServerlessStatus() 获取serverless实例子状态
注意:此字段可能返回 null,表示取不到有效值。
* @method void setServerlessStatus(string $ServerlessStatus) 设置serverless实例子状态
注意:此字段可能返回 null,表示取不到有效值。
* @method array getInstanceTasks() 获取实例任务信息
注意:此字段可能返回 null,表示取不到有效值。
* @method void setInstanceTasks(array $InstanceTasks) 设置实例任务信息
注意:此字段可能返回 null,表示取不到有效值。
* @method string getInstanceDeviceType() 获取实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
* @method void setInstanceDeviceType(string $InstanceDeviceType) 设置实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
*/
class ClusterInstanceDetail extends AbstractModel
Expand Down Expand Up @@ -126,6 +134,18 @@ class ClusterInstanceDetail extends AbstractModel
*/
public $ServerlessStatus;

/**
* @var array 实例任务信息
注意:此字段可能返回 null,表示取不到有效值。
*/
public $InstanceTasks;

/**
* @var string 实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
*/
public $InstanceDeviceType;

/**
* @param string $InstanceId 实例ID
* @param string $InstanceName 实例名称
Expand All @@ -143,6 +163,10 @@ class ClusterInstanceDetail extends AbstractModel
* @param array $MaintainWeekDays 可以执行的时间,枚举值:["Mon","Tue","Wed","Thu","Fri", "Sat", "Sun"]
注意:此字段可能返回 null,表示取不到有效值。
* @param string $ServerlessStatus serverless实例子状态
注意:此字段可能返回 null,表示取不到有效值。
* @param array $InstanceTasks 实例任务信息
注意:此字段可能返回 null,表示取不到有效值。
* @param string $InstanceDeviceType 实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
*/
function __construct()
Expand Down Expand Up @@ -209,5 +233,18 @@ public function deserialize($param)
if (array_key_exists("ServerlessStatus",$param) and $param["ServerlessStatus"] !== null) {
$this->ServerlessStatus = $param["ServerlessStatus"];
}

if (array_key_exists("InstanceTasks",$param) and $param["InstanceTasks"] !== null) {
$this->InstanceTasks = [];
foreach ($param["InstanceTasks"] as $key => $value){
$obj = new ObjectTask();
$obj->deserialize($value);
array_push($this->InstanceTasks, $obj);
}
}

if (array_key_exists("InstanceDeviceType",$param) and $param["InstanceDeviceType"] !== null) {
$this->InstanceDeviceType = $param["InstanceDeviceType"];
}
}
}
16 changes: 16 additions & 0 deletions src/TencentCloud/Cynosdb/V20190107/Models/CynosdbInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@
* @method InstanceAbility getInstanceAbility() 获取当前实例支持的能力
注意:此字段可能返回 null,表示取不到有效值。
* @method void setInstanceAbility(InstanceAbility $InstanceAbility) 设置当前实例支持的能力
注意:此字段可能返回 null,表示取不到有效值。
* @method string getDeviceType() 获取实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
* @method void setDeviceType(string $DeviceType) 设置实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
*/
class CynosdbInstance extends AbstractModel
Expand Down Expand Up @@ -440,6 +444,12 @@ class CynosdbInstance extends AbstractModel
*/
public $InstanceAbility;

/**
* @var string 实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
*/
public $DeviceType;

/**
* @param string $Uin 用户Uin
* @param integer $AppId 用户AppId
Expand Down Expand Up @@ -507,6 +517,8 @@ class CynosdbInstance extends AbstractModel
* @param string $InstanceIndexMode 实例索引形态,可选值【mixedRowColumn(行列混存),onlyRowIndex(仅行存)】
注意:此字段可能返回 null,表示取不到有效值。
* @param InstanceAbility $InstanceAbility 当前实例支持的能力
注意:此字段可能返回 null,表示取不到有效值。
* @param string $DeviceType 实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
*/
function __construct()
Expand Down Expand Up @@ -758,5 +770,9 @@ public function deserialize($param)
$this->InstanceAbility = new InstanceAbility();
$this->InstanceAbility->deserialize($param["InstanceAbility"]);
}

if (array_key_exists("DeviceType",$param) and $param["DeviceType"] !== null) {
$this->DeviceType = $param["DeviceType"];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<li> MYSQL </li>
* @method boolean getIncludeZoneStocks() 获取是否需要返回可用区信息
* @method void setIncludeZoneStocks(boolean $IncludeZoneStocks) 设置是否需要返回可用区信息
* @method string getDeviceType() 获取实例机器类型
* @method void setDeviceType(string $DeviceType) 设置实例机器类型
*/
class DescribeInstanceSpecsRequest extends AbstractModel
{
Expand All @@ -40,10 +42,16 @@ class DescribeInstanceSpecsRequest extends AbstractModel
*/
public $IncludeZoneStocks;

/**
* @var string 实例机器类型
*/
public $DeviceType;

/**
* @param string $DbType 数据库类型,取值范围:
<li> MYSQL </li>
* @param boolean $IncludeZoneStocks 是否需要返回可用区信息
* @param string $DeviceType 实例机器类型
*/
function __construct()
{
Expand All @@ -65,5 +73,9 @@ public function deserialize($param)
if (array_key_exists("IncludeZoneStocks",$param) and $param["IncludeZoneStocks"] !== null) {
$this->IncludeZoneStocks = $param["IncludeZoneStocks"];
}

if (array_key_exists("DeviceType",$param) and $param["DeviceType"] !== null) {
$this->DeviceType = $param["DeviceType"];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
* @method void setInstancePayMode(string $InstancePayMode) 设置实例购买类型,可选值为:PREPAID, POSTPAID, SERVERLESS
* @method string getStoragePayMode() 获取存储购买类型,可选值为:PREPAID, POSTPAID
* @method void setStoragePayMode(string $StoragePayMode) 设置存储购买类型,可选值为:PREPAID, POSTPAID
* @method string getDeviceType() 获取实例设备类型
* @method void setDeviceType(string $DeviceType) 设置实例设备类型
* @method integer getCpu() 获取CPU核数,PREPAID与POSTPAID实例类型必传
* @method void setCpu(integer $Cpu) 设置CPU核数,PREPAID与POSTPAID实例类型必传
* @method integer getMemory() 获取内存大小,单位G,PREPAID与POSTPAID实例类型必传
Expand Down Expand Up @@ -63,6 +65,11 @@ class InquirePriceCreateRequest extends AbstractModel
*/
public $StoragePayMode;

/**
* @var string 实例设备类型
*/
public $DeviceType;

/**
* @var integer CPU核数,PREPAID与POSTPAID实例类型必传
*/
Expand Down Expand Up @@ -98,6 +105,7 @@ class InquirePriceCreateRequest extends AbstractModel
* @param integer $GoodsNum 购买计算节点个数
* @param string $InstancePayMode 实例购买类型,可选值为:PREPAID, POSTPAID, SERVERLESS
* @param string $StoragePayMode 存储购买类型,可选值为:PREPAID, POSTPAID
* @param string $DeviceType 实例设备类型
* @param integer $Cpu CPU核数,PREPAID与POSTPAID实例类型必传
* @param integer $Memory 内存大小,单位G,PREPAID与POSTPAID实例类型必传
* @param float $Ccu Ccu大小,serverless类型必传
Expand Down Expand Up @@ -134,6 +142,10 @@ public function deserialize($param)
$this->StoragePayMode = $param["StoragePayMode"];
}

if (array_key_exists("DeviceType",$param) and $param["DeviceType"] !== null) {
$this->DeviceType = $param["DeviceType"];
}

if (array_key_exists("Cpu",$param) and $param["Cpu"] !== null) {
$this->Cpu = $param["Cpu"];
}
Expand Down
12 changes: 12 additions & 0 deletions src/TencentCloud/Cynosdb/V20190107/Models/InstanceInitInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
* @method void setMinRoCpu(float $MinRoCpu) 设置Serverless实例最小规格
* @method float getMaxRoCpu() 获取Serverless实例最大规格
* @method void setMaxRoCpu(float $MaxRoCpu) 设置Serverless实例最大规格
* @method string getDeviceType() 获取实例机器类型
* @method void setDeviceType(string $DeviceType) 设置实例机器类型
*/
class InstanceInitInfo extends AbstractModel
{
Expand Down Expand Up @@ -79,6 +81,11 @@ class InstanceInitInfo extends AbstractModel
*/
public $MaxRoCpu;

/**
* @var string 实例机器类型
*/
public $DeviceType;

/**
* @param integer $Cpu 实例cpu
* @param integer $Memory 实例内存
Expand All @@ -88,6 +95,7 @@ class InstanceInitInfo extends AbstractModel
* @param integer $MaxRoCount Serverless实例个数最大值,范围[1,15]
* @param float $MinRoCpu Serverless实例最小规格
* @param float $MaxRoCpu Serverless实例最大规格
* @param string $DeviceType 实例机器类型
*/
function __construct()
{
Expand Down Expand Up @@ -133,5 +141,9 @@ public function deserialize($param)
if (array_key_exists("MaxRoCpu",$param) and $param["MaxRoCpu"] !== null) {
$this->MaxRoCpu = $param["MaxRoCpu"];
}

if (array_key_exists("DeviceType",$param) and $param["DeviceType"] !== null) {
$this->DeviceType = $param["DeviceType"];
}
}
}
32 changes: 32 additions & 0 deletions src/TencentCloud/Cynosdb/V20190107/Models/ModifyInstanceData.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
* @method void setOldMemory(integer $OldMemory) 设置变配前内存
* @method integer getOldStorageLimit() 获取变配前存储上限
* @method void setOldStorageLimit(integer $OldStorageLimit) 设置变配前存储上限
* @method string getOldDeviceType() 获取变配前实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
* @method void setOldDeviceType(string $OldDeviceType) 设置变配前实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
* @method string getDeviceType() 获取变配后实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
* @method void setDeviceType(string $DeviceType) 设置变配后实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
* @method string getUpgradeType() 获取升级方式。升级完成后切换或维护时间内切换
* @method void setUpgradeType(string $UpgradeType) 设置升级方式。升级完成后切换或维护时间内切换
*/
Expand Down Expand Up @@ -67,6 +75,18 @@ class ModifyInstanceData extends AbstractModel
*/
public $OldStorageLimit;

/**
* @var string 变配前实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
*/
public $OldDeviceType;

/**
* @var string 变配后实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
*/
public $DeviceType;

/**
* @var string 升级方式。升级完成后切换或维护时间内切换
*/
Expand All @@ -79,6 +99,10 @@ class ModifyInstanceData extends AbstractModel
* @param integer $OldCpu 变配前CPU
* @param integer $OldMemory 变配前内存
* @param integer $OldStorageLimit 变配前存储上限
* @param string $OldDeviceType 变配前实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
* @param string $DeviceType 变配后实例机器类型
注意:此字段可能返回 null,表示取不到有效值。
* @param string $UpgradeType 升级方式。升级完成后切换或维护时间内切换
*/
function __construct()
Expand Down Expand Up @@ -118,6 +142,14 @@ public function deserialize($param)
$this->OldStorageLimit = $param["OldStorageLimit"];
}

if (array_key_exists("OldDeviceType",$param) and $param["OldDeviceType"] !== null) {
$this->OldDeviceType = $param["OldDeviceType"];
}

if (array_key_exists("DeviceType",$param) and $param["DeviceType"] !== null) {
$this->DeviceType = $param["DeviceType"];
}

if (array_key_exists("UpgradeType",$param) and $param["UpgradeType"] !== null) {
$this->UpgradeType = $param["UpgradeType"];
}
Expand Down
Loading

0 comments on commit 233375b

Please sign in to comment.