@@ -203,7 +203,11 @@ type ACL struct {
203
203
// The name of the ACL.
204
204
Name string `json:"name"`
205
205
Protocols []AllowedProtocol `json:"protocols"`
206
- JSON aclJSON `json:"-"`
206
+ // The desired traffic direction for this ACL policy. If set to "false", the policy
207
+ // will allow bidirectional traffic. If set to "true", the policy will only allow
208
+ // traffic in one direction. If not included in request, will default to false.
209
+ Unidirectional bool `json:"unidirectional"`
210
+ JSON aclJSON `json:"-"`
207
211
}
208
212
209
213
// aclJSON contains the JSON metadata for the struct [ACL]
@@ -215,6 +219,7 @@ type aclJSON struct {
215
219
LAN2 apijson.Field
216
220
Name apijson.Field
217
221
Protocols apijson.Field
222
+ Unidirectional apijson.Field
218
223
raw string
219
224
ExtraFields map [string ]apijson.Field
220
225
}
@@ -314,6 +319,10 @@ type SiteACLNewParams struct {
314
319
// to false.
315
320
ForwardLocally param.Field [bool ] `json:"forward_locally"`
316
321
Protocols param.Field [[]AllowedProtocol ] `json:"protocols"`
322
+ // The desired traffic direction for this ACL policy. If set to "false", the policy
323
+ // will allow bidirectional traffic. If set to "true", the policy will only allow
324
+ // traffic in one direction. If not included in request, will default to false.
325
+ Unidirectional param.Field [bool ] `json:"unidirectional"`
317
326
}
318
327
319
328
func (r SiteACLNewParams ) MarshalJSON () (data []byte , err error ) {
@@ -379,6 +388,10 @@ type SiteACLUpdateParams struct {
379
388
// The name of the ACL.
380
389
Name param.Field [string ] `json:"name"`
381
390
Protocols param.Field [[]AllowedProtocol ] `json:"protocols"`
391
+ // The desired traffic direction for this ACL policy. If set to "false", the policy
392
+ // will allow bidirectional traffic. If set to "true", the policy will only allow
393
+ // traffic in one direction. If not included in request, will default to false.
394
+ Unidirectional param.Field [bool ] `json:"unidirectional"`
382
395
}
383
396
384
397
func (r SiteACLUpdateParams ) MarshalJSON () (data []byte , err error ) {
@@ -498,6 +511,10 @@ type SiteACLEditParams struct {
498
511
// The name of the ACL.
499
512
Name param.Field [string ] `json:"name"`
500
513
Protocols param.Field [[]AllowedProtocol ] `json:"protocols"`
514
+ // The desired traffic direction for this ACL policy. If set to "false", the policy
515
+ // will allow bidirectional traffic. If set to "true", the policy will only allow
516
+ // traffic in one direction. If not included in request, will default to false.
517
+ Unidirectional param.Field [bool ] `json:"unidirectional"`
501
518
}
502
519
503
520
func (r SiteACLEditParams ) MarshalJSON () (data []byte , err error ) {
0 commit comments