/
client_defaults.go
110 lines (85 loc) · 2.5 KB
/
client_defaults.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package form3
import (
"github.com/go-openapi/strfmt"
"github.com/google/uuid"
)
type ClientDefaults struct {
OrganisationID *strfmt.UUID
}
func (d *ClientDefaults) GetStrfmtUUID(objectName, attributeName string) strfmt.UUID {
var a strfmt.UUID
if attributeName == "organisation_id" && d.OrganisationID != nil {
a = *d.OrganisationID
} else if attributeName == "id" {
a = strfmt.UUID(uuid.Must(uuid.NewRandom()).String())
}
return a
}
func (d *ClientDefaults) GetStrfmtUUIDPtr(objectName, attributeName string) *strfmt.UUID {
if attributeName == "organisation_id" {
return d.OrganisationID
}
if attributeName == "id" {
u := strfmt.UUID(uuid.Must(uuid.NewRandom()).String())
return &u
}
return nil
}
func (*ClientDefaults) GetStrfmtDateTime(objectName, attributeName string) strfmt.DateTime {
var a strfmt.DateTime
return a
}
func (*ClientDefaults) GetStrfmtDateTimePtr(objectName, attributeName string) *strfmt.DateTime {
return nil
}
func (*ClientDefaults) GetStrfmtDate(objectName, attributeName string) strfmt.Date {
var a strfmt.Date
return a
}
func (*ClientDefaults) GetStrfmtDatePtr(objectName, attributeName string) *strfmt.Date {
return nil
}
func (*ClientDefaults) GetStrfmtURI(objectName, attributeName string) strfmt.URI {
var a strfmt.URI
return a
}
func (*ClientDefaults) GetStrfmtURIPtr(objectName, attributeName string) *strfmt.URI {
return nil
}
func (*ClientDefaults) GetString(objectName, attributeName string) string {
return ""
}
func (*ClientDefaults) GetStringArray(objectName, attributeName string) []string {
var a []string
return a
}
func (*ClientDefaults) GetStringPtr(objectName, attributeName string) *string {
return nil
}
func (*ClientDefaults) GetBool(objectName, attributeName string) bool {
return true
}
func (*ClientDefaults) GetBoolPtr(objectName, attributeName string) *bool {
return nil
}
func (*ClientDefaults) GetInt64(objectName, attributeName string) int64 {
return int64(44)
}
func (*ClientDefaults) GetInt64Ptr(objectName, attributeName string) *int64 {
return nil
}
func (*ClientDefaults) GetInt32(objectName, attributeName string) int32 {
return int32(44)
}
func (*ClientDefaults) GetFloat64(objectName, attributeName string) float64 {
return float64(44)
}
func (*ClientDefaults) GetFloat64Ptr(objectName, attributeName string) *float64 {
return nil
}
func (*ClientDefaults) GetMapStringInterface(objectName, attributeName string) map[string]interface{} {
return nil
}
func NewClientDefaults() *ClientDefaults {
return &ClientDefaults{}
}