diff --git a/src/TencentCloud/Cbs/V20170312/Models/AutoSnapshotPolicy.php b/src/TencentCloud/Cbs/V20170312/Models/AutoSnapshotPolicy.php
deleted file mode 100644
index f291199fd6..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/AutoSnapshotPolicy.php
+++ /dev/null
@@ -1,169 +0,0 @@
-
NORMAL:正常
ISOLATED:已隔离。
- * @method void setAutoSnapshotPolicyState(string $autoSnapshotPolicyState) 设置定期快照策略的状态。取值范围:
NORMAL:正常
ISOLATED:已隔离。
- * @method integer getIsActivated() 获取定期快照策略是否激活。
- * @method void setIsActivated(integer $isActivated) 设置定期快照策略是否激活。
- * @method integer getIsPermanent() 获取使用该定期快照策略创建出来的快照是否永久保留。
- * @method void setIsPermanent(integer $isPermanent) 设置使用该定期快照策略创建出来的快照是否永久保留。
- * @method integer getRetentionDays() 获取使用该定期快照策略创建出来的快照保留天数。
- * @method void setRetentionDays(integer $retentionDays) 设置使用该定期快照策略创建出来的快照保留天数。
- * @method string getCreateTime() 获取定期快照策略的创建时间。
- * @method void setCreateTime(string $createTime) 设置定期快照策略的创建时间。
- * @method string getNextTriggerTime() 获取定期快照下次触发的时间。
- * @method void setNextTriggerTime(string $nextTriggerTime) 设置定期快照下次触发的时间。
- * @method array getPolicy() 获取定期快照的执行策略。
- * @method void setPolicy(array $policy) 设置定期快照的执行策略。
- * @method array getDiskIdSet() 获取已绑定当前定期快照策略的云盘ID列表。
- * @method void setDiskIdSet(array $diskIdSet) 设置已绑定当前定期快照策略的云盘ID列表。
- */
-
-/**
- *描述了定期快照策略的详细信息
- */
-class AutoSnapshotPolicy extends AbstractModel
-{
- /**
- * @var string 定期快照策略ID。
- */
- public $autoSnapshotPolicyId;
-
- /**
- * @var string 定期快照策略名称。
- */
- public $autoSnapshotPolicyName;
-
- /**
- * @var string 定期快照策略的状态。取值范围:
NORMAL:正常
ISOLATED:已隔离。
- */
- public $autoSnapshotPolicyState;
-
- /**
- * @var integer 定期快照策略是否激活。
- */
- public $isActivated;
-
- /**
- * @var integer 使用该定期快照策略创建出来的快照是否永久保留。
- */
- public $isPermanent;
-
- /**
- * @var integer 使用该定期快照策略创建出来的快照保留天数。
- */
- public $retentionDays;
-
- /**
- * @var string 定期快照策略的创建时间。
- */
- public $createTime;
-
- /**
- * @var string 定期快照下次触发的时间。
- */
- public $nextTriggerTime;
-
- /**
- * @var array 定期快照的执行策略。
- */
- public $policy;
-
- /**
- * @var array 已绑定当前定期快照策略的云盘ID列表。
- */
- public $diskIdSet;
- /**
- * @param string $autoSnapshotPolicyId 定期快照策略ID。
- * @param string $autoSnapshotPolicyName 定期快照策略名称。
- * @param string $autoSnapshotPolicyState 定期快照策略的状态。取值范围:
NORMAL:正常
ISOLATED:已隔离。
- * @param integer $isActivated 定期快照策略是否激活。
- * @param integer $isPermanent 使用该定期快照策略创建出来的快照是否永久保留。
- * @param integer $retentionDays 使用该定期快照策略创建出来的快照保留天数。
- * @param string $createTime 定期快照策略的创建时间。
- * @param string $nextTriggerTime 定期快照下次触发的时间。
- * @param array $policy 定期快照的执行策略。
- * @param array $diskIdSet 已绑定当前定期快照策略的云盘ID列表。
- */
- function __construct()
- {
-
- }
- /**
- * 内部实现,用户禁止调用
- */
- public function deserialize($param)
- {
- if ($param === null) {
- return;
- }
- if (array_key_exists("AutoSnapshotPolicyId",$param) and $param["AutoSnapshotPolicyId"] !== null) {
- $this->autoSnapshotPolicyId = $param["AutoSnapshotPolicyId"];
- }
-
- if (array_key_exists("AutoSnapshotPolicyName",$param) and $param["AutoSnapshotPolicyName"] !== null) {
- $this->autoSnapshotPolicyName = $param["AutoSnapshotPolicyName"];
- }
-
- if (array_key_exists("AutoSnapshotPolicyState",$param) and $param["AutoSnapshotPolicyState"] !== null) {
- $this->autoSnapshotPolicyState = $param["AutoSnapshotPolicyState"];
- }
-
- if (array_key_exists("IsActivated",$param) and $param["IsActivated"] !== null) {
- $this->isActivated = $param["IsActivated"];
- }
-
- if (array_key_exists("IsPermanent",$param) and $param["IsPermanent"] !== null) {
- $this->isPermanent = $param["IsPermanent"];
- }
-
- if (array_key_exists("RetentionDays",$param) and $param["RetentionDays"] !== null) {
- $this->retentionDays = $param["RetentionDays"];
- }
-
- if (array_key_exists("CreateTime",$param) and $param["CreateTime"] !== null) {
- $this->createTime = $param["CreateTime"];
- }
-
- if (array_key_exists("NextTriggerTime",$param) and $param["NextTriggerTime"] !== null) {
- $this->nextTriggerTime = $param["NextTriggerTime"];
- }
-
- if (array_key_exists("Policy",$param) and $param["Policy"] !== null) {
- $this->policy = [];
- foreach ($param["Policy"] as $key => $value){
- $obj = new Policy();
- $obj->deserialize($value);
- array_push($this->policy, $obj);
- }
- }
-
- if (array_key_exists("DiskIdSet",$param) and $param["DiskIdSet"] !== null) {
- $this->diskIdSet = $param["DiskIdSet"];
- }
- }
-}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/BindAutoSnapshotPolicyRequest.php b/src/TencentCloud/Cbs/V20170312/Models/BindAutoSnapshotPolicyRequest.php
deleted file mode 100644
index 382f65aae2..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/BindAutoSnapshotPolicyRequest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-autoSnapshotPolicyId = $param["AutoSnapshotPolicyId"];
- }
-
- if (array_key_exists("DiskIds",$param) and $param["DiskIds"] !== null) {
- $this->diskIds = $param["DiskIds"];
- }
- }
-}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/BindAutoSnapshotPolicyResponse.php b/src/TencentCloud/Cbs/V20170312/Models/BindAutoSnapshotPolicyResponse.php
deleted file mode 100644
index ac4d5e7640..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/BindAutoSnapshotPolicyResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/CreateAutoSnapshotPolicyRequest.php b/src/TencentCloud/Cbs/V20170312/Models/CreateAutoSnapshotPolicyRequest.php
deleted file mode 100644
index f03452831a..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/CreateAutoSnapshotPolicyRequest.php
+++ /dev/null
@@ -1,109 +0,0 @@
-policy = [];
- foreach ($param["Policy"] as $key => $value){
- $obj = new Policy();
- $obj->deserialize($value);
- array_push($this->policy, $obj);
- }
- }
-
- if (array_key_exists("AutoSnapshotPolicyName",$param) and $param["AutoSnapshotPolicyName"] !== null) {
- $this->autoSnapshotPolicyName = $param["AutoSnapshotPolicyName"];
- }
-
- if (array_key_exists("IsActivated",$param) and $param["IsActivated"] !== null) {
- $this->isActivated = $param["IsActivated"];
- }
-
- if (array_key_exists("IsPermanent",$param) and $param["IsPermanent"] !== null) {
- $this->isPermanent = $param["IsPermanent"];
- }
-
- if (array_key_exists("RetentionDays",$param) and $param["RetentionDays"] !== null) {
- $this->retentionDays = $param["RetentionDays"];
- }
- }
-}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/CreateAutoSnapshotPolicyResponse.php b/src/TencentCloud/Cbs/V20170312/Models/CreateAutoSnapshotPolicyResponse.php
deleted file mode 100644
index be4ddb62eb..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/CreateAutoSnapshotPolicyResponse.php
+++ /dev/null
@@ -1,68 +0,0 @@
-autoSnapshotPolicyId = $param["AutoSnapshotPolicyId"];
- }
-
- if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/DeleteAutoSnapshotPoliciesRequest.php b/src/TencentCloud/Cbs/V20170312/Models/DeleteAutoSnapshotPoliciesRequest.php
deleted file mode 100644
index 3f924f3b96..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/DeleteAutoSnapshotPoliciesRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-autoSnapshotPolicyIds = $param["AutoSnapshotPolicyIds"];
- }
- }
-}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/DescribeAutoSnapshotPoliciesRequest.php b/src/TencentCloud/Cbs/V20170312/Models/DescribeAutoSnapshotPoliciesRequest.php
deleted file mode 100644
index 7a3620121e..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/DescribeAutoSnapshotPoliciesRequest.php
+++ /dev/null
@@ -1,121 +0,0 @@
-auto-snapshot-policy-id - Array of String - 是否必填:否 -(过滤条件)按定期快照策略ID进行过滤。定期快照策略ID形如:`asp-11112222`。
auto-snapshot-policy-state - Array of String - 是否必填:否 -(过滤条件)按定期快照策略的状态进行过滤。定期快照策略ID形如:`asp-11112222`。(NORMAL:正常 | ISOLATED:已隔离。)
auto-snapshot-policy-name - Array of String - 是否必填:否 -(过滤条件)按定期快照策略名称进行过滤。
- * @method void setFilters(array $filters) 设置过滤条件。参数不支持同时指定`AutoSnapshotPolicyIds`和`Filters`。
auto-snapshot-policy-id - Array of String - 是否必填:否 -(过滤条件)按定期快照策略ID进行过滤。定期快照策略ID形如:`asp-11112222`。
auto-snapshot-policy-state - Array of String - 是否必填:否 -(过滤条件)按定期快照策略的状态进行过滤。定期快照策略ID形如:`asp-11112222`。(NORMAL:正常 | ISOLATED:已隔离。)
auto-snapshot-policy-name - Array of String - 是否必填:否 -(过滤条件)按定期快照策略名称进行过滤。
- * @method integer getLimit() 获取返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](/document/362/13158)中的相关小节。
- * @method void setLimit(integer $limit) 设置返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](/document/362/13158)中的相关小节。
- * @method integer getOffset() 获取偏移量,默认为0。关于`Offset`的更进一步介绍请参考API[简介](/document/362/13158)中的相关小节。
- * @method void setOffset(integer $offset) 设置偏移量,默认为0。关于`Offset`的更进一步介绍请参考API[简介](/document/362/13158)中的相关小节。
- * @method string getOrder() 获取输出定期快照列表的排列顺序。取值范围:
ASC:升序排列
DESC:降序排列。
- * @method void setOrder(string $order) 设置输出定期快照列表的排列顺序。取值范围:
ASC:升序排列
DESC:降序排列。
- * @method string getOrderField() 获取定期快照列表排序的依据字段。取值范围:
CREATETIME:依据定期快照的创建时间排序
默认按创建时间排序。
- * @method void setOrderField(string $orderField) 设置定期快照列表排序的依据字段。取值范围:
CREATETIME:依据定期快照的创建时间排序
默认按创建时间排序。
- */
-
-/**
- *DescribeAutoSnapshotPolicies请求参数结构体
- */
-class DescribeAutoSnapshotPoliciesRequest extends AbstractModel
-{
- /**
- * @var array 要查询的定期快照策略ID列表。参数不支持同时指定`AutoSnapshotPolicyIds`和`Filters`。
- */
- public $autoSnapshotPolicyIds;
-
- /**
- * @var array 过滤条件。参数不支持同时指定`AutoSnapshotPolicyIds`和`Filters`。
auto-snapshot-policy-id - Array of String - 是否必填:否 -(过滤条件)按定期快照策略ID进行过滤。定期快照策略ID形如:`asp-11112222`。
auto-snapshot-policy-state - Array of String - 是否必填:否 -(过滤条件)按定期快照策略的状态进行过滤。定期快照策略ID形如:`asp-11112222`。(NORMAL:正常 | ISOLATED:已隔离。)
auto-snapshot-policy-name - Array of String - 是否必填:否 -(过滤条件)按定期快照策略名称进行过滤。
- */
- public $filters;
-
- /**
- * @var integer 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](/document/362/13158)中的相关小节。
- */
- public $limit;
-
- /**
- * @var integer 偏移量,默认为0。关于`Offset`的更进一步介绍请参考API[简介](/document/362/13158)中的相关小节。
- */
- public $offset;
-
- /**
- * @var string 输出定期快照列表的排列顺序。取值范围:
ASC:升序排列
DESC:降序排列。
- */
- public $order;
-
- /**
- * @var string 定期快照列表排序的依据字段。取值范围:
CREATETIME:依据定期快照的创建时间排序
默认按创建时间排序。
- */
- public $orderField;
- /**
- * @param array $autoSnapshotPolicyIds 要查询的定期快照策略ID列表。参数不支持同时指定`AutoSnapshotPolicyIds`和`Filters`。
- * @param array $filters 过滤条件。参数不支持同时指定`AutoSnapshotPolicyIds`和`Filters`。
auto-snapshot-policy-id - Array of String - 是否必填:否 -(过滤条件)按定期快照策略ID进行过滤。定期快照策略ID形如:`asp-11112222`。
auto-snapshot-policy-state - Array of String - 是否必填:否 -(过滤条件)按定期快照策略的状态进行过滤。定期快照策略ID形如:`asp-11112222`。(NORMAL:正常 | ISOLATED:已隔离。)
auto-snapshot-policy-name - Array of String - 是否必填:否 -(过滤条件)按定期快照策略名称进行过滤。
- * @param integer $limit 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](/document/362/13158)中的相关小节。
- * @param integer $offset 偏移量,默认为0。关于`Offset`的更进一步介绍请参考API[简介](/document/362/13158)中的相关小节。
- * @param string $order 输出定期快照列表的排列顺序。取值范围:
ASC:升序排列
DESC:降序排列。
- * @param string $orderField 定期快照列表排序的依据字段。取值范围:
CREATETIME:依据定期快照的创建时间排序
默认按创建时间排序。
- */
- function __construct()
- {
-
- }
- /**
- * 内部实现,用户禁止调用
- */
- public function deserialize($param)
- {
- if ($param === null) {
- return;
- }
- if (array_key_exists("AutoSnapshotPolicyIds",$param) and $param["AutoSnapshotPolicyIds"] !== null) {
- $this->autoSnapshotPolicyIds = $param["AutoSnapshotPolicyIds"];
- }
-
- if (array_key_exists("Filters",$param) and $param["Filters"] !== null) {
- $this->filters = [];
- foreach ($param["Filters"] as $key => $value){
- $obj = new Filter();
- $obj->deserialize($value);
- array_push($this->filters, $obj);
- }
- }
-
- if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
- $this->limit = $param["Limit"];
- }
-
- if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
- $this->offset = $param["Offset"];
- }
-
- if (array_key_exists("Order",$param) and $param["Order"] !== null) {
- $this->order = $param["Order"];
- }
-
- if (array_key_exists("OrderField",$param) and $param["OrderField"] !== null) {
- $this->orderField = $param["OrderField"];
- }
- }
-}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/DescribeAutoSnapshotPoliciesResponse.php b/src/TencentCloud/Cbs/V20170312/Models/DescribeAutoSnapshotPoliciesResponse.php
deleted file mode 100644
index fdae02a43e..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/DescribeAutoSnapshotPoliciesResponse.php
+++ /dev/null
@@ -1,85 +0,0 @@
-totalCount = $param["TotalCount"];
- }
-
- if (array_key_exists("AutoSnapshotPolicySet",$param) and $param["AutoSnapshotPolicySet"] !== null) {
- $this->autoSnapshotPolicySet = [];
- foreach ($param["AutoSnapshotPolicySet"] as $key => $value){
- $obj = new AutoSnapshotPolicy();
- $obj->deserialize($value);
- array_push($this->autoSnapshotPolicySet, $obj);
- }
- }
-
- if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/DescribeDiskAssociatedAutoSnapshotPolicyResponse.php b/src/TencentCloud/Cbs/V20170312/Models/DescribeDiskAssociatedAutoSnapshotPolicyResponse.php
deleted file mode 100644
index 450a658f9b..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/DescribeDiskAssociatedAutoSnapshotPolicyResponse.php
+++ /dev/null
@@ -1,85 +0,0 @@
-totalCount = $param["TotalCount"];
- }
-
- if (array_key_exists("AutoSnapshotPolicySet",$param) and $param["AutoSnapshotPolicySet"] !== null) {
- $this->autoSnapshotPolicySet = [];
- foreach ($param["AutoSnapshotPolicySet"] as $key => $value){
- $obj = new AutoSnapshotPolicy();
- $obj->deserialize($value);
- array_push($this->autoSnapshotPolicySet, $obj);
- }
- }
-
- if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/Disk.php b/src/TencentCloud/Cbs/V20170312/Models/Disk.php
index 93e430c887..078d9882af 100644
--- a/src/TencentCloud/Cbs/V20170312/Models/Disk.php
+++ b/src/TencentCloud/Cbs/V20170312/Models/Disk.php
@@ -67,6 +67,8 @@
* @method void setReturnFailCode(integer $ReturnFailCode) 设置预付费云盘在不支持主动退还的情况下,该参数表明不支持主动退还的具体原因。取值范围:
1:云硬盘已经退还
2:云硬盘已过期
3:云盘不支持退还
8:超过可退还数量的限制。
* @method array getAutoSnapshotPolicyIds() 获取云盘关联的定期快照ID。只有在调用DescribeDisks接口时,入参ReturnBindAutoSnapshotPolicy取值为TRUE才会返回该参数。
* @method void setAutoSnapshotPolicyIds(array $AutoSnapshotPolicyIds) 设置云盘关联的定期快照ID。只有在调用DescribeDisks接口时,入参ReturnBindAutoSnapshotPolicy取值为TRUE才会返回该参数。
+ * @method array getTags() 获取与云盘绑定的标签,云盘未绑定标签则取值为空。
+ * @method void setTags(array $Tags) 设置与云盘绑定的标签,云盘未绑定标签则取值为空。
*/
/**
@@ -188,6 +190,11 @@ class Disk extends AbstractModel
* @var array 云盘关联的定期快照ID。只有在调用DescribeDisks接口时,入参ReturnBindAutoSnapshotPolicy取值为TRUE才会返回该参数。
*/
public $AutoSnapshotPolicyIds;
+
+ /**
+ * @var array 与云盘绑定的标签,云盘未绑定标签则取值为空。
+ */
+ public $Tags;
/**
* @param string $DiskId 云硬盘ID。
* @param string $DiskUsage 云硬盘类型。取值范围:
SYSTEM_DISK:系统盘
DATA_DISK:数据盘。
@@ -212,6 +219,7 @@ class Disk extends AbstractModel
* @param boolean $IsReturnable 判断预付费的云盘是否支持主动退还。
true:支持主动退还
false:不支持主动退还。
* @param integer $ReturnFailCode 预付费云盘在不支持主动退还的情况下,该参数表明不支持主动退还的具体原因。取值范围:
1:云硬盘已经退还
2:云硬盘已过期
3:云盘不支持退还
8:超过可退还数量的限制。
* @param array $AutoSnapshotPolicyIds 云盘关联的定期快照ID。只有在调用DescribeDisks接口时,入参ReturnBindAutoSnapshotPolicy取值为TRUE才会返回该参数。
+ * @param array $Tags 与云盘绑定的标签,云盘未绑定标签则取值为空。
*/
function __construct()
{
@@ -317,5 +325,14 @@ public function deserialize($param)
if (array_key_exists("AutoSnapshotPolicyIds",$param) and $param["AutoSnapshotPolicyIds"] !== null) {
$this->AutoSnapshotPolicyIds = $param["AutoSnapshotPolicyIds"];
}
+
+ if (array_key_exists("Tags",$param) and $param["Tags"] !== null) {
+ $this->Tags = [];
+ foreach ($param["Tags"] as $key => $value){
+ $obj = new Tag();
+ $obj->deserialize($value);
+ array_push($this->Tags, $obj);
+ }
+ }
}
}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/ModifyAutoSnapshotPolicyAttributeRequest.php b/src/TencentCloud/Cbs/V20170312/Models/ModifyAutoSnapshotPolicyAttributeRequest.php
deleted file mode 100644
index e8372504ec..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/ModifyAutoSnapshotPolicyAttributeRequest.php
+++ /dev/null
@@ -1,121 +0,0 @@
-autoSnapshotPolicyId = $param["AutoSnapshotPolicyId"];
- }
-
- if (array_key_exists("Policy",$param) and $param["Policy"] !== null) {
- $this->policy = [];
- foreach ($param["Policy"] as $key => $value){
- $obj = new Policy();
- $obj->deserialize($value);
- array_push($this->policy, $obj);
- }
- }
-
- if (array_key_exists("AutoSnapshotPolicyName",$param) and $param["AutoSnapshotPolicyName"] !== null) {
- $this->autoSnapshotPolicyName = $param["AutoSnapshotPolicyName"];
- }
-
- if (array_key_exists("IsActivated",$param) and $param["IsActivated"] !== null) {
- $this->isActivated = $param["IsActivated"];
- }
-
- if (array_key_exists("IsPermanent",$param) and $param["IsPermanent"] !== null) {
- $this->isPermanent = $param["IsPermanent"];
- }
-
- if (array_key_exists("RetentionDays",$param) and $param["RetentionDays"] !== null) {
- $this->retentionDays = $param["RetentionDays"];
- }
- }
-}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/Policy.php b/src/TencentCloud/Cbs/V20170312/Models/Policy.php
deleted file mode 100644
index e6e2b7339c..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/Policy.php
+++ /dev/null
@@ -1,78 +0,0 @@
-dayOfWeek = [];
- foreach ($param["DayOfWeek"] as $key => $value){
- $obj = new uint64();
- $obj->deserialize($value);
- array_push($this->dayOfWeek, $obj);
- }
- }
-
- if (array_key_exists("Hour",$param) and $param["Hour"] !== null) {
- $this->hour = [];
- foreach ($param["Hour"] as $key => $value){
- $obj = new uint64();
- $obj->deserialize($value);
- array_push($this->hour, $obj);
- }
- }
- }
-}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/DescribeDiskAssociatedAutoSnapshotPolicyRequest.php b/src/TencentCloud/Cbs/V20170312/Models/Tag.php
similarity index 62%
rename from src/TencentCloud/Cbs/V20170312/Models/DescribeDiskAssociatedAutoSnapshotPolicyRequest.php
rename to src/TencentCloud/Cbs/V20170312/Models/Tag.php
index ca58f7f852..5e29b7120b 100644
--- a/src/TencentCloud/Cbs/V20170312/Models/DescribeDiskAssociatedAutoSnapshotPolicyRequest.php
+++ b/src/TencentCloud/Cbs/V20170312/Models/Tag.php
@@ -21,21 +21,29 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getDiskId() 获取要查询的云硬盘ID。
- * @method void setDiskId(string $diskId) 设置要查询的云硬盘ID。
+ * @method string getKey() 获取标签健。
+ * @method void setKey(string $Key) 设置标签健。
+ * @method string getValue() 获取标签值。
+ * @method void setValue(string $Value) 设置标签值。
*/
/**
- *DescribeDiskAssociatedAutoSnapshotPolicy请求参数结构体
+ *标签。
*/
-class DescribeDiskAssociatedAutoSnapshotPolicyRequest extends AbstractModel
+class Tag extends AbstractModel
{
/**
- * @var string 要查询的云硬盘ID。
+ * @var string 标签健。
*/
- public $diskId;
+ public $Key;
+
+ /**
+ * @var string 标签值。
+ */
+ public $Value;
/**
- * @param string $diskId 要查询的云硬盘ID。
+ * @param string $Key 标签健。
+ * @param string $Value 标签值。
*/
function __construct()
{
@@ -49,8 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("DiskId",$param) and $param["DiskId"] !== null) {
- $this->diskId = $param["DiskId"];
+ if (array_key_exists("Key",$param) and $param["Key"] !== null) {
+ $this->Key = $param["Key"];
+ }
+
+ if (array_key_exists("Value",$param) and $param["Value"] !== null) {
+ $this->Value = $param["Value"];
}
}
}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/UnbindAutoSnapshotPolicyRequest.php b/src/TencentCloud/Cbs/V20170312/Models/UnbindAutoSnapshotPolicyRequest.php
deleted file mode 100644
index 8a2fd57cca..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/UnbindAutoSnapshotPolicyRequest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-diskIds = $param["DiskIds"];
- }
-
- if (array_key_exists("AutoSnapshotPolicyId",$param) and $param["AutoSnapshotPolicyId"] !== null) {
- $this->autoSnapshotPolicyId = $param["AutoSnapshotPolicyId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/UnbindAutoSnapshotPolicyResponse.php b/src/TencentCloud/Cbs/V20170312/Models/UnbindAutoSnapshotPolicyResponse.php
deleted file mode 100644
index ee375aa5f2..0000000000
--- a/src/TencentCloud/Cbs/V20170312/Models/UnbindAutoSnapshotPolicyResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/CdbClient.php b/src/TencentCloud/Cdb/V20170320/CdbClient.php
index 306487c4bc..bc50de1c67 100644
--- a/src/TencentCloud/Cdb/V20170320/CdbClient.php
+++ b/src/TencentCloud/Cdb/V20170320/CdbClient.php
@@ -27,6 +27,7 @@
/**
* @method Models\AssociateSecurityGroupsResponse AssociateSecurityGroups(Models\AssociateSecurityGroupsRequest $req) 本接口(AssociateSecurityGroups)用于安全组批量绑定实例。
* @method Models\CloseWanServiceResponse CloseWanService(Models\CloseWanServiceRequest $req) 本接口(CloseWanService)用于关闭云数据库实例的外网访问。关闭外网访问后,外网地址将不可访问。
+* @method Models\CreateAccountsResponse CreateAccounts(Models\CreateAccountsRequest $req) 本接口(CreateAccounts)用于创建云数据库的账户,需要指定新的账户名和域名,以及所对应的密码,同时可以设置账号的备注信息。
* @method Models\CreateBackupResponse CreateBackup(Models\CreateBackupRequest $req) 本接口(CreateBackup)用于创建数据库备份。
* @method Models\CreateDBImportJobResponse CreateDBImportJob(Models\CreateDBImportJobRequest $req) 本接口(CreateDBImportJob)用于创建云数据库数据导入任务。
* @method Models\CreateDBInstanceResponse CreateDBInstance(Models\CreateDBInstanceRequest $req) 本接口(CreateDBInstance)用于创建包年包月的云数据库实例(包括主实例、灾备实例和只读实例),可通过传入实例规格、MySQL 版本号、购买时长和数量等信息创建云数据库实例。
@@ -48,7 +49,10 @@
2. 单次创建实例最大支持 100 个,实例时长最大支持 36 个月;
3. 支持创建 MySQL5.5、MySQL5.6和MySQL5.7 版本;
4. 支持创建主实例、灾备实例和只读实例;
+* @method Models\DeleteAccountsResponse DeleteAccounts(Models\DeleteAccountsRequest $req) 本接口(DeleteAccounts)用于删除云数据库的账户。
* @method Models\DeleteBackupResponse DeleteBackup(Models\DeleteBackupRequest $req) 本接口(DeleteBackup)用于删除数据库备份。
+* @method Models\DescribeAccountPrivilegesResponse DescribeAccountPrivileges(Models\DescribeAccountPrivilegesRequest $req) 本接口(DescribeAccountPrivileges)用于查询云数据库账户支持的权限信息。
+* @method Models\DescribeAccountsResponse DescribeAccounts(Models\DescribeAccountsRequest $req) 本接口(DescribeAccounts)用于查询云数据库的所有账户信息。
* @method Models\DescribeBackupConfigResponse DescribeBackupConfig(Models\DescribeBackupConfigRequest $req) 本接口(DescribeBackupConfig)用于查询数据库备份配置信息。
* @method Models\DescribeBackupDatabasesResponse DescribeBackupDatabases(Models\DescribeBackupDatabasesRequest $req) 本接口(DescribeBackupDatabases)用于查询备份数据库列表。
* @method Models\DescribeBackupDownloadDbTableCodeResponse DescribeBackupDownloadDbTableCode(Models\DescribeBackupDownloadDbTableCodeRequest $req) 本接口(DescribeBackupDownloadDbTableCode)用于查询备份数据分库分表下载位点。
@@ -57,6 +61,7 @@
* @method Models\DescribeBinlogsResponse DescribeBinlogs(Models\DescribeBinlogsRequest $req) 本接口(DescribeBinlogs)用于查询云数据库实例的二进制数据。
* @method Models\DescribeDBImportRecordsResponse DescribeDBImportRecords(Models\DescribeDBImportRecordsRequest $req) 本接口(DescribeDBImportRecords)用于查询云数据库导入任务操作日志。
* @method Models\DescribeDBInstanceCharsetResponse DescribeDBInstanceCharset(Models\DescribeDBInstanceCharsetRequest $req) 本接口(DescribeDBInstanceCharset)用于查询云数据库实例的字符集,获取字符集的名称。
+* @method Models\DescribeDBInstanceConfigResponse DescribeDBInstanceConfig(Models\DescribeDBInstanceConfigRequest $req) 本接口(DescribeDBInstanceConfig)用于云数据库实例的配置信息,包括同步模式,部署模式等。
* @method Models\DescribeDBInstanceGTIDResponse DescribeDBInstanceGTID(Models\DescribeDBInstanceGTIDRequest $req) 本接口(DescribeDBInstanceGTID)用于查询云数据库实例是否开通了GTID,不支持版本为5.5以及以下的实例。
* @method Models\DescribeDBInstanceRebootTimeResponse DescribeDBInstanceRebootTime(Models\DescribeDBInstanceRebootTimeRequest $req) 本接口(DescribeDBInstanceRebootTime)用于查询云数据库实例重启预计所需的时间。
* @method Models\DescribeDBInstancesResponse DescribeDBInstances(Models\DescribeDBInstancesRequest $req) 本接口(DescribeDBInstances)用于查询云数据库实例列表,支持通过项目ID、实例ID、访问地址、实例状态等来筛选实例。
@@ -64,7 +69,9 @@
1. 不指定任何过滤条件, 则默认返回20条实例记录,单次请求最多支持返回100条实例记录;
2. 支持查询主实例、灾备实例和只读实例信息列表。
* @method Models\DescribeDBSecurityGroupsResponse DescribeDBSecurityGroups(Models\DescribeDBSecurityGroupsRequest $req) 本接口(DescribeDBSecurityGroups)用于查询实例的安全组详情。
+* @method Models\DescribeDBSwitchRecordsResponse DescribeDBSwitchRecords(Models\DescribeDBSwitchRecordsRequest $req) 本接口(DescribeDBSwitchRecords)用于查询云数据库实例切换记录。
* @method Models\DescribeDBZoneConfigResponse DescribeDBZoneConfig(Models\DescribeDBZoneConfigRequest $req) 本接口(DescribeDBZoneConfig)用于查询可创建的云数据库各地域可售卖的规格配置。
+* @method Models\DescribeDatabasesResponse DescribeDatabases(Models\DescribeDatabasesRequest $req) 本接口(DescribeDatabases)用于查询云数据库实例的数据库信息。
* @method Models\DescribeProjectSecurityGroupsResponse DescribeProjectSecurityGroups(Models\DescribeProjectSecurityGroupsRequest $req) 本接口(DescribeProjectSecurityGroups)用于查询项目的安全组详情。
* @method Models\DescribeSlowLogsResponse DescribeSlowLogs(Models\DescribeSlowLogsRequest $req) 本接口(DescribeSlowLogs)用于获取云数据库实例的慢查询日志。
* @method Models\DescribeTasksResponse DescribeTasks(Models\DescribeTasksRequest $req) 本接口(DescribeTasks)用于查询云数据库实例任务列表。
@@ -73,17 +80,27 @@
* @method Models\IsolateDBInstanceResponse IsolateDBInstance(Models\IsolateDBInstanceRequest $req) 本接口(IsolateDBInstance)用于销毁云数据库实例,销毁之后不能通过IP和端口访问数据库,按量计费实例销毁后直接下线。
本接口不支持包年包月实例;
+* @method Models\ModifyAccountDescriptionResponse ModifyAccountDescription(Models\ModifyAccountDescriptionRequest $req) 本接口(ModifyAccountDescription)用于修改云数据库账户的备注信息。
+* @method Models\ModifyAccountPasswordResponse ModifyAccountPassword(Models\ModifyAccountPasswordRequest $req) 本接口(ModifyAccountPassword)用于修改云数据库账户的密码。
+* @method Models\ModifyAccountPrivilegesResponse ModifyAccountPrivileges(Models\ModifyAccountPrivilegesRequest $req) 本接口(ModifyAccountPrivileges)用于修改云数据库的账户的权限信息。
* @method Models\ModifyBackupConfigResponse ModifyBackupConfig(Models\ModifyBackupConfigRequest $req) 本接口(ModifyBackupConfig)用于修改数据库备份配置信息。
* @method Models\ModifyDBInstanceNameResponse ModifyDBInstanceName(Models\ModifyDBInstanceNameRequest $req) 本接口(ModifyDBInstanceName)用于修改云数据库实例的名称。
* @method Models\ModifyDBInstanceProjectResponse ModifyDBInstanceProject(Models\ModifyDBInstanceProjectRequest $req) 本接口(ModifyDBInstanceProject)用于修改云数据库实例的所属项目。
* @method Models\ModifyDBInstanceSecurityGroupsResponse ModifyDBInstanceSecurityGroups(Models\ModifyDBInstanceSecurityGroupsRequest $req) 本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
* @method Models\ModifyDBInstanceVipVportResponse ModifyDBInstanceVipVport(Models\ModifyDBInstanceVipVportRequest $req) 本接口(ModifyDBInstanceVipVport)用于修改云数据库实例的IP和端口号,也可进行基础网络转VPC网络和VPC网络下的子网变更。
* @method Models\ModifyInstanceParamResponse ModifyInstanceParam(Models\ModifyInstanceParamRequest $req) 本接口(ModifyInstanceParam)用于修改云数据库实例的参数。
+* @method Models\OpenDBInstanceGTIDResponse OpenDBInstanceGTID(Models\OpenDBInstanceGTIDRequest $req) 本接口(OpenDBInstanceGTID)用于开启云数据库实例的GTID,只支持版本为5.6以及以上的实例。
* @method Models\OpenWanServiceResponse OpenWanService(Models\OpenWanServiceRequest $req) 本接口(OpenWanService)用于开通实例外网访问
+* @method Models\RestartDBInstancesResponse RestartDBInstances(Models\RestartDBInstancesRequest $req) 本接口(RestartDBInstances)用于重启云数据库实例。
+
+注意:
+1、本接口只支持主实例进行重启操作;
+2、实例状态必须为正常,并且没有其他异步任务在执行中。
* @method Models\StopDBImportJobResponse StopDBImportJob(Models\StopDBImportJobRequest $req) 本接口(StopDBImportJob)用于终止数据导入任务。
* @method Models\SwitchForUpgradeResponse SwitchForUpgrade(Models\SwitchForUpgradeRequest $req) 本接口(SwitchForUpgrade)用于切换访问新实例,针对主升级中的实例处于待切换状态时,用户可主动发起该流程
* @method Models\UpgradeDBInstanceResponse UpgradeDBInstance(Models\UpgradeDBInstanceRequest $req) 本接口(UpgradeDBInstance)用于升级云数据库实例,实例类型支持主实例、灾备实例和只读实例
* @method Models\UpgradeDBInstanceEngineVersionResponse UpgradeDBInstanceEngineVersion(Models\UpgradeDBInstanceEngineVersionRequest $req) 本接口(UpgradeDBInstanceEngineVersion)用于升级云数据库实例版本,实例类型支持主实例、灾备实例和只读实例。
+* @method Models\VerifyRootAccountResponse VerifyRootAccount(Models\VerifyRootAccountRequest $req) 本接口(VerifyRootAccount)用于校验云数据库实例的ROOT账号是否有足够的权限进行授权操作。
*/
class CdbClient extends AbstractClient
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyProtectModeRequest.php b/src/TencentCloud/Cdb/V20170320/Models/Account.php
similarity index 61%
rename from src/TencentCloud/Cdb/V20170320/Models/ModifyProtectModeRequest.php
rename to src/TencentCloud/Cdb/V20170320/Models/Account.php
index e0c4617f3a..b73331c8d2 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyProtectModeRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/Account.php
@@ -21,29 +21,29 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method integer getProtectMode() 获取无
- * @method void setProtectMode(integer $protectMode) 设置无
- * @method string getInstanceId() 获取无
- * @method void setInstanceId(string $instanceId) 设置无
+ * @method string getUser() 获取新账户的名称
+ * @method void setUser(string $User) 设置新账户的名称
+ * @method string getHost() 获取新账户的域名
+ * @method void setHost(string $Host) 设置新账户的域名
*/
/**
- *ModifyProtectMode请求参数结构体
+ *数据库账号信息
*/
-class ModifyProtectModeRequest extends AbstractModel
+class Account extends AbstractModel
{
/**
- * @var integer 无
+ * @var string 新账户的名称
*/
- public $protectMode;
+ public $User;
/**
- * @var string 无
+ * @var string 新账户的域名
*/
- public $instanceId;
+ public $Host;
/**
- * @param integer $protectMode 无
- * @param string $instanceId 无
+ * @param string $User 新账户的名称
+ * @param string $Host 新账户的域名
*/
function __construct()
{
@@ -57,12 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("ProtectMode",$param) and $param["ProtectMode"] !== null) {
- $this->protectMode = $param["ProtectMode"];
+ if (array_key_exists("User",$param) and $param["User"] !== null) {
+ $this->User = $param["User"];
}
- if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ if (array_key_exists("Host",$param) and $param["Host"] !== null) {
+ $this->Host = $param["Host"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/AccountInfo.php b/src/TencentCloud/Cdb/V20170320/Models/AccountInfo.php
new file mode 100644
index 0000000000..115ca638a5
--- /dev/null
+++ b/src/TencentCloud/Cdb/V20170320/Models/AccountInfo.php
@@ -0,0 +1,116 @@
+Notes = $param["Notes"];
+ }
+
+ if (array_key_exists("Host",$param) and $param["Host"] !== null) {
+ $this->Host = $param["Host"];
+ }
+
+ if (array_key_exists("User",$param) and $param["User"] !== null) {
+ $this->User = $param["User"];
+ }
+
+ if (array_key_exists("ModifyTime",$param) and $param["ModifyTime"] !== null) {
+ $this->ModifyTime = $param["ModifyTime"];
+ }
+
+ if (array_key_exists("ModifyPasswordTime",$param) and $param["ModifyPasswordTime"] !== null) {
+ $this->ModifyPasswordTime = $param["ModifyPasswordTime"];
+ }
+
+ if (array_key_exists("CreateTime",$param) and $param["CreateTime"] !== null) {
+ $this->CreateTime = $param["CreateTime"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/AddTimeWindowRequest.php b/src/TencentCloud/Cdb/V20170320/Models/AddTimeWindowRequest.php
deleted file mode 100644
index d74454b03c..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/AddTimeWindowRequest.php
+++ /dev/null
@@ -1,140 +0,0 @@
-instanceId = $param["InstanceId"];
- }
-
- if (array_key_exists("Monday",$param) and $param["Monday"] !== null) {
- $this->monday = $param["Monday"];
- }
-
- if (array_key_exists("Tuesday",$param) and $param["Tuesday"] !== null) {
- $this->tuesday = $param["Tuesday"];
- }
-
- if (array_key_exists("Wednesday",$param) and $param["Wednesday"] !== null) {
- $this->wednesday = $param["Wednesday"];
- }
-
- if (array_key_exists("Thursday",$param) and $param["Thursday"] !== null) {
- $this->thursday = $param["Thursday"];
- }
-
- if (array_key_exists("Friday",$param) and $param["Friday"] !== null) {
- $this->friday = $param["Friday"];
- }
-
- if (array_key_exists("Saturday",$param) and $param["Saturday"] !== null) {
- $this->saturday = $param["Saturday"];
- }
-
- if (array_key_exists("Sunday",$param) and $param["Sunday"] !== null) {
- $this->sunday = $param["Sunday"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/BackupConfig.php b/src/TencentCloud/Cdb/V20170320/Models/BackupConfig.php
new file mode 100644
index 0000000000..a120635971
--- /dev/null
+++ b/src/TencentCloud/Cdb/V20170320/Models/BackupConfig.php
@@ -0,0 +1,92 @@
+ReplicationMode = $param["ReplicationMode"];
+ }
+
+ if (array_key_exists("Zone",$param) and $param["Zone"] !== null) {
+ $this->Zone = $param["Zone"];
+ }
+
+ if (array_key_exists("Vip",$param) and $param["Vip"] !== null) {
+ $this->Vip = $param["Vip"];
+ }
+
+ if (array_key_exists("Vport",$param) and $param["Vport"] !== null) {
+ $this->Vport = $param["Vport"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/BalanceRoGroupLoadRequest.php b/src/TencentCloud/Cdb/V20170320/Models/BalanceRoGroupLoadRequest.php
deleted file mode 100644
index e4aaeacff8..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/BalanceRoGroupLoadRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-uGroupId = $param["UGroupId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/BalanceRoGroupLoadResponse.php b/src/TencentCloud/Cdb/V20170320/Models/BalanceRoGroupLoadResponse.php
deleted file mode 100644
index dd22303f88..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/BalanceRoGroupLoadResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/CancelBatchOperationRequest.php b/src/TencentCloud/Cdb/V20170320/Models/CancelBatchOperationRequest.php
deleted file mode 100644
index f808f0d982..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/CancelBatchOperationRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-asyncRequestIds = $param["AsyncRequestIds"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/CancelBatchOperationResponse.php b/src/TencentCloud/Cdb/V20170320/Models/CancelBatchOperationResponse.php
deleted file mode 100644
index 148d0f3e66..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/CancelBatchOperationResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/CheckIpInSubnetResponse.php b/src/TencentCloud/Cdb/V20170320/Models/CheckIpInSubnetResponse.php
deleted file mode 100644
index ab097f157f..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/CheckIpInSubnetResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ColumnPrivilege.php b/src/TencentCloud/Cdb/V20170320/Models/ColumnPrivilege.php
new file mode 100644
index 0000000000..9c17c5c79a
--- /dev/null
+++ b/src/TencentCloud/Cdb/V20170320/Models/ColumnPrivilege.php
@@ -0,0 +1,92 @@
+Database = $param["Database"];
+ }
+
+ if (array_key_exists("Table",$param) and $param["Table"] !== null) {
+ $this->Table = $param["Table"];
+ }
+
+ if (array_key_exists("Column",$param) and $param["Column"] !== null) {
+ $this->Column = $param["Column"];
+ }
+
+ if (array_key_exists("Privileges",$param) and $param["Privileges"] !== null) {
+ $this->Privileges = $param["Privileges"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/CreateAccountsRequest.php b/src/TencentCloud/Cdb/V20170320/Models/CreateAccountsRequest.php
index d5ee6121a8..edd641d4ec 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/CreateAccountsRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/CreateAccountsRequest.php
@@ -21,14 +21,14 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取云数据库实例ID
- * @method void setInstanceId(string $instanceId) 设置云数据库实例ID
- * @method array getAccounts() 获取云数据库账号
- * @method void setAccounts(array $accounts) 设置云数据库账号
- * @method string getPassword() 获取新账户的密码
- * @method void setPassword(string $password) 设置新账户的密码
- * @method string getDescription() 获取备注信息
- * @method void setDescription(string $description) 设置备注信息
+ * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceId(string $InstanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method array getAccounts() 获取云数据库账号。
+ * @method void setAccounts(array $Accounts) 设置云数据库账号。
+ * @method string getPassword() 获取新账户的密码。
+ * @method void setPassword(string $Password) 设置新账户的密码。
+ * @method string getDescription() 获取备注信息。
+ * @method void setDescription(string $Description) 设置备注信息。
*/
/**
@@ -37,29 +37,29 @@
class CreateAccountsRequest extends AbstractModel
{
/**
- * @var string 云数据库实例ID
+ * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceId;
+ public $InstanceId;
/**
- * @var array 云数据库账号
+ * @var array 云数据库账号。
*/
- public $accounts;
+ public $Accounts;
/**
- * @var string 新账户的密码
+ * @var string 新账户的密码。
*/
- public $password;
+ public $Password;
/**
- * @var string 备注信息
+ * @var string 备注信息。
*/
- public $description;
+ public $Description;
/**
- * @param string $instanceId 云数据库实例ID
- * @param array $accounts 云数据库账号
- * @param string $password 新账户的密码
- * @param string $description 备注信息
+ * @param string $InstanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @param array $Accounts 云数据库账号。
+ * @param string $Password 新账户的密码。
+ * @param string $Description 备注信息。
*/
function __construct()
{
@@ -74,19 +74,24 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ $this->InstanceId = $param["InstanceId"];
}
if (array_key_exists("Accounts",$param) and $param["Accounts"] !== null) {
- $this->accounts = $param["Accounts"];
+ $this->Accounts = [];
+ foreach ($param["Accounts"] as $key => $value){
+ $obj = new Account();
+ $obj->deserialize($value);
+ array_push($this->Accounts, $obj);
+ }
}
if (array_key_exists("Password",$param) and $param["Password"] !== null) {
- $this->password = $param["Password"];
+ $this->Password = $param["Password"];
}
if (array_key_exists("Description",$param) and $param["Description"] !== null) {
- $this->description = $param["Description"];
+ $this->Description = $param["Description"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/CreateAccountsResponse.php b/src/TencentCloud/Cdb/V20170320/Models/CreateAccountsResponse.php
index 0177699b91..583b9805eb 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/CreateAccountsResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/CreateAccountsResponse.php
@@ -21,8 +21,10 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method string getAsyncRequestId() 获取异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @method void setAsyncRequestId(string $AsyncRequestId) 设置异步任务的请求ID,可使用此ID查询异步任务的执行结果。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -30,12 +32,18 @@
*/
class CreateAccountsResponse extends AbstractModel
{
+ /**
+ * @var string 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ */
+ public $AsyncRequestId;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $AsyncRequestId 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -49,8 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("AsyncRequestId",$param) and $param["AsyncRequestId"] !== null) {
+ $this->AsyncRequestId = $param["AsyncRequestId"];
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/CreateMonitorTemplateRequest.php b/src/TencentCloud/Cdb/V20170320/Models/CreateMonitorTemplateRequest.php
deleted file mode 100644
index 69b28e5806..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/CreateMonitorTemplateRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-metrics = $param["Metrics"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/CreateMonitorTemplateResponse.php b/src/TencentCloud/Cdb/V20170320/Models/CreateMonitorTemplateResponse.php
deleted file mode 100644
index 477a69c6a9..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/CreateMonitorTemplateResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/CreateParamTemplateRequest.php b/src/TencentCloud/Cdb/V20170320/Models/CreateParamTemplateRequest.php
deleted file mode 100644
index 1cc5410253..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/CreateParamTemplateRequest.php
+++ /dev/null
@@ -1,104 +0,0 @@
-name = $param["Name"];
- }
-
- if (array_key_exists("Description",$param) and $param["Description"] !== null) {
- $this->description = $param["Description"];
- }
-
- if (array_key_exists("EngineVersion",$param) and $param["EngineVersion"] !== null) {
- $this->engineVersion = $param["EngineVersion"];
- }
-
- if (array_key_exists("TemplateId",$param) and $param["TemplateId"] !== null) {
- $this->templateId = $param["TemplateId"];
- }
-
- if (array_key_exists("ParamList",$param) and $param["ParamList"] !== null) {
- $this->paramList = $param["ParamList"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/CreateParamTemplateResponse.php b/src/TencentCloud/Cdb/V20170320/Models/CreateParamTemplateResponse.php
deleted file mode 100644
index edecf82d27..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/CreateParamTemplateResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DBSwitchInfo.php b/src/TencentCloud/Cdb/V20170320/Models/DBSwitchInfo.php
new file mode 100644
index 0000000000..5aba8c08b7
--- /dev/null
+++ b/src/TencentCloud/Cdb/V20170320/Models/DBSwitchInfo.php
@@ -0,0 +1,68 @@
+SwitchTime = $param["SwitchTime"];
+ }
+
+ if (array_key_exists("SwitchType",$param) and $param["SwitchType"] !== null) {
+ $this->SwitchType = $param["SwitchType"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeAvailableZoneConfigRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DatabasePrivilege.php
similarity index 59%
rename from src/TencentCloud/Cdb/V20170320/Models/DescribeAvailableZoneConfigRequest.php
rename to src/TencentCloud/Cdb/V20170320/Models/DatabasePrivilege.php
index 7412bf5279..88181c5739 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeAvailableZoneConfigRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DatabasePrivilege.php
@@ -21,21 +21,29 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getScene() 获取是否为exCluster
- * @method void setScene(string $scene) 设置是否为exCluster
+ * @method array getPrivileges() 获取权限信息
+ * @method void setPrivileges(array $Privileges) 设置权限信息
+ * @method string getDatabase() 获取数据库名
+ * @method void setDatabase(string $Database) 设置数据库名
*/
/**
- *DescribeAvailableZoneConfig请求参数结构体
+ *数据库权限
*/
-class DescribeAvailableZoneConfigRequest extends AbstractModel
+class DatabasePrivilege extends AbstractModel
{
/**
- * @var string 是否为exCluster
+ * @var array 权限信息
*/
- public $scene;
+ public $Privileges;
+
+ /**
+ * @var string 数据库名
+ */
+ public $Database;
/**
- * @param string $scene 是否为exCluster
+ * @param array $Privileges 权限信息
+ * @param string $Database 数据库名
*/
function __construct()
{
@@ -49,8 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("Scene",$param) and $param["Scene"] !== null) {
- $this->scene = $param["Scene"];
+ if (array_key_exists("Privileges",$param) and $param["Privileges"] !== null) {
+ $this->Privileges = $param["Privileges"];
+ }
+
+ if (array_key_exists("Database",$param) and $param["Database"] !== null) {
+ $this->Database = $param["Database"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DeleteAccountsRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DeleteAccountsRequest.php
index 6c34124a36..a605f877c0 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DeleteAccountsRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DeleteAccountsRequest.php
@@ -21,10 +21,10 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取云数据库实例ID
- * @method void setInstanceId(string $instanceId) 设置云数据库实例ID
- * @method array getAccounts() 获取云数据库账号
- * @method void setAccounts(array $accounts) 设置云数据库账号
+ * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceId(string $InstanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method array getAccounts() 获取云数据库账号。
+ * @method void setAccounts(array $Accounts) 设置云数据库账号。
*/
/**
@@ -33,17 +33,17 @@
class DeleteAccountsRequest extends AbstractModel
{
/**
- * @var string 云数据库实例ID
+ * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceId;
+ public $InstanceId;
/**
- * @var array 云数据库账号
+ * @var array 云数据库账号。
*/
- public $accounts;
+ public $Accounts;
/**
- * @param string $instanceId 云数据库实例ID
- * @param array $accounts 云数据库账号
+ * @param string $InstanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @param array $Accounts 云数据库账号。
*/
function __construct()
{
@@ -58,11 +58,16 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ $this->InstanceId = $param["InstanceId"];
}
if (array_key_exists("Accounts",$param) and $param["Accounts"] !== null) {
- $this->accounts = $param["Accounts"];
+ $this->Accounts = [];
+ foreach ($param["Accounts"] as $key => $value){
+ $obj = new Account();
+ $obj->deserialize($value);
+ array_push($this->Accounts, $obj);
+ }
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DeleteAccountsResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DeleteAccountsResponse.php
index 26492472d8..5c5d7f3e1c 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DeleteAccountsResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DeleteAccountsResponse.php
@@ -21,8 +21,10 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method string getAsyncRequestId() 获取异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @method void setAsyncRequestId(string $AsyncRequestId) 设置异步任务的请求ID,可使用此ID查询异步任务的执行结果。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -30,12 +32,18 @@
*/
class DeleteAccountsResponse extends AbstractModel
{
+ /**
+ * @var string 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ */
+ public $AsyncRequestId;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $AsyncRequestId 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -49,8 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("AsyncRequestId",$param) and $param["AsyncRequestId"] !== null) {
+ $this->AsyncRequestId = $param["AsyncRequestId"];
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DeleteBatchJobFilesRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DeleteBatchJobFilesRequest.php
deleted file mode 100644
index bbfbc84312..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DeleteBatchJobFilesRequest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-fileIds = [];
- foreach ($param["FileIds"] as $key => $value){
- $obj = new int64();
- $obj->deserialize($value);
- array_push($this->fileIds, $obj);
- }
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DeleteBatchJobFilesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DeleteBatchJobFilesResponse.php
deleted file mode 100644
index 7141b41adb..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DeleteBatchJobFilesResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DeleteMonitorTemplateRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DeleteMonitorTemplateRequest.php
deleted file mode 100644
index 5994336910..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DeleteMonitorTemplateRequest.php
+++ /dev/null
@@ -1,61 +0,0 @@
-templateIds = [];
- foreach ($param["TemplateIds"] as $key => $value){
- $obj = new int64();
- $obj->deserialize($value);
- array_push($this->templateIds, $obj);
- }
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DeleteMonitorTemplateResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DeleteMonitorTemplateResponse.php
deleted file mode 100644
index b1f14b91b3..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DeleteMonitorTemplateResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DeleteParamTemplateResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DeleteParamTemplateResponse.php
deleted file mode 100644
index 94d6a348f4..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DeleteParamTemplateResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DeleteTimeWindowRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DeleteTimeWindowRequest.php
deleted file mode 100644
index 9ac0a3b1af..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DeleteTimeWindowRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-instanceId = $param["InstanceId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DeleteTimeWindowResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DeleteTimeWindowResponse.php
deleted file mode 100644
index ec18ed1fdf..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DeleteTimeWindowResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountPrivilegesRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountPrivilegesRequest.php
index d9bce4a074..d7d47a1805 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountPrivilegesRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountPrivilegesRequest.php
@@ -21,12 +21,12 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取云数据库实例ID
- * @method void setInstanceId(string $instanceId) 设置云数据库实例ID
- * @method string getUser() 获取数据库的账号名称
- * @method void setUser(string $user) 设置数据库的账号名称
- * @method string getHost() 获取数据库的账号域名
- * @method void setHost(string $host) 设置数据库的账号域名
+ * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceId(string $InstanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method string getUser() 获取数据库的账号名称。
+ * @method void setUser(string $User) 设置数据库的账号名称。
+ * @method string getHost() 获取数据库的账号域名。
+ * @method void setHost(string $Host) 设置数据库的账号域名。
*/
/**
@@ -35,23 +35,23 @@
class DescribeAccountPrivilegesRequest extends AbstractModel
{
/**
- * @var string 云数据库实例ID
+ * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceId;
+ public $InstanceId;
/**
- * @var string 数据库的账号名称
+ * @var string 数据库的账号名称。
*/
- public $user;
+ public $User;
/**
- * @var string 数据库的账号域名
+ * @var string 数据库的账号域名。
*/
- public $host;
+ public $Host;
/**
- * @param string $instanceId 云数据库实例ID
- * @param string $user 数据库的账号名称
- * @param string $host 数据库的账号域名
+ * @param string $InstanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @param string $User 数据库的账号名称。
+ * @param string $Host 数据库的账号域名。
*/
function __construct()
{
@@ -66,15 +66,15 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ $this->InstanceId = $param["InstanceId"];
}
if (array_key_exists("User",$param) and $param["User"] !== null) {
- $this->user = $param["User"];
+ $this->User = $param["User"];
}
if (array_key_exists("Host",$param) and $param["Host"] !== null) {
- $this->host = $param["Host"];
+ $this->Host = $param["Host"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountPrivilegesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountPrivilegesResponse.php
index ceb6282f9a..c3405a2c10 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountPrivilegesResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountPrivilegesResponse.php
@@ -21,8 +21,16 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method array getGlobalPrivileges() 获取全局权限数组。
+ * @method void setGlobalPrivileges(array $GlobalPrivileges) 设置全局权限数组。
+ * @method array getDatabasePrivileges() 获取数据库权限数组。
+ * @method void setDatabasePrivileges(array $DatabasePrivileges) 设置数据库权限数组。
+ * @method array getTablePrivileges() 获取数据库中的表权限数组。
+ * @method void setTablePrivileges(array $TablePrivileges) 设置数据库中的表权限数组。
+ * @method array getColumnPrivileges() 获取数据库表中的列权限数组。
+ * @method void setColumnPrivileges(array $ColumnPrivileges) 设置数据库表中的列权限数组。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -30,12 +38,36 @@
*/
class DescribeAccountPrivilegesResponse extends AbstractModel
{
+ /**
+ * @var array 全局权限数组。
+ */
+ public $GlobalPrivileges;
+
+ /**
+ * @var array 数据库权限数组。
+ */
+ public $DatabasePrivileges;
+
+ /**
+ * @var array 数据库中的表权限数组。
+ */
+ public $TablePrivileges;
+
+ /**
+ * @var array 数据库表中的列权限数组。
+ */
+ public $ColumnPrivileges;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param array $GlobalPrivileges 全局权限数组。
+ * @param array $DatabasePrivileges 数据库权限数组。
+ * @param array $TablePrivileges 数据库中的表权限数组。
+ * @param array $ColumnPrivileges 数据库表中的列权限数组。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -49,8 +81,39 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("GlobalPrivileges",$param) and $param["GlobalPrivileges"] !== null) {
+ $this->GlobalPrivileges = $param["GlobalPrivileges"];
+ }
+
+ if (array_key_exists("DatabasePrivileges",$param) and $param["DatabasePrivileges"] !== null) {
+ $this->DatabasePrivileges = [];
+ foreach ($param["DatabasePrivileges"] as $key => $value){
+ $obj = new DatabasePrivilege();
+ $obj->deserialize($value);
+ array_push($this->DatabasePrivileges, $obj);
+ }
+ }
+
+ if (array_key_exists("TablePrivileges",$param) and $param["TablePrivileges"] !== null) {
+ $this->TablePrivileges = [];
+ foreach ($param["TablePrivileges"] as $key => $value){
+ $obj = new TablePrivilege();
+ $obj->deserialize($value);
+ array_push($this->TablePrivileges, $obj);
+ }
+ }
+
+ if (array_key_exists("ColumnPrivileges",$param) and $param["ColumnPrivileges"] !== null) {
+ $this->ColumnPrivileges = [];
+ foreach ($param["ColumnPrivileges"] as $key => $value){
+ $obj = new ColumnPrivilege();
+ $obj->deserialize($value);
+ array_push($this->ColumnPrivileges, $obj);
+ }
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountsRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountsRequest.php
index e462ec1a04..3a58edabfe 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountsRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountsRequest.php
@@ -21,12 +21,12 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取云数据库实例ID
- * @method void setInstanceId(string $instanceId) 设置云数据库实例ID
- * @method integer getOffset() 获取记录偏移量,默认值为0
- * @method void setOffset(integer $offset) 设置记录偏移量,默认值为0
- * @method integer getLimit() 获取单次请求返回的数量,默认值为20,最大值为100
- * @method void setLimit(integer $limit) 设置单次请求返回的数量,默认值为20,最大值为100
+ * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceId(string $InstanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method integer getOffset() 获取记录偏移量,默认值为0。
+ * @method void setOffset(integer $Offset) 设置记录偏移量,默认值为0。
+ * @method integer getLimit() 获取单次请求返回的数量,默认值为20,最大值为100。
+ * @method void setLimit(integer $Limit) 设置单次请求返回的数量,默认值为20,最大值为100。
*/
/**
@@ -35,23 +35,23 @@
class DescribeAccountsRequest extends AbstractModel
{
/**
- * @var string 云数据库实例ID
+ * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceId;
+ public $InstanceId;
/**
- * @var integer 记录偏移量,默认值为0
+ * @var integer 记录偏移量,默认值为0。
*/
- public $offset;
+ public $Offset;
/**
- * @var integer 单次请求返回的数量,默认值为20,最大值为100
+ * @var integer 单次请求返回的数量,默认值为20,最大值为100。
*/
- public $limit;
+ public $Limit;
/**
- * @param string $instanceId 云数据库实例ID
- * @param integer $offset 记录偏移量,默认值为0
- * @param integer $limit 单次请求返回的数量,默认值为20,最大值为100
+ * @param string $InstanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @param integer $Offset 记录偏移量,默认值为0。
+ * @param integer $Limit 单次请求返回的数量,默认值为20,最大值为100。
*/
function __construct()
{
@@ -66,15 +66,15 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ $this->InstanceId = $param["InstanceId"];
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
- $this->offset = $param["Offset"];
+ $this->Offset = $param["Offset"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
- $this->limit = $param["Limit"];
+ $this->Limit = $param["Limit"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountsResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountsResponse.php
index 0d3dd325d4..5a947c4750 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountsResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DescribeAccountsResponse.php
@@ -21,8 +21,12 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method integer getTotalCount() 获取符合查询条件的账号数量。
+ * @method void setTotalCount(integer $TotalCount) 设置符合查询条件的账号数量。
+ * @method array getItems() 获取符合查询条件的账号详细信息。
+ * @method void setItems(array $Items) 设置符合查询条件的账号详细信息。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -30,12 +34,24 @@
*/
class DescribeAccountsResponse extends AbstractModel
{
+ /**
+ * @var integer 符合查询条件的账号数量。
+ */
+ public $TotalCount;
+
+ /**
+ * @var array 符合查询条件的账号详细信息。
+ */
+ public $Items;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param integer $TotalCount 符合查询条件的账号数量。
+ * @param array $Items 符合查询条件的账号详细信息。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -49,8 +65,21 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("TotalCount",$param) and $param["TotalCount"] !== null) {
+ $this->TotalCount = $param["TotalCount"];
+ }
+
+ if (array_key_exists("Items",$param) and $param["Items"] !== null) {
+ $this->Items = [];
+ foreach ($param["Items"] as $key => $value){
+ $obj = new AccountInfo();
+ $obj->deserialize($value);
+ array_push($this->Items, $obj);
+ }
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeAvailableZoneConfigResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeAvailableZoneConfigResponse.php
deleted file mode 100644
index 705b5ba164..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeAvailableZoneConfigResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeBatchJobFileContentRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeBatchJobFileContentRequest.php
deleted file mode 100644
index 331074ed08..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeBatchJobFileContentRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-fileId = $param["FileId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeBatchJobFileContentResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeBatchJobFileContentResponse.php
deleted file mode 100644
index 857bc6e1e3..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeBatchJobFileContentResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeBatchJobFilesRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeBatchJobFilesRequest.php
deleted file mode 100644
index eef5238878..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeBatchJobFilesRequest.php
+++ /dev/null
@@ -1,85 +0,0 @@
-fileIds = [];
- foreach ($param["FileIds"] as $key => $value){
- $obj = new int64();
- $obj->deserialize($value);
- array_push($this->fileIds, $obj);
- }
- }
-
- if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
- $this->offset = $param["Offset"];
- }
-
- if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
- $this->limit = $param["Limit"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeBatchJobFilesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeBatchJobFilesResponse.php
deleted file mode 100644
index b9922f4d87..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeBatchJobFilesResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeDBInstanceConfigRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeDBInstanceConfigRequest.php
index 89473fe296..7fc1850cce 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeDBInstanceConfigRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DescribeDBInstanceConfigRequest.php
@@ -21,8 +21,8 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,可使用[查询实例列表](/doc/api/253/1266) 接口获取,其值为输出参数中字段 InstanceId 的值
- * @method void setInstanceId(string $instanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,可使用[查询实例列表](/doc/api/253/1266) 接口获取,其值为输出参数中字段 InstanceId 的值
+ * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceId(string $InstanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
/**
@@ -31,11 +31,11 @@
class DescribeDBInstanceConfigRequest extends AbstractModel
{
/**
- * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,可使用[查询实例列表](/doc/api/253/1266) 接口获取,其值为输出参数中字段 InstanceId 的值
+ * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceId;
+ public $InstanceId;
/**
- * @param string $instanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,可使用[查询实例列表](/doc/api/253/1266) 接口获取,其值为输出参数中字段 InstanceId 的值
+ * @param string $InstanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
function __construct()
{
@@ -50,7 +50,7 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ $this->InstanceId = $param["InstanceId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeDBInstanceConfigResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeDBInstanceConfigResponse.php
index d2191e13ab..8cbbf820ea 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeDBInstanceConfigResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DescribeDBInstanceConfigResponse.php
@@ -21,8 +21,18 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method integer getProtectMode() 获取主库数据保护方式,主实例属性,可能的返回值:0-异步复制方式,1-半同步复制方式,2-强同步复制方式。
+ * @method void setProtectMode(integer $ProtectMode) 设置主库数据保护方式,主实例属性,可能的返回值:0-异步复制方式,1-半同步复制方式,2-强同步复制方式。
+ * @method integer getDeployMode() 获取主库部署方式,主实例属性,可能的返回值:0-单可用部署,1-多可用区部署。
+ * @method void setDeployMode(integer $DeployMode) 设置主库部署方式,主实例属性,可能的返回值:0-单可用部署,1-多可用区部署。
+ * @method string getZone() 获取主库可用区的正式名称,如ap-shanghai-1。
+ * @method void setZone(string $Zone) 设置主库可用区的正式名称,如ap-shanghai-1。
+ * @method SlaveConfig getSlaveConfig() 获取从库的配置信息。
+ * @method void setSlaveConfig(SlaveConfig $SlaveConfig) 设置从库的配置信息。
+ * @method BackupConfig getBackupConfig() 获取ECDB第二个从库的配置信息,只有ECDB实例才有这个字段。
+ * @method void setBackupConfig(BackupConfig $BackupConfig) 设置ECDB第二个从库的配置信息,只有ECDB实例才有这个字段。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -30,12 +40,42 @@
*/
class DescribeDBInstanceConfigResponse extends AbstractModel
{
+ /**
+ * @var integer 主库数据保护方式,主实例属性,可能的返回值:0-异步复制方式,1-半同步复制方式,2-强同步复制方式。
+ */
+ public $ProtectMode;
+
+ /**
+ * @var integer 主库部署方式,主实例属性,可能的返回值:0-单可用部署,1-多可用区部署。
+ */
+ public $DeployMode;
+
+ /**
+ * @var string 主库可用区的正式名称,如ap-shanghai-1。
+ */
+ public $Zone;
+
+ /**
+ * @var SlaveConfig 从库的配置信息。
+ */
+ public $SlaveConfig;
+
+ /**
+ * @var BackupConfig ECDB第二个从库的配置信息,只有ECDB实例才有这个字段。
+ */
+ public $BackupConfig;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param integer $ProtectMode 主库数据保护方式,主实例属性,可能的返回值:0-异步复制方式,1-半同步复制方式,2-强同步复制方式。
+ * @param integer $DeployMode 主库部署方式,主实例属性,可能的返回值:0-单可用部署,1-多可用区部署。
+ * @param string $Zone 主库可用区的正式名称,如ap-shanghai-1。
+ * @param SlaveConfig $SlaveConfig 从库的配置信息。
+ * @param BackupConfig $BackupConfig ECDB第二个从库的配置信息,只有ECDB实例才有这个字段。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -49,8 +89,30 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("ProtectMode",$param) and $param["ProtectMode"] !== null) {
+ $this->ProtectMode = $param["ProtectMode"];
+ }
+
+ if (array_key_exists("DeployMode",$param) and $param["DeployMode"] !== null) {
+ $this->DeployMode = $param["DeployMode"];
+ }
+
+ if (array_key_exists("Zone",$param) and $param["Zone"] !== null) {
+ $this->Zone = $param["Zone"];
+ }
+
+ if (array_key_exists("SlaveConfig",$param) and $param["SlaveConfig"] !== null) {
+ $this->SlaveConfig = new SlaveConfig();
+ $this->SlaveConfig->deserialize($param["SlaveConfig"]);
+ }
+
+ if (array_key_exists("BackupConfig",$param) and $param["BackupConfig"] !== null) {
+ $this->BackupConfig = new BackupConfig();
+ $this->BackupConfig->deserialize($param["BackupConfig"]);
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeDBSwitchRecordsRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeDBSwitchRecordsRequest.php
index 4445e7cfc6..d9bb92eaf2 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeDBSwitchRecordsRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DescribeDBSwitchRecordsRequest.php
@@ -21,12 +21,12 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取实例ID
- * @method void setInstanceId(string $instanceId) 设置实例ID
- * @method integer getOffset() 获取分页参数,偏移量
- * @method void setOffset(integer $offset) 设置分页参数,偏移量
- * @method integer getLimit() 获取分页参数,单次请求数量限制
- * @method void setLimit(integer $limit) 设置分页参数,单次请求数量限制
+ * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceId(string $InstanceId) 设置实例ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method integer getOffset() 获取分页参数,偏移量。
+ * @method void setOffset(integer $Offset) 设置分页参数,偏移量。
+ * @method integer getLimit() 获取分页参数,单次请求数量限制。
+ * @method void setLimit(integer $Limit) 设置分页参数,单次请求数量限制。
*/
/**
@@ -35,23 +35,23 @@
class DescribeDBSwitchRecordsRequest extends AbstractModel
{
/**
- * @var string 实例ID
+ * @var string 实例ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceId;
+ public $InstanceId;
/**
- * @var integer 分页参数,偏移量
+ * @var integer 分页参数,偏移量。
*/
- public $offset;
+ public $Offset;
/**
- * @var integer 分页参数,单次请求数量限制
+ * @var integer 分页参数,单次请求数量限制。
*/
- public $limit;
+ public $Limit;
/**
- * @param string $instanceId 实例ID
- * @param integer $offset 分页参数,偏移量
- * @param integer $limit 分页参数,单次请求数量限制
+ * @param string $InstanceId 实例ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @param integer $Offset 分页参数,偏移量。
+ * @param integer $Limit 分页参数,单次请求数量限制。
*/
function __construct()
{
@@ -66,15 +66,15 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ $this->InstanceId = $param["InstanceId"];
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
- $this->offset = $param["Offset"];
+ $this->Offset = $param["Offset"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
- $this->limit = $param["Limit"];
+ $this->Limit = $param["Limit"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeDBSwitchRecordsResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeDBSwitchRecordsResponse.php
index 990927af1e..e1ad56bd84 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeDBSwitchRecordsResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DescribeDBSwitchRecordsResponse.php
@@ -21,8 +21,12 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method integer getTotalCount() 获取实例切换记录的总数。
+ * @method void setTotalCount(integer $TotalCount) 设置实例切换记录的总数。
+ * @method array getItems() 获取实例切换记录详情。
+ * @method void setItems(array $Items) 设置实例切换记录详情。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -30,12 +34,24 @@
*/
class DescribeDBSwitchRecordsResponse extends AbstractModel
{
+ /**
+ * @var integer 实例切换记录的总数。
+ */
+ public $TotalCount;
+
+ /**
+ * @var array 实例切换记录详情。
+ */
+ public $Items;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param integer $TotalCount 实例切换记录的总数。
+ * @param array $Items 实例切换记录详情。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -49,8 +65,21 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("TotalCount",$param) and $param["TotalCount"] !== null) {
+ $this->TotalCount = $param["TotalCount"];
+ }
+
+ if (array_key_exists("Items",$param) and $param["Items"] !== null) {
+ $this->Items = [];
+ foreach ($param["Items"] as $key => $value){
+ $obj = new DBSwitchInfo();
+ $obj->deserialize($value);
+ array_push($this->Items, $obj);
+ }
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesForInstancesRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesForInstancesRequest.php
deleted file mode 100644
index 8e0b021610..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesForInstancesRequest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-instanceIds = $param["InstanceIds"];
- }
-
- if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
- $this->offset = $param["Offset"];
- }
-
- if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
- $this->limit = $param["Limit"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesForInstancesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesForInstancesResponse.php
deleted file mode 100644
index ce1722deb5..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesForInstancesResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesRequest.php
index 1f57d835a9..38f6024bbf 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesRequest.php
@@ -21,12 +21,14 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同
- * @method void setInstanceId(string $instanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同
- * @method integer getOffset() 获取偏移量,最小值为0
- * @method void setOffset(integer $offset) 设置偏移量,最小值为0
- * @method integer getLimit() 获取单次请求数量,取值范围:[0-100]
- * @method void setLimit(integer $limit) 设置单次请求数量,取值范围:[0-100]
+ * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceId(string $InstanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method integer getOffset() 获取偏移量,最小值为0。
+ * @method void setOffset(integer $Offset) 设置偏移量,最小值为0。
+ * @method integer getLimit() 获取单次请求数量,取值范围:[0-100]。
+ * @method void setLimit(integer $Limit) 设置单次请求数量,取值范围:[0-100]。
+ * @method string getDatabaseRegexp() 获取匹配数据库库名的正则表达式,规则同MySQL官网
+ * @method void setDatabaseRegexp(string $DatabaseRegexp) 设置匹配数据库库名的正则表达式,规则同MySQL官网
*/
/**
@@ -35,23 +37,29 @@
class DescribeDatabasesRequest extends AbstractModel
{
/**
- * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同
+ * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceId;
+ public $InstanceId;
/**
- * @var integer 偏移量,最小值为0
+ * @var integer 偏移量,最小值为0。
*/
- public $offset;
+ public $Offset;
/**
- * @var integer 单次请求数量,取值范围:[0-100]
+ * @var integer 单次请求数量,取值范围:[0-100]。
*/
- public $limit;
+ public $Limit;
+
+ /**
+ * @var string 匹配数据库库名的正则表达式,规则同MySQL官网
+ */
+ public $DatabaseRegexp;
/**
- * @param string $instanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同
- * @param integer $offset 偏移量,最小值为0
- * @param integer $limit 单次请求数量,取值范围:[0-100]
+ * @param string $InstanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @param integer $Offset 偏移量,最小值为0。
+ * @param integer $Limit 单次请求数量,取值范围:[0-100]。
+ * @param string $DatabaseRegexp 匹配数据库库名的正则表达式,规则同MySQL官网
*/
function __construct()
{
@@ -66,15 +74,19 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ $this->InstanceId = $param["InstanceId"];
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
- $this->offset = $param["Offset"];
+ $this->Offset = $param["Offset"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
- $this->limit = $param["Limit"];
+ $this->Limit = $param["Limit"];
+ }
+
+ if (array_key_exists("DatabaseRegexp",$param) and $param["DatabaseRegexp"] !== null) {
+ $this->DatabaseRegexp = $param["DatabaseRegexp"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesResponse.php
index aff7c95289..0a9db449b2 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/DescribeDatabasesResponse.php
@@ -21,14 +21,12 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method integer getTotalCount() 获取符合查询条件的实例总数。
+ * @method void setTotalCount(integer $TotalCount) 设置符合查询条件的实例总数。
+ * @method array getItems() 获取返回的实例信息。
+ * @method void setItems(array $Items) 设置返回的实例信息。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method integer getTotalCount() 获取符合查询条件的实例总数
- * @method void setTotalCount(integer $totalCount) 设置符合查询条件的实例总数
- * @method array getItems() 获取返回的实例信息
- * @method void setItems(array $items) 设置返回的实例信息
- * @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -37,29 +35,23 @@
class DescribeDatabasesResponse extends AbstractModel
{
/**
- * @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- */
- public $requestId;
-
- /**
- * @var integer 符合查询条件的实例总数
+ * @var integer 符合查询条件的实例总数。
*/
- public $totalCount;
+ public $TotalCount;
/**
- * @var array 返回的实例信息
+ * @var array 返回的实例信息。
*/
- public $items;
+ public $Items;
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @param integer $totalCount 符合查询条件的实例总数
- * @param array $items 返回的实例信息
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param integer $TotalCount 符合查询条件的实例总数。
+ * @param array $Items 返回的实例信息。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -73,20 +65,16 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
- }
-
if (array_key_exists("TotalCount",$param) and $param["TotalCount"] !== null) {
- $this->totalCount = $param["TotalCount"];
+ $this->TotalCount = $param["TotalCount"];
}
if (array_key_exists("Items",$param) and $param["Items"] !== null) {
- $this->items = $param["Items"];
+ $this->Items = $param["Items"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeDefaultParamsRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeDefaultParamsRequest.php
deleted file mode 100644
index 7efe30d332..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeDefaultParamsRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-engineVersion = $param["EngineVersion"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeDefaultParamsResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeDefaultParamsResponse.php
deleted file mode 100644
index 3371355152..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeDefaultParamsResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamRecordsRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamRecordsRequest.php
deleted file mode 100644
index 4202eb368b..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamRecordsRequest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-instanceId = $param["InstanceId"];
- }
-
- if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
- $this->offset = $param["Offset"];
- }
-
- if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
- $this->limit = $param["Limit"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamsRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamsRequest.php
deleted file mode 100644
index 5cef8e781d..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamsRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-instanceId = $param["InstanceId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamsResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamsResponse.php
deleted file mode 100644
index 9b4c0a6c60..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamsResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeMonitorDataRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeMonitorDataRequest.php
deleted file mode 100644
index 6ac0135c09..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeMonitorDataRequest.php
+++ /dev/null
@@ -1,116 +0,0 @@
-instanceId = $param["InstanceId"];
- }
-
- if (array_key_exists("Period",$param) and $param["Period"] !== null) {
- $this->period = $param["Period"];
- }
-
- if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
- $this->startTime = $param["StartTime"];
- }
-
- if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
- $this->endTime = $param["EndTime"];
- }
-
- if (array_key_exists("Metrics",$param) and $param["Metrics"] !== null) {
- $this->metrics = $param["Metrics"];
- }
-
- if (array_key_exists("SlaveMetrics",$param) and $param["SlaveMetrics"] !== null) {
- $this->slaveMetrics = $param["SlaveMetrics"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeMonitorDataResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeMonitorDataResponse.php
deleted file mode 100644
index 64beb7cc5a..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeMonitorDataResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeMonitorTemplateRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeMonitorTemplateRequest.php
deleted file mode 100644
index a7ed8c38ab..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeMonitorTemplateRequest.php
+++ /dev/null
@@ -1,50 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeParamTemplateInfoRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeParamTemplateInfoRequest.php
deleted file mode 100644
index d879feb042..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeParamTemplateInfoRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-templateId = $param["TemplateId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeParamTemplateInfoResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeParamTemplateInfoResponse.php
deleted file mode 100644
index 4cfc5b0018..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeParamTemplateInfoResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeParamTemplatesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeParamTemplatesResponse.php
deleted file mode 100644
index e6d327a3d2..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeParamTemplatesResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeRequestResultRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeRequestResultRequest.php
deleted file mode 100644
index 8a6931e2b2..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeRequestResultRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-asyncRequestId = $param["AsyncRequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeRequestResultResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeRequestResultResponse.php
deleted file mode 100644
index cdb895f432..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeRequestResultResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeRoGroupInfoRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeRoGroupInfoRequest.php
deleted file mode 100644
index 90b88b15cc..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeRoGroupInfoRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-uGroupId = $param["UGroupId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeRoGroupInfoResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeRoGroupInfoResponse.php
deleted file mode 100644
index dd19fb5a51..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeRoGroupInfoResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeRoGroupsRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeRoGroupsRequest.php
deleted file mode 100644
index 98aa505767..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeRoGroupsRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-instanceId = $param["InstanceId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeRoGroupsResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeRoGroupsResponse.php
deleted file mode 100644
index 2627307237..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeRoGroupsResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeRoMinScaleResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeRoMinScaleResponse.php
deleted file mode 100644
index 39bbe619c7..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeRoMinScaleResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeRollbackRangeTimeRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeRollbackRangeTimeRequest.php
deleted file mode 100644
index 516dc5d7c9..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeRollbackRangeTimeRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-instanceIds = $param["InstanceIds"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeRollbackRangeTimeResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeRollbackRangeTimeResponse.php
deleted file mode 100644
index 04913c5979..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeRollbackRangeTimeResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeSupportedPrivilegesRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeSupportedPrivilegesRequest.php
deleted file mode 100644
index 9a8381ef44..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeSupportedPrivilegesRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-instanceId = $param["InstanceId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeSupportedPrivilegesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeSupportedPrivilegesResponse.php
deleted file mode 100644
index 0ad5467845..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeSupportedPrivilegesResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeTableColumnsRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeTableColumnsRequest.php
deleted file mode 100644
index 634411a680..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeTableColumnsRequest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-instanceId = $param["InstanceId"];
- }
-
- if (array_key_exists("Database",$param) and $param["Database"] !== null) {
- $this->database = $param["Database"];
- }
-
- if (array_key_exists("Table",$param) and $param["Table"] !== null) {
- $this->table = $param["Table"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeTableColumnsResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeTableColumnsResponse.php
deleted file mode 100644
index 6b5b4e37c9..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeTableColumnsResponse.php
+++ /dev/null
@@ -1,92 +0,0 @@
-requestId = $param["RequestId"];
- }
-
- if (array_key_exists("TotalCount",$param) and $param["TotalCount"] !== null) {
- $this->totalCount = $param["TotalCount"];
- }
-
- if (array_key_exists("Items",$param) and $param["Items"] !== null) {
- $this->items = $param["Items"];
- }
-
- if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeTablesRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeTablesRequest.php
deleted file mode 100644
index f97a5c6dca..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeTablesRequest.php
+++ /dev/null
@@ -1,92 +0,0 @@
-instanceId = $param["InstanceId"];
- }
-
- if (array_key_exists("Database",$param) and $param["Database"] !== null) {
- $this->database = $param["Database"];
- }
-
- if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
- $this->offset = $param["Offset"];
- }
-
- if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
- $this->limit = $param["Limit"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeTablesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeTablesResponse.php
deleted file mode 100644
index 0cb52cee15..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeTablesResponse.php
+++ /dev/null
@@ -1,92 +0,0 @@
-requestId = $param["RequestId"];
- }
-
- if (array_key_exists("TotalCount",$param) and $param["TotalCount"] !== null) {
- $this->totalCount = $param["TotalCount"];
- }
-
- if (array_key_exists("Items",$param) and $param["Items"] !== null) {
- $this->items = $param["Items"];
- }
-
- if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeTimeWindowRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeTimeWindowRequest.php
deleted file mode 100644
index 2b8686dfd9..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeTimeWindowRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-instanceId = $param["InstanceId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeTimeWindowResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DescribeTimeWindowResponse.php
deleted file mode 100644
index a3eab17dbe..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeTimeWindowResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DropDatabaseTablesRequest.php b/src/TencentCloud/Cdb/V20170320/Models/DropDatabaseTablesRequest.php
deleted file mode 100644
index f403febf6d..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DropDatabaseTablesRequest.php
+++ /dev/null
@@ -1,92 +0,0 @@
-instanceId = $param["InstanceId"];
- }
-
- if (array_key_exists("DatabaseTables",$param) and $param["DatabaseTables"] !== null) {
- $this->databaseTables = $param["DatabaseTables"];
- }
-
- if (array_key_exists("User",$param) and $param["User"] !== null) {
- $this->user = $param["User"];
- }
-
- if (array_key_exists("Password",$param) and $param["Password"] !== null) {
- $this->password = $param["Password"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DropDatabaseTablesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/DropDatabaseTablesResponse.php
deleted file mode 100644
index bcb05d0dac..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/DropDatabaseTablesResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountDescriptionRequest.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountDescriptionRequest.php
index ebe893728e..8fb8a9055a 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountDescriptionRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountDescriptionRequest.php
@@ -21,12 +21,12 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取云数据库实例ID
- * @method void setInstanceId(string $instanceId) 设置云数据库实例ID
- * @method string getDescription() 获取数据库账号的备注信息
- * @method void setDescription(string $description) 设置数据库账号的备注信息
- * @method array getAccounts() 获取云数据库账号
- * @method void setAccounts(array $accounts) 设置云数据库账号
+ * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceId(string $InstanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method string getDescription() 获取数据库账号的备注信息。
+ * @method void setDescription(string $Description) 设置数据库账号的备注信息。
+ * @method array getAccounts() 获取云数据库账号。
+ * @method void setAccounts(array $Accounts) 设置云数据库账号。
*/
/**
@@ -35,23 +35,23 @@
class ModifyAccountDescriptionRequest extends AbstractModel
{
/**
- * @var string 云数据库实例ID
+ * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceId;
+ public $InstanceId;
/**
- * @var string 数据库账号的备注信息
+ * @var string 数据库账号的备注信息。
*/
- public $description;
+ public $Description;
/**
- * @var array 云数据库账号
+ * @var array 云数据库账号。
*/
- public $accounts;
+ public $Accounts;
/**
- * @param string $instanceId 云数据库实例ID
- * @param string $description 数据库账号的备注信息
- * @param array $accounts 云数据库账号
+ * @param string $InstanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @param string $Description 数据库账号的备注信息。
+ * @param array $Accounts 云数据库账号。
*/
function __construct()
{
@@ -66,15 +66,20 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ $this->InstanceId = $param["InstanceId"];
}
if (array_key_exists("Description",$param) and $param["Description"] !== null) {
- $this->description = $param["Description"];
+ $this->Description = $param["Description"];
}
if (array_key_exists("Accounts",$param) and $param["Accounts"] !== null) {
- $this->accounts = $param["Accounts"];
+ $this->Accounts = [];
+ foreach ($param["Accounts"] as $key => $value){
+ $obj = new Account();
+ $obj->deserialize($value);
+ array_push($this->Accounts, $obj);
+ }
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountDescriptionResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountDescriptionResponse.php
index fa88db0156..35bbff12a2 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountDescriptionResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountDescriptionResponse.php
@@ -21,8 +21,10 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method string getAsyncRequestId() 获取异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @method void setAsyncRequestId(string $AsyncRequestId) 设置异步任务的请求ID,可使用此ID查询异步任务的执行结果。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -30,12 +32,18 @@
*/
class ModifyAccountDescriptionResponse extends AbstractModel
{
+ /**
+ * @var string 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ */
+ public $AsyncRequestId;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $AsyncRequestId 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -49,8 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("AsyncRequestId",$param) and $param["AsyncRequestId"] !== null) {
+ $this->AsyncRequestId = $param["AsyncRequestId"];
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPasswordRequest.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPasswordRequest.php
index 0feb0c23fd..9b4434b914 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPasswordRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPasswordRequest.php
@@ -21,12 +21,12 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取云数据库实例ID
- * @method void setInstanceId(string $instanceId) 设置云数据库实例ID
- * @method string getNewPassword() 获取数据库账号的新密码
- * @method void setNewPassword(string $newPassword) 设置数据库账号的新密码
- * @method array getAccounts() 获取云数据库账号
- * @method void setAccounts(array $accounts) 设置云数据库账号
+ * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceId(string $InstanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method string getNewPassword() 获取数据库账号的新密码。
+ * @method void setNewPassword(string $NewPassword) 设置数据库账号的新密码。
+ * @method array getAccounts() 获取云数据库账号。
+ * @method void setAccounts(array $Accounts) 设置云数据库账号。
*/
/**
@@ -35,23 +35,23 @@
class ModifyAccountPasswordRequest extends AbstractModel
{
/**
- * @var string 云数据库实例ID
+ * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceId;
+ public $InstanceId;
/**
- * @var string 数据库账号的新密码
+ * @var string 数据库账号的新密码。
*/
- public $newPassword;
+ public $NewPassword;
/**
- * @var array 云数据库账号
+ * @var array 云数据库账号。
*/
- public $accounts;
+ public $Accounts;
/**
- * @param string $instanceId 云数据库实例ID
- * @param string $newPassword 数据库账号的新密码
- * @param array $accounts 云数据库账号
+ * @param string $InstanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @param string $NewPassword 数据库账号的新密码。
+ * @param array $Accounts 云数据库账号。
*/
function __construct()
{
@@ -66,15 +66,20 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ $this->InstanceId = $param["InstanceId"];
}
if (array_key_exists("NewPassword",$param) and $param["NewPassword"] !== null) {
- $this->newPassword = $param["NewPassword"];
+ $this->NewPassword = $param["NewPassword"];
}
if (array_key_exists("Accounts",$param) and $param["Accounts"] !== null) {
- $this->accounts = $param["Accounts"];
+ $this->Accounts = [];
+ foreach ($param["Accounts"] as $key => $value){
+ $obj = new Account();
+ $obj->deserialize($value);
+ array_push($this->Accounts, $obj);
+ }
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPasswordResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPasswordResponse.php
index 5b7a395b48..1e0fd7dc19 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPasswordResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPasswordResponse.php
@@ -21,8 +21,10 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method string getAsyncRequestId() 获取异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @method void setAsyncRequestId(string $AsyncRequestId) 设置异步任务的请求ID,可使用此ID查询异步任务的执行结果。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -30,12 +32,18 @@
*/
class ModifyAccountPasswordResponse extends AbstractModel
{
+ /**
+ * @var string 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ */
+ public $AsyncRequestId;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $AsyncRequestId 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -49,8 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("AsyncRequestId",$param) and $param["AsyncRequestId"] !== null) {
+ $this->AsyncRequestId = $param["AsyncRequestId"];
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPrivilegesRequest.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPrivilegesRequest.php
index fe60c63a15..f92b3f95f1 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPrivilegesRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPrivilegesRequest.php
@@ -21,18 +21,18 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取云数据库实例ID
- * @method void setInstanceId(string $instanceId) 设置云数据库实例ID
- * @method array getAccounts() 获取数据库的账号,包括用户名和域名
- * @method void setAccounts(array $accounts) 设置数据库的账号,包括用户名和域名
- * @method array getGlobalPrivileges() 获取全局权限
- * @method void setGlobalPrivileges(array $globalPrivileges) 设置全局权限
- * @method array getDatabasePrivileges() 获取数据库的权限
- * @method void setDatabasePrivileges(array $databasePrivileges) 设置数据库的权限
- * @method array getTablePrivileges() 获取数据库中表的权限
- * @method void setTablePrivileges(array $tablePrivileges) 设置数据库中表的权限
- * @method array getColumnPrivileges() 获取数据库表中列的权限
- * @method void setColumnPrivileges(array $columnPrivileges) 设置数据库表中列的权限
+ * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceId(string $InstanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method array getAccounts() 获取数据库的账号,包括用户名和域名。
+ * @method void setAccounts(array $Accounts) 设置数据库的账号,包括用户名和域名。
+ * @method array getGlobalPrivileges() 获取全局权限。其中,GlobalPrivileges 中权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","SHOW DATABASES","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。
+ * @method void setGlobalPrivileges(array $GlobalPrivileges) 设置全局权限。其中,GlobalPrivileges 中权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","SHOW DATABASES","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。
+ * @method array getDatabasePrivileges() 获取数据库的权限。Privileges权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。
+ * @method void setDatabasePrivileges(array $DatabasePrivileges) 设置数据库的权限。Privileges权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。
+ * @method array getTablePrivileges() 获取数据库中表的权限。Privileges权限的可选值为:权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE VIEW","SHOW VIEW", "TRIGGER"。
+ * @method void setTablePrivileges(array $TablePrivileges) 设置数据库中表的权限。Privileges权限的可选值为:权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE VIEW","SHOW VIEW", "TRIGGER"。
+ * @method array getColumnPrivileges() 获取数据库表中列的权限。Privileges权限的可选值为:"SELECT","INSERT","UPDATE","REFERENCES"。
+ * @method void setColumnPrivileges(array $ColumnPrivileges) 设置数据库表中列的权限。Privileges权限的可选值为:"SELECT","INSERT","UPDATE","REFERENCES"。
*/
/**
@@ -41,41 +41,41 @@
class ModifyAccountPrivilegesRequest extends AbstractModel
{
/**
- * @var string 云数据库实例ID
+ * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceId;
+ public $InstanceId;
/**
- * @var array 数据库的账号,包括用户名和域名
+ * @var array 数据库的账号,包括用户名和域名。
*/
- public $accounts;
+ public $Accounts;
/**
- * @var array 全局权限
+ * @var array 全局权限。其中,GlobalPrivileges 中权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","SHOW DATABASES","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。
*/
- public $globalPrivileges;
+ public $GlobalPrivileges;
/**
- * @var array 数据库的权限
+ * @var array 数据库的权限。Privileges权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。
*/
- public $databasePrivileges;
+ public $DatabasePrivileges;
/**
- * @var array 数据库中表的权限
+ * @var array 数据库中表的权限。Privileges权限的可选值为:权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE VIEW","SHOW VIEW", "TRIGGER"。
*/
- public $tablePrivileges;
+ public $TablePrivileges;
/**
- * @var array 数据库表中列的权限
+ * @var array 数据库表中列的权限。Privileges权限的可选值为:"SELECT","INSERT","UPDATE","REFERENCES"。
*/
- public $columnPrivileges;
+ public $ColumnPrivileges;
/**
- * @param string $instanceId 云数据库实例ID
- * @param array $accounts 数据库的账号,包括用户名和域名
- * @param array $globalPrivileges 全局权限
- * @param array $databasePrivileges 数据库的权限
- * @param array $tablePrivileges 数据库中表的权限
- * @param array $columnPrivileges 数据库表中列的权限
+ * @param string $InstanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @param array $Accounts 数据库的账号,包括用户名和域名。
+ * @param array $GlobalPrivileges 全局权限。其中,GlobalPrivileges 中权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","SHOW DATABASES","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。
+ * @param array $DatabasePrivileges 数据库的权限。Privileges权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。
+ * @param array $TablePrivileges 数据库中表的权限。Privileges权限的可选值为:权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE VIEW","SHOW VIEW", "TRIGGER"。
+ * @param array $ColumnPrivileges 数据库表中列的权限。Privileges权限的可选值为:"SELECT","INSERT","UPDATE","REFERENCES"。
*/
function __construct()
{
@@ -90,27 +90,47 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ $this->InstanceId = $param["InstanceId"];
}
if (array_key_exists("Accounts",$param) and $param["Accounts"] !== null) {
- $this->accounts = $param["Accounts"];
+ $this->Accounts = [];
+ foreach ($param["Accounts"] as $key => $value){
+ $obj = new Account();
+ $obj->deserialize($value);
+ array_push($this->Accounts, $obj);
+ }
}
if (array_key_exists("GlobalPrivileges",$param) and $param["GlobalPrivileges"] !== null) {
- $this->globalPrivileges = $param["GlobalPrivileges"];
+ $this->GlobalPrivileges = $param["GlobalPrivileges"];
}
if (array_key_exists("DatabasePrivileges",$param) and $param["DatabasePrivileges"] !== null) {
- $this->databasePrivileges = $param["DatabasePrivileges"];
+ $this->DatabasePrivileges = [];
+ foreach ($param["DatabasePrivileges"] as $key => $value){
+ $obj = new DatabasePrivilege();
+ $obj->deserialize($value);
+ array_push($this->DatabasePrivileges, $obj);
+ }
}
if (array_key_exists("TablePrivileges",$param) and $param["TablePrivileges"] !== null) {
- $this->tablePrivileges = $param["TablePrivileges"];
+ $this->TablePrivileges = [];
+ foreach ($param["TablePrivileges"] as $key => $value){
+ $obj = new TablePrivilege();
+ $obj->deserialize($value);
+ array_push($this->TablePrivileges, $obj);
+ }
}
if (array_key_exists("ColumnPrivileges",$param) and $param["ColumnPrivileges"] !== null) {
- $this->columnPrivileges = $param["ColumnPrivileges"];
+ $this->ColumnPrivileges = [];
+ foreach ($param["ColumnPrivileges"] as $key => $value){
+ $obj = new ColumnPrivilege();
+ $obj->deserialize($value);
+ array_push($this->ColumnPrivileges, $obj);
+ }
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPrivilegesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPrivilegesResponse.php
index bd9e602537..6dbb283f9e 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPrivilegesResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/ModifyAccountPrivilegesResponse.php
@@ -21,8 +21,10 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method string getAsyncRequestId() 获取异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @method void setAsyncRequestId(string $AsyncRequestId) 设置异步任务的请求ID,可使用此ID查询异步任务的执行结果。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -30,12 +32,18 @@
*/
class ModifyAccountPrivilegesResponse extends AbstractModel
{
+ /**
+ * @var string 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ */
+ public $AsyncRequestId;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $AsyncRequestId 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -49,8 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("AsyncRequestId",$param) and $param["AsyncRequestId"] !== null) {
+ $this->AsyncRequestId = $param["AsyncRequestId"];
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyAutoRenewFlagRequest.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyAutoRenewFlagRequest.php
deleted file mode 100644
index 3b58762b67..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyAutoRenewFlagRequest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-instanceIds = $param["InstanceIds"];
- }
-
- if (array_key_exists("AutoRenew",$param) and $param["AutoRenew"] !== null) {
- $this->autoRenew = $param["AutoRenew"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyAutoRenewFlagResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyAutoRenewFlagResponse.php
deleted file mode 100644
index da510fb8ea..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyAutoRenewFlagResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyBackupInfoRequest.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyBackupInfoRequest.php
deleted file mode 100644
index ce53342dff..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyBackupInfoRequest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-instanceId = $param["InstanceId"];
- }
-
- if (array_key_exists("BackupMethod",$param) and $param["BackupMethod"] !== null) {
- $this->backupMethod = $param["BackupMethod"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyBackupInfoResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyBackupInfoResponse.php
deleted file mode 100644
index dfd521616c..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyBackupInfoResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyDBInstanceModesRequest.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyDBInstanceModesRequest.php
deleted file mode 100644
index f38f4998dc..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyDBInstanceModesRequest.php
+++ /dev/null
@@ -1,116 +0,0 @@
-instanceId = $param["InstanceId"];
- }
-
- if (array_key_exists("Mode",$param) and $param["Mode"] !== null) {
- $this->mode = $param["Mode"];
- }
-
- if (array_key_exists("ProtectMode",$param) and $param["ProtectMode"] !== null) {
- $this->protectMode = $param["ProtectMode"];
- }
-
- if (array_key_exists("DeployMode",$param) and $param["DeployMode"] !== null) {
- $this->deployMode = $param["DeployMode"];
- }
-
- if (array_key_exists("SlaveZone",$param) and $param["SlaveZone"] !== null) {
- $this->slaveZone = $param["SlaveZone"];
- }
-
- if (array_key_exists("WaitSwitch",$param) and $param["WaitSwitch"] !== null) {
- $this->waitSwitch = $param["WaitSwitch"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyDBInstanceModesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyDBInstanceModesResponse.php
deleted file mode 100644
index 231b7418b1..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyDBInstanceModesResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyMonitorTemplateResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyMonitorTemplateResponse.php
deleted file mode 100644
index ee1e11b97d..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyMonitorTemplateResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyParamTemplateRequest.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyParamTemplateRequest.php
deleted file mode 100644
index 8d68ef853e..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyParamTemplateRequest.php
+++ /dev/null
@@ -1,92 +0,0 @@
-templateId = $param["TemplateId"];
- }
-
- if (array_key_exists("Name",$param) and $param["Name"] !== null) {
- $this->name = $param["Name"];
- }
-
- if (array_key_exists("Description",$param) and $param["Description"] !== null) {
- $this->description = $param["Description"];
- }
-
- if (array_key_exists("ParamList",$param) and $param["ParamList"] !== null) {
- $this->paramList = $param["ParamList"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyParamTemplateResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyParamTemplateResponse.php
deleted file mode 100644
index 818682513e..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyParamTemplateResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyProtectModeResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyProtectModeResponse.php
deleted file mode 100644
index 2755528155..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyProtectModeResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyRoGroupInfoRequest.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyRoGroupInfoRequest.php
deleted file mode 100644
index d853430b2d..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyRoGroupInfoRequest.php
+++ /dev/null
@@ -1,98 +0,0 @@
-uGroupId = $param["UGroupId"];
- }
-
- if (array_key_exists("GroupInfo",$param) and $param["GroupInfo"] !== null) {
- $this->groupInfo = new RoGroupInfo();
- $this->groupInfo->deserialize($param["GroupInfo"]);
- }
-
- if (array_key_exists("WeightValues",$param) and $param["WeightValues"] !== null) {
- $this->weightValues = [];
- foreach ($param["WeightValues"] as $key => $value){
- $obj = new int64();
- $obj->deserialize($value);
- array_push($this->weightValues, $obj);
- }
- }
-
- if (array_key_exists("IsBalanceRoLoad",$param) and $param["IsBalanceRoLoad"] !== null) {
- $this->isBalanceRoLoad = $param["IsBalanceRoLoad"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyRoGroupInfoResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyRoGroupInfoResponse.php
deleted file mode 100644
index 209f0eca83..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyRoGroupInfoResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyRoGroupVipVportResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyRoGroupVipVportResponse.php
deleted file mode 100644
index 039231bb75..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyRoGroupVipVportResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyTimeWindowRequest.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyTimeWindowRequest.php
deleted file mode 100644
index ffbcf538b7..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyTimeWindowRequest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-instanceId = $param["InstanceId"];
- }
-
- if (array_key_exists("TimeRanges",$param) and $param["TimeRanges"] !== null) {
- $this->timeRanges = $param["TimeRanges"];
- }
-
- if (array_key_exists("Weekdays",$param) and $param["Weekdays"] !== null) {
- $this->weekdays = $param["Weekdays"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyTimeWindowResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ModifyTimeWindowResponse.php
deleted file mode 100644
index c88039839f..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyTimeWindowResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/OpenDBInstanceGTIDRequest.php b/src/TencentCloud/Cdb/V20170320/Models/OpenDBInstanceGTIDRequest.php
index 657d8c862b..dad78e9309 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/OpenDBInstanceGTIDRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/OpenDBInstanceGTIDRequest.php
@@ -21,8 +21,8 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取云数据库实例ID
- * @method void setInstanceId(string $instanceId) 设置云数据库实例ID
+ * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceId(string $InstanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
/**
@@ -31,11 +31,11 @@
class OpenDBInstanceGTIDRequest extends AbstractModel
{
/**
- * @var string 云数据库实例ID
+ * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceId;
+ public $InstanceId;
/**
- * @param string $instanceId 云数据库实例ID
+ * @param string $InstanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
function __construct()
{
@@ -50,7 +50,7 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ $this->InstanceId = $param["InstanceId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/OpenDBInstanceGTIDResponse.php b/src/TencentCloud/Cdb/V20170320/Models/OpenDBInstanceGTIDResponse.php
index 3a39e8f676..9421229c45 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/OpenDBInstanceGTIDResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/OpenDBInstanceGTIDResponse.php
@@ -21,8 +21,10 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method string getAsyncRequestId() 获取异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @method void setAsyncRequestId(string $AsyncRequestId) 设置异步任务的请求ID,可使用此ID查询异步任务的执行结果。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -30,12 +32,18 @@
*/
class OpenDBInstanceGTIDResponse extends AbstractModel
{
+ /**
+ * @var string 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ */
+ public $AsyncRequestId;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $AsyncRequestId 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -49,8 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("AsyncRequestId",$param) and $param["AsyncRequestId"] !== null) {
+ $this->AsyncRequestId = $param["AsyncRequestId"];
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ReleaseIsolatedDBInstancesRequest.php b/src/TencentCloud/Cdb/V20170320/Models/ReleaseIsolatedDBInstancesRequest.php
deleted file mode 100644
index 059aa23e92..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ReleaseIsolatedDBInstancesRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-instanceIds = $param["InstanceIds"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ReleaseIsolatedDBInstancesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/ReleaseIsolatedDBInstancesResponse.php
deleted file mode 100644
index 04295efc59..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/ReleaseIsolatedDBInstancesResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/RestartDBInstancesRequest.php b/src/TencentCloud/Cdb/V20170320/Models/RestartDBInstancesRequest.php
index df60152274..943f750bea 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/RestartDBInstancesRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/RestartDBInstancesRequest.php
@@ -21,8 +21,8 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method array getInstanceIds() 获取云数据库实例ID
- * @method void setInstanceIds(array $instanceIds) 设置云数据库实例ID
+ * @method array getInstanceIds() 获取实例ID数组,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceIds(array $InstanceIds) 设置实例ID数组,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
/**
@@ -31,11 +31,11 @@
class RestartDBInstancesRequest extends AbstractModel
{
/**
- * @var array 云数据库实例ID
+ * @var array 实例ID数组,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceIds;
+ public $InstanceIds;
/**
- * @param array $instanceIds 云数据库实例ID
+ * @param array $InstanceIds 实例ID数组,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
function __construct()
{
@@ -50,7 +50,7 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceIds",$param) and $param["InstanceIds"] !== null) {
- $this->instanceIds = $param["InstanceIds"];
+ $this->InstanceIds = $param["InstanceIds"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/RestartDBInstancesResponse.php b/src/TencentCloud/Cdb/V20170320/Models/RestartDBInstancesResponse.php
index f2aadcb64a..1eed27a962 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/RestartDBInstancesResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/RestartDBInstancesResponse.php
@@ -21,8 +21,10 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method string getAsyncRequestId() 获取异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @method void setAsyncRequestId(string $AsyncRequestId) 设置异步任务的请求ID,可使用此ID查询异步任务的执行结果。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -30,12 +32,18 @@
*/
class RestartDBInstancesResponse extends AbstractModel
{
+ /**
+ * @var string 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ */
+ public $AsyncRequestId;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $AsyncRequestId 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -49,8 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("AsyncRequestId",$param) and $param["AsyncRequestId"] !== null) {
+ $this->AsyncRequestId = $param["AsyncRequestId"];
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/RoGroupInfo.php b/src/TencentCloud/Cdb/V20170320/Models/RoGroupInfo.php
deleted file mode 100644
index 215eb3a8c5..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/RoGroupInfo.php
+++ /dev/null
@@ -1,217 +0,0 @@
-uGroupId = $param["UGroupId"];
- }
-
- if (array_key_exists("GroupName",$param) and $param["GroupName"] !== null) {
- $this->groupName = $param["GroupName"];
- }
-
- if (array_key_exists("MasterInstanceId",$param) and $param["MasterInstanceId"] !== null) {
- $this->masterInstanceId = $param["MasterInstanceId"];
- }
-
- if (array_key_exists("MaxDelay",$param) and $param["MaxDelay"] !== null) {
- $this->maxDelay = $param["MaxDelay"];
- }
-
- if (array_key_exists("IsKickOut",$param) and $param["IsKickOut"] !== null) {
- $this->isKickOut = $param["IsKickOut"];
- }
-
- if (array_key_exists("MinCount",$param) and $param["MinCount"] !== null) {
- $this->minCount = $param["MinCount"];
- }
-
- if (array_key_exists("UpdateTime",$param) and $param["UpdateTime"] !== null) {
- $this->updateTime = $param["UpdateTime"];
- }
-
- if (array_key_exists("CreateTime",$param) and $param["CreateTime"] !== null) {
- $this->createTime = $param["CreateTime"];
- }
-
- if (array_key_exists("VpcId",$param) and $param["VpcId"] !== null) {
- $this->vpcId = $param["VpcId"];
- }
-
- if (array_key_exists("SubnetId",$param) and $param["SubnetId"] !== null) {
- $this->subnetId = $param["SubnetId"];
- }
-
- if (array_key_exists("Vip",$param) and $param["Vip"] !== null) {
- $this->vip = $param["Vip"];
- }
-
- if (array_key_exists("Vport",$param) and $param["Vport"] !== null) {
- $this->vport = $param["Vport"];
- }
-
- if (array_key_exists("WeightMode",$param) and $param["WeightMode"] !== null) {
- $this->weightMode = $param["WeightMode"];
- }
-
- if (array_key_exists("RoInstances",$param) and $param["RoInstances"] !== null) {
- $this->roInstances = [];
- foreach ($param["RoInstances"] as $key => $value){
- $obj = new RoInstanceInfo();
- $obj->deserialize($value);
- array_push($this->roInstances, $obj);
- }
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/RoInstanceInfo.php b/src/TencentCloud/Cdb/V20170320/Models/RoInstanceInfo.php
deleted file mode 100644
index 4d81decd9f..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/RoInstanceInfo.php
+++ /dev/null
@@ -1,320 +0,0 @@
-0-没有任务
1-升级中
2-数据导入中
3-开放Slave中
4-外网访问开通中
5-批量操作执行中
6-回档中
7-外网访问关闭中
8-密码修改中
9-实例名修改中
10-重启中
12-自建迁移中
13-删除库表中
14-灾备实例创建同步中
- * @method void setTaskStatus(integer $taskStatus) 设置RO实例任务状态,可能返回值:
0-没有任务
1-升级中
2-数据导入中
3-开放Slave中
4-外网访问开通中
5-批量操作执行中
6-回档中
7-外网访问关闭中
8-密码修改中
9-实例名修改中
10-重启中
12-自建迁移中
13-删除库表中
14-灾备实例创建同步中
- * @method integer getMemory() 获取RO实例内存大小,单位:MB
- * @method void setMemory(integer $memory) 设置RO实例内存大小,单位:MB
- * @method integer getVolume() 获取RO实例硬盘大小,单位:GB
- * @method void setVolume(integer $volume) 设置RO实例硬盘大小,单位:GB
- * @method integer getQps() 获取每次查询数量
- * @method void setQps(integer $qps) 设置每次查询数量
- * @method string getVip() 获取RO实例的内网IP地址
- * @method void setVip(string $vip) 设置RO实例的内网IP地址
- * @method integer getVport() 获取RO实例访问端口
- * @method void setVport(integer $vport) 设置RO实例访问端口
- * @method integer getVpcId() 获取RO实例所在私有网络ID
- * @method void setVpcId(integer $vpcId) 设置RO实例所在私有网络ID
- * @method integer getSubnetId() 获取RO实例所在私有网络子网ID
- * @method void setSubnetId(integer $subnetId) 设置RO实例所在私有网络子网ID
- * @method string getDeviceType() 获取RO实例规格描述,目前可取值 CUSTOM
- * @method void setDeviceType(string $deviceType) 设置RO实例规格描述,目前可取值 CUSTOM
- * @method string getEngineVersion() 获取RO实例数据库引擎版本,可能返回值:5.1、5.5、5.6和5.7
- * @method void setEngineVersion(string $engineVersion) 设置RO实例数据库引擎版本,可能返回值:5.1、5.5、5.6和5.7
- * @method string getDeadlineTime() 获取RO实例到期时间,时间格式:yyyy-mm-dd hh:mm:ss,如实例为按量计费模式,则此字段值为0000-00-00 00:00:00
- * @method void setDeadlineTime(string $deadlineTime) 设置RO实例到期时间,时间格式:yyyy-mm-dd hh:mm:ss,如实例为按量计费模式,则此字段值为0000-00-00 00:00:00
- * @method integer getPayType() 获取RO实例计费类型,可能返回值:0-包年包月,1-按量计费,2-后付费月结
- * @method void setPayType(integer $payType) 设置RO实例计费类型,可能返回值:0-包年包月,1-按量计费,2-后付费月结
- */
-
-/**
- *RO实例的详细信息
- */
-class RoInstanceInfo extends AbstractModel
-{
- /**
- * @var string RO组对应的主实例的ID
- */
- public $masterInstanceId;
-
- /**
- * @var string RO实例在RO组内的状态,可能的值:online-在线,offline-下线
- */
- public $roStatus;
-
- /**
- * @var string RO实例在RO组内上一次下线的时间
- */
- public $offlineTime;
-
- /**
- * @var integer RO实例在RO组内的权重
- */
- public $weight;
-
- /**
- * @var string RO实例所在区域名称,如ap-shanghai
- */
- public $region;
-
- /**
- * @var string RO可用区的正式名称,如ap-shanghai-1
- */
- public $zone;
-
- /**
- * @var string RO实例ID,格式如:cdbro-c1nl9rpv
- */
- public $instanceId;
-
- /**
- * @var integer RO实例状态,可能返回值:0-创建中,1-运行中,4-删除中
- */
- public $status;
-
- /**
- * @var integer 实例类型,可能返回值:1-主实例,2-灾备实例,3-只读实例
- */
- public $instanceType;
-
- /**
- * @var string RO实例名称
- */
- public $instanceName;
-
- /**
- * @var integer 按量计费状态,可能的取值:1-正常,2-欠费
- */
- public $hourFeeStatus;
-
- /**
- * @var integer RO实例任务状态,可能返回值:
0-没有任务
1-升级中
2-数据导入中
3-开放Slave中
4-外网访问开通中
5-批量操作执行中
6-回档中
7-外网访问关闭中
8-密码修改中
9-实例名修改中
10-重启中
12-自建迁移中
13-删除库表中
14-灾备实例创建同步中
- */
- public $taskStatus;
-
- /**
- * @var integer RO实例内存大小,单位:MB
- */
- public $memory;
-
- /**
- * @var integer RO实例硬盘大小,单位:GB
- */
- public $volume;
-
- /**
- * @var integer 每次查询数量
- */
- public $qps;
-
- /**
- * @var string RO实例的内网IP地址
- */
- public $vip;
-
- /**
- * @var integer RO实例访问端口
- */
- public $vport;
-
- /**
- * @var integer RO实例所在私有网络ID
- */
- public $vpcId;
-
- /**
- * @var integer RO实例所在私有网络子网ID
- */
- public $subnetId;
-
- /**
- * @var string RO实例规格描述,目前可取值 CUSTOM
- */
- public $deviceType;
-
- /**
- * @var string RO实例数据库引擎版本,可能返回值:5.1、5.5、5.6和5.7
- */
- public $engineVersion;
-
- /**
- * @var string RO实例到期时间,时间格式:yyyy-mm-dd hh:mm:ss,如实例为按量计费模式,则此字段值为0000-00-00 00:00:00
- */
- public $deadlineTime;
-
- /**
- * @var integer RO实例计费类型,可能返回值:0-包年包月,1-按量计费,2-后付费月结
- */
- public $payType;
- /**
- * @param string $masterInstanceId RO组对应的主实例的ID
- * @param string $roStatus RO实例在RO组内的状态,可能的值:online-在线,offline-下线
- * @param string $offlineTime RO实例在RO组内上一次下线的时间
- * @param integer $weight RO实例在RO组内的权重
- * @param string $region RO实例所在区域名称,如ap-shanghai
- * @param string $zone RO可用区的正式名称,如ap-shanghai-1
- * @param string $instanceId RO实例ID,格式如:cdbro-c1nl9rpv
- * @param integer $status RO实例状态,可能返回值:0-创建中,1-运行中,4-删除中
- * @param integer $instanceType 实例类型,可能返回值:1-主实例,2-灾备实例,3-只读实例
- * @param string $instanceName RO实例名称
- * @param integer $hourFeeStatus 按量计费状态,可能的取值:1-正常,2-欠费
- * @param integer $taskStatus RO实例任务状态,可能返回值:
0-没有任务
1-升级中
2-数据导入中
3-开放Slave中
4-外网访问开通中
5-批量操作执行中
6-回档中
7-外网访问关闭中
8-密码修改中
9-实例名修改中
10-重启中
12-自建迁移中
13-删除库表中
14-灾备实例创建同步中
- * @param integer $memory RO实例内存大小,单位:MB
- * @param integer $volume RO实例硬盘大小,单位:GB
- * @param integer $qps 每次查询数量
- * @param string $vip RO实例的内网IP地址
- * @param integer $vport RO实例访问端口
- * @param integer $vpcId RO实例所在私有网络ID
- * @param integer $subnetId RO实例所在私有网络子网ID
- * @param string $deviceType RO实例规格描述,目前可取值 CUSTOM
- * @param string $engineVersion RO实例数据库引擎版本,可能返回值:5.1、5.5、5.6和5.7
- * @param string $deadlineTime RO实例到期时间,时间格式:yyyy-mm-dd hh:mm:ss,如实例为按量计费模式,则此字段值为0000-00-00 00:00:00
- * @param integer $payType RO实例计费类型,可能返回值:0-包年包月,1-按量计费,2-后付费月结
- */
- function __construct()
- {
-
- }
- /**
- * 内部实现,用户禁止调用
- */
- public function deserialize($param)
- {
- if ($param === null) {
- return;
- }
- if (array_key_exists("MasterInstanceId",$param) and $param["MasterInstanceId"] !== null) {
- $this->masterInstanceId = $param["MasterInstanceId"];
- }
-
- if (array_key_exists("RoStatus",$param) and $param["RoStatus"] !== null) {
- $this->roStatus = $param["RoStatus"];
- }
-
- if (array_key_exists("OfflineTime",$param) and $param["OfflineTime"] !== null) {
- $this->offlineTime = $param["OfflineTime"];
- }
-
- if (array_key_exists("Weight",$param) and $param["Weight"] !== null) {
- $this->weight = $param["Weight"];
- }
-
- if (array_key_exists("Region",$param) and $param["Region"] !== null) {
- $this->region = $param["Region"];
- }
-
- if (array_key_exists("Zone",$param) and $param["Zone"] !== null) {
- $this->zone = $param["Zone"];
- }
-
- if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
- }
-
- if (array_key_exists("Status",$param) and $param["Status"] !== null) {
- $this->status = $param["Status"];
- }
-
- if (array_key_exists("InstanceType",$param) and $param["InstanceType"] !== null) {
- $this->instanceType = $param["InstanceType"];
- }
-
- if (array_key_exists("InstanceName",$param) and $param["InstanceName"] !== null) {
- $this->instanceName = $param["InstanceName"];
- }
-
- if (array_key_exists("HourFeeStatus",$param) and $param["HourFeeStatus"] !== null) {
- $this->hourFeeStatus = $param["HourFeeStatus"];
- }
-
- if (array_key_exists("TaskStatus",$param) and $param["TaskStatus"] !== null) {
- $this->taskStatus = $param["TaskStatus"];
- }
-
- if (array_key_exists("Memory",$param) and $param["Memory"] !== null) {
- $this->memory = $param["Memory"];
- }
-
- if (array_key_exists("Volume",$param) and $param["Volume"] !== null) {
- $this->volume = $param["Volume"];
- }
-
- if (array_key_exists("Qps",$param) and $param["Qps"] !== null) {
- $this->qps = $param["Qps"];
- }
-
- if (array_key_exists("Vip",$param) and $param["Vip"] !== null) {
- $this->vip = $param["Vip"];
- }
-
- if (array_key_exists("Vport",$param) and $param["Vport"] !== null) {
- $this->vport = $param["Vport"];
- }
-
- if (array_key_exists("VpcId",$param) and $param["VpcId"] !== null) {
- $this->vpcId = $param["VpcId"];
- }
-
- if (array_key_exists("SubnetId",$param) and $param["SubnetId"] !== null) {
- $this->subnetId = $param["SubnetId"];
- }
-
- if (array_key_exists("DeviceType",$param) and $param["DeviceType"] !== null) {
- $this->deviceType = $param["DeviceType"];
- }
-
- if (array_key_exists("EngineVersion",$param) and $param["EngineVersion"] !== null) {
- $this->engineVersion = $param["EngineVersion"];
- }
-
- if (array_key_exists("DeadlineTime",$param) and $param["DeadlineTime"] !== null) {
- $this->deadlineTime = $param["DeadlineTime"];
- }
-
- if (array_key_exists("PayType",$param) and $param["PayType"] !== null) {
- $this->payType = $param["PayType"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/CheckIpInSubnetRequest.php b/src/TencentCloud/Cdb/V20170320/Models/SlaveConfig.php
similarity index 50%
rename from src/TencentCloud/Cdb/V20170320/Models/CheckIpInSubnetRequest.php
rename to src/TencentCloud/Cdb/V20170320/Models/SlaveConfig.php
index f55aef5efe..4bb830a3c0 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/CheckIpInSubnetRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/SlaveConfig.php
@@ -21,37 +21,29 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getUniqVpcId() 获取私有网络ID
- * @method void setUniqVpcId(string $uniqVpcId) 设置私有网络ID
- * @method string getUniqSubnetId() 获取子网ID
- * @method void setUniqSubnetId(string $uniqSubnetId) 设置子网ID
- * @method string getVip() 获取IP地址
- * @method void setVip(string $vip) 设置IP地址
+ * @method string getReplicationMode() 获取从库复制方式,可能的返回值:aysnc-异步,semisync-半同步
+ * @method void setReplicationMode(string $ReplicationMode) 设置从库复制方式,可能的返回值:aysnc-异步,semisync-半同步
+ * @method string getZone() 获取从库可用区的正式名称,如ap-shanghai-1
+ * @method void setZone(string $Zone) 设置从库可用区的正式名称,如ap-shanghai-1
*/
/**
- *CheckIpInSubnet请求参数结构体
+ *从库的配置信息
*/
-class CheckIpInSubnetRequest extends AbstractModel
+class SlaveConfig extends AbstractModel
{
/**
- * @var string 私有网络ID
+ * @var string 从库复制方式,可能的返回值:aysnc-异步,semisync-半同步
*/
- public $uniqVpcId;
+ public $ReplicationMode;
/**
- * @var string 子网ID
+ * @var string 从库可用区的正式名称,如ap-shanghai-1
*/
- public $uniqSubnetId;
-
- /**
- * @var string IP地址
- */
- public $vip;
+ public $Zone;
/**
- * @param string $uniqVpcId 私有网络ID
- * @param string $uniqSubnetId 子网ID
- * @param string $vip IP地址
+ * @param string $ReplicationMode 从库复制方式,可能的返回值:aysnc-异步,semisync-半同步
+ * @param string $Zone 从库可用区的正式名称,如ap-shanghai-1
*/
function __construct()
{
@@ -65,16 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("UniqVpcId",$param) and $param["UniqVpcId"] !== null) {
- $this->uniqVpcId = $param["UniqVpcId"];
- }
-
- if (array_key_exists("UniqSubnetId",$param) and $param["UniqSubnetId"] !== null) {
- $this->uniqSubnetId = $param["UniqSubnetId"];
+ if (array_key_exists("ReplicationMode",$param) and $param["ReplicationMode"] !== null) {
+ $this->ReplicationMode = $param["ReplicationMode"];
}
- if (array_key_exists("Vip",$param) and $param["Vip"] !== null) {
- $this->vip = $param["Vip"];
+ if (array_key_exists("Zone",$param) and $param["Zone"] !== null) {
+ $this->Zone = $param["Zone"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/StartBatchRollbackRequest.php b/src/TencentCloud/Cdb/V20170320/Models/StartBatchRollbackRequest.php
deleted file mode 100644
index a8ad2dd07c..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/StartBatchRollbackRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-instances = $param["Instances"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/StartBatchRollbackResponse.php b/src/TencentCloud/Cdb/V20170320/Models/StartBatchRollbackResponse.php
deleted file mode 100644
index b881ef97be..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/StartBatchRollbackResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/SubmitBatchOperationRequest.php b/src/TencentCloud/Cdb/V20170320/Models/SubmitBatchOperationRequest.php
deleted file mode 100644
index 5e4d052d80..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/SubmitBatchOperationRequest.php
+++ /dev/null
@@ -1,97 +0,0 @@
-fileIds = [];
- foreach ($param["FileIds"] as $key => $value){
- $obj = new int64();
- $obj->deserialize($value);
- array_push($this->fileIds, $obj);
- }
- }
-
- if (array_key_exists("User",$param) and $param["User"] !== null) {
- $this->user = $param["User"];
- }
-
- if (array_key_exists("Password",$param) and $param["Password"] !== null) {
- $this->password = $param["Password"];
- }
-
- if (array_key_exists("Instances",$param) and $param["Instances"] !== null) {
- $this->instances = $param["Instances"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/SubmitBatchOperationResponse.php b/src/TencentCloud/Cdb/V20170320/Models/SubmitBatchOperationResponse.php
deleted file mode 100644
index 7cb4e0ff9b..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/SubmitBatchOperationResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/SwitchDrInstanceToMasterRequest.php b/src/TencentCloud/Cdb/V20170320/Models/SwitchDrInstanceToMasterRequest.php
deleted file mode 100644
index 52a895278e..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/SwitchDrInstanceToMasterRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-instanceId = $param["InstanceId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/SwitchDrInstanceToMasterResponse.php b/src/TencentCloud/Cdb/V20170320/Models/SwitchDrInstanceToMasterResponse.php
deleted file mode 100644
index 428512a193..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/SwitchDrInstanceToMasterResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyRoGroupVipVportRequest.php b/src/TencentCloud/Cdb/V20170320/Models/TablePrivilege.php
similarity index 53%
rename from src/TencentCloud/Cdb/V20170320/Models/ModifyRoGroupVipVportRequest.php
rename to src/TencentCloud/Cdb/V20170320/Models/TablePrivilege.php
index 45df242a37..3a642add23 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyRoGroupVipVportRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/TablePrivilege.php
@@ -21,37 +21,37 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getUGroupId() 获取RO组的ID
- * @method void setUGroupId(string $uGroupId) 设置RO组的ID
- * @method string getDstIp() 获取目标IP
- * @method void setDstIp(string $dstIp) 设置目标IP
- * @method integer getDstPort() 获取目标Port
- * @method void setDstPort(integer $dstPort) 设置目标Port
+ * @method string getDatabase() 获取数据库名
+ * @method void setDatabase(string $Database) 设置数据库名
+ * @method string getTable() 获取数据库表名
+ * @method void setTable(string $Table) 设置数据库表名
+ * @method array getPrivileges() 获取权限信息
+ * @method void setPrivileges(array $Privileges) 设置权限信息
*/
/**
- *ModifyRoGroupVipVport请求参数结构体
+ *数据库表权限
*/
-class ModifyRoGroupVipVportRequest extends AbstractModel
+class TablePrivilege extends AbstractModel
{
/**
- * @var string RO组的ID
+ * @var string 数据库名
*/
- public $uGroupId;
+ public $Database;
/**
- * @var string 目标IP
+ * @var string 数据库表名
*/
- public $dstIp;
+ public $Table;
/**
- * @var integer 目标Port
+ * @var array 权限信息
*/
- public $dstPort;
+ public $Privileges;
/**
- * @param string $uGroupId RO组的ID
- * @param string $dstIp 目标IP
- * @param integer $dstPort 目标Port
+ * @param string $Database 数据库名
+ * @param string $Table 数据库表名
+ * @param array $Privileges 权限信息
*/
function __construct()
{
@@ -65,16 +65,16 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("UGroupId",$param) and $param["UGroupId"] !== null) {
- $this->uGroupId = $param["UGroupId"];
+ if (array_key_exists("Database",$param) and $param["Database"] !== null) {
+ $this->Database = $param["Database"];
}
- if (array_key_exists("DstIp",$param) and $param["DstIp"] !== null) {
- $this->dstIp = $param["DstIp"];
+ if (array_key_exists("Table",$param) and $param["Table"] !== null) {
+ $this->Table = $param["Table"];
}
- if (array_key_exists("DstPort",$param) and $param["DstPort"] !== null) {
- $this->dstPort = $param["DstPort"];
+ if (array_key_exists("Privileges",$param) and $param["Privileges"] !== null) {
+ $this->Privileges = $param["Privileges"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/UnAssociateSecurityGroupsRequest.php b/src/TencentCloud/Cdb/V20170320/Models/UnAssociateSecurityGroupsRequest.php
deleted file mode 100644
index f21f15701f..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/UnAssociateSecurityGroupsRequest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-securityGroupId = $param["SecurityGroupId"];
- }
-
- if (array_key_exists("InstanceIds",$param) and $param["InstanceIds"] !== null) {
- $this->instanceIds = $param["InstanceIds"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/UnAssociateSecurityGroupsResponse.php b/src/TencentCloud/Cdb/V20170320/Models/UnAssociateSecurityGroupsResponse.php
deleted file mode 100644
index 1c2ce8c118..0000000000
--- a/src/TencentCloud/Cdb/V20170320/Models/UnAssociateSecurityGroupsResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/VerifyRootAccountRequest.php b/src/TencentCloud/Cdb/V20170320/Models/VerifyRootAccountRequest.php
index ad45b2fdb9..45b38644fc 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/VerifyRootAccountRequest.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/VerifyRootAccountRequest.php
@@ -21,10 +21,10 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取云数据库实例ID
- * @method void setInstanceId(string $instanceId) 设置云数据库实例ID
- * @method string getPassword() 获取实例ROOT账号的密码
- * @method void setPassword(string $password) 设置实例ROOT账号的密码
+ * @method string getInstanceId() 获取实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method void setInstanceId(string $InstanceId) 设置实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @method string getPassword() 获取实例ROOT账号的密码。
+ * @method void setPassword(string $Password) 设置实例ROOT账号的密码。
*/
/**
@@ -33,17 +33,17 @@
class VerifyRootAccountRequest extends AbstractModel
{
/**
- * @var string 云数据库实例ID
+ * @var string 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
*/
- public $instanceId;
+ public $InstanceId;
/**
- * @var string 实例ROOT账号的密码
+ * @var string 实例ROOT账号的密码。
*/
- public $password;
+ public $Password;
/**
- * @param string $instanceId 云数据库实例ID
- * @param string $password 实例ROOT账号的密码
+ * @param string $InstanceId 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
+ * @param string $Password 实例ROOT账号的密码。
*/
function __construct()
{
@@ -58,11 +58,11 @@ public function deserialize($param)
return;
}
if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ $this->InstanceId = $param["InstanceId"];
}
if (array_key_exists("Password",$param) and $param["Password"] !== null) {
- $this->password = $param["Password"];
+ $this->Password = $param["Password"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/VerifyRootAccountResponse.php b/src/TencentCloud/Cdb/V20170320/Models/VerifyRootAccountResponse.php
index f87a22820a..55e2e2f10e 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/VerifyRootAccountResponse.php
+++ b/src/TencentCloud/Cdb/V20170320/Models/VerifyRootAccountResponse.php
@@ -21,8 +21,10 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method string getAsyncRequestId() 获取异步任务的请求ID,可使用此ID查询异步任务的执行结果
+ * @method void setAsyncRequestId(string $AsyncRequestId) 设置异步任务的请求ID,可使用此ID查询异步任务的执行结果
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
@@ -30,12 +32,18 @@
*/
class VerifyRootAccountResponse extends AbstractModel
{
+ /**
+ * @var string 异步任务的请求ID,可使用此ID查询异步任务的执行结果
+ */
+ public $AsyncRequestId;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $AsyncRequestId 异步任务的请求ID,可使用此ID查询异步任务的执行结果
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -49,8 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("AsyncRequestId",$param) and $param["AsyncRequestId"] !== null) {
+ $this->AsyncRequestId = $param["AsyncRequestId"];
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Common/AbstractClient.php b/src/TencentCloud/Common/AbstractClient.php
index 03837d258f..35f2ff1ad3 100644
--- a/src/TencentCloud/Common/AbstractClient.php
+++ b/src/TencentCloud/Common/AbstractClient.php
@@ -37,7 +37,7 @@ abstract class AbstractClient
/**
* @var string SDK版本
*/
- public static $SDK_VERSION = "SDK_PHP_3.0.5";
+ public static $SDK_VERSION = "SDK_PHP_3.0.6";
/**
* @var integer http响应码200
diff --git a/src/TencentCloud/Cvm/V20170312/CvmClient.php b/src/TencentCloud/Cvm/V20170312/CvmClient.php
index 7d09076687..958f90c2ac 100644
--- a/src/TencentCloud/Cvm/V20170312/CvmClient.php
+++ b/src/TencentCloud/Cvm/V20170312/CvmClient.php
@@ -80,6 +80,7 @@
* 密钥对是通过一种算法生成的一对密钥,在生成的密钥对中,一个向外界公开,称为公钥;另一个用户自己保留,称为私钥。密钥对的公钥内容可以通过这个接口查询,但私钥内容系统不保留。
* @method Models\DescribeRegionsResponse DescribeRegions(Models\DescribeRegionsRequest $req) 本接口(DescribeRegions)用于查询地域信息。
+* @method Models\DescribeZoneInstanceConfigInfosResponse DescribeZoneInstanceConfigInfos(Models\DescribeZoneInstanceConfigInfosRequest $req) 本接口(DescribeZoneInstanceConfigInfos) 获取可用区的机型信息。
* @method Models\DescribeZonesResponse DescribeZones(Models\DescribeZonesRequest $req) 本接口(DescribeZones)用于查询可用区信息。
* @method Models\DisassociateInstancesKeyPairsResponse DisassociateInstancesKeyPairs(Models\DisassociateInstancesKeyPairsRequest $req) 本接口 (DisassociateInstancesKeyPairs) 用于解除实例的密钥绑定关系。
diff --git a/src/TencentCloud/Cvm/V20170312/Models/ActionTimer.php b/src/TencentCloud/Cvm/V20170312/Models/ActionTimer.php
index 1049b8ac40..1bfdb8e95a 100644
--- a/src/TencentCloud/Cvm/V20170312/Models/ActionTimer.php
+++ b/src/TencentCloud/Cvm/V20170312/Models/ActionTimer.php
@@ -21,10 +21,10 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getTimerAction() 获取定时器
- * @method void setTimerAction(string $TimerAction) 设置定时器
- * @method string getActionTime() 获取执行时间
- * @method void setActionTime(string $ActionTime) 设置执行时间
+ * @method string getTimerAction() 获取定时器名称,目前仅支持销毁一个值:TerminateInstances。
+ * @method void setTimerAction(string $TimerAction) 设置定时器名称,目前仅支持销毁一个值:TerminateInstances。
+ * @method string getActionTime() 获取执行时间,格式形如:2018/5/29 11:26:40,执行时间必须大于当前时间5分钟。
+ * @method void setActionTime(string $ActionTime) 设置执行时间,格式形如:2018/5/29 11:26:40,执行时间必须大于当前时间5分钟。
* @method Externals getExternals() 获取扩展数据
* @method void setExternals(Externals $Externals) 设置扩展数据
*/
@@ -35,12 +35,12 @@
class ActionTimer extends AbstractModel
{
/**
- * @var string 定时器
+ * @var string 定时器名称,目前仅支持销毁一个值:TerminateInstances。
*/
public $TimerAction;
/**
- * @var string 执行时间
+ * @var string 执行时间,格式形如:2018/5/29 11:26:40,执行时间必须大于当前时间5分钟。
*/
public $ActionTime;
@@ -49,8 +49,8 @@ class ActionTimer extends AbstractModel
*/
public $Externals;
/**
- * @param string $TimerAction 定时器
- * @param string $ActionTime 执行时间
+ * @param string $TimerAction 定时器名称,目前仅支持销毁一个值:TerminateInstances。
+ * @param string $ActionTime 执行时间,格式形如:2018/5/29 11:26:40,执行时间必须大于当前时间5分钟。
* @param Externals $Externals 扩展数据
*/
function __construct()
diff --git a/src/TencentCloud/Cvm/V20170312/Models/DescribeZoneInstanceConfigInfosRequest.php b/src/TencentCloud/Cvm/V20170312/Models/DescribeZoneInstanceConfigInfosRequest.php
new file mode 100644
index 0000000000..25d739752e
--- /dev/null
+++ b/src/TencentCloud/Cvm/V20170312/Models/DescribeZoneInstanceConfigInfosRequest.php
@@ -0,0 +1,93 @@
+ zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。
+
+ instance-family String - 是否必填:否 -(过滤条件)按照机型系列过滤。按照实例机型系列过滤。实例机型系列形如:S1、I1、M1等。
+
+ instance-type - String - 是否必填:否 - (过滤条件)按照机型过滤。按照实例机型过滤。不同实例机型指定了不同的资源规格,具体取值可通过调用接口 DescribeInstanceTypeConfigs 来获得最新的规格表或参见实例类型描述。若不指定该参数,则默认机型为S1.SMALL1。
+
+ instance-charge-type - String - 是否必填:否 -(过滤条件)按照实例计费模式过滤。 (PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 | CDHPAID:表示CDH付费,即只对CDH计费,不对CDH上的实例计费。 )
+ * @method void setFilters(array $Filters) 设置过滤条件。
+
+ zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。
+
+ instance-family String - 是否必填:否 -(过滤条件)按照机型系列过滤。按照实例机型系列过滤。实例机型系列形如:S1、I1、M1等。
+
+ instance-type - String - 是否必填:否 - (过滤条件)按照机型过滤。按照实例机型过滤。不同实例机型指定了不同的资源规格,具体取值可通过调用接口 DescribeInstanceTypeConfigs 来获得最新的规格表或参见实例类型描述。若不指定该参数,则默认机型为S1.SMALL1。
+
+ instance-charge-type - String - 是否必填:否 -(过滤条件)按照实例计费模式过滤。 (PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 | CDHPAID:表示CDH付费,即只对CDH计费,不对CDH上的实例计费。 )
+ */
+
+/**
+ *DescribeZoneInstanceConfigInfos请求参数结构体
+ */
+class DescribeZoneInstanceConfigInfosRequest extends AbstractModel
+{
+ /**
+ * @var array 过滤条件。
+
+ zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。
+
+ instance-family String - 是否必填:否 -(过滤条件)按照机型系列过滤。按照实例机型系列过滤。实例机型系列形如:S1、I1、M1等。
+
+ instance-type - String - 是否必填:否 - (过滤条件)按照机型过滤。按照实例机型过滤。不同实例机型指定了不同的资源规格,具体取值可通过调用接口 DescribeInstanceTypeConfigs 来获得最新的规格表或参见实例类型描述。若不指定该参数,则默认机型为S1.SMALL1。
+
+ instance-charge-type - String - 是否必填:否 -(过滤条件)按照实例计费模式过滤。 (PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 | CDHPAID:表示CDH付费,即只对CDH计费,不对CDH上的实例计费。 )
+ */
+ public $Filters;
+ /**
+ * @param array $Filters 过滤条件。
+
+ zone - String - 是否必填:否 -(过滤条件)按照可用区过滤。
+
+ instance-family String - 是否必填:否 -(过滤条件)按照机型系列过滤。按照实例机型系列过滤。实例机型系列形如:S1、I1、M1等。
+
+ instance-type - String - 是否必填:否 - (过滤条件)按照机型过滤。按照实例机型过滤。不同实例机型指定了不同的资源规格,具体取值可通过调用接口 DescribeInstanceTypeConfigs 来获得最新的规格表或参见实例类型描述。若不指定该参数,则默认机型为S1.SMALL1。
+
+ instance-charge-type - String - 是否必填:否 -(过滤条件)按照实例计费模式过滤。 (PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 | CDHPAID:表示CDH付费,即只对CDH计费,不对CDH上的实例计费。 )
+ */
+ function __construct()
+ {
+
+ }
+ /**
+ * 内部实现,用户禁止调用
+ */
+ public function deserialize($param)
+ {
+ if ($param === null) {
+ return;
+ }
+ if (array_key_exists("Filters",$param) and $param["Filters"] !== null) {
+ $this->Filters = [];
+ foreach ($param["Filters"] as $key => $value){
+ $obj = new Filter();
+ $obj->deserialize($value);
+ array_push($this->Filters, $obj);
+ }
+ }
+ }
+}
diff --git a/src/TencentCloud/Cvm/V20170312/Models/DescribeZoneInstanceConfigInfosResponse.php b/src/TencentCloud/Cvm/V20170312/Models/DescribeZoneInstanceConfigInfosResponse.php
new file mode 100644
index 0000000000..0ebcc49284
--- /dev/null
+++ b/src/TencentCloud/Cvm/V20170312/Models/DescribeZoneInstanceConfigInfosResponse.php
@@ -0,0 +1,73 @@
+InstanceTypeQuotaSet = [];
+ foreach ($param["InstanceTypeQuotaSet"] as $key => $value){
+ $obj = new InstanceTypeQuotaItem();
+ $obj->deserialize($value);
+ array_push($this->InstanceTypeQuotaSet, $obj);
+ }
+ }
+
+ if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+ $this->RequestId = $param["RequestId"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Cvm/V20170312/Models/Externals.php b/src/TencentCloud/Cvm/V20170312/Models/Externals.php
index 65186ac3c1..579cead696 100644
--- a/src/TencentCloud/Cvm/V20170312/Models/Externals.php
+++ b/src/TencentCloud/Cvm/V20170312/Models/Externals.php
@@ -23,6 +23,10 @@
/**
* @method boolean getReleaseAddress() 获取释放地址
* @method void setReleaseAddress(boolean $ReleaseAddress) 设置释放地址
+ * @method array getUnsupportNetworks() 获取不支持的网络类型
+ * @method void setUnsupportNetworks(array $UnsupportNetworks) 设置不支持的网络类型
+ * @method StorageBlock getStorageBlockAttr() 获取HDD本地存储属性
+ * @method void setStorageBlockAttr(StorageBlock $StorageBlockAttr) 设置HDD本地存储属性
*/
/**
@@ -34,8 +38,20 @@ class Externals extends AbstractModel
* @var boolean 释放地址
*/
public $ReleaseAddress;
+
+ /**
+ * @var array 不支持的网络类型
+ */
+ public $UnsupportNetworks;
+
+ /**
+ * @var StorageBlock HDD本地存储属性
+ */
+ public $StorageBlockAttr;
/**
* @param boolean $ReleaseAddress 释放地址
+ * @param array $UnsupportNetworks 不支持的网络类型
+ * @param StorageBlock $StorageBlockAttr HDD本地存储属性
*/
function __construct()
{
@@ -52,5 +68,14 @@ public function deserialize($param)
if (array_key_exists("ReleaseAddress",$param) and $param["ReleaseAddress"] !== null) {
$this->ReleaseAddress = $param["ReleaseAddress"];
}
+
+ if (array_key_exists("UnsupportNetworks",$param) and $param["UnsupportNetworks"] !== null) {
+ $this->UnsupportNetworks = $param["UnsupportNetworks"];
+ }
+
+ if (array_key_exists("StorageBlockAttr",$param) and $param["StorageBlockAttr"] !== null) {
+ $this->StorageBlockAttr = new StorageBlock();
+ $this->StorageBlockAttr->deserialize($param["StorageBlockAttr"]);
+ }
}
}
diff --git a/src/TencentCloud/Cvm/V20170312/Models/InquiryPriceRenewAddressesRequest.php b/src/TencentCloud/Cvm/V20170312/Models/InquiryPriceRenewAddressesRequest.php
deleted file mode 100644
index 98462c6b37..0000000000
--- a/src/TencentCloud/Cvm/V20170312/Models/InquiryPriceRenewAddressesRequest.php
+++ /dev/null
@@ -1,93 +0,0 @@
-addressIds = $param["AddressIds"];
- }
-
- if (array_key_exists("AddressChargePrepaid",$param) and $param["AddressChargePrepaid"] !== null) {
- $this->addressChargePrepaid = new AddressChargePrepaid();
- $this->addressChargePrepaid->deserialize($param["AddressChargePrepaid"]);
- }
-
- if (array_key_exists("DealId",$param) and $param["DealId"] !== null) {
- $this->dealId = $param["DealId"];
- }
-
- if (array_key_exists("CurrentDeadline",$param) and $param["CurrentDeadline"] !== null) {
- $this->currentDeadline = $param["CurrentDeadline"];
- }
- }
-}
diff --git a/src/TencentCloud/Cvm/V20170312/Models/InquiryPriceRenewAddressesResponse.php b/src/TencentCloud/Cvm/V20170312/Models/InquiryPriceRenewAddressesResponse.php
deleted file mode 100644
index 99b5359337..0000000000
--- a/src/TencentCloud/Cvm/V20170312/Models/InquiryPriceRenewAddressesResponse.php
+++ /dev/null
@@ -1,56 +0,0 @@
-requestId = $param["RequestId"];
- }
- }
-}
diff --git a/src/TencentCloud/Cvm/V20170312/Models/InstanceTypeQuotaItem.php b/src/TencentCloud/Cvm/V20170312/Models/InstanceTypeQuotaItem.php
new file mode 100644
index 0000000000..3fac31d6f8
--- /dev/null
+++ b/src/TencentCloud/Cvm/V20170312/Models/InstanceTypeQuotaItem.php
@@ -0,0 +1,195 @@
+*`PREPAID`:表示预付费,即包年包月
* `POSTPAID_BY_HOUR`:表示后付费,即按量计费 * `CDHPAID`:[CDH](/document/product/416)付费,即只对[CDH(/document/product/416)]计费,不对[CDH](/document/product/416)上的实例计费。
+ * @method void setInstanceChargeType(string $InstanceChargeType) 设置实例计费模式。取值范围:
*`PREPAID`:表示预付费,即包年包月
* `POSTPAID_BY_HOUR`:表示后付费,即按量计费 * `CDHPAID`:[CDH](/document/product/416)付费,即只对[CDH(/document/product/416)]计费,不对[CDH](/document/product/416)上的实例计费。
+ * @method integer getNetworkCard() 获取网卡类型,例如:25代表25G网卡
+ * @method void setNetworkCard(integer $NetworkCard) 设置网卡类型,例如:25代表25G网卡
+ * @method Externals getExternals() 获取扩展属性。
+ * @method void setExternals(Externals $Externals) 设置扩展属性。
+ * @method integer getCpu() 获取实例的CPU核数,单位:核。
+ * @method void setCpu(integer $Cpu) 设置实例的CPU核数,单位:核。
+ * @method integer getMemory() 获取实例内存容量,单位:`GB`。
+ * @method void setMemory(integer $Memory) 设置实例内存容量,单位:`GB`。
+ * @method string getInstanceFamily() 获取实例机型系列。
+ * @method void setInstanceFamily(string $InstanceFamily) 设置实例机型系列。
+ * @method string getTypeName() 获取机型名称。
+ * @method void setTypeName(string $TypeName) 设置机型名称。
+ * @method array getLocalDiskTypeList() 获取本地磁盘规格列表。
+ * @method void setLocalDiskTypeList(array $LocalDiskTypeList) 设置本地磁盘规格列表。
+ * @method string getStatus() 获取实例是否售卖。
+ * @method void setStatus(string $Status) 设置实例是否售卖。
+ * @method ItemPrice getPrice() 获取实例的售卖价格。
+ * @method void setPrice(ItemPrice $Price) 设置实例的售卖价格。
+ */
+
+/**
+ *描述实例机型配额信息。
+ */
+class InstanceTypeQuotaItem extends AbstractModel
+{
+ /**
+ * @var string 可用区。
+ */
+ public $Zone;
+
+ /**
+ * @var string 实例机型。
+ */
+ public $InstanceType;
+
+ /**
+ * @var string 实例计费模式。取值范围:
*`PREPAID`:表示预付费,即包年包月
* `POSTPAID_BY_HOUR`:表示后付费,即按量计费 * `CDHPAID`:[CDH](/document/product/416)付费,即只对[CDH(/document/product/416)]计费,不对[CDH](/document/product/416)上的实例计费。
+ */
+ public $InstanceChargeType;
+
+ /**
+ * @var integer 网卡类型,例如:25代表25G网卡
+ */
+ public $NetworkCard;
+
+ /**
+ * @var Externals 扩展属性。
+ */
+ public $Externals;
+
+ /**
+ * @var integer 实例的CPU核数,单位:核。
+ */
+ public $Cpu;
+
+ /**
+ * @var integer 实例内存容量,单位:`GB`。
+ */
+ public $Memory;
+
+ /**
+ * @var string 实例机型系列。
+ */
+ public $InstanceFamily;
+
+ /**
+ * @var string 机型名称。
+ */
+ public $TypeName;
+
+ /**
+ * @var array 本地磁盘规格列表。
+ */
+ public $LocalDiskTypeList;
+
+ /**
+ * @var string 实例是否售卖。
+ */
+ public $Status;
+
+ /**
+ * @var ItemPrice 实例的售卖价格。
+ */
+ public $Price;
+ /**
+ * @param string $Zone 可用区。
+ * @param string $InstanceType 实例机型。
+ * @param string $InstanceChargeType 实例计费模式。取值范围:
*`PREPAID`:表示预付费,即包年包月
* `POSTPAID_BY_HOUR`:表示后付费,即按量计费 * `CDHPAID`:[CDH](/document/product/416)付费,即只对[CDH(/document/product/416)]计费,不对[CDH](/document/product/416)上的实例计费。
+ * @param integer $NetworkCard 网卡类型,例如:25代表25G网卡
+ * @param Externals $Externals 扩展属性。
+ * @param integer $Cpu 实例的CPU核数,单位:核。
+ * @param integer $Memory 实例内存容量,单位:`GB`。
+ * @param string $InstanceFamily 实例机型系列。
+ * @param string $TypeName 机型名称。
+ * @param array $LocalDiskTypeList 本地磁盘规格列表。
+ * @param string $Status 实例是否售卖。
+ * @param ItemPrice $Price 实例的售卖价格。
+ */
+ function __construct()
+ {
+
+ }
+ /**
+ * 内部实现,用户禁止调用
+ */
+ public function deserialize($param)
+ {
+ if ($param === null) {
+ return;
+ }
+ if (array_key_exists("Zone",$param) and $param["Zone"] !== null) {
+ $this->Zone = $param["Zone"];
+ }
+
+ if (array_key_exists("InstanceType",$param) and $param["InstanceType"] !== null) {
+ $this->InstanceType = $param["InstanceType"];
+ }
+
+ if (array_key_exists("InstanceChargeType",$param) and $param["InstanceChargeType"] !== null) {
+ $this->InstanceChargeType = $param["InstanceChargeType"];
+ }
+
+ if (array_key_exists("NetworkCard",$param) and $param["NetworkCard"] !== null) {
+ $this->NetworkCard = $param["NetworkCard"];
+ }
+
+ if (array_key_exists("Externals",$param) and $param["Externals"] !== null) {
+ $this->Externals = new Externals();
+ $this->Externals->deserialize($param["Externals"]);
+ }
+
+ if (array_key_exists("Cpu",$param) and $param["Cpu"] !== null) {
+ $this->Cpu = $param["Cpu"];
+ }
+
+ if (array_key_exists("Memory",$param) and $param["Memory"] !== null) {
+ $this->Memory = $param["Memory"];
+ }
+
+ if (array_key_exists("InstanceFamily",$param) and $param["InstanceFamily"] !== null) {
+ $this->InstanceFamily = $param["InstanceFamily"];
+ }
+
+ if (array_key_exists("TypeName",$param) and $param["TypeName"] !== null) {
+ $this->TypeName = $param["TypeName"];
+ }
+
+ if (array_key_exists("LocalDiskTypeList",$param) and $param["LocalDiskTypeList"] !== null) {
+ $this->LocalDiskTypeList = [];
+ foreach ($param["LocalDiskTypeList"] as $key => $value){
+ $obj = new LocalDiskType();
+ $obj->deserialize($value);
+ array_push($this->LocalDiskTypeList, $obj);
+ }
+ }
+
+ if (array_key_exists("Status",$param) and $param["Status"] !== null) {
+ $this->Status = $param["Status"];
+ }
+
+ if (array_key_exists("Price",$param) and $param["Price"] !== null) {
+ $this->Price = new ItemPrice();
+ $this->Price->deserialize($param["Price"]);
+ }
+ }
+}
diff --git a/src/TencentCloud/Cvm/V20170312/Models/LocalDiskType.php b/src/TencentCloud/Cvm/V20170312/Models/LocalDiskType.php
new file mode 100644
index 0000000000..70ac16cf20
--- /dev/null
+++ b/src/TencentCloud/Cvm/V20170312/Models/LocalDiskType.php
@@ -0,0 +1,92 @@
+Type = $param["Type"];
+ }
+
+ if (array_key_exists("PartitionType",$param) and $param["PartitionType"] !== null) {
+ $this->PartitionType = $param["PartitionType"];
+ }
+
+ if (array_key_exists("MinSize",$param) and $param["MinSize"] !== null) {
+ $this->MinSize = $param["MinSize"];
+ }
+
+ if (array_key_exists("MaxSize",$param) and $param["MaxSize"] !== null) {
+ $this->MaxSize = $param["MaxSize"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Cvm/V20170312/Models/StorageBlock.php b/src/TencentCloud/Cvm/V20170312/Models/StorageBlock.php
new file mode 100644
index 0000000000..cbeb150429
--- /dev/null
+++ b/src/TencentCloud/Cvm/V20170312/Models/StorageBlock.php
@@ -0,0 +1,80 @@
+Type = $param["Type"];
+ }
+
+ if (array_key_exists("MinSize",$param) and $param["MinSize"] !== null) {
+ $this->MinSize = $param["MinSize"];
+ }
+
+ if (array_key_exists("MaxSize",$param) and $param["MaxSize"] !== null) {
+ $this->MaxSize = $param["MaxSize"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Cws/V20180312/Models/_Monitor_miniSite.php b/src/TencentCloud/Cws/V20180312/Models/_Monitor_miniSite.php
deleted file mode 100644
index 61ef92b174..0000000000
--- a/src/TencentCloud/Cws/V20180312/Models/_Monitor_miniSite.php
+++ /dev/null
@@ -1,68 +0,0 @@
-siteId = $param["SiteId"];
- }
-
- if (array_key_exists("Url",$param) and $param["Url"] !== null) {
- $this->url = $param["Url"];
- }
- }
-}
diff --git a/src/TencentCloud/Es/V20180416/EsClient.php b/src/TencentCloud/Es/V20180416/EsClient.php
deleted file mode 100644
index 9afdf606b7..0000000000
--- a/src/TencentCloud/Es/V20180416/EsClient.php
+++ /dev/null
@@ -1,65 +0,0 @@
-endpoint, $this->version, $credential, $region, $profile);
- }
-
- public function returnResponse($action, $response)
- {
- $respClass = "TencentCloud"."\\".ucfirst("es")."\\"."V20180416\\Models"."\\".ucfirst($action)."Response";
- $obj = new $respClass();
- $obj->deserialize($response);
- return $obj;
- }
-}
diff --git a/src/TencentCloud/Es/V20180416/Models/CreateInstanceRequest.php b/src/TencentCloud/Es/V20180416/Models/CreateInstanceRequest.php
deleted file mode 100644
index 1ee14a5038..0000000000
--- a/src/TencentCloud/Es/V20180416/Models/CreateInstanceRequest.php
+++ /dev/null
@@ -1,268 +0,0 @@
-,.?/]的特殊符号
- * @method void setPassword(string $Password) 设置访问密码,密码需8到16位,至少包括两项([a-z,A-Z],[0-9]和[()`~!@#$%^&*-+=_|{}:;' <>,.?/]的特殊符号
- */
-
-/**
- *CreateInstance请求参数结构体
- */
-class CreateInstanceRequest extends AbstractModel
-{
- /**
- * @var string 实例名称
- */
- public $InstanceName;
-
- /**
- * @var string 可用区
- */
- public $Zone;
-
- /**
- * @var integer 节点数量
- */
- public $NodeNum;
-
- /**
- * @var string 实例版本,当前只支持5.6.4
- */
- public $EsVersion;
-
- /**
- * @var string 计费类型:
-* PREPAID:预付费,即包年包月
-* POSTPAID_BY_HOUR:按小时后付费,默认值
- */
- public $ChargeType;
-
- /**
- * @var integer 包年包月购买时长,单位:月
- */
- public $ChargePeriod;
-
- /**
- * @var string 自动续费标识,取值范围:
-* NOTIFY_AND_AUTO_RENEW:通知过期且自动续费,默认值
-* NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费
-* DISABLE_NOTIFY_AND_MANUAL_RENEW: 不通知过期不自动续费
- */
- public $RenewFlag;
-
- /**
- * @var string 节点规格
-* ES.S1.SMALL2: 1核2G
-* ES.S1.MEDIUM4: 2核4G
-* ES.S1.MEDIUM8: 2核8G
-* ES.S1.LARGE16: 4核16G
-* ES.S1.2XLARGE32: 8核32G
-* ES.S1.3XLARGE32: 12核32G
-* ES.S1.6XLARGE32: 24核32G
- */
- public $NodeType;
-
- /**
- * @var string 节点存储类型,取值范围:
-* LOCAL_BASIC: 本地硬盘
-* LOCAL_SSD: 本地SSD硬盘,默认值
-* CLOUD_BASIC: 普通云硬盘
-* CLOUD_PREMIUM: 高硬能云硬盘
-* CLOUD_SSD: SSD云硬盘
- */
- public $DiskType;
-
- /**
- * @var integer 节点存储容量,单位GB
- */
- public $DiskSize;
-
- /**
- * @var string 私有网络ID
- */
- public $VpcId;
-
- /**
- * @var string 子网ID
- */
- public $SubnetId;
-
- /**
- * @var string 访问密码,密码需8到16位,至少包括两项([a-z,A-Z],[0-9]和[()`~!@#$%^&*-+=_|{}:;' <>,.?/]的特殊符号
- */
- public $Password;
- /**
- * @param string $InstanceName 实例名称
- * @param string $Zone 可用区
- * @param integer $NodeNum 节点数量
- * @param string $EsVersion 实例版本,当前只支持5.6.4
- * @param string $ChargeType 计费类型:
-* PREPAID:预付费,即包年包月
-* POSTPAID_BY_HOUR:按小时后付费,默认值
- * @param integer $ChargePeriod 包年包月购买时长,单位:月
- * @param string $RenewFlag 自动续费标识,取值范围:
-* NOTIFY_AND_AUTO_RENEW:通知过期且自动续费,默认值
-* NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费
-* DISABLE_NOTIFY_AND_MANUAL_RENEW: 不通知过期不自动续费
- * @param string $NodeType 节点规格
-* ES.S1.SMALL2: 1核2G
-* ES.S1.MEDIUM4: 2核4G
-* ES.S1.MEDIUM8: 2核8G
-* ES.S1.LARGE16: 4核16G
-* ES.S1.2XLARGE32: 8核32G
-* ES.S1.3XLARGE32: 12核32G
-* ES.S1.6XLARGE32: 24核32G
- * @param string $DiskType 节点存储类型,取值范围:
-* LOCAL_BASIC: 本地硬盘
-* LOCAL_SSD: 本地SSD硬盘,默认值
-* CLOUD_BASIC: 普通云硬盘
-* CLOUD_PREMIUM: 高硬能云硬盘
-* CLOUD_SSD: SSD云硬盘
- * @param integer $DiskSize 节点存储容量,单位GB
- * @param string $VpcId 私有网络ID
- * @param string $SubnetId 子网ID
- * @param string $Password 访问密码,密码需8到16位,至少包括两项([a-z,A-Z],[0-9]和[()`~!@#$%^&*-+=_|{}:;' <>,.?/]的特殊符号
- */
- function __construct()
- {
-
- }
- /**
- * 内部实现,用户禁止调用
- */
- public function deserialize($param)
- {
- if ($param === null) {
- return;
- }
- if (array_key_exists("InstanceName",$param) and $param["InstanceName"] !== null) {
- $this->InstanceName = $param["InstanceName"];
- }
-
- if (array_key_exists("Zone",$param) and $param["Zone"] !== null) {
- $this->Zone = $param["Zone"];
- }
-
- if (array_key_exists("NodeNum",$param) and $param["NodeNum"] !== null) {
- $this->NodeNum = $param["NodeNum"];
- }
-
- if (array_key_exists("EsVersion",$param) and $param["EsVersion"] !== null) {
- $this->EsVersion = $param["EsVersion"];
- }
-
- if (array_key_exists("ChargeType",$param) and $param["ChargeType"] !== null) {
- $this->ChargeType = $param["ChargeType"];
- }
-
- if (array_key_exists("ChargePeriod",$param) and $param["ChargePeriod"] !== null) {
- $this->ChargePeriod = $param["ChargePeriod"];
- }
-
- if (array_key_exists("RenewFlag",$param) and $param["RenewFlag"] !== null) {
- $this->RenewFlag = $param["RenewFlag"];
- }
-
- if (array_key_exists("NodeType",$param) and $param["NodeType"] !== null) {
- $this->NodeType = $param["NodeType"];
- }
-
- if (array_key_exists("DiskType",$param) and $param["DiskType"] !== null) {
- $this->DiskType = $param["DiskType"];
- }
-
- if (array_key_exists("DiskSize",$param) and $param["DiskSize"] !== null) {
- $this->DiskSize = $param["DiskSize"];
- }
-
- if (array_key_exists("VpcId",$param) and $param["VpcId"] !== null) {
- $this->VpcId = $param["VpcId"];
- }
-
- if (array_key_exists("SubnetId",$param) and $param["SubnetId"] !== null) {
- $this->SubnetId = $param["SubnetId"];
- }
-
- if (array_key_exists("Password",$param) and $param["Password"] !== null) {
- $this->Password = $param["Password"];
- }
- }
-}
diff --git a/src/TencentCloud/Es/V20180416/Models/DeleteInstanceRequest.php b/src/TencentCloud/Es/V20180416/Models/DeleteInstanceRequest.php
deleted file mode 100644
index 4638c34ba4..0000000000
--- a/src/TencentCloud/Es/V20180416/Models/DeleteInstanceRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-InstanceId = $param["InstanceId"];
- }
- }
-}
diff --git a/src/TencentCloud/Es/V20180416/Models/DescribeInstancesRequest.php b/src/TencentCloud/Es/V20180416/Models/DescribeInstancesRequest.php
deleted file mode 100644
index 4d05f39e1f..0000000000
--- a/src/TencentCloud/Es/V20180416/Models/DescribeInstancesRequest.php
+++ /dev/null
@@ -1,128 +0,0 @@
-Zone = $param["Zone"];
- }
-
- if (array_key_exists("InstanceIds",$param) and $param["InstanceIds"] !== null) {
- $this->InstanceIds = $param["InstanceIds"];
- }
-
- if (array_key_exists("InstanceNames",$param) and $param["InstanceNames"] !== null) {
- $this->InstanceNames = $param["InstanceNames"];
- }
-
- if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
- $this->Offset = $param["Offset"];
- }
-
- if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
- $this->Limit = $param["Limit"];
- }
-
- if (array_key_exists("OrderByKey",$param) and $param["OrderByKey"] !== null) {
- $this->OrderByKey = $param["OrderByKey"];
- }
-
- if (array_key_exists("OrderByType",$param) and $param["OrderByType"] !== null) {
- $this->OrderByType = $param["OrderByType"];
- }
- }
-}
diff --git a/src/TencentCloud/Es/V20180416/Models/InstanceInfo.php b/src/TencentCloud/Es/V20180416/Models/InstanceInfo.php
deleted file mode 100644
index 23fb353819..0000000000
--- a/src/TencentCloud/Es/V20180416/Models/InstanceInfo.php
+++ /dev/null
@@ -1,368 +0,0 @@
-InstanceId = $param["InstanceId"];
- }
-
- if (array_key_exists("InstanceName",$param) and $param["InstanceName"] !== null) {
- $this->InstanceName = $param["InstanceName"];
- }
-
- if (array_key_exists("Region",$param) and $param["Region"] !== null) {
- $this->Region = $param["Region"];
- }
-
- if (array_key_exists("Zone",$param) and $param["Zone"] !== null) {
- $this->Zone = $param["Zone"];
- }
-
- if (array_key_exists("AppId",$param) and $param["AppId"] !== null) {
- $this->AppId = $param["AppId"];
- }
-
- if (array_key_exists("Uin",$param) and $param["Uin"] !== null) {
- $this->Uin = $param["Uin"];
- }
-
- if (array_key_exists("VpcUid",$param) and $param["VpcUid"] !== null) {
- $this->VpcUid = $param["VpcUid"];
- }
-
- if (array_key_exists("SubnetUid",$param) and $param["SubnetUid"] !== null) {
- $this->SubnetUid = $param["SubnetUid"];
- }
-
- if (array_key_exists("Status",$param) and $param["Status"] !== null) {
- $this->Status = $param["Status"];
- }
-
- if (array_key_exists("ChargeType",$param) and $param["ChargeType"] !== null) {
- $this->ChargeType = $param["ChargeType"];
- }
-
- if (array_key_exists("ChargePeriod",$param) and $param["ChargePeriod"] !== null) {
- $this->ChargePeriod = $param["ChargePeriod"];
- }
-
- if (array_key_exists("RenewFlag",$param) and $param["RenewFlag"] !== null) {
- $this->RenewFlag = $param["RenewFlag"];
- }
-
- if (array_key_exists("NodeType",$param) and $param["NodeType"] !== null) {
- $this->NodeType = $param["NodeType"];
- }
-
- if (array_key_exists("NodeNum",$param) and $param["NodeNum"] !== null) {
- $this->NodeNum = $param["NodeNum"];
- }
-
- if (array_key_exists("CpuNum",$param) and $param["CpuNum"] !== null) {
- $this->CpuNum = $param["CpuNum"];
- }
-
- if (array_key_exists("MemSize",$param) and $param["MemSize"] !== null) {
- $this->MemSize = $param["MemSize"];
- }
-
- if (array_key_exists("DiskType",$param) and $param["DiskType"] !== null) {
- $this->DiskType = $param["DiskType"];
- }
-
- if (array_key_exists("DiskSize",$param) and $param["DiskSize"] !== null) {
- $this->DiskSize = $param["DiskSize"];
- }
-
- if (array_key_exists("EsDomain",$param) and $param["EsDomain"] !== null) {
- $this->EsDomain = $param["EsDomain"];
- }
-
- if (array_key_exists("EsVip",$param) and $param["EsVip"] !== null) {
- $this->EsVip = $param["EsVip"];
- }
-
- if (array_key_exists("EsPort",$param) and $param["EsPort"] !== null) {
- $this->EsPort = $param["EsPort"];
- }
-
- if (array_key_exists("KibanaUrl",$param) and $param["KibanaUrl"] !== null) {
- $this->KibanaUrl = $param["KibanaUrl"];
- }
-
- if (array_key_exists("EsVersion",$param) and $param["EsVersion"] !== null) {
- $this->EsVersion = $param["EsVersion"];
- }
-
- if (array_key_exists("EsConfig",$param) and $param["EsConfig"] !== null) {
- $this->EsConfig = $param["EsConfig"];
- }
-
- if (array_key_exists("EsAcl",$param) and $param["EsAcl"] !== null) {
- $this->EsAcl = $param["EsAcl"];
- }
-
- if (array_key_exists("CreateTime",$param) and $param["CreateTime"] !== null) {
- $this->CreateTime = $param["CreateTime"];
- }
-
- if (array_key_exists("UpdateTime",$param) and $param["UpdateTime"] !== null) {
- $this->UpdateTime = $param["UpdateTime"];
- }
- }
-}
diff --git a/src/TencentCloud/Es/V20180416/Models/RestartInstanceRequest.php b/src/TencentCloud/Es/V20180416/Models/RestartInstanceRequest.php
deleted file mode 100644
index 04354e3240..0000000000
--- a/src/TencentCloud/Es/V20180416/Models/RestartInstanceRequest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-InstanceId = $param["InstanceId"];
- }
- }
-}
diff --git a/src/TencentCloud/Es/V20180416/Models/UpdateInstanceRequest.php b/src/TencentCloud/Es/V20180416/Models/UpdateInstanceRequest.php
deleted file mode 100644
index f19224e4b6..0000000000
--- a/src/TencentCloud/Es/V20180416/Models/UpdateInstanceRequest.php
+++ /dev/null
@@ -1,116 +0,0 @@
-InstanceId = $param["InstanceId"];
- }
-
- if (array_key_exists("InstanceName",$param) and $param["InstanceName"] !== null) {
- $this->InstanceName = $param["InstanceName"];
- }
-
- if (array_key_exists("NodeNum",$param) and $param["NodeNum"] !== null) {
- $this->NodeNum = $param["NodeNum"];
- }
-
- if (array_key_exists("EsConfig",$param) and $param["EsConfig"] !== null) {
- $this->EsConfig = $param["EsConfig"];
- }
-
- if (array_key_exists("Password",$param) and $param["Password"] !== null) {
- $this->Password = $param["Password"];
- }
-
- if (array_key_exists("EsAcl",$param) and $param["EsAcl"] !== null) {
- $this->EsAcl = $param["EsAcl"];
- }
- }
-}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/CreateCustomerGatewayRequest.php b/src/TencentCloud/Vpc/V20170312/Models/CreateCustomerGatewayRequest.php
new file mode 100644
index 0000000000..19063bdf61
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/CreateCustomerGatewayRequest.php
@@ -0,0 +1,68 @@
+CustomerGatewayName = $param["CustomerGatewayName"];
+ }
+
+ if (array_key_exists("IpAddress",$param) and $param["IpAddress"] !== null) {
+ $this->IpAddress = $param["IpAddress"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/CreateCustomerGatewayResponse.php b/src/TencentCloud/Vpc/V20170312/Models/CreateCustomerGatewayResponse.php
new file mode 100644
index 0000000000..c8a12bb299
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/CreateCustomerGatewayResponse.php
@@ -0,0 +1,69 @@
+CustomerGateway = new CustomerGateway();
+ $this->CustomerGateway->deserialize($param["CustomerGateway"]);
+ }
+
+ if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+ $this->RequestId = $param["RequestId"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/CreateVpnConnectionRequest.php b/src/TencentCloud/Vpc/V20170312/Models/CreateVpnConnectionRequest.php
new file mode 100644
index 0000000000..7389d65fc3
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/CreateVpnConnectionRequest.php
@@ -0,0 +1,147 @@
+VpcId = $param["VpcId"];
+ }
+
+ if (array_key_exists("VpnGatewayId",$param) and $param["VpnGatewayId"] !== null) {
+ $this->VpnGatewayId = $param["VpnGatewayId"];
+ }
+
+ if (array_key_exists("CustomerGatewayId",$param) and $param["CustomerGatewayId"] !== null) {
+ $this->CustomerGatewayId = $param["CustomerGatewayId"];
+ }
+
+ if (array_key_exists("VpnConnectionName",$param) and $param["VpnConnectionName"] !== null) {
+ $this->VpnConnectionName = $param["VpnConnectionName"];
+ }
+
+ if (array_key_exists("PreShareKey",$param) and $param["PreShareKey"] !== null) {
+ $this->PreShareKey = $param["PreShareKey"];
+ }
+
+ if (array_key_exists("SecurityPolicyDatabases",$param) and $param["SecurityPolicyDatabases"] !== null) {
+ $this->SecurityPolicyDatabases = [];
+ foreach ($param["SecurityPolicyDatabases"] as $key => $value){
+ $obj = new SecurityPolicyDatabase();
+ $obj->deserialize($value);
+ array_push($this->SecurityPolicyDatabases, $obj);
+ }
+ }
+
+ if (array_key_exists("IKEOptionsSpecification",$param) and $param["IKEOptionsSpecification"] !== null) {
+ $this->IKEOptionsSpecification = new IKEOptionsSpecification();
+ $this->IKEOptionsSpecification->deserialize($param["IKEOptionsSpecification"]);
+ }
+
+ if (array_key_exists("IPSECOptionsSpecification",$param) and $param["IPSECOptionsSpecification"] !== null) {
+ $this->IPSECOptionsSpecification = new IPSECOptionsSpecification();
+ $this->IPSECOptionsSpecification->deserialize($param["IPSECOptionsSpecification"]);
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/CreateVpnConnectionResponse.php b/src/TencentCloud/Vpc/V20170312/Models/CreateVpnConnectionResponse.php
new file mode 100644
index 0000000000..6ab13ffe0c
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/CreateVpnConnectionResponse.php
@@ -0,0 +1,69 @@
+VpnConnection = new VpnConnection();
+ $this->VpnConnection->deserialize($param["VpnConnection"]);
+ }
+
+ if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+ $this->RequestId = $param["RequestId"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/CreateVpnGatewayRequest.php b/src/TencentCloud/Vpc/V20170312/Models/CreateVpnGatewayRequest.php
new file mode 100644
index 0000000000..59f9ae368b
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/CreateVpnGatewayRequest.php
@@ -0,0 +1,105 @@
+VpcId = $param["VpcId"];
+ }
+
+ if (array_key_exists("VpnGatewayName",$param) and $param["VpnGatewayName"] !== null) {
+ $this->VpnGatewayName = $param["VpnGatewayName"];
+ }
+
+ if (array_key_exists("InstanceChargeType",$param) and $param["InstanceChargeType"] !== null) {
+ $this->InstanceChargeType = $param["InstanceChargeType"];
+ }
+
+ if (array_key_exists("InternetMaxBandwidthOut",$param) and $param["InternetMaxBandwidthOut"] !== null) {
+ $this->InternetMaxBandwidthOut = $param["InternetMaxBandwidthOut"];
+ }
+
+ if (array_key_exists("InstanceChargePrepaid",$param) and $param["InstanceChargePrepaid"] !== null) {
+ $this->InstanceChargePrepaid = new InstanceChargePrepaid();
+ $this->InstanceChargePrepaid->deserialize($param["InstanceChargePrepaid"]);
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/CreateVpnGatewayResponse.php b/src/TencentCloud/Vpc/V20170312/Models/CreateVpnGatewayResponse.php
new file mode 100644
index 0000000000..7ede42ea4a
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/CreateVpnGatewayResponse.php
@@ -0,0 +1,69 @@
+VpnGateway = new VpnGateway();
+ $this->VpnGateway->deserialize($param["VpnGateway"]);
+ }
+
+ if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+ $this->RequestId = $param["RequestId"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/CustomerGateway.php b/src/TencentCloud/Vpc/V20170312/Models/CustomerGateway.php
new file mode 100644
index 0000000000..89218946bf
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/CustomerGateway.php
@@ -0,0 +1,92 @@
+CustomerGatewayId = $param["CustomerGatewayId"];
+ }
+
+ if (array_key_exists("CustomerGatewayName",$param) and $param["CustomerGatewayName"] !== null) {
+ $this->CustomerGatewayName = $param["CustomerGatewayName"];
+ }
+
+ if (array_key_exists("IpAddress",$param) and $param["IpAddress"] !== null) {
+ $this->IpAddress = $param["IpAddress"];
+ }
+
+ if (array_key_exists("CreatedTime",$param) and $param["CreatedTime"] !== null) {
+ $this->CreatedTime = $param["CreatedTime"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/CustomerGatewayVendor.php b/src/TencentCloud/Vpc/V20170312/Models/CustomerGatewayVendor.php
new file mode 100644
index 0000000000..418b538c51
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/CustomerGatewayVendor.php
@@ -0,0 +1,80 @@
+Platform = $param["Platform"];
+ }
+
+ if (array_key_exists("SoftwareVersion",$param) and $param["SoftwareVersion"] !== null) {
+ $this->SoftwareVersion = $param["SoftwareVersion"];
+ }
+
+ if (array_key_exists("VendorName",$param) and $param["VendorName"] !== null) {
+ $this->VendorName = $param["VendorName"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/DeleteAutoSnapshotPoliciesResponse.php b/src/TencentCloud/Vpc/V20170312/Models/DeleteCustomerGatewayRequest.php
similarity index 54%
rename from src/TencentCloud/Cbs/V20170312/Models/DeleteAutoSnapshotPoliciesResponse.php
rename to src/TencentCloud/Vpc/V20170312/Models/DeleteCustomerGatewayRequest.php
index 592c03193d..02d8011a7c 100644
--- a/src/TencentCloud/Cbs/V20170312/Models/DeleteAutoSnapshotPoliciesResponse.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/DeleteCustomerGatewayRequest.php
@@ -17,25 +17,25 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Cbs\V20170312\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
- * @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method string getCustomerGatewayId() 获取对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。
+ * @method void setCustomerGatewayId(string $CustomerGatewayId) 设置对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。
*/
/**
- *DeleteAutoSnapshotPolicies返回参数结构体
+ *DeleteCustomerGateway请求参数结构体
*/
-class DeleteAutoSnapshotPoliciesResponse extends AbstractModel
+class DeleteCustomerGatewayRequest extends AbstractModel
{
/**
- * @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @var string 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。
*/
- public $requestId;
+ public $CustomerGatewayId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $CustomerGatewayId 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。
*/
function __construct()
{
@@ -49,8 +49,8 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ if (array_key_exists("CustomerGatewayId",$param) and $param["CustomerGatewayId"] !== null) {
+ $this->CustomerGatewayId = $param["CustomerGatewayId"];
}
}
}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/DeleteCustomerGatewayResponse.php b/src/TencentCloud/Vpc/V20170312/Models/DeleteCustomerGatewayResponse.php
new file mode 100644
index 0000000000..f078706a2e
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/DeleteCustomerGatewayResponse.php
@@ -0,0 +1,56 @@
+RequestId = $param["RequestId"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeDBSecurityGroupsDetailRequest.php b/src/TencentCloud/Vpc/V20170312/Models/DeleteVpnConnectionRequest.php
similarity index 51%
rename from src/TencentCloud/Cdb/V20170320/Models/DescribeDBSecurityGroupsDetailRequest.php
rename to src/TencentCloud/Vpc/V20170312/Models/DeleteVpnConnectionRequest.php
index e9f60162dd..bf60f5b5a3 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeDBSecurityGroupsDetailRequest.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/DeleteVpnConnectionRequest.php
@@ -17,33 +17,33 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Cdb\V20170320\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
- * @method integer getProjectId() 获取项目ID
- * @method void setProjectId(integer $projectId) 设置项目ID
- * @method string getInstanceId() 获取实例短Id
- * @method void setInstanceId(string $instanceId) 设置实例短Id
+ * @method string getVpnGatewayId() 获取VPN网关实例ID。
+ * @method void setVpnGatewayId(string $VpnGatewayId) 设置VPN网关实例ID。
+ * @method string getVpnConnectionId() 获取VPN通道实例ID。形如:vpnx-f49l6u0z。
+ * @method void setVpnConnectionId(string $VpnConnectionId) 设置VPN通道实例ID。形如:vpnx-f49l6u0z。
*/
/**
- *DescribeDBSecurityGroupsDetail请求参数结构体
+ *DeleteVpnConnection请求参数结构体
*/
-class DescribeDBSecurityGroupsDetailRequest extends AbstractModel
+class DeleteVpnConnectionRequest extends AbstractModel
{
/**
- * @var integer 项目ID
+ * @var string VPN网关实例ID。
*/
- public $projectId;
+ public $VpnGatewayId;
/**
- * @var string 实例短Id
+ * @var string VPN通道实例ID。形如:vpnx-f49l6u0z。
*/
- public $instanceId;
+ public $VpnConnectionId;
/**
- * @param integer $projectId 项目ID
- * @param string $instanceId 实例短Id
+ * @param string $VpnGatewayId VPN网关实例ID。
+ * @param string $VpnConnectionId VPN通道实例ID。形如:vpnx-f49l6u0z。
*/
function __construct()
{
@@ -57,12 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) {
- $this->projectId = $param["ProjectId"];
+ if (array_key_exists("VpnGatewayId",$param) and $param["VpnGatewayId"] !== null) {
+ $this->VpnGatewayId = $param["VpnGatewayId"];
}
- if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->instanceId = $param["InstanceId"];
+ if (array_key_exists("VpnConnectionId",$param) and $param["VpnConnectionId"] !== null) {
+ $this->VpnConnectionId = $param["VpnConnectionId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/AddTimeWindowResponse.php b/src/TencentCloud/Vpc/V20170312/Models/DeleteVpnConnectionResponse.php
similarity index 82%
rename from src/TencentCloud/Cdb/V20170320/Models/AddTimeWindowResponse.php
rename to src/TencentCloud/Vpc/V20170312/Models/DeleteVpnConnectionResponse.php
index 58a7459039..6b94f911c3 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/AddTimeWindowResponse.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/DeleteVpnConnectionResponse.php
@@ -17,25 +17,25 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Cdb\V20170320\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
- *AddTimeWindow返回参数结构体
+ *DeleteVpnConnection返回参数结构体
*/
-class AddTimeWindowResponse extends AbstractModel
+class DeleteVpnConnectionResponse extends AbstractModel
{
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -50,7 +50,7 @@ public function deserialize($param)
return;
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DeleteParamTemplateRequest.php b/src/TencentCloud/Vpc/V20170312/Models/DeleteVpnGatewayRequest.php
similarity index 67%
rename from src/TencentCloud/Cdb/V20170320/Models/DeleteParamTemplateRequest.php
rename to src/TencentCloud/Vpc/V20170312/Models/DeleteVpnGatewayRequest.php
index 15c23697cd..bcce75a797 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DeleteParamTemplateRequest.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/DeleteVpnGatewayRequest.php
@@ -17,25 +17,25 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Cdb\V20170320\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
- * @method integer getTemplateId() 获取参数模板ID
- * @method void setTemplateId(integer $templateId) 设置参数模板ID
+ * @method string getVpnGatewayId() 获取VPN网关实例ID。
+ * @method void setVpnGatewayId(string $VpnGatewayId) 设置VPN网关实例ID。
*/
/**
- *DeleteParamTemplate请求参数结构体
+ *DeleteVpnGateway请求参数结构体
*/
-class DeleteParamTemplateRequest extends AbstractModel
+class DeleteVpnGatewayRequest extends AbstractModel
{
/**
- * @var integer 参数模板ID
+ * @var string VPN网关实例ID。
*/
- public $templateId;
+ public $VpnGatewayId;
/**
- * @param integer $templateId 参数模板ID
+ * @param string $VpnGatewayId VPN网关实例ID。
*/
function __construct()
{
@@ -49,8 +49,8 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("TemplateId",$param) and $param["TemplateId"] !== null) {
- $this->templateId = $param["TemplateId"];
+ if (array_key_exists("VpnGatewayId",$param) and $param["VpnGatewayId"] !== null) {
+ $this->VpnGatewayId = $param["VpnGatewayId"];
}
}
}
diff --git a/src/TencentCloud/Es/V20180416/Models/RestartInstanceResponse.php b/src/TencentCloud/Vpc/V20170312/Models/DeleteVpnGatewayResponse.php
similarity index 92%
rename from src/TencentCloud/Es/V20180416/Models/RestartInstanceResponse.php
rename to src/TencentCloud/Vpc/V20170312/Models/DeleteVpnGatewayResponse.php
index 35130f2b4f..18d20dcd66 100644
--- a/src/TencentCloud/Es/V20180416/Models/RestartInstanceResponse.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/DeleteVpnGatewayResponse.php
@@ -17,7 +17,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Es\V20180416\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
@@ -26,9 +26,9 @@
*/
/**
- *RestartInstance返回参数结构体
+ *DeleteVpnGateway返回参数结构体
*/
-class RestartInstanceResponse extends AbstractModel
+class DeleteVpnGatewayResponse extends AbstractModel
{
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
diff --git a/src/TencentCloud/Vpc/V20170312/Models/DescribeAddressTemplateGroupsResponse.php b/src/TencentCloud/Vpc/V20170312/Models/DescribeAddressTemplateGroupsResponse.php
index 177d009e31..69b1d9d07d 100644
--- a/src/TencentCloud/Vpc/V20170312/Models/DescribeAddressTemplateGroupsResponse.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/DescribeAddressTemplateGroupsResponse.php
@@ -21,6 +21,10 @@
use TencentCloud\Common\AbstractModel;
/**
+ * @method integer getTotalCount() 获取符合条件的实例数量。
+ * @method void setTotalCount(integer $TotalCount) 设置符合条件的实例数量。
+ * @method array getAddressTemplateGroupSet() 获取IP地址模板。
+ * @method void setAddressTemplateGroupSet(array $AddressTemplateGroupSet) 设置IP地址模板。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
@@ -30,11 +34,23 @@
*/
class DescribeAddressTemplateGroupsResponse extends AbstractModel
{
+ /**
+ * @var integer 符合条件的实例数量。
+ */
+ public $TotalCount;
+
+ /**
+ * @var array IP地址模板。
+ */
+ public $AddressTemplateGroupSet;
+
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
public $RequestId;
/**
+ * @param integer $TotalCount 符合条件的实例数量。
+ * @param array $AddressTemplateGroupSet IP地址模板。
* @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
@@ -49,6 +65,19 @@ public function deserialize($param)
if ($param === null) {
return;
}
+ if (array_key_exists("TotalCount",$param) and $param["TotalCount"] !== null) {
+ $this->TotalCount = $param["TotalCount"];
+ }
+
+ if (array_key_exists("AddressTemplateGroupSet",$param) and $param["AddressTemplateGroupSet"] !== null) {
+ $this->AddressTemplateGroupSet = [];
+ foreach ($param["AddressTemplateGroupSet"] as $key => $value){
+ $obj = new AddressTemplateGroup();
+ $obj->deserialize($value);
+ array_push($this->AddressTemplateGroupSet, $obj);
+ }
+ }
+
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeParamTemplatesRequest.php b/src/TencentCloud/Vpc/V20170312/Models/DescribeCustomerGatewayVendorsRequest.php
similarity index 87%
rename from src/TencentCloud/Cdb/V20170320/Models/DescribeParamTemplatesRequest.php
rename to src/TencentCloud/Vpc/V20170312/Models/DescribeCustomerGatewayVendorsRequest.php
index b731110766..7276a2fcbe 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeParamTemplatesRequest.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/DescribeCustomerGatewayVendorsRequest.php
@@ -17,7 +17,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Cdb\V20170320\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
@@ -25,9 +25,9 @@
*/
/**
- *DescribeParamTemplates请求参数结构体
+ *DescribeCustomerGatewayVendors请求参数结构体
*/
-class DescribeParamTemplatesRequest extends AbstractModel
+class DescribeCustomerGatewayVendorsRequest extends AbstractModel
{
/**
diff --git a/src/TencentCloud/Vpc/V20170312/Models/DescribeCustomerGatewayVendorsResponse.php b/src/TencentCloud/Vpc/V20170312/Models/DescribeCustomerGatewayVendorsResponse.php
new file mode 100644
index 0000000000..62e9848654
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/DescribeCustomerGatewayVendorsResponse.php
@@ -0,0 +1,73 @@
+CustomerGatewayVendorSet = [];
+ foreach ($param["CustomerGatewayVendorSet"] as $key => $value){
+ $obj = new CustomerGatewayVendor();
+ $obj->deserialize($value);
+ array_push($this->CustomerGatewayVendorSet, $obj);
+ }
+ }
+
+ if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+ $this->RequestId = $param["RequestId"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/DescribeCustomerGatewaysRequest.php b/src/TencentCloud/Vpc/V20170312/Models/DescribeCustomerGatewaysRequest.php
new file mode 100644
index 0000000000..289e9add9b
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/DescribeCustomerGatewaysRequest.php
@@ -0,0 +1,97 @@
+CustomerGatewayIds = $param["CustomerGatewayIds"];
+ }
+
+ if (array_key_exists("Filters",$param) and $param["Filters"] !== null) {
+ $this->Filters = [];
+ foreach ($param["Filters"] as $key => $value){
+ $obj = new Filter();
+ $obj->deserialize($value);
+ array_push($this->Filters, $obj);
+ }
+ }
+
+ if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
+ $this->Offset = $param["Offset"];
+ }
+
+ if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
+ $this->Limit = $param["Limit"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/DescribeCustomerGatewaysResponse.php b/src/TencentCloud/Vpc/V20170312/Models/DescribeCustomerGatewaysResponse.php
new file mode 100644
index 0000000000..8f98fe0300
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/DescribeCustomerGatewaysResponse.php
@@ -0,0 +1,85 @@
+CustomerGatewaySet = [];
+ foreach ($param["CustomerGatewaySet"] as $key => $value){
+ $obj = new CustomerGateway();
+ $obj->deserialize($value);
+ array_push($this->CustomerGatewaySet, $obj);
+ }
+ }
+
+ if (array_key_exists("TotalCount",$param) and $param["TotalCount"] !== null) {
+ $this->TotalCount = $param["TotalCount"];
+ }
+
+ if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+ $this->RequestId = $param["RequestId"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/DescribeRouteTablesRequest.php b/src/TencentCloud/Vpc/V20170312/Models/DescribeRouteTablesRequest.php
index f8655976a9..ec1ca2d09b 100644
--- a/src/TencentCloud/Vpc/V20170312/Models/DescribeRouteTablesRequest.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/DescribeRouteTablesRequest.php
@@ -27,12 +27,12 @@
route-table-id - String - (过滤条件)路由表实例ID。
route-table-name - String - (过滤条件)路由表名称。
vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
-association.main - Boolean - (过滤条件)是否主路由表。
+association.main - String - (过滤条件)是否主路由表。
* @method void setFilters(array $Filters) 设置过滤条件,参数不支持同时指定RouteTableIds和Filters。
route-table-id - String - (过滤条件)路由表实例ID。
route-table-name - String - (过滤条件)路由表名称。
vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
-association.main - Boolean - (过滤条件)是否主路由表。
+association.main - String - (过滤条件)是否主路由表。
* @method string getOffset() 获取偏移量。
* @method void setOffset(string $Offset) 设置偏移量。
* @method string getLimit() 获取请求对象个数。
@@ -54,7 +54,7 @@ class DescribeRouteTablesRequest extends AbstractModel
route-table-id - String - (过滤条件)路由表实例ID。
route-table-name - String - (过滤条件)路由表名称。
vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
-association.main - Boolean - (过滤条件)是否主路由表。
+association.main - String - (过滤条件)是否主路由表。
*/
public $Filters;
@@ -73,7 +73,7 @@ class DescribeRouteTablesRequest extends AbstractModel
route-table-id - String - (过滤条件)路由表实例ID。
route-table-name - String - (过滤条件)路由表名称。
vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
-association.main - Boolean - (过滤条件)是否主路由表。
+association.main - String - (过滤条件)是否主路由表。
* @param string $Offset 偏移量。
* @param string $Limit 请求对象个数。
*/
diff --git a/src/TencentCloud/Vpc/V20170312/Models/DescribeVpnConnectionsRequest.php b/src/TencentCloud/Vpc/V20170312/Models/DescribeVpnConnectionsRequest.php
new file mode 100644
index 0000000000..e49041701c
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/DescribeVpnConnectionsRequest.php
@@ -0,0 +1,97 @@
+VpnConnectionIds = $param["VpnConnectionIds"];
+ }
+
+ if (array_key_exists("Filters",$param) and $param["Filters"] !== null) {
+ $this->Filters = [];
+ foreach ($param["Filters"] as $key => $value){
+ $obj = new Filter();
+ $obj->deserialize($value);
+ array_push($this->Filters, $obj);
+ }
+ }
+
+ if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
+ $this->Offset = $param["Offset"];
+ }
+
+ if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
+ $this->Limit = $param["Limit"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Es/V20180416/Models/DescribeInstancesResponse.php b/src/TencentCloud/Vpc/V20170312/Models/DescribeVpnConnectionsResponse.php
similarity index 67%
rename from src/TencentCloud/Es/V20180416/Models/DescribeInstancesResponse.php
rename to src/TencentCloud/Vpc/V20170312/Models/DescribeVpnConnectionsResponse.php
index 1f815af550..bd120d8826 100644
--- a/src/TencentCloud/Es/V20180416/Models/DescribeInstancesResponse.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/DescribeVpnConnectionsResponse.php
@@ -17,40 +17,40 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Es\V20180416\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
- * @method integer getTotalCount() 获取返回的实例个数
- * @method void setTotalCount(integer $TotalCount) 设置返回的实例个数
- * @method array getInstanceList() 获取实例详细信息列表
- * @method void setInstanceList(array $InstanceList) 设置实例详细信息列表
+ * @method integer getTotalCount() 获取符合条件的实例数量。
+ * @method void setTotalCount(integer $TotalCount) 设置符合条件的实例数量。
+ * @method array getVpnConnectionSet() 获取VPN通道实例。
+ * @method void setVpnConnectionSet(array $VpnConnectionSet) 设置VPN通道实例。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
- *DescribeInstances返回参数结构体
+ *DescribeVpnConnections返回参数结构体
*/
-class DescribeInstancesResponse extends AbstractModel
+class DescribeVpnConnectionsResponse extends AbstractModel
{
/**
- * @var integer 返回的实例个数
+ * @var integer 符合条件的实例数量。
*/
public $TotalCount;
/**
- * @var array 实例详细信息列表
+ * @var array VPN通道实例。
*/
- public $InstanceList;
+ public $VpnConnectionSet;
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
public $RequestId;
/**
- * @param integer $TotalCount 返回的实例个数
- * @param array $InstanceList 实例详细信息列表
+ * @param integer $TotalCount 符合条件的实例数量。
+ * @param array $VpnConnectionSet VPN通道实例。
* @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
@@ -69,12 +69,12 @@ public function deserialize($param)
$this->TotalCount = $param["TotalCount"];
}
- if (array_key_exists("InstanceList",$param) and $param["InstanceList"] !== null) {
- $this->InstanceList = [];
- foreach ($param["InstanceList"] as $key => $value){
- $obj = new InstanceInfo();
+ if (array_key_exists("VpnConnectionSet",$param) and $param["VpnConnectionSet"] !== null) {
+ $this->VpnConnectionSet = [];
+ foreach ($param["VpnConnectionSet"] as $key => $value){
+ $obj = new VpnConnection();
$obj->deserialize($value);
- array_push($this->InstanceList, $obj);
+ array_push($this->VpnConnectionSet, $obj);
}
}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/DescribeVpnGatewaysRequest.php b/src/TencentCloud/Vpc/V20170312/Models/DescribeVpnGatewaysRequest.php
new file mode 100644
index 0000000000..d975fced60
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/DescribeVpnGatewaysRequest.php
@@ -0,0 +1,97 @@
+VpnGatewayIds = $param["VpnGatewayIds"];
+ }
+
+ if (array_key_exists("Filters",$param) and $param["Filters"] !== null) {
+ $this->Filters = [];
+ foreach ($param["Filters"] as $key => $value){
+ $obj = new FilterObject();
+ $obj->deserialize($value);
+ array_push($this->Filters, $obj);
+ }
+ }
+
+ if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
+ $this->Offset = $param["Offset"];
+ }
+
+ if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
+ $this->Limit = $param["Limit"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/DescribeVpnGatewaysResponse.php b/src/TencentCloud/Vpc/V20170312/Models/DescribeVpnGatewaysResponse.php
new file mode 100644
index 0000000000..6d64c01e5c
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/DescribeVpnGatewaysResponse.php
@@ -0,0 +1,85 @@
+TotalCount = $param["TotalCount"];
+ }
+
+ if (array_key_exists("VpnGatewaySet",$param) and $param["VpnGatewaySet"] !== null) {
+ $this->VpnGatewaySet = [];
+ foreach ($param["VpnGatewaySet"] as $key => $value){
+ $obj = new VpnGateway();
+ $obj->deserialize($value);
+ array_push($this->VpnGatewaySet, $obj);
+ }
+ }
+
+ if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+ $this->RequestId = $param["RequestId"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/DownloadCustomerGatewayConfigurationRequest.php b/src/TencentCloud/Vpc/V20170312/Models/DownloadCustomerGatewayConfigurationRequest.php
new file mode 100644
index 0000000000..9f939ce3a9
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/DownloadCustomerGatewayConfigurationRequest.php
@@ -0,0 +1,93 @@
+VpnGatewayId = $param["VpnGatewayId"];
+ }
+
+ if (array_key_exists("VpnConnectionId",$param) and $param["VpnConnectionId"] !== null) {
+ $this->VpnConnectionId = $param["VpnConnectionId"];
+ }
+
+ if (array_key_exists("CustomerGatewayVendor",$param) and $param["CustomerGatewayVendor"] !== null) {
+ $this->CustomerGatewayVendor = new CustomerGatewayVendor();
+ $this->CustomerGatewayVendor->deserialize($param["CustomerGatewayVendor"]);
+ }
+
+ if (array_key_exists("InterfaceName",$param) and $param["InterfaceName"] !== null) {
+ $this->InterfaceName = $param["InterfaceName"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/DownloadCustomerGatewayConfigurationResponse.php b/src/TencentCloud/Vpc/V20170312/Models/DownloadCustomerGatewayConfigurationResponse.php
new file mode 100644
index 0000000000..1807bb0550
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/DownloadCustomerGatewayConfigurationResponse.php
@@ -0,0 +1,68 @@
+CustomerGatewayConfiguration = $param["CustomerGatewayConfiguration"];
+ }
+
+ if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+ $this->RequestId = $param["RequestId"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/IKEOptionsSpecification.php b/src/TencentCloud/Vpc/V20170312/Models/IKEOptionsSpecification.php
new file mode 100644
index 0000000000..f699405875
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/IKEOptionsSpecification.php
@@ -0,0 +1,188 @@
+PropoEncryAlgorithm = $param["PropoEncryAlgorithm"];
+ }
+
+ if (array_key_exists("PropoAuthenAlgorithm",$param) and $param["PropoAuthenAlgorithm"] !== null) {
+ $this->PropoAuthenAlgorithm = $param["PropoAuthenAlgorithm"];
+ }
+
+ if (array_key_exists("ExchangeMode",$param) and $param["ExchangeMode"] !== null) {
+ $this->ExchangeMode = $param["ExchangeMode"];
+ }
+
+ if (array_key_exists("LocalIdentity",$param) and $param["LocalIdentity"] !== null) {
+ $this->LocalIdentity = $param["LocalIdentity"];
+ }
+
+ if (array_key_exists("RemoteIdentity",$param) and $param["RemoteIdentity"] !== null) {
+ $this->RemoteIdentity = $param["RemoteIdentity"];
+ }
+
+ if (array_key_exists("LocalAddress",$param) and $param["LocalAddress"] !== null) {
+ $this->LocalAddress = $param["LocalAddress"];
+ }
+
+ if (array_key_exists("RemoteAddress",$param) and $param["RemoteAddress"] !== null) {
+ $this->RemoteAddress = $param["RemoteAddress"];
+ }
+
+ if (array_key_exists("LocalFqdnName",$param) and $param["LocalFqdnName"] !== null) {
+ $this->LocalFqdnName = $param["LocalFqdnName"];
+ }
+
+ if (array_key_exists("RemoteFqdnName",$param) and $param["RemoteFqdnName"] !== null) {
+ $this->RemoteFqdnName = $param["RemoteFqdnName"];
+ }
+
+ if (array_key_exists("DhGroupName",$param) and $param["DhGroupName"] !== null) {
+ $this->DhGroupName = $param["DhGroupName"];
+ }
+
+ if (array_key_exists("IKESaLifetimeSeconds",$param) and $param["IKESaLifetimeSeconds"] !== null) {
+ $this->IKESaLifetimeSeconds = $param["IKESaLifetimeSeconds"];
+ }
+
+ if (array_key_exists("IKEVersion",$param) and $param["IKEVersion"] !== null) {
+ $this->IKEVersion = $param["IKEVersion"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/IPSECOptionsSpecification.php b/src/TencentCloud/Vpc/V20170312/Models/IPSECOptionsSpecification.php
new file mode 100644
index 0000000000..17bdd31d41
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/IPSECOptionsSpecification.php
@@ -0,0 +1,104 @@
+EncryptAlgorithm = $param["EncryptAlgorithm"];
+ }
+
+ if (array_key_exists("IntegrityAlgorith",$param) and $param["IntegrityAlgorith"] !== null) {
+ $this->IntegrityAlgorith = $param["IntegrityAlgorith"];
+ }
+
+ if (array_key_exists("IPSECSaLifetimeSeconds",$param) and $param["IPSECSaLifetimeSeconds"] !== null) {
+ $this->IPSECSaLifetimeSeconds = $param["IPSECSaLifetimeSeconds"];
+ }
+
+ if (array_key_exists("PfsDhGroup",$param) and $param["PfsDhGroup"] !== null) {
+ $this->PfsDhGroup = $param["PfsDhGroup"];
+ }
+
+ if (array_key_exists("IPSECSaLifetimeTraffic",$param) and $param["IPSECSaLifetimeTraffic"] !== null) {
+ $this->IPSECSaLifetimeTraffic = $param["IPSECSaLifetimeTraffic"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceCreateVpnGatewayRequest.php b/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceCreateVpnGatewayRequest.php
new file mode 100644
index 0000000000..7df502e79b
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceCreateVpnGatewayRequest.php
@@ -0,0 +1,81 @@
+InstanceChargeType = $param["InstanceChargeType"];
+ }
+
+ if (array_key_exists("InstanceChargePrepaid",$param) and $param["InstanceChargePrepaid"] !== null) {
+ $this->InstanceChargePrepaid = new InstanceChargePrepaid();
+ $this->InstanceChargePrepaid->deserialize($param["InstanceChargePrepaid"]);
+ }
+
+ if (array_key_exists("InternetMaxBandwidthOut",$param) and $param["InternetMaxBandwidthOut"] !== null) {
+ $this->InternetMaxBandwidthOut = $param["InternetMaxBandwidthOut"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceCreateVpnGatewayResponse.php b/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceCreateVpnGatewayResponse.php
new file mode 100644
index 0000000000..fec3d58fbe
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceCreateVpnGatewayResponse.php
@@ -0,0 +1,69 @@
+Price = new Price();
+ $this->Price->deserialize($param["Price"]);
+ }
+
+ if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+ $this->RequestId = $param["RequestId"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceRenewVpnGatewayRequest.php b/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceRenewVpnGatewayRequest.php
new file mode 100644
index 0000000000..f01271c856
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceRenewVpnGatewayRequest.php
@@ -0,0 +1,69 @@
+VpnGatewayId = $param["VpnGatewayId"];
+ }
+
+ if (array_key_exists("InstanceChargePrepaid",$param) and $param["InstanceChargePrepaid"] !== null) {
+ $this->InstanceChargePrepaid = new InstanceChargePrepaid();
+ $this->InstanceChargePrepaid->deserialize($param["InstanceChargePrepaid"]);
+ }
+ }
+}
diff --git a/src/TencentCloud/Es/V20180416/Models/CreateInstanceResponse.php b/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceRenewVpnGatewayResponse.php
similarity index 77%
rename from src/TencentCloud/Es/V20180416/Models/CreateInstanceResponse.php
rename to src/TencentCloud/Vpc/V20170312/Models/InquiryPriceRenewVpnGatewayResponse.php
index 78b3cd3d75..0208b9890c 100644
--- a/src/TencentCloud/Es/V20180416/Models/CreateInstanceResponse.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceRenewVpnGatewayResponse.php
@@ -17,32 +17,32 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Es\V20180416\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
- * @method string getInstanceId() 获取实例ID
- * @method void setInstanceId(string $InstanceId) 设置实例ID
+ * @method Price getPrice() 获取商品价格。
+ * @method void setPrice(Price $Price) 设置商品价格。
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
- *CreateInstance返回参数结构体
+ *InquiryPriceRenewVpnGateway返回参数结构体
*/
-class CreateInstanceResponse extends AbstractModel
+class InquiryPriceRenewVpnGatewayResponse extends AbstractModel
{
/**
- * @var string 实例ID
+ * @var Price 商品价格。
*/
- public $InstanceId;
+ public $Price;
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
public $RequestId;
/**
- * @param string $InstanceId 实例ID
+ * @param Price $Price 商品价格。
* @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
@@ -57,8 +57,9 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("InstanceId",$param) and $param["InstanceId"] !== null) {
- $this->InstanceId = $param["InstanceId"];
+ if (array_key_exists("Price",$param) and $param["Price"] !== null) {
+ $this->Price = new Price();
+ $this->Price->deserialize($param["Price"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
diff --git a/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest.php b/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest.php
new file mode 100644
index 0000000000..c9bf4e325c
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest.php
@@ -0,0 +1,68 @@
+VpnGatewayId = $param["VpnGatewayId"];
+ }
+
+ if (array_key_exists("InternetMaxBandwidthOut",$param) and $param["InternetMaxBandwidthOut"] !== null) {
+ $this->InternetMaxBandwidthOut = $param["InternetMaxBandwidthOut"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse.php b/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse.php
new file mode 100644
index 0000000000..625348b2fa
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse.php
@@ -0,0 +1,69 @@
+Price = new Price();
+ $this->Price->deserialize($param["Price"]);
+ }
+
+ if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
+ $this->RequestId = $param["RequestId"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/ItemPrice.php b/src/TencentCloud/Vpc/V20170312/Models/ItemPrice.php
new file mode 100644
index 0000000000..b89cce11aa
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/ItemPrice.php
@@ -0,0 +1,92 @@
+UnitPrice = $param["UnitPrice"];
+ }
+
+ if (array_key_exists("ChargeUnit",$param) and $param["ChargeUnit"] !== null) {
+ $this->ChargeUnit = $param["ChargeUnit"];
+ }
+
+ if (array_key_exists("OriginalPrice",$param) and $param["OriginalPrice"] !== null) {
+ $this->OriginalPrice = $param["OriginalPrice"];
+ }
+
+ if (array_key_exists("DiscountPrice",$param) and $param["DiscountPrice"] !== null) {
+ $this->DiscountPrice = $param["DiscountPrice"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/ModifyCustomerGatewayAttributeRequest.php b/src/TencentCloud/Vpc/V20170312/Models/ModifyCustomerGatewayAttributeRequest.php
new file mode 100644
index 0000000000..3b14524543
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/ModifyCustomerGatewayAttributeRequest.php
@@ -0,0 +1,68 @@
+CustomerGatewayId = $param["CustomerGatewayId"];
+ }
+
+ if (array_key_exists("CustomerGatewayName",$param) and $param["CustomerGatewayName"] !== null) {
+ $this->CustomerGatewayName = $param["CustomerGatewayName"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeDBSecurityGroupsDetailResponse.php b/src/TencentCloud/Vpc/V20170312/Models/ModifyCustomerGatewayAttributeResponse.php
similarity index 81%
rename from src/TencentCloud/Cdb/V20170320/Models/DescribeDBSecurityGroupsDetailResponse.php
rename to src/TencentCloud/Vpc/V20170312/Models/ModifyCustomerGatewayAttributeResponse.php
index 84deb00d63..82c58f0c78 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeDBSecurityGroupsDetailResponse.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/ModifyCustomerGatewayAttributeResponse.php
@@ -17,25 +17,25 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Cdb\V20170320\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
- *DescribeDBSecurityGroupsDetail返回参数结构体
+ *ModifyCustomerGatewayAttribute返回参数结构体
*/
-class DescribeDBSecurityGroupsDetailResponse extends AbstractModel
+class ModifyCustomerGatewayAttributeResponse extends AbstractModel
{
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -50,7 +50,7 @@ public function deserialize($param)
return;
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/ModifyVpnConnectionAttributeRequest.php b/src/TencentCloud/Vpc/V20170312/Models/ModifyVpnConnectionAttributeRequest.php
new file mode 100644
index 0000000000..a5b2a7f2c4
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/ModifyVpnConnectionAttributeRequest.php
@@ -0,0 +1,123 @@
+VpnConnectionId = $param["VpnConnectionId"];
+ }
+
+ if (array_key_exists("VpnConnectionName",$param) and $param["VpnConnectionName"] !== null) {
+ $this->VpnConnectionName = $param["VpnConnectionName"];
+ }
+
+ if (array_key_exists("PreShareKey",$param) and $param["PreShareKey"] !== null) {
+ $this->PreShareKey = $param["PreShareKey"];
+ }
+
+ if (array_key_exists("SecurityPolicyDatabases",$param) and $param["SecurityPolicyDatabases"] !== null) {
+ $this->SecurityPolicyDatabases = [];
+ foreach ($param["SecurityPolicyDatabases"] as $key => $value){
+ $obj = new SecurityPolicyDatabase();
+ $obj->deserialize($value);
+ array_push($this->SecurityPolicyDatabases, $obj);
+ }
+ }
+
+ if (array_key_exists("IKEOptionsSpecification",$param) and $param["IKEOptionsSpecification"] !== null) {
+ $this->IKEOptionsSpecification = new IKEOptionsSpecification();
+ $this->IKEOptionsSpecification->deserialize($param["IKEOptionsSpecification"]);
+ }
+
+ if (array_key_exists("IPSECOptionsSpecification",$param) and $param["IPSECOptionsSpecification"] !== null) {
+ $this->IPSECOptionsSpecification = new IPSECOptionsSpecification();
+ $this->IPSECOptionsSpecification->deserialize($param["IPSECOptionsSpecification"]);
+ }
+ }
+}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamRecordsResponse.php b/src/TencentCloud/Vpc/V20170312/Models/ModifyVpnConnectionAttributeResponse.php
similarity index 81%
rename from src/TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamRecordsResponse.php
rename to src/TencentCloud/Vpc/V20170312/Models/ModifyVpnConnectionAttributeResponse.php
index a75d17dee2..e3445da7ea 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamRecordsResponse.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/ModifyVpnConnectionAttributeResponse.php
@@ -17,25 +17,25 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Cdb\V20170320\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
- *DescribeInstanceParamRecords返回参数结构体
+ *ModifyVpnConnectionAttribute返回参数结构体
*/
-class DescribeInstanceParamRecordsResponse extends AbstractModel
+class ModifyVpnConnectionAttributeResponse extends AbstractModel
{
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -50,7 +50,7 @@ public function deserialize($param)
return;
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/ModifyVpnGatewayAttributeRequest.php b/src/TencentCloud/Vpc/V20170312/Models/ModifyVpnGatewayAttributeRequest.php
new file mode 100644
index 0000000000..c20d5758b3
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/ModifyVpnGatewayAttributeRequest.php
@@ -0,0 +1,80 @@
+VpnGatewayId = $param["VpnGatewayId"];
+ }
+
+ if (array_key_exists("VpnGatewayName",$param) and $param["VpnGatewayName"] !== null) {
+ $this->VpnGatewayName = $param["VpnGatewayName"];
+ }
+
+ if (array_key_exists("InstanceChargeType",$param) and $param["InstanceChargeType"] !== null) {
+ $this->InstanceChargeType = $param["InstanceChargeType"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/ModifyVpnGatewayAttributeResponse.php b/src/TencentCloud/Vpc/V20170312/Models/ModifyVpnGatewayAttributeResponse.php
new file mode 100644
index 0000000000..df6281f49b
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/ModifyVpnGatewayAttributeResponse.php
@@ -0,0 +1,56 @@
+RequestId = $param["RequestId"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/DescribeRoMinScaleRequest.php b/src/TencentCloud/Vpc/V20170312/Models/Price.php
similarity index 52%
rename from src/TencentCloud/Cdb/V20170320/Models/DescribeRoMinScaleRequest.php
rename to src/TencentCloud/Vpc/V20170312/Models/Price.php
index b54b88eb8a..d73b959b48 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/DescribeRoMinScaleRequest.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/Price.php
@@ -17,33 +17,33 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Cdb\V20170320\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
- * @method string getRoInstanceId() 获取只读实例ID
- * @method void setRoInstanceId(string $roInstanceId) 设置只读实例ID
- * @method string getMasterInstanceId() 获取主实例ID
- * @method void setMasterInstanceId(string $masterInstanceId) 设置主实例ID
+ * @method ItemPrice getInstancePrice() 获取实例价格。
+ * @method void setInstancePrice(ItemPrice $InstancePrice) 设置实例价格。
+ * @method ItemPrice getBandwidthPrice() 获取网络价格。
+ * @method void setBandwidthPrice(ItemPrice $BandwidthPrice) 设置网络价格。
*/
/**
- *DescribeRoMinScale请求参数结构体
+ *价格
*/
-class DescribeRoMinScaleRequest extends AbstractModel
+class Price extends AbstractModel
{
/**
- * @var string 只读实例ID
+ * @var ItemPrice 实例价格。
*/
- public $roInstanceId;
+ public $InstancePrice;
/**
- * @var string 主实例ID
+ * @var ItemPrice 网络价格。
*/
- public $masterInstanceId;
+ public $BandwidthPrice;
/**
- * @param string $roInstanceId 只读实例ID
- * @param string $masterInstanceId 主实例ID
+ * @param ItemPrice $InstancePrice 实例价格。
+ * @param ItemPrice $BandwidthPrice 网络价格。
*/
function __construct()
{
@@ -57,12 +57,14 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("RoInstanceId",$param) and $param["RoInstanceId"] !== null) {
- $this->roInstanceId = $param["RoInstanceId"];
+ if (array_key_exists("InstancePrice",$param) and $param["InstancePrice"] !== null) {
+ $this->InstancePrice = new ItemPrice();
+ $this->InstancePrice->deserialize($param["InstancePrice"]);
}
- if (array_key_exists("MasterInstanceId",$param) and $param["MasterInstanceId"] !== null) {
- $this->masterInstanceId = $param["MasterInstanceId"];
+ if (array_key_exists("BandwidthPrice",$param) and $param["BandwidthPrice"] !== null) {
+ $this->BandwidthPrice = new ItemPrice();
+ $this->BandwidthPrice->deserialize($param["BandwidthPrice"]);
}
}
}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/RenewVpnGatewayRequest.php b/src/TencentCloud/Vpc/V20170312/Models/RenewVpnGatewayRequest.php
new file mode 100644
index 0000000000..4f7c851814
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/RenewVpnGatewayRequest.php
@@ -0,0 +1,69 @@
+VpnGatewayId = $param["VpnGatewayId"];
+ }
+
+ if (array_key_exists("InstanceChargePrepaid",$param) and $param["InstanceChargePrepaid"] !== null) {
+ $this->InstanceChargePrepaid = new InstanceChargePrepaid();
+ $this->InstanceChargePrepaid->deserialize($param["InstanceChargePrepaid"]);
+ }
+ }
+}
diff --git a/src/TencentCloud/Es/V20180416/Models/DeleteInstanceResponse.php b/src/TencentCloud/Vpc/V20170312/Models/RenewVpnGatewayResponse.php
similarity index 93%
rename from src/TencentCloud/Es/V20180416/Models/DeleteInstanceResponse.php
rename to src/TencentCloud/Vpc/V20170312/Models/RenewVpnGatewayResponse.php
index 5207c73a7a..d91e86effa 100644
--- a/src/TencentCloud/Es/V20180416/Models/DeleteInstanceResponse.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/RenewVpnGatewayResponse.php
@@ -17,7 +17,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Es\V20180416\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
@@ -26,9 +26,9 @@
*/
/**
- *DeleteInstance返回参数结构体
+ *RenewVpnGateway返回参数结构体
*/
-class DeleteInstanceResponse extends AbstractModel
+class RenewVpnGatewayResponse extends AbstractModel
{
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
diff --git a/src/TencentCloud/Vpc/V20170312/Models/ReplaceRouteTableAssociationRequest.php b/src/TencentCloud/Vpc/V20170312/Models/ReplaceRouteTableAssociationRequest.php
index f55c9a6112..01a456621a 100644
--- a/src/TencentCloud/Vpc/V20170312/Models/ReplaceRouteTableAssociationRequest.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/ReplaceRouteTableAssociationRequest.php
@@ -21,8 +21,8 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getSubnetId() 获取子网实例ID,例如:subnet-3x5lf5q0。可通过DescribeSubnetEx接口查询。
- * @method void setSubnetId(string $SubnetId) 设置子网实例ID,例如:subnet-3x5lf5q0。可通过DescribeSubnetEx接口查询。
+ * @method string getSubnetId() 获取子网实例ID,例如:subnet-3x5lf5q0。可通过DescribeSubnets接口查询。
+ * @method void setSubnetId(string $SubnetId) 设置子网实例ID,例如:subnet-3x5lf5q0。可通过DescribeSubnets接口查询。
* @method string getRouteTableId() 获取路由表实例ID,例如:rtb-azd4dt1c。
* @method void setRouteTableId(string $RouteTableId) 设置路由表实例ID,例如:rtb-azd4dt1c。
*/
@@ -33,7 +33,7 @@
class ReplaceRouteTableAssociationRequest extends AbstractModel
{
/**
- * @var string 子网实例ID,例如:subnet-3x5lf5q0。可通过DescribeSubnetEx接口查询。
+ * @var string 子网实例ID,例如:subnet-3x5lf5q0。可通过DescribeSubnets接口查询。
*/
public $SubnetId;
@@ -42,7 +42,7 @@ class ReplaceRouteTableAssociationRequest extends AbstractModel
*/
public $RouteTableId;
/**
- * @param string $SubnetId 子网实例ID,例如:subnet-3x5lf5q0。可通过DescribeSubnetEx接口查询。
+ * @param string $SubnetId 子网实例ID,例如:subnet-3x5lf5q0。可通过DescribeSubnets接口查询。
* @param string $RouteTableId 路由表实例ID,例如:rtb-azd4dt1c。
*/
function __construct()
diff --git a/src/TencentCloud/Vpc/V20170312/Models/ReplaceRoutesRequest.php b/src/TencentCloud/Vpc/V20170312/Models/ReplaceRoutesRequest.php
index 457bdf3ed2..41b8e93007 100644
--- a/src/TencentCloud/Vpc/V20170312/Models/ReplaceRoutesRequest.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/ReplaceRoutesRequest.php
@@ -62,7 +62,12 @@ public function deserialize($param)
}
if (array_key_exists("Routes",$param) and $param["Routes"] !== null) {
- $this->Routes = $param["Routes"];
+ $this->Routes = [];
+ foreach ($param["Routes"] as $key => $value){
+ $obj = new Route();
+ $obj->deserialize($value);
+ array_push($this->Routes, $obj);
+ }
}
}
}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/ResetRoutesRequest.php b/src/TencentCloud/Vpc/V20170312/Models/ResetRoutesRequest.php
index 78101a640e..d3ef5138b4 100644
--- a/src/TencentCloud/Vpc/V20170312/Models/ResetRoutesRequest.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/ResetRoutesRequest.php
@@ -74,7 +74,12 @@ public function deserialize($param)
}
if (array_key_exists("Routes",$param) and $param["Routes"] !== null) {
- $this->Routes = $param["Routes"];
+ $this->Routes = [];
+ foreach ($param["Routes"] as $key => $value){
+ $obj = new Route();
+ $obj->deserialize($value);
+ array_push($this->Routes, $obj);
+ }
}
}
}
diff --git a/src/TencentCloud/Cdb/V20170320/Models/ModifyMonitorTemplateRequest.php b/src/TencentCloud/Vpc/V20170312/Models/ResetVpnConnectionRequest.php
similarity index 51%
rename from src/TencentCloud/Cdb/V20170320/Models/ModifyMonitorTemplateRequest.php
rename to src/TencentCloud/Vpc/V20170312/Models/ResetVpnConnectionRequest.php
index 72b267363e..1ee3964305 100644
--- a/src/TencentCloud/Cdb/V20170320/Models/ModifyMonitorTemplateRequest.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/ResetVpnConnectionRequest.php
@@ -17,33 +17,33 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Cdb\V20170320\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
- * @method integer getTemplateId() 获取监控模板ID
- * @method void setTemplateId(integer $templateId) 设置监控模板ID
- * @method array getMetrics() 获取监控指标项
- * @method void setMetrics(array $metrics) 设置监控指标项
+ * @method string getVpnGatewayId() 获取VPN网关实例ID。
+ * @method void setVpnGatewayId(string $VpnGatewayId) 设置VPN网关实例ID。
+ * @method string getVpnConnectionId() 获取VPN通道实例ID。形如:vpnx-f49l6u0z。
+ * @method void setVpnConnectionId(string $VpnConnectionId) 设置VPN通道实例ID。形如:vpnx-f49l6u0z。
*/
/**
- *ModifyMonitorTemplate请求参数结构体
+ *ResetVpnConnection请求参数结构体
*/
-class ModifyMonitorTemplateRequest extends AbstractModel
+class ResetVpnConnectionRequest extends AbstractModel
{
/**
- * @var integer 监控模板ID
+ * @var string VPN网关实例ID。
*/
- public $templateId;
+ public $VpnGatewayId;
/**
- * @var array 监控指标项
+ * @var string VPN通道实例ID。形如:vpnx-f49l6u0z。
*/
- public $metrics;
+ public $VpnConnectionId;
/**
- * @param integer $templateId 监控模板ID
- * @param array $metrics 监控指标项
+ * @param string $VpnGatewayId VPN网关实例ID。
+ * @param string $VpnConnectionId VPN通道实例ID。形如:vpnx-f49l6u0z。
*/
function __construct()
{
@@ -57,12 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("TemplateId",$param) and $param["TemplateId"] !== null) {
- $this->templateId = $param["TemplateId"];
+ if (array_key_exists("VpnGatewayId",$param) and $param["VpnGatewayId"] !== null) {
+ $this->VpnGatewayId = $param["VpnGatewayId"];
}
- if (array_key_exists("Metrics",$param) and $param["Metrics"] !== null) {
- $this->metrics = $param["Metrics"];
+ if (array_key_exists("VpnConnectionId",$param) and $param["VpnConnectionId"] !== null) {
+ $this->VpnConnectionId = $param["VpnConnectionId"];
}
}
}
diff --git a/src/TencentCloud/Es/V20180416/Models/UpdateInstanceResponse.php b/src/TencentCloud/Vpc/V20170312/Models/ResetVpnConnectionResponse.php
similarity index 92%
rename from src/TencentCloud/Es/V20180416/Models/UpdateInstanceResponse.php
rename to src/TencentCloud/Vpc/V20170312/Models/ResetVpnConnectionResponse.php
index a5a940746f..eea52a0332 100644
--- a/src/TencentCloud/Es/V20180416/Models/UpdateInstanceResponse.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/ResetVpnConnectionResponse.php
@@ -17,7 +17,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Es\V20180416\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
@@ -26,9 +26,9 @@
*/
/**
- *UpdateInstance返回参数结构体
+ *ResetVpnConnection返回参数结构体
*/
-class UpdateInstanceResponse extends AbstractModel
+class ResetVpnConnectionResponse extends AbstractModel
{
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
diff --git a/src/TencentCloud/Vpc/V20170312/Models/ResetVpnGatewayInternetMaxBandwidthRequest.php b/src/TencentCloud/Vpc/V20170312/Models/ResetVpnGatewayInternetMaxBandwidthRequest.php
new file mode 100644
index 0000000000..f08fa5a64f
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/ResetVpnGatewayInternetMaxBandwidthRequest.php
@@ -0,0 +1,68 @@
+VpnGatewayId = $param["VpnGatewayId"];
+ }
+
+ if (array_key_exists("InternetMaxBandwidthOut",$param) and $param["InternetMaxBandwidthOut"] !== null) {
+ $this->InternetMaxBandwidthOut = $param["InternetMaxBandwidthOut"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Cbs/V20170312/Models/ModifyAutoSnapshotPolicyAttributeResponse.php b/src/TencentCloud/Vpc/V20170312/Models/ResetVpnGatewayInternetMaxBandwidthResponse.php
similarity index 81%
rename from src/TencentCloud/Cbs/V20170312/Models/ModifyAutoSnapshotPolicyAttributeResponse.php
rename to src/TencentCloud/Vpc/V20170312/Models/ResetVpnGatewayInternetMaxBandwidthResponse.php
index 8f8eb885b3..bf29288250 100644
--- a/src/TencentCloud/Cbs/V20170312/Models/ModifyAutoSnapshotPolicyAttributeResponse.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/ResetVpnGatewayInternetMaxBandwidthResponse.php
@@ -17,25 +17,25 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Cbs\V20170312\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
* @method string getRequestId() 获取唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
- * @method void setRequestId(string $requestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @method void setRequestId(string $RequestId) 设置唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
/**
- *ModifyAutoSnapshotPolicyAttribute返回参数结构体
+ *ResetVpnGatewayInternetMaxBandwidth返回参数结构体
*/
-class ModifyAutoSnapshotPolicyAttributeResponse extends AbstractModel
+class ResetVpnGatewayInternetMaxBandwidthResponse extends AbstractModel
{
/**
* @var string 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
- public $requestId;
+ public $RequestId;
/**
- * @param string $requestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
+ * @param string $RequestId 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。
*/
function __construct()
{
@@ -50,7 +50,7 @@ public function deserialize($param)
return;
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
- $this->requestId = $param["RequestId"];
+ $this->RequestId = $param["RequestId"];
}
}
}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/Route.php b/src/TencentCloud/Vpc/V20170312/Models/Route.php
index 3e8c40c509..b623545307 100644
--- a/src/TencentCloud/Vpc/V20170312/Models/Route.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/Route.php
@@ -21,8 +21,8 @@
use TencentCloud\Common\AbstractModel;
/**
- * @method string getRouteId() 获取路由策略ID。
- * @method void setRouteId(string $RouteId) 设置路由策略ID。
+ * @method integer getRouteId() 获取路由策略ID。
+ * @method void setRouteId(integer $RouteId) 设置路由策略ID。
* @method string getDestinationCidrBlock() 获取目的网段,取值不能在私有网络网段内,例如:112.20.51.0/24。
* @method void setDestinationCidrBlock(string $DestinationCidrBlock) 设置目的网段,取值不能在私有网络网段内,例如:112.20.51.0/24。
* @method string getGatewayType() 获取下一跳类型,目前我们支持的类型有:CVM:公网网关类型的云主机;VPN:vpn网关; DIRECTCONNECT:专线网关;PEERCONNECTION:对等连接;SSLVPN:sslvpn网关;NAT:nat网关; NORMAL_CVM:普通云主机。
@@ -39,7 +39,7 @@
class Route extends AbstractModel
{
/**
- * @var string 路由策略ID。
+ * @var integer 路由策略ID。
*/
public $RouteId;
@@ -63,7 +63,7 @@ class Route extends AbstractModel
*/
public $RouteDescription;
/**
- * @param string $RouteId 路由策略ID。
+ * @param integer $RouteId 路由策略ID。
* @param string $DestinationCidrBlock 目的网段,取值不能在私有网络网段内,例如:112.20.51.0/24。
* @param string $GatewayType 下一跳类型,目前我们支持的类型有:CVM:公网网关类型的云主机;VPN:vpn网关; DIRECTCONNECT:专线网关;PEERCONNECTION:对等连接;SSLVPN:sslvpn网关;NAT:nat网关; NORMAL_CVM:普通云主机。
* @param string $GatewayId 下一跳地址,这里只需要指定不同下一跳类型的网关ID,系统会自动匹配到下一跳地址。
diff --git a/src/TencentCloud/Cvm/V20170312/Models/AddressChargePrepaid.php b/src/TencentCloud/Vpc/V20170312/Models/SecurityPolicyDatabase.php
similarity index 55%
rename from src/TencentCloud/Cvm/V20170312/Models/AddressChargePrepaid.php
rename to src/TencentCloud/Vpc/V20170312/Models/SecurityPolicyDatabase.php
index c2da41b4be..6f45faccb6 100644
--- a/src/TencentCloud/Cvm/V20170312/Models/AddressChargePrepaid.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/SecurityPolicyDatabase.php
@@ -17,33 +17,33 @@
* specific language governing permissions and limitations
* under the License.
*/
-namespace TencentCloud\Cvm\V20170312\Models;
+namespace TencentCloud\Vpc\V20170312\Models;
use TencentCloud\Common\AbstractModel;
/**
- * @method integer getPeriod() 获取购买实例的时长
- * @method void setPeriod(integer $period) 设置购买实例的时长
- * @method string getRenewFlag() 获取自动续费标志
- * @method void setRenewFlag(string $renewFlag) 设置自动续费标志
+ * @method string getLocalCidrBlock() 获取本端网段
+ * @method void setLocalCidrBlock(string $LocalCidrBlock) 设置本端网段
+ * @method array getRemoteCidrBlock() 获取对端网段
+ * @method void setRemoteCidrBlock(array $RemoteCidrBlock) 设置对端网段
*/
/**
- *用于描述弹性公网IP的费用对象
+ *SecurityPolicyDatabase策略
*/
-class AddressChargePrepaid extends AbstractModel
+class SecurityPolicyDatabase extends AbstractModel
{
/**
- * @var integer 购买实例的时长
+ * @var string 本端网段
*/
- public $period;
+ public $LocalCidrBlock;
/**
- * @var string 自动续费标志
+ * @var array 对端网段
*/
- public $renewFlag;
+ public $RemoteCidrBlock;
/**
- * @param integer $period 购买实例的时长
- * @param string $renewFlag 自动续费标志
+ * @param string $LocalCidrBlock 本端网段
+ * @param array $RemoteCidrBlock 对端网段
*/
function __construct()
{
@@ -57,12 +57,12 @@ public function deserialize($param)
if ($param === null) {
return;
}
- if (array_key_exists("Period",$param) and $param["Period"] !== null) {
- $this->period = $param["Period"];
+ if (array_key_exists("LocalCidrBlock",$param) and $param["LocalCidrBlock"] !== null) {
+ $this->LocalCidrBlock = $param["LocalCidrBlock"];
}
- if (array_key_exists("RenewFlag",$param) and $param["RenewFlag"] !== null) {
- $this->renewFlag = $param["RenewFlag"];
+ if (array_key_exists("RemoteCidrBlock",$param) and $param["RemoteCidrBlock"] !== null) {
+ $this->RemoteCidrBlock = $param["RemoteCidrBlock"];
}
}
}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/Subnet.php b/src/TencentCloud/Vpc/V20170312/Models/Subnet.php
index 209bccef18..3dd5ca33a8 100644
--- a/src/TencentCloud/Vpc/V20170312/Models/Subnet.php
+++ b/src/TencentCloud/Vpc/V20170312/Models/Subnet.php
@@ -39,6 +39,8 @@
* @method void setRouteTableId(string $RouteTableId) 设置路由表实例ID,例如:rtb-l2h8d7c2。
* @method string getCreatedTime() 获取创建时间。
* @method void setCreatedTime(string $CreatedTime) 设置创建时间。
+ * @method integer getAvailableIpAddressCount() 获取可用IP数。
+ * @method void setAvailableIpAddressCount(integer $AvailableIpAddressCount) 设置可用IP数。
*/
/**
@@ -90,6 +92,11 @@ class Subnet extends AbstractModel
* @var string 创建时间。
*/
public $CreatedTime;
+
+ /**
+ * @var integer 可用IP数。
+ */
+ public $AvailableIpAddressCount;
/**
* @param string $VpcId VPC实例ID。
* @param string $SubnetId 子网实例ID,例如:subnet-bthucmmy。
@@ -100,6 +107,7 @@ class Subnet extends AbstractModel
* @param string $Zone 可用区。
* @param string $RouteTableId 路由表实例ID,例如:rtb-l2h8d7c2。
* @param string $CreatedTime 创建时间。
+ * @param integer $AvailableIpAddressCount 可用IP数。
*/
function __construct()
{
@@ -148,5 +156,9 @@ public function deserialize($param)
if (array_key_exists("CreatedTime",$param) and $param["CreatedTime"] !== null) {
$this->CreatedTime = $param["CreatedTime"];
}
+
+ if (array_key_exists("AvailableIpAddressCount",$param) and $param["AvailableIpAddressCount"] !== null) {
+ $this->AvailableIpAddressCount = $param["AvailableIpAddressCount"];
+ }
}
}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/VpnConnection.php b/src/TencentCloud/Vpc/V20170312/Models/VpnConnection.php
new file mode 100644
index 0000000000..a7ea22f5d4
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/VpnConnection.php
@@ -0,0 +1,231 @@
+VpnConnectionId = $param["VpnConnectionId"];
+ }
+
+ if (array_key_exists("VpnConnectionName",$param) and $param["VpnConnectionName"] !== null) {
+ $this->VpnConnectionName = $param["VpnConnectionName"];
+ }
+
+ if (array_key_exists("VpcId",$param) and $param["VpcId"] !== null) {
+ $this->VpcId = $param["VpcId"];
+ }
+
+ if (array_key_exists("VpnGatewayId",$param) and $param["VpnGatewayId"] !== null) {
+ $this->VpnGatewayId = $param["VpnGatewayId"];
+ }
+
+ if (array_key_exists("CustomerGatewayId",$param) and $param["CustomerGatewayId"] !== null) {
+ $this->CustomerGatewayId = $param["CustomerGatewayId"];
+ }
+
+ if (array_key_exists("PreShareKey",$param) and $param["PreShareKey"] !== null) {
+ $this->PreShareKey = $param["PreShareKey"];
+ }
+
+ if (array_key_exists("VpnProto",$param) and $param["VpnProto"] !== null) {
+ $this->VpnProto = $param["VpnProto"];
+ }
+
+ if (array_key_exists("EncryptProto",$param) and $param["EncryptProto"] !== null) {
+ $this->EncryptProto = $param["EncryptProto"];
+ }
+
+ if (array_key_exists("RouteType",$param) and $param["RouteType"] !== null) {
+ $this->RouteType = $param["RouteType"];
+ }
+
+ if (array_key_exists("CreatedTime",$param) and $param["CreatedTime"] !== null) {
+ $this->CreatedTime = $param["CreatedTime"];
+ }
+
+ if (array_key_exists("State",$param) and $param["State"] !== null) {
+ $this->State = $param["State"];
+ }
+
+ if (array_key_exists("NetStatus",$param) and $param["NetStatus"] !== null) {
+ $this->NetStatus = $param["NetStatus"];
+ }
+
+ if (array_key_exists("SecurityPolicyDatabaseSet",$param) and $param["SecurityPolicyDatabaseSet"] !== null) {
+ $this->SecurityPolicyDatabaseSet = [];
+ foreach ($param["SecurityPolicyDatabaseSet"] as $key => $value){
+ $obj = new SecurityPolicyDatabase();
+ $obj->deserialize($value);
+ array_push($this->SecurityPolicyDatabaseSet, $obj);
+ }
+ }
+
+ if (array_key_exists("IKEOptionsSpecification",$param) and $param["IKEOptionsSpecification"] !== null) {
+ $this->IKEOptionsSpecification = new IKEOptionsSpecification();
+ $this->IKEOptionsSpecification->deserialize($param["IKEOptionsSpecification"]);
+ }
+
+ if (array_key_exists("IPSECOptionsSpecification",$param) and $param["IPSECOptionsSpecification"] !== null) {
+ $this->IPSECOptionsSpecification = new IPSECOptionsSpecification();
+ $this->IPSECOptionsSpecification->deserialize($param["IPSECOptionsSpecification"]);
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/Models/VpnGateway.php b/src/TencentCloud/Vpc/V20170312/Models/VpnGateway.php
new file mode 100644
index 0000000000..96fbbc709f
--- /dev/null
+++ b/src/TencentCloud/Vpc/V20170312/Models/VpnGateway.php
@@ -0,0 +1,212 @@
+VpnGatewayId = $param["VpnGatewayId"];
+ }
+
+ if (array_key_exists("VpcId",$param) and $param["VpcId"] !== null) {
+ $this->VpcId = $param["VpcId"];
+ }
+
+ if (array_key_exists("VpnGatewayName",$param) and $param["VpnGatewayName"] !== null) {
+ $this->VpnGatewayName = $param["VpnGatewayName"];
+ }
+
+ if (array_key_exists("Type",$param) and $param["Type"] !== null) {
+ $this->Type = $param["Type"];
+ }
+
+ if (array_key_exists("State",$param) and $param["State"] !== null) {
+ $this->State = $param["State"];
+ }
+
+ if (array_key_exists("PublicIpAddress",$param) and $param["PublicIpAddress"] !== null) {
+ $this->PublicIpAddress = $param["PublicIpAddress"];
+ }
+
+ if (array_key_exists("RenewFlag",$param) and $param["RenewFlag"] !== null) {
+ $this->RenewFlag = $param["RenewFlag"];
+ }
+
+ if (array_key_exists("InstanceChargeType",$param) and $param["InstanceChargeType"] !== null) {
+ $this->InstanceChargeType = $param["InstanceChargeType"];
+ }
+
+ if (array_key_exists("InternetMaxBandwidthOut",$param) and $param["InternetMaxBandwidthOut"] !== null) {
+ $this->InternetMaxBandwidthOut = $param["InternetMaxBandwidthOut"];
+ }
+
+ if (array_key_exists("CreatedTime",$param) and $param["CreatedTime"] !== null) {
+ $this->CreatedTime = $param["CreatedTime"];
+ }
+
+ if (array_key_exists("ExpiredTime",$param) and $param["ExpiredTime"] !== null) {
+ $this->ExpiredTime = $param["ExpiredTime"];
+ }
+
+ if (array_key_exists("IsAddressBlocked",$param) and $param["IsAddressBlocked"] !== null) {
+ $this->IsAddressBlocked = $param["IsAddressBlocked"];
+ }
+
+ if (array_key_exists("NewPurchasePlan",$param) and $param["NewPurchasePlan"] !== null) {
+ $this->NewPurchasePlan = $param["NewPurchasePlan"];
+ }
+
+ if (array_key_exists("RestrictState",$param) and $param["RestrictState"] !== null) {
+ $this->RestrictState = $param["RestrictState"];
+ }
+ }
+}
diff --git a/src/TencentCloud/Vpc/V20170312/VpcClient.php b/src/TencentCloud/Vpc/V20170312/VpcClient.php
index 0a59cdbf1e..7fbec6d990 100644
--- a/src/TencentCloud/Vpc/V20170312/VpcClient.php
+++ b/src/TencentCloud/Vpc/V20170312/VpcClient.php
@@ -49,6 +49,7 @@
* 弹性网卡绑定的云主机必须是私有网络的,而且云主机所在可用区必须和弹性网卡子网的可用区相同。
* @method Models\CreateAddressTemplateResponse CreateAddressTemplate(Models\CreateAddressTemplateRequest $req) 创建IP地址模版
* @method Models\CreateAddressTemplateGroupResponse CreateAddressTemplateGroup(Models\CreateAddressTemplateGroupRequest $req) 创建IP地址模版集合
+* @method Models\CreateCustomerGatewayResponse CreateCustomerGateway(Models\CreateCustomerGatewayRequest $req) 本接口(CreateCustomerGateway)用于创建对端网关。
* @method Models\CreateNetworkInterfaceResponse CreateNetworkInterface(Models\CreateNetworkInterfaceRequest $req) 本接口(CreateNetworkInterface)用于创建弹性网卡。
* 创建弹性网卡时可以指定内网IP,并且可以指定一个主IP,指定的内网IP必须在弹性网卡所在子网内,而且不能被占用。
* 创建弹性网卡时可以指定需要申请的内网IP数量,系统会随机生成内网IP地址。
@@ -83,8 +84,11 @@
* 创建VPC时可同时把子网创建好,创建子网也请规划好子网网段及子网所在可用区,同一个VPC内子网网段不能重叠,不同可用区可以做跨可用区容灾,详见VPC可用区说明。
* 如果您同时创建了子网,系统会创建一个默认路由表,系统会把子网关联到这个默认路由表。
* 同一个地域能创建的VPC资源个数也是有限制的,详见 VPC使用限制,如果需要扩充请联系在线客服。
+* @method Models\CreateVpnConnectionResponse CreateVpnConnection(Models\CreateVpnConnectionRequest $req) 本接口(CreateVpnConnection)用于创建VPN通道。
+* @method Models\CreateVpnGatewayResponse CreateVpnGateway(Models\CreateVpnGatewayRequest $req) 本接口(CreateVpnGateways)用于创建VPN网关。
* @method Models\DeleteAddressTemplateResponse DeleteAddressTemplate(Models\DeleteAddressTemplateRequest $req) 删除IP地址模板
* @method Models\DeleteAddressTemplateGroupResponse DeleteAddressTemplateGroup(Models\DeleteAddressTemplateGroupRequest $req) 删除IP地址模板集合
+* @method Models\DeleteCustomerGatewayResponse DeleteCustomerGateway(Models\DeleteCustomerGatewayRequest $req) 本接口(DeleteCustomerGateway)用于删除对端网关。
* @method Models\DeleteNetworkInterfaceResponse DeleteNetworkInterface(Models\DeleteNetworkInterfaceRequest $req) 本接口(DeleteNetworkInterface)用于创建弹性网卡。
* 弹性网卡上绑定了云主机时,不能被删除。
* 删除指定弹性网卡,弹性网卡必须先和子机解绑才能删除。删除之后弹性网卡上所有内网IP都将被退还。
@@ -103,12 +107,16 @@
* @method Models\DeleteVpcResponse DeleteVpc(Models\DeleteVpcRequest $req) 本接口(DeleteVpc)用于删除私有网络。
* 删除前请确保 VPC 内已经没有相关资源,例如云主机、云数据库、NoSQL、VPN网关、专线网关、负载均衡、对等连接、与之互通的基础网络设备等。
* 删除私有网络是不可逆的操作,请谨慎处理。
+* @method Models\DeleteVpnConnectionResponse DeleteVpnConnection(Models\DeleteVpnConnectionRequest $req) 本接口(DeleteVpnConnection)用于删除VPN通道。
+* @method Models\DeleteVpnGatewayResponse DeleteVpnGateway(Models\DeleteVpnGatewayRequest $req) 本接口(DeleteVpnGateway)用于删除VPN网关。目前只支持删除运行中的按量计费的IPSEC网关实例。
* @method Models\DescribeAddressQuotaResponse DescribeAddressQuota(Models\DescribeAddressQuotaRequest $req) 本接口 (DescribeAddressQuota) 用于查询您账户的[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)在当前地域的配额信息。配额详情可参见 [EIP 产品简介](https://cloud.tencent.com/document/product/213/5733)。
* @method Models\DescribeAddressTemplateGroupsResponse DescribeAddressTemplateGroups(Models\DescribeAddressTemplateGroupsRequest $req) 查询IP地址模板集合
* @method Models\DescribeAddressTemplatesResponse DescribeAddressTemplates(Models\DescribeAddressTemplatesRequest $req) 查询IP地址模板
* @method Models\DescribeAddressesResponse DescribeAddresses(Models\DescribeAddressesRequest $req) 本接口 (DescribeAddresses) 用于查询一个或多个[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)的详细信息。
* 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的 EIP。
* @method Models\DescribeClassicLinkInstancesResponse DescribeClassicLinkInstances(Models\DescribeClassicLinkInstancesRequest $req) 本接口(DescribeClassicLinkInstances)用于私有网络和基础网络设备互通。
+* @method Models\DescribeCustomerGatewayVendorsResponse DescribeCustomerGatewayVendors(Models\DescribeCustomerGatewayVendorsRequest $req) 本接口(DescribeCustomerGatewayVendors)用于查询可支持的对端网关厂商信息。
+* @method Models\DescribeCustomerGatewaysResponse DescribeCustomerGateways(Models\DescribeCustomerGatewaysRequest $req) 本接口(DescribeCustomerGateways)用于查询对端网关列表。
* @method Models\DescribeNetworkInterfacesResponse DescribeNetworkInterfaces(Models\DescribeNetworkInterfacesRequest $req) 本接口(DescribeNetworkInterfaces)用于查询弹性网卡列表。
* @method Models\DescribeRouteTablesResponse DescribeRouteTables(Models\DescribeRouteTablesRequest $req) 本接口(DescribeRouteTables)用于查询路由表。
* @method Models\DescribeSecurityGroupPoliciesResponse DescribeSecurityGroupPolicies(Models\DescribeSecurityGroupPoliciesRequest $req) 本接口(DescribeSecurityGroupPolicies)用于查询安全组规则。
@@ -117,11 +125,17 @@
* @method Models\DescribeServiceTemplatesResponse DescribeServiceTemplates(Models\DescribeServiceTemplatesRequest $req) 查询协议端口模板
* @method Models\DescribeSubnetsResponse DescribeSubnets(Models\DescribeSubnetsRequest $req) 本接口(DescribeSubnets)用于查询子网列表。
* @method Models\DescribeVpcsResponse DescribeVpcs(Models\DescribeVpcsRequest $req) 本接口(DescribeVpcs)用于查询私有网络列表。
+* @method Models\DescribeVpnConnectionsResponse DescribeVpnConnections(Models\DescribeVpnConnectionsRequest $req) 本接口(DescribeVpnConnections)查询VPN通道列表。
+* @method Models\DescribeVpnGatewaysResponse DescribeVpnGateways(Models\DescribeVpnGatewaysRequest $req) 本接口(DescribeVpnGateways)用于查询VPN网关列表。
* @method Models\DetachClassicLinkVpcResponse DetachClassicLinkVpc(Models\DetachClassicLinkVpcRequest $req) 本接口(DetachClassicLinkVpc)用于删除私有网络和基础网络设备互通。
* @method Models\DetachNetworkInterfaceResponse DetachNetworkInterface(Models\DetachNetworkInterfaceRequest $req) 本接口(DetachNetworkInterface)用于弹性网卡解绑云主机。
* @method Models\DisassociateAddressResponse DisassociateAddress(Models\DisassociateAddressRequest $req) 本接口 (DisassociateAddress) 用于解绑[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)。
* 只有状态为 BIND 和 BIND_ENI 的 EIP 才能进行解绑定操作。
* EIP 如果被封堵,则不能进行解绑定操作。
+* @method Models\DownloadCustomerGatewayConfigurationResponse DownloadCustomerGatewayConfiguration(Models\DownloadCustomerGatewayConfigurationRequest $req) 本接口(DownloadCustomerGatewayConfiguration)用于下载VPN通道配置。
+* @method Models\InquiryPriceCreateVpnGatewayResponse InquiryPriceCreateVpnGateway(Models\InquiryPriceCreateVpnGatewayRequest $req) 本接口(InquiryPriceCreateVpnGateway)用于创建VPN网关询价。
+* @method Models\InquiryPriceRenewVpnGatewayResponse InquiryPriceRenewVpnGateway(Models\InquiryPriceRenewVpnGatewayRequest $req) 本接口(InquiryPriceRenewVpnGateway)用于续费VPN网关询价。目前仅支持IPSEC类型网关的询价。
+* @method Models\InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse InquiryPriceResetVpnGatewayInternetMaxBandwidth(Models\InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest $req) 本接口(InquiryPriceResetVpnGatewayInternetMaxBandwidth)调整VPN网关带宽上限询价。
* @method Models\MigrateNetworkInterfaceResponse MigrateNetworkInterface(Models\MigrateNetworkInterfaceRequest $req) 本接口(MigrateNetworkInterface)用于弹性网卡迁移。
* @method Models\MigratePrivateIpAddressResponse MigratePrivateIpAddress(Models\MigratePrivateIpAddressRequest $req) 本接口(MigratePrivateIpAddress)用于弹性网卡内网IP迁移。
@@ -130,6 +144,7 @@
* @method Models\ModifyAddressAttributeResponse ModifyAddressAttribute(Models\ModifyAddressAttributeRequest $req) 本接口 (ModifyAddressAttribute) 用于修改[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)的名称。
* @method Models\ModifyAddressTemplateAttributeResponse ModifyAddressTemplateAttribute(Models\ModifyAddressTemplateAttributeRequest $req) 修改IP地址模板
* @method Models\ModifyAddressTemplateGroupAttributeResponse ModifyAddressTemplateGroupAttribute(Models\ModifyAddressTemplateGroupAttributeRequest $req) 修改IP地址模板集合
+* @method Models\ModifyCustomerGatewayAttributeResponse ModifyCustomerGatewayAttribute(Models\ModifyCustomerGatewayAttributeRequest $req) 本接口(ModifyCustomerGatewayAttribute)用于修改对端网关信息。
* @method Models\ModifyNetworkInterfaceAttributeResponse ModifyNetworkInterfaceAttribute(Models\ModifyNetworkInterfaceAttributeRequest $req) 本接口(ModifyNetworkInterfaceAttribute)用于修改弹性网卡属性。
* @method Models\ModifyPrivateIpAddressesAttributeResponse ModifyPrivateIpAddressesAttribute(Models\ModifyPrivateIpAddressesAttributeRequest $req) 本接口(ModifyPrivateIpAddressesAttribute)用于修改弹性网卡内网IP属性。
* @method Models\ModifyRouteTableAttributeResponse ModifyRouteTableAttribute(Models\ModifyRouteTableAttributeRequest $req) 本接口(ModifyRouteTableAttribute)用于修改路由表(RouteTable)属性。
@@ -148,9 +163,12 @@
* @method Models\ModifyServiceTemplateGroupAttributeResponse ModifyServiceTemplateGroupAttribute(Models\ModifyServiceTemplateGroupAttributeRequest $req) 本接口(ModifyServiceTemplateGroupAttribute)用于修改协议端口模板集合。
* @method Models\ModifySubnetAttributeResponse ModifySubnetAttribute(Models\ModifySubnetAttributeRequest $req) 本接口(ModifySubnetAttribute)用于修改子网属性。
* @method Models\ModifyVpcAttributeResponse ModifyVpcAttribute(Models\ModifyVpcAttributeRequest $req) 本接口(ModifyVpcAttribute)用于修改私有网络(VPC)的相关属性。
+* @method Models\ModifyVpnConnectionAttributeResponse ModifyVpnConnectionAttribute(Models\ModifyVpnConnectionAttributeRequest $req) 本接口(ModifyVpnConnectionAttribute)用于修改VPN通道。
+* @method Models\ModifyVpnGatewayAttributeResponse ModifyVpnGatewayAttribute(Models\ModifyVpnGatewayAttributeRequest $req) 本接口(ModifyVpnGatewayAttribute)用于修改VPN网关属性。
* @method Models\ReleaseAddressesResponse ReleaseAddresses(Models\ReleaseAddressesRequest $req) 本接口 (ReleaseAddresses) 用于释放一个或多个[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)。
* 该操作不可逆,释放后 EIP 关联的 IP 地址将不再属于您的名下。
* 只有状态为 UNBIND 的 EIP 才能进行释放操作。
+* @method Models\RenewVpnGatewayResponse RenewVpnGateway(Models\RenewVpnGatewayRequest $req) 本接口(RenewVpnGateway)用于预付费(包年包月)VPN网关续费。目前只支持IPSEC网关。
* @method Models\ReplaceRouteTableAssociationResponse ReplaceRouteTableAssociation(Models\ReplaceRouteTableAssociationRequest $req) 本接口(ReplaceRouteTableAssociation)用于修改子网(Subnet)关联的路由表(RouteTable)。
* 一个子网只能关联一个路由表。
* @method Models\ReplaceRoutesResponse ReplaceRoutes(Models\ReplaceRoutesRequest $req) 本接口(ReplaceRoutes)根据路由策略ID(RouteId)修改指定的路由策略(Route),支持批量修改。
@@ -158,6 +176,8 @@
单个请求中只能替换单个方向的一条规则, 必须要指定索引(PolicyIndex)。
* @method Models\ResetRoutesResponse ResetRoutes(Models\ResetRoutesRequest $req) 本接口(ResetRoutes)用于对某个路由表名称和所有路由策略(Route)进行重新设置。
注意: 调用本接口是先删除当前路由表中所有路由策略, 再保存新提交的路由策略内容, 会引起网络中断。
+* @method Models\ResetVpnConnectionResponse ResetVpnConnection(Models\ResetVpnConnectionRequest $req) 本接口(ResetVpnConnection)用于重置VPN通道。
+* @method Models\ResetVpnGatewayInternetMaxBandwidthResponse ResetVpnGatewayInternetMaxBandwidth(Models\ResetVpnGatewayInternetMaxBandwidthRequest $req) 本接口(ResetVpnGatewayInternetMaxBandwidth)调整VPN网关带宽上限。目前支持升级配置,如果是包年包月VPN网关需要在有效期内。
* @method Models\TransformAddressResponse TransformAddress(Models\TransformAddressRequest $req) 本接口 (TransformAddress) 用于将实例的普通公网 IP 转换为[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)。
* 平台对用户每地域每日解绑 EIP 重新分配普通公网 IP 次数有所限制(可参见 [EIP 产品简介](/document/product/213/1941))。上述配额可通过 [DescribeAddressQuota](https://cloud.tencent.com/document/api/213/1378) 接口获取。
* @method Models\UnassignPrivateIpAddressesResponse UnassignPrivateIpAddresses(Models\UnassignPrivateIpAddressesRequest $req) 本接口(UnassignPrivateIpAddresses)用于弹性网卡退还内网 IP。