tencentcloud-sdk-teo 3.0.686 → 3.0.688
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/v20220901/client.rb +24 -0
- data/lib/v20220901/models.rb +53 -1
- 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: d7fcc4cd2a55b93ebd59e312fcb7b0fe06d498bc
|
4
|
+
data.tar.gz: 68c67457ef4d64fcd89da4dedf3ee648d0951c00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c2946e1603386ec247abb7be4c54a4633787df66fefa733840db4e2aa1b1a82aa6ef08286f0f0a3ef2914bf2f7e36c50f2034c22296e562558fbcc70aee1fcc
|
7
|
+
data.tar.gz: faf345a7137d87842f874efbb3b27a5716170794d273c2935e85a228f7d08b5961ec14f301fdc495932a1cf3a044b4ecee3ccddad73c9f5df732bfdf7cf2249e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.688
|
data/lib/v20220901/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 操作安全策略模板,支持将域名绑定或换绑到指定的策略模板,或者从指定的策略模板解绑。
|
33
|
+
|
34
|
+
# @param request: Request instance for BindSecurityTemplateToEntity.
|
35
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::BindSecurityTemplateToEntityRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::BindSecurityTemplateToEntityResponse`
|
37
|
+
def BindSecurityTemplateToEntity(request)
|
38
|
+
body = send_request('BindSecurityTemplateToEntity', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = BindSecurityTemplateToEntityResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# 将未绑定套餐的站点绑定到已有套餐
|
33
57
|
|
34
58
|
# @param request: Request instance for BindZoneToPlan.
|
data/lib/v20220901/models.rb
CHANGED
@@ -943,6 +943,59 @@ module TencentCloud
|
|
943
943
|
end
|
944
944
|
end
|
945
945
|
|
946
|
+
# BindSecurityTemplateToEntity请求参数结构体
|
947
|
+
class BindSecurityTemplateToEntityRequest < TencentCloud::Common::AbstractModel
|
948
|
+
# @param ZoneId: 需要绑定或解绑的策略模板所属站点 ID。
|
949
|
+
# @type ZoneId: String
|
950
|
+
# @param Entities: 绑定至策略模板(或者从策略模板解绑)的域名列表。
|
951
|
+
# @type Entities: Array
|
952
|
+
# @param Operate: 绑定或解绑操作选项,取值有:
|
953
|
+
# <li>bind:绑定域名至策略模板;</li>
|
954
|
+
# <li>unbind-keep-policy:将域名从策略模板解绑,解绑时保留当前策略;</li>
|
955
|
+
# <li>unbind-use-default:将域名从策略模板解绑,并使用默认空白策略。</li>注意:解绑操作当前仅支持单个域名解绑。即:当 Operate 参数取值为 unbind-keep-policy 或 unbind-use-default 时,Entities 参数列表仅支持填写一个域名。
|
956
|
+
# @type Operate: String
|
957
|
+
# @param TemplateId: 指定绑定或解绑的策略模板 ID 。
|
958
|
+
# @type TemplateId: String
|
959
|
+
# @param OverWrite: 如指定的域名已经绑定了策略模板,是否替换该模板。支持下列取值:
|
960
|
+
# <li>true: 替换域名当前绑定的模板;</li>
|
961
|
+
# <li>false:不替换域名当前绑定的模板。</li>注意:当选择不替换已有策略模板时,若指定域名已经绑定策略模板,API 将返回错误。
|
962
|
+
# @type OverWrite: Boolean
|
963
|
+
|
964
|
+
attr_accessor :ZoneId, :Entities, :Operate, :TemplateId, :OverWrite
|
965
|
+
|
966
|
+
def initialize(zoneid=nil, entities=nil, operate=nil, templateid=nil, overwrite=nil)
|
967
|
+
@ZoneId = zoneid
|
968
|
+
@Entities = entities
|
969
|
+
@Operate = operate
|
970
|
+
@TemplateId = templateid
|
971
|
+
@OverWrite = overwrite
|
972
|
+
end
|
973
|
+
|
974
|
+
def deserialize(params)
|
975
|
+
@ZoneId = params['ZoneId']
|
976
|
+
@Entities = params['Entities']
|
977
|
+
@Operate = params['Operate']
|
978
|
+
@TemplateId = params['TemplateId']
|
979
|
+
@OverWrite = params['OverWrite']
|
980
|
+
end
|
981
|
+
end
|
982
|
+
|
983
|
+
# BindSecurityTemplateToEntity返回参数结构体
|
984
|
+
class BindSecurityTemplateToEntityResponse < TencentCloud::Common::AbstractModel
|
985
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
986
|
+
# @type RequestId: String
|
987
|
+
|
988
|
+
attr_accessor :RequestId
|
989
|
+
|
990
|
+
def initialize(requestid=nil)
|
991
|
+
@RequestId = requestid
|
992
|
+
end
|
993
|
+
|
994
|
+
def deserialize(params)
|
995
|
+
@RequestId = params['RequestId']
|
996
|
+
end
|
997
|
+
end
|
998
|
+
|
946
999
|
# BindZoneToPlan请求参数结构体
|
947
1000
|
class BindZoneToPlanRequest < TencentCloud::Common::AbstractModel
|
948
1001
|
# @param ZoneId: 未绑定套餐的站点ID。
|
@@ -9925,7 +9978,6 @@ module TencentCloud
|
|
9925
9978
|
# <li> full:NS 接入;</li>
|
9926
9979
|
# <li> partial:CNAME 接入;</li>
|
9927
9980
|
# <li> noDomainAccess:无域名接入;</li>
|
9928
|
-
# <li> vodeo:vodeo默认站点。</li>
|
9929
9981
|
# @type Type: String
|
9930
9982
|
# @param Paused: 站点是否关闭。
|
9931
9983
|
# @type Paused: Boolean
|
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.688
|
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-10-
|
11
|
+
date: 2023-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|