Documentation ¶
Index ¶
- type IPSourceGroups
- type Service
- func (service *Service) Create(ipGroupID *IPSourceGroups) (*IPSourceGroups, error)
- func (service *Service) Delete(ipGroupID int) (*http.Response, error)
- func (service *Service) Get(ipGroupID int) (*IPSourceGroups, error)
- func (service *Service) GetAll() ([]IPSourceGroups, error)
- func (service *Service) GetByName(ipSourceGroupsName string) (*IPSourceGroups, error)
- func (service *Service) Update(ipGroupID int, ipGroup *IPSourceGroups) (*IPSourceGroups, error)
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 ¶
func (*Service) Create ¶
func (service *Service) Create(ipGroupID *IPSourceGroups) (*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)
Click to show internal directories.
Click to hide internal directories.