-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af29173
commit a8cb7c2
Showing
4 changed files
with
467 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
332 changes: 332 additions & 0 deletions
332
src/TencentCloud/Cynosdb/V20190107/Models/RollbackToNewClusterRequest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,332 @@ | ||
<?php | ||
/* | ||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
namespace TencentCloud\Cynosdb\V20190107\Models; | ||
use TencentCloud\Common\AbstractModel; | ||
|
||
/** | ||
* RollbackToNewCluster请求参数结构体 | ||
* | ||
* @method string getZone() 获取可用区 | ||
* @method void setZone(string $Zone) 设置可用区 | ||
* @method string getOriginalClusterId() 获取回档时,传入源集群ID,用于查找源poolId | ||
* @method void setOriginalClusterId(string $OriginalClusterId) 设置回档时,传入源集群ID,用于查找源poolId | ||
* @method string getClusterName() 获取集群名称,长度小于64个字符,每个字符取值范围:大/小写字母,数字,特殊符号('-','_','.') | ||
* @method void setClusterName(string $ClusterName) 设置集群名称,长度小于64个字符,每个字符取值范围:大/小写字母,数字,特殊符号('-','_','.') | ||
* @method string getUniqVpcId() 获取所属VPC网络ID | ||
* @method void setUniqVpcId(string $UniqVpcId) 设置所属VPC网络ID | ||
* @method string getUniqSubnetId() 获取所属子网ID | ||
* @method void setUniqSubnetId(string $UniqSubnetId) 设置所属子网ID | ||
* @method integer getAutoVoucher() 获取是否自动选择代金券 1是 0否 默认为0 | ||
* @method void setAutoVoucher(integer $AutoVoucher) 设置是否自动选择代金券 1是 0否 默认为0 | ||
* @method string getDbMode() 获取Db类型 | ||
当DbType为MYSQL时可选(默认NORMAL): | ||
<li>NORMAL</li> | ||
<li>SERVERLESS</li> | ||
* @method void setDbMode(string $DbMode) 设置Db类型 | ||
当DbType为MYSQL时可选(默认NORMAL): | ||
<li>NORMAL</li> | ||
<li>SERVERLESS</li> | ||
* @method float getMinCpu() 获取当DbMode为SEVERLESS时必填 | ||
cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回 | ||
* @method void setMinCpu(float $MinCpu) 设置当DbMode为SEVERLESS时必填 | ||
cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回 | ||
* @method float getMaxCpu() 获取当DbMode为SEVERLESS时必填: | ||
cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回 | ||
* @method void setMaxCpu(float $MaxCpu) 设置当DbMode为SEVERLESS时必填: | ||
cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回 | ||
* @method string getAutoPause() 获取当DbMode为SEVERLESS时,指定集群是否自动暂停,可选范围 | ||
<li>yes</li> | ||
<li>no</li> | ||
默认值:yes | ||
* @method void setAutoPause(string $AutoPause) 设置当DbMode为SEVERLESS时,指定集群是否自动暂停,可选范围 | ||
<li>yes</li> | ||
<li>no</li> | ||
默认值:yes | ||
* @method integer getAutoPauseDelay() 获取当DbMode为SEVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200] | ||
默认值:600 | ||
* @method void setAutoPauseDelay(integer $AutoPauseDelay) 设置当DbMode为SEVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200] | ||
默认值:600 | ||
* @method array getSecurityGroupIds() 获取安全组id数组 | ||
* @method void setSecurityGroupIds(array $SecurityGroupIds) 设置安全组id数组 | ||
* @method array getAlarmPolicyIds() 获取告警策略Id数组 | ||
* @method void setAlarmPolicyIds(array $AlarmPolicyIds) 设置告警策略Id数组 | ||
* @method array getClusterParams() 获取参数数组,暂时支持character_set_server (utf8|latin1|gbk|utf8mb4) ,lower_case_table_names,1-大小写不敏感,0-大小写敏感 | ||
* @method void setClusterParams(array $ClusterParams) 设置参数数组,暂时支持character_set_server (utf8|latin1|gbk|utf8mb4) ,lower_case_table_names,1-大小写不敏感,0-大小写敏感 | ||
* @method integer getDealMode() 获取0-下单并支付 1-下单 | ||
* @method void setDealMode(integer $DealMode) 设置0-下单并支付 1-下单 | ||
* @method integer getParamTemplateId() 获取参数模板ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID | ||
* @method void setParamTemplateId(integer $ParamTemplateId) 设置参数模板ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID | ||
* @method array getResourceTags() 获取集群创建需要绑定的tag数组信息 | ||
* @method void setResourceTags(array $ResourceTags) 设置集群创建需要绑定的tag数组信息 | ||
* @method array getInstanceInitInfos() 获取实例初始化配置信息,主要用于购买集群时选不同规格实例 | ||
* @method void setInstanceInitInfos(array $InstanceInitInfos) 设置实例初始化配置信息,主要用于购买集群时选不同规格实例 | ||
* @method integer getRollbackId() 获取快照回档,表示snapshotId;时间点回档,表示queryId,为0,表示需要判断时间点是否有效 | ||
* @method void setRollbackId(integer $RollbackId) 设置快照回档,表示snapshotId;时间点回档,表示queryId,为0,表示需要判断时间点是否有效 | ||
* @method string getExpectTime() 获取时间点回档,指定时间;快照回档,快照时间 | ||
* @method void setExpectTime(string $ExpectTime) 设置时间点回档,指定时间;快照回档,快照时间 | ||
*/ | ||
class RollbackToNewClusterRequest extends AbstractModel | ||
{ | ||
/** | ||
* @var string 可用区 | ||
*/ | ||
public $Zone; | ||
|
||
/** | ||
* @var string 回档时,传入源集群ID,用于查找源poolId | ||
*/ | ||
public $OriginalClusterId; | ||
|
||
/** | ||
* @var string 集群名称,长度小于64个字符,每个字符取值范围:大/小写字母,数字,特殊符号('-','_','.') | ||
*/ | ||
public $ClusterName; | ||
|
||
/** | ||
* @var string 所属VPC网络ID | ||
*/ | ||
public $UniqVpcId; | ||
|
||
/** | ||
* @var string 所属子网ID | ||
*/ | ||
public $UniqSubnetId; | ||
|
||
/** | ||
* @var integer 是否自动选择代金券 1是 0否 默认为0 | ||
*/ | ||
public $AutoVoucher; | ||
|
||
/** | ||
* @var string Db类型 | ||
当DbType为MYSQL时可选(默认NORMAL): | ||
<li>NORMAL</li> | ||
<li>SERVERLESS</li> | ||
*/ | ||
public $DbMode; | ||
|
||
/** | ||
* @var float 当DbMode为SEVERLESS时必填 | ||
cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回 | ||
*/ | ||
public $MinCpu; | ||
|
||
/** | ||
* @var float 当DbMode为SEVERLESS时必填: | ||
cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回 | ||
*/ | ||
public $MaxCpu; | ||
|
||
/** | ||
* @var string 当DbMode为SEVERLESS时,指定集群是否自动暂停,可选范围 | ||
<li>yes</li> | ||
<li>no</li> | ||
默认值:yes | ||
*/ | ||
public $AutoPause; | ||
|
||
/** | ||
* @var integer 当DbMode为SEVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200] | ||
默认值:600 | ||
*/ | ||
public $AutoPauseDelay; | ||
|
||
/** | ||
* @var array 安全组id数组 | ||
*/ | ||
public $SecurityGroupIds; | ||
|
||
/** | ||
* @var array 告警策略Id数组 | ||
*/ | ||
public $AlarmPolicyIds; | ||
|
||
/** | ||
* @var array 参数数组,暂时支持character_set_server (utf8|latin1|gbk|utf8mb4) ,lower_case_table_names,1-大小写不敏感,0-大小写敏感 | ||
*/ | ||
public $ClusterParams; | ||
|
||
/** | ||
* @var integer 0-下单并支付 1-下单 | ||
*/ | ||
public $DealMode; | ||
|
||
/** | ||
* @var integer 参数模板ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID | ||
*/ | ||
public $ParamTemplateId; | ||
|
||
/** | ||
* @var array 集群创建需要绑定的tag数组信息 | ||
*/ | ||
public $ResourceTags; | ||
|
||
/** | ||
* @var array 实例初始化配置信息,主要用于购买集群时选不同规格实例 | ||
*/ | ||
public $InstanceInitInfos; | ||
|
||
/** | ||
* @var integer 快照回档,表示snapshotId;时间点回档,表示queryId,为0,表示需要判断时间点是否有效 | ||
*/ | ||
public $RollbackId; | ||
|
||
/** | ||
* @var string 时间点回档,指定时间;快照回档,快照时间 | ||
*/ | ||
public $ExpectTime; | ||
|
||
/** | ||
* @param string $Zone 可用区 | ||
* @param string $OriginalClusterId 回档时,传入源集群ID,用于查找源poolId | ||
* @param string $ClusterName 集群名称,长度小于64个字符,每个字符取值范围:大/小写字母,数字,特殊符号('-','_','.') | ||
* @param string $UniqVpcId 所属VPC网络ID | ||
* @param string $UniqSubnetId 所属子网ID | ||
* @param integer $AutoVoucher 是否自动选择代金券 1是 0否 默认为0 | ||
* @param string $DbMode Db类型 | ||
当DbType为MYSQL时可选(默认NORMAL): | ||
<li>NORMAL</li> | ||
<li>SERVERLESS</li> | ||
* @param float $MinCpu 当DbMode为SEVERLESS时必填 | ||
cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回 | ||
* @param float $MaxCpu 当DbMode为SEVERLESS时必填: | ||
cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回 | ||
* @param string $AutoPause 当DbMode为SEVERLESS时,指定集群是否自动暂停,可选范围 | ||
<li>yes</li> | ||
<li>no</li> | ||
默认值:yes | ||
* @param integer $AutoPauseDelay 当DbMode为SEVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200] | ||
默认值:600 | ||
* @param array $SecurityGroupIds 安全组id数组 | ||
* @param array $AlarmPolicyIds 告警策略Id数组 | ||
* @param array $ClusterParams 参数数组,暂时支持character_set_server (utf8|latin1|gbk|utf8mb4) ,lower_case_table_names,1-大小写不敏感,0-大小写敏感 | ||
* @param integer $DealMode 0-下单并支付 1-下单 | ||
* @param integer $ParamTemplateId 参数模板ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID | ||
* @param array $ResourceTags 集群创建需要绑定的tag数组信息 | ||
* @param array $InstanceInitInfos 实例初始化配置信息,主要用于购买集群时选不同规格实例 | ||
* @param integer $RollbackId 快照回档,表示snapshotId;时间点回档,表示queryId,为0,表示需要判断时间点是否有效 | ||
* @param string $ExpectTime 时间点回档,指定时间;快照回档,快照时间 | ||
*/ | ||
function __construct() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* For internal only. DO NOT USE IT. | ||
*/ | ||
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("OriginalClusterId",$param) and $param["OriginalClusterId"] !== null) { | ||
$this->OriginalClusterId = $param["OriginalClusterId"]; | ||
} | ||
|
||
if (array_key_exists("ClusterName",$param) and $param["ClusterName"] !== null) { | ||
$this->ClusterName = $param["ClusterName"]; | ||
} | ||
|
||
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("AutoVoucher",$param) and $param["AutoVoucher"] !== null) { | ||
$this->AutoVoucher = $param["AutoVoucher"]; | ||
} | ||
|
||
if (array_key_exists("DbMode",$param) and $param["DbMode"] !== null) { | ||
$this->DbMode = $param["DbMode"]; | ||
} | ||
|
||
if (array_key_exists("MinCpu",$param) and $param["MinCpu"] !== null) { | ||
$this->MinCpu = $param["MinCpu"]; | ||
} | ||
|
||
if (array_key_exists("MaxCpu",$param) and $param["MaxCpu"] !== null) { | ||
$this->MaxCpu = $param["MaxCpu"]; | ||
} | ||
|
||
if (array_key_exists("AutoPause",$param) and $param["AutoPause"] !== null) { | ||
$this->AutoPause = $param["AutoPause"]; | ||
} | ||
|
||
if (array_key_exists("AutoPauseDelay",$param) and $param["AutoPauseDelay"] !== null) { | ||
$this->AutoPauseDelay = $param["AutoPauseDelay"]; | ||
} | ||
|
||
if (array_key_exists("SecurityGroupIds",$param) and $param["SecurityGroupIds"] !== null) { | ||
$this->SecurityGroupIds = $param["SecurityGroupIds"]; | ||
} | ||
|
||
if (array_key_exists("AlarmPolicyIds",$param) and $param["AlarmPolicyIds"] !== null) { | ||
$this->AlarmPolicyIds = $param["AlarmPolicyIds"]; | ||
} | ||
|
||
if (array_key_exists("ClusterParams",$param) and $param["ClusterParams"] !== null) { | ||
$this->ClusterParams = []; | ||
foreach ($param["ClusterParams"] as $key => $value){ | ||
$obj = new ParamItem(); | ||
$obj->deserialize($value); | ||
array_push($this->ClusterParams, $obj); | ||
} | ||
} | ||
|
||
if (array_key_exists("DealMode",$param) and $param["DealMode"] !== null) { | ||
$this->DealMode = $param["DealMode"]; | ||
} | ||
|
||
if (array_key_exists("ParamTemplateId",$param) and $param["ParamTemplateId"] !== null) { | ||
$this->ParamTemplateId = $param["ParamTemplateId"]; | ||
} | ||
|
||
if (array_key_exists("ResourceTags",$param) and $param["ResourceTags"] !== null) { | ||
$this->ResourceTags = []; | ||
foreach ($param["ResourceTags"] as $key => $value){ | ||
$obj = new Tag(); | ||
$obj->deserialize($value); | ||
array_push($this->ResourceTags, $obj); | ||
} | ||
} | ||
|
||
if (array_key_exists("InstanceInitInfos",$param) and $param["InstanceInitInfos"] !== null) { | ||
$this->InstanceInitInfos = []; | ||
foreach ($param["InstanceInitInfos"] as $key => $value){ | ||
$obj = new InstanceInitInfo(); | ||
$obj->deserialize($value); | ||
array_push($this->InstanceInitInfos, $obj); | ||
} | ||
} | ||
|
||
if (array_key_exists("RollbackId",$param) and $param["RollbackId"] !== null) { | ||
$this->RollbackId = $param["RollbackId"]; | ||
} | ||
|
||
if (array_key_exists("ExpectTime",$param) and $param["ExpectTime"] !== null) { | ||
$this->ExpectTime = $param["ExpectTime"]; | ||
} | ||
} | ||
} |
Oops, something went wrong.