Skip to content
Ona Docs

Policies

CreateRunnerPolicy
runners.policies.create(PolicyCreateParams**kwargs) -> PolicyCreateResponse
POST/gitpod.v1.RunnerService/CreateRunnerPolicy
DeleteRunnerPolicy
runners.policies.delete(PolicyDeleteParams**kwargs) -> object
POST/gitpod.v1.RunnerService/DeleteRunnerPolicy
ListRunnerPolicies
runners.policies.list(PolicyListParams**kwargs) -> SyncPoliciesPage[RunnerPolicy]
POST/gitpod.v1.RunnerService/ListRunnerPolicies
UpdateRunnerPolicy
runners.policies.update(PolicyUpdateParams**kwargs) -> PolicyUpdateResponse
POST/gitpod.v1.RunnerService/UpdateRunnerPolicy
ModelsExpand Collapse
class RunnerPolicy:
group_id: Optional[str]
formatuuid
role: Optional[RunnerRole]

role is the role assigned to the group

One of the following:
"RUNNER_ROLE_UNSPECIFIED"
"RUNNER_ROLE_ADMIN"
"RUNNER_ROLE_USER"
Literal["RUNNER_ROLE_UNSPECIFIED", "RUNNER_ROLE_ADMIN", "RUNNER_ROLE_USER"]
One of the following:
"RUNNER_ROLE_UNSPECIFIED"
"RUNNER_ROLE_ADMIN"
"RUNNER_ROLE_USER"
class PolicyCreateResponse:
policy: RunnerPolicy
group_id: Optional[str]
formatuuid
role: Optional[RunnerRole]

role is the role assigned to the group

One of the following:
"RUNNER_ROLE_UNSPECIFIED"
"RUNNER_ROLE_ADMIN"
"RUNNER_ROLE_USER"
class PolicyUpdateResponse:
policy: RunnerPolicy
group_id: Optional[str]
formatuuid
role: Optional[RunnerRole]

role is the role assigned to the group

One of the following:
"RUNNER_ROLE_UNSPECIFIED"
"RUNNER_ROLE_ADMIN"
"RUNNER_ROLE_USER"