This repository was archived by the owner on Aug 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathGraphClient.cs
More file actions
2370 lines (2370 loc) · 118 KB
/
Copy pathGraphClient.cs
File metadata and controls
2370 lines (2370 loc) · 118 KB
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
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// <auto-generated/>
using ApiSdk.Admin;
using ApiSdk.AgreementAcceptances;
using ApiSdk.Agreements;
using ApiSdk.AppCatalogs;
using ApiSdk.ApplicationTemplates;
using ApiSdk.Applications;
using ApiSdk.ApplicationsWithAppId;
using ApiSdk.ApplicationsWithUniqueName;
using ApiSdk.AuditLogs;
using ApiSdk.AuthenticationMethodConfigurations;
using ApiSdk.AuthenticationMethodsPolicy;
using ApiSdk.CertificateBasedAuthConfiguration;
using ApiSdk.Chats;
using ApiSdk.Communications;
using ApiSdk.Compliance;
using ApiSdk.Connections;
using ApiSdk.Contacts;
using ApiSdk.Contracts;
using ApiSdk.DataPolicyOperations;
using ApiSdk.DeviceAppManagement;
using ApiSdk.DeviceManagement;
using ApiSdk.Devices;
using ApiSdk.DevicesWithDeviceId;
using ApiSdk.DirectoryNamespace;
using ApiSdk.DirectoryObjects;
using ApiSdk.DirectoryRoleTemplates;
using ApiSdk.DirectoryRoles;
using ApiSdk.DirectoryRolesWithRoleTemplateId;
using ApiSdk.DomainDnsRecords;
using ApiSdk.Domains;
using ApiSdk.Drives;
using ApiSdk.Education;
using ApiSdk.EmployeeExperience;
using ApiSdk.External;
using ApiSdk.FilterOperators;
using ApiSdk.Functions;
using ApiSdk.GroupLifecyclePolicies;
using ApiSdk.GroupSettingTemplates;
using ApiSdk.GroupSettings;
using ApiSdk.Groups;
using ApiSdk.GroupsWithUniqueName;
using ApiSdk.Identity;
using ApiSdk.IdentityGovernance;
using ApiSdk.IdentityProtection;
using ApiSdk.IdentityProviders;
using ApiSdk.InformationProtection;
using ApiSdk.Invitations;
using ApiSdk.Oauth2PermissionGrants;
using ApiSdk.Organization;
using ApiSdk.PermissionGrants;
using ApiSdk.Places;
using ApiSdk.Planner;
using ApiSdk.Policies;
using ApiSdk.Print;
using ApiSdk.Privacy;
using ApiSdk.Reports;
using ApiSdk.RoleManagement;
using ApiSdk.SchemaExtensions;
using ApiSdk.ScopedRoleMemberships;
using ApiSdk.Search;
using ApiSdk.Security;
using ApiSdk.ServicePrincipals;
using ApiSdk.ServicePrincipalsWithAppId;
using ApiSdk.Shares;
using ApiSdk.Sites;
using ApiSdk.Solutions;
using ApiSdk.Storage;
using ApiSdk.SubscribedSkus;
using ApiSdk.Subscriptions;
using ApiSdk.Teams;
using ApiSdk.TeamsTemplates;
using ApiSdk.Teamwork;
using ApiSdk.TenantRelationships;
using ApiSdk.Users;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.IO;
using Microsoft.Kiota.Cli.Commons;
using Microsoft.Kiota.Serialization.Form;
using Microsoft.Kiota.Serialization.Json;
using Microsoft.Kiota.Serialization.Multipart;
using Microsoft.Kiota.Serialization.Text;
using System.Collections.Generic;
using System.CommandLine;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System;
namespace ApiSdk
{
/// <summary>
/// The main entry point of the SDK, exposes the configuration and the fluent API.
/// </summary>
public class GraphClient : BaseCliRequestBuilder
{
/// <summary>
/// Provides operations to manage the admin singleton.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildAdminNavCommand()
{
var command = new Command("admin");
command.Description = "Provides operations to manage the admin singleton.";
var builder = new AdminRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildEdgeNavCommand());
execCommands.Add(builder.BuildGetCommand());
nonExecCommands.Add(builder.BuildMicrosoft365AppsNavCommand());
execCommands.Add(builder.BuildPatchCommand());
nonExecCommands.Add(builder.BuildPeopleNavCommand());
nonExecCommands.Add(builder.BuildServiceAnnouncementNavCommand());
nonExecCommands.Add(builder.BuildSharepointNavCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of agreementAcceptance entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildAgreementAcceptancesNavCommand()
{
var command = new Command("agreement-acceptances");
command.Description = "Provides operations to manage the collection of agreementAcceptance entities.";
var builder = new AgreementAcceptancesRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
execCommands.Add(builder.BuildCreateCommand());
execCommands.Add(builder.BuildListCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of agreement entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildAgreementsNavCommand()
{
var command = new Command("agreements");
command.Description = "Provides operations to manage the collection of agreement entities.";
var builder = new AgreementsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
execCommands.Add(builder.BuildCreateCommand());
execCommands.Add(builder.BuildListCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the appCatalogs singleton.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildAppCatalogsNavCommand()
{
var command = new Command("app-catalogs");
command.Description = "Provides operations to manage the appCatalogs singleton.";
var builder = new AppCatalogsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
execCommands.Add(builder.BuildGetCommand());
execCommands.Add(builder.BuildPatchCommand());
nonExecCommands.Add(builder.BuildTeamsAppsNavCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of application entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildApplicationsNavCommand()
{
var command = new Command("applications");
command.Description = "Provides operations to manage the collection of application entities.";
var builder = new ApplicationsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
nonExecCommands.Add(builder.BuildDeltaNavCommand());
nonExecCommands.Add(builder.BuildGetAvailableExtensionPropertiesNavCommand());
nonExecCommands.Add(builder.BuildGetByIdsNavCommand());
execCommands.Add(builder.BuildListCommand());
nonExecCommands.Add(builder.BuildValidatePropertiesNavCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of application entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildApplicationsWithAppIdRbCommand()
{
var command = new Command("applications-with-app-id");
command.Description = "Provides operations to manage the collection of application entities.";
var builder = new ApplicationsWithAppIdRequestBuilder(PathParameters);
var execCommands = new List<Command>();
execCommands.Add(builder.BuildDeleteCommand());
execCommands.Add(builder.BuildGetCommand());
execCommands.Add(builder.BuildPatchCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of application entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildApplicationsWithUniqueNameRbCommand()
{
var command = new Command("applications-with-unique-name");
command.Description = "Provides operations to manage the collection of application entities.";
var builder = new ApplicationsWithUniqueNameRequestBuilder(PathParameters);
var execCommands = new List<Command>();
execCommands.Add(builder.BuildDeleteCommand());
execCommands.Add(builder.BuildGetCommand());
execCommands.Add(builder.BuildPatchCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of applicationTemplate entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildApplicationTemplatesNavCommand()
{
var command = new Command("application-templates");
command.Description = "Provides operations to manage the collection of applicationTemplate entities.";
var builder = new ApplicationTemplatesRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildListCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the auditLogRoot singleton.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildAuditLogsNavCommand()
{
var command = new Command("audit-logs");
command.Description = "Provides operations to manage the auditLogRoot singleton.";
var builder = new AuditLogsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildDirectoryAuditsNavCommand());
execCommands.Add(builder.BuildGetCommand());
execCommands.Add(builder.BuildPatchCommand());
nonExecCommands.Add(builder.BuildProvisioningNavCommand());
nonExecCommands.Add(builder.BuildSignInsNavCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of authenticationMethodConfiguration entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildAuthenticationMethodConfigurationsNavCommand()
{
var command = new Command("authentication-method-configurations");
command.Description = "Provides operations to manage the collection of authenticationMethodConfiguration entities.";
var builder = new AuthenticationMethodConfigurationsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
execCommands.Add(builder.BuildListCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the authenticationMethodsPolicy singleton.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildAuthenticationMethodsPolicyNavCommand()
{
var command = new Command("authentication-methods-policy");
command.Description = "Provides operations to manage the authenticationMethodsPolicy singleton.";
var builder = new AuthenticationMethodsPolicyRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildAuthenticationMethodConfigurationsNavCommand());
execCommands.Add(builder.BuildGetCommand());
execCommands.Add(builder.BuildPatchCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of certificateBasedAuthConfiguration entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildCertificateBasedAuthConfigurationNavCommand()
{
var command = new Command("certificate-based-auth-configuration");
command.Description = "Provides operations to manage the collection of certificateBasedAuthConfiguration entities.";
var builder = new CertificateBasedAuthConfigurationRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
execCommands.Add(builder.BuildListCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of chat entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildChatsNavCommand()
{
var command = new Command("chats");
command.Description = "Provides operations to manage the collection of chat entities.";
var builder = new ChatsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
nonExecCommands.Add(builder.BuildGetAllMessagesNavCommand());
execCommands.Add(builder.BuildListCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the cloudCommunications singleton.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildCommunicationsNavCommand()
{
var command = new Command("communications");
command.Description = "Provides operations to manage the cloudCommunications singleton.";
var builder = new CommunicationsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCallRecordsNavCommand());
nonExecCommands.Add(builder.BuildCallsNavCommand());
execCommands.Add(builder.BuildGetCommand());
nonExecCommands.Add(builder.BuildGetPresencesByUserIdNavCommand());
nonExecCommands.Add(builder.BuildOnlineMeetingsNavCommand());
execCommands.Add(builder.BuildPatchCommand());
nonExecCommands.Add(builder.BuildPresencesNavCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the compliance singleton.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildComplianceNavCommand()
{
var command = new Command("compliance");
command.Description = "Provides operations to manage the compliance singleton.";
var builder = new ComplianceRequestBuilder(PathParameters);
var execCommands = new List<Command>();
execCommands.Add(builder.BuildGetCommand());
execCommands.Add(builder.BuildPatchCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of externalConnection entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildConnectionsNavCommand()
{
var command = new Command("connections");
command.Description = "Provides operations to manage the collection of externalConnection entities.";
var builder = new ConnectionsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
execCommands.Add(builder.BuildListCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of orgContact entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildContactsNavCommand()
{
var command = new Command("contacts");
command.Description = "Provides operations to manage the collection of orgContact entities.";
var builder = new ContactsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
nonExecCommands.Add(builder.BuildDeltaNavCommand());
nonExecCommands.Add(builder.BuildGetAvailableExtensionPropertiesNavCommand());
nonExecCommands.Add(builder.BuildGetByIdsNavCommand());
execCommands.Add(builder.BuildListCommand());
nonExecCommands.Add(builder.BuildValidatePropertiesNavCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of contract entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildContractsNavCommand()
{
var command = new Command("contracts");
command.Description = "Provides operations to manage the collection of contract entities.";
var builder = new ContractsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
nonExecCommands.Add(builder.BuildDeltaNavCommand());
nonExecCommands.Add(builder.BuildGetAvailableExtensionPropertiesNavCommand());
nonExecCommands.Add(builder.BuildGetByIdsNavCommand());
execCommands.Add(builder.BuildListCommand());
nonExecCommands.Add(builder.BuildValidatePropertiesNavCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of dataPolicyOperation entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDataPolicyOperationsNavCommand()
{
var command = new Command("data-policy-operations");
command.Description = "Provides operations to manage the collection of dataPolicyOperation entities.";
var builder = new DataPolicyOperationsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
execCommands.Add(builder.BuildListCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the deviceAppManagement singleton.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDeviceAppManagementNavCommand()
{
var command = new Command("device-app-management");
command.Description = "Provides operations to manage the deviceAppManagement singleton.";
var builder = new DeviceAppManagementRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildAndroidManagedAppProtectionsNavCommand());
nonExecCommands.Add(builder.BuildDefaultManagedAppProtectionsNavCommand());
execCommands.Add(builder.BuildGetCommand());
nonExecCommands.Add(builder.BuildIosManagedAppProtectionsNavCommand());
nonExecCommands.Add(builder.BuildManagedAppPoliciesNavCommand());
nonExecCommands.Add(builder.BuildManagedAppRegistrationsNavCommand());
nonExecCommands.Add(builder.BuildManagedAppStatusesNavCommand());
nonExecCommands.Add(builder.BuildManagedEBooksNavCommand());
nonExecCommands.Add(builder.BuildMdmWindowsInformationProtectionPoliciesNavCommand());
nonExecCommands.Add(builder.BuildMobileAppCategoriesNavCommand());
nonExecCommands.Add(builder.BuildMobileAppConfigurationsNavCommand());
nonExecCommands.Add(builder.BuildMobileAppsNavCommand());
execCommands.Add(builder.BuildPatchCommand());
nonExecCommands.Add(builder.BuildSyncMicrosoftStoreForBusinessAppsNavCommand());
nonExecCommands.Add(builder.BuildTargetedManagedAppConfigurationsNavCommand());
nonExecCommands.Add(builder.BuildVppTokensNavCommand());
nonExecCommands.Add(builder.BuildWindowsInformationProtectionPoliciesNavCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the deviceManagement singleton.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDeviceManagementNavCommand()
{
var command = new Command("device-management");
command.Description = "Provides operations to manage the deviceManagement singleton.";
var builder = new DeviceManagementRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildApplePushNotificationCertificateNavCommand());
nonExecCommands.Add(builder.BuildAuditEventsNavCommand());
nonExecCommands.Add(builder.BuildComplianceManagementPartnersNavCommand());
nonExecCommands.Add(builder.BuildConditionalAccessSettingsNavCommand());
nonExecCommands.Add(builder.BuildDetectedAppsNavCommand());
nonExecCommands.Add(builder.BuildDeviceCategoriesNavCommand());
nonExecCommands.Add(builder.BuildDeviceCompliancePoliciesNavCommand());
nonExecCommands.Add(builder.BuildDeviceCompliancePolicyDeviceStateSummaryNavCommand());
nonExecCommands.Add(builder.BuildDeviceCompliancePolicySettingStateSummariesNavCommand());
nonExecCommands.Add(builder.BuildDeviceConfigurationDeviceStateSummariesNavCommand());
nonExecCommands.Add(builder.BuildDeviceConfigurationsNavCommand());
nonExecCommands.Add(builder.BuildDeviceEnrollmentConfigurationsNavCommand());
nonExecCommands.Add(builder.BuildDeviceManagementPartnersNavCommand());
nonExecCommands.Add(builder.BuildExchangeConnectorsNavCommand());
execCommands.Add(builder.BuildGetCommand());
nonExecCommands.Add(builder.BuildGetEffectivePermissionsWithScopeRbCommand());
nonExecCommands.Add(builder.BuildImportedWindowsAutopilotDeviceIdentitiesNavCommand());
nonExecCommands.Add(builder.BuildIosUpdateStatusesNavCommand());
nonExecCommands.Add(builder.BuildManagedDeviceOverviewNavCommand());
nonExecCommands.Add(builder.BuildManagedDevicesNavCommand());
nonExecCommands.Add(builder.BuildMobileAppTroubleshootingEventsNavCommand());
nonExecCommands.Add(builder.BuildMobileThreatDefenseConnectorsNavCommand());
nonExecCommands.Add(builder.BuildNotificationMessageTemplatesNavCommand());
execCommands.Add(builder.BuildPatchCommand());
nonExecCommands.Add(builder.BuildRemoteAssistancePartnersNavCommand());
nonExecCommands.Add(builder.BuildReportsNavCommand());
nonExecCommands.Add(builder.BuildResourceOperationsNavCommand());
nonExecCommands.Add(builder.BuildRoleAssignmentsNavCommand());
nonExecCommands.Add(builder.BuildRoleDefinitionsNavCommand());
nonExecCommands.Add(builder.BuildSoftwareUpdateStatusSummaryNavCommand());
nonExecCommands.Add(builder.BuildTelecomExpenseManagementPartnersNavCommand());
nonExecCommands.Add(builder.BuildTermsAndConditionsNavCommand());
nonExecCommands.Add(builder.BuildTroubleshootingEventsNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDetailsNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsAppHealthApplicationPerformanceByAppVersionDeviceIdNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsAppHealthApplicationPerformanceByOSVersionNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsAppHealthApplicationPerformanceNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsAppHealthDeviceModelPerformanceNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsAppHealthDevicePerformanceDetailsNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsAppHealthDevicePerformanceNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsAppHealthOSVersionPerformanceNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsAppHealthOverviewNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsBaselinesNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsCategoriesNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsDevicePerformanceNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsDeviceScoresNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsDeviceStartupHistoryNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsDeviceStartupProcessesNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsDeviceStartupProcessPerformanceNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsMetricHistoryNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsModelScoresNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsOverviewNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsScoreHistoryNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsSummarizeWorkFromAnywhereDevicesNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsWorkFromAnywhereMetricsNavCommand());
nonExecCommands.Add(builder.BuildUserExperienceAnalyticsWorkFromAnywhereModelPerformanceNavCommand());
nonExecCommands.Add(builder.BuildVerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRbCommand());
nonExecCommands.Add(builder.BuildVirtualEndpointNavCommand());
nonExecCommands.Add(builder.BuildWindowsAutopilotDeviceIdentitiesNavCommand());
nonExecCommands.Add(builder.BuildWindowsInformationProtectionAppLearningSummariesNavCommand());
nonExecCommands.Add(builder.BuildWindowsInformationProtectionNetworkLearningSummariesNavCommand());
nonExecCommands.Add(builder.BuildWindowsMalwareInformationNavCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of device entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDevicesNavCommand()
{
var command = new Command("devices");
command.Description = "Provides operations to manage the collection of device entities.";
var builder = new DevicesRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
nonExecCommands.Add(builder.BuildDeltaNavCommand());
nonExecCommands.Add(builder.BuildGetAvailableExtensionPropertiesNavCommand());
nonExecCommands.Add(builder.BuildGetByIdsNavCommand());
execCommands.Add(builder.BuildListCommand());
nonExecCommands.Add(builder.BuildValidatePropertiesNavCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of device entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDevicesWithDeviceIdRbCommand()
{
var command = new Command("devices-with-device-id");
command.Description = "Provides operations to manage the collection of device entities.";
var builder = new DevicesWithDeviceIdRequestBuilder(PathParameters);
var execCommands = new List<Command>();
execCommands.Add(builder.BuildDeleteCommand());
execCommands.Add(builder.BuildGetCommand());
execCommands.Add(builder.BuildPatchCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the directory singleton.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDirectoryNavCommand()
{
var command = new Command("directory");
command.Description = "Provides operations to manage the directory singleton.";
var builder = new DirectoryRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildAdministrativeUnitsNavCommand());
nonExecCommands.Add(builder.BuildAttributeSetsNavCommand());
nonExecCommands.Add(builder.BuildCustomSecurityAttributeDefinitionsNavCommand());
nonExecCommands.Add(builder.BuildDeletedItemsNavCommand());
nonExecCommands.Add(builder.BuildDeviceLocalCredentialsNavCommand());
nonExecCommands.Add(builder.BuildFederationConfigurationsNavCommand());
execCommands.Add(builder.BuildGetCommand());
nonExecCommands.Add(builder.BuildOnPremisesSynchronizationNavCommand());
execCommands.Add(builder.BuildPatchCommand());
nonExecCommands.Add(builder.BuildSubscriptionsNavCommand());
nonExecCommands.Add(builder.BuildSubscriptionsWithCommerceSubscriptionIdRbCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of directoryObject entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDirectoryObjectsNavCommand()
{
var command = new Command("directory-objects");
command.Description = "Provides operations to manage the collection of directoryObject entities.";
var builder = new DirectoryObjectsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
nonExecCommands.Add(builder.BuildDeltaNavCommand());
nonExecCommands.Add(builder.BuildGetAvailableExtensionPropertiesNavCommand());
nonExecCommands.Add(builder.BuildGetByIdsNavCommand());
execCommands.Add(builder.BuildListCommand());
nonExecCommands.Add(builder.BuildValidatePropertiesNavCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of directoryRole entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDirectoryRolesNavCommand()
{
var command = new Command("directory-roles");
command.Description = "Provides operations to manage the collection of directoryRole entities.";
var builder = new DirectoryRolesRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
nonExecCommands.Add(builder.BuildDeltaNavCommand());
nonExecCommands.Add(builder.BuildGetAvailableExtensionPropertiesNavCommand());
nonExecCommands.Add(builder.BuildGetByIdsNavCommand());
execCommands.Add(builder.BuildListCommand());
nonExecCommands.Add(builder.BuildValidatePropertiesNavCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of directoryRole entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDirectoryRolesWithRoleTemplateIdRbCommand()
{
var command = new Command("directory-roles-with-role-template-id");
command.Description = "Provides operations to manage the collection of directoryRole entities.";
var builder = new DirectoryRolesWithRoleTemplateIdRequestBuilder(PathParameters);
var execCommands = new List<Command>();
execCommands.Add(builder.BuildDeleteCommand());
execCommands.Add(builder.BuildGetCommand());
execCommands.Add(builder.BuildPatchCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of directoryRoleTemplate entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDirectoryRoleTemplatesNavCommand()
{
var command = new Command("directory-role-templates");
command.Description = "Provides operations to manage the collection of directoryRoleTemplate entities.";
var builder = new DirectoryRoleTemplatesRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
nonExecCommands.Add(builder.BuildDeltaNavCommand());
nonExecCommands.Add(builder.BuildGetAvailableExtensionPropertiesNavCommand());
nonExecCommands.Add(builder.BuildGetByIdsNavCommand());
execCommands.Add(builder.BuildListCommand());
nonExecCommands.Add(builder.BuildValidatePropertiesNavCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of domainDnsRecord entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDomainDnsRecordsNavCommand()
{
var command = new Command("domain-dns-records");
command.Description = "Provides operations to manage the collection of domainDnsRecord entities.";
var builder = new DomainDnsRecordsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
execCommands.Add(builder.BuildListCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of domain entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDomainsNavCommand()
{
var command = new Command("domains");
command.Description = "Provides operations to manage the collection of domain entities.";
var builder = new DomainsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildCountNavCommand());
execCommands.Add(builder.BuildCreateCommand());
execCommands.Add(builder.BuildListCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the collection of drive entities.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDrivesNavCommand()
{
var command = new Command("drives");
command.Description = "Provides operations to manage the collection of drive entities.";
var builder = new DrivesRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
execCommands.Add(builder.BuildCreateCommand());
execCommands.Add(builder.BuildListCommand());
var cmds = builder.BuildCommand();
execCommands.AddRange(cmds.Item1);
nonExecCommands.AddRange(cmds.Item2);
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands.OrderBy(static c => c.Name, StringComparer.Ordinal))
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Provides operations to manage the educationRoot singleton.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildEducationNavCommand()
{
var command = new Command("education");
command.Description = "Provides operations to manage the educationRoot singleton.";
var builder = new EducationRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
nonExecCommands.Add(builder.BuildClassesNavCommand());
execCommands.Add(builder.BuildGetCommand());
nonExecCommands.Add(builder.BuildMeNavCommand());