uc_team_content

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaximumTeamFolderMemberCount              = 1000
	MaximumTeamFolderMemberCountWithNoInherit = 250
	MaximumSharedFolderMemberCount            = 1000
)

Variables

This section is empty.

Functions

func MemberCapacity

func MemberCapacity(hasNoInherit bool, countExternalGroups, countTotal int) *int

Types

type FolderPolicy

type FolderPolicy struct {
	NamespaceId        string `json:"namespace_id"`
	NamespaceName      string `json:"namespace_name"`
	Path               string `json:"path"`
	IsTeamFolder       bool   `json:"is_team_folder"`
	OwnerTeamId        string `json:"owner_team_id"`
	OwnerTeamName      string `json:"owner_team_name"`
	PolicyManageAccess string `json:"policy_manage_access"`
	PolicySharedLink   string `json:"policy_shared_link"`
	PolicyMember       string `json:"policy_member"`
	PolicyViewerInfo   string `json:"policy_viewer_info"`
}

func NewFolderPolicy

func NewFolderPolicy(sf *mo_sharedfolder.SharedFolder, path string) *FolderPolicy

type GroupToFolder

type GroupToFolder struct {
	GroupName       string `json:"group_name"`
	GroupType       string `json:"group_type"`
	GroupIsSameTeam bool   `json:"group_is_same_team"`
	AccessType      string `json:"access_type"`
	NamespaceId     string `json:"namespace_id"`
	NamespaceName   string `json:"namespace_name"`
	Path            string `json:"path"`
	FolderType      string `json:"folder_type"`
	OwnerTeamId     string `json:"owner_team_id"`
	OwnerTeamName   string `json:"owner_team_name"`
}

type MemberCount

type MemberCount struct {
	NamespaceId         string          `json:"namespace_id"`
	NamespaceName       string          `json:"namespace_name"`
	ParentNamespaceId   string          `json:"parent_namespace_id"`
	Path                string          `json:"path"`
	FolderType          string          `json:"folder_type"`
	OwnerTeamId         string          `json:"owner_team_id"`
	OwnerTeamName       string          `json:"owner_team_name"`
	HasNoInherit        bool            `json:"has_no_inherit"`
	IsNoInherit         bool            `json:"is_no_inherit"`
	Capacity            *int            `json:"capacity"`
	CountTotal          int             `json:"count_total"`
	CountExternalGroups int             `json:"count_external_groups"`
	MemberEmails        map[string]bool `json:"member_emails"`
}

func MemberCountFromSharedFolder

func MemberCountFromSharedFolder(path string, sf *mo_sharedfolder.SharedFolder) MemberCount

func (MemberCount) Merge

func (z MemberCount) Merge(other MemberCount) MemberCount

type MemberToFolder

type MemberToFolder struct {
	MemberName    string `json:"member_name"`
	TeamMemberId  string `json:"team_member_id"`
	MemberEmail   string `json:"member_email"`
	AccessType    string `json:"access_type"`
	NamespaceId   string `json:"namespace_id"`
	NamespaceName string `json:"namespace_name"`
	Path          string `json:"path"`
	FolderType    string `json:"folder_type"`
	OwnerTeamId   string `json:"owner_team_id"`
	OwnerTeamName string `json:"owner_team_name"`
}

type Membership

type Membership struct {
	NamespaceId   string `json:"namespace_id"`
	NamespaceName string `json:"namespace_name"`
	Path          string `json:"path"`
	FolderType    string `json:"folder_type"`
	OwnerTeamId   string `json:"owner_team_id"`
	OwnerTeamName string `json:"owner_team_name"`
	AccessType    string `json:"access_type"`
	MemberType    string `json:"member_type"`
	MemberId      string `json:"member_id"`
	MemberName    string `json:"member_name"`
	MemberEmail   string `json:"member_email"`
	SameTeam      string `json:"same_team"`
}

type NoMember

type NoMember struct {
	OwnerTeamId   string `json:"owner_team_id"`
	OwnerTeamName string `json:"owner_team_name"`
	NamespaceId   string `json:"namespace_id"`
	NamespaceName string `json:"namespace_name"`
	Path          string `json:"path"`
	FolderType    string `json:"folder_type"`
}

func NewNoMember

func NewNoMember(sf *mo_sharedfolder.SharedFolder, path string) *NoMember

Jump to

Keyboard shortcuts

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