mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
add runtimes endpoint to functions
This commit is contained in:
@@ -751,7 +751,7 @@ func (e *GoogleFunction) Describe(ctx context.Context, req *function.DescribeReq
|
||||
fn.Status = status
|
||||
|
||||
// set the url
|
||||
if len(fn.Url) == 0 && status == "Active" {
|
||||
if len(fn.Url) == 0 && status == "Deployed" {
|
||||
v := m["httpsTrigger"].(map[string]interface{})
|
||||
fn.Url = v["url"].(string)
|
||||
}
|
||||
@@ -802,6 +802,11 @@ func (e *GoogleFunction) Regions(ctx context.Context, req *function.RegionsReque
|
||||
return nil
|
||||
}
|
||||
|
||||
func (e *GoogleFunction) Runtimes(ctx context.Context, req *function.RuntimesRequest, rsp *function.RuntimesResponse) error {
|
||||
rsp.Runtimes = GoogleRuntimes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (e *GoogleFunction) DeleteData(ctx context.Context, request *adminpb.DeleteDataRequest, response *adminpb.DeleteDataResponse) error {
|
||||
method := "admin.DeleteData"
|
||||
_, err := pauth.VerifyMicroAdmin(ctx, method)
|
||||
|
||||
Reference in New Issue
Block a user