forked from esurdam/go-sophos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qos.go
564 lines (467 loc) · 22 KB
/
qos.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
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
package objects
import (
"fmt"
"github.com/esurdam/go-sophos"
)
// Qos is a generated struct representing the Sophos Qos Endpoint
// GET /api/nodes/qos
type Qos struct {
Advanced struct {
Ecn int64 `json:"ecn"`
KeepClassAfterEncap int64 `json:"keep_class_after_encap"`
} `json:"advanced"`
Interfaces []string `json:"interfaces"`
}
var _ sophos.Endpoint = &Qos{}
var defsQos = map[string]sophos.RestObject{
"QosApplicationSelector": &QosApplicationSelector{},
"QosGroup": &QosGroup{},
"QosIngressRule": &QosIngressRule{},
"QosInterface": &QosInterface{},
"QosRule": &QosRule{},
"QosTrafficSelector": &QosTrafficSelector{},
"QosTrafficSelectorGroup": &QosTrafficSelectorGroup{},
}
// RestObjects implements the sophos.Node interface and returns a map of Qos's Objects
func (Qos) RestObjects() map[string]sophos.RestObject { return defsQos }
// GetPath implements sophos.RestGetter
func (*Qos) GetPath() string { return "/api/nodes/qos" }
// RefRequired implements sophos.RestGetter
func (*Qos) RefRequired() (string, bool) { return "", false }
var defQos = &sophos.Definition{Description: "qos", Name: "qos", Link: "/api/definitions/qos"}
// Definition returns the /api/definitions struct of Qos
func (Qos) Definition() sophos.Definition { return *defQos }
// ApiRoutes returns all known Qos Paths
func (Qos) ApiRoutes() []string {
return []string{
"/api/objects/qos/application_selector/",
"/api/objects/qos/application_selector/{ref}",
"/api/objects/qos/application_selector/{ref}/usedby",
"/api/objects/qos/group/",
"/api/objects/qos/group/{ref}",
"/api/objects/qos/group/{ref}/usedby",
"/api/objects/qos/ingress_rule/",
"/api/objects/qos/ingress_rule/{ref}",
"/api/objects/qos/ingress_rule/{ref}/usedby",
"/api/objects/qos/interface/",
"/api/objects/qos/interface/{ref}",
"/api/objects/qos/interface/{ref}/usedby",
"/api/objects/qos/rule/",
"/api/objects/qos/rule/{ref}",
"/api/objects/qos/rule/{ref}/usedby",
"/api/objects/qos/traffic_selector/",
"/api/objects/qos/traffic_selector/{ref}",
"/api/objects/qos/traffic_selector/{ref}/usedby",
"/api/objects/qos/traffic_selector_group/",
"/api/objects/qos/traffic_selector_group/{ref}",
"/api/objects/qos/traffic_selector_group/{ref}/usedby",
}
}
// References returns the Qos's references. These strings serve no purpose other than to demonstrate which
// Reference keys are used for this Endpoint
func (Qos) References() []string {
return []string{
"REF_QosApplicationSelector",
"REF_QosGroup",
"REF_QosIngressRule",
"REF_QosInterface",
"REF_QosRule",
"REF_QosTrafficSelector",
"REF_QosTrafficSelectorGroup",
}
}
// QosApplicationSelectors is an Sophos Endpoint subType and implements sophos.RestObject
type QosApplicationSelectors []QosApplicationSelector
// QosApplicationSelector represents a UTM QoS application selector
type QosApplicationSelector struct {
Locked string `json:"_locked"`
ObjectType string `json:"_type"`
Reference string `json:"_ref"`
GroupFilterProductivity int `json:"group_filter_productivity"`
GroupFilterRisk int `json:"group_filter_risk"`
// Source description: REF(network/*)
Source string `json:"source"`
Comment string `json:"comment"`
Connbytes int `json:"connbytes"`
// Destination description: REF(network/*)
Destination string `json:"destination"`
Groups []interface{} `json:"groups"`
Name string `json:"name"`
Applications []interface{} `json:"applications"`
// ConnbytesUpperlimit default value is false
ConnbytesUpperlimit bool `json:"connbytes_upperlimit"`
}
var _ sophos.RestGetter = &QosApplicationSelector{}
// GetPath implements sophos.RestObject and returns the QosApplicationSelectors GET path
// Returns all available qos/application_selector objects
func (*QosApplicationSelectors) GetPath() string { return "/api/objects/qos/application_selector/" }
// RefRequired implements sophos.RestObject
func (*QosApplicationSelectors) RefRequired() (string, bool) { return "", false }
// GetPath implements sophos.RestObject and returns the QosApplicationSelectors GET path
// Returns all available application_selector types
func (q *QosApplicationSelector) GetPath() string {
return fmt.Sprintf("/api/objects/qos/application_selector/%s", q.Reference)
}
// RefRequired implements sophos.RestObject
func (q *QosApplicationSelector) RefRequired() (string, bool) { return q.Reference, true }
// DeletePath implements sophos.RestObject and returns the QosApplicationSelector DELETE path
// Creates or updates the complete object application_selector
func (*QosApplicationSelector) DeletePath(ref string) string {
return fmt.Sprintf("/api/objects/qos/application_selector/%s", ref)
}
// PatchPath implements sophos.RestObject and returns the QosApplicationSelector PATCH path
// Changes to parts of the object application_selector types
func (*QosApplicationSelector) PatchPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/application_selector/%s", ref)
}
// PostPath implements sophos.RestObject and returns the QosApplicationSelector POST path
// Create a new qos/application_selector object
func (*QosApplicationSelector) PostPath() string {
return "/api/objects/qos/application_selector/"
}
// PutPath implements sophos.RestObject and returns the QosApplicationSelector PUT path
// Creates or updates the complete object application_selector
func (*QosApplicationSelector) PutPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/application_selector/%s", ref)
}
// UsedByPath implements sophos.RestObject
// Returns the objects and the nodes that use the object with the given ref
func (*QosApplicationSelector) UsedByPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/application_selector/%s/usedby", ref)
}
// QosGroups is an Sophos Endpoint subType and implements sophos.RestObject
type QosGroups []QosGroup
// QosGroup represents a UTM group
type QosGroup struct {
Locked string `json:"_locked"`
ObjectType string `json:"_type"`
Reference string `json:"_ref"`
Name string `json:"name"`
Comment string `json:"comment"`
}
var _ sophos.RestGetter = &QosGroup{}
// GetPath implements sophos.RestObject and returns the QosGroups GET path
// Returns all available qos/group objects
func (*QosGroups) GetPath() string { return "/api/objects/qos/group/" }
// RefRequired implements sophos.RestObject
func (*QosGroups) RefRequired() (string, bool) { return "", false }
// GetPath implements sophos.RestObject and returns the QosGroups GET path
// Returns all available group types
func (q *QosGroup) GetPath() string { return fmt.Sprintf("/api/objects/qos/group/%s", q.Reference) }
// RefRequired implements sophos.RestObject
func (q *QosGroup) RefRequired() (string, bool) { return q.Reference, true }
// DeletePath implements sophos.RestObject and returns the QosGroup DELETE path
// Creates or updates the complete object group
func (*QosGroup) DeletePath(ref string) string {
return fmt.Sprintf("/api/objects/qos/group/%s", ref)
}
// PatchPath implements sophos.RestObject and returns the QosGroup PATCH path
// Changes to parts of the object group types
func (*QosGroup) PatchPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/group/%s", ref)
}
// PostPath implements sophos.RestObject and returns the QosGroup POST path
// Create a new qos/group object
func (*QosGroup) PostPath() string {
return "/api/objects/qos/group/"
}
// PutPath implements sophos.RestObject and returns the QosGroup PUT path
// Creates or updates the complete object group
func (*QosGroup) PutPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/group/%s", ref)
}
// UsedByPath implements sophos.RestObject
// Returns the objects and the nodes that use the object with the given ref
func (*QosGroup) UsedByPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/group/%s/usedby", ref)
}
// QosIngressRules is an Sophos Endpoint subType and implements sophos.RestObject
type QosIngressRules []QosIngressRule
// QosIngressRule represents a UTM QoS traffic throttling
type QosIngressRule struct {
Locked string `json:"_locked"`
ObjectType string `json:"_type"`
Reference string `json:"_ref"`
Name string `json:"name"`
// Status default value is false
Status bool `json:"status"`
TrafficSelectors []interface{} `json:"traffic_selectors"`
Comment string `json:"comment"`
Limit int `json:"limit"`
// Mode can be one of: []string{",", "srcip", "dstip", "srcip,dstip"}
// Mode default value is ""
Mode string `json:"mode"`
}
var _ sophos.RestGetter = &QosIngressRule{}
// GetPath implements sophos.RestObject and returns the QosIngressRules GET path
// Returns all available qos/ingress_rule objects
func (*QosIngressRules) GetPath() string { return "/api/objects/qos/ingress_rule/" }
// RefRequired implements sophos.RestObject
func (*QosIngressRules) RefRequired() (string, bool) { return "", false }
// GetPath implements sophos.RestObject and returns the QosIngressRules GET path
// Returns all available ingress_rule types
func (q *QosIngressRule) GetPath() string {
return fmt.Sprintf("/api/objects/qos/ingress_rule/%s", q.Reference)
}
// RefRequired implements sophos.RestObject
func (q *QosIngressRule) RefRequired() (string, bool) { return q.Reference, true }
// DeletePath implements sophos.RestObject and returns the QosIngressRule DELETE path
// Creates or updates the complete object ingress_rule
func (*QosIngressRule) DeletePath(ref string) string {
return fmt.Sprintf("/api/objects/qos/ingress_rule/%s", ref)
}
// PatchPath implements sophos.RestObject and returns the QosIngressRule PATCH path
// Changes to parts of the object ingress_rule types
func (*QosIngressRule) PatchPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/ingress_rule/%s", ref)
}
// PostPath implements sophos.RestObject and returns the QosIngressRule POST path
// Create a new qos/ingress_rule object
func (*QosIngressRule) PostPath() string {
return "/api/objects/qos/ingress_rule/"
}
// PutPath implements sophos.RestObject and returns the QosIngressRule PUT path
// Creates or updates the complete object ingress_rule
func (*QosIngressRule) PutPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/ingress_rule/%s", ref)
}
// UsedByPath implements sophos.RestObject
// Returns the objects and the nodes that use the object with the given ref
func (*QosIngressRule) UsedByPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/ingress_rule/%s/usedby", ref)
}
// QosInterfaces is an Sophos Endpoint subType and implements sophos.RestObject
type QosInterfaces []QosInterface
// QosInterface is a generated Sophos object
type QosInterface struct {
Locked string `json:"_locked"`
Reference string `json:"_ref"`
ObjectType string `json:"_type"`
Comment string `json:"comment"`
Downlink int64 `json:"downlink"`
DownlinkOptimizer bool `json:"downlink_optimizer"`
IngressRules []interface{} `json:"ingress_rules"`
Interface string `json:"interface"`
Name string `json:"name"`
Rules []interface{} `json:"rules"`
Status bool `json:"status"`
Uplink int64 `json:"uplink"`
UplinkLimit bool `json:"uplink_limit"`
UplinkOptimizer bool `json:"uplink_optimizer"`
}
var _ sophos.RestGetter = &QosInterface{}
// GetPath implements sophos.RestObject and returns the QosInterfaces GET path
// Returns all available qos/interface objects
func (*QosInterfaces) GetPath() string { return "/api/objects/qos/interface/" }
// RefRequired implements sophos.RestObject
func (*QosInterfaces) RefRequired() (string, bool) { return "", false }
// GetPath implements sophos.RestObject and returns the QosInterfaces GET path
// Returns all available interface types
func (q *QosInterface) GetPath() string {
return fmt.Sprintf("/api/objects/qos/interface/%s", q.Reference)
}
// RefRequired implements sophos.RestObject
func (q *QosInterface) RefRequired() (string, bool) { return q.Reference, true }
// DeletePath implements sophos.RestObject and returns the QosInterface DELETE path
// Creates or updates the complete object interface
func (*QosInterface) DeletePath(ref string) string {
return fmt.Sprintf("/api/objects/qos/interface/%s", ref)
}
// PatchPath implements sophos.RestObject and returns the QosInterface PATCH path
// Changes to parts of the object interface types
func (*QosInterface) PatchPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/interface/%s", ref)
}
// PostPath implements sophos.RestObject and returns the QosInterface POST path
// Create a new qos/interface object
func (*QosInterface) PostPath() string {
return "/api/objects/qos/interface/"
}
// PutPath implements sophos.RestObject and returns the QosInterface PUT path
// Creates or updates the complete object interface
func (*QosInterface) PutPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/interface/%s", ref)
}
// UsedByPath implements sophos.RestObject
// Returns the objects and the nodes that use the object with the given ref
func (*QosInterface) UsedByPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/interface/%s/usedby", ref)
}
// GetType implements sophos.Object
func (q *QosInterface) GetType() string { return q.ObjectType }
// QosRules is an Sophos Endpoint subType and implements sophos.RestObject
type QosRules []QosRule
// QosRule represents a UTM QoS bandwidth pool
type QosRule struct {
Locked string `json:"_locked"`
ObjectType string `json:"_type"`
Reference string `json:"_ref"`
Bandwidth int `json:"bandwidth"`
Comment string `json:"comment"`
Name string `json:"name"`
// Status default value is false
Status bool `json:"status"`
TrafficSelectors []interface{} `json:"traffic_selectors"`
// UpperLimitStatus default value is false
UpperLimitStatus bool `json:"upper_limit_status"`
UpperLimitValue int `json:"upper_limit_value"`
}
var _ sophos.RestGetter = &QosRule{}
// GetPath implements sophos.RestObject and returns the QosRules GET path
// Returns all available qos/rule objects
func (*QosRules) GetPath() string { return "/api/objects/qos/rule/" }
// RefRequired implements sophos.RestObject
func (*QosRules) RefRequired() (string, bool) { return "", false }
// GetPath implements sophos.RestObject and returns the QosRules GET path
// Returns all available rule types
func (q *QosRule) GetPath() string { return fmt.Sprintf("/api/objects/qos/rule/%s", q.Reference) }
// RefRequired implements sophos.RestObject
func (q *QosRule) RefRequired() (string, bool) { return q.Reference, true }
// DeletePath implements sophos.RestObject and returns the QosRule DELETE path
// Creates or updates the complete object rule
func (*QosRule) DeletePath(ref string) string {
return fmt.Sprintf("/api/objects/qos/rule/%s", ref)
}
// PatchPath implements sophos.RestObject and returns the QosRule PATCH path
// Changes to parts of the object rule types
func (*QosRule) PatchPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/rule/%s", ref)
}
// PostPath implements sophos.RestObject and returns the QosRule POST path
// Create a new qos/rule object
func (*QosRule) PostPath() string {
return "/api/objects/qos/rule/"
}
// PutPath implements sophos.RestObject and returns the QosRule PUT path
// Creates or updates the complete object rule
func (*QosRule) PutPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/rule/%s", ref)
}
// UsedByPath implements sophos.RestObject
// Returns the objects and the nodes that use the object with the given ref
func (*QosRule) UsedByPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/rule/%s/usedby", ref)
}
// QosTrafficSelectors is an Sophos Endpoint subType and implements sophos.RestObject
type QosTrafficSelectors []QosTrafficSelector
// QosTrafficSelector represents a UTM QoS traffic selector
type QosTrafficSelector struct {
Locked string `json:"_locked"`
ObjectType string `json:"_type"`
Reference string `json:"_ref"`
// PacketLength default value is ""
PacketLength string `json:"packet_length"`
// Service description: REF(service/*)
// Service default value is "REF_ServiceAny"
Service string `json:"service"`
// Source description: REF(network/*)
Source string `json:"source"`
// DscpType can be one of: []string{"off", "value", "class"}
// DscpType default value is "off"
DscpType string `json:"dscp_type"`
// Tos can be one of: []string{"off", "normal", "min_cost", "max_reliable", "max_throughput", "min_delay"}
// Tos default value is "off"
Tos string `json:"tos"`
Connbytes int `json:"connbytes"`
// ConnbytesUpperlimit default value is false
ConnbytesUpperlimit bool `json:"connbytes_upperlimit"`
DscpValue int `json:"dscp_value"`
// Helper description: (REGEX)
// Helper default value is ""
Helper string `json:"helper"`
TcpFlags []interface{} `json:"tcp_flags"`
Comment string `json:"comment"`
// Destination description: REF(network/*)
Destination string `json:"destination"`
// DscpString can be one of: []string{"BE", "AF11", "AF12", "AF13", "AF21", "AF22", "AF23", "AF31", "AF32", "AF33", "AF41", "AF42", "AF43", "CS1", "CS2", "CS3", "CS4", "CS5", "CS6", "CS7", "EF"}
// DscpString default value is "BE"
DscpString string `json:"dscp_string"`
Name string `json:"name"`
}
var _ sophos.RestGetter = &QosTrafficSelector{}
// GetPath implements sophos.RestObject and returns the QosTrafficSelectors GET path
// Returns all available qos/traffic_selector objects
func (*QosTrafficSelectors) GetPath() string { return "/api/objects/qos/traffic_selector/" }
// RefRequired implements sophos.RestObject
func (*QosTrafficSelectors) RefRequired() (string, bool) { return "", false }
// GetPath implements sophos.RestObject and returns the QosTrafficSelectors GET path
// Returns all available traffic_selector types
func (q *QosTrafficSelector) GetPath() string {
return fmt.Sprintf("/api/objects/qos/traffic_selector/%s", q.Reference)
}
// RefRequired implements sophos.RestObject
func (q *QosTrafficSelector) RefRequired() (string, bool) { return q.Reference, true }
// DeletePath implements sophos.RestObject and returns the QosTrafficSelector DELETE path
// Creates or updates the complete object traffic_selector
func (*QosTrafficSelector) DeletePath(ref string) string {
return fmt.Sprintf("/api/objects/qos/traffic_selector/%s", ref)
}
// PatchPath implements sophos.RestObject and returns the QosTrafficSelector PATCH path
// Changes to parts of the object traffic_selector types
func (*QosTrafficSelector) PatchPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/traffic_selector/%s", ref)
}
// PostPath implements sophos.RestObject and returns the QosTrafficSelector POST path
// Create a new qos/traffic_selector object
func (*QosTrafficSelector) PostPath() string {
return "/api/objects/qos/traffic_selector/"
}
// PutPath implements sophos.RestObject and returns the QosTrafficSelector PUT path
// Creates or updates the complete object traffic_selector
func (*QosTrafficSelector) PutPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/traffic_selector/%s", ref)
}
// UsedByPath implements sophos.RestObject
// Returns the objects and the nodes that use the object with the given ref
func (*QosTrafficSelector) UsedByPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/traffic_selector/%s/usedby", ref)
}
// QosTrafficSelectorGroups is an Sophos Endpoint subType and implements sophos.RestObject
type QosTrafficSelectorGroups []QosTrafficSelectorGroup
// QosTrafficSelectorGroup represents a UTM QoS traffic selector group
type QosTrafficSelectorGroup struct {
Locked string `json:"_locked"`
ObjectType string `json:"_type"`
Reference string `json:"_ref"`
Comment string `json:"comment"`
Members []interface{} `json:"members"`
Name string `json:"name"`
}
var _ sophos.RestGetter = &QosTrafficSelectorGroup{}
// GetPath implements sophos.RestObject and returns the QosTrafficSelectorGroups GET path
// Returns all available qos/traffic_selector_group objects
func (*QosTrafficSelectorGroups) GetPath() string { return "/api/objects/qos/traffic_selector_group/" }
// RefRequired implements sophos.RestObject
func (*QosTrafficSelectorGroups) RefRequired() (string, bool) { return "", false }
// GetPath implements sophos.RestObject and returns the QosTrafficSelectorGroups GET path
// Returns all available traffic_selector_group types
func (q *QosTrafficSelectorGroup) GetPath() string {
return fmt.Sprintf("/api/objects/qos/traffic_selector_group/%s", q.Reference)
}
// RefRequired implements sophos.RestObject
func (q *QosTrafficSelectorGroup) RefRequired() (string, bool) { return q.Reference, true }
// DeletePath implements sophos.RestObject and returns the QosTrafficSelectorGroup DELETE path
// Creates or updates the complete object traffic_selector_group
func (*QosTrafficSelectorGroup) DeletePath(ref string) string {
return fmt.Sprintf("/api/objects/qos/traffic_selector_group/%s", ref)
}
// PatchPath implements sophos.RestObject and returns the QosTrafficSelectorGroup PATCH path
// Changes to parts of the object traffic_selector_group types
func (*QosTrafficSelectorGroup) PatchPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/traffic_selector_group/%s", ref)
}
// PostPath implements sophos.RestObject and returns the QosTrafficSelectorGroup POST path
// Create a new qos/traffic_selector_group object
func (*QosTrafficSelectorGroup) PostPath() string {
return "/api/objects/qos/traffic_selector_group/"
}
// PutPath implements sophos.RestObject and returns the QosTrafficSelectorGroup PUT path
// Creates or updates the complete object traffic_selector_group
func (*QosTrafficSelectorGroup) PutPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/traffic_selector_group/%s", ref)
}
// UsedByPath implements sophos.RestObject
// Returns the objects and the nodes that use the object with the given ref
func (*QosTrafficSelectorGroup) UsedByPath(ref string) string {
return fmt.Sprintf("/api/objects/qos/traffic_selector_group/%s/usedby", ref)
}