-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
types_list_options.go
123 lines (105 loc) · 2.44 KB
/
types_list_options.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
111
112
113
114
115
116
117
118
119
120
121
122
123
// Code generated by go generate; DO NOT EDIT.
package containers
import (
"net/url"
"github.com/containers/podman/v5/pkg/bindings/internal/util"
)
// Changed returns true if named field has been set
func (o *ListOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
// ToParams formats struct fields to be passed to API service
func (o *ListOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
// WithAll set field All to given value
func (o *ListOptions) WithAll(value bool) *ListOptions {
o.All = &value
return o
}
// GetAll returns value of field All
func (o *ListOptions) GetAll() bool {
if o.All == nil {
var z bool
return z
}
return *o.All
}
// WithExternal set field External to given value
func (o *ListOptions) WithExternal(value bool) *ListOptions {
o.External = &value
return o
}
// GetExternal returns value of field External
func (o *ListOptions) GetExternal() bool {
if o.External == nil {
var z bool
return z
}
return *o.External
}
// WithFilters set field Filters to given value
func (o *ListOptions) WithFilters(value map[string][]string) *ListOptions {
o.Filters = value
return o
}
// GetFilters returns value of field Filters
func (o *ListOptions) GetFilters() map[string][]string {
if o.Filters == nil {
var z map[string][]string
return z
}
return o.Filters
}
// WithLast set field Last to given value
func (o *ListOptions) WithLast(value int) *ListOptions {
o.Last = &value
return o
}
// GetLast returns value of field Last
func (o *ListOptions) GetLast() int {
if o.Last == nil {
var z int
return z
}
return *o.Last
}
// WithNamespace set field Namespace to given value
func (o *ListOptions) WithNamespace(value bool) *ListOptions {
o.Namespace = &value
return o
}
// GetNamespace returns value of field Namespace
func (o *ListOptions) GetNamespace() bool {
if o.Namespace == nil {
var z bool
return z
}
return *o.Namespace
}
// WithSize set field Size to given value
func (o *ListOptions) WithSize(value bool) *ListOptions {
o.Size = &value
return o
}
// GetSize returns value of field Size
func (o *ListOptions) GetSize() bool {
if o.Size == nil {
var z bool
return z
}
return *o.Size
}
// WithSync set field Sync to given value
func (o *ListOptions) WithSync(value bool) *ListOptions {
o.Sync = &value
return o
}
// GetSync returns value of field Sync
func (o *ListOptions) GetSync() bool {
if o.Sync == nil {
var z bool
return z
}
return *o.Sync
}