tencentcloud-sdk-cdb 3.0.597 → 3.0.598
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/v20170320/client.rb +24 -0
- data/lib/v20170320/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: 8c0effa1439d823f699a2cca2461846db2650e53
|
4
|
+
data.tar.gz: 92f9c8c38f6b736a88d266969310a583323280a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 896b680ff8e31a04a0b595837dec45b25c9ec03c05dfba5adeef96768102b6c7abf162dd4788b4bb4c11e7e843ab54a2e5ae7ddd8f132e61360b08d67fdde1f0
|
7
|
+
data.tar.gz: da19e6f72e08aafab2a8e67e08d8291b674824454919ad7fd2359e12c2df0561324a7085c7adfd460be61c97d6fd48e41a4fc6ef062c02c39392a1c76c5eb065
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.598
|
data/lib/v20170320/client.rb
CHANGED
@@ -528,6 +528,30 @@ module TencentCloud
|
|
528
528
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
529
529
|
end
|
530
530
|
|
531
|
+
# 本接口(CreateDatabase)用于在云数据库实例中创建数据库。
|
532
|
+
|
533
|
+
# @param request: Request instance for CreateDatabase.
|
534
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::CreateDatabaseRequest`
|
535
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::CreateDatabaseResponse`
|
536
|
+
def CreateDatabase(request)
|
537
|
+
body = send_request('CreateDatabase', request.serialize)
|
538
|
+
response = JSON.parse(body)
|
539
|
+
if response['Response'].key?('Error') == false
|
540
|
+
model = CreateDatabaseResponse.new
|
541
|
+
model.deserialize(response['Response'])
|
542
|
+
model
|
543
|
+
else
|
544
|
+
code = response['Response']['Error']['Code']
|
545
|
+
message = response['Response']['Error']['Message']
|
546
|
+
reqid = response['Response']['RequestId']
|
547
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
548
|
+
end
|
549
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
550
|
+
raise e
|
551
|
+
rescue StandardError => e
|
552
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
553
|
+
end
|
554
|
+
|
531
555
|
# 本接口(CreateDeployGroup)用于创建放置实例的置放群组
|
532
556
|
|
533
557
|
# @param request: Request instance for CreateDeployGroup.
|
data/lib/v20170320/models.rb
CHANGED
@@ -2775,6 +2775,46 @@ module TencentCloud
|
|
2775
2775
|
end
|
2776
2776
|
end
|
2777
2777
|
|
2778
|
+
# CreateDatabase请求参数结构体
|
2779
|
+
class CreateDatabaseRequest < TencentCloud::Common::AbstractModel
|
2780
|
+
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
2781
|
+
# @type InstanceId: String
|
2782
|
+
# @param DBName: 数据库名称。
|
2783
|
+
# @type DBName: String
|
2784
|
+
# @param CharacterSetName: 字符集,可选值:utf8,gbk,latin1,utf8mb4。
|
2785
|
+
# @type CharacterSetName: String
|
2786
|
+
|
2787
|
+
attr_accessor :InstanceId, :DBName, :CharacterSetName
|
2788
|
+
|
2789
|
+
def initialize(instanceid=nil, dbname=nil, charactersetname=nil)
|
2790
|
+
@InstanceId = instanceid
|
2791
|
+
@DBName = dbname
|
2792
|
+
@CharacterSetName = charactersetname
|
2793
|
+
end
|
2794
|
+
|
2795
|
+
def deserialize(params)
|
2796
|
+
@InstanceId = params['InstanceId']
|
2797
|
+
@DBName = params['DBName']
|
2798
|
+
@CharacterSetName = params['CharacterSetName']
|
2799
|
+
end
|
2800
|
+
end
|
2801
|
+
|
2802
|
+
# CreateDatabase返回参数结构体
|
2803
|
+
class CreateDatabaseResponse < TencentCloud::Common::AbstractModel
|
2804
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2805
|
+
# @type RequestId: String
|
2806
|
+
|
2807
|
+
attr_accessor :RequestId
|
2808
|
+
|
2809
|
+
def initialize(requestid=nil)
|
2810
|
+
@RequestId = requestid
|
2811
|
+
end
|
2812
|
+
|
2813
|
+
def deserialize(params)
|
2814
|
+
@RequestId = params['RequestId']
|
2815
|
+
end
|
2816
|
+
end
|
2817
|
+
|
2778
2818
|
# CreateDeployGroup请求参数结构体
|
2779
2819
|
class CreateDeployGroupRequest < TencentCloud::Common::AbstractModel
|
2780
2820
|
# @param DeployGroupName: 置放群组名称,最长不能超过60个字符。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.598
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|