tencentcloud-sdk-redis 3.0.537 → 3.0.539

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: df6130dcc68817a0b8174effb6ff71f1df59f435
4
- data.tar.gz: 208ce1dc3dce6b5600d88a83d0e7a04861eac302
3
+ metadata.gz: 06ba5d5e66a9f9c250624e429165bd3b5a881b4f
4
+ data.tar.gz: 4282364624ba68a196498d64f1daaee981259917
5
5
  SHA512:
6
- metadata.gz: 2116ddd7fbc3add5a5c52fa96c3365ea64b7d79158b95a96232e400c0353c59461e56c4cf71e02400220febe9e10fce6e9945d37eba384b6e3208aabd0dbc495
7
- data.tar.gz: 955dfdb6b2f730523956d9f5f9091df49681f91d911b1ca95ed0bce66bbc2244bf8fbed191c9d4178b9f249ca36824a7e9273fb39e36c1199a8aad784a2da661
6
+ metadata.gz: f41f7387986c907805cf43249e5706b6f01e11e987d6ce11912ff4c9bc496abbc6f70d0f2b8c0bff3c2a868f685fdec374b929c9c33fcebcdc8d3daa8384ad6e
7
+ data.tar.gz: 02e6b50fa711d19d209f584bd4f28618cd3d5afa45bc7eedc2ccc7dfa30f414a8944fcac1f668e351aeff3ecedd03240aff3c4f31be6ba6a01ad3324539577bb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.537
1
+ 3.0.539
@@ -245,6 +245,30 @@ module TencentCloud
245
245
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
246
  end
247
247
 
248
+ # 本接口(CloneInstances)可基于当前实例的备份文件克隆一个完整的新实例。
249
+
250
+ # @param request: Request instance for CloneInstances.
251
+ # @type request: :class:`Tencentcloud::redis::V20180412::CloneInstancesRequest`
252
+ # @rtype: :class:`Tencentcloud::redis::V20180412::CloneInstancesResponse`
253
+ def CloneInstances(request)
254
+ body = send_request('CloneInstances', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = CloneInstancesResponse.new
258
+ model.deserialize(response['Response'])
259
+ model
260
+ else
261
+ code = response['Response']['Error']['Code']
262
+ message = response['Response']['Error']['Message']
263
+ reqid = response['Response']['RequestId']
264
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
265
+ end
266
+ rescue TencentCloud::Common::TencentCloudSDKException => e
267
+ raise e
268
+ rescue StandardError => e
269
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
+ end
271
+
248
272
  # 关闭SSL
249
273
 
250
274
  # @param request: Request instance for CloseSSL.
@@ -531,6 +531,132 @@ module TencentCloud
531
531
  end
532
532
  end
533
533
 
534
+ # CloneInstances请求参数结构体
535
+ class CloneInstancesRequest < TencentCloud::Common::AbstractModel
536
+ # @param InstanceId: 当前实例ID。
537
+ # @type InstanceId: String
538
+ # @param GoodsNum: 单次克隆实例的数量。包年包月每次购买最大数量为100。按量计费每次购买最大数量为30,每个地域购买数量取值范围为[1,100]。
539
+ # @type GoodsNum: Integer
540
+ # @param ZoneId: 克隆实例所属的可用区ID。当前所支持的可用区 ID,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106) 。
541
+ # @type ZoneId: Integer
542
+ # @param BillingMode: 付费方式。<ul><li>0:按量计费。</li><li>1:包年包月。</li></ul>
543
+ # @type BillingMode: Integer
544
+ # @param Period: 购买实例时长。<ul><li>单位:月。</li><li>付费方式选择包年包月计费时,取值范围为[1,2,3,4,5,6,7,8,9,10,11,12,24,36,48,60]。</li><li>付费方式选择按量计费时,设置为1。</li></ul>
545
+ # @type Period: Integer
546
+ # @param SecurityGroupIdList: 安全组ID。请登录控制台,在<b>安全组</b>页面获取安全组 ID 信息。
547
+ # @type SecurityGroupIdList: Array
548
+ # @param BackupId: 克隆实例使用的备份ID。请通过接口[DescribeInstanceBackups](https://cloud.tencent.com/document/product/239/20011)获取备份ID。
549
+ # @type BackupId: String
550
+ # @param NoAuth: 配置克隆实例是否支持免密访问。开启 SSL 与外网均不支持免密访问。<ul><li>true:免密实例,</li><li>false:非免密实例。默认为非免密实例。</li></ul>
551
+ # @type NoAuth: Boolean
552
+ # @param VpcId: 私有网络ID。如果未配置该参数,默认选择基础网络。
553
+ # @type VpcId: String
554
+ # @param SubnetId: 私有网络所属子网。基础网络时该参数无需配置。
555
+ # @type SubnetId: String
556
+ # @param InstanceName: 克隆实例的名称。<br>仅支持长度小于60的中文、英文或者数字,短划线"-"、下划线"_"。</br>
557
+ # @type InstanceName: String
558
+ # @param Password: 克隆实例的访问密码。<ul><li>当输入参数<b>NoAuth</b>为<b>true</b>时,可不设置该参数。</li><li>当实例为Redis2.8、4.0和5.0时,其密码格式为:8-30个字符,至少包含小写字母、大写字母、数字和字符 ()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的2种,不能以"/"开头;</li><li>当实例为CKV 3.2时,其密码格式为:8-30个字符,必须包含字母和数字,且不包含其他字符。</li></ul>
559
+ # @type Password: String
560
+ # @param AutoRenew: 自动续费标识。<ul><li>0:默认状态(手动续费)。</li><li>1:自动续费。</li><li>2:不自动续费,到期自动隔离。</li></ul>
561
+ # @type AutoRenew: Integer
562
+ # @param VPort: 用户自定义的端口,默认为6379,取值范围[1024,65535]。
563
+ # @type VPort: Integer
564
+ # @param NodeSet: 实例的节点信息。<ul><li>目前支持配置节点的类型(主节点或者副本节点),及其节点的可用区信息。具体信息,请参见[RedisNodeInfo](https://cloud.tencent.com/document/product/239/20022#RedisNodeInfo)。</li><li>单可用区部署可不配置该参数。</li></ul>
565
+ # @type NodeSet: Array
566
+ # @param ProjectId: 项目 ID。登录控制台,可在右上角的<b>账号中心</b> > <b>项目管理</b>中查找项目ID。
567
+ # @type ProjectId: Integer
568
+ # @param ResourceTags: 克隆实例需绑定的标签。
569
+ # @type ResourceTags: Array
570
+ # @param TemplateId: 克隆实例需要应用的参数模板ID,请登录 Redis 控制台,在<b>参数模板</b>页面获取。若不配置该参数,则应用默认的参数模板。
571
+ # @type TemplateId: String
572
+ # @param AlarmPolicyList: 指定克隆实例的告警策略 ID。请登录控制台,在<b>云监控</b> > <b>告警配置</b> > <b>告警策略</b>页面获取策略 ID 信息。
573
+ # @type AlarmPolicyList: Array
574
+
575
+ attr_accessor :InstanceId, :GoodsNum, :ZoneId, :BillingMode, :Period, :SecurityGroupIdList, :BackupId, :NoAuth, :VpcId, :SubnetId, :InstanceName, :Password, :AutoRenew, :VPort, :NodeSet, :ProjectId, :ResourceTags, :TemplateId, :AlarmPolicyList
576
+
577
+ def initialize(instanceid=nil, goodsnum=nil, zoneid=nil, billingmode=nil, period=nil, securitygroupidlist=nil, backupid=nil, noauth=nil, vpcid=nil, subnetid=nil, instancename=nil, password=nil, autorenew=nil, vport=nil, nodeset=nil, projectid=nil, resourcetags=nil, templateid=nil, alarmpolicylist=nil)
578
+ @InstanceId = instanceid
579
+ @GoodsNum = goodsnum
580
+ @ZoneId = zoneid
581
+ @BillingMode = billingmode
582
+ @Period = period
583
+ @SecurityGroupIdList = securitygroupidlist
584
+ @BackupId = backupid
585
+ @NoAuth = noauth
586
+ @VpcId = vpcid
587
+ @SubnetId = subnetid
588
+ @InstanceName = instancename
589
+ @Password = password
590
+ @AutoRenew = autorenew
591
+ @VPort = vport
592
+ @NodeSet = nodeset
593
+ @ProjectId = projectid
594
+ @ResourceTags = resourcetags
595
+ @TemplateId = templateid
596
+ @AlarmPolicyList = alarmpolicylist
597
+ end
598
+
599
+ def deserialize(params)
600
+ @InstanceId = params['InstanceId']
601
+ @GoodsNum = params['GoodsNum']
602
+ @ZoneId = params['ZoneId']
603
+ @BillingMode = params['BillingMode']
604
+ @Period = params['Period']
605
+ @SecurityGroupIdList = params['SecurityGroupIdList']
606
+ @BackupId = params['BackupId']
607
+ @NoAuth = params['NoAuth']
608
+ @VpcId = params['VpcId']
609
+ @SubnetId = params['SubnetId']
610
+ @InstanceName = params['InstanceName']
611
+ @Password = params['Password']
612
+ @AutoRenew = params['AutoRenew']
613
+ @VPort = params['VPort']
614
+ unless params['NodeSet'].nil?
615
+ @NodeSet = []
616
+ params['NodeSet'].each do |i|
617
+ redisnodeinfo_tmp = RedisNodeInfo.new
618
+ redisnodeinfo_tmp.deserialize(i)
619
+ @NodeSet << redisnodeinfo_tmp
620
+ end
621
+ end
622
+ @ProjectId = params['ProjectId']
623
+ unless params['ResourceTags'].nil?
624
+ @ResourceTags = []
625
+ params['ResourceTags'].each do |i|
626
+ resourcetag_tmp = ResourceTag.new
627
+ resourcetag_tmp.deserialize(i)
628
+ @ResourceTags << resourcetag_tmp
629
+ end
630
+ end
631
+ @TemplateId = params['TemplateId']
632
+ @AlarmPolicyList = params['AlarmPolicyList']
633
+ end
634
+ end
635
+
636
+ # CloneInstances返回参数结构体
637
+ class CloneInstancesResponse < TencentCloud::Common::AbstractModel
638
+ # @param DealId: 请求任务 ID。
639
+ # @type DealId: String
640
+ # @param InstanceIds: 克隆实例的 ID。
641
+ # @type InstanceIds: Array
642
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
643
+ # @type RequestId: String
644
+
645
+ attr_accessor :DealId, :InstanceIds, :RequestId
646
+
647
+ def initialize(dealid=nil, instanceids=nil, requestid=nil)
648
+ @DealId = dealid
649
+ @InstanceIds = instanceids
650
+ @RequestId = requestid
651
+ end
652
+
653
+ def deserialize(params)
654
+ @DealId = params['DealId']
655
+ @InstanceIds = params['InstanceIds']
656
+ @RequestId = params['RequestId']
657
+ end
658
+ end
659
+
534
660
  # CloseSSL请求参数结构体
535
661
  class CloseSSLRequest < TencentCloud::Common::AbstractModel
536
662
  # @param InstanceId: 实例ID。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.537
4
+ version: 3.0.539
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-24 00:00:00.000000000 Z
11
+ date: 2023-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common