tencentcloud-sdk-cds 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a1ae783b7ef65314271b43266f66f9e9119854e0
4
+ data.tar.gz: d14ab3d111ff90ba8157be996f66553061bac82b
5
+ SHA512:
6
+ metadata.gz: 8d4f4ffdcc6b14495cfa17b36b79fdf44229d8801205e1080b5b8668dcde9b7882017931b55a2ae44fdcb208cd65cde45cfa54e071b6defe63dc629e1f7f4074
7
+ data.tar.gz: b7abdf88238ed81a0ec88ac0cb2089060b8f31b5265c2b559cb3dbd318e8527a9eee69ce9c67b0291068384f87a9d0f5e73a671af3f150f1f6f2e61fe2a03ebd
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20180420/client'
6
+ require_relative 'v20180420/models'
7
+
8
+ module TencentCloud
9
+ module Cds
10
+ end
11
+ end
@@ -0,0 +1,180 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Cds
21
+ module V20180420
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2018-04-20'
26
+ api_endpoint = 'cds.tencentcloudapi.com'
27
+ sdk_version = 'CDS_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 获取镜像列表
33
+
34
+ # @param request: Request instance for DescribeDasbImageIds.
35
+ # @type request: :class:`Tencentcloud::cds::V20180420::DescribeDasbImageIdsRequest`
36
+ # @rtype: :class:`Tencentcloud::cds::V20180420::DescribeDasbImageIdsResponse`
37
+ def DescribeDasbImageIds(request)
38
+ body = send_request('DescribeDasbImageIds', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeDasbImageIdsResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 本接口 (DescribeDbauditInstanceType) 用于查询可售卖的产品规格列表。
57
+
58
+ # @param request: Request instance for DescribeDbauditInstanceType.
59
+ # @type request: :class:`Tencentcloud::cds::V20180420::DescribeDbauditInstanceTypeRequest`
60
+ # @rtype: :class:`Tencentcloud::cds::V20180420::DescribeDbauditInstanceTypeResponse`
61
+ def DescribeDbauditInstanceType(request)
62
+ body = send_request('DescribeDbauditInstanceType', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeDbauditInstanceTypeResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 本接口 (DescribeDbauditInstances) 用于查询数据安全审计实例列表
81
+
82
+ # @param request: Request instance for DescribeDbauditInstances.
83
+ # @type request: :class:`Tencentcloud::cds::V20180420::DescribeDbauditInstancesRequest`
84
+ # @rtype: :class:`Tencentcloud::cds::V20180420::DescribeDbauditInstancesResponse`
85
+ def DescribeDbauditInstances(request)
86
+ body = send_request('DescribeDbauditInstances', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeDbauditInstancesResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 本接口 (DescribeDbauditUsedRegions) 用于查询可售卖地域列表。
105
+
106
+ # @param request: Request instance for DescribeDbauditUsedRegions.
107
+ # @type request: :class:`Tencentcloud::cds::V20180420::DescribeDbauditUsedRegionsRequest`
108
+ # @rtype: :class:`Tencentcloud::cds::V20180420::DescribeDbauditUsedRegionsResponse`
109
+ def DescribeDbauditUsedRegions(request)
110
+ body = send_request('DescribeDbauditUsedRegions', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeDbauditUsedRegionsResponse.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 InquiryPriceDbauditInstance.
131
+ # @type request: :class:`Tencentcloud::cds::V20180420::InquiryPriceDbauditInstanceRequest`
132
+ # @rtype: :class:`Tencentcloud::cds::V20180420::InquiryPriceDbauditInstanceResponse`
133
+ def InquiryPriceDbauditInstance(request)
134
+ body = send_request('InquiryPriceDbauditInstance', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = InquiryPriceDbauditInstanceResponse.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
+ # 本接口 (ModifyDbauditInstancesRenewFlag) 用于修改数据安全审计产品实例续费标识
153
+
154
+ # @param request: Request instance for ModifyDbauditInstancesRenewFlag.
155
+ # @type request: :class:`Tencentcloud::cds::V20180420::ModifyDbauditInstancesRenewFlagRequest`
156
+ # @rtype: :class:`Tencentcloud::cds::V20180420::ModifyDbauditInstancesRenewFlagResponse`
157
+ def ModifyDbauditInstancesRenewFlag(request)
158
+ body = send_request('ModifyDbauditInstancesRenewFlag', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = ModifyDbauditInstancesRenewFlagResponse.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
+
176
+
177
+ end
178
+ end
179
+ end
180
+ end
@@ -0,0 +1,429 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Cds
19
+ module V20180420
20
+ # 数据安全产品实例信息
21
+ class CdsAuditInstance < TencentCloud::Common::AbstractModel
22
+ # @param InstanceId: 实例ID
23
+ # @type InstanceId: String
24
+ # @param AppId: 用户AppId
25
+ # @type AppId: String
26
+ # @param Uin: 用户Uin
27
+ # @type Uin: String
28
+ # @param ProjectId: 项目ID
29
+ # @type ProjectId: Integer
30
+ # @param RenewFlag: 续费标识
31
+ # @type RenewFlag: Integer
32
+ # @param Region: 所属地域
33
+ # @type Region: String
34
+ # @param PayMode: 付费模式(数据安全审计只支持预付费:1)
35
+ # @type PayMode: Integer
36
+ # @param Status: 实例状态: 0,未生效;1:正常运行; 2:被隔离; 3,已过期
37
+ # @type Status: Integer
38
+ # @param IsolatedTimestamp: 实例被隔离时间,格式:yyyy-mm-dd HH:ii:ss
39
+ # @type IsolatedTimestamp: String
40
+ # @param CreateTime: 实例创建时间,格式: yyyy-mm-dd HH:ii:ss
41
+ # @type CreateTime: String
42
+ # @param ExpireTime: 实例过期时间,格式:yyyy-mm-dd HH:ii:ss
43
+ # @type ExpireTime: String
44
+ # @param InstanceName: 实例名称
45
+ # 注意:此字段可能返回 null,表示取不到有效值。
46
+ # @type InstanceName: String
47
+ # @param PublicIp: 实例公网IP
48
+ # 注意:此字段可能返回 null,表示取不到有效值。
49
+ # @type PublicIp: String
50
+ # @param PrivateIp: 实例私网IP
51
+ # 注意:此字段可能返回 null,表示取不到有效值。
52
+ # @type PrivateIp: String
53
+ # @param InstanceType: 实例类型(版本)
54
+ # @type InstanceType: String
55
+ # @param Pdomain: 实例域名
56
+ # 注意:此字段可能返回 null,表示取不到有效值。
57
+ # @type Pdomain: String
58
+
59
+ attr_accessor :InstanceId, :AppId, :Uin, :ProjectId, :RenewFlag, :Region, :PayMode, :Status, :IsolatedTimestamp, :CreateTime, :ExpireTime, :InstanceName, :PublicIp, :PrivateIp, :InstanceType, :Pdomain
60
+
61
+ def initialize(instanceid=nil, appid=nil, uin=nil, projectid=nil, renewflag=nil, region=nil, paymode=nil, status=nil, isolatedtimestamp=nil, createtime=nil, expiretime=nil, instancename=nil, publicip=nil, privateip=nil, instancetype=nil, pdomain=nil)
62
+ @InstanceId = instanceid
63
+ @AppId = appid
64
+ @Uin = uin
65
+ @ProjectId = projectid
66
+ @RenewFlag = renewflag
67
+ @Region = region
68
+ @PayMode = paymode
69
+ @Status = status
70
+ @IsolatedTimestamp = isolatedtimestamp
71
+ @CreateTime = createtime
72
+ @ExpireTime = expiretime
73
+ @InstanceName = instancename
74
+ @PublicIp = publicip
75
+ @PrivateIp = privateip
76
+ @InstanceType = instancetype
77
+ @Pdomain = pdomain
78
+ end
79
+
80
+ def deserialize(params)
81
+ @InstanceId = params['InstanceId']
82
+ @AppId = params['AppId']
83
+ @Uin = params['Uin']
84
+ @ProjectId = params['ProjectId']
85
+ @RenewFlag = params['RenewFlag']
86
+ @Region = params['Region']
87
+ @PayMode = params['PayMode']
88
+ @Status = params['Status']
89
+ @IsolatedTimestamp = params['IsolatedTimestamp']
90
+ @CreateTime = params['CreateTime']
91
+ @ExpireTime = params['ExpireTime']
92
+ @InstanceName = params['InstanceName']
93
+ @PublicIp = params['PublicIp']
94
+ @PrivateIp = params['PrivateIp']
95
+ @InstanceType = params['InstanceType']
96
+ @Pdomain = params['Pdomain']
97
+ end
98
+ end
99
+
100
+ # 数据安全审计产品规格信息
101
+ class DbauditTypesInfo < TencentCloud::Common::AbstractModel
102
+ # @param InstanceVersionName: 规格描述
103
+ # @type InstanceVersionName: String
104
+ # @param InstanceVersionKey: 规格名称
105
+ # @type InstanceVersionKey: String
106
+ # @param Qps: 最大吞吐量
107
+ # @type Qps: Integer
108
+ # @param MaxInstances: 最大实例数
109
+ # @type MaxInstances: Integer
110
+ # @param InsertSpeed: 入库速率(每小时)
111
+ # @type InsertSpeed: Integer
112
+ # @param OnlineStorageCapacity: 最大在线存储量,单位:条
113
+ # @type OnlineStorageCapacity: Integer
114
+ # @param ArchivingStorageCapacity: 最大归档存储量,单位:条
115
+ # @type ArchivingStorageCapacity: Integer
116
+
117
+ attr_accessor :InstanceVersionName, :InstanceVersionKey, :Qps, :MaxInstances, :InsertSpeed, :OnlineStorageCapacity, :ArchivingStorageCapacity
118
+
119
+ def initialize(instanceversionname=nil, instanceversionkey=nil, qps=nil, maxinstances=nil, insertspeed=nil, onlinestoragecapacity=nil, archivingstoragecapacity=nil)
120
+ @InstanceVersionName = instanceversionname
121
+ @InstanceVersionKey = instanceversionkey
122
+ @Qps = qps
123
+ @MaxInstances = maxinstances
124
+ @InsertSpeed = insertspeed
125
+ @OnlineStorageCapacity = onlinestoragecapacity
126
+ @ArchivingStorageCapacity = archivingstoragecapacity
127
+ end
128
+
129
+ def deserialize(params)
130
+ @InstanceVersionName = params['InstanceVersionName']
131
+ @InstanceVersionKey = params['InstanceVersionKey']
132
+ @Qps = params['Qps']
133
+ @MaxInstances = params['MaxInstances']
134
+ @InsertSpeed = params['InsertSpeed']
135
+ @OnlineStorageCapacity = params['OnlineStorageCapacity']
136
+ @ArchivingStorageCapacity = params['ArchivingStorageCapacity']
137
+ end
138
+ end
139
+
140
+ # DescribeDasbImageIds请求参数结构体
141
+ class DescribeDasbImageIdsRequest < TencentCloud::Common::AbstractModel
142
+
143
+
144
+ def initialize()
145
+ end
146
+
147
+ def deserialize(params)
148
+ end
149
+ end
150
+
151
+ # DescribeDasbImageIds返回参数结构体
152
+ class DescribeDasbImageIdsResponse < TencentCloud::Common::AbstractModel
153
+ # @param BaseImageId: 基础镜像ID
154
+ # @type BaseImageId: String
155
+ # @param AiImageId: AI镜像ID
156
+ # @type AiImageId: String
157
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
158
+ # @type RequestId: String
159
+
160
+ attr_accessor :BaseImageId, :AiImageId, :RequestId
161
+
162
+ def initialize(baseimageid=nil, aiimageid=nil, requestid=nil)
163
+ @BaseImageId = baseimageid
164
+ @AiImageId = aiimageid
165
+ @RequestId = requestid
166
+ end
167
+
168
+ def deserialize(params)
169
+ @BaseImageId = params['BaseImageId']
170
+ @AiImageId = params['AiImageId']
171
+ @RequestId = params['RequestId']
172
+ end
173
+ end
174
+
175
+ # DescribeDbauditInstanceType请求参数结构体
176
+ class DescribeDbauditInstanceTypeRequest < TencentCloud::Common::AbstractModel
177
+
178
+
179
+ def initialize()
180
+ end
181
+
182
+ def deserialize(params)
183
+ end
184
+ end
185
+
186
+ # DescribeDbauditInstanceType返回参数结构体
187
+ class DescribeDbauditInstanceTypeResponse < TencentCloud::Common::AbstractModel
188
+ # @param DbauditTypesSet: 数据安全审计产品规格信息列表
189
+ # @type DbauditTypesSet: Array
190
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
191
+ # @type RequestId: String
192
+
193
+ attr_accessor :DbauditTypesSet, :RequestId
194
+
195
+ def initialize(dbaudittypesset=nil, requestid=nil)
196
+ @DbauditTypesSet = dbaudittypesset
197
+ @RequestId = requestid
198
+ end
199
+
200
+ def deserialize(params)
201
+ unless params['DbauditTypesSet'].nil?
202
+ @DbauditTypesSet = []
203
+ params['DbauditTypesSet'].each do |i|
204
+ dbaudittypesinfo_tmp = DbauditTypesInfo.new
205
+ dbaudittypesinfo_tmp.deserialize(i)
206
+ @DbauditTypesSet << dbaudittypesinfo_tmp
207
+ end
208
+ end
209
+ @RequestId = params['RequestId']
210
+ end
211
+ end
212
+
213
+ # DescribeDbauditInstances请求参数结构体
214
+ class DescribeDbauditInstancesRequest < TencentCloud::Common::AbstractModel
215
+ # @param SearchRegion: 查询条件地域
216
+ # @type SearchRegion: String
217
+ # @param Limit: 限制数目,默认10, 最大50
218
+ # @type Limit: Integer
219
+ # @param Offset: 偏移量,默认1
220
+ # @type Offset: Integer
221
+
222
+ attr_accessor :SearchRegion, :Limit, :Offset
223
+
224
+ def initialize(searchregion=nil, limit=nil, offset=nil)
225
+ @SearchRegion = searchregion
226
+ @Limit = limit
227
+ @Offset = offset
228
+ end
229
+
230
+ def deserialize(params)
231
+ @SearchRegion = params['SearchRegion']
232
+ @Limit = params['Limit']
233
+ @Offset = params['Offset']
234
+ end
235
+ end
236
+
237
+ # DescribeDbauditInstances返回参数结构体
238
+ class DescribeDbauditInstancesResponse < TencentCloud::Common::AbstractModel
239
+ # @param TotalCount: 总实例数
240
+ # @type TotalCount: Integer
241
+ # @param CdsAuditInstanceSet: 数据安全审计实例信息列表
242
+ # @type CdsAuditInstanceSet: Array
243
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
244
+ # @type RequestId: String
245
+
246
+ attr_accessor :TotalCount, :CdsAuditInstanceSet, :RequestId
247
+
248
+ def initialize(totalcount=nil, cdsauditinstanceset=nil, requestid=nil)
249
+ @TotalCount = totalcount
250
+ @CdsAuditInstanceSet = cdsauditinstanceset
251
+ @RequestId = requestid
252
+ end
253
+
254
+ def deserialize(params)
255
+ @TotalCount = params['TotalCount']
256
+ unless params['CdsAuditInstanceSet'].nil?
257
+ @CdsAuditInstanceSet = []
258
+ params['CdsAuditInstanceSet'].each do |i|
259
+ cdsauditinstance_tmp = CdsAuditInstance.new
260
+ cdsauditinstance_tmp.deserialize(i)
261
+ @CdsAuditInstanceSet << cdsauditinstance_tmp
262
+ end
263
+ end
264
+ @RequestId = params['RequestId']
265
+ end
266
+ end
267
+
268
+ # DescribeDbauditUsedRegions请求参数结构体
269
+ class DescribeDbauditUsedRegionsRequest < TencentCloud::Common::AbstractModel
270
+
271
+
272
+ def initialize()
273
+ end
274
+
275
+ def deserialize(params)
276
+ end
277
+ end
278
+
279
+ # DescribeDbauditUsedRegions返回参数结构体
280
+ class DescribeDbauditUsedRegionsResponse < TencentCloud::Common::AbstractModel
281
+ # @param RegionSet: 可售卖地域信息列表
282
+ # @type RegionSet: Array
283
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
284
+ # @type RequestId: String
285
+
286
+ attr_accessor :RegionSet, :RequestId
287
+
288
+ def initialize(regionset=nil, requestid=nil)
289
+ @RegionSet = regionset
290
+ @RequestId = requestid
291
+ end
292
+
293
+ def deserialize(params)
294
+ unless params['RegionSet'].nil?
295
+ @RegionSet = []
296
+ params['RegionSet'].each do |i|
297
+ regioninfo_tmp = RegionInfo.new
298
+ regioninfo_tmp.deserialize(i)
299
+ @RegionSet << regioninfo_tmp
300
+ end
301
+ end
302
+ @RequestId = params['RequestId']
303
+ end
304
+ end
305
+
306
+ # InquiryPriceDbauditInstance请求参数结构体
307
+ class InquiryPriceDbauditInstanceRequest < TencentCloud::Common::AbstractModel
308
+ # @param InstanceVersion: 实例规格,取值范围: cdsaudit,cdsaudit_adv, cdsaudit_ent 分别为合规版,高级版,企业版
309
+ # @type InstanceVersion: String
310
+ # @param InquiryType: 询价类型: renew,续费;newbuy,新购
311
+ # @type InquiryType: String
312
+ # @param TimeSpan: 购买实例的时长。取值范围:1(y/m),2(y/m),,3(y/m),4(m), 5(m),6(m), 7(m),8(m),9(m), 10(m)
313
+ # @type TimeSpan: Integer
314
+ # @param TimeUnit: 购买时长单位,y:年;m:月
315
+ # @type TimeUnit: String
316
+ # @param ServiceRegion: 实例所在地域
317
+ # @type ServiceRegion: String
318
+
319
+ attr_accessor :InstanceVersion, :InquiryType, :TimeSpan, :TimeUnit, :ServiceRegion
320
+
321
+ def initialize(instanceversion=nil, inquirytype=nil, timespan=nil, timeunit=nil, serviceregion=nil)
322
+ @InstanceVersion = instanceversion
323
+ @InquiryType = inquirytype
324
+ @TimeSpan = timespan
325
+ @TimeUnit = timeunit
326
+ @ServiceRegion = serviceregion
327
+ end
328
+
329
+ def deserialize(params)
330
+ @InstanceVersion = params['InstanceVersion']
331
+ @InquiryType = params['InquiryType']
332
+ @TimeSpan = params['TimeSpan']
333
+ @TimeUnit = params['TimeUnit']
334
+ @ServiceRegion = params['ServiceRegion']
335
+ end
336
+ end
337
+
338
+ # InquiryPriceDbauditInstance返回参数结构体
339
+ class InquiryPriceDbauditInstanceResponse < TencentCloud::Common::AbstractModel
340
+ # @param TotalPrice: 总价,单位:元
341
+ # @type TotalPrice: Float
342
+ # @param RealTotalCost: 真实价钱,预支费用的折扣价,单位:元
343
+ # @type RealTotalCost: Float
344
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
345
+ # @type RequestId: String
346
+
347
+ attr_accessor :TotalPrice, :RealTotalCost, :RequestId
348
+
349
+ def initialize(totalprice=nil, realtotalcost=nil, requestid=nil)
350
+ @TotalPrice = totalprice
351
+ @RealTotalCost = realtotalcost
352
+ @RequestId = requestid
353
+ end
354
+
355
+ def deserialize(params)
356
+ @TotalPrice = params['TotalPrice']
357
+ @RealTotalCost = params['RealTotalCost']
358
+ @RequestId = params['RequestId']
359
+ end
360
+ end
361
+
362
+ # ModifyDbauditInstancesRenewFlag请求参数结构体
363
+ class ModifyDbauditInstancesRenewFlagRequest < TencentCloud::Common::AbstractModel
364
+ # @param InstanceId: 实例ID
365
+ # @type InstanceId: String
366
+ # @param AutoRenewFlag: 0,表示默认状态(用户未设置,即初始状态);1,表示自动续费;2,表示明确不自动续费
367
+ # @type AutoRenewFlag: Integer
368
+
369
+ attr_accessor :InstanceId, :AutoRenewFlag
370
+
371
+ def initialize(instanceid=nil, autorenewflag=nil)
372
+ @InstanceId = instanceid
373
+ @AutoRenewFlag = autorenewflag
374
+ end
375
+
376
+ def deserialize(params)
377
+ @InstanceId = params['InstanceId']
378
+ @AutoRenewFlag = params['AutoRenewFlag']
379
+ end
380
+ end
381
+
382
+ # ModifyDbauditInstancesRenewFlag返回参数结构体
383
+ class ModifyDbauditInstancesRenewFlagResponse < TencentCloud::Common::AbstractModel
384
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
385
+ # @type RequestId: String
386
+
387
+ attr_accessor :RequestId
388
+
389
+ def initialize(requestid=nil)
390
+ @RequestId = requestid
391
+ end
392
+
393
+ def deserialize(params)
394
+ @RequestId = params['RequestId']
395
+ end
396
+ end
397
+
398
+ # 数盾地域信息
399
+ class RegionInfo < TencentCloud::Common::AbstractModel
400
+ # @param RegionId: 地域ID
401
+ # @type RegionId: Integer
402
+ # @param Region: 地域名称
403
+ # @type Region: String
404
+ # @param RegionName: 地域描述
405
+ # @type RegionName: String
406
+ # @param RegionState: 地域可用状态
407
+ # @type RegionState: Integer
408
+
409
+ attr_accessor :RegionId, :Region, :RegionName, :RegionState
410
+
411
+ def initialize(regionid=nil, region=nil, regionname=nil, regionstate=nil)
412
+ @RegionId = regionid
413
+ @Region = region
414
+ @RegionName = regionname
415
+ @RegionState = regionstate
416
+ end
417
+
418
+ def deserialize(params)
419
+ @RegionId = params['RegionId']
420
+ @Region = params['Region']
421
+ @RegionName = params['RegionName']
422
+ @RegionState = params['RegionState']
423
+ end
424
+ end
425
+
426
+ end
427
+ end
428
+ end
429
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-cds
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.200
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ CDS.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-cds.rb
38
+ - lib/v20180420/client.rb
39
+ - lib/v20180420/models.rb
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-cds
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.6.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - CDS
66
+ test_files: []