shared

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessMethod added in v0.3.0

type AccessMethod string
const (
	AccessMethodClient     AccessMethod = "Client"
	AccessMethodClientless AccessMethod = "Clientless"
)

func (AccessMethod) ToPointer added in v0.3.0

func (e AccessMethod) ToPointer() *AccessMethod

func (*AccessMethod) UnmarshalJSON added in v0.3.0

func (e *AccessMethod) UnmarshalJSON(data []byte) error

type ActionName added in v0.3.0

type ActionName string
const (
	ActionNameAllow ActionName = "allow"
	ActionNameBlock ActionName = "block"
)

func (ActionName) ToPointer added in v0.3.0

func (e ActionName) ToPointer() *ActionName

func (*ActionName) UnmarshalJSON added in v0.3.0

func (e *ActionName) UnmarshalJSON(data []byte) error

type Actions added in v0.3.0

type Actions string
const (
	ActionsAllow       Actions = "allow"
	ActionsBlock       Actions = "block"
	ActionsAlert       Actions = "alert"
	ActionsQuanrantine Actions = "quanrantine"
	ActionsBypass      Actions = "bypass"
)

func (Actions) ToPointer added in v0.3.0

func (e Actions) ToPointer() *Actions

func (*Actions) UnmarshalJSON added in v0.3.0

func (e *Actions) UnmarshalJSON(data []byte) error

type Activities added in v0.3.0

type Activities struct {
	Activity          *Activity `json:"activity,omitempty"`
	ListOfConstraints []string  `json:"list_of_constraints,omitempty"`
}

func (*Activities) GetActivity added in v0.3.0

func (o *Activities) GetActivity() *Activity

func (*Activities) GetListOfConstraints added in v0.3.0

func (o *Activities) GetListOfConstraints() []string

type Activity added in v0.3.0

type Activity string
const (
	ActivityAny Activity = "any"
)

func (Activity) ToPointer added in v0.3.0

func (e Activity) ToPointer() *Activity

func (*Activity) UnmarshalJSON added in v0.3.0

func (e *Activity) UnmarshalJSON(data []byte) error

type MatchCriteriaAction added in v0.3.0

type MatchCriteriaAction struct {
	ActionName *ActionName `json:"action_name,omitempty"`
}

func (*MatchCriteriaAction) GetActionName added in v0.3.0

func (o *MatchCriteriaAction) GetActionName() *ActionName

type NpaPolicyRequest

type NpaPolicyRequest struct {
	Description *string            `json:"description,omitempty"`
	Enabled     *string            `json:"enabled,omitempty"`
	GroupID     *string            `json:"group_id,omitempty"`
	GroupName   *string            `json:"group_name,omitempty"`
	RuleData    *NpaPolicyRuleData `json:"rule_data,omitempty"`
	RuleName    *string            `json:"rule_name,omitempty"`
	RuleOrder   *RuleOrder         `json:"rule_order,omitempty"`
}

func (*NpaPolicyRequest) GetDescription

func (o *NpaPolicyRequest) GetDescription() *string

func (*NpaPolicyRequest) GetEnabled

func (o *NpaPolicyRequest) GetEnabled() *string

func (*NpaPolicyRequest) GetGroupID

func (o *NpaPolicyRequest) GetGroupID() *string

func (*NpaPolicyRequest) GetGroupName

func (o *NpaPolicyRequest) GetGroupName() *string

func (*NpaPolicyRequest) GetRuleData

func (o *NpaPolicyRequest) GetRuleData() *NpaPolicyRuleData

func (*NpaPolicyRequest) GetRuleName

func (o *NpaPolicyRequest) GetRuleName() *string

func (*NpaPolicyRequest) GetRuleOrder

func (o *NpaPolicyRequest) GetRuleOrder() *RuleOrder

type NpaPolicyResponseItem

type NpaPolicyResponseItem struct {
	GroupID  *int64             `json:"group_id,omitempty"`
	RuleData *NpaPolicyRuleData `json:"rule_data,omitempty"`
	RuleID   *int64             `json:"rule_id,omitempty"`
	RuleName *string            `json:"rule_name,omitempty"`
}

func (*NpaPolicyResponseItem) GetGroupID

func (o *NpaPolicyResponseItem) GetGroupID() *int64

func (*NpaPolicyResponseItem) GetRuleData

func (o *NpaPolicyResponseItem) GetRuleData() *NpaPolicyRuleData

func (*NpaPolicyResponseItem) GetRuleID

func (o *NpaPolicyResponseItem) GetRuleID() *int64

func (*NpaPolicyResponseItem) GetRuleName

func (o *NpaPolicyResponseItem) GetRuleName() *string

type NpaPolicyRuleData

type NpaPolicyRuleData struct {
	AccessMethod              *AccessMethod               `json:"access_method,omitempty"`
	BNegateNetLocation        *bool                       `json:"b_negateNetLocation,omitempty"`
	BNegateSrcCountries       *bool                       `json:"b_negateSrcCountries,omitempty"`
	Classification            *string                     `json:"classification,omitempty"`
	DlpActions                []NpaPolicyRuleDlp          `json:"dlp_actions,omitempty"`
	ExternalDlp               *bool                       `json:"external_dlp,omitempty"`
	JSONVersion               *int64                      `json:"json_version,omitempty"`
	MatchCriteriaAction       *MatchCriteriaAction        `json:"match_criteria_action,omitempty"`
	NetLocationObj            []string                    `json:"net_location_obj,omitempty"`
	OrganizationUnits         []string                    `json:"organization_units,omitempty"`
	PolicyType                *PolicyType                 `json:"policy_type,omitempty"`
	PrivateAppIds             []string                    `json:"privateAppIds,omitempty"`
	PrivateAppTagIds          []string                    `json:"privateAppTagIds,omitempty"`
	PrivateAppTags            []string                    `json:"privateAppTags,omitempty"`
	PrivateApps               []string                    `json:"privateApps,omitempty"`
	PrivateAppsWithActivities []PrivateAppsWithActivities `json:"privateAppsWithActivities,omitempty"`
	ShowDlpProfileActionTable *bool                       `json:"show_dlp_profile_action_table,omitempty"`
	SrcCountries              []string                    `json:"srcCountries,omitempty"`
	UserGroups                []string                    `json:"userGroups,omitempty"`
	UserType                  *UserType                   `json:"userType,omitempty"`
	Users                     []string                    `json:"users,omitempty"`
	Version                   *int64                      `json:"version,omitempty"`
}

func (*NpaPolicyRuleData) GetAccessMethod

func (o *NpaPolicyRuleData) GetAccessMethod() *AccessMethod

func (*NpaPolicyRuleData) GetBNegateNetLocation

func (o *NpaPolicyRuleData) GetBNegateNetLocation() *bool

func (*NpaPolicyRuleData) GetBNegateSrcCountries

func (o *NpaPolicyRuleData) GetBNegateSrcCountries() *bool

func (*NpaPolicyRuleData) GetClassification

func (o *NpaPolicyRuleData) GetClassification() *string

func (*NpaPolicyRuleData) GetDlpActions

func (o *NpaPolicyRuleData) GetDlpActions() []NpaPolicyRuleDlp

func (*NpaPolicyRuleData) GetExternalDlp

func (o *NpaPolicyRuleData) GetExternalDlp() *bool

func (*NpaPolicyRuleData) GetJSONVersion

func (o *NpaPolicyRuleData) GetJSONVersion() *int64

func (*NpaPolicyRuleData) GetMatchCriteriaAction

func (o *NpaPolicyRuleData) GetMatchCriteriaAction() *MatchCriteriaAction

func (*NpaPolicyRuleData) GetNetLocationObj

func (o *NpaPolicyRuleData) GetNetLocationObj() []string

func (*NpaPolicyRuleData) GetOrganizationUnits

func (o *NpaPolicyRuleData) GetOrganizationUnits() []string

func (*NpaPolicyRuleData) GetPolicyType

func (o *NpaPolicyRuleData) GetPolicyType() *PolicyType

func (*NpaPolicyRuleData) GetPrivateAppIds

func (o *NpaPolicyRuleData) GetPrivateAppIds() []string

func (*NpaPolicyRuleData) GetPrivateAppTagIds

func (o *NpaPolicyRuleData) GetPrivateAppTagIds() []string

func (*NpaPolicyRuleData) GetPrivateAppTags

func (o *NpaPolicyRuleData) GetPrivateAppTags() []string

func (*NpaPolicyRuleData) GetPrivateApps

func (o *NpaPolicyRuleData) GetPrivateApps() []string

func (*NpaPolicyRuleData) GetPrivateAppsWithActivities

func (o *NpaPolicyRuleData) GetPrivateAppsWithActivities() []PrivateAppsWithActivities

func (*NpaPolicyRuleData) GetShowDlpProfileActionTable

func (o *NpaPolicyRuleData) GetShowDlpProfileActionTable() *bool

func (*NpaPolicyRuleData) GetSrcCountries

func (o *NpaPolicyRuleData) GetSrcCountries() []string

func (*NpaPolicyRuleData) GetUserGroups

func (o *NpaPolicyRuleData) GetUserGroups() []string

func (*NpaPolicyRuleData) GetUserType

func (o *NpaPolicyRuleData) GetUserType() *UserType

func (*NpaPolicyRuleData) GetUsers

func (o *NpaPolicyRuleData) GetUsers() []string

func (*NpaPolicyRuleData) GetVersion

func (o *NpaPolicyRuleData) GetVersion() *int64

type NpaPolicyRuleDlp

type NpaPolicyRuleDlp struct {
	Actions    []Actions `json:"actions,omitempty"`
	DlpProfile *string   `json:"dlp_profile,omitempty"`
}

func (*NpaPolicyRuleDlp) GetActions

func (o *NpaPolicyRuleDlp) GetActions() []Actions

func (*NpaPolicyRuleDlp) GetDlpProfile

func (o *NpaPolicyRuleDlp) GetDlpProfile() *string

type Order added in v0.3.0

type Order string
const (
	OrderTop    Order = "top"
	OrderBottom Order = "bottom"
	OrderBefore Order = "before"
	OrderAfter  Order = "after"
)

func (Order) ToPointer added in v0.3.0

func (e Order) ToPointer() *Order

func (*Order) UnmarshalJSON added in v0.3.0

func (e *Order) UnmarshalJSON(data []byte) error

type PolicyType added in v0.3.0

type PolicyType string
const (
	PolicyTypePrivateApp PolicyType = "private-app"
)

func (PolicyType) ToPointer added in v0.3.0

func (e PolicyType) ToPointer() *PolicyType

func (*PolicyType) UnmarshalJSON added in v0.3.0

func (e *PolicyType) UnmarshalJSON(data []byte) error

type PrivateAppsWithActivities added in v0.3.0

type PrivateAppsWithActivities struct {
	Activities []Activities `json:"activities,omitempty"`
	AppName    *string      `json:"appName,omitempty"`
}

func (*PrivateAppsWithActivities) GetActivities added in v0.3.0

func (o *PrivateAppsWithActivities) GetActivities() []Activities

func (*PrivateAppsWithActivities) GetAppName added in v0.3.0

func (o *PrivateAppsWithActivities) GetAppName() *string

type RuleOrder added in v0.3.0

type RuleOrder struct {
	Order    *Order  `json:"order,omitempty"`
	Position *int64  `json:"position,omitempty"`
	RuleID   *int64  `json:"rule_id,omitempty"`
	RuleName *string `json:"rule_name,omitempty"`
}

func (*RuleOrder) GetOrder added in v0.3.0

func (o *RuleOrder) GetOrder() *Order

func (*RuleOrder) GetPosition added in v0.3.0

func (o *RuleOrder) GetPosition() *int64

func (*RuleOrder) GetRuleID added in v0.3.0

func (o *RuleOrder) GetRuleID() *int64

func (*RuleOrder) GetRuleName added in v0.3.0

func (o *RuleOrder) GetRuleName() *string

type Security

type Security struct {
	APIKey string `security:"scheme,type=apiKey,subtype=header,name=Netskope-Api-Token"`
}

func (*Security) GetAPIKey

func (o *Security) GetAPIKey() string

type UserType added in v0.3.0

type UserType string
const (
	UserTypeUser UserType = "user"
)

func (UserType) ToPointer added in v0.3.0

func (e UserType) ToPointer() *UserType

func (*UserType) UnmarshalJSON added in v0.3.0

func (e *UserType) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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