departments

package
v2.732.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Department

type Department struct {
	// Department ID
	ID int `json:"id"`

	// Department name
	Name string `json:"name,omitempty"`

	// Identity provider (IdP) ID
	IdpID int `json:"idpId"`

	// Additional information about this department
	Comments string `json:"comments,omitempty"`
	Deleted  bool   `json:"deleted"`
}

type Service

type Service struct {
	Client *zia.Client
	// contains filtered or unexported fields
}

func New

func New(c *zia.Client) *Service

func (*Service) GetAll

func (service *Service) GetAll() ([]Department, error)

func (*Service) GetDepartments

func (service *Service) GetDepartments(departmentID int) (*Department, error)

func (*Service) GetDepartmentsByName

func (service *Service) GetDepartmentsByName(departmentName string) (*Department, error)

func (*Service) WithSort added in v2.2.0

func (service *Service) WithSort(sortBy common.SortField, sortOrder common.SortOrder) *Service

Jump to

Keyboard shortcuts

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