inspection_profile

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociatedCustomers

type AssociatedCustomers struct {
	CustomerID           string `json:"customerId,omitempty"`
	ExcludeConstellation bool   `json:"excludeConstellation,omitempty"`
	IsPartner            bool   `json:"isPartner,omitempty"`
	Name                 string `json:"name,omitempty"`
}

type AssociatedProfileNames

type AssociatedProfileNames struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type ControlInfoResource

type ControlInfoResource struct {
	ControlType string `json:"controlType,omitempty"`
	Count       string `json:"count,omitempty"`
}

type CustomCommonControls

type CustomCommonControls struct {
	ID                               string                   `json:"id,omitempty"`
	Name                             string                   `json:"name,omitempty"`
	Action                           string                   `json:"action,omitempty"`
	ActionValue                      string                   `json:"actionValue,omitempty"`
	AssociatedInspectionProfileNames []AssociatedProfileNames `json:"associatedInspectionProfileNames,omitempty"`
	Attachment                       string                   `json:"attachment,omitempty"`
	ControlGroup                     string                   `json:"controlGroup,omitempty"`
	ControlNumber                    string                   `json:"controlNumber,omitempty"`
	ControlType                      string                   `json:"controlType,omitempty"`
	CreationTime                     string                   `json:"creationTime,omitempty"`
	DefaultAction                    string                   `json:"defaultAction,omitempty"`
	DefaultActionValue               string                   `json:"defaultActionValue,omitempty"`
	Description                      string                   `json:"description,omitempty"`
	ModifiedBy                       string                   `json:"modifiedBy,omitempty"`
	ModifiedTime                     string                   `json:"modifiedTime,omitempty"`
	ParanoiaLevel                    string                   `json:"paranoiaLevel,omitempty"`
	ProtocolType                     string                   `json:"protocolType,omitempty"`
	Severity                         string                   `json:"severity,omitempty"`
	Version                          string                   `json:"version,omitempty"`
}

type InspectionCustomControl

type InspectionCustomControl struct {
	Action                           string                   `json:"action,omitempty"`
	ActionValue                      string                   `json:"actionValue,omitempty"`
	AssociatedInspectionProfileNames []AssociatedProfileNames `json:"associatedInspectionProfileNames,omitempty"`
	Rules                            []common.Rules           `json:"rules,omitempty"`
	ControlNumber                    string                   `json:"controlNumber,omitempty"`
	ControlRuleJson                  string                   `json:"controlRuleJson,omitempty"`
	ControlType                      string                   `json:"controlType,omitempty"`
	CreationTime                     string                   `json:"creationTime,omitempty"`
	DefaultAction                    string                   `json:"defaultAction,omitempty"`
	DefaultActionValue               string                   `json:"defaultActionValue,omitempty"`
	Description                      string                   `json:"description,omitempty"`
	ID                               string                   `json:"id,omitempty"`
	ModifiedBy                       string                   `json:"modifiedBy,omitempty"`
	ModifiedTime                     string                   `json:"modifiedTime,omitempty"`
	Name                             string                   `json:"name,omitempty"`
	ProtocolType                     string                   `json:"protocolType,omitempty"`
	ParanoiaLevel                    string                   `json:"paranoiaLevel,omitempty"`
	Severity                         string                   `json:"severity,omitempty"`
	Type                             string                   `json:"type,omitempty"`
	Version                          string                   `json:"version,omitempty"`
}

type InspectionProfile

type InspectionProfile struct {
	ID                                string                    `json:"id,omitempty"`
	CommonGlobalOverrideActionsConfig map[string]interface{}    `json:"commonGlobalOverrideActionsConfig,omitempty"`
	CreationTime                      string                    `json:"creationTime,omitempty"`
	ZSDefinedControlChoice            string                    `json:"zsDefinedControlChoice,omitempty"`
	Description                       string                    `json:"description,omitempty"`
	GlobalControlActions              []string                  `json:"globalControlActions,omitempty"`
	IncarnationNumber                 string                    `json:"incarnationNumber,omitempty"`
	ModifiedBy                        string                    `json:"modifiedBy,omitempty"`
	ModifiedTime                      string                    `json:"modifiedTime,omitempty"`
	Name                              string                    `json:"name,omitempty"`
	ParanoiaLevel                     string                    `json:"paranoiaLevel,omitempty"`
	PredefinedControlsVersion         string                    `json:"predefinedControlsVersion,omitempty"`
	CheckControlDeploymentStatus      bool                      `json:"checkControlDeploymentStatus,omitempty"`
	ControlInfoResource               []ControlInfoResource     `json:"controlsInfo,omitempty"`
	CustomControls                    []InspectionCustomControl `json:"customControls"`
	PredefinedControls                []CustomCommonControls    `json:"predefinedControls"`
	WebSocketControls                 []CustomCommonControls    `json:"websocketControls"`
	ThreatLabzControls                []ThreatLabzControls      `json:"threatlabzControls"`
}

type PatchQuery

type PatchQuery struct {
	Version string `json:"version,omitempty" url:"version,omitempty"`
}

type Service

type Service struct {
	Client *zpa.Client
}

func New

func New(c *zpa.Client) *Service

func (*Service) Create

func (service *Service) Create(inspectionProfile InspectionProfile) (*InspectionProfile, *http.Response, error)

func (*Service) Delete

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

func (*Service) Get

func (service *Service) Get(profileID string) (*InspectionProfile, *http.Response, error)

func (*Service) GetAll

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

func (*Service) GetByName

func (service *Service) GetByName(profileName string) (*InspectionProfile, *http.Response, error)

func (*Service) Patch

func (service *Service) Patch(profileID string, inspectionProfile *InspectionProfile) (*http.Response, error)

func (*Service) PutAssociate

func (service *Service) PutAssociate(profileID string, inspectionProfile *InspectionProfile) (*http.Response, error)

func (*Service) PutDeassociate

func (service *Service) PutDeassociate(profileID string, inspectionProfile *InspectionProfile) (*http.Response, error)

func (*Service) Update

func (service *Service) Update(profileID string, inspectionProfile *InspectionProfile) (*http.Response, error)

type ThreatLabzControls

type ThreatLabzControls struct {
	ID                               string                   `json:"id,omitempty"`
	Name                             string                   `json:"name,omitempty"`
	Enabled                          bool                     `json:"enabled,omitempty"`
	Action                           string                   `json:"action,omitempty"`
	ActionValue                      string                   `json:"actionValue,omitempty"`
	AssociatedCustomers              []AssociatedCustomers    `json:"associatedCustomers,omitempty"`
	AssociatedInspectionProfileNames []AssociatedProfileNames `json:"associatedInspectionProfileNames,omitempty"`
	Attachment                       string                   `json:"attachment,omitempty"`
	ControlGroup                     string                   `json:"controlGroup,omitempty"`
	ControlNumber                    string                   `json:"controlNumber,omitempty"`
	ControlType                      string                   `json:"controlType,omitempty"`
	CreationTime                     string                   `json:"creationTime,omitempty"`
	DefaultAction                    string                   `json:"defaultAction,omitempty"`
	DefaultActionValue               string                   `json:"defaultActionValue,omitempty"`
	Description                      string                   `json:"description,omitempty"`
	ModifiedBy                       string                   `json:"modifiedBy,omitempty"`
	ModifiedTime                     string                   `json:"modifiedTime,omitempty"`
	ParanoiaLevel                    string                   `json:"paranoiaLevel,omitempty"`
	ProtocolType                     string                   `json:"protocolType,omitempty"`
	Severity                         string                   `json:"severity,omitempty"`
	Version                          string                   `json:"version,omitempty"`
	EngineVersion                    string                   `json:"engineVersion,omitempty"`
	LastDeploymentTime               string                   `json:"lastDeploymentTime,omitempty"`
	RuleDeploymentState              string                   `json:"ruleDeploymentState,omitempty"`
	RuleMetadata                     string                   `json:"ruleMetadata,omitempty"`
	RuleProcessor                    string                   `json:"ruleProcessor,omitempty"`
	RulesetName                      string                   `json:"rulesetName,omitempty"`
	RulesetVersion                   string                   `json:"rulesetVersion,omitempty"`
	ZscalerInfoUrl                   string                   `json:"zscalerInfoUrl,omitempty"`
}

Jump to

Keyboard shortcuts

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