-
Notifications
You must be signed in to change notification settings - Fork 347
/
zgen_environment_image_map_v0.go
54 lines (42 loc) · 1.35 KB
/
zgen_environment_image_map_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
// 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 (e EnvironmentImageMapV0) CPU() string {
if e.RawCPU == nil {
panic("You must call WithDefaults on EnvironmentImageMapV0 before .CPU")
}
return *e.RawCPU
}
func (e *EnvironmentImageMapV0) SetCPU(val string) {
e.RawCPU = &val
}
func (e EnvironmentImageMapV0) CUDA() string {
if e.RawCUDA == nil {
panic("You must call WithDefaults on EnvironmentImageMapV0 before .CUDA")
}
return *e.RawCUDA
}
func (e *EnvironmentImageMapV0) SetCUDA(val string) {
e.RawCUDA = &val
}
func (e EnvironmentImageMapV0) ROCM() string {
if e.RawROCM == nil {
panic("You must call WithDefaults on EnvironmentImageMapV0 before .ROCM")
}
return *e.RawROCM
}
func (e *EnvironmentImageMapV0) SetROCM(val string) {
e.RawROCM = &val
}
func (e EnvironmentImageMapV0) ParsedSchema() interface{} {
return schemas.ParsedEnvironmentImageMapV0()
}
func (e EnvironmentImageMapV0) SanityValidator() *jsonschema.Schema {
return schemas.GetSanityValidator("http://determined.ai/schemas/expconf/v0/environment-image-map.json")
}
func (e EnvironmentImageMapV0) CompletenessValidator() *jsonschema.Schema {
return schemas.GetCompletenessValidator("http://determined.ai/schemas/expconf/v0/environment-image-map.json")
}