perms

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Application_name = map[int32]string{
		0:  "APPLICATION_UNSPECIFIED",
		1:  "APPLICATION_AGENT",
		2:  "APPLICATION_BUSINESS_INTELLIGENCE",
		3:  "APPLICATION_DELIVERY_SERVICE",
		4:  "APPLICATION_DEV_TOOLS",
		5:  "APPLICATION_INTEGRATIONS",
		6:  "APPLICATION_LIST_MANAGEMENT_SERVICES",
		7:  "APPLICATION_NATURAL_LANGUAGE_COMPLIANCE",
		8:  "APPLICATION_OMNI_BOSS",
		9:  "APPLICATION_ORGANIZATION",
		10: "APPLICATION_ROOM_303",
		11: "APPLICATION_SCORECARDS",
		12: "APPLICATION_SCRIPTS",
		13: "APPLICATION_TICKETS",
		14: "APPLICATION_VOICE_ANALYTICS",
		15: "APPLICATION_WORK_FORCE_MANAGEMENT",
	}
	Application_value = map[string]int32{
		"APPLICATION_UNSPECIFIED":                 0,
		"APPLICATION_AGENT":                       1,
		"APPLICATION_BUSINESS_INTELLIGENCE":       2,
		"APPLICATION_DELIVERY_SERVICE":            3,
		"APPLICATION_DEV_TOOLS":                   4,
		"APPLICATION_INTEGRATIONS":                5,
		"APPLICATION_LIST_MANAGEMENT_SERVICES":    6,
		"APPLICATION_NATURAL_LANGUAGE_COMPLIANCE": 7,
		"APPLICATION_OMNI_BOSS":                   8,
		"APPLICATION_ORGANIZATION":                9,
		"APPLICATION_ROOM_303":                    10,
		"APPLICATION_SCORECARDS":                  11,
		"APPLICATION_SCRIPTS":                     12,
		"APPLICATION_TICKETS":                     13,
		"APPLICATION_VOICE_ANALYTICS":             14,
		"APPLICATION_WORK_FORCE_MANAGEMENT":       15,
	}
)

Enum value maps for Application.

View Source
var (
	Card_name = map[int32]string{
		0: "CARD_UNSPECIFIED",
		1: "CARD_ORGANIZATION",
		2: "CARD_USERS",
		3: "CARD_AGENTS",
		4: "CARD_PERMISSION_GROUPS",
		5: "CARD_LABELS",
		6: "CARD_TRUSTS",
		7: "CARD_HUNT_GROUPS",
		8: "CARD_SOUNDBOARD",
		9: "CARD_SUBSCRIPTIONS",
	}
	Card_value = map[string]int32{
		"CARD_UNSPECIFIED":       0,
		"CARD_ORGANIZATION":      1,
		"CARD_USERS":             2,
		"CARD_AGENTS":            3,
		"CARD_PERMISSION_GROUPS": 4,
		"CARD_LABELS":            5,
		"CARD_TRUSTS":            6,
		"CARD_HUNT_GROUPS":       7,
		"CARD_SOUNDBOARD":        8,
		"CARD_SUBSCRIPTIONS":     9,
	}
)

Enum value maps for Card.

View Source
var (
	// Options contain the permission annotation properties.
	//
	// optional annotations.perms.Tcn options = 50001;
	E_Options = &file_annotations_perms_tcn_proto_extTypes[0]
)

Extension fields to descriptorpb.EnumValueOptions.

View Source
var File_annotations_perms_license_proto protoreflect.FileDescriptor
View Source
var File_annotations_perms_tcn_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Application

type Application int32

Application contains license/permission application name constants.

const (
	Application_APPLICATION_UNSPECIFIED                 Application = 0
	Application_APPLICATION_AGENT                       Application = 1
	Application_APPLICATION_BUSINESS_INTELLIGENCE       Application = 2
	Application_APPLICATION_DELIVERY_SERVICE            Application = 3
	Application_APPLICATION_DEV_TOOLS                   Application = 4
	Application_APPLICATION_INTEGRATIONS                Application = 5
	Application_APPLICATION_LIST_MANAGEMENT_SERVICES    Application = 6
	Application_APPLICATION_NATURAL_LANGUAGE_COMPLIANCE Application = 7
	Application_APPLICATION_OMNI_BOSS                   Application = 8
	Application_APPLICATION_ORGANIZATION                Application = 9
	Application_APPLICATION_ROOM_303                    Application = 10
	Application_APPLICATION_SCORECARDS                  Application = 11
	Application_APPLICATION_SCRIPTS                     Application = 12
	Application_APPLICATION_TICKETS                     Application = 13
	Application_APPLICATION_VOICE_ANALYTICS             Application = 14
	Application_APPLICATION_WORK_FORCE_MANAGEMENT       Application = 15
)

func (Application) Descriptor

func (Application) Enum

func (x Application) Enum() *Application

func (Application) EnumDescriptor deprecated

func (Application) EnumDescriptor() ([]byte, []int)

Deprecated: Use Application.Descriptor instead.

func (Application) Number

func (x Application) Number() protoreflect.EnumNumber

func (Application) String

func (x Application) String() string

func (Application) Type

type Card

type Card int32

Card contains license/permission card label constants.

const (
	Card_CARD_UNSPECIFIED Card = 0
	// Organization cards.
	Card_CARD_ORGANIZATION      Card = 1
	Card_CARD_USERS             Card = 2
	Card_CARD_AGENTS            Card = 3
	Card_CARD_PERMISSION_GROUPS Card = 4
	Card_CARD_LABELS            Card = 5
	Card_CARD_TRUSTS            Card = 6
	Card_CARD_HUNT_GROUPS       Card = 7
	Card_CARD_SOUNDBOARD        Card = 8
	Card_CARD_SUBSCRIPTIONS     Card = 9
)

func (Card) Descriptor

func (Card) Descriptor() protoreflect.EnumDescriptor

func (Card) Enum

func (x Card) Enum() *Card

func (Card) EnumDescriptor deprecated

func (Card) EnumDescriptor() ([]byte, []int)

Deprecated: Use Card.Descriptor instead.

func (Card) Number

func (x Card) Number() protoreflect.EnumNumber

func (Card) String

func (x Card) String() string

func (Card) Type

func (Card) Type() protoreflect.EnumType

type Tcn

type Tcn struct {

	// Work-in-progress tag. Used to delineate permissions that are not
	// yet ready to go live. Previously known as "A la carte" permissions
	// in the legacy customer support licensing tool.
	Wip *bool `protobuf:"varint,1,opt,name=wip" json:"wip,omitempty"`
	// Application which the permission will be grouped under.
	App *Application `protobuf:"varint,2,opt,name=app,enum=annotations.perms.Application" json:"app,omitempty"`
	// The card/sub-app section which it's assigned to.
	// If no card is provided, it will go under the application's default
	// card (under the same name as the app).
	Card *Card `protobuf:"varint,3,opt,name=card,enum=annotations.perms.Card" json:"card,omitempty"`
	// The list of features or effects the permission grants.
	Features []string `protobuf:"bytes,4,rep,name=features" json:"features,omitempty"`
	// contains filtered or unexported fields
}

Tcn defines the enum value annotations which will be used for permissions.

func (*Tcn) Descriptor deprecated

func (*Tcn) Descriptor() ([]byte, []int)

Deprecated: Use Tcn.ProtoReflect.Descriptor instead.

func (*Tcn) GetApp

func (x *Tcn) GetApp() Application

func (*Tcn) GetCard

func (x *Tcn) GetCard() Card

func (*Tcn) GetFeatures

func (x *Tcn) GetFeatures() []string

func (*Tcn) GetWip

func (x *Tcn) GetWip() bool

func (*Tcn) ProtoMessage

func (*Tcn) ProtoMessage()

func (*Tcn) ProtoReflect

func (x *Tcn) ProtoReflect() protoreflect.Message

func (*Tcn) Reset

func (x *Tcn) Reset()

func (*Tcn) String

func (x *Tcn) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL