urlcategories

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scopes

type Scopes struct {
	ScopeGroupMemberEntities []common.IDNameExtensions `json:"scopeGroupMemberEntities,omitempty"`
	Type                     string                    `json:"Type,omitempty"`
	ScopeEntities            []common.IDNameExtensions `json:"ScopeEntities,omitempty"`
}

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) CreateURLCategories

func (service *Service) CreateURLCategories(category *URLCategory) (*URLCategory, error)

func (*Service) DeleteURLCategories

func (service *Service) DeleteURLCategories(categoryID string) (*http.Response, error)

func (*Service) Get

func (service *Service) Get(categoryID string) (*URLCategory, error)

func (*Service) GetAll added in v0.0.4

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

func (*Service) GetCustomURLCategories

func (service *Service) GetCustomURLCategories(customName string) (*URLCategory, error)

func (*Service) GetIncludeOnlyUrlKeyWordCounts added in v0.5.0

func (service *Service) GetIncludeOnlyUrlKeyWordCounts(customName string) (*URLCategory, error)

func (*Service) UpdateURLCategories

func (service *Service) UpdateURLCategories(categoryID string, category *URLCategory) (*URLCategory, *http.Response, error)

type URLCategory

type URLCategory struct {
	ID                                   string            `json:"id,omitempty"`
	ConfiguredName                       string            `json:"configuredName,omitempty"`
	Keywords                             []string          `json:"keywords"`
	KeywordsRetainingParentCategory      []string          `json:"keywordsRetainingParentCategory"`
	Urls                                 []string          `json:"urls"`
	DBCategorizedUrls                    []string          `json:"dbCategorizedUrls"`
	CustomCategory                       bool              `json:"customCategory"`
	Scopes                               []Scopes          `json:"scopes,omitempty"`
	Editable                             bool              `json:"editable"`
	Description                          string            `json:"description,omitempty"`
	Type                                 string            `json:"type,omitempty"`
	URLKeywordCounts                     *URLKeywordCounts `json:"urlKeywordCounts,omitempty"`
	Val                                  int               `json:"val,omitempty"`
	CustomUrlsCount                      int               `json:"customUrlsCount,omitempty"`
	SuperCategory                        string            `json:"superCategory,omitempty"`
	UrlsRetainingParentCategoryCount     int               `json:"urlsRetainingParentCategoryCount"`
	IPRanges                             []string          `json:"ipRanges"`
	IPRangesRetainingParentCategory      []string          `json:"ipRangesRetainingParentCategory"`
	CustomIpRangesCount                  int               `json:"customIpRangesCount"`
	IPRangesRetainingParentCategoryCount int               `json:"ipRangesRetainingParentCategoryCount"`
}

type URLKeywordCounts

type URLKeywordCounts struct {
	TotalURLCount            int `json:"totalUrlCount,omitempty"`
	RetainParentURLCount     int `json:"retainParentUrlCount,omitempty"`
	TotalKeywordCount        int `json:"totalKeywordCount,omitempty"`
	RetainParentKeywordCount int `json:"retainParentKeywordCount,omitempty"`
}

Jump to

Keyboard shortcuts

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