tencentcloud-sdk-dbbrain 3.0.649 → 3.0.651

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: c43a0c5c83bcab56efe8b4a23b373af4de1552e2
4
- data.tar.gz: 85713097ec543c1d91cb8bae65bed2c208a301eb
3
+ metadata.gz: a5dfac4954aad61cd09882545f0a5e9c10524c86
4
+ data.tar.gz: cf1f40e6b51d16ae05789f913567a25267f8cef3
5
5
  SHA512:
6
- metadata.gz: 8af67b8a3b02cebfe9476c97db47bc759f8c372365fe13141457384b37e20fd2dad9c546cbe0a850affe9850aa62c5f070fcdf998abf635056f57d4648ec4d9e
7
- data.tar.gz: efb27e535db3f015375b96c54d1a0ca0d27a35370e542b356f5ccb1a6f3886dd64cdb6a3824ef0379e53e60c1ff381d41de9f6d60b5ac200ab106a3a92971c95
6
+ metadata.gz: 443caebe73c72c93ee8aaec5a52bb87bc1f2358ca19b2e42a9bf44a3aaad576d66205c76e075380cc8e5b14a74fd265f598303f85c34f75cd4cdcd620c38963f
7
+ data.tar.gz: f6db85877f8a49e15370d9baf7925392560ebc1a11ae4d8d8f5aa3f78e04b25930a1e6fd06ef2e9c62613179636d852e844b2502f65eb177e26797eadc31309f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.649
1
+ 3.0.651
@@ -1301,6 +1301,54 @@ module TencentCloud
1301
1301
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1302
1302
  end
1303
1303
 
1304
+ # 更新agent状态(停止或重连Agent)
1305
+
1306
+ # @param request: Request instance for UpdateAgentSwitch.
1307
+ # @type request: :class:`Tencentcloud::dbbrain::V20210527::UpdateAgentSwitchRequest`
1308
+ # @rtype: :class:`Tencentcloud::dbbrain::V20210527::UpdateAgentSwitchResponse`
1309
+ def UpdateAgentSwitch(request)
1310
+ body = send_request('UpdateAgentSwitch', request.serialize)
1311
+ response = JSON.parse(body)
1312
+ if response['Response'].key?('Error') == false
1313
+ model = UpdateAgentSwitchResponse.new
1314
+ model.deserialize(response['Response'])
1315
+ model
1316
+ else
1317
+ code = response['Response']['Error']['Code']
1318
+ message = response['Response']['Error']['Message']
1319
+ reqid = response['Response']['RequestId']
1320
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1321
+ end
1322
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1323
+ raise e
1324
+ rescue StandardError => e
1325
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1326
+ end
1327
+
1328
+ # 更新Agent实例状态(停止或重连实例)
1329
+
1330
+ # @param request: Request instance for UpdateMonitorSwitch.
1331
+ # @type request: :class:`Tencentcloud::dbbrain::V20210527::UpdateMonitorSwitchRequest`
1332
+ # @rtype: :class:`Tencentcloud::dbbrain::V20210527::UpdateMonitorSwitchResponse`
1333
+ def UpdateMonitorSwitch(request)
1334
+ body = send_request('UpdateMonitorSwitch', request.serialize)
1335
+ response = JSON.parse(body)
1336
+ if response['Response'].key?('Error') == false
1337
+ model = UpdateMonitorSwitchResponse.new
1338
+ model.deserialize(response['Response'])
1339
+ model
1340
+ else
1341
+ code = response['Response']['Error']['Code']
1342
+ message = response['Response']['Error']['Message']
1343
+ reqid = response['Response']['RequestId']
1344
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1345
+ end
1346
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1347
+ raise e
1348
+ rescue StandardError => e
1349
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1350
+ end
1351
+
1304
1352
  # 验证用户数据库账号权限,获取会话token。
1305
1353
 
1306
1354
  # @param request: Request instance for VerifyUserAccount.
@@ -1684,7 +1684,7 @@ module TencentCloud
1684
1684
  class DescribeDiagDBInstancesRequest < TencentCloud::Common::AbstractModel
1685
1685
  # @param IsSupported: 是否是DBbrain支持的实例,固定传 true。
1686
1686
  # @type IsSupported: Boolean
1687
- # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
1687
+ # @param Product: 服务产品类型,支持值包括:"mysql" - 云数据库 MySQL,"cynosdb" - 云数据库 TDSQL-C for MySQL,"dbbrain-mysql" - 自建 MySQL,默认为"mysql"。
1688
1688
  # @type Product: String
1689
1689
  # @param Offset: 分页参数,偏移量。
1690
1690
  # @type Offset: Integer
@@ -4913,6 +4913,86 @@ module TencentCloud
4913
4913
  end
4914
4914
  end
4915
4915
 
4916
+ # UpdateAgentSwitch请求参数结构体
4917
+ class UpdateAgentSwitchRequest < TencentCloud::Common::AbstractModel
4918
+ # @param AgentId: Agent标识。
4919
+ # @type AgentId: String
4920
+ # @param Switch: 停止或重连Agent,支持值包括:"on" - 重连Agent, "off" - 停止Agent。
4921
+ # @type Switch: String
4922
+ # @param Product: 服务产品类型,仅支持 "dbbrain-mysql" - 自建MySQL。
4923
+ # @type Product: String
4924
+
4925
+ attr_accessor :AgentId, :Switch, :Product
4926
+
4927
+ def initialize(agentid=nil, switch=nil, product=nil)
4928
+ @AgentId = agentid
4929
+ @Switch = switch
4930
+ @Product = product
4931
+ end
4932
+
4933
+ def deserialize(params)
4934
+ @AgentId = params['AgentId']
4935
+ @Switch = params['Switch']
4936
+ @Product = params['Product']
4937
+ end
4938
+ end
4939
+
4940
+ # UpdateAgentSwitch返回参数结构体
4941
+ class UpdateAgentSwitchResponse < TencentCloud::Common::AbstractModel
4942
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4943
+ # @type RequestId: String
4944
+
4945
+ attr_accessor :RequestId
4946
+
4947
+ def initialize(requestid=nil)
4948
+ @RequestId = requestid
4949
+ end
4950
+
4951
+ def deserialize(params)
4952
+ @RequestId = params['RequestId']
4953
+ end
4954
+ end
4955
+
4956
+ # UpdateMonitorSwitch请求参数结构体
4957
+ class UpdateMonitorSwitchRequest < TencentCloud::Common::AbstractModel
4958
+ # @param Switch: 停止或重连Agent实例,支持值包括:"on" - 重连实例, "off" - 停止实例。
4959
+ # @type Switch: String
4960
+ # @param InstanceId: 实例ID。
4961
+ # @type InstanceId: String
4962
+ # @param Product: 服务产品类型,仅支持 "dbbrain-mysql" - 自建MySQL。
4963
+ # @type Product: String
4964
+
4965
+ attr_accessor :Switch, :InstanceId, :Product
4966
+
4967
+ def initialize(switch=nil, instanceid=nil, product=nil)
4968
+ @Switch = switch
4969
+ @InstanceId = instanceid
4970
+ @Product = product
4971
+ end
4972
+
4973
+ def deserialize(params)
4974
+ @Switch = params['Switch']
4975
+ @InstanceId = params['InstanceId']
4976
+ @Product = params['Product']
4977
+ end
4978
+ end
4979
+
4980
+ # UpdateMonitorSwitch返回参数结构体
4981
+ class UpdateMonitorSwitchResponse < TencentCloud::Common::AbstractModel
4982
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4983
+ # @type RequestId: String
4984
+
4985
+ attr_accessor :RequestId
4986
+
4987
+ def initialize(requestid=nil)
4988
+ @RequestId = requestid
4989
+ end
4990
+
4991
+ def deserialize(params)
4992
+ @RequestId = params['RequestId']
4993
+ end
4994
+ end
4995
+
4916
4996
  # 用户配置的相关信息,包括邮件配置。
4917
4997
  class UserProfile < TencentCloud::Common::AbstractModel
4918
4998
  # @param ProfileId: 配置的id。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dbbrain
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.649
4
+ version: 3.0.651
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-08-31 00:00:00.000000000 Z
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common