applicationsegment

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 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 AppServerGroups

type AppServerGroups struct {
	ConfigSpace      string `json:"configSpace,omitempty"`
	CreationTime     string `json:"creationTime,omitempty"`
	Description      string `json:"description,omitempty"`
	Enabled          bool   `json:"enabled"`
	ID               string `json:"id,omitempty"`
	DynamicDiscovery bool   `json:"dynamicDiscovery"`
	ModifiedBy       string `json:"modifiedBy,omitempty"`
	ModifiedTime     string `json:"modifiedTime,omitempty"`
	Name             string `json:"name"`
}

type ApplicationSegmentResource

type ApplicationSegmentResource struct {
	ID                        string                `json:"id,omitempty"`
	DomainNames               []string              `json:"domainNames,omitempty"`
	Name                      string                `json:"name,omitempty"`
	Description               string                `json:"description,omitempty"`
	Enabled                   bool                  `json:"enabled"`
	PassiveHealthEnabled      bool                  `json:"passiveHealthEnabled"`
	DoubleEncrypt             bool                  `json:"doubleEncrypt"`
	ConfigSpace               string                `json:"configSpace,omitempty"`
	Applications              string                `json:"applications,omitempty"`
	BypassType                string                `json:"bypassType,omitempty"`
	HealthCheckType           string                `json:"healthCheckType,omitempty"`
	IsCnameEnabled            bool                  `json:"isCnameEnabled"`
	IpAnchored                bool                  `json:"ipAnchored"`
	HealthReporting           string                `json:"healthReporting,omitempty"`
	SelectConnectorCloseToApp bool                  `json:"selectConnectorCloseToApp"`
	IcmpAccessType            string                `json:"icmpAccessType,omitempty"`
	SegmentGroupID            string                `json:"segmentGroupId"`
	SegmentGroupName          string                `json:"segmentGroupName,omitempty"`
	CreationTime              string                `json:"creationTime,omitempty"`
	ModifiedBy                string                `json:"modifiedBy,omitempty"`
	ModifiedTime              string                `json:"modifiedTime,omitempty"`
	TCPAppPortRange           []common.NetworkPorts `json:"tcpPortRange,omitempty"`
	UDPAppPortRange           []common.NetworkPorts `json:"udpPortRange,omitempty"`
	ServerGroups              []AppServerGroups     `json:"serverGroups,omitempty"`
	DefaultIdleTimeout        string                `json:"defaultIdleTimeout,omitempty"`
	DefaultMaxAge             string                `json:"defaultMaxAge,omitempty"`
}

type Service

type Service struct {
	Client *zpa.Client
}

func New

func New(c *zpa.Client) *Service

func (*Service) Create

func (*Service) Delete

func (service *Service) Delete(applicationId string) (*http.Response, error)

func (*Service) Get

func (service *Service) Get(applicationID string) (*ApplicationSegmentResource, *http.Response, error)

func (*Service) GetAll added in v0.0.4

func (service *Service) GetAll() ([]ApplicationSegmentResource, *http.Response, error)

func (*Service) GetByName

func (service *Service) GetByName(appName string) (*ApplicationSegmentResource, *http.Response, error)

func (*Service) Update

func (service *Service) Update(applicationId string, appSegmentRequest ApplicationSegmentResource) (*http.Response, error)

Jump to

Keyboard shortcuts

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