forked from kraney/stackpath
/
model_v2_ip_version.go
65 lines (51 loc) · 1.4 KB
/
model_v2_ip_version.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
/*
* Monitoring
*
* 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 monitoring
import (
"encoding/json"
)
// V2IpVersion The IP version of a monitor The IP version defines which type of location a monitor can run from. Not all locations support both IP versions. - IPV4: An IPv4 monitor - IPV6: An IPv6 monitor
type V2IpVersion string
// List of v2IpVersion
const (
V2IPVERSION_IPV4 V2IpVersion = "IPV4"
V2IPVERSION_IPV6 V2IpVersion = "IPV6"
)
// Ptr returns reference to v2IpVersion value
func (v V2IpVersion) Ptr() *V2IpVersion {
return &v
}
type NullableV2IpVersion struct {
value *V2IpVersion
isSet bool
}
func (v NullableV2IpVersion) Get() *V2IpVersion {
return v.value
}
func (v *NullableV2IpVersion) Set(val *V2IpVersion) {
v.value = val
v.isSet = true
}
func (v NullableV2IpVersion) IsSet() bool {
return v.isSet
}
func (v *NullableV2IpVersion) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableV2IpVersion(val *V2IpVersion) *NullableV2IpVersion {
return &NullableV2IpVersion{value: val, isSet: true}
}
func (v NullableV2IpVersion) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableV2IpVersion) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}