tencentcloud-sdk-dcdb 1.0.303 → 1.0.306
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180411/client.rb +24 -0
- data/lib/v20180411/models.rb +40 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b06aa422e6ac2faa35de726fd681ceb4cbc2fe3a
|
4
|
+
data.tar.gz: d3ff51bb25e2da8b25eb14523380438243e5bc47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82c64d5f770f5c3ec686f43d3a6c1918732a4b2363ea30e0552caa3c59a4ca8bcc190de44552d3b32da340edd7c85c45c47e30fcfd7db00d302ba3e4e1f0c732
|
7
|
+
data.tar.gz: c0db66430df422e622c0fab0ea9014aa2e668411228509b16df4b185cbc9ae68a35348dd147f6feeedddcf709cec43506cf48ab425ae34b543ac38f513a8d51e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.306
|
data/lib/v20180411/client.rb
CHANGED
@@ -1090,6 +1090,30 @@ module TencentCloud
|
|
1090
1090
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1091
1091
|
end
|
1092
1092
|
|
1093
|
+
# 本接口(ModifyDBInstanceName)用于修改实例名字
|
1094
|
+
|
1095
|
+
# @param request: Request instance for ModifyDBInstanceName.
|
1096
|
+
# @type request: :class:`Tencentcloud::dcdb::V20180411::ModifyDBInstanceNameRequest`
|
1097
|
+
# @rtype: :class:`Tencentcloud::dcdb::V20180411::ModifyDBInstanceNameResponse`
|
1098
|
+
def ModifyDBInstanceName(request)
|
1099
|
+
body = send_request('ModifyDBInstanceName', request.serialize)
|
1100
|
+
response = JSON.parse(body)
|
1101
|
+
if response['Response'].key?('Error') == false
|
1102
|
+
model = ModifyDBInstanceNameResponse.new
|
1103
|
+
model.deserialize(response['Response'])
|
1104
|
+
model
|
1105
|
+
else
|
1106
|
+
code = response['Response']['Error']['Code']
|
1107
|
+
message = response['Response']['Error']['Message']
|
1108
|
+
reqid = response['Response']['RequestId']
|
1109
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1110
|
+
end
|
1111
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1112
|
+
raise e
|
1113
|
+
rescue StandardError => e
|
1114
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1115
|
+
end
|
1116
|
+
|
1093
1117
|
# 本接口(ModifyDBInstanceSecurityGroups)用于修改云数据库安全组
|
1094
1118
|
|
1095
1119
|
# @param request: Request instance for ModifyDBInstanceSecurityGroups.
|
data/lib/v20180411/models.rb
CHANGED
@@ -3368,6 +3368,46 @@ module TencentCloud
|
|
3368
3368
|
end
|
3369
3369
|
end
|
3370
3370
|
|
3371
|
+
# ModifyDBInstanceName请求参数结构体
|
3372
|
+
class ModifyDBInstanceNameRequest < TencentCloud::Common::AbstractModel
|
3373
|
+
# @param InstanceId: 实例ID,形如tdsql-hdaprz0v
|
3374
|
+
# @type InstanceId: String
|
3375
|
+
# @param InstanceName: 实例名称
|
3376
|
+
# @type InstanceName: String
|
3377
|
+
|
3378
|
+
attr_accessor :InstanceId, :InstanceName
|
3379
|
+
|
3380
|
+
def initialize(instanceid=nil, instancename=nil)
|
3381
|
+
@InstanceId = instanceid
|
3382
|
+
@InstanceName = instancename
|
3383
|
+
end
|
3384
|
+
|
3385
|
+
def deserialize(params)
|
3386
|
+
@InstanceId = params['InstanceId']
|
3387
|
+
@InstanceName = params['InstanceName']
|
3388
|
+
end
|
3389
|
+
end
|
3390
|
+
|
3391
|
+
# ModifyDBInstanceName返回参数结构体
|
3392
|
+
class ModifyDBInstanceNameResponse < TencentCloud::Common::AbstractModel
|
3393
|
+
# @param InstanceId: 实例ID
|
3394
|
+
# @type InstanceId: String
|
3395
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3396
|
+
# @type RequestId: String
|
3397
|
+
|
3398
|
+
attr_accessor :InstanceId, :RequestId
|
3399
|
+
|
3400
|
+
def initialize(instanceid=nil, requestid=nil)
|
3401
|
+
@InstanceId = instanceid
|
3402
|
+
@RequestId = requestid
|
3403
|
+
end
|
3404
|
+
|
3405
|
+
def deserialize(params)
|
3406
|
+
@InstanceId = params['InstanceId']
|
3407
|
+
@RequestId = params['RequestId']
|
3408
|
+
end
|
3409
|
+
end
|
3410
|
+
|
3371
3411
|
# ModifyDBInstanceSecurityGroups请求参数结构体
|
3372
3412
|
class ModifyDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
3373
3413
|
# @param Product: 数据库引擎名称,本接口取值:dcdb。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dcdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.306
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|