rule_labels

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleLabels

type RuleLabels struct {
	ID                  int                      `json:"id"`
	Name                string                   `json:"name,omitempty"`
	Description         string                   `json:"description,omitempty"`
	LastModifiedTime    int                      `json:"lastModifiedTime,omitempty"`
	LastModifiedBy      *common.IDNameExtensions `json:"lastModifiedBy,omitempty"`
	CreatedBy           *common.IDNameExtensions `json:"createdBy,omitempty"`
	ReferencedRuleCount int                      `json:"referencedRuleCount,omitempty"`
}

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) Create

func (service *Service) Create(ruleLabelID *RuleLabels) (*RuleLabels, *http.Response, error)

func (*Service) Delete

func (service *Service) Delete(ruleLabelID int) (*http.Response, error)

func (*Service) Get

func (service *Service) Get(ruleLabelID int) (*RuleLabels, error)

func (*Service) GetAll added in v0.0.4

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

func (*Service) GetRuleLabelByName

func (service *Service) GetRuleLabelByName(labelName string) (*RuleLabels, error)

func (*Service) Update

func (service *Service) Update(ruleLabelID int, ruleLabels *RuleLabels) (*RuleLabels, *http.Response, error)

Jump to

Keyboard shortcuts

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