staticips

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 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 LastModifiedBy

type LastModifiedBy struct {
	ID         int                    `json:"id,omitempty"`
	Name       string                 `json:"name,omitempty"`
	Extensions map[string]interface{} `json:"extensions,omitempty"`
}

type ManagedBy

type ManagedBy struct {
	ID         int                    `json:"id,omitempty"`
	Name       string                 `json:"name,omitempty"`
	Extensions map[string]interface{} `json:"extensions,omitempty"`
}

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) Create

func (service *Service) Create(staticIpID *StaticIP) (*StaticIP, *http.Response, error)

func (*Service) Delete

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

func (*Service) Get

func (service *Service) Get(staticIpID int) (*StaticIP, error)

func (*Service) GetAll added in v0.0.4

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

func (*Service) GetByIPAddress

func (service *Service) GetByIPAddress(address string) (*StaticIP, error)

func (*Service) Update

func (service *Service) Update(staticIpID int, staticIP *StaticIP) (*StaticIP, *http.Response, error)

type StaticIP

type StaticIP struct {
	ID                   int             `json:"id,omitempty"`
	IpAddress            string          `json:"ipAddress"`
	GeoOverride          bool            `json:"geoOverride"`
	Latitude             float64         `json:"latitude,omitempty"`
	Longitude            float64         `json:"longitude,omitempty"`
	RoutableIP           bool            `json:"routableIP,omitempty"`
	LastModificationTime int             `json:"lastModificationTime"`
	Comment              string          `json:"comment,omitempty"`
	ManagedBy            *ManagedBy      `json:"managedBy,omitempty"`      // Should probably move this to a common package. Used by multiple resources
	LastModifiedBy       *LastModifiedBy `json:"lastModifiedBy,omitempty"` // Should probably move this to a common package. Used by multiple resources
}

Gets all provisioned static IP addresses.

Jump to

Keyboard shortcuts

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