From 4b9902a2e41cf656464a3c33b83b382f422de4a6 Mon Sep 17 00:00:00 2001 From: asim Date: Mon, 11 Oct 2021 12:57:40 +0000 Subject: [PATCH] Commit from GitHub Actions (Publish APIs & Clients) --- clients/go/function/function.go | 4 ++-- clients/ts/function/index.ts | 4 ++-- examples/db/create/go/createARecord.go | 2 +- examples/db/update/go/updateARecord.go | 2 +- examples/function/delete/go/deleteAFunction.go | 2 +- examples/function/delete/node/deleteAFunction.js | 2 +- examples/function/list/go/listFunctions.go | 2 +- examples/function/list/node/listFunctions.js | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/clients/go/function/function.go b/clients/go/function/function.go index bb826e7..0e1d77d 100755 --- a/clients/go/function/function.go +++ b/clients/go/function/function.go @@ -22,7 +22,7 @@ func (t *FunctionService) Call(request *CallRequest) (*CallResponse, error) { return rsp, t.client.Call("function", "Call", request, rsp) } -// +// Delete a function by name func (t *FunctionService) Delete(request *DeleteRequest) (*DeleteResponse, error) { rsp := &DeleteResponse{} return rsp, t.client.Call("function", "Delete", request, rsp) @@ -34,7 +34,7 @@ func (t *FunctionService) Deploy(request *DeployRequest) (*DeployResponse, error return rsp, t.client.Call("function", "Deploy", request, rsp) } -// +// List all the deployed functions func (t *FunctionService) List(request *ListRequest) (*ListResponse, error) { rsp := &ListResponse{} return rsp, t.client.Call("function", "List", request, rsp) diff --git a/clients/ts/function/index.ts b/clients/ts/function/index.ts index 2cf3f84..291418e 100755 --- a/clients/ts/function/index.ts +++ b/clients/ts/function/index.ts @@ -14,7 +14,7 @@ export class FunctionService { request ) as Promise; } - // + // Delete a function by name delete(request: DeleteRequest): Promise { return this.client.call( "function", @@ -30,7 +30,7 @@ export class FunctionService { request ) as Promise; } - // + // List all the deployed functions list(request: ListRequest): Promise { return this.client.call( "function", diff --git a/examples/db/create/go/createARecord.go b/examples/db/create/go/createARecord.go index ed2b1c4..f9cc6bc 100755 --- a/examples/db/create/go/createARecord.go +++ b/examples/db/create/go/createARecord.go @@ -11,10 +11,10 @@ func CreateArecord() { dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) rsp, err := dbService.Create(&db.CreateRequest{ Record: map[string]interface{}{ + "isActive": true, "id": "1", "name": "Jane", "age": 42, - "isActive": true, }, Table: "users", }) diff --git a/examples/db/update/go/updateARecord.go b/examples/db/update/go/updateARecord.go index d1cad90..4c7b7e9 100755 --- a/examples/db/update/go/updateARecord.go +++ b/examples/db/update/go/updateARecord.go @@ -11,8 +11,8 @@ func UpdateArecord() { dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) rsp, err := dbService.Update(&db.UpdateRequest{ Record: map[string]interface{}{ - "id": "1", "age": 43, + "id": "1", }, Table: "users", }) diff --git a/examples/function/delete/go/deleteAFunction.go b/examples/function/delete/go/deleteAFunction.go index 671592e..e5ee718 100755 --- a/examples/function/delete/go/deleteAFunction.go +++ b/examples/function/delete/go/deleteAFunction.go @@ -6,7 +6,7 @@ import ( "os" ) -// +// Delete a function by name func DeleteAfunction() { functionService := function.NewFunctionService(os.Getenv("MICRO_API_TOKEN")) rsp, err := functionService.Delete(&function.DeleteRequest{ diff --git a/examples/function/delete/node/deleteAFunction.js b/examples/function/delete/node/deleteAFunction.js index c919ae4..747b4e3 100755 --- a/examples/function/delete/node/deleteAFunction.js +++ b/examples/function/delete/node/deleteAFunction.js @@ -1,6 +1,6 @@ import * as fx from "m3o/function"; -// +// Delete a function by name async function DeleteAfunction() { let functionService = new fx.FunctionService(process.env.MICRO_API_TOKEN); let rsp = await functionService.delete({ diff --git a/examples/function/list/go/listFunctions.go b/examples/function/list/go/listFunctions.go index ce61b99..7e12727 100755 --- a/examples/function/list/go/listFunctions.go +++ b/examples/function/list/go/listFunctions.go @@ -6,7 +6,7 @@ import ( "os" ) -// +// List all the deployed functions func ListFunctions() { functionService := function.NewFunctionService(os.Getenv("MICRO_API_TOKEN")) rsp, err := functionService.List(&function.ListRequest{}) diff --git a/examples/function/list/node/listFunctions.js b/examples/function/list/node/listFunctions.js index 6a3953e..1fbf660 100755 --- a/examples/function/list/node/listFunctions.js +++ b/examples/function/list/node/listFunctions.js @@ -1,6 +1,6 @@ import * as fx from "m3o/function"; -// +// List all the deployed functions async function ListFunctions() { let functionService = new fx.FunctionService(process.env.MICRO_API_TOKEN); let rsp = await functionService.list({});