Skip to content
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

Merged
merged 3 commits into from
Mar 21, 2019
Merged

Conversation

jhstianwei
Copy link
Collaborator

add description to trigger

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description 这个参数最好放在最后面, 为了向下兼容, 并且让默认参数 = ""

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

@coveralls
Copy link

coveralls commented Mar 20, 2019

Coverage Status

Coverage increased (+0.04%) to 92.844% when pulling af50160 on add-description-to-trigger into d076bbd on master.

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,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个同理啊, 放在最后

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

@rsonghuster rsonghuster merged commit 956cb86 into master Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants