-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add description to trigger #52
Conversation
|
fc2/client.py
Outdated
@@ -739,13 +739,14 @@ def invoke_function(self, serviceName, functionName, payload=None, headers={}, q | |||
|
|||
return FcHttpResponse(r.headers, r.content) | |||
|
|||
def create_trigger(self, serviceName, functionName, triggerName, triggerType, triggerConfig, sourceArn, | |||
def create_trigger(self, serviceName, functionName, triggerName, description, triggerType, triggerConfig, sourceArn, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description 这个参数最好放在最后面, 为了向下兼容, 并且让默认参数 = ""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
fc2/client.py
Outdated
@@ -794,13 +795,14 @@ def delete_trigger(self, serviceName, functionName, triggerName, headers={}): | |||
headers = self._build_common_headers(method, path, headers) | |||
self._do_request(method, path, headers) | |||
|
|||
def update_trigger(self, serviceName, functionName, triggerName, triggerConfig=None, invocationRole=None, | |||
def update_trigger(self, serviceName, functionName, triggerName, description=None, triggerConfig=None, invocationRole=None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个同理啊, 放在最后
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
add description to trigger