models

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 17 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// FlowDescriptionActionPERMIT captures enum value "PERMIT"
	FlowDescriptionActionPERMIT string = "PERMIT"

	// FlowDescriptionActionDENY captures enum value "DENY"
	FlowDescriptionActionDENY string = "DENY"
)
View Source
const (

	// FlowMatchDirectionUPLINK captures enum value "UPLINK"
	FlowMatchDirectionUPLINK string = "UPLINK"

	// FlowMatchDirectionDOWNLINK captures enum value "DOWNLINK"
	FlowMatchDirectionDOWNLINK string = "DOWNLINK"
)
View Source
const (

	// FlowMatchIPProtoIPPROTOIP captures enum value "IPPROTO_IP"
	FlowMatchIPProtoIPPROTOIP string = "IPPROTO_IP"

	// FlowMatchIPProtoIPPROTOTCP captures enum value "IPPROTO_TCP"
	FlowMatchIPProtoIPPROTOTCP string = "IPPROTO_TCP"

	// FlowMatchIPProtoIPPROTOUDP captures enum value "IPPROTO_UDP"
	FlowMatchIPProtoIPPROTOUDP string = "IPPROTO_UDP"

	// FlowMatchIPProtoIPPROTOICMP captures enum value "IPPROTO_ICMP"
	FlowMatchIPProtoIPPROTOICMP string = "IPPROTO_ICMP"
)
View Source
const (

	// MutableRatingGroupLimitTypeFINITE captures enum value "FINITE"
	MutableRatingGroupLimitTypeFINITE string = "FINITE"

	// MutableRatingGroupLimitTypeINFINITEUNMETERED captures enum value "INFINITE_UNMETERED"
	MutableRatingGroupLimitTypeINFINITEUNMETERED string = "INFINITE_UNMETERED"

	// MutableRatingGroupLimitTypeINFINITEMETERED captures enum value "INFINITE_METERED"
	MutableRatingGroupLimitTypeINFINITEMETERED string = "INFINITE_METERED"
)
View Source
const (

	// PolicyRuleConfigAppNameNOAPPNAME captures enum value "NO_APP_NAME"
	PolicyRuleConfigAppNameNOAPPNAME string = "NO_APP_NAME"

	// PolicyRuleConfigAppNameFACEBOOK captures enum value "FACEBOOK"
	PolicyRuleConfigAppNameFACEBOOK string = "FACEBOOK"

	// PolicyRuleConfigAppNameFACEBOOKMESSENGER captures enum value "FACEBOOK_MESSENGER"
	PolicyRuleConfigAppNameFACEBOOKMESSENGER string = "FACEBOOK_MESSENGER"

	// PolicyRuleConfigAppNameINSTAGRAM captures enum value "INSTAGRAM"
	PolicyRuleConfigAppNameINSTAGRAM string = "INSTAGRAM"

	// PolicyRuleConfigAppNameYOUTUBE captures enum value "YOUTUBE"
	PolicyRuleConfigAppNameYOUTUBE string = "YOUTUBE"

	// PolicyRuleConfigAppNameGOOGLE captures enum value "GOOGLE"
	PolicyRuleConfigAppNameGOOGLE string = "GOOGLE"

	// PolicyRuleConfigAppNameGMAIL captures enum value "GMAIL"
	PolicyRuleConfigAppNameGMAIL string = "GMAIL"

	// PolicyRuleConfigAppNameGOOGLEDOCS captures enum value "GOOGLE_DOCS"
	PolicyRuleConfigAppNameGOOGLEDOCS string = "GOOGLE_DOCS"

	// PolicyRuleConfigAppNameNETFLIX captures enum value "NETFLIX"
	PolicyRuleConfigAppNameNETFLIX string = "NETFLIX"

	// PolicyRuleConfigAppNameAPPLE captures enum value "APPLE"
	PolicyRuleConfigAppNameAPPLE string = "APPLE"

	// PolicyRuleConfigAppNameMICROSOFT captures enum value "MICROSOFT"
	PolicyRuleConfigAppNameMICROSOFT string = "MICROSOFT"

	// PolicyRuleConfigAppNameREDDIT captures enum value "REDDIT"
	PolicyRuleConfigAppNameREDDIT string = "REDDIT"

	// PolicyRuleConfigAppNameWHATSAPP captures enum value "WHATSAPP"
	PolicyRuleConfigAppNameWHATSAPP string = "WHATSAPP"

	// PolicyRuleConfigAppNameGOOGLEPLAY captures enum value "GOOGLE_PLAY"
	PolicyRuleConfigAppNameGOOGLEPLAY string = "GOOGLE_PLAY"

	// PolicyRuleConfigAppNameAPPSTORE captures enum value "APPSTORE"
	PolicyRuleConfigAppNameAPPSTORE string = "APPSTORE"

	// PolicyRuleConfigAppNameAMAZON captures enum value "AMAZON"
	PolicyRuleConfigAppNameAMAZON string = "AMAZON"

	// PolicyRuleConfigAppNameWECHAT captures enum value "WECHAT"
	PolicyRuleConfigAppNameWECHAT string = "WECHAT"

	// PolicyRuleConfigAppNameTIKTOK captures enum value "TIKTOK"
	PolicyRuleConfigAppNameTIKTOK string = "TIKTOK"

	// PolicyRuleConfigAppNameTWITTER captures enum value "TWITTER"
	PolicyRuleConfigAppNameTWITTER string = "TWITTER"

	// PolicyRuleConfigAppNameWIKIPEDIA captures enum value "WIKIPEDIA"
	PolicyRuleConfigAppNameWIKIPEDIA string = "WIKIPEDIA"

	// PolicyRuleConfigAppNameGOOGLEMAPS captures enum value "GOOGLE_MAPS"
	PolicyRuleConfigAppNameGOOGLEMAPS string = "GOOGLE_MAPS"

	// PolicyRuleConfigAppNameYAHOO captures enum value "YAHOO"
	PolicyRuleConfigAppNameYAHOO string = "YAHOO"

	// PolicyRuleConfigAppNameIMO captures enum value "IMO"
	PolicyRuleConfigAppNameIMO string = "IMO"
)
View Source
const (

	// PolicyRuleConfigAppServiceTypeNOSERVICETYPE captures enum value "NO_SERVICE_TYPE"
	PolicyRuleConfigAppServiceTypeNOSERVICETYPE string = "NO_SERVICE_TYPE"

	// PolicyRuleConfigAppServiceTypeCHAT captures enum value "CHAT"
	PolicyRuleConfigAppServiceTypeCHAT string = "CHAT"

	// PolicyRuleConfigAppServiceTypeAUDIO captures enum value "AUDIO"
	PolicyRuleConfigAppServiceTypeAUDIO string = "AUDIO"

	// PolicyRuleConfigAppServiceTypeVIDEO captures enum value "VIDEO"
	PolicyRuleConfigAppServiceTypeVIDEO string = "VIDEO"
)
View Source
const (

	// PolicyRuleConfigTrackingTypeONLYOCS captures enum value "ONLY_OCS"
	PolicyRuleConfigTrackingTypeONLYOCS string = "ONLY_OCS"

	// PolicyRuleConfigTrackingTypeONLYPCRF captures enum value "ONLY_PCRF"
	PolicyRuleConfigTrackingTypeONLYPCRF string = "ONLY_PCRF"

	// PolicyRuleConfigTrackingTypeOCSANDPCRF captures enum value "OCS_AND_PCRF"
	PolicyRuleConfigTrackingTypeOCSANDPCRF string = "OCS_AND_PCRF"

	// PolicyRuleConfigTrackingTypeNOTRACKING captures enum value "NO_TRACKING"
	PolicyRuleConfigTrackingTypeNOTRACKING string = "NO_TRACKING"
)
View Source
const (

	// PolicyRuleAppNameNOAPPNAME captures enum value "NO_APP_NAME"
	PolicyRuleAppNameNOAPPNAME string = "NO_APP_NAME"

	// PolicyRuleAppNameFACEBOOK captures enum value "FACEBOOK"
	PolicyRuleAppNameFACEBOOK string = "FACEBOOK"

	// PolicyRuleAppNameFACEBOOKMESSENGER captures enum value "FACEBOOK_MESSENGER"
	PolicyRuleAppNameFACEBOOKMESSENGER string = "FACEBOOK_MESSENGER"

	// PolicyRuleAppNameINSTAGRAM captures enum value "INSTAGRAM"
	PolicyRuleAppNameINSTAGRAM string = "INSTAGRAM"

	// PolicyRuleAppNameYOUTUBE captures enum value "YOUTUBE"
	PolicyRuleAppNameYOUTUBE string = "YOUTUBE"

	// PolicyRuleAppNameGOOGLE captures enum value "GOOGLE"
	PolicyRuleAppNameGOOGLE string = "GOOGLE"

	// PolicyRuleAppNameGMAIL captures enum value "GMAIL"
	PolicyRuleAppNameGMAIL string = "GMAIL"

	// PolicyRuleAppNameGOOGLEDOCS captures enum value "GOOGLE_DOCS"
	PolicyRuleAppNameGOOGLEDOCS string = "GOOGLE_DOCS"

	// PolicyRuleAppNameNETFLIX captures enum value "NETFLIX"
	PolicyRuleAppNameNETFLIX string = "NETFLIX"

	// PolicyRuleAppNameAPPLE captures enum value "APPLE"
	PolicyRuleAppNameAPPLE string = "APPLE"

	// PolicyRuleAppNameMICROSOFT captures enum value "MICROSOFT"
	PolicyRuleAppNameMICROSOFT string = "MICROSOFT"

	// PolicyRuleAppNameREDDIT captures enum value "REDDIT"
	PolicyRuleAppNameREDDIT string = "REDDIT"

	// PolicyRuleAppNameWHATSAPP captures enum value "WHATSAPP"
	PolicyRuleAppNameWHATSAPP string = "WHATSAPP"

	// PolicyRuleAppNameGOOGLEPLAY captures enum value "GOOGLE_PLAY"
	PolicyRuleAppNameGOOGLEPLAY string = "GOOGLE_PLAY"

	// PolicyRuleAppNameAPPSTORE captures enum value "APPSTORE"
	PolicyRuleAppNameAPPSTORE string = "APPSTORE"

	// PolicyRuleAppNameAMAZON captures enum value "AMAZON"
	PolicyRuleAppNameAMAZON string = "AMAZON"

	// PolicyRuleAppNameWECHAT captures enum value "WECHAT"
	PolicyRuleAppNameWECHAT string = "WECHAT"

	// PolicyRuleAppNameTIKTOK captures enum value "TIKTOK"
	PolicyRuleAppNameTIKTOK string = "TIKTOK"

	// PolicyRuleAppNameTWITTER captures enum value "TWITTER"
	PolicyRuleAppNameTWITTER string = "TWITTER"

	// PolicyRuleAppNameWIKIPEDIA captures enum value "WIKIPEDIA"
	PolicyRuleAppNameWIKIPEDIA string = "WIKIPEDIA"

	// PolicyRuleAppNameGOOGLEMAPS captures enum value "GOOGLE_MAPS"
	PolicyRuleAppNameGOOGLEMAPS string = "GOOGLE_MAPS"

	// PolicyRuleAppNameYAHOO captures enum value "YAHOO"
	PolicyRuleAppNameYAHOO string = "YAHOO"

	// PolicyRuleAppNameIMO captures enum value "IMO"
	PolicyRuleAppNameIMO string = "IMO"
)
View Source
const (

	// PolicyRuleAppServiceTypeNOSERVICETYPE captures enum value "NO_SERVICE_TYPE"
	PolicyRuleAppServiceTypeNOSERVICETYPE string = "NO_SERVICE_TYPE"

	// PolicyRuleAppServiceTypeCHAT captures enum value "CHAT"
	PolicyRuleAppServiceTypeCHAT string = "CHAT"

	// PolicyRuleAppServiceTypeAUDIO captures enum value "AUDIO"
	PolicyRuleAppServiceTypeAUDIO string = "AUDIO"

	// PolicyRuleAppServiceTypeVIDEO captures enum value "VIDEO"
	PolicyRuleAppServiceTypeVIDEO string = "VIDEO"
)
View Source
const (

	// PolicyRuleTrackingTypeONLYOCS captures enum value "ONLY_OCS"
	PolicyRuleTrackingTypeONLYOCS string = "ONLY_OCS"

	// PolicyRuleTrackingTypeONLYPCRF captures enum value "ONLY_PCRF"
	PolicyRuleTrackingTypeONLYPCRF string = "ONLY_PCRF"

	// PolicyRuleTrackingTypeOCSANDPCRF captures enum value "OCS_AND_PCRF"
	PolicyRuleTrackingTypeOCSANDPCRF string = "OCS_AND_PCRF"

	// PolicyRuleTrackingTypeNOTRACKING captures enum value "NO_TRACKING"
	PolicyRuleTrackingTypeNOTRACKING string = "NO_TRACKING"
)
View Source
const (

	// RatingGroupLimitTypeFINITE captures enum value "FINITE"
	RatingGroupLimitTypeFINITE string = "FINITE"

	// RatingGroupLimitTypeINFINITEUNMETERED captures enum value "INFINITE_UNMETERED"
	RatingGroupLimitTypeINFINITEUNMETERED string = "INFINITE_UNMETERED"

	// RatingGroupLimitTypeINFINITEMETERED captures enum value "INFINITE_METERED"
	RatingGroupLimitTypeINFINITEMETERED string = "INFINITE_METERED"
)
View Source
const (

	// RedirectInformationAddressTypeIPV4 captures enum value "IPv4"
	RedirectInformationAddressTypeIPV4 string = "IPv4"

	// RedirectInformationAddressTypeIPV6 captures enum value "IPv6"
	RedirectInformationAddressTypeIPV6 string = "IPv6"

	// RedirectInformationAddressTypeURL captures enum value "URL"
	RedirectInformationAddressTypeURL string = "URL"

	// RedirectInformationAddressTypeSIPURI captures enum value "SIP_URI"
	RedirectInformationAddressTypeSIPURI string = "SIP_URI"
)
View Source
const (

	// RedirectInformationSupportDISABLED captures enum value "DISABLED"
	RedirectInformationSupportDISABLED string = "DISABLED"

	// RedirectInformationSupportENABLED captures enum value "ENABLED"
	RedirectInformationSupportENABLED string = "ENABLED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseName

type BaseName string

BaseName base name swagger:model base_name

func (BaseName) Validate

func (m BaseName) Validate(formats strfmt.Registry) error

Validate validates this base name

type BaseNameRecord

type BaseNameRecord struct {

	// Subscribers which have been assigned this policy base name
	AssignedSubscribers []SubscriberID `json:"assigned_subscribers,omitempty"`

	// name
	// Required: true
	Name BaseName `json:"name"`

	// rule names
	// Required: true
	RuleNames RuleNames `json:"rule_names"`
}

BaseNameRecord base name record swagger:model base_name_record

func (*BaseNameRecord) FromEntity

func (*BaseNameRecord) MarshalBinary

func (m *BaseNameRecord) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BaseNameRecord) ToEntity

func (*BaseNameRecord) ToEntityUpdateCriteria

func (m *BaseNameRecord) ToEntityUpdateCriteria() configurator.EntityUpdateCriteria

func (*BaseNameRecord) UnmarshalBinary

func (m *BaseNameRecord) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BaseNameRecord) Validate

func (m *BaseNameRecord) Validate(formats strfmt.Registry) error

Validate validates this base name record

type BaseNames

type BaseNames []BaseName

BaseNames List of base names swagger:model base_names

func (*BaseNames) GetFromNetwork

func (m *BaseNames) GetFromNetwork(network configurator.Network) interface{}

func (*BaseNames) ToUpdateCriteria

func (m *BaseNames) ToUpdateCriteria(network configurator.Network) (configurator.NetworkUpdateCriteria, error)

func (BaseNames) Validate

func (m BaseNames) Validate(formats strfmt.Registry) error

Validate validates this base names

func (BaseNames) ValidateModel

func (m BaseNames) ValidateModel() error

type FlowDescription

type FlowDescription struct {

	// action
	// Required: true
	// Enum: [PERMIT DENY]
	Action *string `json:"action"`

	// match
	// Required: true
	Match *FlowMatch `json:"match"`
}

FlowDescription flow description swagger:model flow_description

func (*FlowDescription) MarshalBinary

func (m *FlowDescription) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FlowDescription) ToProto

func (m *FlowDescription) ToProto() *protos.FlowDescription

func (*FlowDescription) UnmarshalBinary

func (m *FlowDescription) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FlowDescription) Validate

func (m *FlowDescription) Validate(formats strfmt.Registry) error

Validate validates this flow description

type FlowMatch

type FlowMatch struct {

	// direction
	// Required: true
	// Enum: [UPLINK DOWNLINK]
	Direction *string `json:"direction"`

	// ip proto
	// Required: true
	// Enum: [IPPROTO_IP IPPROTO_TCP IPPROTO_UDP IPPROTO_ICMP]
	IPProto *string `json:"ip_proto"`

	// ipv4 dst
	IPV4Dst string `json:"ipv4_dst,omitempty" magma_alt_name:"Ipv4Dst"`

	// ipv4 src
	IPV4Src string `json:"ipv4_src,omitempty" magma_alt_name:"Ipv4Src"`

	// tcp dst
	TCPDst uint32 `json:"tcp_dst,omitempty" magma_alt_name:"TcpDst"`

	// tcp src
	TCPSrc uint32 `json:"tcp_src,omitempty" magma_alt_name:"TcpSrc"`

	// udp dst
	UDPDst uint32 `json:"udp_dst,omitempty" magma_alt_name:"UdpDst"`

	// udp src
	UDPSrc uint32 `json:"udp_src,omitempty" magma_alt_name:"UdpSrc"`
}

FlowMatch flow match swagger:model flow_match

func (*FlowMatch) MarshalBinary

func (m *FlowMatch) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FlowMatch) UnmarshalBinary

func (m *FlowMatch) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FlowMatch) Validate

func (m *FlowMatch) Validate(formats strfmt.Registry) error

Validate validates this flow match

type FlowQos

type FlowQos struct {

	// max req bw dl
	// Required: true
	MaxReqBwDl *uint32 `json:"max_req_bw_dl"`

	// max req bw ul
	// Required: true
	MaxReqBwUl *uint32 `json:"max_req_bw_ul"`
}

FlowQos flow qos swagger:model flow_qos

func (*FlowQos) MarshalBinary

func (m *FlowQos) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FlowQos) ToProto

func (m *FlowQos) ToProto() *protos.FlowQos

func (*FlowQos) UnmarshalBinary

func (m *FlowQos) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FlowQos) Validate

func (m *FlowQos) Validate(formats strfmt.Registry) error

Validate validates this flow qos

type MutableRatingGroup

type MutableRatingGroup struct {

	// limit type
	// Required: true
	// Enum: [FINITE INFINITE_UNMETERED INFINITE_METERED]
	LimitType *string `json:"limit_type"`
}

MutableRatingGroup mutable rating group swagger:model mutable_rating_group

func (*MutableRatingGroup) MarshalBinary

func (m *MutableRatingGroup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MutableRatingGroup) ToEntityUpdateCriteria

func (m *MutableRatingGroup) ToEntityUpdateCriteria(id uint32) configurator.EntityUpdateCriteria

func (*MutableRatingGroup) ToRatingGroup

func (m *MutableRatingGroup) ToRatingGroup(id uint32) *RatingGroup

func (*MutableRatingGroup) UnmarshalBinary

func (m *MutableRatingGroup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MutableRatingGroup) Validate

func (m *MutableRatingGroup) Validate(formats strfmt.Registry) error

Validate validates this mutable rating group

func (*MutableRatingGroup) ValidateModel

func (m *MutableRatingGroup) ValidateModel() error

ValidateModel does standard swagger validation and any custom validation

type NetworkSubscriberConfig

type NetworkSubscriberConfig struct {

	// network wide base names
	NetworkWideBaseNames BaseNames `json:"network_wide_base_names,omitempty"`

	// network wide rule names
	NetworkWideRuleNames RuleNames `json:"network_wide_rule_names,omitempty"`
}

NetworkSubscriberConfig Network-wide Subscriber Configuration swagger:model network_subscriber_config

func NewDefaultSubscriberConfig

func NewDefaultSubscriberConfig() *NetworkSubscriberConfig

func (*NetworkSubscriberConfig) GetFromNetwork

func (m *NetworkSubscriberConfig) GetFromNetwork(network configurator.Network) interface{}

func (*NetworkSubscriberConfig) MarshalBinary

func (m *NetworkSubscriberConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkSubscriberConfig) ToUpdateCriteria

func (*NetworkSubscriberConfig) UnmarshalBinary

func (m *NetworkSubscriberConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkSubscriberConfig) Validate

func (m *NetworkSubscriberConfig) Validate(formats strfmt.Registry) error

Validate validates this network subscriber config

func (*NetworkSubscriberConfig) ValidateModel

func (m *NetworkSubscriberConfig) ValidateModel() error

type PolicyID

type PolicyID string

PolicyID policy id swagger:model policy_id

func (PolicyID) Validate

func (m PolicyID) Validate(formats strfmt.Registry) error

Validate validates this policy id

type PolicyRule

type PolicyRule struct {

	// app name
	// Enum: [NO_APP_NAME FACEBOOK FACEBOOK_MESSENGER INSTAGRAM YOUTUBE GOOGLE GMAIL GOOGLE_DOCS NETFLIX APPLE MICROSOFT REDDIT WHATSAPP GOOGLE_PLAY APPSTORE AMAZON WECHAT TIKTOK TWITTER WIKIPEDIA GOOGLE_MAPS YAHOO IMO]
	AppName string `json:"app_name,omitempty"`

	// app service type
	// Enum: [NO_SERVICE_TYPE CHAT AUDIO VIDEO]
	AppServiceType string `json:"app_service_type,omitempty"`

	// Subscribers which have been assigned this policy not as part of a base name
	AssignedSubscribers []SubscriberID `json:"assigned_subscribers,omitempty"`

	// flow list
	// Required: true
	FlowList []*FlowDescription `json:"flow_list"`

	// id
	// Required: true
	ID PolicyID `json:"id"`

	// monitoring key
	MonitoringKey string `json:"monitoring_key,omitempty"`

	// priority
	// Required: true
	Priority *uint32 `json:"priority"`

	// qos
	Qos *FlowQos `json:"qos,omitempty"`

	// rating group
	RatingGroup uint32 `json:"rating_group,omitempty"`

	// redirect
	Redirect *RedirectInformation `json:"redirect,omitempty"`

	// tracking type
	// Enum: [ONLY_OCS ONLY_PCRF OCS_AND_PCRF NO_TRACKING]
	TrackingType string `json:"tracking_type,omitempty"`
}

PolicyRule policy rule swagger:model policy_rule

func (*PolicyRule) FromEntity

func (m *PolicyRule) FromEntity(ent configurator.NetworkEntity) *PolicyRule

func (*PolicyRule) MarshalBinary

func (m *PolicyRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PolicyRule) ToEntity

func (m *PolicyRule) ToEntity() configurator.NetworkEntity

func (*PolicyRule) ToEntityUpdateCriteria

func (m *PolicyRule) ToEntityUpdateCriteria() configurator.EntityUpdateCriteria

func (*PolicyRule) UnmarshalBinary

func (m *PolicyRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PolicyRule) Validate

func (m *PolicyRule) Validate(formats strfmt.Registry) error

Validate validates this policy rule

func (*PolicyRule) ValidateModel

func (m *PolicyRule) ValidateModel() error

ValidateModel does standard swagger validation and any custom validation

type PolicyRuleConfig

type PolicyRuleConfig struct {

	// app name
	// Enum: [NO_APP_NAME FACEBOOK FACEBOOK_MESSENGER INSTAGRAM YOUTUBE GOOGLE GMAIL GOOGLE_DOCS NETFLIX APPLE MICROSOFT REDDIT WHATSAPP GOOGLE_PLAY APPSTORE AMAZON WECHAT TIKTOK TWITTER WIKIPEDIA GOOGLE_MAPS YAHOO IMO]
	AppName string `json:"app_name,omitempty"`

	// app service type
	// Enum: [NO_SERVICE_TYPE CHAT AUDIO VIDEO]
	AppServiceType string `json:"app_service_type,omitempty"`

	// flow list
	// Required: true
	FlowList []*FlowDescription `json:"flow_list"`

	// monitoring key
	MonitoringKey string `json:"monitoring_key,omitempty"`

	// priority
	// Required: true
	Priority *uint32 `json:"priority"`

	// qos
	Qos *FlowQos `json:"qos,omitempty"`

	// rating group
	RatingGroup uint32 `json:"rating_group,omitempty"`

	// redirect
	Redirect *RedirectInformation `json:"redirect,omitempty"`

	// tracking type
	// Enum: [ONLY_OCS ONLY_PCRF OCS_AND_PCRF NO_TRACKING]
	TrackingType string `json:"tracking_type,omitempty"`
}

PolicyRuleConfig policy rule config swagger:model policy_rule_config

func (*PolicyRuleConfig) MarshalBinary

func (m *PolicyRuleConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PolicyRuleConfig) ToProto

func (m *PolicyRuleConfig) ToProto(id string) *protos.PolicyRule

func (*PolicyRuleConfig) UnmarshalBinary

func (m *PolicyRuleConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PolicyRuleConfig) Validate

func (m *PolicyRuleConfig) Validate(formats strfmt.Registry) error

Validate validates this policy rule config

type RatingGroup

type RatingGroup struct {

	// id
	// Required: true
	ID RatingGroupID `json:"id"`

	// limit type
	// Required: true
	// Enum: [FINITE INFINITE_UNMETERED INFINITE_METERED]
	LimitType *string `json:"limit_type"`
}

RatingGroup rating group swagger:model rating_group

func (*RatingGroup) FromEntity

func (m *RatingGroup) FromEntity(ent configurator.NetworkEntity) (*RatingGroup, error)

func (*RatingGroup) MarshalBinary

func (m *RatingGroup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RatingGroup) ToEntity

func (m *RatingGroup) ToEntity() configurator.NetworkEntity

func (*RatingGroup) ToProto

func (m *RatingGroup) ToProto() *protos.RatingGroup

func (*RatingGroup) UnmarshalBinary

func (m *RatingGroup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RatingGroup) Validate

func (m *RatingGroup) Validate(formats strfmt.Registry) error

Validate validates this rating group

func (*RatingGroup) ValidateModel

func (m *RatingGroup) ValidateModel() error

ValidateModel does standard swagger validation and any custom validation

type RatingGroupID

type RatingGroupID uint32

RatingGroupID rating group id swagger:model rating_group_id

func (RatingGroupID) Validate

func (m RatingGroupID) Validate(formats strfmt.Registry) error

Validate validates this rating group id

type RedirectInformation

type RedirectInformation struct {

	// address type
	// Required: true
	// Enum: [IPv4 IPv6 URL SIP_URI]
	AddressType *string `json:"address_type"`

	// server address
	// Required: true
	ServerAddress *string `json:"server_address"`

	// support
	// Required: true
	// Enum: [DISABLED ENABLED]
	Support *string `json:"support"`
}

RedirectInformation redirect information swagger:model redirect_information

func (*RedirectInformation) MarshalBinary

func (m *RedirectInformation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RedirectInformation) ToProto

func (*RedirectInformation) UnmarshalBinary

func (m *RedirectInformation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RedirectInformation) Validate

func (m *RedirectInformation) Validate(formats strfmt.Registry) error

Validate validates this redirect information

type RuleID

type RuleID string

RuleID rule id swagger:model rule_id

func (RuleID) Validate

func (m RuleID) Validate(formats strfmt.Registry) error

Validate validates this rule id

type RuleNames

type RuleNames []string

RuleNames List of rule names swagger:model rule_names

func (*RuleNames) GetFromNetwork

func (m *RuleNames) GetFromNetwork(network configurator.Network) interface{}

func (RuleNames) ToAssocs

func (m RuleNames) ToAssocs() []storage.TypeAndKey

func (*RuleNames) ToUpdateCriteria

func (m *RuleNames) ToUpdateCriteria(network configurator.Network) (configurator.NetworkUpdateCriteria, error)

func (RuleNames) Validate

func (m RuleNames) Validate(formats strfmt.Registry) error

Validate validates this rule names

func (RuleNames) ValidateModel

func (m RuleNames) ValidateModel() error

type SubscriberID

type SubscriberID string

SubscriberID subscriber id swagger:model subscriber_id

func (SubscriberID) Validate

func (m SubscriberID) Validate(formats strfmt.Registry) error

Validate validates this subscriber id

Jump to

Keyboard shortcuts

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