forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseGraphServiceClient.java
More file actions
603 lines (535 loc) · 21.4 KB
/
Copy pathBaseGraphServiceClient.java
File metadata and controls
603 lines (535 loc) · 21.4 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
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.requests.extensions;
import com.microsoft.graph.concurrency.*;
import com.microsoft.graph.core.*;
import com.microsoft.graph.models.extensions.*;
import com.microsoft.graph.models.generated.*;
import com.microsoft.graph.http.*;
import com.microsoft.graph.requests.extensions.*;
import com.microsoft.graph.options.*;
import com.microsoft.graph.serializer.*;
import java.util.Arrays;
import java.util.EnumSet;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Base Graph Service Client.
*/
public class BaseGraphServiceClient extends BaseClient implements IBaseGraphServiceClient {
/**
* The default endpoint for the Microsoft Graph Service
*/
public static final String DEFAULT_GRAPH_ENDPOINT = "https://graph.microsoft.com/v1.0";
/**
* The current endpoint
*/
private String endpoint;
@Override
public String getServiceRoot() {
if (endpoint == null) {
endpoint = DEFAULT_GRAPH_ENDPOINT;
}
return endpoint;
}
@Override
public void setServiceRoot(String value) {
endpoint = value;
}
/**
* Gets the collection of DirectoryObjects objects
*
* @return the request builder for the collection of DirectoryObjects objects
*/
public IDirectoryObjectCollectionRequestBuilder directoryObjects() {
return new DirectoryObjectCollectionRequestBuilder(getServiceRoot() + "/directoryObjects", (IGraphServiceClient)this, null);
}
/**
* Gets a single DirectoryObjects
*
* @param id the id of the DirectoryObjects to retrieve
* @return the request builder for the DirectoryObjects object
*/
public IDirectoryObjectRequestBuilder directoryObjects(final String id) {
return new DirectoryObjectRequestBuilder(getServiceRoot() + "/directoryObjects/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Devices objects
*
* @return the request builder for the collection of Devices objects
*/
public IDeviceCollectionRequestBuilder devices() {
return new DeviceCollectionRequestBuilder(getServiceRoot() + "/devices", (IGraphServiceClient)this, null);
}
/**
* Gets a single Devices
*
* @param id the id of the Devices to retrieve
* @return the request builder for the Devices object
*/
public IDeviceRequestBuilder devices(final String id) {
return new DeviceRequestBuilder(getServiceRoot() + "/devices/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Domains objects
*
* @return the request builder for the collection of Domains objects
*/
public IDomainCollectionRequestBuilder domains() {
return new DomainCollectionRequestBuilder(getServiceRoot() + "/domains", (IGraphServiceClient)this, null);
}
/**
* Gets a single Domains
*
* @param id the id of the Domains to retrieve
* @return the request builder for the Domains object
*/
public IDomainRequestBuilder domains(final String id) {
return new DomainRequestBuilder(getServiceRoot() + "/domains/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of DomainDnsRecords objects
*
* @return the request builder for the collection of DomainDnsRecords objects
*/
public IDomainDnsRecordCollectionRequestBuilder domainDnsRecords() {
return new DomainDnsRecordCollectionRequestBuilder(getServiceRoot() + "/domainDnsRecords", (IGraphServiceClient)this, null);
}
/**
* Gets a single DomainDnsRecords
*
* @param id the id of the DomainDnsRecords to retrieve
* @return the request builder for the DomainDnsRecords object
*/
public IDomainDnsRecordRequestBuilder domainDnsRecords(final String id) {
return new DomainDnsRecordRequestBuilder(getServiceRoot() + "/domainDnsRecords/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Groups objects
*
* @return the request builder for the collection of Groups objects
*/
public IGroupCollectionRequestBuilder groups() {
return new GroupCollectionRequestBuilder(getServiceRoot() + "/groups", (IGraphServiceClient)this, null);
}
/**
* Gets a single Groups
*
* @param id the id of the Groups to retrieve
* @return the request builder for the Groups object
*/
public IGroupRequestBuilder groups(final String id) {
return new GroupRequestBuilder(getServiceRoot() + "/groups/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of DirectoryRoles objects
*
* @return the request builder for the collection of DirectoryRoles objects
*/
public IDirectoryRoleCollectionRequestBuilder directoryRoles() {
return new DirectoryRoleCollectionRequestBuilder(getServiceRoot() + "/directoryRoles", (IGraphServiceClient)this, null);
}
/**
* Gets a single DirectoryRoles
*
* @param id the id of the DirectoryRoles to retrieve
* @return the request builder for the DirectoryRoles object
*/
public IDirectoryRoleRequestBuilder directoryRoles(final String id) {
return new DirectoryRoleRequestBuilder(getServiceRoot() + "/directoryRoles/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of DirectoryRoleTemplates objects
*
* @return the request builder for the collection of DirectoryRoleTemplates objects
*/
public IDirectoryRoleTemplateCollectionRequestBuilder directoryRoleTemplates() {
return new DirectoryRoleTemplateCollectionRequestBuilder(getServiceRoot() + "/directoryRoleTemplates", (IGraphServiceClient)this, null);
}
/**
* Gets a single DirectoryRoleTemplates
*
* @param id the id of the DirectoryRoleTemplates to retrieve
* @return the request builder for the DirectoryRoleTemplates object
*/
public IDirectoryRoleTemplateRequestBuilder directoryRoleTemplates(final String id) {
return new DirectoryRoleTemplateRequestBuilder(getServiceRoot() + "/directoryRoleTemplates/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Organization objects
*
* @return the request builder for the collection of Organization objects
*/
public IOrganizationCollectionRequestBuilder organization() {
return new OrganizationCollectionRequestBuilder(getServiceRoot() + "/organization", (IGraphServiceClient)this, null);
}
/**
* Gets a single Organization
*
* @param id the id of the Organization to retrieve
* @return the request builder for the Organization object
*/
public IOrganizationRequestBuilder organization(final String id) {
return new OrganizationRequestBuilder(getServiceRoot() + "/organization/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of GroupSettings objects
*
* @return the request builder for the collection of GroupSettings objects
*/
public IGroupSettingCollectionRequestBuilder groupSettings() {
return new GroupSettingCollectionRequestBuilder(getServiceRoot() + "/groupSettings", (IGraphServiceClient)this, null);
}
/**
* Gets a single GroupSettings
*
* @param id the id of the GroupSettings to retrieve
* @return the request builder for the GroupSettings object
*/
public IGroupSettingRequestBuilder groupSettings(final String id) {
return new GroupSettingRequestBuilder(getServiceRoot() + "/groupSettings/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of GroupSettingTemplates objects
*
* @return the request builder for the collection of GroupSettingTemplates objects
*/
public IGroupSettingTemplateCollectionRequestBuilder groupSettingTemplates() {
return new GroupSettingTemplateCollectionRequestBuilder(getServiceRoot() + "/groupSettingTemplates", (IGraphServiceClient)this, null);
}
/**
* Gets a single GroupSettingTemplates
*
* @param id the id of the GroupSettingTemplates to retrieve
* @return the request builder for the GroupSettingTemplates object
*/
public IGroupSettingTemplateRequestBuilder groupSettingTemplates(final String id) {
return new GroupSettingTemplateRequestBuilder(getServiceRoot() + "/groupSettingTemplates/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of SubscribedSkus objects
*
* @return the request builder for the collection of SubscribedSkus objects
*/
public ISubscribedSkuCollectionRequestBuilder subscribedSkus() {
return new SubscribedSkuCollectionRequestBuilder(getServiceRoot() + "/subscribedSkus", (IGraphServiceClient)this, null);
}
/**
* Gets a single SubscribedSkus
*
* @param id the id of the SubscribedSkus to retrieve
* @return the request builder for the SubscribedSkus object
*/
public ISubscribedSkuRequestBuilder subscribedSkus(final String id) {
return new SubscribedSkuRequestBuilder(getServiceRoot() + "/subscribedSkus/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Users objects
*
* @return the request builder for the collection of Users objects
*/
public IUserCollectionRequestBuilder users() {
return new UserCollectionRequestBuilder(getServiceRoot() + "/users", (IGraphServiceClient)this, null);
}
/**
* Gets a single Users
*
* @param id the id of the Users to retrieve
* @return the request builder for the Users object
*/
public IUserRequestBuilder users(final String id) {
return new UserRequestBuilder(getServiceRoot() + "/users/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Contracts objects
*
* @return the request builder for the collection of Contracts objects
*/
public IContractCollectionRequestBuilder contracts() {
return new ContractCollectionRequestBuilder(getServiceRoot() + "/contracts", (IGraphServiceClient)this, null);
}
/**
* Gets a single Contracts
*
* @param id the id of the Contracts to retrieve
* @return the request builder for the Contracts object
*/
public IContractRequestBuilder contracts(final String id) {
return new ContractRequestBuilder(getServiceRoot() + "/contracts/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of SchemaExtensions objects
*
* @return the request builder for the collection of SchemaExtensions objects
*/
public ISchemaExtensionCollectionRequestBuilder schemaExtensions() {
return new SchemaExtensionCollectionRequestBuilder(getServiceRoot() + "/schemaExtensions", (IGraphServiceClient)this, null);
}
/**
* Gets a single SchemaExtensions
*
* @param id the id of the SchemaExtensions to retrieve
* @return the request builder for the SchemaExtensions object
*/
public ISchemaExtensionRequestBuilder schemaExtensions(final String id) {
return new SchemaExtensionRequestBuilder(getServiceRoot() + "/schemaExtensions/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Drives objects
*
* @return the request builder for the collection of Drives objects
*/
public IDriveCollectionRequestBuilder drives() {
return new DriveCollectionRequestBuilder(getServiceRoot() + "/drives", (IGraphServiceClient)this, null);
}
/**
* Gets a single Drives
*
* @param id the id of the Drives to retrieve
* @return the request builder for the Drives object
*/
public IDriveRequestBuilder drives(final String id) {
return new DriveRequestBuilder(getServiceRoot() + "/drives/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Shares objects
*
* @return the request builder for the collection of Shares objects
*/
public ISharedDriveItemCollectionRequestBuilder shares() {
return new SharedDriveItemCollectionRequestBuilder(getServiceRoot() + "/shares", (IGraphServiceClient)this, null);
}
/**
* Gets a single Shares
*
* @param id the id of the Shares to retrieve
* @return the request builder for the Shares object
*/
public ISharedDriveItemRequestBuilder shares(final String id) {
return new SharedDriveItemRequestBuilder(getServiceRoot() + "/shares/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Sites objects
*
* @return the request builder for the collection of Sites objects
*/
public ISiteCollectionRequestBuilder sites() {
return new SiteCollectionRequestBuilder(getServiceRoot() + "/sites", (IGraphServiceClient)this, null);
}
/**
* Gets a single Sites
*
* @param id the id of the Sites to retrieve
* @return the request builder for the Sites object
*/
public ISiteRequestBuilder sites(final String id) {
return new SiteRequestBuilder(getServiceRoot() + "/sites/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Workbooks objects
*
* @return the request builder for the collection of Workbooks objects
*/
public IDriveItemCollectionRequestBuilder workbooks() {
return new DriveItemCollectionRequestBuilder(getServiceRoot() + "/workbooks", (IGraphServiceClient)this, null);
}
/**
* Gets a single Workbooks
*
* @param id the id of the Workbooks to retrieve
* @return the request builder for the Workbooks object
*/
public IDriveItemRequestBuilder workbooks(final String id) {
return new DriveItemRequestBuilder(getServiceRoot() + "/workbooks/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Subscriptions objects
*
* @return the request builder for the collection of Subscriptions objects
*/
public ISubscriptionCollectionRequestBuilder subscriptions() {
return new SubscriptionCollectionRequestBuilder(getServiceRoot() + "/subscriptions", (IGraphServiceClient)this, null);
}
/**
* Gets a single Subscriptions
*
* @param id the id of the Subscriptions to retrieve
* @return the request builder for the Subscriptions object
*/
public ISubscriptionRequestBuilder subscriptions(final String id) {
return new SubscriptionRequestBuilder(getServiceRoot() + "/subscriptions/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Invitations objects
*
* @return the request builder for the collection of Invitations objects
*/
public IInvitationCollectionRequestBuilder invitations() {
return new InvitationCollectionRequestBuilder(getServiceRoot() + "/invitations", (IGraphServiceClient)this, null);
}
/**
* Gets a single Invitations
*
* @param id the id of the Invitations to retrieve
* @return the request builder for the Invitations object
*/
public IInvitationRequestBuilder invitations(final String id) {
return new InvitationRequestBuilder(getServiceRoot() + "/invitations/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of GroupLifecyclePolicies objects
*
* @return the request builder for the collection of GroupLifecyclePolicies objects
*/
public IGroupLifecyclePolicyCollectionRequestBuilder groupLifecyclePolicies() {
return new GroupLifecyclePolicyCollectionRequestBuilder(getServiceRoot() + "/groupLifecyclePolicies", (IGraphServiceClient)this, null);
}
/**
* Gets a single GroupLifecyclePolicies
*
* @param id the id of the GroupLifecyclePolicies to retrieve
* @return the request builder for the GroupLifecyclePolicies object
*/
public IGroupLifecyclePolicyRequestBuilder groupLifecyclePolicies(final String id) {
return new GroupLifecyclePolicyRequestBuilder(getServiceRoot() + "/groupLifecyclePolicies/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of Teams objects
*
* @return the request builder for the collection of Teams objects
*/
public ITeamCollectionRequestBuilder teams() {
return new TeamCollectionRequestBuilder(getServiceRoot() + "/teams", (IGraphServiceClient)this, null);
}
/**
* Gets a single Teams
*
* @param id the id of the Teams to retrieve
* @return the request builder for the Teams object
*/
public ITeamRequestBuilder teams(final String id) {
return new TeamRequestBuilder(getServiceRoot() + "/teams/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of DataPolicyOperations objects
*
* @return the request builder for the collection of DataPolicyOperations objects
*/
public IDataPolicyOperationCollectionRequestBuilder dataPolicyOperations() {
return new DataPolicyOperationCollectionRequestBuilder(getServiceRoot() + "/dataPolicyOperations", (IGraphServiceClient)this, null);
}
/**
* Gets a single DataPolicyOperations
*
* @param id the id of the DataPolicyOperations to retrieve
* @return the request builder for the DataPolicyOperations object
*/
public IDataPolicyOperationRequestBuilder dataPolicyOperations(final String id) {
return new DataPolicyOperationRequestBuilder(getServiceRoot() + "/dataPolicyOperations/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the collection of IdentityProviders objects
*
* @return the request builder for the collection of IdentityProviders objects
*/
public IIdentityProviderCollectionRequestBuilder identityProviders() {
return new IdentityProviderCollectionRequestBuilder(getServiceRoot() + "/identityProviders", (IGraphServiceClient)this, null);
}
/**
* Gets a single IdentityProviders
*
* @param id the id of the IdentityProviders to retrieve
* @return the request builder for the IdentityProviders object
*/
public IIdentityProviderRequestBuilder identityProviders(final String id) {
return new IdentityProviderRequestBuilder(getServiceRoot() + "/identityProviders/" + id, (IGraphServiceClient)this, null);
}
/**
* Gets the GraphServiceRequestBuilder
*
* @return the User
*/
public IUserRequestBuilder me() {
return new UserRequestBuilder(getServiceRoot() + "/me", (IGraphServiceClient)this, null);
}
/**
* Gets the GraphServiceRequestBuilder
*
* @return the Directory
*/
public IDirectoryRequestBuilder directory() {
return new DirectoryRequestBuilder(getServiceRoot() + "/directory", (IGraphServiceClient)this, null);
}
/**
* Gets the GraphServiceRequestBuilder
*
* @return the Drive
*/
public IDriveRequestBuilder drive() {
return new DriveRequestBuilder(getServiceRoot() + "/drive", (IGraphServiceClient)this, null);
}
/**
* Gets the GraphServiceRequestBuilder
*
* @return the Planner
*/
public IPlannerRequestBuilder planner() {
return new PlannerRequestBuilder(getServiceRoot() + "/planner", (IGraphServiceClient)this, null);
}
/**
* Gets the GraphServiceRequestBuilder
*
* @return the ReportRoot
*/
public IReportRootRequestBuilder reports() {
return new ReportRootRequestBuilder(getServiceRoot() + "/reports", (IGraphServiceClient)this, null);
}
/**
* Gets the GraphServiceRequestBuilder
*
* @return the EducationRoot
*/
public IEducationRootRequestBuilder education() {
return new EducationRootRequestBuilder(getServiceRoot() + "/education", (IGraphServiceClient)this, null);
}
/**
* Gets the GraphServiceRequestBuilder
*
* @return the DeviceAppManagement
*/
public IDeviceAppManagementRequestBuilder deviceAppManagement() {
return new DeviceAppManagementRequestBuilder(getServiceRoot() + "/deviceAppManagement", (IGraphServiceClient)this, null);
}
/**
* Gets the GraphServiceRequestBuilder
*
* @return the DeviceManagement
*/
public IDeviceManagementRequestBuilder deviceManagement() {
return new DeviceManagementRequestBuilder(getServiceRoot() + "/deviceManagement", (IGraphServiceClient)this, null);
}
/**
* Gets the GraphServiceRequestBuilder
*
* @return the Security
*/
public ISecurityRequestBuilder Security() {
return new SecurityRequestBuilder(getServiceRoot() + "/Security", (IGraphServiceClient)this, null);
}
/**
* Gets the GraphServiceRequestBuilder
*
* @return the AppCatalogs
*/
public IAppCatalogsRequestBuilder appCatalogs() {
return new AppCatalogsRequestBuilder(getServiceRoot() + "/appCatalogs", (IGraphServiceClient)this, null);
}
/**
* Gets the GraphServiceRequestBuilder
*
* @return the AuditLogRoot
*/
public IAuditLogRootRequestBuilder auditLogs() {
return new AuditLogRootRequestBuilder(getServiceRoot() + "/auditLogs", (IGraphServiceClient)this, null);
}
}