-
Notifications
You must be signed in to change notification settings - Fork 2
/
server.go
742 lines (674 loc) · 27 KB
/
server.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
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
package idatacollectorset
import (
"context"
"fmt"
"strings"
"unicode/utf16"
dcerpc "github.com/oiweiwei/go-msrpc/dcerpc"
errors "github.com/oiweiwei/go-msrpc/dcerpc/errors"
uuid "github.com/oiweiwei/go-msrpc/midl/uuid"
idispatch "github.com/oiweiwei/go-msrpc/msrpc/dcom/oaut/idispatch/v0"
ndr "github.com/oiweiwei/go-msrpc/ndr"
)
var (
_ = context.Background
_ = fmt.Errorf
_ = utf16.Encode
_ = strings.TrimPrefix
_ = ndr.ZeroString
_ = (*uuid.UUID)(nil)
_ = (*dcerpc.SyntaxID)(nil)
_ = (*errors.Error)(nil)
_ = idispatch.GoPackage
)
// IDataCollectorSet server interface.
type DataCollectorSetServer interface {
// IDispatch base class.
idispatch.DispatchServer
// The DataCollectors (Get) method retrieves the DataCollectors property.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
GetDataCollectors(context.Context, *GetDataCollectorsRequest) (*GetDataCollectorsResponse, error)
// Duration operation.
GetDuration(context.Context, *GetDurationRequest) (*GetDurationResponse, error)
// Duration operation.
SetDuration(context.Context, *SetDurationRequest) (*SetDurationResponse, error)
// Description operation.
GetDescription(context.Context, *GetDescriptionRequest) (*GetDescriptionResponse, error)
// Description operation.
SetDescription(context.Context, *SetDescriptionRequest) (*SetDescriptionResponse, error)
// The DescriptionUnresolved (Get) method retrieves the DescriptionUnresolved property.
//
// This method MUST return the description as originally set by the IDataCollectorSet::Description
// method, as specified in section 3.2.4.1.5.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
GetDescriptionUnresolved(context.Context, *GetDescriptionUnresolvedRequest) (*GetDescriptionUnresolvedResponse, error)
// DisplayName operation.
GetDisplayName(context.Context, *GetDisplayNameRequest) (*GetDisplayNameResponse, error)
// DisplayName operation.
SetDisplayName(context.Context, *SetDisplayNameRequest) (*SetDisplayNameResponse, error)
// The DisplayNameUnresolved (Get) method retrieves the DisplayNameUnresolved property.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
GetDisplayNameUnresolved(context.Context, *GetDisplayNameUnresolvedRequest) (*GetDisplayNameUnresolvedResponse, error)
// Keywords operation.
GetKeywords(context.Context, *GetKeywordsRequest) (*GetKeywordsResponse, error)
// Keywords operation.
SetKeywords(context.Context, *SetKeywordsRequest) (*SetKeywordsResponse, error)
// LatestOutputLocation operation.
GetLatestOutputLocation(context.Context, *GetLatestOutputLocationRequest) (*GetLatestOutputLocationResponse, error)
// LatestOutputLocation operation.
SetLatestOutputLocation(context.Context, *SetLatestOutputLocationRequest) (*SetLatestOutputLocationResponse, error)
// Name operation.
GetName(context.Context, *GetNameRequest) (*GetNameResponse, error)
// OutputLocation operation.
GetOutputLocation(context.Context, *GetOutputLocationRequest) (*GetOutputLocationResponse, error)
// RootPath operation.
GetRootPath(context.Context, *GetRootPathRequest) (*GetRootPathResponse, error)
// RootPath operation.
SetRootPath(context.Context, *SetRootPathRequest) (*SetRootPathResponse, error)
// Segment operation.
GetSegment(context.Context, *GetSegmentRequest) (*GetSegmentResponse, error)
// Segment operation.
SetSegment(context.Context, *SetSegmentRequest) (*SetSegmentResponse, error)
// SegmentMaxDuration operation.
GetSegmentMaxDuration(context.Context, *GetSegmentMaxDurationRequest) (*GetSegmentMaxDurationResponse, error)
// SegmentMaxDuration operation.
SetSegmentMaxDuration(context.Context, *SetSegmentMaxDurationRequest) (*SetSegmentMaxDurationResponse, error)
// SegmentMaxSize operation.
GetSegmentMaxSize(context.Context, *GetSegmentMaxSizeRequest) (*GetSegmentMaxSizeResponse, error)
// SegmentMaxSize operation.
SetSegmentMaxSize(context.Context, *SetSegmentMaxSizeRequest) (*SetSegmentMaxSizeResponse, error)
// SerialNumber operation.
GetSerialNumber(context.Context, *GetSerialNumberRequest) (*GetSerialNumberResponse, error)
// SerialNumber operation.
SetSerialNumber(context.Context, *SetSerialNumberRequest) (*SetSerialNumberResponse, error)
// The Server (Get) method retrieves the Server property.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
GetServer(context.Context, *GetServerRequest) (*GetServerResponse, error)
// The Status (Get) method retrieves the Status property.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error)
// Subdirectory operation.
GetSubdirectory(context.Context, *GetSubdirectoryRequest) (*GetSubdirectoryResponse, error)
// Subdirectory operation.
SetSubdirectory(context.Context, *SetSubdirectoryRequest) (*SetSubdirectoryResponse, error)
// SubdirectoryFormat operation.
GetSubdirectoryFormat(context.Context, *GetSubdirectoryFormatRequest) (*GetSubdirectoryFormatResponse, error)
// SubdirectoryFormat operation.
SetSubdirectoryFormat(context.Context, *SetSubdirectoryFormatRequest) (*SetSubdirectoryFormatResponse, error)
// SubdirectoryFormatPattern operation.
GetSubdirectoryFormatPattern(context.Context, *GetSubdirectoryFormatPatternRequest) (*GetSubdirectoryFormatPatternResponse, error)
// SubdirectoryFormatPattern operation.
SetSubdirectoryFormatPattern(context.Context, *SetSubdirectoryFormatPatternRequest) (*SetSubdirectoryFormatPatternResponse, error)
// Task operation.
GetTask(context.Context, *GetTaskRequest) (*GetTaskResponse, error)
// Task operation.
SetTask(context.Context, *SetTaskRequest) (*SetTaskResponse, error)
// TaskRunAsSelf operation.
GetTaskRunAsSelf(context.Context, *GetTaskRunAsSelfRequest) (*GetTaskRunAsSelfResponse, error)
// TaskRunAsSelf operation.
SetTaskRunAsSelf(context.Context, *SetTaskRunAsSelfRequest) (*SetTaskRunAsSelfResponse, error)
// TaskArguments operation.
GetTaskArguments(context.Context, *GetTaskArgumentsRequest) (*GetTaskArgumentsResponse, error)
// TaskArguments operation.
SetTaskArguments(context.Context, *SetTaskArgumentsRequest) (*SetTaskArgumentsResponse, error)
// TaskUserTextArguments operation.
GetTaskUserTextArguments(context.Context, *GetTaskUserTextArgumentsRequest) (*GetTaskUserTextArgumentsResponse, error)
// TaskUserTextArguments operation.
SetTaskUserTextArguments(context.Context, *SetTaskUserTextArgumentsRequest) (*SetTaskUserTextArgumentsResponse, error)
// The Schedules (Get) method retrieves the Schedules property, as specified in the
// property table in section 3.2.4.1.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
GetSchedules(context.Context, *GetSchedulesRequest) (*GetSchedulesResponse, error)
// SchedulesEnabled operation.
GetSchedulesEnabled(context.Context, *GetSchedulesEnabledRequest) (*GetSchedulesEnabledResponse, error)
// SchedulesEnabled operation.
SetSchedulesEnabled(context.Context, *SetSchedulesEnabledRequest) (*SetSchedulesEnabledResponse, error)
// The UserAccount (Get) method retrieves the UserAccount property.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
GetUserAccount(context.Context, *GetUserAccountRequest) (*GetUserAccountResponse, error)
// Xml operation.
GetXML(context.Context, *GetXMLRequest) (*GetXMLResponse, error)
// Security operation.
GetSecurity(context.Context, *GetSecurityRequest) (*GetSecurityResponse, error)
// Security operation.
SetSecurity(context.Context, *SetSecurityRequest) (*SetSecurityResponse, error)
// StopOnCompletion operation.
GetStopOnCompletion(context.Context, *GetStopOnCompletionRequest) (*GetStopOnCompletionResponse, error)
// StopOnCompletion operation.
SetStopOnCompletion(context.Context, *SetStopOnCompletionRequest) (*SetStopOnCompletionResponse, error)
// The DataManager (Get) method retrieves the DataManager property, as specified in
// the property table in section 3.2.4.1.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
GetDataManager(context.Context, *GetDataManagerRequest) (*GetDataManagerResponse, error)
// The SetCredentials method specifies the user account under which the data collector
// set runs. If both parameters are set to NULL, the Performance Logs and Alerts Protocol
// MUST clear the existing cached credentials. If no credentials are cached, the data
// collector set runs with the credentials for the 'LocalSystem' account. Changing the
// credentials under which the data collector set runs will impact future runs of the
// data collector set, irrespective of whether they are started locally or remotely.
// <16>
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
SetCredentials(context.Context, *SetCredentialsRequest) (*SetCredentialsResponse, error)
// Query operation.
Query(context.Context, *QueryRequest) (*QueryResponse, error)
// The Commit method updates, validates, or saves a data collector set, or flushes the
// event trace data collectors of a data collector set.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
Commit(context.Context, *CommitRequest) (*CommitResponse, error)
// The Delete method removes the data collector set from storage if it is not running.
//
// This method has no parameters.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
// The Start method manually starts the data collector set.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
Start(context.Context, *StartRequest) (*StartResponse, error)
// The Stop method manually stops the data collector set.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
Stop(context.Context, *StopRequest) (*StopResponse, error)
// SetXml operation.
SetXML(context.Context, *SetXMLRequest) (*SetXMLResponse, error)
// The SetValue method sets a user-defined value. The SetValue method takes a name and
// value pair as BSTRs. This pair can either be used as metadata for the data collector
// set, in which case it has no effect on the execution of the data collector set, or
// it can be used as arguments for task execution. For example, when a performance counter
// crosses a specified threshold, a scheduled task can run. In the event that there
// exists a key/value pair that matches a task argument, PLA will substitute the value
// as an argument to pass into the execution of that task. For more information about
// using the Value field as task argument, see section 3.2.4.1.39.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
SetValue(context.Context, *SetValueRequest) (*SetValueResponse, error)
// The GetValue method retrieves a user-defined value. The GetValue method retrieves
// a name and value pair that was set using the SetValue method. This pair can either
// be used as metadata for the data collector set, in which case it has no effect on
// the execution of the data collector set, or it can be used as arguments for task
// execution. For example, when a performance counter crosses a specified threshold,
// a scheduled task can run. In the event that there exists a key/value pair that matches
// a task argument, PLA will substitute the value as an argument to pass into the execution
// of that task. For more information about using the Value field as task argument,
// see section 3.2.4.1.39.
//
// Return Values: This method MUST return an HRESULT with the severity bit clear on
// success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as
// defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.
GetValue(context.Context, *GetValueRequest) (*GetValueResponse, error)
}
func RegisterDataCollectorSetServer(conn dcerpc.Conn, o DataCollectorSetServer, opts ...dcerpc.Option) {
conn.RegisterServer(NewDataCollectorSetServerHandle(o), append(opts, dcerpc.WithAbstractSyntax(DataCollectorSetSyntaxV0_0))...)
}
func NewDataCollectorSetServerHandle(o DataCollectorSetServer) dcerpc.ServerHandle {
return func(ctx context.Context, opNum int, r ndr.Reader) (dcerpc.Operation, error) {
return DataCollectorSetServerHandle(ctx, o, opNum, r)
}
}
func DataCollectorSetServerHandle(ctx context.Context, o DataCollectorSetServer, opNum int, r ndr.Reader) (dcerpc.Operation, error) {
if opNum < 7 {
// IDispatch base method.
return idispatch.DispatchServerHandle(ctx, o, opNum, r)
}
switch opNum {
case 7: // DataCollectors
in := &GetDataCollectorsRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetDataCollectors(ctx, in)
return resp.xxx_ToOp(ctx), err
case 8: // Duration
in := &GetDurationRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetDuration(ctx, in)
return resp.xxx_ToOp(ctx), err
case 9: // Duration
in := &SetDurationRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetDuration(ctx, in)
return resp.xxx_ToOp(ctx), err
case 10: // Description
in := &GetDescriptionRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetDescription(ctx, in)
return resp.xxx_ToOp(ctx), err
case 11: // Description
in := &SetDescriptionRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetDescription(ctx, in)
return resp.xxx_ToOp(ctx), err
case 12: // DescriptionUnresolved
in := &GetDescriptionUnresolvedRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetDescriptionUnresolved(ctx, in)
return resp.xxx_ToOp(ctx), err
case 13: // DisplayName
in := &GetDisplayNameRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetDisplayName(ctx, in)
return resp.xxx_ToOp(ctx), err
case 14: // DisplayName
in := &SetDisplayNameRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetDisplayName(ctx, in)
return resp.xxx_ToOp(ctx), err
case 15: // DisplayNameUnresolved
in := &GetDisplayNameUnresolvedRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetDisplayNameUnresolved(ctx, in)
return resp.xxx_ToOp(ctx), err
case 16: // Keywords
in := &GetKeywordsRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetKeywords(ctx, in)
return resp.xxx_ToOp(ctx), err
case 17: // Keywords
in := &SetKeywordsRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetKeywords(ctx, in)
return resp.xxx_ToOp(ctx), err
case 18: // LatestOutputLocation
in := &GetLatestOutputLocationRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetLatestOutputLocation(ctx, in)
return resp.xxx_ToOp(ctx), err
case 19: // LatestOutputLocation
in := &SetLatestOutputLocationRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetLatestOutputLocation(ctx, in)
return resp.xxx_ToOp(ctx), err
case 20: // Name
in := &GetNameRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetName(ctx, in)
return resp.xxx_ToOp(ctx), err
case 21: // OutputLocation
in := &GetOutputLocationRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetOutputLocation(ctx, in)
return resp.xxx_ToOp(ctx), err
case 22: // RootPath
in := &GetRootPathRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetRootPath(ctx, in)
return resp.xxx_ToOp(ctx), err
case 23: // RootPath
in := &SetRootPathRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetRootPath(ctx, in)
return resp.xxx_ToOp(ctx), err
case 24: // Segment
in := &GetSegmentRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetSegment(ctx, in)
return resp.xxx_ToOp(ctx), err
case 25: // Segment
in := &SetSegmentRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetSegment(ctx, in)
return resp.xxx_ToOp(ctx), err
case 26: // SegmentMaxDuration
in := &GetSegmentMaxDurationRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetSegmentMaxDuration(ctx, in)
return resp.xxx_ToOp(ctx), err
case 27: // SegmentMaxDuration
in := &SetSegmentMaxDurationRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetSegmentMaxDuration(ctx, in)
return resp.xxx_ToOp(ctx), err
case 28: // SegmentMaxSize
in := &GetSegmentMaxSizeRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetSegmentMaxSize(ctx, in)
return resp.xxx_ToOp(ctx), err
case 29: // SegmentMaxSize
in := &SetSegmentMaxSizeRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetSegmentMaxSize(ctx, in)
return resp.xxx_ToOp(ctx), err
case 30: // SerialNumber
in := &GetSerialNumberRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetSerialNumber(ctx, in)
return resp.xxx_ToOp(ctx), err
case 31: // SerialNumber
in := &SetSerialNumberRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetSerialNumber(ctx, in)
return resp.xxx_ToOp(ctx), err
case 32: // Server
in := &GetServerRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetServer(ctx, in)
return resp.xxx_ToOp(ctx), err
case 33: // Status
in := &GetStatusRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetStatus(ctx, in)
return resp.xxx_ToOp(ctx), err
case 34: // Subdirectory
in := &GetSubdirectoryRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetSubdirectory(ctx, in)
return resp.xxx_ToOp(ctx), err
case 35: // Subdirectory
in := &SetSubdirectoryRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetSubdirectory(ctx, in)
return resp.xxx_ToOp(ctx), err
case 36: // SubdirectoryFormat
in := &GetSubdirectoryFormatRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetSubdirectoryFormat(ctx, in)
return resp.xxx_ToOp(ctx), err
case 37: // SubdirectoryFormat
in := &SetSubdirectoryFormatRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetSubdirectoryFormat(ctx, in)
return resp.xxx_ToOp(ctx), err
case 38: // SubdirectoryFormatPattern
in := &GetSubdirectoryFormatPatternRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetSubdirectoryFormatPattern(ctx, in)
return resp.xxx_ToOp(ctx), err
case 39: // SubdirectoryFormatPattern
in := &SetSubdirectoryFormatPatternRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetSubdirectoryFormatPattern(ctx, in)
return resp.xxx_ToOp(ctx), err
case 40: // Task
in := &GetTaskRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetTask(ctx, in)
return resp.xxx_ToOp(ctx), err
case 41: // Task
in := &SetTaskRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetTask(ctx, in)
return resp.xxx_ToOp(ctx), err
case 42: // TaskRunAsSelf
in := &GetTaskRunAsSelfRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetTaskRunAsSelf(ctx, in)
return resp.xxx_ToOp(ctx), err
case 43: // TaskRunAsSelf
in := &SetTaskRunAsSelfRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetTaskRunAsSelf(ctx, in)
return resp.xxx_ToOp(ctx), err
case 44: // TaskArguments
in := &GetTaskArgumentsRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetTaskArguments(ctx, in)
return resp.xxx_ToOp(ctx), err
case 45: // TaskArguments
in := &SetTaskArgumentsRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetTaskArguments(ctx, in)
return resp.xxx_ToOp(ctx), err
case 46: // TaskUserTextArguments
in := &GetTaskUserTextArgumentsRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetTaskUserTextArguments(ctx, in)
return resp.xxx_ToOp(ctx), err
case 47: // TaskUserTextArguments
in := &SetTaskUserTextArgumentsRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetTaskUserTextArguments(ctx, in)
return resp.xxx_ToOp(ctx), err
case 48: // Schedules
in := &GetSchedulesRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetSchedules(ctx, in)
return resp.xxx_ToOp(ctx), err
case 49: // SchedulesEnabled
in := &GetSchedulesEnabledRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetSchedulesEnabled(ctx, in)
return resp.xxx_ToOp(ctx), err
case 50: // SchedulesEnabled
in := &SetSchedulesEnabledRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetSchedulesEnabled(ctx, in)
return resp.xxx_ToOp(ctx), err
case 51: // UserAccount
in := &GetUserAccountRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetUserAccount(ctx, in)
return resp.xxx_ToOp(ctx), err
case 52: // Xml
in := &GetXMLRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetXML(ctx, in)
return resp.xxx_ToOp(ctx), err
case 53: // Security
in := &GetSecurityRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetSecurity(ctx, in)
return resp.xxx_ToOp(ctx), err
case 54: // Security
in := &SetSecurityRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetSecurity(ctx, in)
return resp.xxx_ToOp(ctx), err
case 55: // StopOnCompletion
in := &GetStopOnCompletionRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetStopOnCompletion(ctx, in)
return resp.xxx_ToOp(ctx), err
case 56: // StopOnCompletion
in := &SetStopOnCompletionRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetStopOnCompletion(ctx, in)
return resp.xxx_ToOp(ctx), err
case 57: // DataManager
in := &GetDataManagerRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetDataManager(ctx, in)
return resp.xxx_ToOp(ctx), err
case 58: // SetCredentials
in := &SetCredentialsRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetCredentials(ctx, in)
return resp.xxx_ToOp(ctx), err
case 59: // Query
in := &QueryRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.Query(ctx, in)
return resp.xxx_ToOp(ctx), err
case 60: // Commit
in := &CommitRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.Commit(ctx, in)
return resp.xxx_ToOp(ctx), err
case 61: // Delete
in := &DeleteRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.Delete(ctx, in)
return resp.xxx_ToOp(ctx), err
case 62: // Start
in := &StartRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.Start(ctx, in)
return resp.xxx_ToOp(ctx), err
case 63: // Stop
in := &StopRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.Stop(ctx, in)
return resp.xxx_ToOp(ctx), err
case 64: // SetXml
in := &SetXMLRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetXML(ctx, in)
return resp.xxx_ToOp(ctx), err
case 65: // SetValue
in := &SetValueRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.SetValue(ctx, in)
return resp.xxx_ToOp(ctx), err
case 66: // GetValue
in := &GetValueRequest{}
if err := in.UnmarshalNDR(ctx, r); err != nil {
return nil, err
}
resp, err := o.GetValue(ctx, in)
return resp.xxx_ToOp(ctx), err
}
return nil, nil
}