tencentcloud-sdk-scf 3.0.931 → 3.0.933
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180416/client.rb +120 -0
- data/lib/v20180416/models.rb +448 -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: 42c70528ee33288f142f75d45f1a2c8611234971
|
4
|
+
data.tar.gz: d4da2c1f1365f5906578a8951712022137cae1a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c81818b9c9dc7d82a3b5a393556b5fcc6af422b633681a941b549352a7a703ad443656072f88bb93a3b7a3643ecc31ffaeea51144eb7b01892d96149bea08ec9
|
7
|
+
data.tar.gz: 614d1706c12ecf67f90630a425a7d621abf792e650db062c3c1ebffd3186ff0aa340e8550c071bdb82213a37b977616582dfee5f3af8b6c4f4b25aabdc5fde33
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.933
|
data/lib/v20180416/client.rb
CHANGED
@@ -84,6 +84,30 @@ module TencentCloud
|
|
84
84
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
85
85
|
end
|
86
86
|
|
87
|
+
# 创建自定义域名
|
88
|
+
|
89
|
+
# @param request: Request instance for CreateCustomDomain.
|
90
|
+
# @type request: :class:`Tencentcloud::scf::V20180416::CreateCustomDomainRequest`
|
91
|
+
# @rtype: :class:`Tencentcloud::scf::V20180416::CreateCustomDomainResponse`
|
92
|
+
def CreateCustomDomain(request)
|
93
|
+
body = send_request('CreateCustomDomain', request.serialize)
|
94
|
+
response = JSON.parse(body)
|
95
|
+
if response['Response'].key?('Error') == false
|
96
|
+
model = CreateCustomDomainResponse.new
|
97
|
+
model.deserialize(response['Response'])
|
98
|
+
model
|
99
|
+
else
|
100
|
+
code = response['Response']['Error']['Code']
|
101
|
+
message = response['Response']['Error']['Message']
|
102
|
+
reqid = response['Response']['RequestId']
|
103
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
104
|
+
end
|
105
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
106
|
+
raise e
|
107
|
+
rescue StandardError => e
|
108
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
109
|
+
end
|
110
|
+
|
87
111
|
# 该接口根据传入参数创建新的函数。
|
88
112
|
|
89
113
|
# @param request: Request instance for CreateFunction.
|
@@ -180,6 +204,30 @@ module TencentCloud
|
|
180
204
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
181
205
|
end
|
182
206
|
|
207
|
+
# 删除自定义域名
|
208
|
+
|
209
|
+
# @param request: Request instance for DeleteCustomDomain.
|
210
|
+
# @type request: :class:`Tencentcloud::scf::V20180416::DeleteCustomDomainRequest`
|
211
|
+
# @rtype: :class:`Tencentcloud::scf::V20180416::DeleteCustomDomainResponse`
|
212
|
+
def DeleteCustomDomain(request)
|
213
|
+
body = send_request('DeleteCustomDomain', request.serialize)
|
214
|
+
response = JSON.parse(body)
|
215
|
+
if response['Response'].key?('Error') == false
|
216
|
+
model = DeleteCustomDomainResponse.new
|
217
|
+
model.deserialize(response['Response'])
|
218
|
+
model
|
219
|
+
else
|
220
|
+
code = response['Response']['Error']['Code']
|
221
|
+
message = response['Response']['Error']['Message']
|
222
|
+
reqid = response['Response']['RequestId']
|
223
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
224
|
+
end
|
225
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
226
|
+
raise e
|
227
|
+
rescue StandardError => e
|
228
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
229
|
+
end
|
230
|
+
|
183
231
|
# 该接口根据传入参数删除函数。
|
184
232
|
|
185
233
|
# @param request: Request instance for DeleteFunction.
|
@@ -396,6 +444,30 @@ module TencentCloud
|
|
396
444
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
397
445
|
end
|
398
446
|
|
447
|
+
# 查看云函数自定义域名详情
|
448
|
+
|
449
|
+
# @param request: Request instance for GetCustomDomain.
|
450
|
+
# @type request: :class:`Tencentcloud::scf::V20180416::GetCustomDomainRequest`
|
451
|
+
# @rtype: :class:`Tencentcloud::scf::V20180416::GetCustomDomainResponse`
|
452
|
+
def GetCustomDomain(request)
|
453
|
+
body = send_request('GetCustomDomain', request.serialize)
|
454
|
+
response = JSON.parse(body)
|
455
|
+
if response['Response'].key?('Error') == false
|
456
|
+
model = GetCustomDomainResponse.new
|
457
|
+
model.deserialize(response['Response'])
|
458
|
+
model
|
459
|
+
else
|
460
|
+
code = response['Response']['Error']['Code']
|
461
|
+
message = response['Response']['Error']['Message']
|
462
|
+
reqid = response['Response']['RequestId']
|
463
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
464
|
+
end
|
465
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
466
|
+
raise e
|
467
|
+
rescue StandardError => e
|
468
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
469
|
+
end
|
470
|
+
|
399
471
|
# 该接口获取某个函数的详细信息,包括名称、代码、处理方法、关联触发器和超时时间等字段。
|
400
472
|
|
401
473
|
# @param request: Request instance for GetFunction.
|
@@ -684,6 +756,30 @@ module TencentCloud
|
|
684
756
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
685
757
|
end
|
686
758
|
|
759
|
+
# 遍历域名列表信息
|
760
|
+
|
761
|
+
# @param request: Request instance for ListCustomDomains.
|
762
|
+
# @type request: :class:`Tencentcloud::scf::V20180416::ListCustomDomainsRequest`
|
763
|
+
# @rtype: :class:`Tencentcloud::scf::V20180416::ListCustomDomainsResponse`
|
764
|
+
def ListCustomDomains(request)
|
765
|
+
body = send_request('ListCustomDomains', request.serialize)
|
766
|
+
response = JSON.parse(body)
|
767
|
+
if response['Response'].key?('Error') == false
|
768
|
+
model = ListCustomDomainsResponse.new
|
769
|
+
model.deserialize(response['Response'])
|
770
|
+
model
|
771
|
+
else
|
772
|
+
code = response['Response']['Error']['Code']
|
773
|
+
message = response['Response']['Error']['Message']
|
774
|
+
reqid = response['Response']['RequestId']
|
775
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
776
|
+
end
|
777
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
778
|
+
raise e
|
779
|
+
rescue StandardError => e
|
780
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
781
|
+
end
|
782
|
+
|
687
783
|
# 该接口根据传入的查询参数返回相关函数信息。
|
688
784
|
|
689
785
|
# @param request: Request instance for ListFunctions.
|
@@ -996,6 +1092,30 @@ module TencentCloud
|
|
996
1092
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
997
1093
|
end
|
998
1094
|
|
1095
|
+
# 更新自定义域名相关配置
|
1096
|
+
|
1097
|
+
# @param request: Request instance for UpdateCustomDomain.
|
1098
|
+
# @type request: :class:`Tencentcloud::scf::V20180416::UpdateCustomDomainRequest`
|
1099
|
+
# @rtype: :class:`Tencentcloud::scf::V20180416::UpdateCustomDomainResponse`
|
1100
|
+
def UpdateCustomDomain(request)
|
1101
|
+
body = send_request('UpdateCustomDomain', request.serialize)
|
1102
|
+
response = JSON.parse(body)
|
1103
|
+
if response['Response'].key?('Error') == false
|
1104
|
+
model = UpdateCustomDomainResponse.new
|
1105
|
+
model.deserialize(response['Response'])
|
1106
|
+
model
|
1107
|
+
else
|
1108
|
+
code = response['Response']['Error']['Code']
|
1109
|
+
message = response['Response']['Error']['Message']
|
1110
|
+
reqid = response['Response']['RequestId']
|
1111
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1112
|
+
end
|
1113
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1114
|
+
raise e
|
1115
|
+
rescue StandardError => e
|
1116
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1117
|
+
end
|
1118
|
+
|
999
1119
|
# 该接口根据传入参数更新函数代码。
|
1000
1120
|
|
1001
1121
|
# @param request: Request instance for UpdateFunctionCode.
|
data/lib/v20180416/models.rb
CHANGED
@@ -167,6 +167,23 @@ module TencentCloud
|
|
167
167
|
end
|
168
168
|
end
|
169
169
|
|
170
|
+
# 证书配置
|
171
|
+
class CertConf < TencentCloud::Common::AbstractModel
|
172
|
+
# @param CertificateId: ssl证书ID
|
173
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
174
|
+
# @type CertificateId: String
|
175
|
+
|
176
|
+
attr_accessor :CertificateId
|
177
|
+
|
178
|
+
def initialize(certificateid=nil)
|
179
|
+
@CertificateId = certificateid
|
180
|
+
end
|
181
|
+
|
182
|
+
def deserialize(params)
|
183
|
+
@CertificateId = params['CertificateId']
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
170
187
|
# 文件系统(cfs)配置描述
|
171
188
|
class CfsConfig < TencentCloud::Common::AbstractModel
|
172
189
|
# @param CfsInsList: 文件系统信息列表
|
@@ -439,6 +456,67 @@ module TencentCloud
|
|
439
456
|
end
|
440
457
|
end
|
441
458
|
|
459
|
+
# CreateCustomDomain请求参数结构体
|
460
|
+
class CreateCustomDomainRequest < TencentCloud::Common::AbstractModel
|
461
|
+
# @param Domain: 域名,不支持泛域名
|
462
|
+
# @type Domain: String
|
463
|
+
# @param Protocol: 协议,取值范围:HTTP, HTTPS, HTTP&HTTPS
|
464
|
+
# @type Protocol: String
|
465
|
+
# @param EndpointsConfig: 路由配置
|
466
|
+
# @type EndpointsConfig: Array
|
467
|
+
# @param CertConfig: 证书配置信息,HTTPS协议必穿
|
468
|
+
# @type CertConfig: :class:`Tencentcloud::Scf.v20180416.models.CertConf`
|
469
|
+
# @param WafConfig: web 应用防火墙配置
|
470
|
+
# @type WafConfig: :class:`Tencentcloud::Scf.v20180416.models.WafConf`
|
471
|
+
|
472
|
+
attr_accessor :Domain, :Protocol, :EndpointsConfig, :CertConfig, :WafConfig
|
473
|
+
|
474
|
+
def initialize(domain=nil, protocol=nil, endpointsconfig=nil, certconfig=nil, wafconfig=nil)
|
475
|
+
@Domain = domain
|
476
|
+
@Protocol = protocol
|
477
|
+
@EndpointsConfig = endpointsconfig
|
478
|
+
@CertConfig = certconfig
|
479
|
+
@WafConfig = wafconfig
|
480
|
+
end
|
481
|
+
|
482
|
+
def deserialize(params)
|
483
|
+
@Domain = params['Domain']
|
484
|
+
@Protocol = params['Protocol']
|
485
|
+
unless params['EndpointsConfig'].nil?
|
486
|
+
@EndpointsConfig = []
|
487
|
+
params['EndpointsConfig'].each do |i|
|
488
|
+
endpointsconf_tmp = EndpointsConf.new
|
489
|
+
endpointsconf_tmp.deserialize(i)
|
490
|
+
@EndpointsConfig << endpointsconf_tmp
|
491
|
+
end
|
492
|
+
end
|
493
|
+
unless params['CertConfig'].nil?
|
494
|
+
@CertConfig = CertConf.new
|
495
|
+
@CertConfig.deserialize(params['CertConfig'])
|
496
|
+
end
|
497
|
+
unless params['WafConfig'].nil?
|
498
|
+
@WafConfig = WafConf.new
|
499
|
+
@WafConfig.deserialize(params['WafConfig'])
|
500
|
+
end
|
501
|
+
end
|
502
|
+
end
|
503
|
+
|
504
|
+
# CreateCustomDomain返回参数结构体
|
505
|
+
class CreateCustomDomainResponse < TencentCloud::Common::AbstractModel
|
506
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
507
|
+
# @type RequestId: String
|
508
|
+
|
509
|
+
attr_accessor :RequestId
|
510
|
+
|
511
|
+
def initialize(requestid=nil)
|
512
|
+
@RequestId = requestid
|
513
|
+
end
|
514
|
+
|
515
|
+
def deserialize(params)
|
516
|
+
@RequestId = params['RequestId']
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
442
520
|
# CreateFunction请求参数结构体
|
443
521
|
class CreateFunctionRequest < TencentCloud::Common::AbstractModel
|
444
522
|
# @param FunctionName: 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60
|
@@ -810,6 +888,38 @@ module TencentCloud
|
|
810
888
|
end
|
811
889
|
end
|
812
890
|
|
891
|
+
# DeleteCustomDomain请求参数结构体
|
892
|
+
class DeleteCustomDomainRequest < TencentCloud::Common::AbstractModel
|
893
|
+
# @param Domain: 域名
|
894
|
+
# @type Domain: String
|
895
|
+
|
896
|
+
attr_accessor :Domain
|
897
|
+
|
898
|
+
def initialize(domain=nil)
|
899
|
+
@Domain = domain
|
900
|
+
end
|
901
|
+
|
902
|
+
def deserialize(params)
|
903
|
+
@Domain = params['Domain']
|
904
|
+
end
|
905
|
+
end
|
906
|
+
|
907
|
+
# DeleteCustomDomain返回参数结构体
|
908
|
+
class DeleteCustomDomainResponse < TencentCloud::Common::AbstractModel
|
909
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
910
|
+
# @type RequestId: String
|
911
|
+
|
912
|
+
attr_accessor :RequestId
|
913
|
+
|
914
|
+
def initialize(requestid=nil)
|
915
|
+
@RequestId = requestid
|
916
|
+
end
|
917
|
+
|
918
|
+
def deserialize(params)
|
919
|
+
@RequestId = params['RequestId']
|
920
|
+
end
|
921
|
+
end
|
922
|
+
|
813
923
|
# DeleteFunction请求参数结构体
|
814
924
|
class DeleteFunctionRequest < TencentCloud::Common::AbstractModel
|
815
925
|
# @param FunctionName: 要删除的函数名称
|
@@ -1046,6 +1156,54 @@ module TencentCloud
|
|
1046
1156
|
end
|
1047
1157
|
end
|
1048
1158
|
|
1159
|
+
# 云函数自定义域名详情
|
1160
|
+
class DomainInfo < TencentCloud::Common::AbstractModel
|
1161
|
+
# @param Domain: 域名,不支持泛域名
|
1162
|
+
# @type Domain: String
|
1163
|
+
# @param Protocol: 协议,取值范围:HTTP, HTTPS, HTTP&HTTPS
|
1164
|
+
# @type Protocol: String
|
1165
|
+
# @param EndpointsConfig: 路由配置信息
|
1166
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1167
|
+
# @type EndpointsConfig: Array
|
1168
|
+
# @param CertConfig: 证书配置信息,HTTPS协议必传路由配置
|
1169
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1170
|
+
# @type CertConfig: :class:`Tencentcloud::Scf.v20180416.models.CertConf`
|
1171
|
+
# @param WafConfig: web 应用防火墙配置
|
1172
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1173
|
+
# @type WafConfig: :class:`Tencentcloud::Scf.v20180416.models.WafConf`
|
1174
|
+
|
1175
|
+
attr_accessor :Domain, :Protocol, :EndpointsConfig, :CertConfig, :WafConfig
|
1176
|
+
|
1177
|
+
def initialize(domain=nil, protocol=nil, endpointsconfig=nil, certconfig=nil, wafconfig=nil)
|
1178
|
+
@Domain = domain
|
1179
|
+
@Protocol = protocol
|
1180
|
+
@EndpointsConfig = endpointsconfig
|
1181
|
+
@CertConfig = certconfig
|
1182
|
+
@WafConfig = wafconfig
|
1183
|
+
end
|
1184
|
+
|
1185
|
+
def deserialize(params)
|
1186
|
+
@Domain = params['Domain']
|
1187
|
+
@Protocol = params['Protocol']
|
1188
|
+
unless params['EndpointsConfig'].nil?
|
1189
|
+
@EndpointsConfig = []
|
1190
|
+
params['EndpointsConfig'].each do |i|
|
1191
|
+
endpointsconf_tmp = EndpointsConf.new
|
1192
|
+
endpointsconf_tmp.deserialize(i)
|
1193
|
+
@EndpointsConfig << endpointsconf_tmp
|
1194
|
+
end
|
1195
|
+
end
|
1196
|
+
unless params['CertConfig'].nil?
|
1197
|
+
@CertConfig = CertConf.new
|
1198
|
+
@CertConfig.deserialize(params['CertConfig'])
|
1199
|
+
end
|
1200
|
+
unless params['WafConfig'].nil?
|
1201
|
+
@WafConfig = WafConf.new
|
1202
|
+
@WafConfig.deserialize(params['WafConfig'])
|
1203
|
+
end
|
1204
|
+
end
|
1205
|
+
end
|
1206
|
+
|
1049
1207
|
# 公网访问固定ip配置
|
1050
1208
|
class EipConfigIn < TencentCloud::Common::AbstractModel
|
1051
1209
|
# @param EipStatus: Eip开启状态,取值['ENABLE','DISABLE']
|
@@ -1103,6 +1261,50 @@ module TencentCloud
|
|
1103
1261
|
end
|
1104
1262
|
end
|
1105
1263
|
|
1264
|
+
# 后端路由配置信息
|
1265
|
+
class EndpointsConf < TencentCloud::Common::AbstractModel
|
1266
|
+
# @param Namespace: 函数命名空间
|
1267
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1268
|
+
# @type Namespace: String
|
1269
|
+
# @param FunctionName: 函数名
|
1270
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1271
|
+
# @type FunctionName: String
|
1272
|
+
# @param Qualifier: 函数别名或版本
|
1273
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1274
|
+
# @type Qualifier: String
|
1275
|
+
# @param PathMatch: 路径,取值规范:/,/*,/xxx,/xxx/a,/xxx/*"
|
1276
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1277
|
+
# @type PathMatch: String
|
1278
|
+
# @param PathRewrite: 路径重写策略
|
1279
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1280
|
+
# @type PathRewrite: Array
|
1281
|
+
|
1282
|
+
attr_accessor :Namespace, :FunctionName, :Qualifier, :PathMatch, :PathRewrite
|
1283
|
+
|
1284
|
+
def initialize(namespace=nil, functionname=nil, qualifier=nil, pathmatch=nil, pathrewrite=nil)
|
1285
|
+
@Namespace = namespace
|
1286
|
+
@FunctionName = functionname
|
1287
|
+
@Qualifier = qualifier
|
1288
|
+
@PathMatch = pathmatch
|
1289
|
+
@PathRewrite = pathrewrite
|
1290
|
+
end
|
1291
|
+
|
1292
|
+
def deserialize(params)
|
1293
|
+
@Namespace = params['Namespace']
|
1294
|
+
@FunctionName = params['FunctionName']
|
1295
|
+
@Qualifier = params['Qualifier']
|
1296
|
+
@PathMatch = params['PathMatch']
|
1297
|
+
unless params['PathRewrite'].nil?
|
1298
|
+
@PathRewrite = []
|
1299
|
+
params['PathRewrite'].each do |i|
|
1300
|
+
pathrewriterule_tmp = PathRewriteRule.new
|
1301
|
+
pathrewriterule_tmp.deserialize(i)
|
1302
|
+
@PathRewrite << pathrewriterule_tmp
|
1303
|
+
end
|
1304
|
+
end
|
1305
|
+
end
|
1306
|
+
end
|
1307
|
+
|
1106
1308
|
# 函数的环境变量参数
|
1107
1309
|
class Environment < TencentCloud::Common::AbstractModel
|
1108
1310
|
# @param Variables: 环境变量数组
|
@@ -1494,6 +1696,71 @@ module TencentCloud
|
|
1494
1696
|
end
|
1495
1697
|
end
|
1496
1698
|
|
1699
|
+
# GetCustomDomain请求参数结构体
|
1700
|
+
class GetCustomDomainRequest < TencentCloud::Common::AbstractModel
|
1701
|
+
# @param Domain: 域名
|
1702
|
+
# @type Domain: String
|
1703
|
+
|
1704
|
+
attr_accessor :Domain
|
1705
|
+
|
1706
|
+
def initialize(domain=nil)
|
1707
|
+
@Domain = domain
|
1708
|
+
end
|
1709
|
+
|
1710
|
+
def deserialize(params)
|
1711
|
+
@Domain = params['Domain']
|
1712
|
+
end
|
1713
|
+
end
|
1714
|
+
|
1715
|
+
# GetCustomDomain返回参数结构体
|
1716
|
+
class GetCustomDomainResponse < TencentCloud::Common::AbstractModel
|
1717
|
+
# @param Domain: 域名
|
1718
|
+
# @type Domain: String
|
1719
|
+
# @param Protocol: 协议
|
1720
|
+
# @type Protocol: String
|
1721
|
+
# @param EndpointsConfig: 路由配置
|
1722
|
+
# @type EndpointsConfig: Array
|
1723
|
+
# @param CertConfig: 证书配置信息
|
1724
|
+
# @type CertConfig: :class:`Tencentcloud::Scf.v20180416.models.CertConf`
|
1725
|
+
# @param WafConfig: web 应用防火墙配置
|
1726
|
+
# @type WafConfig: :class:`Tencentcloud::Scf.v20180416.models.WafConf`
|
1727
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1728
|
+
# @type RequestId: String
|
1729
|
+
|
1730
|
+
attr_accessor :Domain, :Protocol, :EndpointsConfig, :CertConfig, :WafConfig, :RequestId
|
1731
|
+
|
1732
|
+
def initialize(domain=nil, protocol=nil, endpointsconfig=nil, certconfig=nil, wafconfig=nil, requestid=nil)
|
1733
|
+
@Domain = domain
|
1734
|
+
@Protocol = protocol
|
1735
|
+
@EndpointsConfig = endpointsconfig
|
1736
|
+
@CertConfig = certconfig
|
1737
|
+
@WafConfig = wafconfig
|
1738
|
+
@RequestId = requestid
|
1739
|
+
end
|
1740
|
+
|
1741
|
+
def deserialize(params)
|
1742
|
+
@Domain = params['Domain']
|
1743
|
+
@Protocol = params['Protocol']
|
1744
|
+
unless params['EndpointsConfig'].nil?
|
1745
|
+
@EndpointsConfig = []
|
1746
|
+
params['EndpointsConfig'].each do |i|
|
1747
|
+
endpointsconf_tmp = EndpointsConf.new
|
1748
|
+
endpointsconf_tmp.deserialize(i)
|
1749
|
+
@EndpointsConfig << endpointsconf_tmp
|
1750
|
+
end
|
1751
|
+
end
|
1752
|
+
unless params['CertConfig'].nil?
|
1753
|
+
@CertConfig = CertConf.new
|
1754
|
+
@CertConfig.deserialize(params['CertConfig'])
|
1755
|
+
end
|
1756
|
+
unless params['WafConfig'].nil?
|
1757
|
+
@WafConfig = WafConf.new
|
1758
|
+
@WafConfig.deserialize(params['WafConfig'])
|
1759
|
+
end
|
1760
|
+
@RequestId = params['RequestId']
|
1761
|
+
end
|
1762
|
+
end
|
1763
|
+
|
1497
1764
|
# GetFunctionAddress请求参数结构体
|
1498
1765
|
class GetFunctionAddressRequest < TencentCloud::Common::AbstractModel
|
1499
1766
|
# @param FunctionName: 函数的名称
|
@@ -2799,6 +3066,77 @@ module TencentCloud
|
|
2799
3066
|
end
|
2800
3067
|
end
|
2801
3068
|
|
3069
|
+
# ListCustomDomains请求参数结构体
|
3070
|
+
class ListCustomDomainsRequest < TencentCloud::Common::AbstractModel
|
3071
|
+
# @param Offset: 偏移量,默认0
|
3072
|
+
# @type Offset: Integer
|
3073
|
+
# @param Limit: 容量,默认20
|
3074
|
+
# @type Limit: Integer
|
3075
|
+
# @param OrderBy: 取值范围:AddTime,ModTime, 默认AddTime
|
3076
|
+
# @type OrderBy: String
|
3077
|
+
# @param Order: 取值范围:DESC, ASC 默认DESC
|
3078
|
+
# @type Order: String
|
3079
|
+
# @param Filters: 过滤条件
|
3080
|
+
# @type Filters: Array
|
3081
|
+
|
3082
|
+
attr_accessor :Offset, :Limit, :OrderBy, :Order, :Filters
|
3083
|
+
|
3084
|
+
def initialize(offset=nil, limit=nil, orderby=nil, order=nil, filters=nil)
|
3085
|
+
@Offset = offset
|
3086
|
+
@Limit = limit
|
3087
|
+
@OrderBy = orderby
|
3088
|
+
@Order = order
|
3089
|
+
@Filters = filters
|
3090
|
+
end
|
3091
|
+
|
3092
|
+
def deserialize(params)
|
3093
|
+
@Offset = params['Offset']
|
3094
|
+
@Limit = params['Limit']
|
3095
|
+
@OrderBy = params['OrderBy']
|
3096
|
+
@Order = params['Order']
|
3097
|
+
unless params['Filters'].nil?
|
3098
|
+
@Filters = []
|
3099
|
+
params['Filters'].each do |i|
|
3100
|
+
filter_tmp = Filter.new
|
3101
|
+
filter_tmp.deserialize(i)
|
3102
|
+
@Filters << filter_tmp
|
3103
|
+
end
|
3104
|
+
end
|
3105
|
+
end
|
3106
|
+
end
|
3107
|
+
|
3108
|
+
# ListCustomDomains返回参数结构体
|
3109
|
+
class ListCustomDomainsResponse < TencentCloud::Common::AbstractModel
|
3110
|
+
# @param Total: 总数
|
3111
|
+
# @type Total: Integer
|
3112
|
+
# @param Domains: 域名列表信息
|
3113
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3114
|
+
# @type Domains: Array
|
3115
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3116
|
+
# @type RequestId: String
|
3117
|
+
|
3118
|
+
attr_accessor :Total, :Domains, :RequestId
|
3119
|
+
|
3120
|
+
def initialize(total=nil, domains=nil, requestid=nil)
|
3121
|
+
@Total = total
|
3122
|
+
@Domains = domains
|
3123
|
+
@RequestId = requestid
|
3124
|
+
end
|
3125
|
+
|
3126
|
+
def deserialize(params)
|
3127
|
+
@Total = params['Total']
|
3128
|
+
unless params['Domains'].nil?
|
3129
|
+
@Domains = []
|
3130
|
+
params['Domains'].each do |i|
|
3131
|
+
domaininfo_tmp = DomainInfo.new
|
3132
|
+
domaininfo_tmp.deserialize(i)
|
3133
|
+
@Domains << domaininfo_tmp
|
3134
|
+
end
|
3135
|
+
end
|
3136
|
+
@RequestId = params['RequestId']
|
3137
|
+
end
|
3138
|
+
end
|
3139
|
+
|
2802
3140
|
# ListFunctions请求参数结构体
|
2803
3141
|
class ListFunctionsRequest < TencentCloud::Common::AbstractModel
|
2804
3142
|
# @param Order: 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
|
@@ -3476,6 +3814,33 @@ module TencentCloud
|
|
3476
3814
|
end
|
3477
3815
|
end
|
3478
3816
|
|
3817
|
+
# 路径路由重写规则
|
3818
|
+
class PathRewriteRule < TencentCloud::Common::AbstractModel
|
3819
|
+
# @param Path: 需要重路由的路径,取值规范:/,/*,/xxx,/xxx/a,/xxx/*
|
3820
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3821
|
+
# @type Path: String
|
3822
|
+
# @param Type: 匹配规,取值范围: WildcardRules 通配符匹配, ExactRules 精确匹配
|
3823
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3824
|
+
# @type Type: String
|
3825
|
+
# @param Rewrite: 替换值:比如/, /$
|
3826
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3827
|
+
# @type Rewrite: String
|
3828
|
+
|
3829
|
+
attr_accessor :Path, :Type, :Rewrite
|
3830
|
+
|
3831
|
+
def initialize(path=nil, type=nil, rewrite=nil)
|
3832
|
+
@Path = path
|
3833
|
+
@Type = type
|
3834
|
+
@Rewrite = rewrite
|
3835
|
+
end
|
3836
|
+
|
3837
|
+
def deserialize(params)
|
3838
|
+
@Path = params['Path']
|
3839
|
+
@Type = params['Type']
|
3840
|
+
@Rewrite = params['Rewrite']
|
3841
|
+
end
|
3842
|
+
end
|
3843
|
+
|
3479
3844
|
# HTTP函数支持其他访问协议的参数
|
3480
3845
|
class ProtocolParams < TencentCloud::Common::AbstractModel
|
3481
3846
|
# @param WSParams: WebSockets协议支持的参数
|
@@ -4388,6 +4753,67 @@ module TencentCloud
|
|
4388
4753
|
end
|
4389
4754
|
end
|
4390
4755
|
|
4756
|
+
# UpdateCustomDomain请求参数结构体
|
4757
|
+
class UpdateCustomDomainRequest < TencentCloud::Common::AbstractModel
|
4758
|
+
# @param Domain: 自定义域名
|
4759
|
+
# @type Domain: String
|
4760
|
+
# @param Protocol: 协议,取值范围:HTTP, HTTPS, HTTP&HTTPS
|
4761
|
+
# @type Protocol: String
|
4762
|
+
# @param CertConfig: 证书配置信息,HTTPS协议必穿
|
4763
|
+
# @type CertConfig: :class:`Tencentcloud::Scf.v20180416.models.CertConf`
|
4764
|
+
# @param WafConfig: web 应用防火墙配置
|
4765
|
+
# @type WafConfig: :class:`Tencentcloud::Scf.v20180416.models.WafConf`
|
4766
|
+
# @param EndpointsConfig: 路由配置
|
4767
|
+
# @type EndpointsConfig: Array
|
4768
|
+
|
4769
|
+
attr_accessor :Domain, :Protocol, :CertConfig, :WafConfig, :EndpointsConfig
|
4770
|
+
|
4771
|
+
def initialize(domain=nil, protocol=nil, certconfig=nil, wafconfig=nil, endpointsconfig=nil)
|
4772
|
+
@Domain = domain
|
4773
|
+
@Protocol = protocol
|
4774
|
+
@CertConfig = certconfig
|
4775
|
+
@WafConfig = wafconfig
|
4776
|
+
@EndpointsConfig = endpointsconfig
|
4777
|
+
end
|
4778
|
+
|
4779
|
+
def deserialize(params)
|
4780
|
+
@Domain = params['Domain']
|
4781
|
+
@Protocol = params['Protocol']
|
4782
|
+
unless params['CertConfig'].nil?
|
4783
|
+
@CertConfig = CertConf.new
|
4784
|
+
@CertConfig.deserialize(params['CertConfig'])
|
4785
|
+
end
|
4786
|
+
unless params['WafConfig'].nil?
|
4787
|
+
@WafConfig = WafConf.new
|
4788
|
+
@WafConfig.deserialize(params['WafConfig'])
|
4789
|
+
end
|
4790
|
+
unless params['EndpointsConfig'].nil?
|
4791
|
+
@EndpointsConfig = []
|
4792
|
+
params['EndpointsConfig'].each do |i|
|
4793
|
+
endpointsconf_tmp = EndpointsConf.new
|
4794
|
+
endpointsconf_tmp.deserialize(i)
|
4795
|
+
@EndpointsConfig << endpointsconf_tmp
|
4796
|
+
end
|
4797
|
+
end
|
4798
|
+
end
|
4799
|
+
end
|
4800
|
+
|
4801
|
+
# UpdateCustomDomain返回参数结构体
|
4802
|
+
class UpdateCustomDomainResponse < TencentCloud::Common::AbstractModel
|
4803
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4804
|
+
# @type RequestId: String
|
4805
|
+
|
4806
|
+
attr_accessor :RequestId
|
4807
|
+
|
4808
|
+
def initialize(requestid=nil)
|
4809
|
+
@RequestId = requestid
|
4810
|
+
end
|
4811
|
+
|
4812
|
+
def deserialize(params)
|
4813
|
+
@RequestId = params['RequestId']
|
4814
|
+
end
|
4815
|
+
end
|
4816
|
+
|
4391
4817
|
# UpdateFunctionCode请求参数结构体
|
4392
4818
|
class UpdateFunctionCodeRequest < TencentCloud::Common::AbstractModel
|
4393
4819
|
# @param FunctionName: 要修改的函数名称
|
@@ -5017,6 +5443,28 @@ module TencentCloud
|
|
5017
5443
|
end
|
5018
5444
|
end
|
5019
5445
|
|
5446
|
+
# web应用防火墙配置信息
|
5447
|
+
class WafConf < TencentCloud::Common::AbstractModel
|
5448
|
+
# @param WafOpen: web应用防火墙是否打开, 取值范围:OPEN, CLOSE
|
5449
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5450
|
+
# @type WafOpen: String
|
5451
|
+
# @param WafInstanceId: web应用防火墙实例ID
|
5452
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5453
|
+
# @type WafInstanceId: String
|
5454
|
+
|
5455
|
+
attr_accessor :WafOpen, :WafInstanceId
|
5456
|
+
|
5457
|
+
def initialize(wafopen=nil, wafinstanceid=nil)
|
5458
|
+
@WafOpen = wafopen
|
5459
|
+
@WafInstanceId = wafinstanceid
|
5460
|
+
end
|
5461
|
+
|
5462
|
+
def deserialize(params)
|
5463
|
+
@WafOpen = params['WafOpen']
|
5464
|
+
@WafInstanceId = params['WafInstanceId']
|
5465
|
+
end
|
5466
|
+
end
|
5467
|
+
|
5020
5468
|
end
|
5021
5469
|
end
|
5022
5470
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-scf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.933
|
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-
|
11
|
+
date: 2024-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|