inspection_profile

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 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 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 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"`
	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"`
	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"`
	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"`
	ControlInfoResource               []ControlInfoResource     `json:"controlsInfo,omitempty"`
	CustomControls                    []InspectionCustomControl `json:"customControls"`
	PredefinedControls                []PredefinedControls      `json:"predefinedControls"`
}

type PatchQuery

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

type PredefinedControls

type PredefinedControls 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"`
	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"`
	Severity                         string                   `json:"severity,omitempty"`
	Version                          string                   `json:"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 added in v0.0.4

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)

Jump to

Keyboard shortcuts

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