08ded02123
This patch adds some other API for function version: - scale_up function version workers - scale_down function version workers - detach function version from workers - get all workers for function version This patch also fixes a unit test bug that job handler should be disabled for api tests. Change-Id: Ibd8e195bf8fa0f878cfe0bd8f777c820f4b2f24b Story: 2001829 Task: 14438
27 lines
968 B
Plaintext
27 lines
968 B
Plaintext
{
|
|
"context_is_admin": "role:admin or is_admin:1",
|
|
"owner" : "project_id:%(project_id)s",
|
|
"admin_or_owner": "rule:context_is_admin or rule:owner",
|
|
"default": "rule:admin_or_owner",
|
|
|
|
"runtime:create": "rule:context_is_admin",
|
|
"runtime:update": "rule:context_is_admin",
|
|
"runtime:delete": "rule:context_is_admin",
|
|
|
|
"function:get_all:all_projects": "rule:context_is_admin",
|
|
"function_worker:get_all": "rule:context_is_admin",
|
|
"function:scale_up": "rule:context_is_admin",
|
|
"function:scale_down": "rule:context_is_admin",
|
|
"function:detach": "rule:context_is_admin",
|
|
|
|
"function_version:scale_up": "rule:context_is_admin",
|
|
"function_version:scale_down": "rule:context_is_admin",
|
|
"function_version:detach": "rule:context_is_admin",
|
|
|
|
"execution:get_all:all_projects": "rule:context_is_admin",
|
|
|
|
"webhook:get_all:all_projects": "rule:context_is_admin",
|
|
|
|
"job:get_all:all_projects": "rule:context_is_admin",
|
|
}
|