Skip to content
Ona Docs

Memberships

CreateMembership
client.Groups.Memberships.New(ctx, body) (*GroupMembershipNewResponse, error)
POST/gitpod.v1.GroupService/CreateMembership
DeleteMembership
client.Groups.Memberships.Delete(ctx, body) (*GroupMembershipDeleteResponse, error)
POST/gitpod.v1.GroupService/DeleteMembership
ListMemberships
client.Groups.Memberships.List(ctx, params) (*MembersPage[GroupMembership], error)
POST/gitpod.v1.GroupService/ListMemberships
GetMembership
client.Groups.Memberships.Get(ctx, body) (*GroupMembershipGetResponse, error)
POST/gitpod.v1.GroupService/GetMembership
ModelsExpand Collapse
type GroupMembership struct{…}

GroupMembership represents a subject’s membership in a group

ID stringOptional

Unique identifier for the group membership

formatuuid
AvatarURL stringOptional

Subject’s avatar URL

GroupID stringOptional

Group identifier

formatuuid
Name stringOptional

Subject’s display name

Subject SubjectOptional

Subject (user, runner, environment, service account, etc.)

ID stringOptional

id is the UUID of the subject

formatuuid
Principal PrincipalOptional

Principal is the principal of the subject

One of the following:
const PrincipalUnspecified Principal = "PRINCIPAL_UNSPECIFIED"
const PrincipalAccount Principal = "PRINCIPAL_ACCOUNT"
const PrincipalUser Principal = "PRINCIPAL_USER"
const PrincipalRunner Principal = "PRINCIPAL_RUNNER"
const PrincipalEnvironment Principal = "PRINCIPAL_ENVIRONMENT"
const PrincipalServiceAccount Principal = "PRINCIPAL_SERVICE_ACCOUNT"
const PrincipalRunnerManager Principal = "PRINCIPAL_RUNNER_MANAGER"