tencentcloud-sdk-dcdb 1.0.262 → 1.0.263

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16b580aa2e4de3fec464a9c8d2bac9dcf85d054d
4
- data.tar.gz: 2c1fe1481eb4c12df4425357a8d8cd47d4fdb414
3
+ metadata.gz: a400748052dcd969339e2f126ac6d57004c12454
4
+ data.tar.gz: 3c021fa1fe0d799deb2997cef2d30e16ef65194b
5
5
  SHA512:
6
- metadata.gz: 2be506681a6f31810ff0a0ed2bf5a09e2bebaeaf724273fb694e9733b6fb7e53deb48bda8d5b65ff0099dfd47cfa77d51458f5f6a3866b0e76642a6d55564646
7
- data.tar.gz: fa5b30f33d063fcf7c1af5a10a325c789c59fd62dfedea03da5f3e07fdb85f3041a6901b045e3af2343cdc37b7111b25f55bbd1446a9663faf132af7e8ef9a42
6
+ metadata.gz: ed93a4ba174f44144a050ff613975570a60f8dc661162cf713497f8ba8cea8f7ed603f29649a29086b525c34cec02afee1e35bb04c36c674023f86a902597d87
7
+ data.tar.gz: 04e08723902eafd2ebd385fa0dd93c148b690cedd80243891cbafcc041beb2bac90de137dc24bee218d9e67d1a459a81c5ad536dcc4a3cc498f039df50cc370e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.262
1
+ 1.0.263
@@ -222,6 +222,30 @@ module TencentCloud
222
222
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
223
223
  end
224
224
 
225
+ # 创建DCDB后付费实例
226
+
227
+ # @param request: Request instance for CreateHourDCDBInstance.
228
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::CreateHourDCDBInstanceRequest`
229
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::CreateHourDCDBInstanceResponse`
230
+ def CreateHourDCDBInstance(request)
231
+ body = send_request('CreateHourDCDBInstance', request.serialize)
232
+ response = JSON.parse(body)
233
+ if response['Response'].key?('Error') == false
234
+ model = CreateHourDCDBInstanceResponse.new
235
+ model.deserialize(response['Response'])
236
+ model
237
+ else
238
+ code = response['Response']['Error']['Code']
239
+ message = response['Response']['Error']['Message']
240
+ reqid = response['Response']['RequestId']
241
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
242
+ end
243
+ rescue TencentCloud::Common::TencentCloudSDKException => e
244
+ raise e
245
+ rescue StandardError => e
246
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
247
+ end
248
+
225
249
  # 本接口(DeleteAccount)用于删除云数据库账号。用户名+host唯一确定一个账号。
226
250
 
227
251
  # @param request: Request instance for DeleteAccount.
@@ -676,6 +676,148 @@ module TencentCloud
676
676
  end
677
677
  end
678
678
 
679
+ # CreateHourDCDBInstance请求参数结构体
680
+ class CreateHourDCDBInstanceRequest < TencentCloud::Common::AbstractModel
681
+ # @param ShardMemory: 分片内存大小,单位:GB,可以通过 DescribeShardSpec
682
+ # 查询实例规格获得。
683
+ # @type ShardMemory: Integer
684
+ # @param ShardStorage: 分片存储空间大小,单位:GB,可以通过 DescribeShardSpec
685
+ # 查询实例规格获得。
686
+ # @type ShardStorage: Integer
687
+ # @param ShardNodeCount: 单个分片节点个数,可以通过 DescribeShardSpec
688
+ # 查询实例规格获得。
689
+ # @type ShardNodeCount: Integer
690
+ # @param ShardCount: 实例分片个数,可选范围2-8,可以通过升级实例进行新增分片到最多64个分片。
691
+ # @type ShardCount: Integer
692
+ # @param Count: 欲购买实例的数量
693
+ # @type Count: Integer
694
+ # @param ProjectId: 项目 ID,可以通过查看项目列表获取,不传则关联到默认项目
695
+ # @type ProjectId: Integer
696
+ # @param VpcId: 虚拟私有网络 ID,不传或传空表示创建为基础网络
697
+ # @type VpcId: String
698
+ # @param SubnetId: 虚拟私有网络子网 ID,VpcId不为空时必填
699
+ # @type SubnetId: String
700
+ # @param ShardCpu: 分片cpu大小,单位:核,可以通过 DescribeShardSpec
701
+ # 查询实例规格获得。
702
+ # @type ShardCpu: Integer
703
+ # @param DbVersionId: 数据库引擎版本,当前可选:10.0.10,10.1.9,5.7.17。
704
+ # 10.0.10 - Mariadb 10.0.10;
705
+ # 10.1.9 - Mariadb 10.1.9;
706
+ # 5.7.17 - Percona 5.7.17。
707
+ # 如果不填的话,默认为10.1.9,表示Mariadb 10.1.9。
708
+ # @type DbVersionId: String
709
+ # @param Zones: 分片节点可用区分布,最多可填两个可用区。当分片规格为一主两从时,其中两个节点在第一个可用区。
710
+ # @type Zones: Array
711
+ # @param SecurityGroupId: 安全组id
712
+ # @type SecurityGroupId: String
713
+ # @param InstanceName: 实例名称, 可以通过该字段自主的设置实例的名字
714
+ # @type InstanceName: String
715
+ # @param Ipv6Flag: 是否支持IPv6
716
+ # @type Ipv6Flag: Integer
717
+ # @param ResourceTags: 标签键值对数组
718
+ # @type ResourceTags: Array
719
+ # @param DcnRegion: DCN源地域
720
+ # @type DcnRegion: String
721
+ # @param DcnInstanceId: DCN源实例ID
722
+ # @type DcnInstanceId: String
723
+ # @param InitParams: 参数列表。本接口的可选值为:character_set_server(字符集,必传),lower_case_table_names(表名大小写敏感,必传,0 - 敏感;1-不敏感),innodb_page_size(innodb数据页,默认16K),sync_mode(同步模式:0 - 异步; 1 - 强同步;2 - 强同步可退化。默认为强同步可退化)。
724
+ # @type InitParams: Array
725
+ # @param RollbackInstanceId: 需要回档的源实例ID
726
+ # @type RollbackInstanceId: String
727
+ # @param RollbackTime: 回档时间
728
+ # @type RollbackTime: String
729
+ # @param SecurityGroupIds: 安全组ids,安全组可以传数组形式,兼容之前SecurityGroupId参数
730
+ # @type SecurityGroupIds: Array
731
+
732
+ attr_accessor :ShardMemory, :ShardStorage, :ShardNodeCount, :ShardCount, :Count, :ProjectId, :VpcId, :SubnetId, :ShardCpu, :DbVersionId, :Zones, :SecurityGroupId, :InstanceName, :Ipv6Flag, :ResourceTags, :DcnRegion, :DcnInstanceId, :InitParams, :RollbackInstanceId, :RollbackTime, :SecurityGroupIds
733
+
734
+ def initialize(shardmemory=nil, shardstorage=nil, shardnodecount=nil, shardcount=nil, count=nil, projectid=nil, vpcid=nil, subnetid=nil, shardcpu=nil, dbversionid=nil, zones=nil, securitygroupid=nil, instancename=nil, ipv6flag=nil, resourcetags=nil, dcnregion=nil, dcninstanceid=nil, initparams=nil, rollbackinstanceid=nil, rollbacktime=nil, securitygroupids=nil)
735
+ @ShardMemory = shardmemory
736
+ @ShardStorage = shardstorage
737
+ @ShardNodeCount = shardnodecount
738
+ @ShardCount = shardcount
739
+ @Count = count
740
+ @ProjectId = projectid
741
+ @VpcId = vpcid
742
+ @SubnetId = subnetid
743
+ @ShardCpu = shardcpu
744
+ @DbVersionId = dbversionid
745
+ @Zones = zones
746
+ @SecurityGroupId = securitygroupid
747
+ @InstanceName = instancename
748
+ @Ipv6Flag = ipv6flag
749
+ @ResourceTags = resourcetags
750
+ @DcnRegion = dcnregion
751
+ @DcnInstanceId = dcninstanceid
752
+ @InitParams = initparams
753
+ @RollbackInstanceId = rollbackinstanceid
754
+ @RollbackTime = rollbacktime
755
+ @SecurityGroupIds = securitygroupids
756
+ end
757
+
758
+ def deserialize(params)
759
+ @ShardMemory = params['ShardMemory']
760
+ @ShardStorage = params['ShardStorage']
761
+ @ShardNodeCount = params['ShardNodeCount']
762
+ @ShardCount = params['ShardCount']
763
+ @Count = params['Count']
764
+ @ProjectId = params['ProjectId']
765
+ @VpcId = params['VpcId']
766
+ @SubnetId = params['SubnetId']
767
+ @ShardCpu = params['ShardCpu']
768
+ @DbVersionId = params['DbVersionId']
769
+ @Zones = params['Zones']
770
+ @SecurityGroupId = params['SecurityGroupId']
771
+ @InstanceName = params['InstanceName']
772
+ @Ipv6Flag = params['Ipv6Flag']
773
+ unless params['ResourceTags'].nil?
774
+ @ResourceTags = []
775
+ params['ResourceTags'].each do |i|
776
+ resourcetag_tmp = ResourceTag.new
777
+ resourcetag_tmp.deserialize(i)
778
+ @ResourceTags << resourcetag_tmp
779
+ end
780
+ end
781
+ @DcnRegion = params['DcnRegion']
782
+ @DcnInstanceId = params['DcnInstanceId']
783
+ unless params['InitParams'].nil?
784
+ @InitParams = []
785
+ params['InitParams'].each do |i|
786
+ dbparamvalue_tmp = DBParamValue.new
787
+ dbparamvalue_tmp.deserialize(i)
788
+ @InitParams << dbparamvalue_tmp
789
+ end
790
+ end
791
+ @RollbackInstanceId = params['RollbackInstanceId']
792
+ @RollbackTime = params['RollbackTime']
793
+ @SecurityGroupIds = params['SecurityGroupIds']
794
+ end
795
+ end
796
+
797
+ # CreateHourDCDBInstance返回参数结构体
798
+ class CreateHourDCDBInstanceResponse < TencentCloud::Common::AbstractModel
799
+ # @param InstanceIds: 订单对应的实例 ID 列表,如果此处没有返回实例 ID,可以通过订单查询接口获取。还可通过实例查询接口查询实例是否创建完成。
800
+ # @type InstanceIds: Array
801
+ # @param FlowId: 流程id,可以根据流程id查询创建进度
802
+ # @type FlowId: Integer
803
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
804
+ # @type RequestId: String
805
+
806
+ attr_accessor :InstanceIds, :FlowId, :RequestId
807
+
808
+ def initialize(instanceids=nil, flowid=nil, requestid=nil)
809
+ @InstanceIds = instanceids
810
+ @FlowId = flowid
811
+ @RequestId = requestid
812
+ end
813
+
814
+ def deserialize(params)
815
+ @InstanceIds = params['InstanceIds']
816
+ @FlowId = params['FlowId']
817
+ @RequestId = params['RequestId']
818
+ end
819
+ end
820
+
679
821
  # 云数据库账号信息
680
822
  class DBAccount < TencentCloud::Common::AbstractModel
681
823
  # @param UserName: 用户名
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dcdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.262
4
+ version: 1.0.263
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-22 00:00:00.000000000 Z
11
+ date: 2022-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common