Files
grafana/pkg/kinds/team/team_spec_gen.go
T
2023-04-27 23:32:38 +03:00

44 lines
1.0 KiB
Go

// Code generated - EDITING IS FUTILE. DO NOT EDIT.
//
// Generated by:
// kinds/gen.go
// Using jennies:
// GoResourceTypes
//
// Run 'make gen-cue' from repository root to regenerate.
package team
// Defines values for Permission.
const (
PermissionN0 Permission = 0
PermissionN1 Permission = 1
PermissionN2 Permission = 2
PermissionN4 Permission = 4
)
// Permission defines model for Permission.
type Permission int
// Spec defines model for Spec.
type Spec struct {
// AccessControl metadata associated with a given resource.
AccessControl map[string]bool `json:"accessControl,omitempty"`
// AvatarUrl is the team's avatar URL.
AvatarUrl *string `json:"avatarUrl,omitempty"`
// Email of the team.
Email *string `json:"email,omitempty"`
// MemberCount is the number of the team members.
MemberCount int64 `json:"memberCount"`
// Name of the team.
Name string `json:"name"`
// OrgId is the ID of an organisation the team belongs to.
OrgId int64 `json:"orgId"`
Permission Permission `json:"permission"`
}