forked from kraney/stackpath
/
model_waf_site_type.go
66 lines (52 loc) · 1.64 KB
/
model_waf_site_type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* Web Application Firewall
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 1.0.0
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package waf
import (
"encoding/json"
)
// WafSiteType A WAF site's type A site's type determines how StackPath delivers content to incoming HTTP(S) requests. - UNKNOWN_TYPE: StackPath is unable to determine a site's type - WAF: A site is either a standalone WAF site or a WAF site with attached CDN service - API: A site is an API delivery site. API delivery sites are powered by both the WAF and CDN and have custom rulesets for each.
type WafSiteType string
// List of wafSiteType
const (
WAFSITETYPE_UNKNOWN_TYPE WafSiteType = "UNKNOWN_TYPE"
WAFSITETYPE_WAF WafSiteType = "WAF"
WAFSITETYPE_API WafSiteType = "API"
)
// Ptr returns reference to wafSiteType value
func (v WafSiteType) Ptr() *WafSiteType {
return &v
}
type NullableWafSiteType struct {
value *WafSiteType
isSet bool
}
func (v NullableWafSiteType) Get() *WafSiteType {
return v.value
}
func (v *NullableWafSiteType) Set(val *WafSiteType) {
v.value = val
v.isSet = true
}
func (v NullableWafSiteType) IsSet() bool {
return v.isSet
}
func (v *NullableWafSiteType) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableWafSiteType(val *WafSiteType) *NullableWafSiteType {
return &NullableWafSiteType{value: val, isSet: true}
}
func (v NullableWafSiteType) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableWafSiteType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}