ipsourcegroups

package
v2.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPSourceGroups

type IPSourceGroups struct {
	// A unique identifier of the source IP address group.
	ID int `json:"id"`

	// The name of the source IP address group.
	Name string `json:"name,omitempty"`

	// The description of the source IP address group.
	Description string `json:"description,omitempty"`

	// Source IP addresses added to the group.
	IPAddresses []string `json:"ipAddresses,omitempty"`

	// If set to true, the destination IP address group is non-editable. This field is applicable only to predefined IP address groups, which cannot be modified.
	IsNonEditable bool `json:"isNonEditable,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 *IPSourceGroups) (*IPSourceGroups, error)

func (*Service) Delete

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

func (*Service) Get

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

func (*Service) GetAll

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

func (*Service) GetByName

func (service *Service) GetByName(ipSourceGroupsName string) (*IPSourceGroups, error)

func (*Service) Update

func (service *Service) Update(ipGroupID int, ipGroup *IPSourceGroups) (*IPSourceGroups, error)

Jump to

Keyboard shortcuts

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