smartwebsecurity

package
v0.0.0-...-aeb3b05 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 15 Imported by: 3

Documentation

Index

Constants

View Source
const (
	WafProfileService_Get_FullMethodName    = "/yandex.cloud.smartwebsecurity.v1.waf.WafProfileService/Get"
	WafProfileService_List_FullMethodName   = "/yandex.cloud.smartwebsecurity.v1.waf.WafProfileService/List"
	WafProfileService_Create_FullMethodName = "/yandex.cloud.smartwebsecurity.v1.waf.WafProfileService/Create"
	WafProfileService_Update_FullMethodName = "/yandex.cloud.smartwebsecurity.v1.waf.WafProfileService/Update"
	WafProfileService_Delete_FullMethodName = "/yandex.cloud.smartwebsecurity.v1.waf.WafProfileService/Delete"
)
View Source
const (
	RuleSetDescriptorService_Get_FullMethodName = "/yandex.cloud.smartwebsecurity.v1.waf.RuleSetDescriptorService/Get"
)

Variables

View Source
var (
	WafProfile_AnalyzeRequestBody_Action_name = map[int32]string{
		0: "ACTION_UNSPECIFIED",
		1: "IGNORE",
		2: "DENY",
	}
	WafProfile_AnalyzeRequestBody_Action_value = map[string]int32{
		"ACTION_UNSPECIFIED": 0,
		"IGNORE":             1,
		"DENY":               2,
	}
)

Enum value maps for WafProfile_AnalyzeRequestBody_Action.

View Source
var File_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_service_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_smartwebsecurity_v1_waf_waf_profile_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_smartwebsecurity_v1_waf_waf_profile_service_proto protoreflect.FileDescriptor
View Source
var RuleSetDescriptorService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.smartwebsecurity.v1.waf.RuleSetDescriptorService",
	HandlerType: (*RuleSetDescriptorServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _RuleSetDescriptorService_Get_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor_service.proto",
}

RuleSetDescriptorService_ServiceDesc is the grpc.ServiceDesc for RuleSetDescriptorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var WafProfileService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.smartwebsecurity.v1.waf.WafProfileService",
	HandlerType: (*WafProfileServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _WafProfileService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _WafProfileService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _WafProfileService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _WafProfileService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _WafProfileService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/smartwebsecurity/v1/waf/waf_profile_service.proto",
}

WafProfileService_ServiceDesc is the grpc.ServiceDesc for WafProfileService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterRuleSetDescriptorServiceServer

func RegisterRuleSetDescriptorServiceServer(s grpc.ServiceRegistrar, srv RuleSetDescriptorServiceServer)

func RegisterWafProfileServiceServer

func RegisterWafProfileServiceServer(s grpc.ServiceRegistrar, srv WafProfileServiceServer)

Types

type CreateWafProfileMetadata

type CreateWafProfileMetadata struct {

	// ID of the WAF profile that is being created.
	WafProfileId string `protobuf:"bytes,1,opt,name=waf_profile_id,json=wafProfileId,proto3" json:"waf_profile_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateWafProfileMetadata) Descriptor deprecated

func (*CreateWafProfileMetadata) Descriptor() ([]byte, []int)

Deprecated: Use CreateWafProfileMetadata.ProtoReflect.Descriptor instead.

func (*CreateWafProfileMetadata) GetWafProfileId

func (x *CreateWafProfileMetadata) GetWafProfileId() string

func (*CreateWafProfileMetadata) ProtoMessage

func (*CreateWafProfileMetadata) ProtoMessage()

func (*CreateWafProfileMetadata) ProtoReflect

func (x *CreateWafProfileMetadata) ProtoReflect() protoreflect.Message

func (*CreateWafProfileMetadata) Reset

func (x *CreateWafProfileMetadata) Reset()

func (*CreateWafProfileMetadata) SetWafProfileId

func (m *CreateWafProfileMetadata) SetWafProfileId(v string)

func (*CreateWafProfileMetadata) String

func (x *CreateWafProfileMetadata) String() string

type CreateWafProfileRequest

type CreateWafProfileRequest struct {

	// ID of the folder to create a WAF profile in.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Name of the WAF profile. The name is unique within the folder. 1-50 characters long.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Optional description of the WAF profile.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Labels as “ key:value “ pairs. Maximum of 64 per resource.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Settings for each rule in rule set.
	Rules []*WafProfileRule `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"`
	// List of exclusion rules. See [Rules](/docs/smartwebsecurity/concepts/waf#exclusion-rules).
	ExclusionRules []*WafProfileExclusionRule `protobuf:"bytes,6,rep,name=exclusion_rules,json=exclusionRules,proto3" json:"exclusion_rules,omitempty"`
	// Types that are assignable to RuleSet:
	//
	//	*CreateWafProfileRequest_CoreRuleSet
	RuleSet isCreateWafProfileRequest_RuleSet `protobuf_oneof:"rule_set"`
	// Parameters for request body analyzer.
	AnalyzeRequestBody *WafProfile_AnalyzeRequestBody `protobuf:"bytes,8,opt,name=analyze_request_body,json=analyzeRequestBody,proto3" json:"analyze_request_body,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateWafProfileRequest) Descriptor deprecated

func (*CreateWafProfileRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateWafProfileRequest.ProtoReflect.Descriptor instead.

func (*CreateWafProfileRequest) GetAnalyzeRequestBody

func (x *CreateWafProfileRequest) GetAnalyzeRequestBody() *WafProfile_AnalyzeRequestBody

func (*CreateWafProfileRequest) GetCoreRuleSet

func (x *CreateWafProfileRequest) GetCoreRuleSet() *WafProfile_CoreRuleSet

func (*CreateWafProfileRequest) GetDescription

func (x *CreateWafProfileRequest) GetDescription() string

func (*CreateWafProfileRequest) GetExclusionRules

func (x *CreateWafProfileRequest) GetExclusionRules() []*WafProfileExclusionRule

func (*CreateWafProfileRequest) GetFolderId

func (x *CreateWafProfileRequest) GetFolderId() string

func (*CreateWafProfileRequest) GetLabels

func (x *CreateWafProfileRequest) GetLabels() map[string]string

func (*CreateWafProfileRequest) GetName

func (x *CreateWafProfileRequest) GetName() string

func (*CreateWafProfileRequest) GetRuleSet

func (m *CreateWafProfileRequest) GetRuleSet() isCreateWafProfileRequest_RuleSet

func (*CreateWafProfileRequest) GetRules

func (x *CreateWafProfileRequest) GetRules() []*WafProfileRule

func (*CreateWafProfileRequest) ProtoMessage

func (*CreateWafProfileRequest) ProtoMessage()

func (*CreateWafProfileRequest) ProtoReflect

func (x *CreateWafProfileRequest) ProtoReflect() protoreflect.Message

func (*CreateWafProfileRequest) Reset

func (x *CreateWafProfileRequest) Reset()

func (*CreateWafProfileRequest) SetAnalyzeRequestBody

func (m *CreateWafProfileRequest) SetAnalyzeRequestBody(v *WafProfile_AnalyzeRequestBody)

func (*CreateWafProfileRequest) SetCoreRuleSet

func (m *CreateWafProfileRequest) SetCoreRuleSet(v *WafProfile_CoreRuleSet)

func (*CreateWafProfileRequest) SetDescription

func (m *CreateWafProfileRequest) SetDescription(v string)

func (*CreateWafProfileRequest) SetExclusionRules

func (m *CreateWafProfileRequest) SetExclusionRules(v []*WafProfileExclusionRule)

func (*CreateWafProfileRequest) SetFolderId

func (m *CreateWafProfileRequest) SetFolderId(v string)

func (*CreateWafProfileRequest) SetLabels

func (m *CreateWafProfileRequest) SetLabels(v map[string]string)

func (*CreateWafProfileRequest) SetName

func (m *CreateWafProfileRequest) SetName(v string)

func (*CreateWafProfileRequest) SetRuleSet

func (*CreateWafProfileRequest) SetRules

func (m *CreateWafProfileRequest) SetRules(v []*WafProfileRule)

func (*CreateWafProfileRequest) String

func (x *CreateWafProfileRequest) String() string

type CreateWafProfileRequest_CoreRuleSet

type CreateWafProfileRequest_CoreRuleSet struct {
	// Core rule set settings. See [Basic rule set](/docs/smartwebsecurity/concepts/waf#rules-set) for details.
	CoreRuleSet *WafProfile_CoreRuleSet `protobuf:"bytes,7,opt,name=core_rule_set,json=coreRuleSet,proto3,oneof"`
}

type CreateWafProfileRequest_RuleSet

type CreateWafProfileRequest_RuleSet = isCreateWafProfileRequest_RuleSet

type DeleteWafProfileMetadata

type DeleteWafProfileMetadata struct {

	// ID of the WafProfile resource that is being deleted.
	WafProfileId string `protobuf:"bytes,1,opt,name=waf_profile_id,json=wafProfileId,proto3" json:"waf_profile_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteWafProfileMetadata) Descriptor deprecated

func (*DeleteWafProfileMetadata) Descriptor() ([]byte, []int)

Deprecated: Use DeleteWafProfileMetadata.ProtoReflect.Descriptor instead.

func (*DeleteWafProfileMetadata) GetWafProfileId

func (x *DeleteWafProfileMetadata) GetWafProfileId() string

func (*DeleteWafProfileMetadata) ProtoMessage

func (*DeleteWafProfileMetadata) ProtoMessage()

func (*DeleteWafProfileMetadata) ProtoReflect

func (x *DeleteWafProfileMetadata) ProtoReflect() protoreflect.Message

func (*DeleteWafProfileMetadata) Reset

func (x *DeleteWafProfileMetadata) Reset()

func (*DeleteWafProfileMetadata) SetWafProfileId

func (m *DeleteWafProfileMetadata) SetWafProfileId(v string)

func (*DeleteWafProfileMetadata) String

func (x *DeleteWafProfileMetadata) String() string

type DeleteWafProfileRequest

type DeleteWafProfileRequest struct {

	// ID of the WAF profile to delete.
	WafProfileId string `protobuf:"bytes,1,opt,name=waf_profile_id,json=wafProfileId,proto3" json:"waf_profile_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteWafProfileRequest) Descriptor deprecated

func (*DeleteWafProfileRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteWafProfileRequest.ProtoReflect.Descriptor instead.

func (*DeleteWafProfileRequest) GetWafProfileId

func (x *DeleteWafProfileRequest) GetWafProfileId() string

func (*DeleteWafProfileRequest) ProtoMessage

func (*DeleteWafProfileRequest) ProtoMessage()

func (*DeleteWafProfileRequest) ProtoReflect

func (x *DeleteWafProfileRequest) ProtoReflect() protoreflect.Message

func (*DeleteWafProfileRequest) Reset

func (x *DeleteWafProfileRequest) Reset()

func (*DeleteWafProfileRequest) SetWafProfileId

func (m *DeleteWafProfileRequest) SetWafProfileId(v string)

func (*DeleteWafProfileRequest) String

func (x *DeleteWafProfileRequest) String() string

type GetRuleSetDescriptorRequest

type GetRuleSetDescriptorRequest struct {

	// Name of the RuleSetDescriptor resource to return.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Version of the RuleSetDescriptor resource to return.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRuleSetDescriptorRequest) Descriptor deprecated

func (*GetRuleSetDescriptorRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRuleSetDescriptorRequest.ProtoReflect.Descriptor instead.

func (*GetRuleSetDescriptorRequest) GetName

func (x *GetRuleSetDescriptorRequest) GetName() string

func (*GetRuleSetDescriptorRequest) GetVersion

func (x *GetRuleSetDescriptorRequest) GetVersion() string

func (*GetRuleSetDescriptorRequest) ProtoMessage

func (*GetRuleSetDescriptorRequest) ProtoMessage()

func (*GetRuleSetDescriptorRequest) ProtoReflect

func (*GetRuleSetDescriptorRequest) Reset

func (x *GetRuleSetDescriptorRequest) Reset()

func (*GetRuleSetDescriptorRequest) SetName

func (m *GetRuleSetDescriptorRequest) SetName(v string)

func (*GetRuleSetDescriptorRequest) SetVersion

func (m *GetRuleSetDescriptorRequest) SetVersion(v string)

func (*GetRuleSetDescriptorRequest) String

func (x *GetRuleSetDescriptorRequest) String() string

type GetWafProfileRequest

type GetWafProfileRequest struct {

	// ID of the WafProfile resource to return.
	WafProfileId string `protobuf:"bytes,1,opt,name=waf_profile_id,json=wafProfileId,proto3" json:"waf_profile_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetWafProfileRequest) Descriptor deprecated

func (*GetWafProfileRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetWafProfileRequest.ProtoReflect.Descriptor instead.

func (*GetWafProfileRequest) GetWafProfileId

func (x *GetWafProfileRequest) GetWafProfileId() string

func (*GetWafProfileRequest) ProtoMessage

func (*GetWafProfileRequest) ProtoMessage()

func (*GetWafProfileRequest) ProtoReflect

func (x *GetWafProfileRequest) ProtoReflect() protoreflect.Message

func (*GetWafProfileRequest) Reset

func (x *GetWafProfileRequest) Reset()

func (*GetWafProfileRequest) SetWafProfileId

func (m *GetWafProfileRequest) SetWafProfileId(v string)

func (*GetWafProfileRequest) String

func (x *GetWafProfileRequest) String() string

type ListWafProfilesRequest

type ListWafProfilesRequest struct {

	// ID of the folder that the WAF profile belongs to.
	// Currently page_size, page_token, filter and order_by are not supported and List method will return all WAF profiles in the folder.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListWafProfilesRequest) Descriptor deprecated

func (*ListWafProfilesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListWafProfilesRequest.ProtoReflect.Descriptor instead.

func (*ListWafProfilesRequest) GetFolderId

func (x *ListWafProfilesRequest) GetFolderId() string

func (*ListWafProfilesRequest) ProtoMessage

func (*ListWafProfilesRequest) ProtoMessage()

func (*ListWafProfilesRequest) ProtoReflect

func (x *ListWafProfilesRequest) ProtoReflect() protoreflect.Message

func (*ListWafProfilesRequest) Reset

func (x *ListWafProfilesRequest) Reset()

func (*ListWafProfilesRequest) SetFolderId

func (m *ListWafProfilesRequest) SetFolderId(v string)

func (*ListWafProfilesRequest) String

func (x *ListWafProfilesRequest) String() string

type ListWafProfilesResponse

type ListWafProfilesResponse struct {

	// List of WafProfile resources.
	// Currently next_page_token is not supported and List method will return all WAF profiles in the folder.
	WafProfiles []*WafProfile `protobuf:"bytes,1,rep,name=waf_profiles,json=wafProfiles,proto3" json:"waf_profiles,omitempty"`
	// contains filtered or unexported fields
}

func (*ListWafProfilesResponse) Descriptor deprecated

func (*ListWafProfilesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListWafProfilesResponse.ProtoReflect.Descriptor instead.

func (*ListWafProfilesResponse) GetWafProfiles

func (x *ListWafProfilesResponse) GetWafProfiles() []*WafProfile

func (*ListWafProfilesResponse) ProtoMessage

func (*ListWafProfilesResponse) ProtoMessage()

func (*ListWafProfilesResponse) ProtoReflect

func (x *ListWafProfilesResponse) ProtoReflect() protoreflect.Message

func (*ListWafProfilesResponse) Reset

func (x *ListWafProfilesResponse) Reset()

func (*ListWafProfilesResponse) SetWafProfiles

func (m *ListWafProfilesResponse) SetWafProfiles(v []*WafProfile)

func (*ListWafProfilesResponse) String

func (x *ListWafProfilesResponse) String() string

type RuleSet

type RuleSet struct {

	// Name of rule set.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Version of rule set.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

A RuleSet object. Determines name and version of rule set.

func (*RuleSet) Descriptor deprecated

func (*RuleSet) Descriptor() ([]byte, []int)

Deprecated: Use RuleSet.ProtoReflect.Descriptor instead.

func (*RuleSet) GetName

func (x *RuleSet) GetName() string

func (*RuleSet) GetVersion

func (x *RuleSet) GetVersion() string

func (*RuleSet) ProtoMessage

func (*RuleSet) ProtoMessage()

func (*RuleSet) ProtoReflect

func (x *RuleSet) ProtoReflect() protoreflect.Message

func (*RuleSet) Reset

func (x *RuleSet) Reset()

func (*RuleSet) SetName

func (m *RuleSet) SetName(v string)

func (*RuleSet) SetVersion

func (m *RuleSet) SetVersion(v string)

func (*RuleSet) String

func (x *RuleSet) String() string

type RuleSetDescriptor

type RuleSetDescriptor struct {

	// Name of the rule set
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Version of the rule set
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// ID of the rule set
	Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	// List of rules
	Rules []*RuleSetDescriptor_RuleDescription `protobuf:"bytes,4,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

func (*RuleSetDescriptor) Descriptor deprecated

func (*RuleSetDescriptor) Descriptor() ([]byte, []int)

Deprecated: Use RuleSetDescriptor.ProtoReflect.Descriptor instead.

func (*RuleSetDescriptor) GetId

func (x *RuleSetDescriptor) GetId() string

func (*RuleSetDescriptor) GetName

func (x *RuleSetDescriptor) GetName() string

func (*RuleSetDescriptor) GetRules

func (*RuleSetDescriptor) GetVersion

func (x *RuleSetDescriptor) GetVersion() string

func (*RuleSetDescriptor) ProtoMessage

func (*RuleSetDescriptor) ProtoMessage()

func (*RuleSetDescriptor) ProtoReflect

func (x *RuleSetDescriptor) ProtoReflect() protoreflect.Message

func (*RuleSetDescriptor) Reset

func (x *RuleSetDescriptor) Reset()

func (*RuleSetDescriptor) SetId

func (m *RuleSetDescriptor) SetId(v string)

func (*RuleSetDescriptor) SetName

func (m *RuleSetDescriptor) SetName(v string)

func (*RuleSetDescriptor) SetRules

func (*RuleSetDescriptor) SetVersion

func (m *RuleSetDescriptor) SetVersion(v string)

func (*RuleSetDescriptor) String

func (x *RuleSetDescriptor) String() string

type RuleSetDescriptorServiceClient

type RuleSetDescriptorServiceClient interface {
	// Returns the specified RuleSetDescriptor resource.
	Get(ctx context.Context, in *GetRuleSetDescriptorRequest, opts ...grpc.CallOption) (*RuleSetDescriptor, error)
}

RuleSetDescriptorServiceClient is the client API for RuleSetDescriptorService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

A set of methods for managing RuleSetDescriptor resources.

type RuleSetDescriptorServiceServer

type RuleSetDescriptorServiceServer interface {
	// Returns the specified RuleSetDescriptor resource.
	Get(context.Context, *GetRuleSetDescriptorRequest) (*RuleSetDescriptor, error)
}

RuleSetDescriptorServiceServer is the server API for RuleSetDescriptorService service. All implementations should embed UnimplementedRuleSetDescriptorServiceServer for forward compatibility.

A set of methods for managing RuleSetDescriptor resources.

type RuleSetDescriptor_RuleDescription

type RuleSetDescriptor_RuleDescription struct {

	// ID of the rule
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Numeric anomaly value, i.e., a potential attack indicator.
	// The higher this value, the more likely it is that the request that satisfies the rule is an attack.
	// See [documentation](/docs/smartwebsecurity/concepts/waf#anomaly).
	AnomalyScore int64 `protobuf:"varint,8,opt,name=anomaly_score,json=anomalyScore,proto3" json:"anomaly_score,omitempty"`
	// Paranoia level classifies rules according to their aggression.
	// The higher the paranoia level, the better your protection, but also the higher the probability of WAF false positives.
	// See [documentation](/docs/smartwebsecurity/concepts/waf#paranoia).
	ParanoiaLevel int64 `protobuf:"varint,9,opt,name=paranoia_level,json=paranoiaLevel,proto3" json:"paranoia_level,omitempty"`
	// contains filtered or unexported fields
}

func (*RuleSetDescriptor_RuleDescription) Descriptor deprecated

func (*RuleSetDescriptor_RuleDescription) Descriptor() ([]byte, []int)

Deprecated: Use RuleSetDescriptor_RuleDescription.ProtoReflect.Descriptor instead.

func (*RuleSetDescriptor_RuleDescription) GetAnomalyScore

func (x *RuleSetDescriptor_RuleDescription) GetAnomalyScore() int64

func (*RuleSetDescriptor_RuleDescription) GetId

func (*RuleSetDescriptor_RuleDescription) GetParanoiaLevel

func (x *RuleSetDescriptor_RuleDescription) GetParanoiaLevel() int64

func (*RuleSetDescriptor_RuleDescription) ProtoMessage

func (*RuleSetDescriptor_RuleDescription) ProtoMessage()

func (*RuleSetDescriptor_RuleDescription) ProtoReflect

func (*RuleSetDescriptor_RuleDescription) Reset

func (*RuleSetDescriptor_RuleDescription) SetAnomalyScore

func (m *RuleSetDescriptor_RuleDescription) SetAnomalyScore(v int64)

func (*RuleSetDescriptor_RuleDescription) SetId

func (*RuleSetDescriptor_RuleDescription) SetParanoiaLevel

func (m *RuleSetDescriptor_RuleDescription) SetParanoiaLevel(v int64)

func (*RuleSetDescriptor_RuleDescription) String

type UnimplementedRuleSetDescriptorServiceServer

type UnimplementedRuleSetDescriptorServiceServer struct{}

UnimplementedRuleSetDescriptorServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedRuleSetDescriptorServiceServer) Get

type UnimplementedWafProfileServiceServer

type UnimplementedWafProfileServiceServer struct{}

UnimplementedWafProfileServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedWafProfileServiceServer) Create

func (UnimplementedWafProfileServiceServer) Delete

func (UnimplementedWafProfileServiceServer) Get

func (UnimplementedWafProfileServiceServer) List

func (UnimplementedWafProfileServiceServer) Update

type UnsafeRuleSetDescriptorServiceServer

type UnsafeRuleSetDescriptorServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeRuleSetDescriptorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RuleSetDescriptorServiceServer will result in compilation errors.

type UnsafeWafProfileServiceServer

type UnsafeWafProfileServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeWafProfileServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WafProfileServiceServer will result in compilation errors.

type UpdateWafProfileMetadata

type UpdateWafProfileMetadata struct {

	// ID of the WafProfile resource that is being updated.
	WafProfileId string `protobuf:"bytes,1,opt,name=waf_profile_id,json=wafProfileId,proto3" json:"waf_profile_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateWafProfileMetadata) Descriptor deprecated

func (*UpdateWafProfileMetadata) Descriptor() ([]byte, []int)

Deprecated: Use UpdateWafProfileMetadata.ProtoReflect.Descriptor instead.

func (*UpdateWafProfileMetadata) GetWafProfileId

func (x *UpdateWafProfileMetadata) GetWafProfileId() string

func (*UpdateWafProfileMetadata) ProtoMessage

func (*UpdateWafProfileMetadata) ProtoMessage()

func (*UpdateWafProfileMetadata) ProtoReflect

func (x *UpdateWafProfileMetadata) ProtoReflect() protoreflect.Message

func (*UpdateWafProfileMetadata) Reset

func (x *UpdateWafProfileMetadata) Reset()

func (*UpdateWafProfileMetadata) SetWafProfileId

func (m *UpdateWafProfileMetadata) SetWafProfileId(v string)

func (*UpdateWafProfileMetadata) String

func (x *UpdateWafProfileMetadata) String() string

type UpdateWafProfileRequest

type UpdateWafProfileRequest struct {

	// ID of the WAF profile to update.
	WafProfileId string `protobuf:"bytes,1,opt,name=waf_profile_id,json=wafProfileId,proto3" json:"waf_profile_id,omitempty"`
	// Field mask that specifies which fields of the WafProfile resource are going to be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// Name of the WAF profile. The name is unique within the folder. 1-50 characters long.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Optional description of the WAF profile.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Labels as “ key:value “ pairs. Maximum of 64 per resource.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Settings for each rule in rule set.
	Rules []*WafProfileRule `protobuf:"bytes,6,rep,name=rules,proto3" json:"rules,omitempty"`
	// List of exclusion rules. See [Rules](/docs/smartwebsecurity/concepts/waf#exclusion-rules).
	ExclusionRules []*WafProfileExclusionRule `protobuf:"bytes,7,rep,name=exclusion_rules,json=exclusionRules,proto3" json:"exclusion_rules,omitempty"`
	// Types that are assignable to RuleSet:
	//
	//	*UpdateWafProfileRequest_CoreRuleSet
	RuleSet isUpdateWafProfileRequest_RuleSet `protobuf_oneof:"rule_set"`
	// Parameters for request body analyzer.
	AnalyzeRequestBody *WafProfile_AnalyzeRequestBody `protobuf:"bytes,9,opt,name=analyze_request_body,json=analyzeRequestBody,proto3" json:"analyze_request_body,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateWafProfileRequest) Descriptor deprecated

func (*UpdateWafProfileRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateWafProfileRequest.ProtoReflect.Descriptor instead.

func (*UpdateWafProfileRequest) GetAnalyzeRequestBody

func (x *UpdateWafProfileRequest) GetAnalyzeRequestBody() *WafProfile_AnalyzeRequestBody

func (*UpdateWafProfileRequest) GetCoreRuleSet

func (x *UpdateWafProfileRequest) GetCoreRuleSet() *WafProfile_CoreRuleSet

func (*UpdateWafProfileRequest) GetDescription

func (x *UpdateWafProfileRequest) GetDescription() string

func (*UpdateWafProfileRequest) GetExclusionRules

func (x *UpdateWafProfileRequest) GetExclusionRules() []*WafProfileExclusionRule

func (*UpdateWafProfileRequest) GetLabels

func (x *UpdateWafProfileRequest) GetLabels() map[string]string

func (*UpdateWafProfileRequest) GetName

func (x *UpdateWafProfileRequest) GetName() string

func (*UpdateWafProfileRequest) GetRuleSet

func (m *UpdateWafProfileRequest) GetRuleSet() isUpdateWafProfileRequest_RuleSet

func (*UpdateWafProfileRequest) GetRules

func (x *UpdateWafProfileRequest) GetRules() []*WafProfileRule

func (*UpdateWafProfileRequest) GetUpdateMask

func (x *UpdateWafProfileRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateWafProfileRequest) GetWafProfileId

func (x *UpdateWafProfileRequest) GetWafProfileId() string

func (*UpdateWafProfileRequest) ProtoMessage

func (*UpdateWafProfileRequest) ProtoMessage()

func (*UpdateWafProfileRequest) ProtoReflect

func (x *UpdateWafProfileRequest) ProtoReflect() protoreflect.Message

func (*UpdateWafProfileRequest) Reset

func (x *UpdateWafProfileRequest) Reset()

func (*UpdateWafProfileRequest) SetAnalyzeRequestBody

func (m *UpdateWafProfileRequest) SetAnalyzeRequestBody(v *WafProfile_AnalyzeRequestBody)

func (*UpdateWafProfileRequest) SetCoreRuleSet

func (m *UpdateWafProfileRequest) SetCoreRuleSet(v *WafProfile_CoreRuleSet)

func (*UpdateWafProfileRequest) SetDescription

func (m *UpdateWafProfileRequest) SetDescription(v string)

func (*UpdateWafProfileRequest) SetExclusionRules

func (m *UpdateWafProfileRequest) SetExclusionRules(v []*WafProfileExclusionRule)

func (*UpdateWafProfileRequest) SetLabels

func (m *UpdateWafProfileRequest) SetLabels(v map[string]string)

func (*UpdateWafProfileRequest) SetName

func (m *UpdateWafProfileRequest) SetName(v string)

func (*UpdateWafProfileRequest) SetRuleSet

func (*UpdateWafProfileRequest) SetRules

func (m *UpdateWafProfileRequest) SetRules(v []*WafProfileRule)

func (*UpdateWafProfileRequest) SetUpdateMask

func (m *UpdateWafProfileRequest) SetUpdateMask(v *fieldmaskpb.FieldMask)

func (*UpdateWafProfileRequest) SetWafProfileId

func (m *UpdateWafProfileRequest) SetWafProfileId(v string)

func (*UpdateWafProfileRequest) String

func (x *UpdateWafProfileRequest) String() string

type UpdateWafProfileRequest_CoreRuleSet

type UpdateWafProfileRequest_CoreRuleSet struct {
	// Core rule set settings. See [Basic rule set](/docs/smartwebsecurity/concepts/waf#rules-set) for details.
	CoreRuleSet *WafProfile_CoreRuleSet `protobuf:"bytes,8,opt,name=core_rule_set,json=coreRuleSet,proto3,oneof"`
}

type UpdateWafProfileRequest_RuleSet

type UpdateWafProfileRequest_RuleSet = isUpdateWafProfileRequest_RuleSet

type WafProfile

type WafProfile struct {

	// ID of the WAF profile.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the WAF profile belongs to.
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// ID of the cloud that the WAF profile belongs to.
	CloudId string `protobuf:"bytes,3,opt,name=cloud_id,json=cloudId,proto3" json:"cloud_id,omitempty"`
	// Name of the WAF profile. The name is unique within the folder. 1-50 characters long.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Optional description of the WAF profile.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Labels as “ key:value “ pairs. Maximum of 64 per resource.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Settings for each rule in rule set.
	Rules []*WafProfileRule `protobuf:"bytes,9,rep,name=rules,proto3" json:"rules,omitempty"`
	// List of exclusion rules. See [Rules](/docs/smartwebsecurity/concepts/waf#exclusion-rules).
	ExclusionRules []*WafProfileExclusionRule `protobuf:"bytes,10,rep,name=exclusion_rules,json=exclusionRules,proto3" json:"exclusion_rules,omitempty"`
	// Types that are assignable to RuleSet:
	//
	//	*WafProfile_CoreRuleSet_
	RuleSet isWafProfile_RuleSet `protobuf_oneof:"rule_set"`
	// Parameters for request body analyzer.
	AnalyzeRequestBody *WafProfile_AnalyzeRequestBody `protobuf:"bytes,12,opt,name=analyze_request_body,json=analyzeRequestBody,proto3" json:"analyze_request_body,omitempty"`
	// contains filtered or unexported fields
}

func (*WafProfile) Descriptor deprecated

func (*WafProfile) Descriptor() ([]byte, []int)

Deprecated: Use WafProfile.ProtoReflect.Descriptor instead.

func (*WafProfile) GetAnalyzeRequestBody

func (x *WafProfile) GetAnalyzeRequestBody() *WafProfile_AnalyzeRequestBody

func (*WafProfile) GetCloudId

func (x *WafProfile) GetCloudId() string

func (*WafProfile) GetCoreRuleSet

func (x *WafProfile) GetCoreRuleSet() *WafProfile_CoreRuleSet

func (*WafProfile) GetCreatedAt

func (x *WafProfile) GetCreatedAt() *timestamppb.Timestamp

func (*WafProfile) GetDescription

func (x *WafProfile) GetDescription() string

func (*WafProfile) GetExclusionRules

func (x *WafProfile) GetExclusionRules() []*WafProfileExclusionRule

func (*WafProfile) GetFolderId

func (x *WafProfile) GetFolderId() string

func (*WafProfile) GetId

func (x *WafProfile) GetId() string

func (*WafProfile) GetLabels

func (x *WafProfile) GetLabels() map[string]string

func (*WafProfile) GetName

func (x *WafProfile) GetName() string

func (*WafProfile) GetRuleSet

func (m *WafProfile) GetRuleSet() isWafProfile_RuleSet

func (*WafProfile) GetRules

func (x *WafProfile) GetRules() []*WafProfileRule

func (*WafProfile) ProtoMessage

func (*WafProfile) ProtoMessage()

func (*WafProfile) ProtoReflect

func (x *WafProfile) ProtoReflect() protoreflect.Message

func (*WafProfile) Reset

func (x *WafProfile) Reset()

func (*WafProfile) SetAnalyzeRequestBody

func (m *WafProfile) SetAnalyzeRequestBody(v *WafProfile_AnalyzeRequestBody)

func (*WafProfile) SetCloudId

func (m *WafProfile) SetCloudId(v string)

func (*WafProfile) SetCoreRuleSet

func (m *WafProfile) SetCoreRuleSet(v *WafProfile_CoreRuleSet)

func (*WafProfile) SetCreatedAt

func (m *WafProfile) SetCreatedAt(v *timestamppb.Timestamp)

func (*WafProfile) SetDescription

func (m *WafProfile) SetDescription(v string)

func (*WafProfile) SetExclusionRules

func (m *WafProfile) SetExclusionRules(v []*WafProfileExclusionRule)

func (*WafProfile) SetFolderId

func (m *WafProfile) SetFolderId(v string)

func (*WafProfile) SetId

func (m *WafProfile) SetId(v string)

func (*WafProfile) SetLabels

func (m *WafProfile) SetLabels(v map[string]string)

func (*WafProfile) SetName

func (m *WafProfile) SetName(v string)

func (*WafProfile) SetRuleSet

func (m *WafProfile) SetRuleSet(v WafProfile_RuleSet)

func (*WafProfile) SetRules

func (m *WafProfile) SetRules(v []*WafProfileRule)

func (*WafProfile) String

func (x *WafProfile) String() string

type WafProfileExclusionRule

type WafProfileExclusionRule struct {

	// Name of exclusion rule.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional description of the rule. 0-512 characters long.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The condition for matching traffic.
	Condition *v1.Condition `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"`
	// Exclude rules.
	ExcludeRules *WafProfileExclusionRule_ExcludeRules `protobuf:"bytes,4,opt,name=exclude_rules,json=excludeRules,proto3" json:"exclude_rules,omitempty"`
	// Records the fact that an exception rule is triggered.
	LogExcluded bool `protobuf:"varint,5,opt,name=log_excluded,json=logExcluded,proto3" json:"log_excluded,omitempty"`
	// contains filtered or unexported fields
}

A WafProfileExclusionRule object. See [Exclusion rules](/docs/smartwebsecurity/concepts/waf#exclusion-rules).

func (*WafProfileExclusionRule) Descriptor deprecated

func (*WafProfileExclusionRule) Descriptor() ([]byte, []int)

Deprecated: Use WafProfileExclusionRule.ProtoReflect.Descriptor instead.

func (*WafProfileExclusionRule) GetCondition

func (x *WafProfileExclusionRule) GetCondition() *v1.Condition

func (*WafProfileExclusionRule) GetDescription

func (x *WafProfileExclusionRule) GetDescription() string

func (*WafProfileExclusionRule) GetExcludeRules

func (*WafProfileExclusionRule) GetLogExcluded

func (x *WafProfileExclusionRule) GetLogExcluded() bool

func (*WafProfileExclusionRule) GetName

func (x *WafProfileExclusionRule) GetName() string

func (*WafProfileExclusionRule) ProtoMessage

func (*WafProfileExclusionRule) ProtoMessage()

func (*WafProfileExclusionRule) ProtoReflect

func (x *WafProfileExclusionRule) ProtoReflect() protoreflect.Message

func (*WafProfileExclusionRule) Reset

func (x *WafProfileExclusionRule) Reset()

func (*WafProfileExclusionRule) SetCondition

func (m *WafProfileExclusionRule) SetCondition(v *v1.Condition)

func (*WafProfileExclusionRule) SetDescription

func (m *WafProfileExclusionRule) SetDescription(v string)

func (*WafProfileExclusionRule) SetExcludeRules

func (*WafProfileExclusionRule) SetLogExcluded

func (m *WafProfileExclusionRule) SetLogExcluded(v bool)

func (*WafProfileExclusionRule) SetName

func (m *WafProfileExclusionRule) SetName(v string)

func (*WafProfileExclusionRule) String

func (x *WafProfileExclusionRule) String() string

type WafProfileExclusionRule_ExcludeRules

type WafProfileExclusionRule_ExcludeRules struct {

	// Set this option true to exclude all rules.
	ExcludeAll bool `protobuf:"varint,1,opt,name=exclude_all,json=excludeAll,proto3" json:"exclude_all,omitempty"`
	// List of rules to exclude.
	RuleIds []string `protobuf:"bytes,2,rep,name=rule_ids,json=ruleIds,proto3" json:"rule_ids,omitempty"`
	// contains filtered or unexported fields
}

Determines list of excluded rules.

func (*WafProfileExclusionRule_ExcludeRules) Descriptor deprecated

func (*WafProfileExclusionRule_ExcludeRules) Descriptor() ([]byte, []int)

Deprecated: Use WafProfileExclusionRule_ExcludeRules.ProtoReflect.Descriptor instead.

func (*WafProfileExclusionRule_ExcludeRules) GetExcludeAll

func (x *WafProfileExclusionRule_ExcludeRules) GetExcludeAll() bool

func (*WafProfileExclusionRule_ExcludeRules) GetRuleIds

func (x *WafProfileExclusionRule_ExcludeRules) GetRuleIds() []string

func (*WafProfileExclusionRule_ExcludeRules) ProtoMessage

func (*WafProfileExclusionRule_ExcludeRules) ProtoMessage()

func (*WafProfileExclusionRule_ExcludeRules) ProtoReflect

func (*WafProfileExclusionRule_ExcludeRules) Reset

func (*WafProfileExclusionRule_ExcludeRules) SetExcludeAll

func (m *WafProfileExclusionRule_ExcludeRules) SetExcludeAll(v bool)

func (*WafProfileExclusionRule_ExcludeRules) SetRuleIds

func (m *WafProfileExclusionRule_ExcludeRules) SetRuleIds(v []string)

func (*WafProfileExclusionRule_ExcludeRules) String

type WafProfileRule

type WafProfileRule struct {

	// Rule ID.
	RuleId string `protobuf:"bytes,1,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"`
	// Determines is it rule enabled or not.
	IsEnabled bool `protobuf:"varint,2,opt,name=is_enabled,json=isEnabled,proto3" json:"is_enabled,omitempty"`
	// Determines is it rule blocking or not.
	IsBlocking bool `protobuf:"varint,3,opt,name=is_blocking,json=isBlocking,proto3" json:"is_blocking,omitempty"`
	// contains filtered or unexported fields
}

WafProfileRule object. Determines settings for each rule_id in rule set.

func (*WafProfileRule) Descriptor deprecated

func (*WafProfileRule) Descriptor() ([]byte, []int)

Deprecated: Use WafProfileRule.ProtoReflect.Descriptor instead.

func (*WafProfileRule) GetIsBlocking

func (x *WafProfileRule) GetIsBlocking() bool

func (*WafProfileRule) GetIsEnabled

func (x *WafProfileRule) GetIsEnabled() bool

func (*WafProfileRule) GetRuleId

func (x *WafProfileRule) GetRuleId() string

func (*WafProfileRule) ProtoMessage

func (*WafProfileRule) ProtoMessage()

func (*WafProfileRule) ProtoReflect

func (x *WafProfileRule) ProtoReflect() protoreflect.Message

func (*WafProfileRule) Reset

func (x *WafProfileRule) Reset()

func (*WafProfileRule) SetIsBlocking

func (m *WafProfileRule) SetIsBlocking(v bool)

func (*WafProfileRule) SetIsEnabled

func (m *WafProfileRule) SetIsEnabled(v bool)

func (*WafProfileRule) SetRuleId

func (m *WafProfileRule) SetRuleId(v string)

func (*WafProfileRule) String

func (x *WafProfileRule) String() string

type WafProfileServiceClient

type WafProfileServiceClient interface {
	// Returns the specified WafProfile resource.
	Get(ctx context.Context, in *GetWafProfileRequest, opts ...grpc.CallOption) (*WafProfile, error)
	// Retrieves the list of WafProfile resources in the specified folder.
	List(ctx context.Context, in *ListWafProfilesRequest, opts ...grpc.CallOption) (*ListWafProfilesResponse, error)
	// Creates a WAF profile in the specified folder using the data specified in the request.
	Create(ctx context.Context, in *CreateWafProfileRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Updates the specified WAF profile.
	Update(ctx context.Context, in *UpdateWafProfileRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Deletes the specified WAF profile.
	Delete(ctx context.Context, in *DeleteWafProfileRequest, opts ...grpc.CallOption) (*operation.Operation, error)
}

WafProfileServiceClient is the client API for WafProfileService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

A set of methods for managing WafProfile resources.

type WafProfileServiceServer

type WafProfileServiceServer interface {
	// Returns the specified WafProfile resource.
	Get(context.Context, *GetWafProfileRequest) (*WafProfile, error)
	// Retrieves the list of WafProfile resources in the specified folder.
	List(context.Context, *ListWafProfilesRequest) (*ListWafProfilesResponse, error)
	// Creates a WAF profile in the specified folder using the data specified in the request.
	Create(context.Context, *CreateWafProfileRequest) (*operation.Operation, error)
	// Updates the specified WAF profile.
	Update(context.Context, *UpdateWafProfileRequest) (*operation.Operation, error)
	// Deletes the specified WAF profile.
	Delete(context.Context, *DeleteWafProfileRequest) (*operation.Operation, error)
}

WafProfileServiceServer is the server API for WafProfileService service. All implementations should embed UnimplementedWafProfileServiceServer for forward compatibility.

A set of methods for managing WafProfile resources.

type WafProfile_AnalyzeRequestBody

type WafProfile_AnalyzeRequestBody struct {

	// Possible to turn analyzer on and turn if off.
	IsEnabled bool `protobuf:"varint,1,opt,name=is_enabled,json=isEnabled,proto3" json:"is_enabled,omitempty"`
	// Maximum size of body to pass to analyzer. In kilobytes.
	SizeLimit int64 `protobuf:"varint,2,opt,name=size_limit,json=sizeLimit,proto3" json:"size_limit,omitempty"`
	// Action to perform if maximum size of body exceeded.
	SizeLimitAction WafProfile_AnalyzeRequestBody_Action `` /* 188-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WafProfile_AnalyzeRequestBody) Descriptor deprecated

func (*WafProfile_AnalyzeRequestBody) Descriptor() ([]byte, []int)

Deprecated: Use WafProfile_AnalyzeRequestBody.ProtoReflect.Descriptor instead.

func (*WafProfile_AnalyzeRequestBody) GetIsEnabled

func (x *WafProfile_AnalyzeRequestBody) GetIsEnabled() bool

func (*WafProfile_AnalyzeRequestBody) GetSizeLimit

func (x *WafProfile_AnalyzeRequestBody) GetSizeLimit() int64

func (*WafProfile_AnalyzeRequestBody) GetSizeLimitAction

func (*WafProfile_AnalyzeRequestBody) ProtoMessage

func (*WafProfile_AnalyzeRequestBody) ProtoMessage()

func (*WafProfile_AnalyzeRequestBody) ProtoReflect

func (*WafProfile_AnalyzeRequestBody) Reset

func (x *WafProfile_AnalyzeRequestBody) Reset()

func (*WafProfile_AnalyzeRequestBody) SetIsEnabled

func (m *WafProfile_AnalyzeRequestBody) SetIsEnabled(v bool)

func (*WafProfile_AnalyzeRequestBody) SetSizeLimit

func (m *WafProfile_AnalyzeRequestBody) SetSizeLimit(v int64)

func (*WafProfile_AnalyzeRequestBody) SetSizeLimitAction

func (*WafProfile_AnalyzeRequestBody) String

type WafProfile_AnalyzeRequestBody_Action

type WafProfile_AnalyzeRequestBody_Action int32

Action to perform if maximum size of body exceeded.

const (
	WafProfile_AnalyzeRequestBody_ACTION_UNSPECIFIED WafProfile_AnalyzeRequestBody_Action = 0
	// Ignore request.
	WafProfile_AnalyzeRequestBody_IGNORE WafProfile_AnalyzeRequestBody_Action = 1
	// Deny request.
	WafProfile_AnalyzeRequestBody_DENY WafProfile_AnalyzeRequestBody_Action = 2
)

func (WafProfile_AnalyzeRequestBody_Action) Descriptor

func (WafProfile_AnalyzeRequestBody_Action) Enum

func (WafProfile_AnalyzeRequestBody_Action) EnumDescriptor deprecated

func (WafProfile_AnalyzeRequestBody_Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use WafProfile_AnalyzeRequestBody_Action.Descriptor instead.

func (WafProfile_AnalyzeRequestBody_Action) Number

func (WafProfile_AnalyzeRequestBody_Action) String

func (WafProfile_AnalyzeRequestBody_Action) Type

type WafProfile_CoreRuleSet

type WafProfile_CoreRuleSet struct {

	// Anomaly score.
	// Enter an integer within the range of 2 and 10000.
	// The higher this value, the more likely it is that the request that satisfies the rule is an attack.
	// See [Rules](/docs/smartwebsecurity/concepts/waf#anomaly) for more details.
	InboundAnomalyScore int64 `protobuf:"varint,1,opt,name=inbound_anomaly_score,json=inboundAnomalyScore,proto3" json:"inbound_anomaly_score,omitempty"`
	// Paranoia level.
	// Enter an integer within the range of 1 and 4.
	// Paranoia level classifies rules according to their aggression. The higher the paranoia level, the better your protection,
	// but also the higher the probability of WAF false positives.
	// See [Rules](/docs/smartwebsecurity/concepts/waf#paranoia) for more details.
	// NOTE: this option has no effect on enabling or disabling rules.
	// it is used only as recommendation for user to enable all rules with paranoia_level <= this value.
	ParanoiaLevel int64 `protobuf:"varint,2,opt,name=paranoia_level,json=paranoiaLevel,proto3" json:"paranoia_level,omitempty"`
	// Rule set.
	RuleSet *RuleSet `protobuf:"bytes,3,opt,name=rule_set,json=ruleSet,proto3" json:"rule_set,omitempty"`
	// contains filtered or unexported fields
}

func (*WafProfile_CoreRuleSet) Descriptor deprecated

func (*WafProfile_CoreRuleSet) Descriptor() ([]byte, []int)

Deprecated: Use WafProfile_CoreRuleSet.ProtoReflect.Descriptor instead.

func (*WafProfile_CoreRuleSet) GetInboundAnomalyScore

func (x *WafProfile_CoreRuleSet) GetInboundAnomalyScore() int64

func (*WafProfile_CoreRuleSet) GetParanoiaLevel

func (x *WafProfile_CoreRuleSet) GetParanoiaLevel() int64

func (*WafProfile_CoreRuleSet) GetRuleSet

func (x *WafProfile_CoreRuleSet) GetRuleSet() *RuleSet

func (*WafProfile_CoreRuleSet) ProtoMessage

func (*WafProfile_CoreRuleSet) ProtoMessage()

func (*WafProfile_CoreRuleSet) ProtoReflect

func (x *WafProfile_CoreRuleSet) ProtoReflect() protoreflect.Message

func (*WafProfile_CoreRuleSet) Reset

func (x *WafProfile_CoreRuleSet) Reset()

func (*WafProfile_CoreRuleSet) SetInboundAnomalyScore

func (m *WafProfile_CoreRuleSet) SetInboundAnomalyScore(v int64)

func (*WafProfile_CoreRuleSet) SetParanoiaLevel

func (m *WafProfile_CoreRuleSet) SetParanoiaLevel(v int64)

func (*WafProfile_CoreRuleSet) SetRuleSet

func (m *WafProfile_CoreRuleSet) SetRuleSet(v *RuleSet)

func (*WafProfile_CoreRuleSet) String

func (x *WafProfile_CoreRuleSet) String() string

type WafProfile_CoreRuleSet_

type WafProfile_CoreRuleSet_ struct {
	// Core rule set settings. See [Basic rule set](/docs/smartwebsecurity/concepts/waf#rules-set) for details.
	CoreRuleSet *WafProfile_CoreRuleSet `protobuf:"bytes,11,opt,name=core_rule_set,json=coreRuleSet,proto3,oneof"`
}

type WafProfile_RuleSet

type WafProfile_RuleSet = isWafProfile_RuleSet

Jump to

Keyboard shortcuts

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