tencentcloud-sdk-teo 3.0.839 → 3.0.841

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: a61de0e424829e994bfa0722b9071bae881e21c9
4
- data.tar.gz: 88f3f5bea1d3bb9367c275cdc8bc218ddf6cb744
3
+ metadata.gz: cfd3822c8aaea144be27a25344d8ea6c4659dded
4
+ data.tar.gz: a02d52b7d38c4f77f494b391186556738b6dc74a
5
5
  SHA512:
6
- metadata.gz: a7c0de605d1fee714e7fae71879d854b93b8677a55216a1abefee0bc694bf4f89ec1f9ca4251e638a0189b8d9bfc7eb2242085fb627dbcf6d011e24e7c5cdda1
7
- data.tar.gz: 61c70dc26e87511ce49e5cae9041956f3c538ee960db6bf4f859e25b40ec16b8c976c0eb8a4010bbc87d06e8765e9cc4bdc334b9eea3e775edfa1a9fa6a42f71
6
+ metadata.gz: 262147054bd040c5d8fd2b78258defc6cf291243e6333105c2da333e02996a97b8d905d7801c40ae5f5a6bc2751b936495108155a86df05e9ae9fd34ab8b4f50
7
+ data.tar.gz: 297abf6abb989e8cf7a3dd964a9e7de72910d43062d804558c1855a2d68bf61df14eaf935ff1328376f7e7d86b18d561928cd7d7223359d76ca49a926b57fad1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.839
1
+ 3.0.841
@@ -272,6 +272,30 @@ module TencentCloud
272
272
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
273
273
  end
274
274
 
275
+ # 创建自定义错误页面。
276
+
277
+ # @param request: Request instance for CreateCustomizeErrorPage.
278
+ # @type request: :class:`Tencentcloud::teo::V20220901::CreateCustomizeErrorPageRequest`
279
+ # @rtype: :class:`Tencentcloud::teo::V20220901::CreateCustomizeErrorPageResponse`
280
+ def CreateCustomizeErrorPage(request)
281
+ body = send_request('CreateCustomizeErrorPage', request.serialize)
282
+ response = JSON.parse(body)
283
+ if response['Response'].key?('Error') == false
284
+ model = CreateCustomizeErrorPageResponse.new
285
+ model.deserialize(response['Response'])
286
+ model
287
+ else
288
+ code = response['Response']['Error']['Code']
289
+ message = response['Response']['Error']['Message']
290
+ reqid = response['Response']['RequestId']
291
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
292
+ end
293
+ rescue TencentCloud::Common::TencentCloudSDKException => e
294
+ raise e
295
+ rescue StandardError => e
296
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
297
+ end
298
+
275
299
  # 用于创建四层代理实例。
276
300
 
277
301
  # @param request: Request instance for CreateL4Proxy.
@@ -663,6 +687,30 @@ module TencentCloud
663
687
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
664
688
  end
665
689
 
690
+ # 删除自定义错误页面。
691
+
692
+ # @param request: Request instance for DeleteCustomErrorPage.
693
+ # @type request: :class:`Tencentcloud::teo::V20220901::DeleteCustomErrorPageRequest`
694
+ # @rtype: :class:`Tencentcloud::teo::V20220901::DeleteCustomErrorPageResponse`
695
+ def DeleteCustomErrorPage(request)
696
+ body = send_request('DeleteCustomErrorPage', request.serialize)
697
+ response = JSON.parse(body)
698
+ if response['Response'].key?('Error') == false
699
+ model = DeleteCustomErrorPageResponse.new
700
+ model.deserialize(response['Response'])
701
+ model
702
+ else
703
+ code = response['Response']['Error']['Code']
704
+ message = response['Response']['Error']['Message']
705
+ reqid = response['Response']['RequestId']
706
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
707
+ end
708
+ rescue TencentCloud::Common::TencentCloudSDKException => e
709
+ raise e
710
+ rescue StandardError => e
711
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
712
+ end
713
+
666
714
  # 用于删除四层代理实例。
667
715
 
668
716
  # @param request: Request instance for DeleteL4Proxy.
@@ -1071,6 +1119,30 @@ module TencentCloud
1071
1119
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1072
1120
  end
1073
1121
 
1122
+ # 查询自定义错误页列表。
1123
+
1124
+ # @param request: Request instance for DescribeCustomErrorPages.
1125
+ # @type request: :class:`Tencentcloud::teo::V20220901::DescribeCustomErrorPagesRequest`
1126
+ # @rtype: :class:`Tencentcloud::teo::V20220901::DescribeCustomErrorPagesResponse`
1127
+ def DescribeCustomErrorPages(request)
1128
+ body = send_request('DescribeCustomErrorPages', request.serialize)
1129
+ response = JSON.parse(body)
1130
+ if response['Response'].key?('Error') == false
1131
+ model = DescribeCustomErrorPagesResponse.new
1132
+ model.deserialize(response['Response'])
1133
+ model
1134
+ else
1135
+ code = response['Response']['Error']['Code']
1136
+ message = response['Response']['Error']['Message']
1137
+ reqid = response['Response']['RequestId']
1138
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1139
+ end
1140
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1141
+ raise e
1142
+ rescue StandardError => e
1143
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1144
+ end
1145
+
1074
1146
  # 本接口(DescribeDDoSAttackData)用于查询DDoS攻击时序数据。
1075
1147
 
1076
1148
  # @param request: Request instance for DescribeDDoSAttackData.
@@ -2093,6 +2165,30 @@ module TencentCloud
2093
2165
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2094
2166
  end
2095
2167
 
2168
+ # 修改自定义错误页面。
2169
+
2170
+ # @param request: Request instance for ModifyCustomErrorPage.
2171
+ # @type request: :class:`Tencentcloud::teo::V20220901::ModifyCustomErrorPageRequest`
2172
+ # @rtype: :class:`Tencentcloud::teo::V20220901::ModifyCustomErrorPageResponse`
2173
+ def ModifyCustomErrorPage(request)
2174
+ body = send_request('ModifyCustomErrorPage', request.serialize)
2175
+ response = JSON.parse(body)
2176
+ if response['Response'].key?('Error') == false
2177
+ model = ModifyCustomErrorPageResponse.new
2178
+ model.deserialize(response['Response'])
2179
+ model
2180
+ else
2181
+ code = response['Response']['Error']['Code']
2182
+ message = response['Response']['Error']['Message']
2183
+ reqid = response['Response']['RequestId']
2184
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2185
+ end
2186
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2187
+ raise e
2188
+ rescue StandardError => e
2189
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2190
+ end
2191
+
2096
2192
  # 完成域名创建之后,您可以为域名配置自有证书,也可以使用 EdgeOne 为您提供的 [免费证书](https://cloud.tencent.com/document/product/1552/90437)。
2097
2193
  # 如果您需要配置自有证书,请先将证书上传至 [SSL证书控制台](https://console.cloud.tencent.com/certoverview),然后在本接口中传入对应的证书 ID。详情参考 [部署自有证书至 EdgeOne 域名
2098
2194
  # ](https://cloud.tencent.com/document/product/1552/88874)。
@@ -2296,6 +2296,58 @@ module TencentCloud
2296
2296
  end
2297
2297
  end
2298
2298
 
2299
+ # CreateCustomizeErrorPage请求参数结构体
2300
+ class CreateCustomizeErrorPageRequest < TencentCloud::Common::AbstractModel
2301
+ # @param ZoneId: 站点 ID。
2302
+ # @type ZoneId: String
2303
+ # @param Name: 自定义错误页名称,名称为 2-30 个字符。
2304
+ # @type Name: String
2305
+ # @param ContentType: 自定义错误页面类型,取值有:<li>text/html; </li><li>application/json;</li><li>text/plain;</li><li>text/xml。</li>
2306
+ # @type ContentType: String
2307
+ # @param Description: 自定义错误页面描述,描述不超过 60 个字符。
2308
+ # @type Description: String
2309
+ # @param Content: 自定义错误页面内容,内容不超过 2KB。
2310
+ # @type Content: String
2311
+
2312
+ attr_accessor :ZoneId, :Name, :ContentType, :Description, :Content
2313
+
2314
+ def initialize(zoneid=nil, name=nil, contenttype=nil, description=nil, content=nil)
2315
+ @ZoneId = zoneid
2316
+ @Name = name
2317
+ @ContentType = contenttype
2318
+ @Description = description
2319
+ @Content = content
2320
+ end
2321
+
2322
+ def deserialize(params)
2323
+ @ZoneId = params['ZoneId']
2324
+ @Name = params['Name']
2325
+ @ContentType = params['ContentType']
2326
+ @Description = params['Description']
2327
+ @Content = params['Content']
2328
+ end
2329
+ end
2330
+
2331
+ # CreateCustomizeErrorPage返回参数结构体
2332
+ class CreateCustomizeErrorPageResponse < TencentCloud::Common::AbstractModel
2333
+ # @param PageId: 页面 ID。
2334
+ # @type PageId: String
2335
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2336
+ # @type RequestId: String
2337
+
2338
+ attr_accessor :PageId, :RequestId
2339
+
2340
+ def initialize(pageid=nil, requestid=nil)
2341
+ @PageId = pageid
2342
+ @RequestId = requestid
2343
+ end
2344
+
2345
+ def deserialize(params)
2346
+ @PageId = params['PageId']
2347
+ @RequestId = params['RequestId']
2348
+ end
2349
+ end
2350
+
2299
2351
  # CreateL4Proxy请求参数结构体
2300
2352
  class CreateL4ProxyRequest < TencentCloud::Common::AbstractModel
2301
2353
  # @param ZoneId: 站点 ID。
@@ -3166,6 +3218,53 @@ module TencentCloud
3166
3218
  end
3167
3219
  end
3168
3220
 
3221
+ # 自定义错误码页面结构体。
3222
+ class CustomErrorPage < TencentCloud::Common::AbstractModel
3223
+ # @param PageId: 自定义错误页面 ID。
3224
+ # @type PageId: String
3225
+ # @param ZoneId: 站点 ID。
3226
+ # @type ZoneId: String
3227
+ # @param Name: 自定义错误页面名称。
3228
+ # @type Name: String
3229
+ # @param ContentType: 自定义错误页面类型。
3230
+ # @type ContentType: String
3231
+ # @param Description: 自定义错误页面描述。
3232
+ # @type Description: String
3233
+ # @param Content: 自定义错误页面内容。
3234
+ # @type Content: String
3235
+ # @param References: 自定义错误页面引用。
3236
+ # @type References: Array
3237
+
3238
+ attr_accessor :PageId, :ZoneId, :Name, :ContentType, :Description, :Content, :References
3239
+
3240
+ def initialize(pageid=nil, zoneid=nil, name=nil, contenttype=nil, description=nil, content=nil, references=nil)
3241
+ @PageId = pageid
3242
+ @ZoneId = zoneid
3243
+ @Name = name
3244
+ @ContentType = contenttype
3245
+ @Description = description
3246
+ @Content = content
3247
+ @References = references
3248
+ end
3249
+
3250
+ def deserialize(params)
3251
+ @PageId = params['PageId']
3252
+ @ZoneId = params['ZoneId']
3253
+ @Name = params['Name']
3254
+ @ContentType = params['ContentType']
3255
+ @Description = params['Description']
3256
+ @Content = params['Content']
3257
+ unless params['References'].nil?
3258
+ @References = []
3259
+ params['References'].each do |i|
3260
+ errorpagereference_tmp = ErrorPageReference.new
3261
+ errorpagereference_tmp.deserialize(i)
3262
+ @References << errorpagereference_tmp
3263
+ end
3264
+ end
3265
+ end
3266
+ end
3267
+
3169
3268
  # 实时日志投递任务中的自定义日志字段。
3170
3269
  class CustomField < TencentCloud::Common::AbstractModel
3171
3270
  # @param Name: 从 HTTP 请求和响应中的指定位置提取数据,取值有:
@@ -3563,6 +3662,42 @@ module TencentCloud
3563
3662
  end
3564
3663
  end
3565
3664
 
3665
+ # DeleteCustomErrorPage请求参数结构体
3666
+ class DeleteCustomErrorPageRequest < TencentCloud::Common::AbstractModel
3667
+ # @param ZoneId: 站点 ID。
3668
+ # @type ZoneId: String
3669
+ # @param PageId: 自定义页面 ID。
3670
+ # @type PageId: String
3671
+
3672
+ attr_accessor :ZoneId, :PageId
3673
+
3674
+ def initialize(zoneid=nil, pageid=nil)
3675
+ @ZoneId = zoneid
3676
+ @PageId = pageid
3677
+ end
3678
+
3679
+ def deserialize(params)
3680
+ @ZoneId = params['ZoneId']
3681
+ @PageId = params['PageId']
3682
+ end
3683
+ end
3684
+
3685
+ # DeleteCustomErrorPage返回参数结构体
3686
+ class DeleteCustomErrorPageResponse < TencentCloud::Common::AbstractModel
3687
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3688
+ # @type RequestId: String
3689
+
3690
+ attr_accessor :RequestId
3691
+
3692
+ def initialize(requestid=nil)
3693
+ @RequestId = requestid
3694
+ end
3695
+
3696
+ def deserialize(params)
3697
+ @RequestId = params['RequestId']
3698
+ end
3699
+ end
3700
+
3566
3701
  # DeleteL4Proxy请求参数结构体
3567
3702
  class DeleteL4ProxyRequest < TencentCloud::Common::AbstractModel
3568
3703
  # @param ZoneId: 站点 ID。
@@ -4513,6 +4648,76 @@ module TencentCloud
4513
4648
  end
4514
4649
  end
4515
4650
 
4651
+ # DescribeCustomErrorPages请求参数结构体
4652
+ class DescribeCustomErrorPagesRequest < TencentCloud::Common::AbstractModel
4653
+ # @param ZoneId: 站点 ID。
4654
+ # @type ZoneId: String
4655
+ # @param Filters: 过滤条件,Filters.Values 的上限为20,详细的过滤条件Name值如下:
4656
+ # <li>page-id: 按照页面 ID 进行过滤;</li>
4657
+ # <li>name: 按照页面名称进行过滤;</li>
4658
+ # <li>description:按照页面描述过滤;</li>
4659
+ # <li>content-type:按照页面类型过滤。</li>
4660
+ # @type Filters: Array
4661
+ # @param Offset: 分页查询偏移量。默认值:0。
4662
+ # @type Offset: Integer
4663
+ # @param Limit: 分页查询限制数目。默认值:20,最大值:1000。
4664
+ # @type Limit: Integer
4665
+
4666
+ attr_accessor :ZoneId, :Filters, :Offset, :Limit
4667
+
4668
+ def initialize(zoneid=nil, filters=nil, offset=nil, limit=nil)
4669
+ @ZoneId = zoneid
4670
+ @Filters = filters
4671
+ @Offset = offset
4672
+ @Limit = limit
4673
+ end
4674
+
4675
+ def deserialize(params)
4676
+ @ZoneId = params['ZoneId']
4677
+ unless params['Filters'].nil?
4678
+ @Filters = []
4679
+ params['Filters'].each do |i|
4680
+ advancedfilter_tmp = AdvancedFilter.new
4681
+ advancedfilter_tmp.deserialize(i)
4682
+ @Filters << advancedfilter_tmp
4683
+ end
4684
+ end
4685
+ @Offset = params['Offset']
4686
+ @Limit = params['Limit']
4687
+ end
4688
+ end
4689
+
4690
+ # DescribeCustomErrorPages返回参数结构体
4691
+ class DescribeCustomErrorPagesResponse < TencentCloud::Common::AbstractModel
4692
+ # @param TotalCount: 自定义错误页面总数。
4693
+ # @type TotalCount: Integer
4694
+ # @param ErrorPages: 自定义错误页面数据列表。
4695
+ # @type ErrorPages: Array
4696
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4697
+ # @type RequestId: String
4698
+
4699
+ attr_accessor :TotalCount, :ErrorPages, :RequestId
4700
+
4701
+ def initialize(totalcount=nil, errorpages=nil, requestid=nil)
4702
+ @TotalCount = totalcount
4703
+ @ErrorPages = errorpages
4704
+ @RequestId = requestid
4705
+ end
4706
+
4707
+ def deserialize(params)
4708
+ @TotalCount = params['TotalCount']
4709
+ unless params['ErrorPages'].nil?
4710
+ @ErrorPages = []
4711
+ params['ErrorPages'].each do |i|
4712
+ customerrorpage_tmp = CustomErrorPage.new
4713
+ customerrorpage_tmp.deserialize(i)
4714
+ @ErrorPages << customerrorpage_tmp
4715
+ end
4716
+ end
4717
+ @RequestId = params['RequestId']
4718
+ end
4719
+ end
4720
+
4516
4721
  # DescribeDDoSAttackData请求参数结构体
4517
4722
  class DescribeDDoSAttackDataRequest < TencentCloud::Common::AbstractModel
4518
4723
  # @param StartTime: 开始时间。
@@ -7180,6 +7385,22 @@ module TencentCloud
7180
7385
  end
7181
7386
  end
7182
7387
 
7388
+ # 自定义错误页面被引用的来源
7389
+ class ErrorPageReference < TencentCloud::Common::AbstractModel
7390
+ # @param BusinessId: 引用的业务 ID,如自定义拦截规则 ID。
7391
+ # @type BusinessId: String
7392
+
7393
+ attr_accessor :BusinessId
7394
+
7395
+ def initialize(businessid=nil)
7396
+ @BusinessId = businessid
7397
+ end
7398
+
7399
+ def deserialize(params)
7400
+ @BusinessId = params['BusinessId']
7401
+ end
7402
+ end
7403
+
7183
7404
  # 例外规则,用于配置需要跳过特定场景的规则
7184
7405
  class ExceptConfig < TencentCloud::Common::AbstractModel
7185
7406
  # @param Switch: 配置开关,取值有:
@@ -8873,6 +9094,58 @@ module TencentCloud
8873
9094
  end
8874
9095
  end
8875
9096
 
9097
+ # ModifyCustomErrorPage请求参数结构体
9098
+ class ModifyCustomErrorPageRequest < TencentCloud::Common::AbstractModel
9099
+ # @param PageId: 自定义错误页面 ID。
9100
+ # @type PageId: String
9101
+ # @param ZoneId: 站点 ID。
9102
+ # @type ZoneId: String
9103
+ # @param Name: 自定义错误页名称,名称为2 - 60个字符。
9104
+ # @type Name: String
9105
+ # @param Description: 自定义错误页描述,描述内容不超过60个字符。
9106
+ # @type Description: String
9107
+ # @param ContentType: 自定义错误页面类型,取值有:<li>text/html。 </li><li>application/json。</li><li>plain/text。</li><li>text/xml。</li>
9108
+ # @type ContentType: String
9109
+ # @param Content: 自定义错误页面内容。内容不超过 2KB。
9110
+ # @type Content: String
9111
+
9112
+ attr_accessor :PageId, :ZoneId, :Name, :Description, :ContentType, :Content
9113
+
9114
+ def initialize(pageid=nil, zoneid=nil, name=nil, description=nil, contenttype=nil, content=nil)
9115
+ @PageId = pageid
9116
+ @ZoneId = zoneid
9117
+ @Name = name
9118
+ @Description = description
9119
+ @ContentType = contenttype
9120
+ @Content = content
9121
+ end
9122
+
9123
+ def deserialize(params)
9124
+ @PageId = params['PageId']
9125
+ @ZoneId = params['ZoneId']
9126
+ @Name = params['Name']
9127
+ @Description = params['Description']
9128
+ @ContentType = params['ContentType']
9129
+ @Content = params['Content']
9130
+ end
9131
+ end
9132
+
9133
+ # ModifyCustomErrorPage返回参数结构体
9134
+ class ModifyCustomErrorPageResponse < TencentCloud::Common::AbstractModel
9135
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9136
+ # @type RequestId: String
9137
+
9138
+ attr_accessor :RequestId
9139
+
9140
+ def initialize(requestid=nil)
9141
+ @RequestId = requestid
9142
+ end
9143
+
9144
+ def deserialize(params)
9145
+ @RequestId = params['RequestId']
9146
+ end
9147
+ end
9148
+
8876
9149
  # ModifyHostsCertificate请求参数结构体
8877
9150
  class ModifyHostsCertificateRequest < TencentCloud::Common::AbstractModel
8878
9151
  # @param ZoneId: 站点 ID。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-teo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.839
4
+ version: 3.0.841
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-06-06 00:00:00.000000000 Z
11
+ date: 2024-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common