urlcategories

package
v2.61.5 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteURLCategories added in v2.61.0

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

Types

type Scopes

type Scopes struct {
	// Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group. The attribute name is subject to change.
	ScopeGroupMemberEntities []common.IDNameExtensions `json:"scopeGroupMemberEntities,omitempty"`

	// The admin scope type. The attribute name is subject to change.
	Type string `json:"Type,omitempty"`

	// Based on the admin scope type, the entities can be the ID/name pair of departments, locations, or location groups. The attribute name is subject to change.
	ScopeEntities []common.IDNameExtensions `json:"ScopeEntities,omitempty"`
}

type URLCategory

type URLCategory struct {
	// URL category
	ID string `json:"id,omitempty"`

	// Name of the URL category. This is only required for custom URL categories.
	ConfiguredName string `json:"configuredName,omitempty"`

	// Custom keywords associated to a URL category. Up to 2048 custom keywords can be added per organization across all categories (including bandwidth classes).
	Keywords []string `json:"keywords"`

	// Retained custom keywords from the parent URL category that is associated to a URL category. Up to 2048 retained parent keywords can be added per organization across all categories (including bandwidth classes).
	KeywordsRetainingParentCategory []string `json:"keywordsRetainingParentCategory"`

	// Custom URLs to add to a URL category. Up to 25,000 custom URLs can be added per organization across all categories (including bandwidth classes).
	Urls []string `json:"urls"`

	// URLs added to a custom URL category are also retained under the original parent URL category (i.e., the predefined category the URL previously belonged to). The URLs entered are covered by policies that reference the original parent URL category as well as those that reference the custom URL category. For example, if you add www.amazon.com, this URL is covered by policies that reference the custom URL category as well as policies that reference its parent URL category of "Online Shopping".
	DBCategorizedUrls []string `json:"dbCategorizedUrls"`

	//
	CustomCategory bool `json:"customCategory"`

	// Scope of the custom categories.
	Scopes []Scopes `json:"scopes,omitempty"`

	// Value is set to false for custom URL category when due to scope user does not have edit permission
	Editable bool `json:"editable"`

	// Description of the URL category. Contains tag name and needs to be localized on client side in case of predefined category (customCategory=null or =false), else it contains the user-entered description which does not have localization support.
	Description string `json:"description,omitempty"`

	// Type of the custom categories.
	Type string `json:"type,omitempty"`

	// URL and keyword counts for the URL category.
	URLKeywordCounts *URLKeywordCounts `json:"urlKeywordCounts,omitempty"`
	Val              int               `json:"val,omitempty"`

	// The number of custom URLs associated to the URL category.
	CustomUrlsCount int `json:"customUrlsCount,omitempty"`

	// Super Category of the URL category. This field is required when creating custom URL categories.
	SuperCategory string `json:"superCategory,omitempty"`

	// The number of custom URLs associated to the URL category, that also need to be retained under the original parent category.
	UrlsRetainingParentCategoryCount int `json:"urlsRetainingParentCategoryCount"`

	// Custom IP address ranges associated to a URL category. Up to 2000 custom IP address ranges and retaining parent custom IP address ranges can be added, per organization, across all categories.
	IPRanges []string `json:"ipRanges"`

	// The retaining parent custom IP address ranges associated to a URL category. Up to 2000 custom IP ranges and retaining parent custom IP address ranges can be added, per organization, across all categories.
	IPRangesRetainingParentCategory []string `json:"ipRangesRetainingParentCategory"`

	// The number of custom IP address ranges associated to the URL category.
	CustomIpRangesCount int `json:"customIpRangesCount"`

	// The number of custom IP address ranges associated to the URL category, that also need to be retained under the original parent category.
	IPRangesRetainingParentCategoryCount int `json:"ipRangesRetainingParentCategoryCount"`
}

func CreateURLCategories added in v2.61.0

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

func Get added in v2.61.0

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

func GetAll added in v2.61.0

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

func GetCustomURLCategories added in v2.61.1

func GetCustomURLCategories(service *services.Service, customName string, includeOnlyUrlKeywordCounts, customOnly bool) (*URLCategory, error)

func UpdateURLCategories added in v2.61.0

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

type URLKeywordCounts

type URLKeywordCounts struct {
	// Custom URL count for the category.
	TotalURLCount int `json:"totalUrlCount,omitempty"`

	// Count of URLs with retain parent category.
	RetainParentURLCount int `json:"retainParentUrlCount,omitempty"`

	// Total keyword count for the category.
	TotalKeywordCount int `json:"totalKeywordCount,omitempty"`

	// Count of total keywords with retain parent category.
	RetainParentKeywordCount int `json:"retainParentKeywordCount,omitempty"`
}

Jump to

Keyboard shortcuts

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