tencentcloud-sdk-cdwch 3.0.648 → 3.0.650
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20200915/client.rb +96 -0
- data/lib/v20200915/models.rb +230 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 043b46fa938772bf186bc8e17903418bc81d15fe
|
4
|
+
data.tar.gz: 92bda33076ad65240d148b7aa31b21e44961f7be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6759f4440d3aef3e2b4230fb3281c617e8b0c9c73faadb789573ba2fe535708b8fa5cd4aae13e4a3c3c261c6908a298355318460d647a454c4a30e632c46d43
|
7
|
+
data.tar.gz: ad2c8484932c8afcfe5f1656a662889e223ea17d7424c5154e1781dc56ffe4daeb39e93b736224b77156264abe796c536bd55481767c4ce19690f03d24931171
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.650
|
data/lib/v20200915/client.rb
CHANGED
@@ -101,6 +101,78 @@ module TencentCloud
|
|
101
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
102
|
end
|
103
103
|
|
104
|
+
# 删除备份数据
|
105
|
+
|
106
|
+
# @param request: Request instance for DeleteBackUpData.
|
107
|
+
# @type request: :class:`Tencentcloud::cdwch::V20200915::DeleteBackUpDataRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::cdwch::V20200915::DeleteBackUpDataResponse`
|
109
|
+
def DeleteBackUpData(request)
|
110
|
+
body = send_request('DeleteBackUpData', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = DeleteBackUpDataResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
128
|
+
# 查询备份任务列表
|
129
|
+
|
130
|
+
# @param request: Request instance for DescribeBackUpJob.
|
131
|
+
# @type request: :class:`Tencentcloud::cdwch::V20200915::DescribeBackUpJobRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::cdwch::V20200915::DescribeBackUpJobResponse`
|
133
|
+
def DescribeBackUpJob(request)
|
134
|
+
body = send_request('DescribeBackUpJob', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = DescribeBackUpJobResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
152
|
+
# 查询备份任务详情
|
153
|
+
|
154
|
+
# @param request: Request instance for DescribeBackUpJobDetail.
|
155
|
+
# @type request: :class:`Tencentcloud::cdwch::V20200915::DescribeBackUpJobDetailRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::cdwch::V20200915::DescribeBackUpJobDetailResponse`
|
157
|
+
def DescribeBackUpJobDetail(request)
|
158
|
+
body = send_request('DescribeBackUpJobDetail', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DescribeBackUpJobDetailResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
104
176
|
# 查询备份策略信息
|
105
177
|
|
106
178
|
# @param request: Request instance for DescribeBackUpSchedule.
|
@@ -461,6 +533,30 @@ module TencentCloud
|
|
461
533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
534
|
end
|
463
535
|
|
536
|
+
# 备份恢复
|
537
|
+
|
538
|
+
# @param request: Request instance for RecoverBackUpJob.
|
539
|
+
# @type request: :class:`Tencentcloud::cdwch::V20200915::RecoverBackUpJobRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::cdwch::V20200915::RecoverBackUpJobResponse`
|
541
|
+
def RecoverBackUpJob(request)
|
542
|
+
body = send_request('RecoverBackUpJob', request.serialize)
|
543
|
+
response = JSON.parse(body)
|
544
|
+
if response['Response'].key?('Error') == false
|
545
|
+
model = RecoverBackUpJobResponse.new
|
546
|
+
model.deserialize(response['Response'])
|
547
|
+
model
|
548
|
+
else
|
549
|
+
code = response['Response']['Error']['Code']
|
550
|
+
message = response['Response']['Error']['Message']
|
551
|
+
reqid = response['Response']['RequestId']
|
552
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
553
|
+
end
|
554
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
555
|
+
raise e
|
556
|
+
rescue StandardError => e
|
557
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
|
+
end
|
559
|
+
|
464
560
|
# 扩容磁盘,包含扩容数据节点,zk节点
|
465
561
|
|
466
562
|
# @param request: Request instance for ResizeDisk.
|
data/lib/v20200915/models.rb
CHANGED
@@ -90,6 +90,46 @@ module TencentCloud
|
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
93
|
+
# 备份任务详情
|
94
|
+
class BackUpJobDisplay < TencentCloud::Common::AbstractModel
|
95
|
+
# @param JobId: 备份任务id
|
96
|
+
# @type JobId: Integer
|
97
|
+
# @param Snapshot: 备份任务名
|
98
|
+
# @type Snapshot: String
|
99
|
+
# @param BackUpType: 任务类型(元数据),(数据)
|
100
|
+
# @type BackUpType: String
|
101
|
+
# @param BackUpSize: 备份数据量
|
102
|
+
# @type BackUpSize: Integer
|
103
|
+
# @param BackUpTime: 任务创建时间
|
104
|
+
# @type BackUpTime: String
|
105
|
+
# @param ExpireTime: 任务过期时间
|
106
|
+
# @type ExpireTime: String
|
107
|
+
# @param JobStatus: 任务状态
|
108
|
+
# @type JobStatus: String
|
109
|
+
|
110
|
+
attr_accessor :JobId, :Snapshot, :BackUpType, :BackUpSize, :BackUpTime, :ExpireTime, :JobStatus
|
111
|
+
|
112
|
+
def initialize(jobid=nil, snapshot=nil, backuptype=nil, backupsize=nil, backuptime=nil, expiretime=nil, jobstatus=nil)
|
113
|
+
@JobId = jobid
|
114
|
+
@Snapshot = snapshot
|
115
|
+
@BackUpType = backuptype
|
116
|
+
@BackUpSize = backupsize
|
117
|
+
@BackUpTime = backuptime
|
118
|
+
@ExpireTime = expiretime
|
119
|
+
@JobStatus = jobstatus
|
120
|
+
end
|
121
|
+
|
122
|
+
def deserialize(params)
|
123
|
+
@JobId = params['JobId']
|
124
|
+
@Snapshot = params['Snapshot']
|
125
|
+
@BackUpType = params['BackUpType']
|
126
|
+
@BackUpSize = params['BackUpSize']
|
127
|
+
@BackUpTime = params['BackUpTime']
|
128
|
+
@ExpireTime = params['ExpireTime']
|
129
|
+
@JobStatus = params['JobStatus']
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
93
133
|
# 备份表信息
|
94
134
|
class BackupTableContent < TencentCloud::Common::AbstractModel
|
95
135
|
# @param Database: 数据库
|
@@ -458,6 +498,154 @@ module TencentCloud
|
|
458
498
|
end
|
459
499
|
end
|
460
500
|
|
501
|
+
# DeleteBackUpData请求参数结构体
|
502
|
+
class DeleteBackUpDataRequest < TencentCloud::Common::AbstractModel
|
503
|
+
# @param InstanceId: 集群id
|
504
|
+
# @type InstanceId: String
|
505
|
+
# @param BackUpJobId: 任务id
|
506
|
+
# @type BackUpJobId: Integer
|
507
|
+
# @param IsDeleteAll: 是否删除所有数据
|
508
|
+
# @type IsDeleteAll: Boolean
|
509
|
+
|
510
|
+
attr_accessor :InstanceId, :BackUpJobId, :IsDeleteAll
|
511
|
+
|
512
|
+
def initialize(instanceid=nil, backupjobid=nil, isdeleteall=nil)
|
513
|
+
@InstanceId = instanceid
|
514
|
+
@BackUpJobId = backupjobid
|
515
|
+
@IsDeleteAll = isdeleteall
|
516
|
+
end
|
517
|
+
|
518
|
+
def deserialize(params)
|
519
|
+
@InstanceId = params['InstanceId']
|
520
|
+
@BackUpJobId = params['BackUpJobId']
|
521
|
+
@IsDeleteAll = params['IsDeleteAll']
|
522
|
+
end
|
523
|
+
end
|
524
|
+
|
525
|
+
# DeleteBackUpData返回参数结构体
|
526
|
+
class DeleteBackUpDataResponse < TencentCloud::Common::AbstractModel
|
527
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
528
|
+
# @type RequestId: String
|
529
|
+
|
530
|
+
attr_accessor :RequestId
|
531
|
+
|
532
|
+
def initialize(requestid=nil)
|
533
|
+
@RequestId = requestid
|
534
|
+
end
|
535
|
+
|
536
|
+
def deserialize(params)
|
537
|
+
@RequestId = params['RequestId']
|
538
|
+
end
|
539
|
+
end
|
540
|
+
|
541
|
+
# DescribeBackUpJobDetail请求参数结构体
|
542
|
+
class DescribeBackUpJobDetailRequest < TencentCloud::Common::AbstractModel
|
543
|
+
# @param InstanceId: 集群id
|
544
|
+
# @type InstanceId: String
|
545
|
+
# @param BackUpJobId: 任务id
|
546
|
+
# @type BackUpJobId: Integer
|
547
|
+
|
548
|
+
attr_accessor :InstanceId, :BackUpJobId
|
549
|
+
|
550
|
+
def initialize(instanceid=nil, backupjobid=nil)
|
551
|
+
@InstanceId = instanceid
|
552
|
+
@BackUpJobId = backupjobid
|
553
|
+
end
|
554
|
+
|
555
|
+
def deserialize(params)
|
556
|
+
@InstanceId = params['InstanceId']
|
557
|
+
@BackUpJobId = params['BackUpJobId']
|
558
|
+
end
|
559
|
+
end
|
560
|
+
|
561
|
+
# DescribeBackUpJobDetail返回参数结构体
|
562
|
+
class DescribeBackUpJobDetailResponse < TencentCloud::Common::AbstractModel
|
563
|
+
# @param TableContents: 备份表详情
|
564
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
565
|
+
# @type TableContents: Array
|
566
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
567
|
+
# @type RequestId: String
|
568
|
+
|
569
|
+
attr_accessor :TableContents, :RequestId
|
570
|
+
|
571
|
+
def initialize(tablecontents=nil, requestid=nil)
|
572
|
+
@TableContents = tablecontents
|
573
|
+
@RequestId = requestid
|
574
|
+
end
|
575
|
+
|
576
|
+
def deserialize(params)
|
577
|
+
unless params['TableContents'].nil?
|
578
|
+
@TableContents = []
|
579
|
+
params['TableContents'].each do |i|
|
580
|
+
backuptablecontent_tmp = BackupTableContent.new
|
581
|
+
backuptablecontent_tmp.deserialize(i)
|
582
|
+
@TableContents << backuptablecontent_tmp
|
583
|
+
end
|
584
|
+
end
|
585
|
+
@RequestId = params['RequestId']
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
# DescribeBackUpJob请求参数结构体
|
590
|
+
class DescribeBackUpJobRequest < TencentCloud::Common::AbstractModel
|
591
|
+
# @param InstanceId: 集群id
|
592
|
+
# @type InstanceId: String
|
593
|
+
# @param PageSize: 分页大小
|
594
|
+
# @type PageSize: Integer
|
595
|
+
# @param PageNum: 页号
|
596
|
+
# @type PageNum: Integer
|
597
|
+
# @param BeginTime: 开始时间
|
598
|
+
# @type BeginTime: String
|
599
|
+
# @param EndTime: 结束时间
|
600
|
+
# @type EndTime: String
|
601
|
+
|
602
|
+
attr_accessor :InstanceId, :PageSize, :PageNum, :BeginTime, :EndTime
|
603
|
+
|
604
|
+
def initialize(instanceid=nil, pagesize=nil, pagenum=nil, begintime=nil, endtime=nil)
|
605
|
+
@InstanceId = instanceid
|
606
|
+
@PageSize = pagesize
|
607
|
+
@PageNum = pagenum
|
608
|
+
@BeginTime = begintime
|
609
|
+
@EndTime = endtime
|
610
|
+
end
|
611
|
+
|
612
|
+
def deserialize(params)
|
613
|
+
@InstanceId = params['InstanceId']
|
614
|
+
@PageSize = params['PageSize']
|
615
|
+
@PageNum = params['PageNum']
|
616
|
+
@BeginTime = params['BeginTime']
|
617
|
+
@EndTime = params['EndTime']
|
618
|
+
end
|
619
|
+
end
|
620
|
+
|
621
|
+
# DescribeBackUpJob返回参数结构体
|
622
|
+
class DescribeBackUpJobResponse < TencentCloud::Common::AbstractModel
|
623
|
+
# @param BackUpJobs: 任务列表
|
624
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
625
|
+
# @type BackUpJobs: Array
|
626
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
627
|
+
# @type RequestId: String
|
628
|
+
|
629
|
+
attr_accessor :BackUpJobs, :RequestId
|
630
|
+
|
631
|
+
def initialize(backupjobs=nil, requestid=nil)
|
632
|
+
@BackUpJobs = backupjobs
|
633
|
+
@RequestId = requestid
|
634
|
+
end
|
635
|
+
|
636
|
+
def deserialize(params)
|
637
|
+
unless params['BackUpJobs'].nil?
|
638
|
+
@BackUpJobs = []
|
639
|
+
params['BackUpJobs'].each do |i|
|
640
|
+
backupjobdisplay_tmp = BackUpJobDisplay.new
|
641
|
+
backupjobdisplay_tmp.deserialize(i)
|
642
|
+
@BackUpJobs << backupjobdisplay_tmp
|
643
|
+
end
|
644
|
+
end
|
645
|
+
@RequestId = params['RequestId']
|
646
|
+
end
|
647
|
+
end
|
648
|
+
|
461
649
|
# DescribeBackUpSchedule请求参数结构体
|
462
650
|
class DescribeBackUpScheduleRequest < TencentCloud::Common::AbstractModel
|
463
651
|
# @param InstanceId: 集群id
|
@@ -552,14 +740,17 @@ module TencentCloud
|
|
552
740
|
# @type Cluster: String
|
553
741
|
# @param UserName: 用户名称,api与user相关的必填
|
554
742
|
# @type UserName: String
|
743
|
+
# @param UserType: 账户的类型
|
744
|
+
# @type UserType: String
|
555
745
|
|
556
|
-
attr_accessor :InstanceId, :ApiType, :Cluster, :UserName
|
746
|
+
attr_accessor :InstanceId, :ApiType, :Cluster, :UserName, :UserType
|
557
747
|
|
558
|
-
def initialize(instanceid=nil, apitype=nil, cluster=nil, username=nil)
|
748
|
+
def initialize(instanceid=nil, apitype=nil, cluster=nil, username=nil, usertype=nil)
|
559
749
|
@InstanceId = instanceid
|
560
750
|
@ApiType = apitype
|
561
751
|
@Cluster = cluster
|
562
752
|
@UserName = username
|
753
|
+
@UserType = usertype
|
563
754
|
end
|
564
755
|
|
565
756
|
def deserialize(params)
|
@@ -567,6 +758,7 @@ module TencentCloud
|
|
567
758
|
@ApiType = params['ApiType']
|
568
759
|
@Cluster = params['Cluster']
|
569
760
|
@UserName = params['UserName']
|
761
|
+
@UserType = params['UserType']
|
570
762
|
end
|
571
763
|
end
|
572
764
|
|
@@ -1856,6 +2048,42 @@ module TencentCloud
|
|
1856
2048
|
end
|
1857
2049
|
end
|
1858
2050
|
|
2051
|
+
# RecoverBackUpJob请求参数结构体
|
2052
|
+
class RecoverBackUpJobRequest < TencentCloud::Common::AbstractModel
|
2053
|
+
# @param InstanceId: 集群id
|
2054
|
+
# @type InstanceId: String
|
2055
|
+
# @param BackUpJobId: 任务id
|
2056
|
+
# @type BackUpJobId: Integer
|
2057
|
+
|
2058
|
+
attr_accessor :InstanceId, :BackUpJobId
|
2059
|
+
|
2060
|
+
def initialize(instanceid=nil, backupjobid=nil)
|
2061
|
+
@InstanceId = instanceid
|
2062
|
+
@BackUpJobId = backupjobid
|
2063
|
+
end
|
2064
|
+
|
2065
|
+
def deserialize(params)
|
2066
|
+
@InstanceId = params['InstanceId']
|
2067
|
+
@BackUpJobId = params['BackUpJobId']
|
2068
|
+
end
|
2069
|
+
end
|
2070
|
+
|
2071
|
+
# RecoverBackUpJob返回参数结构体
|
2072
|
+
class RecoverBackUpJobResponse < TencentCloud::Common::AbstractModel
|
2073
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2074
|
+
# @type RequestId: String
|
2075
|
+
|
2076
|
+
attr_accessor :RequestId
|
2077
|
+
|
2078
|
+
def initialize(requestid=nil)
|
2079
|
+
@RequestId = requestid
|
2080
|
+
end
|
2081
|
+
|
2082
|
+
def deserialize(params)
|
2083
|
+
@RequestId = params['RequestId']
|
2084
|
+
end
|
2085
|
+
end
|
2086
|
+
|
1859
2087
|
# ResizeDisk请求参数结构体
|
1860
2088
|
class ResizeDiskRequest < TencentCloud::Common::AbstractModel
|
1861
2089
|
# @param InstanceId: 实例唯一ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cdwch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.650
|
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-08-
|
11
|
+
date: 2023-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|