Add data param to console SDK
This commit is contained in:
parent
84e5577934
commit
277ebc1151
3 changed files with 12 additions and 5 deletions
5
public/dist/scripts/app-all.js
vendored
5
public/dist/scripts/app-all.js
vendored
|
@ -188,8 +188,9 @@ let path='/functions/{functionId}/executions'.replace(new RegExp('{functionId}',
|
||||||
if(limit){payload['limit']=limit;}
|
if(limit){payload['limit']=limit;}
|
||||||
if(offset){payload['offset']=offset;}
|
if(offset){payload['offset']=offset;}
|
||||||
if(orderType){payload['orderType']=orderType;}
|
if(orderType){payload['orderType']=orderType;}
|
||||||
return http.get(path,{'content-type':'application/json',},payload);},createExecution:function(functionId){if(functionId===undefined){throw new Error('Missing required parameter: "functionId"');}
|
return http.get(path,{'content-type':'application/json',},payload);},createExecution:function(functionId,data){if(functionId===undefined){throw new Error('Missing required parameter: "functionId"');}
|
||||||
let path='/functions/{functionId}/executions'.replace(new RegExp('{functionId}','g'),functionId);let payload={};return http.post(path,{'content-type':'application/json',},payload);},getExecution:function(functionId,executionId){if(functionId===undefined){throw new Error('Missing required parameter: "functionId"');}
|
let path='/functions/{functionId}/executions'.replace(new RegExp('{functionId}','g'),functionId);let payload={};if(data){payload['data']=data;}
|
||||||
|
return http.post(path,{'content-type':'application/json',},payload);},getExecution:function(functionId,executionId){if(functionId===undefined){throw new Error('Missing required parameter: "functionId"');}
|
||||||
if(executionId===undefined){throw new Error('Missing required parameter: "executionId"');}
|
if(executionId===undefined){throw new Error('Missing required parameter: "executionId"');}
|
||||||
let path='/functions/{functionId}/executions/{executionId}'.replace(new RegExp('{functionId}','g'),functionId).replace(new RegExp('{executionId}','g'),executionId);let payload={};return http.get(path,{'content-type':'application/json',},payload);},updateTag:function(functionId,tag){if(functionId===undefined){throw new Error('Missing required parameter: "functionId"');}
|
let path='/functions/{functionId}/executions/{executionId}'.replace(new RegExp('{functionId}','g'),functionId).replace(new RegExp('{executionId}','g'),executionId);let payload={};return http.get(path,{'content-type':'application/json',},payload);},updateTag:function(functionId,tag){if(functionId===undefined){throw new Error('Missing required parameter: "functionId"');}
|
||||||
if(tag===undefined){throw new Error('Missing required parameter: "tag"');}
|
if(tag===undefined){throw new Error('Missing required parameter: "tag"');}
|
||||||
|
|
5
public/dist/scripts/app-dep.js
vendored
5
public/dist/scripts/app-dep.js
vendored
|
@ -188,8 +188,9 @@ let path='/functions/{functionId}/executions'.replace(new RegExp('{functionId}',
|
||||||
if(limit){payload['limit']=limit;}
|
if(limit){payload['limit']=limit;}
|
||||||
if(offset){payload['offset']=offset;}
|
if(offset){payload['offset']=offset;}
|
||||||
if(orderType){payload['orderType']=orderType;}
|
if(orderType){payload['orderType']=orderType;}
|
||||||
return http.get(path,{'content-type':'application/json',},payload);},createExecution:function(functionId){if(functionId===undefined){throw new Error('Missing required parameter: "functionId"');}
|
return http.get(path,{'content-type':'application/json',},payload);},createExecution:function(functionId,data){if(functionId===undefined){throw new Error('Missing required parameter: "functionId"');}
|
||||||
let path='/functions/{functionId}/executions'.replace(new RegExp('{functionId}','g'),functionId);let payload={};return http.post(path,{'content-type':'application/json',},payload);},getExecution:function(functionId,executionId){if(functionId===undefined){throw new Error('Missing required parameter: "functionId"');}
|
let path='/functions/{functionId}/executions'.replace(new RegExp('{functionId}','g'),functionId);let payload={};if(data){payload['data']=data;}
|
||||||
|
return http.post(path,{'content-type':'application/json',},payload);},getExecution:function(functionId,executionId){if(functionId===undefined){throw new Error('Missing required parameter: "functionId"');}
|
||||||
if(executionId===undefined){throw new Error('Missing required parameter: "executionId"');}
|
if(executionId===undefined){throw new Error('Missing required parameter: "executionId"');}
|
||||||
let path='/functions/{functionId}/executions/{executionId}'.replace(new RegExp('{functionId}','g'),functionId).replace(new RegExp('{executionId}','g'),executionId);let payload={};return http.get(path,{'content-type':'application/json',},payload);},updateTag:function(functionId,tag){if(functionId===undefined){throw new Error('Missing required parameter: "functionId"');}
|
let path='/functions/{functionId}/executions/{executionId}'.replace(new RegExp('{functionId}','g'),functionId).replace(new RegExp('{executionId}','g'),executionId);let payload={};return http.get(path,{'content-type':'application/json',},payload);},updateTag:function(functionId,tag){if(functionId===undefined){throw new Error('Missing required parameter: "functionId"');}
|
||||||
if(tag===undefined){throw new Error('Missing required parameter: "tag"');}
|
if(tag===undefined){throw new Error('Missing required parameter: "tag"');}
|
||||||
|
|
|
@ -2075,10 +2075,11 @@
|
||||||
* function execution process will start asynchronously.
|
* function execution process will start asynchronously.
|
||||||
*
|
*
|
||||||
* @param {string} functionId
|
* @param {string} functionId
|
||||||
|
* @param {string} data
|
||||||
* @throws {Error}
|
* @throws {Error}
|
||||||
* @return {Promise}
|
* @return {Promise}
|
||||||
*/
|
*/
|
||||||
createExecution: function(functionId) {
|
createExecution: function(functionId, data) {
|
||||||
if(functionId === undefined) {
|
if(functionId === undefined) {
|
||||||
throw new Error('Missing required parameter: "functionId"');
|
throw new Error('Missing required parameter: "functionId"');
|
||||||
}
|
}
|
||||||
|
@ -2087,6 +2088,10 @@
|
||||||
|
|
||||||
let payload = {};
|
let payload = {};
|
||||||
|
|
||||||
|
if (data) {
|
||||||
|
payload['data'] = data;
|
||||||
|
}
|
||||||
|
|
||||||
return http
|
return http
|
||||||
.post(path, {
|
.post(path, {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
|
|
Loading…
Reference in a new issue