tencentcloud-sdk-sqlserver 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-sqlserver.rb +11 -0
- data/lib/v20180328/client.rb +2367 -0
- data/lib/v20180328/models.rb +7106 -0
- metadata +66 -0
@@ -0,0 +1,2367 @@
|
|
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 Sqlserver
|
21
|
+
module V20180328
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2018-03-28'
|
26
|
+
api_endpoint = 'sqlserver.tencentcloudapi.com'
|
27
|
+
sdk_version = 'SQLSERVER_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 本接口(AssociateSecurityGroups)用于安全组批量绑定实例。
|
33
|
+
|
34
|
+
# @param request: Request instance for AssociateSecurityGroups.
|
35
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::AssociateSecurityGroupsRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::AssociateSecurityGroupsResponse`
|
37
|
+
def AssociateSecurityGroups(request)
|
38
|
+
body = send_request('AssociateSecurityGroups', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AssociateSecurityGroupsResponse.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
|
+
# 本接口(CloneDB)用于克隆数据库,只支持克隆到本实例,克隆时必须指定新库名称。
|
57
|
+
|
58
|
+
# @param request: Request instance for CloneDB.
|
59
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CloneDBRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CloneDBResponse`
|
61
|
+
def CloneDB(request)
|
62
|
+
body = send_request('CloneDB', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CloneDBResponse.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
|
+
# 本接口(CompleteExpansion)在实例发起扩容后,实例状态处于“升级待切换”时,可立即完成实例升级切换操作,无需等待可维护时间窗。本接口需要在实例低峰时调用,在完全切换成功前,存在部分库不可访问的风险。
|
81
|
+
|
82
|
+
# @param request: Request instance for CompleteExpansion.
|
83
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CompleteExpansionRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CompleteExpansionResponse`
|
85
|
+
def CompleteExpansion(request)
|
86
|
+
body = send_request('CompleteExpansion', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CompleteExpansionResponse.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
|
+
# 本接口(CompleteMigration)作用是完成一个迁移任务
|
105
|
+
|
106
|
+
# @param request: Request instance for CompleteMigration.
|
107
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CompleteMigrationRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CompleteMigrationResponse`
|
109
|
+
def CompleteMigration(request)
|
110
|
+
body = send_request('CompleteMigration', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = CompleteMigrationResponse.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
|
+
# 本接口(CreateAccount)用于创建实例账号
|
129
|
+
|
130
|
+
# @param request: Request instance for CreateAccount.
|
131
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CreateAccountRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CreateAccountResponse`
|
133
|
+
def CreateAccount(request)
|
134
|
+
body = send_request('CreateAccount', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = CreateAccountResponse.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
|
+
# 本接口(CreateBackup)用于创建备份。
|
153
|
+
|
154
|
+
# @param request: Request instance for CreateBackup.
|
155
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CreateBackupRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CreateBackupResponse`
|
157
|
+
def CreateBackup(request)
|
158
|
+
body = send_request('CreateBackup', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CreateBackupResponse.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
|
+
# 本接口(CreateBackupMigration)用于创建备份导入任务。
|
177
|
+
|
178
|
+
# @param request: Request instance for CreateBackupMigration.
|
179
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CreateBackupMigrationRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CreateBackupMigrationResponse`
|
181
|
+
def CreateBackupMigration(request)
|
182
|
+
body = send_request('CreateBackupMigration', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = CreateBackupMigrationResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
200
|
+
# 本接口(CreateBasicDBInstances)用于创建SQL server基础版实例。
|
201
|
+
|
202
|
+
# @param request: Request instance for CreateBasicDBInstances.
|
203
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CreateBasicDBInstancesRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CreateBasicDBInstancesResponse`
|
205
|
+
def CreateBasicDBInstances(request)
|
206
|
+
body = send_request('CreateBasicDBInstances', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = CreateBasicDBInstancesResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
224
|
+
# 本接口(CreateDB)用于创建数据库。
|
225
|
+
|
226
|
+
# @param request: Request instance for CreateDB.
|
227
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CreateDBRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CreateDBResponse`
|
229
|
+
def CreateDB(request)
|
230
|
+
body = send_request('CreateDB', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = CreateDBResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
248
|
+
# 本接口(CreateDBInstances)用于创建实例。
|
249
|
+
|
250
|
+
# @param request: Request instance for CreateDBInstances.
|
251
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CreateDBInstancesRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CreateDBInstancesResponse`
|
253
|
+
def CreateDBInstances(request)
|
254
|
+
body = send_request('CreateDBInstances', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = CreateDBInstancesResponse.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
|
+
|
272
|
+
# 本接口(CreateIncrementalMigration)用于创建增量备份导入任务。
|
273
|
+
|
274
|
+
# @param request: Request instance for CreateIncrementalMigration.
|
275
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CreateIncrementalMigrationRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CreateIncrementalMigrationResponse`
|
277
|
+
def CreateIncrementalMigration(request)
|
278
|
+
body = send_request('CreateIncrementalMigration', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = CreateIncrementalMigrationResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
296
|
+
# 本接口(CreateMigration)作用是创建一个迁移任务
|
297
|
+
|
298
|
+
# @param request: Request instance for CreateMigration.
|
299
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CreateMigrationRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CreateMigrationResponse`
|
301
|
+
def CreateMigration(request)
|
302
|
+
body = send_request('CreateMigration', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = CreateMigrationResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
320
|
+
# 本接口(CreatePublishSubscribe)用于创建两个数据库之间的发布订阅关系。作为订阅者,不能再充当发布者,作为发布者可以有多个订阅者实例。
|
321
|
+
|
322
|
+
# @param request: Request instance for CreatePublishSubscribe.
|
323
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CreatePublishSubscribeRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CreatePublishSubscribeResponse`
|
325
|
+
def CreatePublishSubscribe(request)
|
326
|
+
body = send_request('CreatePublishSubscribe', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = CreatePublishSubscribeResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
344
|
+
# 本接口(CreateReadOnlyDBInstances)用于添加只读副本实例。
|
345
|
+
|
346
|
+
# @param request: Request instance for CreateReadOnlyDBInstances.
|
347
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::CreateReadOnlyDBInstancesRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::CreateReadOnlyDBInstancesResponse`
|
349
|
+
def CreateReadOnlyDBInstances(request)
|
350
|
+
body = send_request('CreateReadOnlyDBInstances', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = CreateReadOnlyDBInstancesResponse.new
|
354
|
+
model.deserialize(response['Response'])
|
355
|
+
model
|
356
|
+
else
|
357
|
+
code = response['Response']['Error']['Code']
|
358
|
+
message = response['Response']['Error']['Message']
|
359
|
+
reqid = response['Response']['RequestId']
|
360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
+
end
|
362
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
+
raise e
|
364
|
+
rescue StandardError => e
|
365
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
+
end
|
367
|
+
|
368
|
+
# 本接口(DeleteAccount)用于删除实例账号。
|
369
|
+
|
370
|
+
# @param request: Request instance for DeleteAccount.
|
371
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DeleteAccountRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DeleteAccountResponse`
|
373
|
+
def DeleteAccount(request)
|
374
|
+
body = send_request('DeleteAccount', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = DeleteAccountResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
392
|
+
# 本接口(DeleteBackupMigration)用于删除备份导入任务。
|
393
|
+
|
394
|
+
# @param request: Request instance for DeleteBackupMigration.
|
395
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DeleteBackupMigrationRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DeleteBackupMigrationResponse`
|
397
|
+
def DeleteBackupMigration(request)
|
398
|
+
body = send_request('DeleteBackupMigration', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = DeleteBackupMigrationResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
416
|
+
# 本接口(DeleteDB)用于删除数据库。
|
417
|
+
|
418
|
+
# @param request: Request instance for DeleteDB.
|
419
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DeleteDBRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DeleteDBResponse`
|
421
|
+
def DeleteDB(request)
|
422
|
+
body = send_request('DeleteDB', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = DeleteDBResponse.new
|
426
|
+
model.deserialize(response['Response'])
|
427
|
+
model
|
428
|
+
else
|
429
|
+
code = response['Response']['Error']['Code']
|
430
|
+
message = response['Response']['Error']['Message']
|
431
|
+
reqid = response['Response']['RequestId']
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
433
|
+
end
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
435
|
+
raise e
|
436
|
+
rescue StandardError => e
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
|
+
end
|
439
|
+
|
440
|
+
# 本接口(DeleteDBInstance)用于释放回收站中的SQL server实例。释放后的实例将保存一段时间后物理销毁。其发布订阅将自动解除,其ro副本将自动释放。
|
441
|
+
|
442
|
+
# @param request: Request instance for DeleteDBInstance.
|
443
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DeleteDBInstanceRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DeleteDBInstanceResponse`
|
445
|
+
def DeleteDBInstance(request)
|
446
|
+
body = send_request('DeleteDBInstance', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = DeleteDBInstanceResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
464
|
+
# 本接口(DeleteIncrementalMigration)用于删除增量备份导入任务。
|
465
|
+
|
466
|
+
# @param request: Request instance for DeleteIncrementalMigration.
|
467
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DeleteIncrementalMigrationRequest`
|
468
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DeleteIncrementalMigrationResponse`
|
469
|
+
def DeleteIncrementalMigration(request)
|
470
|
+
body = send_request('DeleteIncrementalMigration', request.serialize)
|
471
|
+
response = JSON.parse(body)
|
472
|
+
if response['Response'].key?('Error') == false
|
473
|
+
model = DeleteIncrementalMigrationResponse.new
|
474
|
+
model.deserialize(response['Response'])
|
475
|
+
model
|
476
|
+
else
|
477
|
+
code = response['Response']['Error']['Code']
|
478
|
+
message = response['Response']['Error']['Message']
|
479
|
+
reqid = response['Response']['RequestId']
|
480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
481
|
+
end
|
482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
483
|
+
raise e
|
484
|
+
rescue StandardError => e
|
485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
|
+
end
|
487
|
+
|
488
|
+
# 本接口(DeleteMigration)用于删除迁移任务
|
489
|
+
|
490
|
+
# @param request: Request instance for DeleteMigration.
|
491
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DeleteMigrationRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DeleteMigrationResponse`
|
493
|
+
def DeleteMigration(request)
|
494
|
+
body = send_request('DeleteMigration', request.serialize)
|
495
|
+
response = JSON.parse(body)
|
496
|
+
if response['Response'].key?('Error') == false
|
497
|
+
model = DeleteMigrationResponse.new
|
498
|
+
model.deserialize(response['Response'])
|
499
|
+
model
|
500
|
+
else
|
501
|
+
code = response['Response']['Error']['Code']
|
502
|
+
message = response['Response']['Error']['Message']
|
503
|
+
reqid = response['Response']['RequestId']
|
504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
505
|
+
end
|
506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
507
|
+
raise e
|
508
|
+
rescue StandardError => e
|
509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
|
+
end
|
511
|
+
|
512
|
+
# 本接口(DeletePublishSubscribe)用于删除两个数据库间的发布订阅关系。
|
513
|
+
|
514
|
+
# @param request: Request instance for DeletePublishSubscribe.
|
515
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DeletePublishSubscribeRequest`
|
516
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DeletePublishSubscribeResponse`
|
517
|
+
def DeletePublishSubscribe(request)
|
518
|
+
body = send_request('DeletePublishSubscribe', request.serialize)
|
519
|
+
response = JSON.parse(body)
|
520
|
+
if response['Response'].key?('Error') == false
|
521
|
+
model = DeletePublishSubscribeResponse.new
|
522
|
+
model.deserialize(response['Response'])
|
523
|
+
model
|
524
|
+
else
|
525
|
+
code = response['Response']['Error']['Code']
|
526
|
+
message = response['Response']['Error']['Message']
|
527
|
+
reqid = response['Response']['RequestId']
|
528
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
529
|
+
end
|
530
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
531
|
+
raise e
|
532
|
+
rescue StandardError => e
|
533
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
|
+
end
|
535
|
+
|
536
|
+
# 本接口(DescribeAccounts)用于拉取实例账户列表。
|
537
|
+
|
538
|
+
# @param request: Request instance for DescribeAccounts.
|
539
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeAccountsRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeAccountsResponse`
|
541
|
+
def DescribeAccounts(request)
|
542
|
+
body = send_request('DescribeAccounts', request.serialize)
|
543
|
+
response = JSON.parse(body)
|
544
|
+
if response['Response'].key?('Error') == false
|
545
|
+
model = DescribeAccountsResponse.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
|
+
|
560
|
+
# 本接口(DescribeBackupByFlowId)用于通过备份创建流程的ID查询创建的备份详情,流程ID可从接口CreateBackup中获得。
|
561
|
+
|
562
|
+
# @param request: Request instance for DescribeBackupByFlowId.
|
563
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeBackupByFlowIdRequest`
|
564
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeBackupByFlowIdResponse`
|
565
|
+
def DescribeBackupByFlowId(request)
|
566
|
+
body = send_request('DescribeBackupByFlowId', request.serialize)
|
567
|
+
response = JSON.parse(body)
|
568
|
+
if response['Response'].key?('Error') == false
|
569
|
+
model = DescribeBackupByFlowIdResponse.new
|
570
|
+
model.deserialize(response['Response'])
|
571
|
+
model
|
572
|
+
else
|
573
|
+
code = response['Response']['Error']['Code']
|
574
|
+
message = response['Response']['Error']['Message']
|
575
|
+
reqid = response['Response']['RequestId']
|
576
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
577
|
+
end
|
578
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
579
|
+
raise e
|
580
|
+
rescue StandardError => e
|
581
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
|
+
end
|
583
|
+
|
584
|
+
# 本接口(DescribeBackupCommand)用于查询以规范的格式创建备份的命令。
|
585
|
+
|
586
|
+
# @param request: Request instance for DescribeBackupCommand.
|
587
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeBackupCommandRequest`
|
588
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeBackupCommandResponse`
|
589
|
+
def DescribeBackupCommand(request)
|
590
|
+
body = send_request('DescribeBackupCommand', request.serialize)
|
591
|
+
response = JSON.parse(body)
|
592
|
+
if response['Response'].key?('Error') == false
|
593
|
+
model = DescribeBackupCommandResponse.new
|
594
|
+
model.deserialize(response['Response'])
|
595
|
+
model
|
596
|
+
else
|
597
|
+
code = response['Response']['Error']['Code']
|
598
|
+
message = response['Response']['Error']['Message']
|
599
|
+
reqid = response['Response']['RequestId']
|
600
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
601
|
+
end
|
602
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
603
|
+
raise e
|
604
|
+
rescue StandardError => e
|
605
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
|
+
end
|
607
|
+
|
608
|
+
# 本接口(DescribeBackupFiles)用于在非打包备份模式下单个库对应的备份文件
|
609
|
+
|
610
|
+
# @param request: Request instance for DescribeBackupFiles.
|
611
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeBackupFilesRequest`
|
612
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeBackupFilesResponse`
|
613
|
+
def DescribeBackupFiles(request)
|
614
|
+
body = send_request('DescribeBackupFiles', request.serialize)
|
615
|
+
response = JSON.parse(body)
|
616
|
+
if response['Response'].key?('Error') == false
|
617
|
+
model = DescribeBackupFilesResponse.new
|
618
|
+
model.deserialize(response['Response'])
|
619
|
+
model
|
620
|
+
else
|
621
|
+
code = response['Response']['Error']['Code']
|
622
|
+
message = response['Response']['Error']['Message']
|
623
|
+
reqid = response['Response']['RequestId']
|
624
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
625
|
+
end
|
626
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
627
|
+
raise e
|
628
|
+
rescue StandardError => e
|
629
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
630
|
+
end
|
631
|
+
|
632
|
+
# 本接口(DescribeBackupMigration)用于创建增量备份导入任务。
|
633
|
+
|
634
|
+
# @param request: Request instance for DescribeBackupMigration.
|
635
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeBackupMigrationRequest`
|
636
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeBackupMigrationResponse`
|
637
|
+
def DescribeBackupMigration(request)
|
638
|
+
body = send_request('DescribeBackupMigration', request.serialize)
|
639
|
+
response = JSON.parse(body)
|
640
|
+
if response['Response'].key?('Error') == false
|
641
|
+
model = DescribeBackupMigrationResponse.new
|
642
|
+
model.deserialize(response['Response'])
|
643
|
+
model
|
644
|
+
else
|
645
|
+
code = response['Response']['Error']['Code']
|
646
|
+
message = response['Response']['Error']['Message']
|
647
|
+
reqid = response['Response']['RequestId']
|
648
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
649
|
+
end
|
650
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
651
|
+
raise e
|
652
|
+
rescue StandardError => e
|
653
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
|
+
end
|
655
|
+
|
656
|
+
# 本接口(DescribeBackupUploadSize)用于查询上传的备份文件大小。在备份上传类型是COS_UPLOAD(备份放在业务的对象存储上)时有效。
|
657
|
+
|
658
|
+
# @param request: Request instance for DescribeBackupUploadSize.
|
659
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeBackupUploadSizeRequest`
|
660
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeBackupUploadSizeResponse`
|
661
|
+
def DescribeBackupUploadSize(request)
|
662
|
+
body = send_request('DescribeBackupUploadSize', request.serialize)
|
663
|
+
response = JSON.parse(body)
|
664
|
+
if response['Response'].key?('Error') == false
|
665
|
+
model = DescribeBackupUploadSizeResponse.new
|
666
|
+
model.deserialize(response['Response'])
|
667
|
+
model
|
668
|
+
else
|
669
|
+
code = response['Response']['Error']['Code']
|
670
|
+
message = response['Response']['Error']['Message']
|
671
|
+
reqid = response['Response']['RequestId']
|
672
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
673
|
+
end
|
674
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
675
|
+
raise e
|
676
|
+
rescue StandardError => e
|
677
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
|
+
end
|
679
|
+
|
680
|
+
# 本接口(DescribeBackups)用于查询备份列表。
|
681
|
+
|
682
|
+
# @param request: Request instance for DescribeBackups.
|
683
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeBackupsRequest`
|
684
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeBackupsResponse`
|
685
|
+
def DescribeBackups(request)
|
686
|
+
body = send_request('DescribeBackups', request.serialize)
|
687
|
+
response = JSON.parse(body)
|
688
|
+
if response['Response'].key?('Error') == false
|
689
|
+
model = DescribeBackupsResponse.new
|
690
|
+
model.deserialize(response['Response'])
|
691
|
+
model
|
692
|
+
else
|
693
|
+
code = response['Response']['Error']['Code']
|
694
|
+
message = response['Response']['Error']['Message']
|
695
|
+
reqid = response['Response']['RequestId']
|
696
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
+
end
|
698
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
+
raise e
|
700
|
+
rescue StandardError => e
|
701
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
+
end
|
703
|
+
|
704
|
+
# 本接口(DescribeCrossRegionZone)根据主实例查询备机的容灾地域和可用区。
|
705
|
+
|
706
|
+
# @param request: Request instance for DescribeCrossRegionZone.
|
707
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeCrossRegionZoneRequest`
|
708
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeCrossRegionZoneResponse`
|
709
|
+
def DescribeCrossRegionZone(request)
|
710
|
+
body = send_request('DescribeCrossRegionZone', request.serialize)
|
711
|
+
response = JSON.parse(body)
|
712
|
+
if response['Response'].key?('Error') == false
|
713
|
+
model = DescribeCrossRegionZoneResponse.new
|
714
|
+
model.deserialize(response['Response'])
|
715
|
+
model
|
716
|
+
else
|
717
|
+
code = response['Response']['Error']['Code']
|
718
|
+
message = response['Response']['Error']['Message']
|
719
|
+
reqid = response['Response']['RequestId']
|
720
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
721
|
+
end
|
722
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
723
|
+
raise e
|
724
|
+
rescue StandardError => e
|
725
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
|
+
end
|
727
|
+
|
728
|
+
# 本接口(DescribeDBCharsets)用于查询实例支持的数据库字符集。
|
729
|
+
|
730
|
+
# @param request: Request instance for DescribeDBCharsets.
|
731
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeDBCharsetsRequest`
|
732
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeDBCharsetsResponse`
|
733
|
+
def DescribeDBCharsets(request)
|
734
|
+
body = send_request('DescribeDBCharsets', request.serialize)
|
735
|
+
response = JSON.parse(body)
|
736
|
+
if response['Response'].key?('Error') == false
|
737
|
+
model = DescribeDBCharsetsResponse.new
|
738
|
+
model.deserialize(response['Response'])
|
739
|
+
model
|
740
|
+
else
|
741
|
+
code = response['Response']['Error']['Code']
|
742
|
+
message = response['Response']['Error']['Message']
|
743
|
+
reqid = response['Response']['RequestId']
|
744
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
745
|
+
end
|
746
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
747
|
+
raise e
|
748
|
+
rescue StandardError => e
|
749
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
|
+
end
|
751
|
+
|
752
|
+
# 本接口(DescribeDBInstances)用于查询实例列表。
|
753
|
+
|
754
|
+
# @param request: Request instance for DescribeDBInstances.
|
755
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeDBInstancesRequest`
|
756
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeDBInstancesResponse`
|
757
|
+
def DescribeDBInstances(request)
|
758
|
+
body = send_request('DescribeDBInstances', request.serialize)
|
759
|
+
response = JSON.parse(body)
|
760
|
+
if response['Response'].key?('Error') == false
|
761
|
+
model = DescribeDBInstancesResponse.new
|
762
|
+
model.deserialize(response['Response'])
|
763
|
+
model
|
764
|
+
else
|
765
|
+
code = response['Response']['Error']['Code']
|
766
|
+
message = response['Response']['Error']['Message']
|
767
|
+
reqid = response['Response']['RequestId']
|
768
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
769
|
+
end
|
770
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
771
|
+
raise e
|
772
|
+
rescue StandardError => e
|
773
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
|
+
end
|
775
|
+
|
776
|
+
# 本接口(DescribeDBSecurityGroups)用于查询实例的安全组详情。
|
777
|
+
|
778
|
+
# @param request: Request instance for DescribeDBSecurityGroups.
|
779
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeDBSecurityGroupsRequest`
|
780
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeDBSecurityGroupsResponse`
|
781
|
+
def DescribeDBSecurityGroups(request)
|
782
|
+
body = send_request('DescribeDBSecurityGroups', request.serialize)
|
783
|
+
response = JSON.parse(body)
|
784
|
+
if response['Response'].key?('Error') == false
|
785
|
+
model = DescribeDBSecurityGroupsResponse.new
|
786
|
+
model.deserialize(response['Response'])
|
787
|
+
model
|
788
|
+
else
|
789
|
+
code = response['Response']['Error']['Code']
|
790
|
+
message = response['Response']['Error']['Message']
|
791
|
+
reqid = response['Response']['RequestId']
|
792
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
793
|
+
end
|
794
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
795
|
+
raise e
|
796
|
+
rescue StandardError => e
|
797
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
|
+
end
|
799
|
+
|
800
|
+
# 本接口(DescribeDBs)用于查询数据库列表。
|
801
|
+
|
802
|
+
# @param request: Request instance for DescribeDBs.
|
803
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeDBsRequest`
|
804
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeDBsResponse`
|
805
|
+
def DescribeDBs(request)
|
806
|
+
body = send_request('DescribeDBs', request.serialize)
|
807
|
+
response = JSON.parse(body)
|
808
|
+
if response['Response'].key?('Error') == false
|
809
|
+
model = DescribeDBsResponse.new
|
810
|
+
model.deserialize(response['Response'])
|
811
|
+
model
|
812
|
+
else
|
813
|
+
code = response['Response']['Error']['Code']
|
814
|
+
message = response['Response']['Error']['Message']
|
815
|
+
reqid = response['Response']['RequestId']
|
816
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
817
|
+
end
|
818
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
819
|
+
raise e
|
820
|
+
rescue StandardError => e
|
821
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
|
+
end
|
823
|
+
|
824
|
+
# 本接口(DescribeDBsNormal)用于查询数据库配置信息,此接口不包含数据库的关联账号
|
825
|
+
|
826
|
+
# @param request: Request instance for DescribeDBsNormal.
|
827
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeDBsNormalRequest`
|
828
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeDBsNormalResponse`
|
829
|
+
def DescribeDBsNormal(request)
|
830
|
+
body = send_request('DescribeDBsNormal', request.serialize)
|
831
|
+
response = JSON.parse(body)
|
832
|
+
if response['Response'].key?('Error') == false
|
833
|
+
model = DescribeDBsNormalResponse.new
|
834
|
+
model.deserialize(response['Response'])
|
835
|
+
model
|
836
|
+
else
|
837
|
+
code = response['Response']['Error']['Code']
|
838
|
+
message = response['Response']['Error']['Message']
|
839
|
+
reqid = response['Response']['RequestId']
|
840
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
841
|
+
end
|
842
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
843
|
+
raise e
|
844
|
+
rescue StandardError => e
|
845
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
|
+
end
|
847
|
+
|
848
|
+
# 本接口(DescribeFlowStatus)用于查询流程状态。
|
849
|
+
|
850
|
+
# @param request: Request instance for DescribeFlowStatus.
|
851
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeFlowStatusRequest`
|
852
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeFlowStatusResponse`
|
853
|
+
def DescribeFlowStatus(request)
|
854
|
+
body = send_request('DescribeFlowStatus', request.serialize)
|
855
|
+
response = JSON.parse(body)
|
856
|
+
if response['Response'].key?('Error') == false
|
857
|
+
model = DescribeFlowStatusResponse.new
|
858
|
+
model.deserialize(response['Response'])
|
859
|
+
model
|
860
|
+
else
|
861
|
+
code = response['Response']['Error']['Code']
|
862
|
+
message = response['Response']['Error']['Message']
|
863
|
+
reqid = response['Response']['RequestId']
|
864
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
865
|
+
end
|
866
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
867
|
+
raise e
|
868
|
+
rescue StandardError => e
|
869
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
|
+
end
|
871
|
+
|
872
|
+
# 本接口(DescribeIncrementalMigration)用于查询增量备份导入任务。
|
873
|
+
|
874
|
+
# @param request: Request instance for DescribeIncrementalMigration.
|
875
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeIncrementalMigrationRequest`
|
876
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeIncrementalMigrationResponse`
|
877
|
+
def DescribeIncrementalMigration(request)
|
878
|
+
body = send_request('DescribeIncrementalMigration', request.serialize)
|
879
|
+
response = JSON.parse(body)
|
880
|
+
if response['Response'].key?('Error') == false
|
881
|
+
model = DescribeIncrementalMigrationResponse.new
|
882
|
+
model.deserialize(response['Response'])
|
883
|
+
model
|
884
|
+
else
|
885
|
+
code = response['Response']['Error']['Code']
|
886
|
+
message = response['Response']['Error']['Message']
|
887
|
+
reqid = response['Response']['RequestId']
|
888
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
889
|
+
end
|
890
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
891
|
+
raise e
|
892
|
+
rescue StandardError => e
|
893
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
|
+
end
|
895
|
+
|
896
|
+
# 该接口(DescribeInstanceParamRecords)用于查询实例参数修改历史。
|
897
|
+
|
898
|
+
# @param request: Request instance for DescribeInstanceParamRecords.
|
899
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeInstanceParamRecordsRequest`
|
900
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeInstanceParamRecordsResponse`
|
901
|
+
def DescribeInstanceParamRecords(request)
|
902
|
+
body = send_request('DescribeInstanceParamRecords', request.serialize)
|
903
|
+
response = JSON.parse(body)
|
904
|
+
if response['Response'].key?('Error') == false
|
905
|
+
model = DescribeInstanceParamRecordsResponse.new
|
906
|
+
model.deserialize(response['Response'])
|
907
|
+
model
|
908
|
+
else
|
909
|
+
code = response['Response']['Error']['Code']
|
910
|
+
message = response['Response']['Error']['Message']
|
911
|
+
reqid = response['Response']['RequestId']
|
912
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
913
|
+
end
|
914
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
915
|
+
raise e
|
916
|
+
rescue StandardError => e
|
917
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
918
|
+
end
|
919
|
+
|
920
|
+
# 该接口(DescribeInstanceParams)用于查询实例的参数列表。
|
921
|
+
|
922
|
+
# @param request: Request instance for DescribeInstanceParams.
|
923
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeInstanceParamsRequest`
|
924
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeInstanceParamsResponse`
|
925
|
+
def DescribeInstanceParams(request)
|
926
|
+
body = send_request('DescribeInstanceParams', request.serialize)
|
927
|
+
response = JSON.parse(body)
|
928
|
+
if response['Response'].key?('Error') == false
|
929
|
+
model = DescribeInstanceParamsResponse.new
|
930
|
+
model.deserialize(response['Response'])
|
931
|
+
model
|
932
|
+
else
|
933
|
+
code = response['Response']['Error']['Code']
|
934
|
+
message = response['Response']['Error']['Message']
|
935
|
+
reqid = response['Response']['RequestId']
|
936
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
937
|
+
end
|
938
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
939
|
+
raise e
|
940
|
+
rescue StandardError => e
|
941
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
|
+
end
|
943
|
+
|
944
|
+
# 本接口(DescribeMaintenanceSpan)根据实例ID查询该实例的可维护时间窗。
|
945
|
+
|
946
|
+
# @param request: Request instance for DescribeMaintenanceSpan.
|
947
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeMaintenanceSpanRequest`
|
948
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeMaintenanceSpanResponse`
|
949
|
+
def DescribeMaintenanceSpan(request)
|
950
|
+
body = send_request('DescribeMaintenanceSpan', request.serialize)
|
951
|
+
response = JSON.parse(body)
|
952
|
+
if response['Response'].key?('Error') == false
|
953
|
+
model = DescribeMaintenanceSpanResponse.new
|
954
|
+
model.deserialize(response['Response'])
|
955
|
+
model
|
956
|
+
else
|
957
|
+
code = response['Response']['Error']['Code']
|
958
|
+
message = response['Response']['Error']['Message']
|
959
|
+
reqid = response['Response']['RequestId']
|
960
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
961
|
+
end
|
962
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
963
|
+
raise e
|
964
|
+
rescue StandardError => e
|
965
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
966
|
+
end
|
967
|
+
|
968
|
+
# 本接口(DescribeMigrationDatabases)的作用是查询待迁移数据库列表
|
969
|
+
|
970
|
+
# @param request: Request instance for DescribeMigrationDatabases.
|
971
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeMigrationDatabasesRequest`
|
972
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeMigrationDatabasesResponse`
|
973
|
+
def DescribeMigrationDatabases(request)
|
974
|
+
body = send_request('DescribeMigrationDatabases', request.serialize)
|
975
|
+
response = JSON.parse(body)
|
976
|
+
if response['Response'].key?('Error') == false
|
977
|
+
model = DescribeMigrationDatabasesResponse.new
|
978
|
+
model.deserialize(response['Response'])
|
979
|
+
model
|
980
|
+
else
|
981
|
+
code = response['Response']['Error']['Code']
|
982
|
+
message = response['Response']['Error']['Message']
|
983
|
+
reqid = response['Response']['RequestId']
|
984
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
985
|
+
end
|
986
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
987
|
+
raise e
|
988
|
+
rescue StandardError => e
|
989
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
990
|
+
end
|
991
|
+
|
992
|
+
# 本接口(DescribeMigrationDetail)用于查询迁移任务的详细情况
|
993
|
+
|
994
|
+
# @param request: Request instance for DescribeMigrationDetail.
|
995
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeMigrationDetailRequest`
|
996
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeMigrationDetailResponse`
|
997
|
+
def DescribeMigrationDetail(request)
|
998
|
+
body = send_request('DescribeMigrationDetail', request.serialize)
|
999
|
+
response = JSON.parse(body)
|
1000
|
+
if response['Response'].key?('Error') == false
|
1001
|
+
model = DescribeMigrationDetailResponse.new
|
1002
|
+
model.deserialize(response['Response'])
|
1003
|
+
model
|
1004
|
+
else
|
1005
|
+
code = response['Response']['Error']['Code']
|
1006
|
+
message = response['Response']['Error']['Message']
|
1007
|
+
reqid = response['Response']['RequestId']
|
1008
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1009
|
+
end
|
1010
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1011
|
+
raise e
|
1012
|
+
rescue StandardError => e
|
1013
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
# 本接口(DescribeMigrations)根据输入的限定条件,查询符合条件的迁移任务列表
|
1017
|
+
|
1018
|
+
# @param request: Request instance for DescribeMigrations.
|
1019
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeMigrationsRequest`
|
1020
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeMigrationsResponse`
|
1021
|
+
def DescribeMigrations(request)
|
1022
|
+
body = send_request('DescribeMigrations', request.serialize)
|
1023
|
+
response = JSON.parse(body)
|
1024
|
+
if response['Response'].key?('Error') == false
|
1025
|
+
model = DescribeMigrationsResponse.new
|
1026
|
+
model.deserialize(response['Response'])
|
1027
|
+
model
|
1028
|
+
else
|
1029
|
+
code = response['Response']['Error']['Code']
|
1030
|
+
message = response['Response']['Error']['Message']
|
1031
|
+
reqid = response['Response']['RequestId']
|
1032
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1033
|
+
end
|
1034
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1035
|
+
raise e
|
1036
|
+
rescue StandardError => e
|
1037
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
# 本接口(DescribeOrders)用于查询订单信息
|
1041
|
+
|
1042
|
+
# @param request: Request instance for DescribeOrders.
|
1043
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeOrdersRequest`
|
1044
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeOrdersResponse`
|
1045
|
+
def DescribeOrders(request)
|
1046
|
+
body = send_request('DescribeOrders', request.serialize)
|
1047
|
+
response = JSON.parse(body)
|
1048
|
+
if response['Response'].key?('Error') == false
|
1049
|
+
model = DescribeOrdersResponse.new
|
1050
|
+
model.deserialize(response['Response'])
|
1051
|
+
model
|
1052
|
+
else
|
1053
|
+
code = response['Response']['Error']['Code']
|
1054
|
+
message = response['Response']['Error']['Message']
|
1055
|
+
reqid = response['Response']['RequestId']
|
1056
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1057
|
+
end
|
1058
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1059
|
+
raise e
|
1060
|
+
rescue StandardError => e
|
1061
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
# 本接口 (DescribeProductConfig) 用于查询售卖规格配置。
|
1065
|
+
|
1066
|
+
# @param request: Request instance for DescribeProductConfig.
|
1067
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeProductConfigRequest`
|
1068
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeProductConfigResponse`
|
1069
|
+
def DescribeProductConfig(request)
|
1070
|
+
body = send_request('DescribeProductConfig', request.serialize)
|
1071
|
+
response = JSON.parse(body)
|
1072
|
+
if response['Response'].key?('Error') == false
|
1073
|
+
model = DescribeProductConfigResponse.new
|
1074
|
+
model.deserialize(response['Response'])
|
1075
|
+
model
|
1076
|
+
else
|
1077
|
+
code = response['Response']['Error']['Code']
|
1078
|
+
message = response['Response']['Error']['Message']
|
1079
|
+
reqid = response['Response']['RequestId']
|
1080
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1081
|
+
end
|
1082
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1083
|
+
raise e
|
1084
|
+
rescue StandardError => e
|
1085
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
# 本接口(DescribeProjectSecurityGroups)用于查询项目的安全组详情。
|
1089
|
+
|
1090
|
+
# @param request: Request instance for DescribeProjectSecurityGroups.
|
1091
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeProjectSecurityGroupsRequest`
|
1092
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeProjectSecurityGroupsResponse`
|
1093
|
+
def DescribeProjectSecurityGroups(request)
|
1094
|
+
body = send_request('DescribeProjectSecurityGroups', request.serialize)
|
1095
|
+
response = JSON.parse(body)
|
1096
|
+
if response['Response'].key?('Error') == false
|
1097
|
+
model = DescribeProjectSecurityGroupsResponse.new
|
1098
|
+
model.deserialize(response['Response'])
|
1099
|
+
model
|
1100
|
+
else
|
1101
|
+
code = response['Response']['Error']['Code']
|
1102
|
+
message = response['Response']['Error']['Message']
|
1103
|
+
reqid = response['Response']['RequestId']
|
1104
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1105
|
+
end
|
1106
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1107
|
+
raise e
|
1108
|
+
rescue StandardError => e
|
1109
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1110
|
+
end
|
1111
|
+
|
1112
|
+
# 本接口(DescribePublishSubscribe)用于查询发布订阅关系列表。
|
1113
|
+
|
1114
|
+
# @param request: Request instance for DescribePublishSubscribe.
|
1115
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribePublishSubscribeRequest`
|
1116
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribePublishSubscribeResponse`
|
1117
|
+
def DescribePublishSubscribe(request)
|
1118
|
+
body = send_request('DescribePublishSubscribe', request.serialize)
|
1119
|
+
response = JSON.parse(body)
|
1120
|
+
if response['Response'].key?('Error') == false
|
1121
|
+
model = DescribePublishSubscribeResponse.new
|
1122
|
+
model.deserialize(response['Response'])
|
1123
|
+
model
|
1124
|
+
else
|
1125
|
+
code = response['Response']['Error']['Code']
|
1126
|
+
message = response['Response']['Error']['Message']
|
1127
|
+
reqid = response['Response']['RequestId']
|
1128
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1129
|
+
end
|
1130
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1131
|
+
raise e
|
1132
|
+
rescue StandardError => e
|
1133
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
# 本接口(DescribeReadOnlyGroupByReadOnlyInstance)用于通过只读副本实例ID查询其所在的只读组。
|
1137
|
+
|
1138
|
+
# @param request: Request instance for DescribeReadOnlyGroupByReadOnlyInstance.
|
1139
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeReadOnlyGroupByReadOnlyInstanceRequest`
|
1140
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeReadOnlyGroupByReadOnlyInstanceResponse`
|
1141
|
+
def DescribeReadOnlyGroupByReadOnlyInstance(request)
|
1142
|
+
body = send_request('DescribeReadOnlyGroupByReadOnlyInstance', request.serialize)
|
1143
|
+
response = JSON.parse(body)
|
1144
|
+
if response['Response'].key?('Error') == false
|
1145
|
+
model = DescribeReadOnlyGroupByReadOnlyInstanceResponse.new
|
1146
|
+
model.deserialize(response['Response'])
|
1147
|
+
model
|
1148
|
+
else
|
1149
|
+
code = response['Response']['Error']['Code']
|
1150
|
+
message = response['Response']['Error']['Message']
|
1151
|
+
reqid = response['Response']['RequestId']
|
1152
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1153
|
+
end
|
1154
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1155
|
+
raise e
|
1156
|
+
rescue StandardError => e
|
1157
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
# 本接口(DescribeReadOnlyGroupDetails)用于查询只读组详情。
|
1161
|
+
|
1162
|
+
# @param request: Request instance for DescribeReadOnlyGroupDetails.
|
1163
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeReadOnlyGroupDetailsRequest`
|
1164
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeReadOnlyGroupDetailsResponse`
|
1165
|
+
def DescribeReadOnlyGroupDetails(request)
|
1166
|
+
body = send_request('DescribeReadOnlyGroupDetails', request.serialize)
|
1167
|
+
response = JSON.parse(body)
|
1168
|
+
if response['Response'].key?('Error') == false
|
1169
|
+
model = DescribeReadOnlyGroupDetailsResponse.new
|
1170
|
+
model.deserialize(response['Response'])
|
1171
|
+
model
|
1172
|
+
else
|
1173
|
+
code = response['Response']['Error']['Code']
|
1174
|
+
message = response['Response']['Error']['Message']
|
1175
|
+
reqid = response['Response']['RequestId']
|
1176
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1177
|
+
end
|
1178
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1179
|
+
raise e
|
1180
|
+
rescue StandardError => e
|
1181
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1182
|
+
end
|
1183
|
+
|
1184
|
+
# 本接口(DescribeReadOnlyGroupList)用于查询只读组列表。
|
1185
|
+
|
1186
|
+
# @param request: Request instance for DescribeReadOnlyGroupList.
|
1187
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeReadOnlyGroupListRequest`
|
1188
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeReadOnlyGroupListResponse`
|
1189
|
+
def DescribeReadOnlyGroupList(request)
|
1190
|
+
body = send_request('DescribeReadOnlyGroupList', request.serialize)
|
1191
|
+
response = JSON.parse(body)
|
1192
|
+
if response['Response'].key?('Error') == false
|
1193
|
+
model = DescribeReadOnlyGroupListResponse.new
|
1194
|
+
model.deserialize(response['Response'])
|
1195
|
+
model
|
1196
|
+
else
|
1197
|
+
code = response['Response']['Error']['Code']
|
1198
|
+
message = response['Response']['Error']['Message']
|
1199
|
+
reqid = response['Response']['RequestId']
|
1200
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1201
|
+
end
|
1202
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1203
|
+
raise e
|
1204
|
+
rescue StandardError => e
|
1205
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1206
|
+
end
|
1207
|
+
|
1208
|
+
# 本接口 (DescribeRegions) 用于查询售卖地域信息。
|
1209
|
+
|
1210
|
+
# @param request: Request instance for DescribeRegions.
|
1211
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeRegionsRequest`
|
1212
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeRegionsResponse`
|
1213
|
+
def DescribeRegions(request)
|
1214
|
+
body = send_request('DescribeRegions', request.serialize)
|
1215
|
+
response = JSON.parse(body)
|
1216
|
+
if response['Response'].key?('Error') == false
|
1217
|
+
model = DescribeRegionsResponse.new
|
1218
|
+
model.deserialize(response['Response'])
|
1219
|
+
model
|
1220
|
+
else
|
1221
|
+
code = response['Response']['Error']['Code']
|
1222
|
+
message = response['Response']['Error']['Message']
|
1223
|
+
reqid = response['Response']['RequestId']
|
1224
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1225
|
+
end
|
1226
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1227
|
+
raise e
|
1228
|
+
rescue StandardError => e
|
1229
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1230
|
+
end
|
1231
|
+
|
1232
|
+
# 本接口(DescribeRollbackTime)用于查询实例可回档时间范围
|
1233
|
+
|
1234
|
+
# @param request: Request instance for DescribeRollbackTime.
|
1235
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeRollbackTimeRequest`
|
1236
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeRollbackTimeResponse`
|
1237
|
+
def DescribeRollbackTime(request)
|
1238
|
+
body = send_request('DescribeRollbackTime', request.serialize)
|
1239
|
+
response = JSON.parse(body)
|
1240
|
+
if response['Response'].key?('Error') == false
|
1241
|
+
model = DescribeRollbackTimeResponse.new
|
1242
|
+
model.deserialize(response['Response'])
|
1243
|
+
model
|
1244
|
+
else
|
1245
|
+
code = response['Response']['Error']['Code']
|
1246
|
+
message = response['Response']['Error']['Message']
|
1247
|
+
reqid = response['Response']['RequestId']
|
1248
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1249
|
+
end
|
1250
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1251
|
+
raise e
|
1252
|
+
rescue StandardError => e
|
1253
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1254
|
+
end
|
1255
|
+
|
1256
|
+
# 本接口(DescribeSlowlogs)用于获取慢查询日志文件信息
|
1257
|
+
|
1258
|
+
# @param request: Request instance for DescribeSlowlogs.
|
1259
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeSlowlogsRequest`
|
1260
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeSlowlogsResponse`
|
1261
|
+
def DescribeSlowlogs(request)
|
1262
|
+
body = send_request('DescribeSlowlogs', request.serialize)
|
1263
|
+
response = JSON.parse(body)
|
1264
|
+
if response['Response'].key?('Error') == false
|
1265
|
+
model = DescribeSlowlogsResponse.new
|
1266
|
+
model.deserialize(response['Response'])
|
1267
|
+
model
|
1268
|
+
else
|
1269
|
+
code = response['Response']['Error']['Code']
|
1270
|
+
message = response['Response']['Error']['Message']
|
1271
|
+
reqid = response['Response']['RequestId']
|
1272
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1273
|
+
end
|
1274
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1275
|
+
raise e
|
1276
|
+
rescue StandardError => e
|
1277
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
# 本接口(DescribeUploadBackupInfo)用于查询备份上传权限。
|
1281
|
+
|
1282
|
+
# @param request: Request instance for DescribeUploadBackupInfo.
|
1283
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeUploadBackupInfoRequest`
|
1284
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeUploadBackupInfoResponse`
|
1285
|
+
def DescribeUploadBackupInfo(request)
|
1286
|
+
body = send_request('DescribeUploadBackupInfo', request.serialize)
|
1287
|
+
response = JSON.parse(body)
|
1288
|
+
if response['Response'].key?('Error') == false
|
1289
|
+
model = DescribeUploadBackupInfoResponse.new
|
1290
|
+
model.deserialize(response['Response'])
|
1291
|
+
model
|
1292
|
+
else
|
1293
|
+
code = response['Response']['Error']['Code']
|
1294
|
+
message = response['Response']['Error']['Message']
|
1295
|
+
reqid = response['Response']['RequestId']
|
1296
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1297
|
+
end
|
1298
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1299
|
+
raise e
|
1300
|
+
rescue StandardError => e
|
1301
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
# 本接口(DescribeUploadIncrementalInfo)用于查询增量备份上传权限。
|
1305
|
+
|
1306
|
+
# @param request: Request instance for DescribeUploadIncrementalInfo.
|
1307
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeUploadIncrementalInfoRequest`
|
1308
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeUploadIncrementalInfoResponse`
|
1309
|
+
def DescribeUploadIncrementalInfo(request)
|
1310
|
+
body = send_request('DescribeUploadIncrementalInfo', request.serialize)
|
1311
|
+
response = JSON.parse(body)
|
1312
|
+
if response['Response'].key?('Error') == false
|
1313
|
+
model = DescribeUploadIncrementalInfoResponse.new
|
1314
|
+
model.deserialize(response['Response'])
|
1315
|
+
model
|
1316
|
+
else
|
1317
|
+
code = response['Response']['Error']['Code']
|
1318
|
+
message = response['Response']['Error']['Message']
|
1319
|
+
reqid = response['Response']['RequestId']
|
1320
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1321
|
+
end
|
1322
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1323
|
+
raise e
|
1324
|
+
rescue StandardError => e
|
1325
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
# 本接口 (DescribeZones) 用于查询当前可售卖的可用区信息。
|
1329
|
+
|
1330
|
+
# @param request: Request instance for DescribeZones.
|
1331
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeZonesRequest`
|
1332
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeZonesResponse`
|
1333
|
+
def DescribeZones(request)
|
1334
|
+
body = send_request('DescribeZones', request.serialize)
|
1335
|
+
response = JSON.parse(body)
|
1336
|
+
if response['Response'].key?('Error') == false
|
1337
|
+
model = DescribeZonesResponse.new
|
1338
|
+
model.deserialize(response['Response'])
|
1339
|
+
model
|
1340
|
+
else
|
1341
|
+
code = response['Response']['Error']['Code']
|
1342
|
+
message = response['Response']['Error']['Message']
|
1343
|
+
reqid = response['Response']['RequestId']
|
1344
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1345
|
+
end
|
1346
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1347
|
+
raise e
|
1348
|
+
rescue StandardError => e
|
1349
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
# 本接口(DisassociateSecurityGroups)用于安全组批量解绑实例。
|
1353
|
+
|
1354
|
+
# @param request: Request instance for DisassociateSecurityGroups.
|
1355
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DisassociateSecurityGroupsRequest`
|
1356
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DisassociateSecurityGroupsResponse`
|
1357
|
+
def DisassociateSecurityGroups(request)
|
1358
|
+
body = send_request('DisassociateSecurityGroups', request.serialize)
|
1359
|
+
response = JSON.parse(body)
|
1360
|
+
if response['Response'].key?('Error') == false
|
1361
|
+
model = DisassociateSecurityGroupsResponse.new
|
1362
|
+
model.deserialize(response['Response'])
|
1363
|
+
model
|
1364
|
+
else
|
1365
|
+
code = response['Response']['Error']['Code']
|
1366
|
+
message = response['Response']['Error']['Message']
|
1367
|
+
reqid = response['Response']['RequestId']
|
1368
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1369
|
+
end
|
1370
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1371
|
+
raise e
|
1372
|
+
rescue StandardError => e
|
1373
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1374
|
+
end
|
1375
|
+
|
1376
|
+
# 本接口(InquiryPriceCreateDBInstances)用于查询申请实例价格。
|
1377
|
+
|
1378
|
+
# @param request: Request instance for InquiryPriceCreateDBInstances.
|
1379
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::InquiryPriceCreateDBInstancesRequest`
|
1380
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::InquiryPriceCreateDBInstancesResponse`
|
1381
|
+
def InquiryPriceCreateDBInstances(request)
|
1382
|
+
body = send_request('InquiryPriceCreateDBInstances', request.serialize)
|
1383
|
+
response = JSON.parse(body)
|
1384
|
+
if response['Response'].key?('Error') == false
|
1385
|
+
model = InquiryPriceCreateDBInstancesResponse.new
|
1386
|
+
model.deserialize(response['Response'])
|
1387
|
+
model
|
1388
|
+
else
|
1389
|
+
code = response['Response']['Error']['Code']
|
1390
|
+
message = response['Response']['Error']['Message']
|
1391
|
+
reqid = response['Response']['RequestId']
|
1392
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1393
|
+
end
|
1394
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1395
|
+
raise e
|
1396
|
+
rescue StandardError => e
|
1397
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
# 本接口(InquiryPriceRenewDBInstance)用于查询续费实例的价格。
|
1401
|
+
|
1402
|
+
# @param request: Request instance for InquiryPriceRenewDBInstance.
|
1403
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::InquiryPriceRenewDBInstanceRequest`
|
1404
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::InquiryPriceRenewDBInstanceResponse`
|
1405
|
+
def InquiryPriceRenewDBInstance(request)
|
1406
|
+
body = send_request('InquiryPriceRenewDBInstance', request.serialize)
|
1407
|
+
response = JSON.parse(body)
|
1408
|
+
if response['Response'].key?('Error') == false
|
1409
|
+
model = InquiryPriceRenewDBInstanceResponse.new
|
1410
|
+
model.deserialize(response['Response'])
|
1411
|
+
model
|
1412
|
+
else
|
1413
|
+
code = response['Response']['Error']['Code']
|
1414
|
+
message = response['Response']['Error']['Message']
|
1415
|
+
reqid = response['Response']['RequestId']
|
1416
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1417
|
+
end
|
1418
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1419
|
+
raise e
|
1420
|
+
rescue StandardError => e
|
1421
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1422
|
+
end
|
1423
|
+
|
1424
|
+
# 本接口(InquiryPriceUpgradeDBInstance)用于查询升级实例的价格。
|
1425
|
+
|
1426
|
+
# @param request: Request instance for InquiryPriceUpgradeDBInstance.
|
1427
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::InquiryPriceUpgradeDBInstanceRequest`
|
1428
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::InquiryPriceUpgradeDBInstanceResponse`
|
1429
|
+
def InquiryPriceUpgradeDBInstance(request)
|
1430
|
+
body = send_request('InquiryPriceUpgradeDBInstance', request.serialize)
|
1431
|
+
response = JSON.parse(body)
|
1432
|
+
if response['Response'].key?('Error') == false
|
1433
|
+
model = InquiryPriceUpgradeDBInstanceResponse.new
|
1434
|
+
model.deserialize(response['Response'])
|
1435
|
+
model
|
1436
|
+
else
|
1437
|
+
code = response['Response']['Error']['Code']
|
1438
|
+
message = response['Response']['Error']['Message']
|
1439
|
+
reqid = response['Response']['RequestId']
|
1440
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1441
|
+
end
|
1442
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1443
|
+
raise e
|
1444
|
+
rescue StandardError => e
|
1445
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
# 本接口(ModifyAccountPrivilege)用于修改实例账户权限。
|
1449
|
+
|
1450
|
+
# @param request: Request instance for ModifyAccountPrivilege.
|
1451
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyAccountPrivilegeRequest`
|
1452
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyAccountPrivilegeResponse`
|
1453
|
+
def ModifyAccountPrivilege(request)
|
1454
|
+
body = send_request('ModifyAccountPrivilege', request.serialize)
|
1455
|
+
response = JSON.parse(body)
|
1456
|
+
if response['Response'].key?('Error') == false
|
1457
|
+
model = ModifyAccountPrivilegeResponse.new
|
1458
|
+
model.deserialize(response['Response'])
|
1459
|
+
model
|
1460
|
+
else
|
1461
|
+
code = response['Response']['Error']['Code']
|
1462
|
+
message = response['Response']['Error']['Message']
|
1463
|
+
reqid = response['Response']['RequestId']
|
1464
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1465
|
+
end
|
1466
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1467
|
+
raise e
|
1468
|
+
rescue StandardError => e
|
1469
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1470
|
+
end
|
1471
|
+
|
1472
|
+
# 本接口(ModifyAccountRemark)用于修改账户备注。
|
1473
|
+
|
1474
|
+
# @param request: Request instance for ModifyAccountRemark.
|
1475
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyAccountRemarkRequest`
|
1476
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyAccountRemarkResponse`
|
1477
|
+
def ModifyAccountRemark(request)
|
1478
|
+
body = send_request('ModifyAccountRemark', request.serialize)
|
1479
|
+
response = JSON.parse(body)
|
1480
|
+
if response['Response'].key?('Error') == false
|
1481
|
+
model = ModifyAccountRemarkResponse.new
|
1482
|
+
model.deserialize(response['Response'])
|
1483
|
+
model
|
1484
|
+
else
|
1485
|
+
code = response['Response']['Error']['Code']
|
1486
|
+
message = response['Response']['Error']['Message']
|
1487
|
+
reqid = response['Response']['RequestId']
|
1488
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1489
|
+
end
|
1490
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1491
|
+
raise e
|
1492
|
+
rescue StandardError => e
|
1493
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1494
|
+
end
|
1495
|
+
|
1496
|
+
# 本接口(ModifyBackupMigration)用于修改备份导入任务。
|
1497
|
+
|
1498
|
+
# @param request: Request instance for ModifyBackupMigration.
|
1499
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyBackupMigrationRequest`
|
1500
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyBackupMigrationResponse`
|
1501
|
+
def ModifyBackupMigration(request)
|
1502
|
+
body = send_request('ModifyBackupMigration', request.serialize)
|
1503
|
+
response = JSON.parse(body)
|
1504
|
+
if response['Response'].key?('Error') == false
|
1505
|
+
model = ModifyBackupMigrationResponse.new
|
1506
|
+
model.deserialize(response['Response'])
|
1507
|
+
model
|
1508
|
+
else
|
1509
|
+
code = response['Response']['Error']['Code']
|
1510
|
+
message = response['Response']['Error']['Message']
|
1511
|
+
reqid = response['Response']['RequestId']
|
1512
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1513
|
+
end
|
1514
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1515
|
+
raise e
|
1516
|
+
rescue StandardError => e
|
1517
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1518
|
+
end
|
1519
|
+
|
1520
|
+
# 本接口(ModifyBackupName)用于修改备份任务名称。
|
1521
|
+
|
1522
|
+
# @param request: Request instance for ModifyBackupName.
|
1523
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyBackupNameRequest`
|
1524
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyBackupNameResponse`
|
1525
|
+
def ModifyBackupName(request)
|
1526
|
+
body = send_request('ModifyBackupName', request.serialize)
|
1527
|
+
response = JSON.parse(body)
|
1528
|
+
if response['Response'].key?('Error') == false
|
1529
|
+
model = ModifyBackupNameResponse.new
|
1530
|
+
model.deserialize(response['Response'])
|
1531
|
+
model
|
1532
|
+
else
|
1533
|
+
code = response['Response']['Error']['Code']
|
1534
|
+
message = response['Response']['Error']['Message']
|
1535
|
+
reqid = response['Response']['RequestId']
|
1536
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1537
|
+
end
|
1538
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1539
|
+
raise e
|
1540
|
+
rescue StandardError => e
|
1541
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
# 本接口(ModifyBackupStrategy)用于修改备份策略
|
1545
|
+
|
1546
|
+
# @param request: Request instance for ModifyBackupStrategy.
|
1547
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyBackupStrategyRequest`
|
1548
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyBackupStrategyResponse`
|
1549
|
+
def ModifyBackupStrategy(request)
|
1550
|
+
body = send_request('ModifyBackupStrategy', request.serialize)
|
1551
|
+
response = JSON.parse(body)
|
1552
|
+
if response['Response'].key?('Error') == false
|
1553
|
+
model = ModifyBackupStrategyResponse.new
|
1554
|
+
model.deserialize(response['Response'])
|
1555
|
+
model
|
1556
|
+
else
|
1557
|
+
code = response['Response']['Error']['Code']
|
1558
|
+
message = response['Response']['Error']['Message']
|
1559
|
+
reqid = response['Response']['RequestId']
|
1560
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1561
|
+
end
|
1562
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1563
|
+
raise e
|
1564
|
+
rescue StandardError => e
|
1565
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1566
|
+
end
|
1567
|
+
|
1568
|
+
# 本接口(ModifyDBInstanceName)用于修改实例名字。
|
1569
|
+
|
1570
|
+
# @param request: Request instance for ModifyDBInstanceName.
|
1571
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBInstanceNameRequest`
|
1572
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBInstanceNameResponse`
|
1573
|
+
def ModifyDBInstanceName(request)
|
1574
|
+
body = send_request('ModifyDBInstanceName', request.serialize)
|
1575
|
+
response = JSON.parse(body)
|
1576
|
+
if response['Response'].key?('Error') == false
|
1577
|
+
model = ModifyDBInstanceNameResponse.new
|
1578
|
+
model.deserialize(response['Response'])
|
1579
|
+
model
|
1580
|
+
else
|
1581
|
+
code = response['Response']['Error']['Code']
|
1582
|
+
message = response['Response']['Error']['Message']
|
1583
|
+
reqid = response['Response']['RequestId']
|
1584
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1585
|
+
end
|
1586
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1587
|
+
raise e
|
1588
|
+
rescue StandardError => e
|
1589
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1590
|
+
end
|
1591
|
+
|
1592
|
+
# 本接口(ModifyDBInstanceNetwork)用于修改运行中实例的网络,仅支持从VPC网络到VPC网络的转换
|
1593
|
+
|
1594
|
+
# @param request: Request instance for ModifyDBInstanceNetwork.
|
1595
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBInstanceNetworkRequest`
|
1596
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBInstanceNetworkResponse`
|
1597
|
+
def ModifyDBInstanceNetwork(request)
|
1598
|
+
body = send_request('ModifyDBInstanceNetwork', request.serialize)
|
1599
|
+
response = JSON.parse(body)
|
1600
|
+
if response['Response'].key?('Error') == false
|
1601
|
+
model = ModifyDBInstanceNetworkResponse.new
|
1602
|
+
model.deserialize(response['Response'])
|
1603
|
+
model
|
1604
|
+
else
|
1605
|
+
code = response['Response']['Error']['Code']
|
1606
|
+
message = response['Response']['Error']['Message']
|
1607
|
+
reqid = response['Response']['RequestId']
|
1608
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1609
|
+
end
|
1610
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1611
|
+
raise e
|
1612
|
+
rescue StandardError => e
|
1613
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
# 本接口(ModifyDBInstanceProject)用于修改数据库实例所属项目。
|
1617
|
+
|
1618
|
+
# @param request: Request instance for ModifyDBInstanceProject.
|
1619
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBInstanceProjectRequest`
|
1620
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBInstanceProjectResponse`
|
1621
|
+
def ModifyDBInstanceProject(request)
|
1622
|
+
body = send_request('ModifyDBInstanceProject', request.serialize)
|
1623
|
+
response = JSON.parse(body)
|
1624
|
+
if response['Response'].key?('Error') == false
|
1625
|
+
model = ModifyDBInstanceProjectResponse.new
|
1626
|
+
model.deserialize(response['Response'])
|
1627
|
+
model
|
1628
|
+
else
|
1629
|
+
code = response['Response']['Error']['Code']
|
1630
|
+
message = response['Response']['Error']['Message']
|
1631
|
+
reqid = response['Response']['RequestId']
|
1632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1633
|
+
end
|
1634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1635
|
+
raise e
|
1636
|
+
rescue StandardError => e
|
1637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
|
+
end
|
1639
|
+
|
1640
|
+
# 本接口(ModifyDBInstanceRenewFlag)用于修改实例续费标记
|
1641
|
+
|
1642
|
+
# @param request: Request instance for ModifyDBInstanceRenewFlag.
|
1643
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBInstanceRenewFlagRequest`
|
1644
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBInstanceRenewFlagResponse`
|
1645
|
+
def ModifyDBInstanceRenewFlag(request)
|
1646
|
+
body = send_request('ModifyDBInstanceRenewFlag', request.serialize)
|
1647
|
+
response = JSON.parse(body)
|
1648
|
+
if response['Response'].key?('Error') == false
|
1649
|
+
model = ModifyDBInstanceRenewFlagResponse.new
|
1650
|
+
model.deserialize(response['Response'])
|
1651
|
+
model
|
1652
|
+
else
|
1653
|
+
code = response['Response']['Error']['Code']
|
1654
|
+
message = response['Response']['Error']['Message']
|
1655
|
+
reqid = response['Response']['RequestId']
|
1656
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1657
|
+
end
|
1658
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1659
|
+
raise e
|
1660
|
+
rescue StandardError => e
|
1661
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1662
|
+
end
|
1663
|
+
|
1664
|
+
# 本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
|
1665
|
+
|
1666
|
+
# @param request: Request instance for ModifyDBInstanceSecurityGroups.
|
1667
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBInstanceSecurityGroupsRequest`
|
1668
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBInstanceSecurityGroupsResponse`
|
1669
|
+
def ModifyDBInstanceSecurityGroups(request)
|
1670
|
+
body = send_request('ModifyDBInstanceSecurityGroups', request.serialize)
|
1671
|
+
response = JSON.parse(body)
|
1672
|
+
if response['Response'].key?('Error') == false
|
1673
|
+
model = ModifyDBInstanceSecurityGroupsResponse.new
|
1674
|
+
model.deserialize(response['Response'])
|
1675
|
+
model
|
1676
|
+
else
|
1677
|
+
code = response['Response']['Error']['Code']
|
1678
|
+
message = response['Response']['Error']['Message']
|
1679
|
+
reqid = response['Response']['RequestId']
|
1680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1681
|
+
end
|
1682
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1683
|
+
raise e
|
1684
|
+
rescue StandardError => e
|
1685
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1686
|
+
end
|
1687
|
+
|
1688
|
+
# 本接口(ModifyDBName)用于更新数据库名。
|
1689
|
+
|
1690
|
+
# @param request: Request instance for ModifyDBName.
|
1691
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBNameRequest`
|
1692
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBNameResponse`
|
1693
|
+
def ModifyDBName(request)
|
1694
|
+
body = send_request('ModifyDBName', request.serialize)
|
1695
|
+
response = JSON.parse(body)
|
1696
|
+
if response['Response'].key?('Error') == false
|
1697
|
+
model = ModifyDBNameResponse.new
|
1698
|
+
model.deserialize(response['Response'])
|
1699
|
+
model
|
1700
|
+
else
|
1701
|
+
code = response['Response']['Error']['Code']
|
1702
|
+
message = response['Response']['Error']['Message']
|
1703
|
+
reqid = response['Response']['RequestId']
|
1704
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1705
|
+
end
|
1706
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1707
|
+
raise e
|
1708
|
+
rescue StandardError => e
|
1709
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1710
|
+
end
|
1711
|
+
|
1712
|
+
# 本接口(ModifyDBRemark)用于修改数据库备注。
|
1713
|
+
|
1714
|
+
# @param request: Request instance for ModifyDBRemark.
|
1715
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBRemarkRequest`
|
1716
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyDBRemarkResponse`
|
1717
|
+
def ModifyDBRemark(request)
|
1718
|
+
body = send_request('ModifyDBRemark', request.serialize)
|
1719
|
+
response = JSON.parse(body)
|
1720
|
+
if response['Response'].key?('Error') == false
|
1721
|
+
model = ModifyDBRemarkResponse.new
|
1722
|
+
model.deserialize(response['Response'])
|
1723
|
+
model
|
1724
|
+
else
|
1725
|
+
code = response['Response']['Error']['Code']
|
1726
|
+
message = response['Response']['Error']['Message']
|
1727
|
+
reqid = response['Response']['RequestId']
|
1728
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1729
|
+
end
|
1730
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1731
|
+
raise e
|
1732
|
+
rescue StandardError => e
|
1733
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1734
|
+
end
|
1735
|
+
|
1736
|
+
# 本接口(ModifyDatabaseCDC)用于开启、关闭数据库数据变更捕获(CDC)
|
1737
|
+
|
1738
|
+
# @param request: Request instance for ModifyDatabaseCDC.
|
1739
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyDatabaseCDCRequest`
|
1740
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyDatabaseCDCResponse`
|
1741
|
+
def ModifyDatabaseCDC(request)
|
1742
|
+
body = send_request('ModifyDatabaseCDC', request.serialize)
|
1743
|
+
response = JSON.parse(body)
|
1744
|
+
if response['Response'].key?('Error') == false
|
1745
|
+
model = ModifyDatabaseCDCResponse.new
|
1746
|
+
model.deserialize(response['Response'])
|
1747
|
+
model
|
1748
|
+
else
|
1749
|
+
code = response['Response']['Error']['Code']
|
1750
|
+
message = response['Response']['Error']['Message']
|
1751
|
+
reqid = response['Response']['RequestId']
|
1752
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1753
|
+
end
|
1754
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1755
|
+
raise e
|
1756
|
+
rescue StandardError => e
|
1757
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1758
|
+
end
|
1759
|
+
|
1760
|
+
# 本接口(ModifyDatabaseCT)用于启用、禁用数据库数据变更跟踪(CT)
|
1761
|
+
|
1762
|
+
# @param request: Request instance for ModifyDatabaseCT.
|
1763
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyDatabaseCTRequest`
|
1764
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyDatabaseCTResponse`
|
1765
|
+
def ModifyDatabaseCT(request)
|
1766
|
+
body = send_request('ModifyDatabaseCT', request.serialize)
|
1767
|
+
response = JSON.parse(body)
|
1768
|
+
if response['Response'].key?('Error') == false
|
1769
|
+
model = ModifyDatabaseCTResponse.new
|
1770
|
+
model.deserialize(response['Response'])
|
1771
|
+
model
|
1772
|
+
else
|
1773
|
+
code = response['Response']['Error']['Code']
|
1774
|
+
message = response['Response']['Error']['Message']
|
1775
|
+
reqid = response['Response']['RequestId']
|
1776
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1777
|
+
end
|
1778
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1779
|
+
raise e
|
1780
|
+
rescue StandardError => e
|
1781
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1782
|
+
end
|
1783
|
+
|
1784
|
+
# 本接口(ModifyDatabaseMdf)用于收缩数据库mdf(Shrink mdf)
|
1785
|
+
|
1786
|
+
# @param request: Request instance for ModifyDatabaseMdf.
|
1787
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyDatabaseMdfRequest`
|
1788
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyDatabaseMdfResponse`
|
1789
|
+
def ModifyDatabaseMdf(request)
|
1790
|
+
body = send_request('ModifyDatabaseMdf', request.serialize)
|
1791
|
+
response = JSON.parse(body)
|
1792
|
+
if response['Response'].key?('Error') == false
|
1793
|
+
model = ModifyDatabaseMdfResponse.new
|
1794
|
+
model.deserialize(response['Response'])
|
1795
|
+
model
|
1796
|
+
else
|
1797
|
+
code = response['Response']['Error']['Code']
|
1798
|
+
message = response['Response']['Error']['Message']
|
1799
|
+
reqid = response['Response']['RequestId']
|
1800
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1801
|
+
end
|
1802
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1803
|
+
raise e
|
1804
|
+
rescue StandardError => e
|
1805
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1806
|
+
end
|
1807
|
+
|
1808
|
+
# 本接口(ModifyIncrementalMigration)用于修改增量备份导入任务。
|
1809
|
+
|
1810
|
+
# @param request: Request instance for ModifyIncrementalMigration.
|
1811
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyIncrementalMigrationRequest`
|
1812
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyIncrementalMigrationResponse`
|
1813
|
+
def ModifyIncrementalMigration(request)
|
1814
|
+
body = send_request('ModifyIncrementalMigration', request.serialize)
|
1815
|
+
response = JSON.parse(body)
|
1816
|
+
if response['Response'].key?('Error') == false
|
1817
|
+
model = ModifyIncrementalMigrationResponse.new
|
1818
|
+
model.deserialize(response['Response'])
|
1819
|
+
model
|
1820
|
+
else
|
1821
|
+
code = response['Response']['Error']['Code']
|
1822
|
+
message = response['Response']['Error']['Message']
|
1823
|
+
reqid = response['Response']['RequestId']
|
1824
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1825
|
+
end
|
1826
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1827
|
+
raise e
|
1828
|
+
rescue StandardError => e
|
1829
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1830
|
+
end
|
1831
|
+
|
1832
|
+
# 本接口(ModifyInstanceParam)用于修改云数据库实例的参数。
|
1833
|
+
# <b>注意</b>:如果修改的参数是需要<b>重启实例</b>的,那么实例将会按照WaitSwitch参数的设置(可能是立即执行也可能在可维护时间窗内自动执行)在执行参数修改时<b>重启实例</b>。
|
1834
|
+
# 您可以通过DescribeInstanceParams接口查询修改参数时是否会重启实例,以免导致您的实例不符合预期重启。
|
1835
|
+
|
1836
|
+
# @param request: Request instance for ModifyInstanceParam.
|
1837
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyInstanceParamRequest`
|
1838
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyInstanceParamResponse`
|
1839
|
+
def ModifyInstanceParam(request)
|
1840
|
+
body = send_request('ModifyInstanceParam', request.serialize)
|
1841
|
+
response = JSON.parse(body)
|
1842
|
+
if response['Response'].key?('Error') == false
|
1843
|
+
model = ModifyInstanceParamResponse.new
|
1844
|
+
model.deserialize(response['Response'])
|
1845
|
+
model
|
1846
|
+
else
|
1847
|
+
code = response['Response']['Error']['Code']
|
1848
|
+
message = response['Response']['Error']['Message']
|
1849
|
+
reqid = response['Response']['RequestId']
|
1850
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1851
|
+
end
|
1852
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1853
|
+
raise e
|
1854
|
+
rescue StandardError => e
|
1855
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1856
|
+
end
|
1857
|
+
|
1858
|
+
# 本接口(ModifyMaintenanceSpan)用于修改实例的可维护时间窗
|
1859
|
+
|
1860
|
+
# @param request: Request instance for ModifyMaintenanceSpan.
|
1861
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyMaintenanceSpanRequest`
|
1862
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyMaintenanceSpanResponse`
|
1863
|
+
def ModifyMaintenanceSpan(request)
|
1864
|
+
body = send_request('ModifyMaintenanceSpan', request.serialize)
|
1865
|
+
response = JSON.parse(body)
|
1866
|
+
if response['Response'].key?('Error') == false
|
1867
|
+
model = ModifyMaintenanceSpanResponse.new
|
1868
|
+
model.deserialize(response['Response'])
|
1869
|
+
model
|
1870
|
+
else
|
1871
|
+
code = response['Response']['Error']['Code']
|
1872
|
+
message = response['Response']['Error']['Message']
|
1873
|
+
reqid = response['Response']['RequestId']
|
1874
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1875
|
+
end
|
1876
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1877
|
+
raise e
|
1878
|
+
rescue StandardError => e
|
1879
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1880
|
+
end
|
1881
|
+
|
1882
|
+
# 本接口(ModifyMigration)可以修改已有的迁移任务信息
|
1883
|
+
|
1884
|
+
# @param request: Request instance for ModifyMigration.
|
1885
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyMigrationRequest`
|
1886
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyMigrationResponse`
|
1887
|
+
def ModifyMigration(request)
|
1888
|
+
body = send_request('ModifyMigration', request.serialize)
|
1889
|
+
response = JSON.parse(body)
|
1890
|
+
if response['Response'].key?('Error') == false
|
1891
|
+
model = ModifyMigrationResponse.new
|
1892
|
+
model.deserialize(response['Response'])
|
1893
|
+
model
|
1894
|
+
else
|
1895
|
+
code = response['Response']['Error']['Code']
|
1896
|
+
message = response['Response']['Error']['Message']
|
1897
|
+
reqid = response['Response']['RequestId']
|
1898
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1899
|
+
end
|
1900
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1901
|
+
raise e
|
1902
|
+
rescue StandardError => e
|
1903
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1904
|
+
end
|
1905
|
+
|
1906
|
+
# 本接口(ModifyPublishSubscribeName)修改发布订阅的名称。
|
1907
|
+
|
1908
|
+
# @param request: Request instance for ModifyPublishSubscribeName.
|
1909
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyPublishSubscribeNameRequest`
|
1910
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyPublishSubscribeNameResponse`
|
1911
|
+
def ModifyPublishSubscribeName(request)
|
1912
|
+
body = send_request('ModifyPublishSubscribeName', request.serialize)
|
1913
|
+
response = JSON.parse(body)
|
1914
|
+
if response['Response'].key?('Error') == false
|
1915
|
+
model = ModifyPublishSubscribeNameResponse.new
|
1916
|
+
model.deserialize(response['Response'])
|
1917
|
+
model
|
1918
|
+
else
|
1919
|
+
code = response['Response']['Error']['Code']
|
1920
|
+
message = response['Response']['Error']['Message']
|
1921
|
+
reqid = response['Response']['RequestId']
|
1922
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1923
|
+
end
|
1924
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1925
|
+
raise e
|
1926
|
+
rescue StandardError => e
|
1927
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1928
|
+
end
|
1929
|
+
|
1930
|
+
# 本接口(ModifyReadOnlyGroupDetails)用于修改只读组详情。
|
1931
|
+
|
1932
|
+
# @param request: Request instance for ModifyReadOnlyGroupDetails.
|
1933
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyReadOnlyGroupDetailsRequest`
|
1934
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyReadOnlyGroupDetailsResponse`
|
1935
|
+
def ModifyReadOnlyGroupDetails(request)
|
1936
|
+
body = send_request('ModifyReadOnlyGroupDetails', request.serialize)
|
1937
|
+
response = JSON.parse(body)
|
1938
|
+
if response['Response'].key?('Error') == false
|
1939
|
+
model = ModifyReadOnlyGroupDetailsResponse.new
|
1940
|
+
model.deserialize(response['Response'])
|
1941
|
+
model
|
1942
|
+
else
|
1943
|
+
code = response['Response']['Error']['Code']
|
1944
|
+
message = response['Response']['Error']['Message']
|
1945
|
+
reqid = response['Response']['RequestId']
|
1946
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1947
|
+
end
|
1948
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1949
|
+
raise e
|
1950
|
+
rescue StandardError => e
|
1951
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1952
|
+
end
|
1953
|
+
|
1954
|
+
# 本接口(QueryMigrationCheckProcess)的作用是查询迁移检查任务的进度,适用于迁移源的类型为TencentDB for SQLServer 的迁移方式
|
1955
|
+
|
1956
|
+
# @param request: Request instance for QueryMigrationCheckProcess.
|
1957
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::QueryMigrationCheckProcessRequest`
|
1958
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::QueryMigrationCheckProcessResponse`
|
1959
|
+
def QueryMigrationCheckProcess(request)
|
1960
|
+
body = send_request('QueryMigrationCheckProcess', request.serialize)
|
1961
|
+
response = JSON.parse(body)
|
1962
|
+
if response['Response'].key?('Error') == false
|
1963
|
+
model = QueryMigrationCheckProcessResponse.new
|
1964
|
+
model.deserialize(response['Response'])
|
1965
|
+
model
|
1966
|
+
else
|
1967
|
+
code = response['Response']['Error']['Code']
|
1968
|
+
message = response['Response']['Error']['Message']
|
1969
|
+
reqid = response['Response']['RequestId']
|
1970
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1971
|
+
end
|
1972
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1973
|
+
raise e
|
1974
|
+
rescue StandardError => e
|
1975
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1976
|
+
end
|
1977
|
+
|
1978
|
+
# 本接口(RecycleDBInstance)用于主动回收已下线的SQLSERVER实例
|
1979
|
+
|
1980
|
+
# @param request: Request instance for RecycleDBInstance.
|
1981
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::RecycleDBInstanceRequest`
|
1982
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::RecycleDBInstanceResponse`
|
1983
|
+
def RecycleDBInstance(request)
|
1984
|
+
body = send_request('RecycleDBInstance', request.serialize)
|
1985
|
+
response = JSON.parse(body)
|
1986
|
+
if response['Response'].key?('Error') == false
|
1987
|
+
model = RecycleDBInstanceResponse.new
|
1988
|
+
model.deserialize(response['Response'])
|
1989
|
+
model
|
1990
|
+
else
|
1991
|
+
code = response['Response']['Error']['Code']
|
1992
|
+
message = response['Response']['Error']['Message']
|
1993
|
+
reqid = response['Response']['RequestId']
|
1994
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1995
|
+
end
|
1996
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1997
|
+
raise e
|
1998
|
+
rescue StandardError => e
|
1999
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2000
|
+
end
|
2001
|
+
|
2002
|
+
# 本接口(RecycleReadOnlyGroup)立即回收只读组的资源,只读组占用的vip等资源将立即释放且不可找回。
|
2003
|
+
|
2004
|
+
# @param request: Request instance for RecycleReadOnlyGroup.
|
2005
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::RecycleReadOnlyGroupRequest`
|
2006
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::RecycleReadOnlyGroupResponse`
|
2007
|
+
def RecycleReadOnlyGroup(request)
|
2008
|
+
body = send_request('RecycleReadOnlyGroup', request.serialize)
|
2009
|
+
response = JSON.parse(body)
|
2010
|
+
if response['Response'].key?('Error') == false
|
2011
|
+
model = RecycleReadOnlyGroupResponse.new
|
2012
|
+
model.deserialize(response['Response'])
|
2013
|
+
model
|
2014
|
+
else
|
2015
|
+
code = response['Response']['Error']['Code']
|
2016
|
+
message = response['Response']['Error']['Message']
|
2017
|
+
reqid = response['Response']['RequestId']
|
2018
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2019
|
+
end
|
2020
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2021
|
+
raise e
|
2022
|
+
rescue StandardError => e
|
2023
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2024
|
+
end
|
2025
|
+
|
2026
|
+
# 本接口(RemoveBackups)可以删除用户手动创建的备份文件。待删除的备份策略可以是实例备份,也可以是多库备份。
|
2027
|
+
|
2028
|
+
# @param request: Request instance for RemoveBackups.
|
2029
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::RemoveBackupsRequest`
|
2030
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::RemoveBackupsResponse`
|
2031
|
+
def RemoveBackups(request)
|
2032
|
+
body = send_request('RemoveBackups', request.serialize)
|
2033
|
+
response = JSON.parse(body)
|
2034
|
+
if response['Response'].key?('Error') == false
|
2035
|
+
model = RemoveBackupsResponse.new
|
2036
|
+
model.deserialize(response['Response'])
|
2037
|
+
model
|
2038
|
+
else
|
2039
|
+
code = response['Response']['Error']['Code']
|
2040
|
+
message = response['Response']['Error']['Message']
|
2041
|
+
reqid = response['Response']['RequestId']
|
2042
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2043
|
+
end
|
2044
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2045
|
+
raise e
|
2046
|
+
rescue StandardError => e
|
2047
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2048
|
+
end
|
2049
|
+
|
2050
|
+
# 本接口(RenewDBInstance)用于续费实例。当被续费实例是按量计费实例时,则按量计费实例转为包年包月计费方式。
|
2051
|
+
# 按量计费实例转包年包月询价可通过(InquiryPriceRenewDBInstance)接口获得。
|
2052
|
+
|
2053
|
+
# @param request: Request instance for RenewDBInstance.
|
2054
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::RenewDBInstanceRequest`
|
2055
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::RenewDBInstanceResponse`
|
2056
|
+
def RenewDBInstance(request)
|
2057
|
+
body = send_request('RenewDBInstance', request.serialize)
|
2058
|
+
response = JSON.parse(body)
|
2059
|
+
if response['Response'].key?('Error') == false
|
2060
|
+
model = RenewDBInstanceResponse.new
|
2061
|
+
model.deserialize(response['Response'])
|
2062
|
+
model
|
2063
|
+
else
|
2064
|
+
code = response['Response']['Error']['Code']
|
2065
|
+
message = response['Response']['Error']['Message']
|
2066
|
+
reqid = response['Response']['RequestId']
|
2067
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2068
|
+
end
|
2069
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2070
|
+
raise e
|
2071
|
+
rescue StandardError => e
|
2072
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2073
|
+
end
|
2074
|
+
|
2075
|
+
# 本接口(RenewPostpaidDBInstance)用于将通过接口TerminateDBInstance手动隔离的按量计费实例从回收站中恢复。
|
2076
|
+
|
2077
|
+
# @param request: Request instance for RenewPostpaidDBInstance.
|
2078
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::RenewPostpaidDBInstanceRequest`
|
2079
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::RenewPostpaidDBInstanceResponse`
|
2080
|
+
def RenewPostpaidDBInstance(request)
|
2081
|
+
body = send_request('RenewPostpaidDBInstance', request.serialize)
|
2082
|
+
response = JSON.parse(body)
|
2083
|
+
if response['Response'].key?('Error') == false
|
2084
|
+
model = RenewPostpaidDBInstanceResponse.new
|
2085
|
+
model.deserialize(response['Response'])
|
2086
|
+
model
|
2087
|
+
else
|
2088
|
+
code = response['Response']['Error']['Code']
|
2089
|
+
message = response['Response']['Error']['Message']
|
2090
|
+
reqid = response['Response']['RequestId']
|
2091
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2092
|
+
end
|
2093
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2094
|
+
raise e
|
2095
|
+
rescue StandardError => e
|
2096
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2097
|
+
end
|
2098
|
+
|
2099
|
+
# 本接口(ResetAccountPassword)用于重置实例的账户密码。
|
2100
|
+
|
2101
|
+
# @param request: Request instance for ResetAccountPassword.
|
2102
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ResetAccountPasswordRequest`
|
2103
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ResetAccountPasswordResponse`
|
2104
|
+
def ResetAccountPassword(request)
|
2105
|
+
body = send_request('ResetAccountPassword', request.serialize)
|
2106
|
+
response = JSON.parse(body)
|
2107
|
+
if response['Response'].key?('Error') == false
|
2108
|
+
model = ResetAccountPasswordResponse.new
|
2109
|
+
model.deserialize(response['Response'])
|
2110
|
+
model
|
2111
|
+
else
|
2112
|
+
code = response['Response']['Error']['Code']
|
2113
|
+
message = response['Response']['Error']['Message']
|
2114
|
+
reqid = response['Response']['RequestId']
|
2115
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2116
|
+
end
|
2117
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2118
|
+
raise e
|
2119
|
+
rescue StandardError => e
|
2120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2121
|
+
end
|
2122
|
+
|
2123
|
+
# 本接口(RestartDBInstance)用于重启数据库实例。
|
2124
|
+
|
2125
|
+
# @param request: Request instance for RestartDBInstance.
|
2126
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::RestartDBInstanceRequest`
|
2127
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::RestartDBInstanceResponse`
|
2128
|
+
def RestartDBInstance(request)
|
2129
|
+
body = send_request('RestartDBInstance', request.serialize)
|
2130
|
+
response = JSON.parse(body)
|
2131
|
+
if response['Response'].key?('Error') == false
|
2132
|
+
model = RestartDBInstanceResponse.new
|
2133
|
+
model.deserialize(response['Response'])
|
2134
|
+
model
|
2135
|
+
else
|
2136
|
+
code = response['Response']['Error']['Code']
|
2137
|
+
message = response['Response']['Error']['Message']
|
2138
|
+
reqid = response['Response']['RequestId']
|
2139
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2140
|
+
end
|
2141
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2142
|
+
raise e
|
2143
|
+
rescue StandardError => e
|
2144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2145
|
+
end
|
2146
|
+
|
2147
|
+
# 本接口(RestoreInstance)用于根据备份文件恢复实例。
|
2148
|
+
|
2149
|
+
# @param request: Request instance for RestoreInstance.
|
2150
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::RestoreInstanceRequest`
|
2151
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::RestoreInstanceResponse`
|
2152
|
+
def RestoreInstance(request)
|
2153
|
+
body = send_request('RestoreInstance', request.serialize)
|
2154
|
+
response = JSON.parse(body)
|
2155
|
+
if response['Response'].key?('Error') == false
|
2156
|
+
model = RestoreInstanceResponse.new
|
2157
|
+
model.deserialize(response['Response'])
|
2158
|
+
model
|
2159
|
+
else
|
2160
|
+
code = response['Response']['Error']['Code']
|
2161
|
+
message = response['Response']['Error']['Message']
|
2162
|
+
reqid = response['Response']['RequestId']
|
2163
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2164
|
+
end
|
2165
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2166
|
+
raise e
|
2167
|
+
rescue StandardError => e
|
2168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2169
|
+
end
|
2170
|
+
|
2171
|
+
# 本接口(RollbackInstance)用于回档实例
|
2172
|
+
|
2173
|
+
# @param request: Request instance for RollbackInstance.
|
2174
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::RollbackInstanceRequest`
|
2175
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::RollbackInstanceResponse`
|
2176
|
+
def RollbackInstance(request)
|
2177
|
+
body = send_request('RollbackInstance', request.serialize)
|
2178
|
+
response = JSON.parse(body)
|
2179
|
+
if response['Response'].key?('Error') == false
|
2180
|
+
model = RollbackInstanceResponse.new
|
2181
|
+
model.deserialize(response['Response'])
|
2182
|
+
model
|
2183
|
+
else
|
2184
|
+
code = response['Response']['Error']['Code']
|
2185
|
+
message = response['Response']['Error']['Message']
|
2186
|
+
reqid = response['Response']['RequestId']
|
2187
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2188
|
+
end
|
2189
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2190
|
+
raise e
|
2191
|
+
rescue StandardError => e
|
2192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2193
|
+
end
|
2194
|
+
|
2195
|
+
# 本接口(RunMigration)用于启动迁移任务,开始迁移
|
2196
|
+
|
2197
|
+
# @param request: Request instance for RunMigration.
|
2198
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::RunMigrationRequest`
|
2199
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::RunMigrationResponse`
|
2200
|
+
def RunMigration(request)
|
2201
|
+
body = send_request('RunMigration', request.serialize)
|
2202
|
+
response = JSON.parse(body)
|
2203
|
+
if response['Response'].key?('Error') == false
|
2204
|
+
model = RunMigrationResponse.new
|
2205
|
+
model.deserialize(response['Response'])
|
2206
|
+
model
|
2207
|
+
else
|
2208
|
+
code = response['Response']['Error']['Code']
|
2209
|
+
message = response['Response']['Error']['Message']
|
2210
|
+
reqid = response['Response']['RequestId']
|
2211
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2212
|
+
end
|
2213
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2214
|
+
raise e
|
2215
|
+
rescue StandardError => e
|
2216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2217
|
+
end
|
2218
|
+
|
2219
|
+
# 本接口(StartBackupMigration)用于启动备份导入任务。
|
2220
|
+
|
2221
|
+
# @param request: Request instance for StartBackupMigration.
|
2222
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::StartBackupMigrationRequest`
|
2223
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::StartBackupMigrationResponse`
|
2224
|
+
def StartBackupMigration(request)
|
2225
|
+
body = send_request('StartBackupMigration', request.serialize)
|
2226
|
+
response = JSON.parse(body)
|
2227
|
+
if response['Response'].key?('Error') == false
|
2228
|
+
model = StartBackupMigrationResponse.new
|
2229
|
+
model.deserialize(response['Response'])
|
2230
|
+
model
|
2231
|
+
else
|
2232
|
+
code = response['Response']['Error']['Code']
|
2233
|
+
message = response['Response']['Error']['Message']
|
2234
|
+
reqid = response['Response']['RequestId']
|
2235
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2236
|
+
end
|
2237
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2238
|
+
raise e
|
2239
|
+
rescue StandardError => e
|
2240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2241
|
+
end
|
2242
|
+
|
2243
|
+
# 本接口(StartIncrementalMigration)用于启动增量备份导入任务。
|
2244
|
+
|
2245
|
+
# @param request: Request instance for StartIncrementalMigration.
|
2246
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::StartIncrementalMigrationRequest`
|
2247
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::StartIncrementalMigrationResponse`
|
2248
|
+
def StartIncrementalMigration(request)
|
2249
|
+
body = send_request('StartIncrementalMigration', request.serialize)
|
2250
|
+
response = JSON.parse(body)
|
2251
|
+
if response['Response'].key?('Error') == false
|
2252
|
+
model = StartIncrementalMigrationResponse.new
|
2253
|
+
model.deserialize(response['Response'])
|
2254
|
+
model
|
2255
|
+
else
|
2256
|
+
code = response['Response']['Error']['Code']
|
2257
|
+
message = response['Response']['Error']['Message']
|
2258
|
+
reqid = response['Response']['RequestId']
|
2259
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2260
|
+
end
|
2261
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2262
|
+
raise e
|
2263
|
+
rescue StandardError => e
|
2264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2265
|
+
end
|
2266
|
+
|
2267
|
+
# 本接口(StartMigrationCheck)的作用是启动一个迁移前的校验任务,适用于迁移源的类型为TencentDB for SQLServer 的迁移方式
|
2268
|
+
|
2269
|
+
# @param request: Request instance for StartMigrationCheck.
|
2270
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::StartMigrationCheckRequest`
|
2271
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::StartMigrationCheckResponse`
|
2272
|
+
def StartMigrationCheck(request)
|
2273
|
+
body = send_request('StartMigrationCheck', request.serialize)
|
2274
|
+
response = JSON.parse(body)
|
2275
|
+
if response['Response'].key?('Error') == false
|
2276
|
+
model = StartMigrationCheckResponse.new
|
2277
|
+
model.deserialize(response['Response'])
|
2278
|
+
model
|
2279
|
+
else
|
2280
|
+
code = response['Response']['Error']['Code']
|
2281
|
+
message = response['Response']['Error']['Message']
|
2282
|
+
reqid = response['Response']['RequestId']
|
2283
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2284
|
+
end
|
2285
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2286
|
+
raise e
|
2287
|
+
rescue StandardError => e
|
2288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2289
|
+
end
|
2290
|
+
|
2291
|
+
# 本接口(StopMigration)作用是中止一个迁移任务
|
2292
|
+
|
2293
|
+
# @param request: Request instance for StopMigration.
|
2294
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::StopMigrationRequest`
|
2295
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::StopMigrationResponse`
|
2296
|
+
def StopMigration(request)
|
2297
|
+
body = send_request('StopMigration', request.serialize)
|
2298
|
+
response = JSON.parse(body)
|
2299
|
+
if response['Response'].key?('Error') == false
|
2300
|
+
model = StopMigrationResponse.new
|
2301
|
+
model.deserialize(response['Response'])
|
2302
|
+
model
|
2303
|
+
else
|
2304
|
+
code = response['Response']['Error']['Code']
|
2305
|
+
message = response['Response']['Error']['Message']
|
2306
|
+
reqid = response['Response']['RequestId']
|
2307
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2308
|
+
end
|
2309
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2310
|
+
raise e
|
2311
|
+
rescue StandardError => e
|
2312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2313
|
+
end
|
2314
|
+
|
2315
|
+
# 本接口(TerminateDBInstance)用于主动隔离实例,使得实例进入回收站。
|
2316
|
+
|
2317
|
+
# @param request: Request instance for TerminateDBInstance.
|
2318
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::TerminateDBInstanceRequest`
|
2319
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::TerminateDBInstanceResponse`
|
2320
|
+
def TerminateDBInstance(request)
|
2321
|
+
body = send_request('TerminateDBInstance', request.serialize)
|
2322
|
+
response = JSON.parse(body)
|
2323
|
+
if response['Response'].key?('Error') == false
|
2324
|
+
model = TerminateDBInstanceResponse.new
|
2325
|
+
model.deserialize(response['Response'])
|
2326
|
+
model
|
2327
|
+
else
|
2328
|
+
code = response['Response']['Error']['Code']
|
2329
|
+
message = response['Response']['Error']['Message']
|
2330
|
+
reqid = response['Response']['RequestId']
|
2331
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2332
|
+
end
|
2333
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2334
|
+
raise e
|
2335
|
+
rescue StandardError => e
|
2336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2337
|
+
end
|
2338
|
+
|
2339
|
+
# 本接口(UpgradeDBInstance)用于升级实例
|
2340
|
+
|
2341
|
+
# @param request: Request instance for UpgradeDBInstance.
|
2342
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::UpgradeDBInstanceRequest`
|
2343
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::UpgradeDBInstanceResponse`
|
2344
|
+
def UpgradeDBInstance(request)
|
2345
|
+
body = send_request('UpgradeDBInstance', request.serialize)
|
2346
|
+
response = JSON.parse(body)
|
2347
|
+
if response['Response'].key?('Error') == false
|
2348
|
+
model = UpgradeDBInstanceResponse.new
|
2349
|
+
model.deserialize(response['Response'])
|
2350
|
+
model
|
2351
|
+
else
|
2352
|
+
code = response['Response']['Error']['Code']
|
2353
|
+
message = response['Response']['Error']['Message']
|
2354
|
+
reqid = response['Response']['RequestId']
|
2355
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2356
|
+
end
|
2357
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2358
|
+
raise e
|
2359
|
+
rescue StandardError => e
|
2360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2361
|
+
end
|
2362
|
+
|
2363
|
+
|
2364
|
+
end
|
2365
|
+
end
|
2366
|
+
end
|
2367
|
+
end
|