Documentation ¶
Index ¶
- Constants
- type BaseName
- type BaseNameRecord
- func (m *BaseNameRecord) FromEntity(ent configurator.NetworkEntity) *BaseNameRecord
- func (m *BaseNameRecord) MarshalBinary() ([]byte, error)
- func (m *BaseNameRecord) ToEntity() configurator.NetworkEntity
- func (m *BaseNameRecord) ToEntityUpdateCriteria() configurator.EntityUpdateCriteria
- func (m *BaseNameRecord) UnmarshalBinary(b []byte) error
- func (m *BaseNameRecord) Validate(formats strfmt.Registry) error
- type BaseNames
- type FlowDescription
- type FlowMatch
- type FlowQos
- type MutableRatingGroup
- func (m *MutableRatingGroup) MarshalBinary() ([]byte, error)
- func (m *MutableRatingGroup) ToEntityUpdateCriteria(id uint32) configurator.EntityUpdateCriteria
- func (m *MutableRatingGroup) ToRatingGroup(id uint32) *RatingGroup
- func (m *MutableRatingGroup) UnmarshalBinary(b []byte) error
- func (m *MutableRatingGroup) Validate(formats strfmt.Registry) error
- func (m *MutableRatingGroup) ValidateModel() error
- type NetworkSubscriberConfig
- func (m *NetworkSubscriberConfig) GetFromNetwork(network configurator.Network) interface{}
- func (m *NetworkSubscriberConfig) MarshalBinary() ([]byte, error)
- func (m *NetworkSubscriberConfig) ToUpdateCriteria(network configurator.Network) (configurator.NetworkUpdateCriteria, error)
- func (m *NetworkSubscriberConfig) UnmarshalBinary(b []byte) error
- func (m *NetworkSubscriberConfig) Validate(formats strfmt.Registry) error
- func (m *NetworkSubscriberConfig) ValidateModel() error
- type PolicyID
- type PolicyRule
- func (m *PolicyRule) FromEntity(ent configurator.NetworkEntity) *PolicyRule
- func (m *PolicyRule) MarshalBinary() ([]byte, error)
- func (m *PolicyRule) ToEntity() configurator.NetworkEntity
- func (m *PolicyRule) ToEntityUpdateCriteria() configurator.EntityUpdateCriteria
- func (m *PolicyRule) UnmarshalBinary(b []byte) error
- func (m *PolicyRule) Validate(formats strfmt.Registry) error
- func (m *PolicyRule) ValidateModel() error
- type PolicyRuleConfig
- type RatingGroup
- func (m *RatingGroup) FromEntity(ent configurator.NetworkEntity) (*RatingGroup, error)
- func (m *RatingGroup) MarshalBinary() ([]byte, error)
- func (m *RatingGroup) ToEntity() configurator.NetworkEntity
- func (m *RatingGroup) ToProto() *protos.RatingGroup
- func (m *RatingGroup) UnmarshalBinary(b []byte) error
- func (m *RatingGroup) Validate(formats strfmt.Registry) error
- func (m *RatingGroup) ValidateModel() error
- type RatingGroupID
- type RedirectInformation
- type RuleID
- type RuleNames
- func (m *RuleNames) GetFromNetwork(network configurator.Network) interface{}
- func (m RuleNames) ToAssocs() []storage.TypeAndKey
- func (m *RuleNames) ToUpdateCriteria(network configurator.Network) (configurator.NetworkUpdateCriteria, error)
- func (m RuleNames) Validate(formats strfmt.Registry) error
- func (m RuleNames) ValidateModel() error
- type SubscriberID
Constants ¶
const ( // FlowDescriptionActionPERMIT captures enum value "PERMIT" FlowDescriptionActionPERMIT string = "PERMIT" // FlowDescriptionActionDENY captures enum value "DENY" FlowDescriptionActionDENY string = "DENY" )
const ( // FlowMatchDirectionUPLINK captures enum value "UPLINK" FlowMatchDirectionUPLINK string = "UPLINK" // FlowMatchDirectionDOWNLINK captures enum value "DOWNLINK" FlowMatchDirectionDOWNLINK string = "DOWNLINK" )
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" )
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" )
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" )
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" )
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" )
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" )
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" )
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" )
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" )
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" )
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 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 (m *BaseNameRecord) FromEntity(ent configurator.NetworkEntity) *BaseNameRecord
func (*BaseNameRecord) MarshalBinary ¶
func (m *BaseNameRecord) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BaseNameRecord) ToEntity ¶
func (m *BaseNameRecord) ToEntity() configurator.NetworkEntity
func (*BaseNameRecord) ToEntityUpdateCriteria ¶
func (m *BaseNameRecord) ToEntityUpdateCriteria() configurator.EntityUpdateCriteria
func (*BaseNameRecord) UnmarshalBinary ¶
func (m *BaseNameRecord) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) ValidateModel ¶
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
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 ¶
MarshalBinary interface implementation
func (*FlowMatch) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*FlowQos) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 (m *NetworkSubscriberConfig) ToUpdateCriteria(network configurator.Network) (configurator.NetworkUpdateCriteria, error)
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 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
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
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 (m *RedirectInformation) ToProto() *protos.RedirectInformation
func (*RedirectInformation) UnmarshalBinary ¶
func (m *RedirectInformation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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) ValidateModel ¶
Source Files ¶
- base_name_record_swaggergen.go
- base_name_swaggergen.go
- base_names_swaggergen.go
- conversion.go
- defaults.go
- flow_description_swaggergen.go
- flow_match_swaggergen.go
- flow_qos_swaggergen.go
- gen.go
- mutable_rating_group_swaggergen.go
- network_subscriber_config_swaggergen.go
- policy_id_swaggergen.go
- policy_rule_config_swaggergen.go
- policy_rule_swaggergen.go
- rating_group_id_swaggergen.go
- rating_group_swaggergen.go
- redirect_information_swaggergen.go
- rule_id_swaggergen.go
- rule_names_swaggergen.go
- subscriber_id_swaggergen.go
- validate.go