lib/v20190924/client.rb in tencentcloud-sdk-tcr-3.0.483 vs lib/v20190924/client.rb in tencentcloud-sdk-tcr-3.0.484
- old
+ new
@@ -461,33 +461,9 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 创建实例公网访问白名单策略
- # @param request: Request instance for CreateSecurityPolicies.
- # @type request: :class:`Tencentcloud::tcr::V20190924::CreateSecurityPoliciesRequest`
- # @rtype: :class:`Tencentcloud::tcr::V20190924::CreateSecurityPoliciesResponse`
- def CreateSecurityPolicies(request)
- body = send_request('CreateSecurityPolicies', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = CreateSecurityPoliciesResponse.new
- model.deserialize(response['Response'])
- model
- else
- code = response['Response']['Error']['Code']
- message = response['Response']['Error']['Message']
- reqid = response['Response']['RequestId']
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
- end
- rescue TencentCloud::Common::TencentCloudSDKException => e
- raise e
- rescue StandardError => e
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
- end
-
- # 创建实例公网访问白名单策略
-
# @param request: Request instance for CreateSecurityPolicy.
# @type request: :class:`Tencentcloud::tcr::V20190924::CreateSecurityPolicyRequest`
# @rtype: :class:`Tencentcloud::tcr::V20190924::CreateSecurityPolicyResponse`
def CreateSecurityPolicy(request)
body = send_request('CreateSecurityPolicy', request.serialize)
\ No newline at end of file