ipdestinationgroups

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPDestinationGroups

type IPDestinationGroups struct {
	ID           int      `json:"id"`
	Name         string   `json:"name,omitempty"`
	Type         string   `json:"type,omitempty"`
	Addresses    []string `json:"addresses,omitempty"`
	Description  string   `json:"description,omitempty"`
	IPCategories []string `json:"ipCategories,omitempty"`
	Countries    []string `json:"countries,omitempty"`
}

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) Create

func (service *Service) Create(ipGroupID *IPDestinationGroups) (*IPDestinationGroups, error)

func (*Service) Delete

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

func (*Service) Get

func (service *Service) Get(ipGroupID int) (*IPDestinationGroups, error)

func (*Service) GetAll added in v0.0.4

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

func (*Service) GetByName

func (service *Service) GetByName(ipDestinationGroupsName string) (*IPDestinationGroups, error)

func (*Service) Update

func (service *Service) Update(ipGroupID int, ipGroup *IPDestinationGroups) (*IPDestinationGroups, *http.Response, error)

Jump to

Keyboard shortcuts

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