Skip to content
Ona Docs

Policies

CreateRunnerPolicy
client.Runners.Policies.New(ctx, body) (*RunnerPolicyNewResponse, error)
POST/gitpod.v1.RunnerService/CreateRunnerPolicy
DeleteRunnerPolicy
client.Runners.Policies.Delete(ctx, body) (*RunnerPolicyDeleteResponse, error)
POST/gitpod.v1.RunnerService/DeleteRunnerPolicy
ListRunnerPolicies
client.Runners.Policies.List(ctx, params) (*PoliciesPage[RunnerPolicy], error)
POST/gitpod.v1.RunnerService/ListRunnerPolicies
UpdateRunnerPolicy
client.Runners.Policies.Update(ctx, body) (*RunnerPolicyUpdateResponse, error)
POST/gitpod.v1.RunnerService/UpdateRunnerPolicy
ModelsExpand Collapse
type RunnerPolicy struct{…}
GroupID stringOptional
formatuuid
Role RunnerRoleOptional

role is the role assigned to the group

One of the following:
const RunnerRoleUnspecified RunnerRole = "RUNNER_ROLE_UNSPECIFIED"
const RunnerRoleAdmin RunnerRole = "RUNNER_ROLE_ADMIN"
const RunnerRoleUser RunnerRole = "RUNNER_ROLE_USER"
type RunnerRole string
One of the following:
const RunnerRoleUnspecified RunnerRole = "RUNNER_ROLE_UNSPECIFIED"
const RunnerRoleAdmin RunnerRole = "RUNNER_ROLE_ADMIN"
const RunnerRoleUser RunnerRole = "RUNNER_ROLE_USER"