-
Notifications
You must be signed in to change notification settings - Fork 347
/
zgen_proxy_port_v0.go
62 lines (48 loc) · 1.49 KB
/
zgen_proxy_port_v0.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
// Code generated by gen.py. DO NOT EDIT.
package expconf
import (
"github.com/santhosh-tekuri/jsonschema/v2"
"github.com/determined-ai/determined/master/pkg/schemas"
)
func (p ProxyPortV0) ProxyPort() int {
return p.RawProxyPort
}
func (p *ProxyPortV0) SetProxyPort(val int) {
p.RawProxyPort = val
}
func (p ProxyPortV0) ProxyTCP() bool {
if p.RawProxyTCP == nil {
panic("You must call WithDefaults on ProxyPortV0 before .ProxyTCP")
}
return *p.RawProxyTCP
}
func (p *ProxyPortV0) SetProxyTCP(val bool) {
p.RawProxyTCP = &val
}
func (p ProxyPortV0) Unauthenticated() bool {
if p.RawUnauthenticated == nil {
panic("You must call WithDefaults on ProxyPortV0 before .Unauthenticated")
}
return *p.RawUnauthenticated
}
func (p *ProxyPortV0) SetUnauthenticated(val bool) {
p.RawUnauthenticated = &val
}
func (p ProxyPortV0) DefaultServiceID() bool {
if p.RawDefaultServiceID == nil {
panic("You must call WithDefaults on ProxyPortV0 before .DefaultServiceID")
}
return *p.RawDefaultServiceID
}
func (p *ProxyPortV0) SetDefaultServiceID(val bool) {
p.RawDefaultServiceID = &val
}
func (p ProxyPortV0) ParsedSchema() interface{} {
return schemas.ParsedProxyPortV0()
}
func (p ProxyPortV0) SanityValidator() *jsonschema.Schema {
return schemas.GetSanityValidator("http://determined.ai/schemas/expconf/v0/proxy-port.json")
}
func (p ProxyPortV0) CompletenessValidator() *jsonschema.Schema {
return schemas.GetCompletenessValidator("http://determined.ai/schemas/expconf/v0/proxy-port.json")
}