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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e53606e1352e7f2f453bb529e13e3b1fb156ab3
4
- data.tar.gz: 0ab317d16c85cb7be326e56319f352ad9af4d200
3
+ metadata.gz: d36e2b520b6db265d8db423ff124dfcb1ab9e818
4
+ data.tar.gz: 8e24bf62dbdeac79f63efe5b08568ef5d6b5847b
5
5
  SHA512:
6
- metadata.gz: b5bfc14cbbdac6defb1644c1418008c6b438cbade00e0fd5ae58dbc1ec17a901329c2a605559622f3726f3238d62b739cdd12e4abe6ab62134808c5d4f531136
7
- data.tar.gz: 632c5914267ac6f96703ff60ff4543a296858c88589753efd34fb66afb72c0b7d2a05f1164882a06e5536fec9d82f09f1c2dc79e4b186f460fa5a55672345c3c
6
+ metadata.gz: b4ef87e5480bfa30773eb9034f6bcc6aa167350a54d49f184a995a2b4667414ef2f7d457f018f19e431211b9fd571a0628a79a0d7ba75d51c2aa3095a0b716dc
7
+ data.tar.gz: b690b2e977a339363d28ddd9df55028234be8558572073e0713a79677a1738fede6d4e13f0a5efece7524d99816c3d1ca315420ee76dc273fc330f6cfc69cc2d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.686
1
+ 3.0.687
@@ -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.
@@ -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.686
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-27 00:00:00.000000000 Z
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