tencentcloud-sdk-sqlserver 3.0.553 → 3.0.554

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8ecfa706ff344a712db1dadf139b44ae91ca2b2
4
- data.tar.gz: 1c6fbfbeb66cb9c4df609e1f2f6e716212cab8f6
3
+ metadata.gz: 492372295035668b331d0c8322dffde3b4ac4de1
4
+ data.tar.gz: 5eb14baf93c90690ae0ba17e95a02bbe0719160a
5
5
  SHA512:
6
- metadata.gz: ca61dc3e127775fde06f6828f585586e741828fcfbedf50a1557d438ab8e2e80fdf25c6746e279084fe23f76b1597edc1823b47295c0e337a2014531261441d2
7
- data.tar.gz: 6347ea590d36b0f1752186cdc5e6a2b76586fef014a0e525a0c1a356bd1c10fa0ba25b71b7df0446ed26eb3421845e2aea5f43397e3de5ae76e5b9b872b06ff4
6
+ metadata.gz: 2bc80c1700b0da2478700e20d1f0b5fdd9ad984865bcd5c002139c2f4098e56930f1f6db23571fb6e064187a1b6ecef83544320570b13b60afdbc42b94cf4796
7
+ data.tar.gz: 131c08e2652625af5f18a1bfdb00ed90128c8700830cc3fca9152ba9c0c9e642814ce498b17fdd114392fdb2e3b78c9126a76104b1e5f3463b87beb27b471843
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.553
1
+ 3.0.554
@@ -917,6 +917,30 @@ module TencentCloud
917
917
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
918
918
  end
919
919
 
920
+ # 本接口(DescribeDBInstancesAttribute)用于查询实例附属属性
921
+
922
+ # @param request: Request instance for DescribeDBInstancesAttribute.
923
+ # @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeDBInstancesAttributeRequest`
924
+ # @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeDBInstancesAttributeResponse`
925
+ def DescribeDBInstancesAttribute(request)
926
+ body = send_request('DescribeDBInstancesAttribute', request.serialize)
927
+ response = JSON.parse(body)
928
+ if response['Response'].key?('Error') == false
929
+ model = DescribeDBInstancesAttributeResponse.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
+
920
944
  # 本接口(DescribeDBSecurityGroups)用于查询实例的安全组详情。
921
945
 
922
946
  # @param request: Request instance for DescribeDBSecurityGroups.
@@ -1469,6 +1493,30 @@ module TencentCloud
1469
1493
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1470
1494
  end
1471
1495
 
1496
+ # 本接口(DescribeXEvents)用于查询扩展事件列表。
1497
+
1498
+ # @param request: Request instance for DescribeXEvents.
1499
+ # @type request: :class:`Tencentcloud::sqlserver::V20180328::DescribeXEventsRequest`
1500
+ # @rtype: :class:`Tencentcloud::sqlserver::V20180328::DescribeXEventsResponse`
1501
+ def DescribeXEvents(request)
1502
+ body = send_request('DescribeXEvents', request.serialize)
1503
+ response = JSON.parse(body)
1504
+ if response['Response'].key?('Error') == false
1505
+ model = DescribeXEventsResponse.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
+
1472
1520
  # 本接口 (DescribeZones) 用于查询当前可售卖的可用区信息。
1473
1521
 
1474
1522
  # @param request: Request instance for DescribeZones.
@@ -2432,6 +2480,30 @@ module TencentCloud
2432
2480
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2433
2481
  end
2434
2482
 
2483
+ # 本接口(StartInstanceXEvent)用于开启、关闭扩展事件。
2484
+
2485
+ # @param request: Request instance for StartInstanceXEvent.
2486
+ # @type request: :class:`Tencentcloud::sqlserver::V20180328::StartInstanceXEventRequest`
2487
+ # @rtype: :class:`Tencentcloud::sqlserver::V20180328::StartInstanceXEventResponse`
2488
+ def StartInstanceXEvent(request)
2489
+ body = send_request('StartInstanceXEvent', request.serialize)
2490
+ response = JSON.parse(body)
2491
+ if response['Response'].key?('Error') == false
2492
+ model = StartInstanceXEventResponse.new
2493
+ model.deserialize(response['Response'])
2494
+ model
2495
+ else
2496
+ code = response['Response']['Error']['Code']
2497
+ message = response['Response']['Error']['Message']
2498
+ reqid = response['Response']['RequestId']
2499
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2500
+ end
2501
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2502
+ raise e
2503
+ rescue StandardError => e
2504
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2505
+ end
2506
+
2435
2507
  # 本接口(StartMigrationCheck)的作用是启动一个迁移前的校验任务,适用于迁移源的类型为TencentDB for SQLServer 的迁移方式
2436
2508
 
2437
2509
  # @param request: Request instance for StartMigrationCheck.
@@ -3233,6 +3233,70 @@ module TencentCloud
3233
3233
  end
3234
3234
  end
3235
3235
 
3236
+ # DescribeDBInstancesAttribute请求参数结构体
3237
+ class DescribeDBInstancesAttributeRequest < TencentCloud::Common::AbstractModel
3238
+ # @param InstanceId: 实例ID
3239
+ # @type InstanceId: String
3240
+
3241
+ attr_accessor :InstanceId
3242
+
3243
+ def initialize(instanceid=nil)
3244
+ @InstanceId = instanceid
3245
+ end
3246
+
3247
+ def deserialize(params)
3248
+ @InstanceId = params['InstanceId']
3249
+ end
3250
+ end
3251
+
3252
+ # DescribeDBInstancesAttribute返回参数结构体
3253
+ class DescribeDBInstancesAttributeResponse < TencentCloud::Common::AbstractModel
3254
+ # @param InstanceId: 实例ID
3255
+ # @type InstanceId: String
3256
+ # @param RegularBackupEnable: 定期备份状态 enable-开启,disable-关闭
3257
+ # @type RegularBackupEnable: String
3258
+ # @param RegularBackupSaveDays: 定期备份保留天数 [90 - 3650]天
3259
+ # @type RegularBackupSaveDays: Integer
3260
+ # @param RegularBackupStrategy: 定期备份策略 years-每年,quarters-每季度,months-每月
3261
+ # @type RegularBackupStrategy: String
3262
+ # @param RegularBackupCounts: 定期备份保留个数
3263
+ # @type RegularBackupCounts: Integer
3264
+ # @param RegularBackupStartTime: 定期备份开始日期,格式-YYYY-MM-DD 默认当前日期
3265
+ # @type RegularBackupStartTime: String
3266
+ # @param BlockedThreshold: 阻塞进程阈值,单位毫秒
3267
+ # @type BlockedThreshold: Integer
3268
+ # @param EventSaveDays: 慢SQL、阻塞、死锁扩展事件文件保留时长
3269
+ # @type EventSaveDays: Integer
3270
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3271
+ # @type RequestId: String
3272
+
3273
+ attr_accessor :InstanceId, :RegularBackupEnable, :RegularBackupSaveDays, :RegularBackupStrategy, :RegularBackupCounts, :RegularBackupStartTime, :BlockedThreshold, :EventSaveDays, :RequestId
3274
+
3275
+ def initialize(instanceid=nil, regularbackupenable=nil, regularbackupsavedays=nil, regularbackupstrategy=nil, regularbackupcounts=nil, regularbackupstarttime=nil, blockedthreshold=nil, eventsavedays=nil, requestid=nil)
3276
+ @InstanceId = instanceid
3277
+ @RegularBackupEnable = regularbackupenable
3278
+ @RegularBackupSaveDays = regularbackupsavedays
3279
+ @RegularBackupStrategy = regularbackupstrategy
3280
+ @RegularBackupCounts = regularbackupcounts
3281
+ @RegularBackupStartTime = regularbackupstarttime
3282
+ @BlockedThreshold = blockedthreshold
3283
+ @EventSaveDays = eventsavedays
3284
+ @RequestId = requestid
3285
+ end
3286
+
3287
+ def deserialize(params)
3288
+ @InstanceId = params['InstanceId']
3289
+ @RegularBackupEnable = params['RegularBackupEnable']
3290
+ @RegularBackupSaveDays = params['RegularBackupSaveDays']
3291
+ @RegularBackupStrategy = params['RegularBackupStrategy']
3292
+ @RegularBackupCounts = params['RegularBackupCounts']
3293
+ @RegularBackupStartTime = params['RegularBackupStartTime']
3294
+ @BlockedThreshold = params['BlockedThreshold']
3295
+ @EventSaveDays = params['EventSaveDays']
3296
+ @RequestId = params['RequestId']
3297
+ end
3298
+ end
3299
+
3236
3300
  # DescribeDBInstances请求参数结构体
3237
3301
  class DescribeDBInstancesRequest < TencentCloud::Common::AbstractModel
3238
3302
  # @param ProjectId: 项目ID
@@ -4721,6 +4785,73 @@ module TencentCloud
4721
4785
  end
4722
4786
  end
4723
4787
 
4788
+ # DescribeXEvents请求参数结构体
4789
+ class DescribeXEventsRequest < TencentCloud::Common::AbstractModel
4790
+ # @param InstanceId: 实例ID
4791
+ # @type InstanceId: String
4792
+ # @param EventType: 事件类型,slow-慢SQL事件,blocked-阻塞事件,deadlock-死锁事件
4793
+ # @type EventType: String
4794
+ # @param StartTime: 扩展文件生成开始时间
4795
+ # @type StartTime: String
4796
+ # @param EndTime: 扩展文件生成结束时间
4797
+ # @type EndTime: String
4798
+ # @param Offset: 分页返回,页编号,默认值为第0页
4799
+ # @type Offset: Integer
4800
+ # @param Limit: 分页返回,每页返回的数目,取值为1~100,默认值为20
4801
+ # @type Limit: Integer
4802
+
4803
+ attr_accessor :InstanceId, :EventType, :StartTime, :EndTime, :Offset, :Limit
4804
+
4805
+ def initialize(instanceid=nil, eventtype=nil, starttime=nil, endtime=nil, offset=nil, limit=nil)
4806
+ @InstanceId = instanceid
4807
+ @EventType = eventtype
4808
+ @StartTime = starttime
4809
+ @EndTime = endtime
4810
+ @Offset = offset
4811
+ @Limit = limit
4812
+ end
4813
+
4814
+ def deserialize(params)
4815
+ @InstanceId = params['InstanceId']
4816
+ @EventType = params['EventType']
4817
+ @StartTime = params['StartTime']
4818
+ @EndTime = params['EndTime']
4819
+ @Offset = params['Offset']
4820
+ @Limit = params['Limit']
4821
+ end
4822
+ end
4823
+
4824
+ # DescribeXEvents返回参数结构体
4825
+ class DescribeXEventsResponse < TencentCloud::Common::AbstractModel
4826
+ # @param Events: 扩展事件列表
4827
+ # @type Events: Array
4828
+ # @param TotalCount: 扩展事件总数量
4829
+ # @type TotalCount: Integer
4830
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4831
+ # @type RequestId: String
4832
+
4833
+ attr_accessor :Events, :TotalCount, :RequestId
4834
+
4835
+ def initialize(events=nil, totalcount=nil, requestid=nil)
4836
+ @Events = events
4837
+ @TotalCount = totalcount
4838
+ @RequestId = requestid
4839
+ end
4840
+
4841
+ def deserialize(params)
4842
+ unless params['Events'].nil?
4843
+ @Events = []
4844
+ params['Events'].each do |i|
4845
+ events_tmp = Events.new
4846
+ events_tmp.deserialize(i)
4847
+ @Events << events_tmp
4848
+ end
4849
+ end
4850
+ @TotalCount = params['TotalCount']
4851
+ @RequestId = params['RequestId']
4852
+ end
4853
+ end
4854
+
4724
4855
  # DescribeZones请求参数结构体
4725
4856
  class DescribeZonesRequest < TencentCloud::Common::AbstractModel
4726
4857
 
@@ -4799,6 +4930,74 @@ module TencentCloud
4799
4930
  end
4800
4931
  end
4801
4932
 
4933
+ # 设置实例扩展事件阈值
4934
+ class EventConfig < TencentCloud::Common::AbstractModel
4935
+ # @param EventType: 事件类型,slow-设置慢SQL阈值,blocked-设置阻塞、死锁阈值
4936
+ # @type EventType: String
4937
+ # @param Threshold: 阈值,单位毫秒。0表示关闭,大于0表示开启
4938
+ # @type Threshold: Integer
4939
+
4940
+ attr_accessor :EventType, :Threshold
4941
+
4942
+ def initialize(eventtype=nil, threshold=nil)
4943
+ @EventType = eventtype
4944
+ @Threshold = threshold
4945
+ end
4946
+
4947
+ def deserialize(params)
4948
+ @EventType = params['EventType']
4949
+ @Threshold = params['Threshold']
4950
+ end
4951
+ end
4952
+
4953
+ # 实例扩展事件详情
4954
+ class Events < TencentCloud::Common::AbstractModel
4955
+ # @param Id: ID
4956
+ # @type Id: Integer
4957
+ # @param FileName: 扩展事件文件名称
4958
+ # @type FileName: String
4959
+ # @param Size: 扩展事件文件大小
4960
+ # @type Size: Integer
4961
+ # @param EventType: 事件类型,slow-慢SQL事件,blocked-阻塞事件,deadlock-死锁事件
4962
+ # @type EventType: String
4963
+ # @param Status: 事件记录状态,1-成功,2-失败
4964
+ # @type Status: Integer
4965
+ # @param StartTime: 扩展文件生成开始时间
4966
+ # @type StartTime: String
4967
+ # @param EndTime: 扩展文件生成开始时间
4968
+ # @type EndTime: String
4969
+ # @param InternalAddr: 内网下载地址
4970
+ # @type InternalAddr: String
4971
+ # @param ExternalAddr: 外网下载地址
4972
+ # @type ExternalAddr: String
4973
+
4974
+ attr_accessor :Id, :FileName, :Size, :EventType, :Status, :StartTime, :EndTime, :InternalAddr, :ExternalAddr
4975
+
4976
+ def initialize(id=nil, filename=nil, size=nil, eventtype=nil, status=nil, starttime=nil, endtime=nil, internaladdr=nil, externaladdr=nil)
4977
+ @Id = id
4978
+ @FileName = filename
4979
+ @Size = size
4980
+ @EventType = eventtype
4981
+ @Status = status
4982
+ @StartTime = starttime
4983
+ @EndTime = endtime
4984
+ @InternalAddr = internaladdr
4985
+ @ExternalAddr = externaladdr
4986
+ end
4987
+
4988
+ def deserialize(params)
4989
+ @Id = params['Id']
4990
+ @FileName = params['FileName']
4991
+ @Size = params['Size']
4992
+ @EventType = params['EventType']
4993
+ @Status = params['Status']
4994
+ @StartTime = params['StartTime']
4995
+ @EndTime = params['EndTime']
4996
+ @InternalAddr = params['InternalAddr']
4997
+ @ExternalAddr = params['ExternalAddr']
4998
+ end
4999
+ end
5000
+
4802
5001
  # 允许动作信息
4803
5002
  class FileAction < TencentCloud::Common::AbstractModel
4804
5003
  # @param AllAction: 支持的所有操作,值包括:view(查看列表) remark(修改备注),deploy(部署),delete(删除文件)
@@ -7812,6 +8011,49 @@ module TencentCloud
7812
8011
  end
7813
8012
  end
7814
8013
 
8014
+ # StartInstanceXEvent请求参数结构体
8015
+ class StartInstanceXEventRequest < TencentCloud::Common::AbstractModel
8016
+ # @param InstanceId: 实例ID
8017
+ # @type InstanceId: String
8018
+ # @param EventConfig: 开启、关闭扩展事件
8019
+ # @type EventConfig: Array
8020
+
8021
+ attr_accessor :InstanceId, :EventConfig
8022
+
8023
+ def initialize(instanceid=nil, eventconfig=nil)
8024
+ @InstanceId = instanceid
8025
+ @EventConfig = eventconfig
8026
+ end
8027
+
8028
+ def deserialize(params)
8029
+ @InstanceId = params['InstanceId']
8030
+ unless params['EventConfig'].nil?
8031
+ @EventConfig = []
8032
+ params['EventConfig'].each do |i|
8033
+ eventconfig_tmp = EventConfig.new
8034
+ eventconfig_tmp.deserialize(i)
8035
+ @EventConfig << eventconfig_tmp
8036
+ end
8037
+ end
8038
+ end
8039
+ end
8040
+
8041
+ # StartInstanceXEvent返回参数结构体
8042
+ class StartInstanceXEventResponse < TencentCloud::Common::AbstractModel
8043
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8044
+ # @type RequestId: String
8045
+
8046
+ attr_accessor :RequestId
8047
+
8048
+ def initialize(requestid=nil)
8049
+ @RequestId = requestid
8050
+ end
8051
+
8052
+ def deserialize(params)
8053
+ @RequestId = params['RequestId']
8054
+ end
8055
+ end
8056
+
7815
8057
  # StartMigrationCheck请求参数结构体
7816
8058
  class StartMigrationCheckRequest < TencentCloud::Common::AbstractModel
7817
8059
  # @param MigrateId: 迁移任务id
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.553
4
+ version: 3.0.554
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-04-18 00:00:00.000000000 Z
11
+ date: 2023-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common