blob: 63551c14a98d7ef827dba46dc73b055d2e6403db (
plain)
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
|
// Code generated by go generate; DO NOT EDIT.
package network
import (
"net"
"net/url"
"github.com/containers/podman/v4/pkg/bindings/internal/util"
)
// Changed returns true if named field has been set
func (o *CreateOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
// ToParams formats struct fields to be passed to API service
func (o *CreateOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
// WithDisableDNS set field DisableDNS to given value
func (o *CreateOptions) WithDisableDNS(value bool) *CreateOptions {
o.DisableDNS = &value
return o
}
// GetDisableDNS returns value of field DisableDNS
func (o *CreateOptions) GetDisableDNS() bool {
if o.DisableDNS == nil {
var z bool
return z
}
return *o.DisableDNS
}
// WithDriver set field Driver to given value
func (o *CreateOptions) WithDriver(value string) *CreateOptions {
o.Driver = &value
return o
}
// GetDriver returns value of field Driver
func (o *CreateOptions) GetDriver() string {
if o.Driver == nil {
var z string
return z
}
return *o.Driver
}
// WithGateway set field Gateway to given value
func (o *CreateOptions) WithGateway(value net.IP) *CreateOptions {
o.Gateway = &value
return o
}
// GetGateway returns value of field Gateway
func (o *CreateOptions) GetGateway() net.IP {
if o.Gateway == nil {
var z net.IP
return z
}
return *o.Gateway
}
// WithInternal set field Internal to given value
func (o *CreateOptions) WithInternal(value bool) *CreateOptions {
o.Internal = &value
return o
}
// GetInternal returns value of field Internal
func (o *CreateOptions) GetInternal() bool {
if o.Internal == nil {
var z bool
return z
}
return *o.Internal
}
// WithLabels set field Labels to given value
func (o *CreateOptions) WithLabels(value map[string]string) *CreateOptions {
o.Labels = value
return o
}
// GetLabels returns value of field Labels
func (o *CreateOptions) GetLabels() map[string]string {
if o.Labels == nil {
var z map[string]string
return z
}
return o.Labels
}
// WithMacVLAN set field MacVLAN to given value
func (o *CreateOptions) WithMacVLAN(value string) *CreateOptions {
o.MacVLAN = &value
return o
}
// GetMacVLAN returns value of field MacVLAN
func (o *CreateOptions) GetMacVLAN() string {
if o.MacVLAN == nil {
var z string
return z
}
return *o.MacVLAN
}
// WithIPRange set field IPRange to given value
func (o *CreateOptions) WithIPRange(value net.IPNet) *CreateOptions {
o.IPRange = &value
return o
}
// GetIPRange returns value of field IPRange
func (o *CreateOptions) GetIPRange() net.IPNet {
if o.IPRange == nil {
var z net.IPNet
return z
}
return *o.IPRange
}
// WithSubnet set field Subnet to given value
func (o *CreateOptions) WithSubnet(value net.IPNet) *CreateOptions {
o.Subnet = &value
return o
}
// GetSubnet returns value of field Subnet
func (o *CreateOptions) GetSubnet() net.IPNet {
if o.Subnet == nil {
var z net.IPNet
return z
}
return *o.Subnet
}
// WithIPv6 set field IPv6 to given value
func (o *CreateOptions) WithIPv6(value bool) *CreateOptions {
o.IPv6 = &value
return o
}
// GetIPv6 returns value of field IPv6
func (o *CreateOptions) GetIPv6() bool {
if o.IPv6 == nil {
var z bool
return z
}
return *o.IPv6
}
// WithOptions set field Options to given value
func (o *CreateOptions) WithOptions(value map[string]string) *CreateOptions {
o.Options = value
return o
}
// GetOptions returns value of field Options
func (o *CreateOptions) GetOptions() map[string]string {
if o.Options == nil {
var z map[string]string
return z
}
return o.Options
}
// WithName set field Name to given value
func (o *CreateOptions) WithName(value string) *CreateOptions {
o.Name = &value
return o
}
// GetName returns value of field Name
func (o *CreateOptions) GetName() string {
if o.Name == nil {
var z string
return z
}
return *o.Name
}
|