tencentcloud-sdk-sqlserver 3.0.777 → 3.0.778
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/v20180328/client.rb +24 -0
- data/lib/v20180328/models.rb +52 -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: 06705d2a324a079630f92b94c7aef466ebb6666e
|
4
|
+
data.tar.gz: 821f54cc742c98d4394f271fe976f94e6e4ba585
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03ee23dbbd228d31acfea7ba821c697272113d1ef9738b05635ce32607e3cae67065e8e6f1444c874069830f310188c78700b2b6b12ed01ba1e12cf3d9678888
|
7
|
+
data.tar.gz: 54073e840dc6df05a849e2fa62a005860ed18532a7b35c21bf229ed89835c507b232af4dad7c72f575c1d9c00e091c3b93c2580411f4a5c0213943dcce5351c1
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.778
|
data/lib/v20180328/client.rb
CHANGED
@@ -2693,6 +2693,30 @@ module TencentCloud
|
|
2693
2693
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2694
2694
|
end
|
2695
2695
|
|
2696
|
+
# 本接口(ModifyDReadable)用于开通或者关闭备机只读
|
2697
|
+
|
2698
|
+
# @param request: Request instance for ModifyDReadable.
|
2699
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::ModifyDReadableRequest`
|
2700
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::ModifyDReadableResponse`
|
2701
|
+
def ModifyDReadable(request)
|
2702
|
+
body = send_request('ModifyDReadable', request.serialize)
|
2703
|
+
response = JSON.parse(body)
|
2704
|
+
if response['Response'].key?('Error') == false
|
2705
|
+
model = ModifyDReadableResponse.new
|
2706
|
+
model.deserialize(response['Response'])
|
2707
|
+
model
|
2708
|
+
else
|
2709
|
+
code = response['Response']['Error']['Code']
|
2710
|
+
message = response['Response']['Error']['Message']
|
2711
|
+
reqid = response['Response']['RequestId']
|
2712
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2713
|
+
end
|
2714
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2715
|
+
raise e
|
2716
|
+
rescue StandardError => e
|
2717
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2718
|
+
end
|
2719
|
+
|
2696
2720
|
# 本接口(ModifyDatabaseCDC)用于开启、关闭数据库数据变更捕获(CDC)
|
2697
2721
|
|
2698
2722
|
# @param request: Request instance for ModifyDatabaseCDC.
|
data/lib/v20180328/models.rb
CHANGED
@@ -8699,6 +8699,58 @@ module TencentCloud
|
|
8699
8699
|
end
|
8700
8700
|
end
|
8701
8701
|
|
8702
|
+
# ModifyDReadable请求参数结构体
|
8703
|
+
class ModifyDReadableRequest < TencentCloud::Common::AbstractModel
|
8704
|
+
# @param InstanceId: 实例ID
|
8705
|
+
# @type InstanceId: String
|
8706
|
+
# @param Type: 操作类型。enable-开启备机只读,disable-关闭备机只读
|
8707
|
+
# @type Type: String
|
8708
|
+
# @param VpcId: 备机网络ID,不填默认和主实例保持一致
|
8709
|
+
# @type VpcId: String
|
8710
|
+
# @param SubnetId: 备机网络子网ID,不填默认和主实例保持一致
|
8711
|
+
# @type SubnetId: String
|
8712
|
+
# @param Vip: 指定的备机只读vip,不填自动分配
|
8713
|
+
# @type Vip: String
|
8714
|
+
|
8715
|
+
attr_accessor :InstanceId, :Type, :VpcId, :SubnetId, :Vip
|
8716
|
+
|
8717
|
+
def initialize(instanceid=nil, type=nil, vpcid=nil, subnetid=nil, vip=nil)
|
8718
|
+
@InstanceId = instanceid
|
8719
|
+
@Type = type
|
8720
|
+
@VpcId = vpcid
|
8721
|
+
@SubnetId = subnetid
|
8722
|
+
@Vip = vip
|
8723
|
+
end
|
8724
|
+
|
8725
|
+
def deserialize(params)
|
8726
|
+
@InstanceId = params['InstanceId']
|
8727
|
+
@Type = params['Type']
|
8728
|
+
@VpcId = params['VpcId']
|
8729
|
+
@SubnetId = params['SubnetId']
|
8730
|
+
@Vip = params['Vip']
|
8731
|
+
end
|
8732
|
+
end
|
8733
|
+
|
8734
|
+
# ModifyDReadable返回参数结构体
|
8735
|
+
class ModifyDReadableResponse < TencentCloud::Common::AbstractModel
|
8736
|
+
# @param FlowId: 任务ID
|
8737
|
+
# @type FlowId: Integer
|
8738
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8739
|
+
# @type RequestId: String
|
8740
|
+
|
8741
|
+
attr_accessor :FlowId, :RequestId
|
8742
|
+
|
8743
|
+
def initialize(flowid=nil, requestid=nil)
|
8744
|
+
@FlowId = flowid
|
8745
|
+
@RequestId = requestid
|
8746
|
+
end
|
8747
|
+
|
8748
|
+
def deserialize(params)
|
8749
|
+
@FlowId = params['FlowId']
|
8750
|
+
@RequestId = params['RequestId']
|
8751
|
+
end
|
8752
|
+
end
|
8753
|
+
|
8702
8754
|
# 要修改的数据库订阅发布关系集合
|
8703
8755
|
class ModifyDataBaseTuple < TencentCloud::Common::AbstractModel
|
8704
8756
|
# @param DatabaseTuple: 要修改的订阅关系
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-sqlserver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.778
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|