lib/v20180419/client.rb in tencentcloud-sdk-as-1.0.302 vs lib/v20180419/client.rb in tencentcloud-sdk-as-1.0.303
- old
+ new
@@ -986,9 +986,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 此接口用于修改生命周期挂钩。
+
+ # @param request: Request instance for ModifyLifecycleHook.
+ # @type request: :class:`Tencentcloud::as::V20180419::ModifyLifecycleHookRequest`
+ # @rtype: :class:`Tencentcloud::as::V20180419::ModifyLifecycleHookResponse`
+ def ModifyLifecycleHook(request)
+ body = send_request('ModifyLifecycleHook', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = ModifyLifecycleHookResponse.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
+
# 本接口(ModifyLoadBalancerTargetAttributes)用于修改伸缩组内负载均衡器的目标规则属性。
# @param request: Request instance for ModifyLoadBalancerTargetAttributes.
# @type request: :class:`Tencentcloud::as::V20180419::ModifyLoadBalancerTargetAttributesRequest`
# @rtype: :class:`Tencentcloud::as::V20180419::ModifyLoadBalancerTargetAttributesResponse`
\ No newline at end of file