tencentcloud-sdk-teo 3.0.951 → 3.0.952
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/v20220901/client.rb +72 -0
- data/lib/v20220901/models.rb +137 -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: 3bc11158fe30c4e3fa9f7f2cc4eb83e0e905a331
|
4
|
+
data.tar.gz: afd3e40a574a89bad0465ca6ec45eff9dbc2c533
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbec0941037316c49b028d092b8b284cf253d8d02b72d1ddcf8e468edaba8dff5e8b65afb22cbbc8a79ea48c8b73c386d22968a9d77560a1da75c7be0b61e2b3
|
7
|
+
data.tar.gz: 77e522a12f7f991b436e2a87bae92602eff0b6c7bf8acd22d46daedbdf811223515c697dc40e3466ffbb85444aaea8caba98218398bf8a742ddc58cdfce5b050
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.952
|
data/lib/v20220901/client.rb
CHANGED
@@ -2058,6 +2058,30 @@ module TencentCloud
|
|
2058
2058
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2059
2059
|
end
|
2060
2060
|
|
2061
|
+
# 查询站点配置项导入结果接口,本接口用于站点配置导入接口(ImportZoneConfig)的结果查询。该功能仅支持标准版或企业版套餐的站点使用。
|
2062
|
+
|
2063
|
+
# @param request: Request instance for DescribeZoneConfigImportResult.
|
2064
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeZoneConfigImportResultRequest`
|
2065
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeZoneConfigImportResultResponse`
|
2066
|
+
def DescribeZoneConfigImportResult(request)
|
2067
|
+
body = send_request('DescribeZoneConfigImportResult', request.serialize)
|
2068
|
+
response = JSON.parse(body)
|
2069
|
+
if response['Response'].key?('Error') == false
|
2070
|
+
model = DescribeZoneConfigImportResultResponse.new
|
2071
|
+
model.deserialize(response['Response'])
|
2072
|
+
model
|
2073
|
+
else
|
2074
|
+
code = response['Response']['Error']['Code']
|
2075
|
+
message = response['Response']['Error']['Message']
|
2076
|
+
reqid = response['Response']['RequestId']
|
2077
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2078
|
+
end
|
2079
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2080
|
+
raise e
|
2081
|
+
rescue StandardError => e
|
2082
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2083
|
+
end
|
2084
|
+
|
2061
2085
|
# 用于查询站点的所有配置信息。
|
2062
2086
|
|
2063
2087
|
# @param request: Request instance for DescribeZoneSetting.
|
@@ -2185,6 +2209,30 @@ module TencentCloud
|
|
2185
2209
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2186
2210
|
end
|
2187
2211
|
|
2212
|
+
# 导出站点配置接口,本接口支持用户根据需要的配置项进行配置导出,导出的配置用于导入站点配置接口(ImportZoneConfig)进行配置导入。该功能仅支持标准版和企业版套餐站点使用。
|
2213
|
+
|
2214
|
+
# @param request: Request instance for ExportZoneConfig.
|
2215
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ExportZoneConfigRequest`
|
2216
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ExportZoneConfigResponse`
|
2217
|
+
def ExportZoneConfig(request)
|
2218
|
+
body = send_request('ExportZoneConfig', request.serialize)
|
2219
|
+
response = JSON.parse(body)
|
2220
|
+
if response['Response'].key?('Error') == false
|
2221
|
+
model = ExportZoneConfigResponse.new
|
2222
|
+
model.deserialize(response['Response'])
|
2223
|
+
model
|
2224
|
+
else
|
2225
|
+
code = response['Response']['Error']['Code']
|
2226
|
+
message = response['Response']['Error']['Message']
|
2227
|
+
reqid = response['Response']['RequestId']
|
2228
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2229
|
+
end
|
2230
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2231
|
+
raise e
|
2232
|
+
rescue StandardError => e
|
2233
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2234
|
+
end
|
2235
|
+
|
2188
2236
|
# 操作边缘函数运行环境,支持环境变量的相关设置。
|
2189
2237
|
# 设置环境变量后,可在函数代码中使用,具体参考 [边缘函数引入环境变量](https://cloud.tencent.com/document/product/1552/109151#0151fd9a-8b0e-407b-ae37-54553a60ded6)。
|
2190
2238
|
|
@@ -2234,6 +2282,30 @@ module TencentCloud
|
|
2234
2282
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2235
2283
|
end
|
2236
2284
|
|
2285
|
+
# 导入站点配置接口,本接口支持站点配置文件的快速导入,发起导入后接口会返回对应的任务 ID(TaskId),用户需通过查询站点配置导入结果接口(DescribeZoneConfigImportResult)获取本次导入任务执行的结果。该功能仅支持标准版和企业版套餐站点使用。
|
2286
|
+
|
2287
|
+
# @param request: Request instance for ImportZoneConfig.
|
2288
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ImportZoneConfigRequest`
|
2289
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ImportZoneConfigResponse`
|
2290
|
+
def ImportZoneConfig(request)
|
2291
|
+
body = send_request('ImportZoneConfig', request.serialize)
|
2292
|
+
response = JSON.parse(body)
|
2293
|
+
if response['Response'].key?('Error') == false
|
2294
|
+
model = ImportZoneConfigResponse.new
|
2295
|
+
model.deserialize(response['Response'])
|
2296
|
+
model
|
2297
|
+
else
|
2298
|
+
code = response['Response']['Error']['Code']
|
2299
|
+
message = response['Response']['Error']['Message']
|
2300
|
+
reqid = response['Response']['RequestId']
|
2301
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2302
|
+
end
|
2303
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2304
|
+
raise e
|
2305
|
+
rescue StandardError => e
|
2306
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2307
|
+
end
|
2308
|
+
|
2237
2309
|
# 当您的套餐绑定的站点数,或配置的 Web 防护 - 自定义规则 - 精准匹配策略的规则数,或 Web 防护 - 速率限制 - 精准速率限制模块的规则数达到套餐允许的配额上限,可以通过该接口增购对应配额。
|
2238
2310
|
# > 该接口该仅支持企业版套餐。
|
2239
2311
|
|
data/lib/v20220901/models.rb
CHANGED
@@ -7382,6 +7382,62 @@ module TencentCloud
|
|
7382
7382
|
end
|
7383
7383
|
end
|
7384
7384
|
|
7385
|
+
# DescribeZoneConfigImportResult请求参数结构体
|
7386
|
+
class DescribeZoneConfigImportResultRequest < TencentCloud::Common::AbstractModel
|
7387
|
+
# @param ZoneId: 站点 ID。
|
7388
|
+
# @type ZoneId: String
|
7389
|
+
# @param TaskId: 表示需要查询结果的导入配置任务 Id,导入任务 Id 仅支持查询最近 7 天的导入任务。
|
7390
|
+
# @type TaskId: String
|
7391
|
+
|
7392
|
+
attr_accessor :ZoneId, :TaskId
|
7393
|
+
|
7394
|
+
def initialize(zoneid=nil, taskid=nil)
|
7395
|
+
@ZoneId = zoneid
|
7396
|
+
@TaskId = taskid
|
7397
|
+
end
|
7398
|
+
|
7399
|
+
def deserialize(params)
|
7400
|
+
@ZoneId = params['ZoneId']
|
7401
|
+
@TaskId = params['TaskId']
|
7402
|
+
end
|
7403
|
+
end
|
7404
|
+
|
7405
|
+
# DescribeZoneConfigImportResult返回参数结构体
|
7406
|
+
class DescribeZoneConfigImportResultResponse < TencentCloud::Common::AbstractModel
|
7407
|
+
# @param Status: 本次导入任务的导入状态。取值有: <li>success:表示配置项导入成功;</li> <li>failure:表示配置项导入失败;</li> <li>doing:表示配置项正在导入中。</li>
|
7408
|
+
# @type Status: String
|
7409
|
+
# @param Message: 本次导入任务的状态的提示信息。当配置项导入失败时,可通过本字段查看失败原因。
|
7410
|
+
# @type Message: String
|
7411
|
+
# @param Content: 本次导入任务的配置内容。
|
7412
|
+
# @type Content: String
|
7413
|
+
# @param ImportTime: 本次导入任务的开始时间。
|
7414
|
+
# @type ImportTime: String
|
7415
|
+
# @param FinishTime: 本次导入任务的结束时间。
|
7416
|
+
# @type FinishTime: String
|
7417
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7418
|
+
# @type RequestId: String
|
7419
|
+
|
7420
|
+
attr_accessor :Status, :Message, :Content, :ImportTime, :FinishTime, :RequestId
|
7421
|
+
|
7422
|
+
def initialize(status=nil, message=nil, content=nil, importtime=nil, finishtime=nil, requestid=nil)
|
7423
|
+
@Status = status
|
7424
|
+
@Message = message
|
7425
|
+
@Content = content
|
7426
|
+
@ImportTime = importtime
|
7427
|
+
@FinishTime = finishtime
|
7428
|
+
@RequestId = requestid
|
7429
|
+
end
|
7430
|
+
|
7431
|
+
def deserialize(params)
|
7432
|
+
@Status = params['Status']
|
7433
|
+
@Message = params['Message']
|
7434
|
+
@Content = params['Content']
|
7435
|
+
@ImportTime = params['ImportTime']
|
7436
|
+
@FinishTime = params['FinishTime']
|
7437
|
+
@RequestId = params['RequestId']
|
7438
|
+
end
|
7439
|
+
end
|
7440
|
+
|
7385
7441
|
# DescribeZoneSetting请求参数结构体
|
7386
7442
|
class DescribeZoneSettingRequest < TencentCloud::Common::AbstractModel
|
7387
7443
|
# @param ZoneId: 站点ID。
|
@@ -8253,6 +8309,47 @@ module TencentCloud
|
|
8253
8309
|
end
|
8254
8310
|
end
|
8255
8311
|
|
8312
|
+
# ExportZoneConfig请求参数结构体
|
8313
|
+
class ExportZoneConfigRequest < TencentCloud::Common::AbstractModel
|
8314
|
+
# @param ZoneId: 站点 ID。
|
8315
|
+
# @type ZoneId: String
|
8316
|
+
# @param Types: 导出配置项的类型列表,不填表示导出所有类型的配置,当前支持的取值有:<li>L7AccelerationConfig:表示导出七层加速配置,对应控制台「站点加速-全局加速配置」和「站点加速-规则引擎」。</li>
|
8317
|
+
# 需注意:后续支持导出的类型会随着迭代增加,导出所有类型时需要注意导出文件大小,建议使用时指定需要导出的配置类型,以便控制请求响应包负载大小。
|
8318
|
+
# @type Types: Array
|
8319
|
+
|
8320
|
+
attr_accessor :ZoneId, :Types
|
8321
|
+
|
8322
|
+
def initialize(zoneid=nil, types=nil)
|
8323
|
+
@ZoneId = zoneid
|
8324
|
+
@Types = types
|
8325
|
+
end
|
8326
|
+
|
8327
|
+
def deserialize(params)
|
8328
|
+
@ZoneId = params['ZoneId']
|
8329
|
+
@Types = params['Types']
|
8330
|
+
end
|
8331
|
+
end
|
8332
|
+
|
8333
|
+
# ExportZoneConfig返回参数结构体
|
8334
|
+
class ExportZoneConfigResponse < TencentCloud::Common::AbstractModel
|
8335
|
+
# @param Content: 导出的配置的具体内容。以 JSON 格式返回,按照 UTF-8 方式进行编码。配置内容可参考下方示例。
|
8336
|
+
# @type Content: String
|
8337
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8338
|
+
# @type RequestId: String
|
8339
|
+
|
8340
|
+
attr_accessor :Content, :RequestId
|
8341
|
+
|
8342
|
+
def initialize(content=nil, requestid=nil)
|
8343
|
+
@Content = content
|
8344
|
+
@RequestId = requestid
|
8345
|
+
end
|
8346
|
+
|
8347
|
+
def deserialize(params)
|
8348
|
+
@Content = params['Content']
|
8349
|
+
@RequestId = params['RequestId']
|
8350
|
+
end
|
8351
|
+
end
|
8352
|
+
|
8256
8353
|
# 失败原因
|
8257
8354
|
class FailReason < TencentCloud::Common::AbstractModel
|
8258
8355
|
# @param Reason: 失败原因。
|
@@ -9025,6 +9122,46 @@ module TencentCloud
|
|
9025
9122
|
end
|
9026
9123
|
end
|
9027
9124
|
|
9125
|
+
# ImportZoneConfig请求参数结构体
|
9126
|
+
class ImportZoneConfigRequest < TencentCloud::Common::AbstractModel
|
9127
|
+
# @param ZoneId: 站点 ID。
|
9128
|
+
# @type ZoneId: String
|
9129
|
+
# @param Content: 待导入的配置内容。要求采用 JSON 格式,按照 UTF-8 方式进行编码。配置内容可通过站点配置导出接口(ExportZoneConfig)获取。您可以单独导入「站点加速-全局加速配置」或「站点加速-规则引擎」,传入对应的字段即可,详情可以参考下方示例。
|
9130
|
+
# @type Content: String
|
9131
|
+
|
9132
|
+
attr_accessor :ZoneId, :Content
|
9133
|
+
|
9134
|
+
def initialize(zoneid=nil, content=nil)
|
9135
|
+
@ZoneId = zoneid
|
9136
|
+
@Content = content
|
9137
|
+
end
|
9138
|
+
|
9139
|
+
def deserialize(params)
|
9140
|
+
@ZoneId = params['ZoneId']
|
9141
|
+
@Content = params['Content']
|
9142
|
+
end
|
9143
|
+
end
|
9144
|
+
|
9145
|
+
# ImportZoneConfig返回参数结构体
|
9146
|
+
class ImportZoneConfigResponse < TencentCloud::Common::AbstractModel
|
9147
|
+
# @param TaskId: 表示该次导入配置的任务 Id,通过查询站点配置导入结果接口(DescribeZoneConfigImportResult)获取本次导入任务执行的结果。注意:导入任务 Id 仅支持查询最近 7 天的导入任务。
|
9148
|
+
# @type TaskId: String
|
9149
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9150
|
+
# @type RequestId: String
|
9151
|
+
|
9152
|
+
attr_accessor :TaskId, :RequestId
|
9153
|
+
|
9154
|
+
def initialize(taskid=nil, requestid=nil)
|
9155
|
+
@TaskId = taskid
|
9156
|
+
@RequestId = requestid
|
9157
|
+
end
|
9158
|
+
|
9159
|
+
def deserialize(params)
|
9160
|
+
@TaskId = params['TaskId']
|
9161
|
+
@RequestId = params['RequestId']
|
9162
|
+
end
|
9163
|
+
end
|
9164
|
+
|
9028
9165
|
# IncreasePlanQuota请求参数结构体
|
9029
9166
|
class IncreasePlanQuotaRequest < TencentCloud::Common::AbstractModel
|
9030
9167
|
# @param PlanId: 套餐 ID, 形如 edgeone-2unuvzjmmn2q。
|
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.
|
4
|
+
version: 3.0.952
|
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-
|
11
|
+
date: 2024-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|