tencentcloud-sdk-teo 3.0.686 → 3.0.687
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 -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: d36e2b520b6db265d8db423ff124dfcb1ab9e818
|
4
|
+
data.tar.gz: 8e24bf62dbdeac79f63efe5b08568ef5d6b5847b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4ef87e5480bfa30773eb9034f6bcc6aa167350a54d49f184a995a2b4667414ef2f7d457f018f19e431211b9fd571a0628a79a0d7ba75d51c2aa3095a0b716dc
|
7
|
+
data.tar.gz: b690b2e977a339363d28ddd9df55028234be8558572073e0713a79677a1738fede6d4e13f0a5efece7524d99816c3d1ca315420ee76dc273fc330f6cfc69cc2d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.687
|
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。
|
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.687
|
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
|