tencentcloud-sdk-sqlserver 3.0.654 → 3.0.656
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180328/client.rb +48 -0
- data/lib/v20180328/models.rb +144 -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: 26eb5180b63eb12f4cecf67a3af2ce4e9aa079a4
|
4
|
+
data.tar.gz: 1571b0fe4f9c5104b271ec95a37326a4d89d5ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9349585e120b4fb2872359bc98d96632b2fea05569ae8562b890713c5850ab07a8403de69efd8d60fc02a96013e0c530eb6a5d891176c8c4016826a0dacc333
|
7
|
+
data.tar.gz: 60c2acd211b8060620b2c4dba55eb684de0fe5cec06de057a6291d1fd8a1351fff583cda52d6c478c173313b4d3acd0a81cc8b8b40630dff886ccd871233490e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.656
|
data/lib/v20180328/client.rb
CHANGED
@@ -1085,6 +1085,30 @@ module TencentCloud
|
|
1085
1085
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1086
1086
|
end
|
1087
1087
|
|
1088
|
+
# 本接口(DescribeHASwitchLog)用于手动主备切换。
|
1089
|
+
|
1090
|
+
# @param request: Request instance for DescribeHASwitchLog.
|
1091
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeHASwitchLogRequest`
|
1092
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeHASwitchLogResponse`
|
1093
|
+
def DescribeHASwitchLog(request)
|
1094
|
+
body = send_request('DescribeHASwitchLog', request.serialize)
|
1095
|
+
response = JSON.parse(body)
|
1096
|
+
if response['Response'].key?('Error') == false
|
1097
|
+
model = DescribeHASwitchLogResponse.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
|
+
|
1088
1112
|
# 本接口(DescribeIncrementalMigration)用于查询增量备份导入任务。
|
1089
1113
|
|
1090
1114
|
# @param request: Request instance for DescribeIncrementalMigration.
|
@@ -2672,6 +2696,30 @@ module TencentCloud
|
|
2672
2696
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2673
2697
|
end
|
2674
2698
|
|
2699
|
+
# 本接口(SwitchCloudInstanceHA)用于手动主备切换。
|
2700
|
+
|
2701
|
+
# @param request: Request instance for SwitchCloudInstanceHA.
|
2702
|
+
# @type request: :class:`Tencentcloud::sqlserver::V20180328::SwitchCloudInstanceHARequest`
|
2703
|
+
# @rtype: :class:`Tencentcloud::sqlserver::V20180328::SwitchCloudInstanceHAResponse`
|
2704
|
+
def SwitchCloudInstanceHA(request)
|
2705
|
+
body = send_request('SwitchCloudInstanceHA', request.serialize)
|
2706
|
+
response = JSON.parse(body)
|
2707
|
+
if response['Response'].key?('Error') == false
|
2708
|
+
model = SwitchCloudInstanceHAResponse.new
|
2709
|
+
model.deserialize(response['Response'])
|
2710
|
+
model
|
2711
|
+
else
|
2712
|
+
code = response['Response']['Error']['Code']
|
2713
|
+
message = response['Response']['Error']['Message']
|
2714
|
+
reqid = response['Response']['RequestId']
|
2715
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2716
|
+
end
|
2717
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2718
|
+
raise e
|
2719
|
+
rescue StandardError => e
|
2720
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2721
|
+
end
|
2722
|
+
|
2675
2723
|
# 本接口(TerminateDBInstance)用于主动隔离实例,使得实例进入回收站。
|
2676
2724
|
|
2677
2725
|
# @param request: Request instance for TerminateDBInstance.
|
data/lib/v20180328/models.rb
CHANGED
@@ -3946,6 +3946,73 @@ module TencentCloud
|
|
3946
3946
|
end
|
3947
3947
|
end
|
3948
3948
|
|
3949
|
+
# DescribeHASwitchLog请求参数结构体
|
3950
|
+
class DescribeHASwitchLogRequest < TencentCloud::Common::AbstractModel
|
3951
|
+
# @param InstanceId: 实例ID
|
3952
|
+
# @type InstanceId: String
|
3953
|
+
# @param StartTime: 开始时间(yyyy-MM-dd HH:mm:ss)
|
3954
|
+
# @type StartTime: String
|
3955
|
+
# @param EndTime: 结束时间(yyyy-MM-dd HH:mm:ss)
|
3956
|
+
# @type EndTime: String
|
3957
|
+
# @param SwitchType: 切换模式 0-系统自动切换,1-手动切换,不填默认查全部。
|
3958
|
+
# @type SwitchType: Integer
|
3959
|
+
# @param Limit: 分页,页大小
|
3960
|
+
# @type Limit: Integer
|
3961
|
+
# @param Offset: 分页,页数
|
3962
|
+
# @type Offset: Integer
|
3963
|
+
|
3964
|
+
attr_accessor :InstanceId, :StartTime, :EndTime, :SwitchType, :Limit, :Offset
|
3965
|
+
|
3966
|
+
def initialize(instanceid=nil, starttime=nil, endtime=nil, switchtype=nil, limit=nil, offset=nil)
|
3967
|
+
@InstanceId = instanceid
|
3968
|
+
@StartTime = starttime
|
3969
|
+
@EndTime = endtime
|
3970
|
+
@SwitchType = switchtype
|
3971
|
+
@Limit = limit
|
3972
|
+
@Offset = offset
|
3973
|
+
end
|
3974
|
+
|
3975
|
+
def deserialize(params)
|
3976
|
+
@InstanceId = params['InstanceId']
|
3977
|
+
@StartTime = params['StartTime']
|
3978
|
+
@EndTime = params['EndTime']
|
3979
|
+
@SwitchType = params['SwitchType']
|
3980
|
+
@Limit = params['Limit']
|
3981
|
+
@Offset = params['Offset']
|
3982
|
+
end
|
3983
|
+
end
|
3984
|
+
|
3985
|
+
# DescribeHASwitchLog返回参数结构体
|
3986
|
+
class DescribeHASwitchLogResponse < TencentCloud::Common::AbstractModel
|
3987
|
+
# @param TotalCount: 日志总数量
|
3988
|
+
# @type TotalCount: Integer
|
3989
|
+
# @param SwitchLog: 主备切换日志
|
3990
|
+
# @type SwitchLog: Array
|
3991
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3992
|
+
# @type RequestId: String
|
3993
|
+
|
3994
|
+
attr_accessor :TotalCount, :SwitchLog, :RequestId
|
3995
|
+
|
3996
|
+
def initialize(totalcount=nil, switchlog=nil, requestid=nil)
|
3997
|
+
@TotalCount = totalcount
|
3998
|
+
@SwitchLog = switchlog
|
3999
|
+
@RequestId = requestid
|
4000
|
+
end
|
4001
|
+
|
4002
|
+
def deserialize(params)
|
4003
|
+
@TotalCount = params['TotalCount']
|
4004
|
+
unless params['SwitchLog'].nil?
|
4005
|
+
@SwitchLog = []
|
4006
|
+
params['SwitchLog'].each do |i|
|
4007
|
+
switchlog_tmp = SwitchLog.new
|
4008
|
+
switchlog_tmp.deserialize(i)
|
4009
|
+
@SwitchLog << switchlog_tmp
|
4010
|
+
end
|
4011
|
+
end
|
4012
|
+
@RequestId = params['RequestId']
|
4013
|
+
end
|
4014
|
+
end
|
4015
|
+
|
3949
4016
|
# DescribeIncrementalMigration请求参数结构体
|
3950
4017
|
class DescribeIncrementalMigrationRequest < TencentCloud::Common::AbstractModel
|
3951
4018
|
# @param BackupMigrationId: 备份导入任务ID,由CreateBackupMigration接口返回
|
@@ -8640,6 +8707,83 @@ module TencentCloud
|
|
8640
8707
|
end
|
8641
8708
|
end
|
8642
8709
|
|
8710
|
+
# SwitchCloudInstanceHA请求参数结构体
|
8711
|
+
class SwitchCloudInstanceHARequest < TencentCloud::Common::AbstractModel
|
8712
|
+
# @param InstanceId: 实例ID
|
8713
|
+
# @type InstanceId: String
|
8714
|
+
# @param WaitSwitch: 切换执行方式,0-立刻执行,1-时间窗内执行,默认取值为0。
|
8715
|
+
# @type WaitSwitch: Integer
|
8716
|
+
|
8717
|
+
attr_accessor :InstanceId, :WaitSwitch
|
8718
|
+
|
8719
|
+
def initialize(instanceid=nil, waitswitch=nil)
|
8720
|
+
@InstanceId = instanceid
|
8721
|
+
@WaitSwitch = waitswitch
|
8722
|
+
end
|
8723
|
+
|
8724
|
+
def deserialize(params)
|
8725
|
+
@InstanceId = params['InstanceId']
|
8726
|
+
@WaitSwitch = params['WaitSwitch']
|
8727
|
+
end
|
8728
|
+
end
|
8729
|
+
|
8730
|
+
# SwitchCloudInstanceHA返回参数结构体
|
8731
|
+
class SwitchCloudInstanceHAResponse < TencentCloud::Common::AbstractModel
|
8732
|
+
# @param FlowId: 异步任务流程ID
|
8733
|
+
# @type FlowId: Integer
|
8734
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8735
|
+
# @type RequestId: String
|
8736
|
+
|
8737
|
+
attr_accessor :FlowId, :RequestId
|
8738
|
+
|
8739
|
+
def initialize(flowid=nil, requestid=nil)
|
8740
|
+
@FlowId = flowid
|
8741
|
+
@RequestId = requestid
|
8742
|
+
end
|
8743
|
+
|
8744
|
+
def deserialize(params)
|
8745
|
+
@FlowId = params['FlowId']
|
8746
|
+
@RequestId = params['RequestId']
|
8747
|
+
end
|
8748
|
+
end
|
8749
|
+
|
8750
|
+
# 主备切换日志
|
8751
|
+
class SwitchLog < TencentCloud::Common::AbstractModel
|
8752
|
+
# @param EventId: 切换事件ID
|
8753
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8754
|
+
# @type EventId: String
|
8755
|
+
# @param SwitchType: 切换模式 0-系统自动切换,1-手动切换
|
8756
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8757
|
+
# @type SwitchType: Integer
|
8758
|
+
# @param StartTime: 切换开始时间
|
8759
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8760
|
+
# @type StartTime: String
|
8761
|
+
# @param EndTime: 切换结束时间
|
8762
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8763
|
+
# @type EndTime: String
|
8764
|
+
# @param Reason: 机器故障导致自动切换
|
8765
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8766
|
+
# @type Reason: String
|
8767
|
+
|
8768
|
+
attr_accessor :EventId, :SwitchType, :StartTime, :EndTime, :Reason
|
8769
|
+
|
8770
|
+
def initialize(eventid=nil, switchtype=nil, starttime=nil, endtime=nil, reason=nil)
|
8771
|
+
@EventId = eventid
|
8772
|
+
@SwitchType = switchtype
|
8773
|
+
@StartTime = starttime
|
8774
|
+
@EndTime = endtime
|
8775
|
+
@Reason = reason
|
8776
|
+
end
|
8777
|
+
|
8778
|
+
def deserialize(params)
|
8779
|
+
@EventId = params['EventId']
|
8780
|
+
@SwitchType = params['SwitchType']
|
8781
|
+
@StartTime = params['StartTime']
|
8782
|
+
@EndTime = params['EndTime']
|
8783
|
+
@Reason = params['Reason']
|
8784
|
+
end
|
8785
|
+
end
|
8786
|
+
|
8643
8787
|
# TDE透明数据加密配置
|
8644
8788
|
class TDEConfigAttribute < TencentCloud::Common::AbstractModel
|
8645
8789
|
# @param Encryption: 是否已开通TDE加密,enable-已开通,disable-未开通
|
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.656
|
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-09-
|
11
|
+
date: 2023-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|