tencentcloud-sdk-cls 3.0.924 → 3.0.925

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: 71d47f84e8cdbff6523e2c0aa6affdc53fafe272
4
- data.tar.gz: 7d2e10b21e47d0cbfe4973d9bdda377e32ea2a16
3
+ metadata.gz: b97a3b9354cbb321e9b05d53ba3545398a2c539e
4
+ data.tar.gz: 4b0b32a379467238e17b5b6a4efeab3fb6ce832e
5
5
  SHA512:
6
- metadata.gz: cf23ec04717f5ec24710d520f15bddbaafddb4c8953df1ae689ec8e749491808dfe2649caafcbfd23e7be4dd64d25314a3593d5d9ccdaf4af16287b72e384b79
7
- data.tar.gz: 5fc27cbd2d24348418a7713525e44434f2a324dd0ae3bccfd0436c4cd57ae62982d0b8044d23008497d69fa745b77401a628e267b362f856eaf3cd7675aa074b
6
+ metadata.gz: 041d1616ed36c0510a76754f76969f4c70e5a71f20c7649581dd2907232d139b4d06ae1816058c0fcd24a0e742385a8cb4920da3714f99f1eefb1d90a4519b5e
7
+ data.tar.gz: fc5e8b2d6cdbfce93913f0845d682f3b3e66afe028dd2ba2e94d8ae01a4a92af994412723f3bbff062bb7e455ea209bf3a8fc7811a3cb692b026b8c0eee0e9e1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.924
1
+ 3.0.925
@@ -533,6 +533,30 @@ module TencentCloud
533
533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
534
  end
535
535
 
536
+ # 该接口用于创建通知内容。
537
+
538
+ # @param request: Request instance for CreateNoticeContent.
539
+ # @type request: :class:`Tencentcloud::cls::V20201016::CreateNoticeContentRequest`
540
+ # @rtype: :class:`Tencentcloud::cls::V20201016::CreateNoticeContentResponse`
541
+ def CreateNoticeContent(request)
542
+ body = send_request('CreateNoticeContent', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = CreateNoticeContentResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
536
560
  # 本接口用于创建定时SQL分析任务
537
561
 
538
562
  # @param request: Request instance for CreateScheduledSql.
@@ -989,6 +1013,30 @@ module TencentCloud
989
1013
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
1014
  end
991
1015
 
1016
+ # 该接口用于删除通知内容配置
1017
+
1018
+ # @param request: Request instance for DeleteNoticeContent.
1019
+ # @type request: :class:`Tencentcloud::cls::V20201016::DeleteNoticeContentRequest`
1020
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DeleteNoticeContentResponse`
1021
+ def DeleteNoticeContent(request)
1022
+ body = send_request('DeleteNoticeContent', request.serialize)
1023
+ response = JSON.parse(body)
1024
+ if response['Response'].key?('Error') == false
1025
+ model = DeleteNoticeContentResponse.new
1026
+ model.deserialize(response['Response'])
1027
+ model
1028
+ else
1029
+ code = response['Response']['Error']['Code']
1030
+ message = response['Response']['Error']['Message']
1031
+ reqid = response['Response']['RequestId']
1032
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1033
+ end
1034
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1035
+ raise e
1036
+ rescue StandardError => e
1037
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
+ end
1039
+
992
1040
  # 本接口用于删除定时SQL分析任务
993
1041
 
994
1042
  # @param request: Request instance for DeleteScheduledSql.
@@ -1614,6 +1662,30 @@ module TencentCloud
1614
1662
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1615
1663
  end
1616
1664
 
1665
+ # 获取通知内容列表
1666
+
1667
+ # @param request: Request instance for DescribeNoticeContents.
1668
+ # @type request: :class:`Tencentcloud::cls::V20201016::DescribeNoticeContentsRequest`
1669
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeNoticeContentsResponse`
1670
+ def DescribeNoticeContents(request)
1671
+ body = send_request('DescribeNoticeContents', request.serialize)
1672
+ response = JSON.parse(body)
1673
+ if response['Response'].key?('Error') == false
1674
+ model = DescribeNoticeContentsResponse.new
1675
+ model.deserialize(response['Response'])
1676
+ model
1677
+ else
1678
+ code = response['Response']['Error']['Code']
1679
+ message = response['Response']['Error']['Message']
1680
+ reqid = response['Response']['RequestId']
1681
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1682
+ end
1683
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1684
+ raise e
1685
+ rescue StandardError => e
1686
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1687
+ end
1688
+
1617
1689
  # 该接口已废弃,如需获取分区数量,请使用DescribeTopics接口。
1618
1690
 
1619
1691
  # @param request: Request instance for DescribePartitions.
@@ -2142,6 +2214,30 @@ module TencentCloud
2142
2214
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2143
2215
  end
2144
2216
 
2217
+ # 该接口用于修改通知内容配置
2218
+
2219
+ # @param request: Request instance for ModifyNoticeContent.
2220
+ # @type request: :class:`Tencentcloud::cls::V20201016::ModifyNoticeContentRequest`
2221
+ # @rtype: :class:`Tencentcloud::cls::V20201016::ModifyNoticeContentResponse`
2222
+ def ModifyNoticeContent(request)
2223
+ body = send_request('ModifyNoticeContent', request.serialize)
2224
+ response = JSON.parse(body)
2225
+ if response['Response'].key?('Error') == false
2226
+ model = ModifyNoticeContentResponse.new
2227
+ model.deserialize(response['Response'])
2228
+ model
2229
+ else
2230
+ code = response['Response']['Error']['Code']
2231
+ message = response['Response']['Error']['Message']
2232
+ reqid = response['Response']['RequestId']
2233
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2234
+ end
2235
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2236
+ raise e
2237
+ rescue StandardError => e
2238
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2239
+ end
2240
+
2145
2241
  # 本接口用于修改定时SQL分析任务
2146
2242
 
2147
2243
  # @param request: Request instance for ModifyScheduledSql.
@@ -3052,6 +3052,57 @@ module TencentCloud
3052
3052
  end
3053
3053
  end
3054
3054
 
3055
+ # CreateNoticeContent请求参数结构体
3056
+ class CreateNoticeContentRequest < TencentCloud::Common::AbstractModel
3057
+ # @param Name: 模版名称。
3058
+ # @type Name: String
3059
+ # @param Type: 模版内容语言。0:中文1:英文
3060
+ # @type Type: Integer
3061
+ # @param NoticeContents: 模版详细配置。
3062
+ # @type NoticeContents: Array
3063
+
3064
+ attr_accessor :Name, :Type, :NoticeContents
3065
+
3066
+ def initialize(name=nil, type=nil, noticecontents=nil)
3067
+ @Name = name
3068
+ @Type = type
3069
+ @NoticeContents = noticecontents
3070
+ end
3071
+
3072
+ def deserialize(params)
3073
+ @Name = params['Name']
3074
+ @Type = params['Type']
3075
+ unless params['NoticeContents'].nil?
3076
+ @NoticeContents = []
3077
+ params['NoticeContents'].each do |i|
3078
+ noticecontent_tmp = NoticeContent.new
3079
+ noticecontent_tmp.deserialize(i)
3080
+ @NoticeContents << noticecontent_tmp
3081
+ end
3082
+ end
3083
+ end
3084
+ end
3085
+
3086
+ # CreateNoticeContent返回参数结构体
3087
+ class CreateNoticeContentResponse < TencentCloud::Common::AbstractModel
3088
+ # @param NoticeContentId: 通知内容配置ID
3089
+ # @type NoticeContentId: String
3090
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3091
+ # @type RequestId: String
3092
+
3093
+ attr_accessor :NoticeContentId, :RequestId
3094
+
3095
+ def initialize(noticecontentid=nil, requestid=nil)
3096
+ @NoticeContentId = noticecontentid
3097
+ @RequestId = requestid
3098
+ end
3099
+
3100
+ def deserialize(params)
3101
+ @NoticeContentId = params['NoticeContentId']
3102
+ @RequestId = params['RequestId']
3103
+ end
3104
+ end
3105
+
3055
3106
  # CreateScheduledSql请求参数结构体
3056
3107
  class CreateScheduledSqlRequest < TencentCloud::Common::AbstractModel
3057
3108
  # @param SrcTopicId: 源日志主题
@@ -4224,6 +4275,38 @@ module TencentCloud
4224
4275
  end
4225
4276
  end
4226
4277
 
4278
+ # DeleteNoticeContent请求参数结构体
4279
+ class DeleteNoticeContentRequest < TencentCloud::Common::AbstractModel
4280
+ # @param NoticeContentId: 通知内容模版ID
4281
+ # @type NoticeContentId: String
4282
+
4283
+ attr_accessor :NoticeContentId
4284
+
4285
+ def initialize(noticecontentid=nil)
4286
+ @NoticeContentId = noticecontentid
4287
+ end
4288
+
4289
+ def deserialize(params)
4290
+ @NoticeContentId = params['NoticeContentId']
4291
+ end
4292
+ end
4293
+
4294
+ # DeleteNoticeContent返回参数结构体
4295
+ class DeleteNoticeContentResponse < TencentCloud::Common::AbstractModel
4296
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4297
+ # @type RequestId: String
4298
+
4299
+ attr_accessor :RequestId
4300
+
4301
+ def initialize(requestid=nil)
4302
+ @RequestId = requestid
4303
+ end
4304
+
4305
+ def deserialize(params)
4306
+ @RequestId = params['RequestId']
4307
+ end
4308
+ end
4309
+
4227
4310
  # DeleteScheduledSql请求参数结构体
4228
4311
  class DeleteScheduledSqlRequest < TencentCloud::Common::AbstractModel
4229
4312
  # @param TaskId: 任务ID
@@ -5925,6 +6008,79 @@ module TencentCloud
5925
6008
  end
5926
6009
  end
5927
6010
 
6011
+ # DescribeNoticeContents请求参数结构体
6012
+ class DescribeNoticeContentsRequest < TencentCloud::Common::AbstractModel
6013
+ # @param Filters: <li> name
6014
+ # 按照【通知内容模版名称】进行过滤。
6015
+ # 类型:String
6016
+ # 必选:否
6017
+ # </li>
6018
+ # <li> noticeContentId
6019
+ # 按照【通知内容模版ID】进行过滤。
6020
+ # 类型:String
6021
+ # 必选:否
6022
+ # </li>
6023
+ # 每次请求的Filters的上限为10,Filter.Values的上限为100。
6024
+ # @type Filters: Array
6025
+ # @param Offset: 分页的偏移量,默认值为0。
6026
+ # @type Offset: Integer
6027
+ # @param Limit: 分页单页限制数目,默认值为20,最大值100。
6028
+ # @type Limit: Integer
6029
+
6030
+ attr_accessor :Filters, :Offset, :Limit
6031
+
6032
+ def initialize(filters=nil, offset=nil, limit=nil)
6033
+ @Filters = filters
6034
+ @Offset = offset
6035
+ @Limit = limit
6036
+ end
6037
+
6038
+ def deserialize(params)
6039
+ unless params['Filters'].nil?
6040
+ @Filters = []
6041
+ params['Filters'].each do |i|
6042
+ filter_tmp = Filter.new
6043
+ filter_tmp.deserialize(i)
6044
+ @Filters << filter_tmp
6045
+ end
6046
+ end
6047
+ @Offset = params['Offset']
6048
+ @Limit = params['Limit']
6049
+ end
6050
+ end
6051
+
6052
+ # DescribeNoticeContents返回参数结构体
6053
+ class DescribeNoticeContentsResponse < TencentCloud::Common::AbstractModel
6054
+ # @param NoticeContents: 通知内容模版列表。
6055
+ # 注意:此字段可能返回 null,表示取不到有效值。
6056
+ # @type NoticeContents: Array
6057
+ # @param TotalCount: 符合条件的通知内容模版总数。
6058
+ # @type TotalCount: Integer
6059
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6060
+ # @type RequestId: String
6061
+
6062
+ attr_accessor :NoticeContents, :TotalCount, :RequestId
6063
+
6064
+ def initialize(noticecontents=nil, totalcount=nil, requestid=nil)
6065
+ @NoticeContents = noticecontents
6066
+ @TotalCount = totalcount
6067
+ @RequestId = requestid
6068
+ end
6069
+
6070
+ def deserialize(params)
6071
+ unless params['NoticeContents'].nil?
6072
+ @NoticeContents = []
6073
+ params['NoticeContents'].each do |i|
6074
+ noticecontenttemplate_tmp = NoticeContentTemplate.new
6075
+ noticecontenttemplate_tmp.deserialize(i)
6076
+ @NoticeContents << noticecontenttemplate_tmp
6077
+ end
6078
+ end
6079
+ @TotalCount = params['TotalCount']
6080
+ @RequestId = params['RequestId']
6081
+ end
6082
+ end
6083
+
5928
6084
  # DescribePartitions请求参数结构体
5929
6085
  class DescribePartitionsRequest < TencentCloud::Common::AbstractModel
5930
6086
  # @param TopicId: 日志主题ID
@@ -8798,6 +8954,59 @@ module TencentCloud
8798
8954
  end
8799
8955
  end
8800
8956
 
8957
+ # ModifyNoticeContent请求参数结构体
8958
+ class ModifyNoticeContentRequest < TencentCloud::Common::AbstractModel
8959
+ # @param NoticeContentId: 通知内容模版ID。
8960
+ # @type NoticeContentId: String
8961
+ # @param Name: 通知内容模版名称。
8962
+ # @type Name: String
8963
+ # @param Type: 通知内容语言。
8964
+
8965
+ # 0:中文 1:英文
8966
+ # @type Type: Integer
8967
+ # @param NoticeContents: 通知内容模版详细信息。
8968
+ # @type NoticeContents: Array
8969
+
8970
+ attr_accessor :NoticeContentId, :Name, :Type, :NoticeContents
8971
+
8972
+ def initialize(noticecontentid=nil, name=nil, type=nil, noticecontents=nil)
8973
+ @NoticeContentId = noticecontentid
8974
+ @Name = name
8975
+ @Type = type
8976
+ @NoticeContents = noticecontents
8977
+ end
8978
+
8979
+ def deserialize(params)
8980
+ @NoticeContentId = params['NoticeContentId']
8981
+ @Name = params['Name']
8982
+ @Type = params['Type']
8983
+ unless params['NoticeContents'].nil?
8984
+ @NoticeContents = []
8985
+ params['NoticeContents'].each do |i|
8986
+ noticecontent_tmp = NoticeContent.new
8987
+ noticecontent_tmp.deserialize(i)
8988
+ @NoticeContents << noticecontent_tmp
8989
+ end
8990
+ end
8991
+ end
8992
+ end
8993
+
8994
+ # ModifyNoticeContent返回参数结构体
8995
+ class ModifyNoticeContentResponse < TencentCloud::Common::AbstractModel
8996
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8997
+ # @type RequestId: String
8998
+
8999
+ attr_accessor :RequestId
9000
+
9001
+ def initialize(requestid=nil)
9002
+ @RequestId = requestid
9003
+ end
9004
+
9005
+ def deserialize(params)
9006
+ @RequestId = params['RequestId']
9007
+ end
9008
+ end
9009
+
8801
9010
  # ModifyScheduledSql请求参数结构体
8802
9011
  class ModifyScheduledSqlRequest < TencentCloud::Common::AbstractModel
8803
9012
  # @param TaskId: 任务ID
@@ -9076,17 +9285,23 @@ module TencentCloud
9076
9285
  # @param Time: 执行的周期,或者定制执行的时间节点。单位为分钟,取值范围为1~1440。
9077
9286
  # 当type为`Period`,`Fixed`时,time字段生效。
9078
9287
  # @type Time: Integer
9288
+ # @param CronExpression: 执行的周期cron表达式。示例:`"*/1 * * * *"` 从左到右每个field的含义 Minutes field, Hours field,Day of month field,Month field,Day of week field, 不支持秒级别。
9289
+ # 当type为`Cron`时,CronExpression字段生效。
9290
+ # 注意:此字段可能返回 null,表示取不到有效值。
9291
+ # @type CronExpression: String
9079
9292
 
9080
- attr_accessor :Type, :Time
9293
+ attr_accessor :Type, :Time, :CronExpression
9081
9294
 
9082
- def initialize(type=nil, time=nil)
9295
+ def initialize(type=nil, time=nil, cronexpression=nil)
9083
9296
  @Type = type
9084
9297
  @Time = time
9298
+ @CronExpression = cronexpression
9085
9299
  end
9086
9300
 
9087
9301
  def deserialize(params)
9088
9302
  @Type = params['Type']
9089
9303
  @Time = params['Time']
9304
+ @CronExpression = params['CronExpression']
9090
9305
  end
9091
9306
  end
9092
9307
 
@@ -9133,6 +9348,139 @@ module TencentCloud
9133
9348
  end
9134
9349
  end
9135
9350
 
9351
+ # 通知内容模版详细配置
9352
+ class NoticeContent < TencentCloud::Common::AbstractModel
9353
+ # @param Type: 渠道类型
9354
+
9355
+ # Email:邮件;Sms:短信;WeChat:微信;Phone:电话;WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;
9356
+ # @type Type: String
9357
+ # @param TriggerContent: 告警触发通知内容模版。
9358
+ # 注意:此字段可能返回 null,表示取不到有效值。
9359
+ # @type TriggerContent: :class:`Tencentcloud::Cls.v20201016.models.NoticeContentInfo`
9360
+ # @param RecoveryContent: 告警恢复通知内容模版。
9361
+ # 注意:此字段可能返回 null,表示取不到有效值。
9362
+ # @type RecoveryContent: :class:`Tencentcloud::Cls.v20201016.models.NoticeContentInfo`
9363
+
9364
+ attr_accessor :Type, :TriggerContent, :RecoveryContent
9365
+
9366
+ def initialize(type=nil, triggercontent=nil, recoverycontent=nil)
9367
+ @Type = type
9368
+ @TriggerContent = triggercontent
9369
+ @RecoveryContent = recoverycontent
9370
+ end
9371
+
9372
+ def deserialize(params)
9373
+ @Type = params['Type']
9374
+ unless params['TriggerContent'].nil?
9375
+ @TriggerContent = NoticeContentInfo.new
9376
+ @TriggerContent.deserialize(params['TriggerContent'])
9377
+ end
9378
+ unless params['RecoveryContent'].nil?
9379
+ @RecoveryContent = NoticeContentInfo.new
9380
+ @RecoveryContent.deserialize(params['RecoveryContent'])
9381
+ end
9382
+ end
9383
+ end
9384
+
9385
+ # 通知模板内容
9386
+ class NoticeContentInfo < TencentCloud::Common::AbstractModel
9387
+ # @param Title: 通知内容模板标题信息。
9388
+ # 部分通知渠道类型不支持“标题”,请参照腾讯云控制台页面。
9389
+ # 注意:此字段可能返回 null,表示取不到有效值。
9390
+ # @type Title: String
9391
+ # @param Content: 通知内容模板正文信息。
9392
+ # 注意:此字段可能返回 null,表示取不到有效值。
9393
+ # @type Content: String
9394
+ # @param Headers: 请求头(Request Headers):在HTTP请求中,请求头包含了客户端向服务器发送的附加信息,如用户代理、授权凭证、期望的响应格式等。
9395
+ # 仅“自定义回调”支持该配置。
9396
+ # 注意:此字段可能返回 null,表示取不到有效值。
9397
+ # @type Headers: Array
9398
+
9399
+ attr_accessor :Title, :Content, :Headers
9400
+
9401
+ def initialize(title=nil, content=nil, headers=nil)
9402
+ @Title = title
9403
+ @Content = content
9404
+ @Headers = headers
9405
+ end
9406
+
9407
+ def deserialize(params)
9408
+ @Title = params['Title']
9409
+ @Content = params['Content']
9410
+ @Headers = params['Headers']
9411
+ end
9412
+ end
9413
+
9414
+ # 通知内容模板信息
9415
+ class NoticeContentTemplate < TencentCloud::Common::AbstractModel
9416
+ # @param NoticeContentId: 通知内容模板ID。
9417
+ # 注意:此字段可能返回 null,表示取不到有效值。
9418
+ # @type NoticeContentId: String
9419
+ # @param Name: 通知内容模板名称
9420
+ # 注意:此字段可能返回 null,表示取不到有效值。
9421
+ # @type Name: String
9422
+ # @param Type: 语言类型。
9423
+
9424
+ # 0: 中文
9425
+ # 1: 英文
9426
+ # 注意:此字段可能返回 null,表示取不到有效值。
9427
+ # @type Type: Integer
9428
+ # @param NoticeContents: 通知内容模板信息。
9429
+ # 注意:此字段可能返回 null,表示取不到有效值。
9430
+ # @type NoticeContents: Array
9431
+ # @param Flag: 通知内容模板标记。
9432
+
9433
+ # 0: 用户自定义
9434
+ # 1: 系统内置
9435
+ # 注意:此字段可能返回 null,表示取不到有效值。
9436
+ # @type Flag: Integer
9437
+ # @param Uin: 创建者主账号。
9438
+ # 注意:此字段可能返回 null,表示取不到有效值。
9439
+ # @type Uin: Integer
9440
+ # @param SubUin: 创建/修改者子账号。
9441
+ # 注意:此字段可能返回 null,表示取不到有效值。
9442
+ # @type SubUin: Integer
9443
+ # @param CreateTime: 创建时间 秒级时间戳。
9444
+ # 注意:此字段可能返回 null,表示取不到有效值。
9445
+ # @type CreateTime: Integer
9446
+ # @param UpdateTime: 更新时间 秒级时间戳。
9447
+ # 注意:此字段可能返回 null,表示取不到有效值。
9448
+ # @type UpdateTime: Integer
9449
+
9450
+ attr_accessor :NoticeContentId, :Name, :Type, :NoticeContents, :Flag, :Uin, :SubUin, :CreateTime, :UpdateTime
9451
+
9452
+ def initialize(noticecontentid=nil, name=nil, type=nil, noticecontents=nil, flag=nil, uin=nil, subuin=nil, createtime=nil, updatetime=nil)
9453
+ @NoticeContentId = noticecontentid
9454
+ @Name = name
9455
+ @Type = type
9456
+ @NoticeContents = noticecontents
9457
+ @Flag = flag
9458
+ @Uin = uin
9459
+ @SubUin = subuin
9460
+ @CreateTime = createtime
9461
+ @UpdateTime = updatetime
9462
+ end
9463
+
9464
+ def deserialize(params)
9465
+ @NoticeContentId = params['NoticeContentId']
9466
+ @Name = params['Name']
9467
+ @Type = params['Type']
9468
+ unless params['NoticeContents'].nil?
9469
+ @NoticeContents = []
9470
+ params['NoticeContents'].each do |i|
9471
+ noticecontent_tmp = NoticeContent.new
9472
+ noticecontent_tmp.deserialize(i)
9473
+ @NoticeContents << noticecontent_tmp
9474
+ end
9475
+ end
9476
+ @Flag = params['Flag']
9477
+ @Uin = params['Uin']
9478
+ @SubUin = params['SubUin']
9479
+ @CreateTime = params['CreateTime']
9480
+ @UpdateTime = params['UpdateTime']
9481
+ end
9482
+ end
9483
+
9136
9484
  # 告警通知接收者信息
9137
9485
  class NoticeReceiver < TencentCloud::Common::AbstractModel
9138
9486
  # @param ReceiverType: 接受者类型。可选值:
@@ -9159,16 +9507,20 @@ module TencentCloud
9159
9507
  # - 入参时无效。
9160
9508
  # - 出参时有效。
9161
9509
  # @type Index: Integer
9510
+ # @param NoticeContentId: 通知内容模板ID。
9511
+ # 注意:此字段可能返回 null,表示取不到有效值。
9512
+ # @type NoticeContentId: String
9162
9513
 
9163
- attr_accessor :ReceiverType, :ReceiverIds, :ReceiverChannels, :StartTime, :EndTime, :Index
9514
+ attr_accessor :ReceiverType, :ReceiverIds, :ReceiverChannels, :StartTime, :EndTime, :Index, :NoticeContentId
9164
9515
 
9165
- def initialize(receivertype=nil, receiverids=nil, receiverchannels=nil, starttime=nil, endtime=nil, index=nil)
9516
+ def initialize(receivertype=nil, receiverids=nil, receiverchannels=nil, starttime=nil, endtime=nil, index=nil, noticecontentid=nil)
9166
9517
  @ReceiverType = receivertype
9167
9518
  @ReceiverIds = receiverids
9168
9519
  @ReceiverChannels = receiverchannels
9169
9520
  @StartTime = starttime
9170
9521
  @EndTime = endtime
9171
9522
  @Index = index
9523
+ @NoticeContentId = noticecontentid
9172
9524
  end
9173
9525
 
9174
9526
  def deserialize(params)
@@ -9178,6 +9530,7 @@ module TencentCloud
9178
9530
  @StartTime = params['StartTime']
9179
9531
  @EndTime = params['EndTime']
9180
9532
  @Index = params['Index']
9533
+ @NoticeContentId = params['NoticeContentId']
9181
9534
  end
9182
9535
  end
9183
9536
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cls
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.924
4
+ version: 3.0.925
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-10-14 00:00:00.000000000 Z
11
+ date: 2024-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common