Documentation ¶
Index ¶
- type RuleLabels
- type Service
- func (service *Service) Create(ruleLabelID *RuleLabels) (*RuleLabels, *http.Response, error)
- func (service *Service) Delete(ruleLabelID int) (*http.Response, error)
- func (service *Service) Get(ruleLabelID int) (*RuleLabels, error)
- func (service *Service) GetAll() ([]RuleLabels, error)
- func (service *Service) GetRuleLabelByName(labelName string) (*RuleLabels, error)
- func (service *Service) Update(ruleLabelID int, ruleLabels *RuleLabels) (*RuleLabels, *http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuleLabels ¶
type RuleLabels struct { // The unique identifier for the rule label. ID int `json:"id"` // The rule label name. Name string `json:"name,omitempty"` // The rule label description. Description string `json:"description,omitempty"` // Timestamp when the rule lable was last modified. This is a read-only field. Ignored by PUT and DELETE requests. LastModifiedTime int `json:"lastModifiedTime,omitempty"` // The admin that modified the rule label last. This is a read-only field. Ignored by PUT requests. LastModifiedBy *common.IDNameExtensions `json:"lastModifiedBy,omitempty"` // The admin that created the rule label. This is a read-only field. Ignored by PUT requests. CreatedBy *common.IDNameExtensions `json:"createdBy,omitempty"` // The number of rules that reference the label. ReferencedRuleCount int `json:"referencedRuleCount,omitempty"` }
type Service ¶
func (*Service) Create ¶
func (service *Service) Create(ruleLabelID *RuleLabels) (*RuleLabels, *http.Response, 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)
Click to show internal directories.
Click to hide internal directories.