Skip to content

Commit

Permalink
release 3.0.1064
Browse files Browse the repository at this point in the history
  • Loading branch information
tencentcloudapi committed Jan 9, 2024
1 parent df56b2a commit 5d3145e
Show file tree
Hide file tree
Showing 7 changed files with 249 additions and 1 deletion.
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.1063"
"tencentcloud/common": "3.0.1064"
},
"autoload": {
"psr-4": {
Expand Down
17 changes: 17 additions & 0 deletions src/TencentCloud/Cynosdb/V20190107/Models/CynosdbInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@
* @method string getInstanceIndexMode() 获取实例索引形态,可选值【mixedRowColumn(行列混存),onlyRowIndex(仅行存)】
注意:此字段可能返回 null,表示取不到有效值。
* @method void setInstanceIndexMode(string $InstanceIndexMode) 设置实例索引形态,可选值【mixedRowColumn(行列混存),onlyRowIndex(仅行存)】
注意:此字段可能返回 null,表示取不到有效值。
* @method InstanceAbility getInstanceAbility() 获取当前实例支持的能力
注意:此字段可能返回 null,表示取不到有效值。
* @method void setInstanceAbility(InstanceAbility $InstanceAbility) 设置当前实例支持的能力
注意:此字段可能返回 null,表示取不到有效值。
*/
class CynosdbInstance extends AbstractModel
Expand Down Expand Up @@ -430,6 +434,12 @@ class CynosdbInstance extends AbstractModel
*/
public $InstanceIndexMode;

/**
* @var InstanceAbility 当前实例支持的能力
注意:此字段可能返回 null,表示取不到有效值。
*/
public $InstanceAbility;

/**
* @param string $Uin 用户Uin
* @param integer $AppId 用户AppId
Expand Down Expand Up @@ -495,6 +505,8 @@ class CynosdbInstance extends AbstractModel
* @param array $ResourcePackages 实例绑定资源包信息(此处只返回计算资源包,即packageType=CCU)
注意:此字段可能返回 null,表示取不到有效值。
* @param string $InstanceIndexMode 实例索引形态,可选值【mixedRowColumn(行列混存),onlyRowIndex(仅行存)】
注意:此字段可能返回 null,表示取不到有效值。
* @param InstanceAbility $InstanceAbility 当前实例支持的能力
注意:此字段可能返回 null,表示取不到有效值。
*/
function __construct()
Expand Down Expand Up @@ -741,5 +753,10 @@ public function deserialize($param)
if (array_key_exists("InstanceIndexMode",$param) and $param["InstanceIndexMode"] !== null) {
$this->InstanceIndexMode = $param["InstanceIndexMode"];
}

if (array_key_exists("InstanceAbility",$param) and $param["InstanceAbility"] !== null) {
$this->InstanceAbility = new InstanceAbility();
$this->InstanceAbility->deserialize($param["InstanceAbility"]);
}
}
}
73 changes: 73 additions & 0 deletions src/TencentCloud/Cynosdb/V20190107/Models/InstanceAbility.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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 TencentCloud\Cynosdb\V20190107\Models;
use TencentCloud\Common\AbstractModel;

/**
* 实例允许的操作列表
*
* @method string getIsSupportForceRestart() 获取实例是否支持强制重启,可选值:yes:支持,no:不支持
注意:此字段可能返回 null,表示取不到有效值。
* @method void setIsSupportForceRestart(string $IsSupportForceRestart) 设置实例是否支持强制重启,可选值:yes:支持,no:不支持
注意:此字段可能返回 null,表示取不到有效值。
* @method string getNonsupportForceRestartReason() 获取不支持强制重启的原因
注意:此字段可能返回 null,表示取不到有效值。
* @method void setNonsupportForceRestartReason(string $NonsupportForceRestartReason) 设置不支持强制重启的原因
注意:此字段可能返回 null,表示取不到有效值。
*/
class InstanceAbility extends AbstractModel
{
/**
* @var string 实例是否支持强制重启,可选值:yes:支持,no:不支持
注意:此字段可能返回 null,表示取不到有效值。
*/
public $IsSupportForceRestart;

/**
* @var string 不支持强制重启的原因
注意:此字段可能返回 null,表示取不到有效值。
*/
public $NonsupportForceRestartReason;

/**
* @param string $IsSupportForceRestart 实例是否支持强制重启,可选值:yes:支持,no:不支持
注意:此字段可能返回 null,表示取不到有效值。
* @param string $NonsupportForceRestartReason 不支持强制重启的原因
注意:此字段可能返回 null,表示取不到有效值。
*/
function __construct()
{

}

/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("IsSupportForceRestart",$param) and $param["IsSupportForceRestart"] !== null) {
$this->IsSupportForceRestart = $param["IsSupportForceRestart"];
}

if (array_key_exists("NonsupportForceRestartReason",$param) and $param["NonsupportForceRestartReason"] !== null) {
$this->NonsupportForceRestartReason = $param["NonsupportForceRestartReason"];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
* @method void setClusterId(string $ClusterId) 设置集群ID
* @method string getDbType() 获取该参数已废用
* @method void setDbType(string $DbType) 设置该参数已废用
* @method array getIsolateReasonTypes() 获取实例退还原因类型
* @method void setIsolateReasonTypes(array $IsolateReasonTypes) 设置实例退还原因类型
* @method string getIsolateReason() 获取实例退还原因补充
* @method void setIsolateReason(string $IsolateReason) 设置实例退还原因补充
*/
class IsolateClusterRequest extends AbstractModel
{
Expand All @@ -37,9 +41,21 @@ class IsolateClusterRequest extends AbstractModel
*/
public $DbType;

/**
* @var array 实例退还原因类型
*/
public $IsolateReasonTypes;

/**
* @var string 实例退还原因补充
*/
public $IsolateReason;

/**
* @param string $ClusterId 集群ID
* @param string $DbType 该参数已废用
* @param array $IsolateReasonTypes 实例退还原因类型
* @param string $IsolateReason 实例退还原因补充
*/
function __construct()
{
Expand All @@ -61,5 +77,13 @@ public function deserialize($param)
if (array_key_exists("DbType",$param) and $param["DbType"] !== null) {
$this->DbType = $param["DbType"];
}

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

if (array_key_exists("IsolateReason",$param) and $param["IsolateReason"] !== null) {
$this->IsolateReason = $param["IsolateReason"];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
* @method void setInstanceIdList(array $InstanceIdList) 设置实例ID数组,例如["cynosdbbmysql-ins-asd","cynosdbmysql-ins-zxc"]
* @method string getDbType() 获取该参数已废弃
* @method void setDbType(string $DbType) 设置该参数已废弃
* @method array getIsolateReasonTypes() 获取实例退还原因类型
* @method void setIsolateReasonTypes(array $IsolateReasonTypes) 设置实例退还原因类型
* @method string getIsolateReason() 获取实例退还原因补充
* @method void setIsolateReason(string $IsolateReason) 设置实例退还原因补充
*/
class IsolateInstanceRequest extends AbstractModel
{
Expand All @@ -44,10 +48,22 @@ class IsolateInstanceRequest extends AbstractModel
*/
public $DbType;

/**
* @var array 实例退还原因类型
*/
public $IsolateReasonTypes;

/**
* @var string 实例退还原因补充
*/
public $IsolateReason;

/**
* @param string $ClusterId 集群ID
* @param array $InstanceIdList 实例ID数组,例如["cynosdbbmysql-ins-asd","cynosdbmysql-ins-zxc"]
* @param string $DbType 该参数已废弃
* @param array $IsolateReasonTypes 实例退还原因类型
* @param string $IsolateReason 实例退还原因补充
*/
function __construct()
{
Expand All @@ -73,5 +89,13 @@ public function deserialize($param)
if (array_key_exists("DbType",$param) and $param["DbType"] !== null) {
$this->DbType = $param["DbType"];
}

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

if (array_key_exists("IsolateReason",$param) and $param["IsolateReason"] !== null) {
$this->IsolateReason = $param["IsolateReason"];
}
}
}
89 changes: 89 additions & 0 deletions src/TencentCloud/Cynosdb/V20190107/Models/SlaveZoneStockInfo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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 TencentCloud\Cynosdb\V20190107\Models;
use TencentCloud\Common\AbstractModel;

/**
* 备可用区库存信息
*
* @method string getSlaveZone() 获取备可用区
注意:此字段可能返回 null,表示取不到有效值。
* @method void setSlaveZone(string $SlaveZone) 设置备可用区
注意:此字段可能返回 null,表示取不到有效值。
* @method integer getStockCount() 获取备可用区的库存数量
注意:此字段可能返回 null,表示取不到有效值。
* @method void setStockCount(integer $StockCount) 设置备可用区的库存数量
注意:此字段可能返回 null,表示取不到有效值。
* @method boolean getHasStock() 获取备可用区是否有库存
注意:此字段可能返回 null,表示取不到有效值。
* @method void setHasStock(boolean $HasStock) 设置备可用区是否有库存
注意:此字段可能返回 null,表示取不到有效值。
*/
class SlaveZoneStockInfo extends AbstractModel
{
/**
* @var string 备可用区
注意:此字段可能返回 null,表示取不到有效值。
*/
public $SlaveZone;

/**
* @var integer 备可用区的库存数量
注意:此字段可能返回 null,表示取不到有效值。
*/
public $StockCount;

/**
* @var boolean 备可用区是否有库存
注意:此字段可能返回 null,表示取不到有效值。
*/
public $HasStock;

/**
* @param string $SlaveZone 备可用区
注意:此字段可能返回 null,表示取不到有效值。
* @param integer $StockCount 备可用区的库存数量
注意:此字段可能返回 null,表示取不到有效值。
* @param boolean $HasStock 备可用区是否有库存
注意:此字段可能返回 null,表示取不到有效值。
*/
function __construct()
{

}

/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SlaveZone",$param) and $param["SlaveZone"] !== null) {
$this->SlaveZone = $param["SlaveZone"];
}

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

if (array_key_exists("HasStock",$param) and $param["HasStock"] !== null) {
$this->HasStock = $param["HasStock"];
}
}
}
21 changes: 21 additions & 0 deletions src/TencentCloud/Cynosdb/V20190107/Models/ZoneStockInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
* @method void setHasStock(boolean $HasStock) 设置是否有库存
* @method integer getStockCount() 获取库存数量
* @method void setStockCount(integer $StockCount) 设置库存数量
* @method array getSlaveZoneStockInfos() 获取备可用区库存信息
注意:此字段可能返回 null,表示取不到有效值。
* @method void setSlaveZoneStockInfos(array $SlaveZoneStockInfos) 设置备可用区库存信息
注意:此字段可能返回 null,表示取不到有效值。
*/
class ZoneStockInfo extends AbstractModel
{
Expand All @@ -44,10 +48,18 @@ class ZoneStockInfo extends AbstractModel
*/
public $StockCount;

/**
* @var array 备可用区库存信息
注意:此字段可能返回 null,表示取不到有效值。
*/
public $SlaveZoneStockInfos;

/**
* @param string $Zone 可用区
* @param boolean $HasStock 是否有库存
* @param integer $StockCount 库存数量
* @param array $SlaveZoneStockInfos 备可用区库存信息
注意:此字段可能返回 null,表示取不到有效值。
*/
function __construct()
{
Expand All @@ -73,5 +85,14 @@ public function deserialize($param)
if (array_key_exists("StockCount",$param) and $param["StockCount"] !== null) {
$this->StockCount = $param["StockCount"];
}

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

0 comments on commit 5d3145e

Please sign in to comment.