openwhisk-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-openwhisk-client-js] jthomas commented on a change in pull request #172: Make it easier to create/update action sequences.
Date Tue, 25 Jun 2019 12:21:55 GMT
jthomas commented on a change in pull request #172: Make it easier to create/update action
sequences.
URL: https://github.com/apache/incubator-openwhisk-client-js/pull/172#discussion_r297157777
 
 

 ##########
 File path: README.md
 ##########
 @@ -459,6 +454,32 @@ If you pass in an array for the first parameter, the `create` call will
be execu
 ow.actions.create([{...}, {...}])
 ```
 
+### create & update action sequence
+
+```javascript
+ow.actions.create({name: '...', sequence: ["action_name", "next_action", ...]})
+ow.actions.update({name: '...', sequence: ["action_name", "next_action", ...]})
+```
+
+The following mandatory parameters are supported:
+
+- `name` - action identifier
+- `sequence` - Array containing JS strings with action identifiers to use in sequence. This
can be a full or relative action identifier (e.g. `action-name` or `/namespace/package/action-name`).
+
+The following optional parameters are supported:
+
+- `namespace` - set custom namespace for endpoint
+- `params` - object containing default parameters for the action (default: `{}`)
+- `annotations` - object containing annotations for the action (default: `{}`)
+- `limits` - object containing limits for the action (default: `{}`)
+- `version` - set semantic version of the action. If parameter is empty when create new action
openwisk generate 0.0.1 value when update an action increase the patch version.
 
 Review comment:
   Opened https://github.com/apache/incubator-openwhisk-client-js/issues/174

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message