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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e53606e1352e7f2f453bb529e13e3b1fb156ab3
4
- data.tar.gz: 0ab317d16c85cb7be326e56319f352ad9af4d200
3
+ metadata.gz: d7fcc4cd2a55b93ebd59e312fcb7b0fe06d498bc
4
+ data.tar.gz: 68c67457ef4d64fcd89da4dedf3ee648d0951c00
5
5
  SHA512:
6
- metadata.gz: b5bfc14cbbdac6defb1644c1418008c6b438cbade00e0fd5ae58dbc1ec17a901329c2a605559622f3726f3238d62b739cdd12e4abe6ab62134808c5d4f531136
7
- data.tar.gz: 632c5914267ac6f96703ff60ff4543a296858c88589753efd34fb66afb72c0b7d2a05f1164882a06e5536fec9d82f09f1c2dc79e4b186f460fa5a55672345c3c
6
+ metadata.gz: 9c2946e1603386ec247abb7be4c54a4633787df66fefa733840db4e2aa1b1a82aa6ef08286f0f0a3ef2914bf2f7e36c50f2034c22296e562558fbcc70aee1fcc
7
+ data.tar.gz: faf345a7137d87842f874efbb3b27a5716170794d273c2935e85a228f7d08b5961ec14f301fdc495932a1cf3a044b4ecee3ccddad73c9f5df732bfdf7cf2249e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.686
1
+ 3.0.688
@@ -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。
@@ -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.686
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-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