/******************************************************************************* **NOTE** This code was generated by a tool and will occasionally be overwritten. We welcome comments and issues regarding this code; they will be addressed in the generation tool. If you wish to submit pull requests, please do so for the templates in that tool. This code was generated by Vipr (https://github.com/microsoft/vipr) using the T4TemplateWriter (https://github.com/msopentech/vipr-t4templatewriter). Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License 2.0; see LICENSE in the source repository root for authoritative license information. ******************************************************************************/ package com.microsoft.services.graph.fetchers; import com.microsoft.services.graph.*; import com.google.common.util.concurrent.*; import com.microsoft.services.orc.core.*; import com.microsoft.services.orc.core.Readable; /** * The type User . */ public class UserFetcher extends OrcEntityFetcher<User,UserOperations> implements Readable<User> { /** * Instantiates a new UserFetcher. * * @param urlComponent the url component * @param parent the parent */ public UserFetcher(String urlComponent, OrcExecutable parent) { super(urlComponent, parent, User.class, UserOperations.class); } /** * Add parameter. * * @param name the name * @param value the value * @return the fetcher */ public UserFetcher addParameter(String name, Object value) { addCustomParameter(name, value); return this; } /** * Add header. * * @param name the name * @param value the value * @return the fetcher */ public UserFetcher addHeader(String name, String value) { addCustomHeader(name, value); return this; } /** * Gets app role assignments. * * @return the app role assignments */ public OrcCollectionFetcher<AppRoleAssignment, AppRoleAssignmentFetcher, AppRoleAssignmentCollectionOperations> getAppRoleAssignments() { return new OrcCollectionFetcher<AppRoleAssignment, AppRoleAssignmentFetcher, AppRoleAssignmentCollectionOperations>("appRoleAssignments", this, AppRoleAssignment.class, AppRoleAssignmentCollectionOperations.class); } /** * Gets app role assignment. * * @return the app role assignment */ public AppRoleAssignmentFetcher getAppRoleAssignment(String id){ return new OrcCollectionFetcher<AppRoleAssignment, AppRoleAssignmentFetcher, AppRoleAssignmentCollectionOperations>("appRoleAssignments", this, AppRoleAssignment.class, AppRoleAssignmentCollectionOperations.class).getById(id); } /** * Gets oauth2permission grants. * * @return the oauth2permission grants */ public OrcCollectionFetcher<OAuth2PermissionGrant, OAuth2PermissionGrantFetcher, OAuth2PermissionGrantCollectionOperations> getOauth2PermissionGrants() { return new OrcCollectionFetcher<OAuth2PermissionGrant, OAuth2PermissionGrantFetcher, OAuth2PermissionGrantCollectionOperations>("oauth2PermissionGrants", this, OAuth2PermissionGrant.class, OAuth2PermissionGrantCollectionOperations.class); } /** * Gets oauth2permission grant. * * @return the oauth2permission grant */ public OAuth2PermissionGrantFetcher getOauth2PermissionGrant(String id){ return new OrcCollectionFetcher<OAuth2PermissionGrant, OAuth2PermissionGrantFetcher, OAuth2PermissionGrantCollectionOperations>("oauth2PermissionGrants", this, OAuth2PermissionGrant.class, OAuth2PermissionGrantCollectionOperations.class).getById(id); } /** * Gets owned devices. * * @return the owned devices */ public OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations> getOwnedDevices() { return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("ownedDevices", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class); } /** * Gets owned device. * * @return the owned device */ public DirectoryObjectFetcher getOwnedDevice(String id){ return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("ownedDevices", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class).getById(id); } /** * Gets registered devices. * * @return the registered devices */ public OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations> getRegisteredDevices() { return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("registeredDevices", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class); } /** * Gets registered device. * * @return the registered device */ public DirectoryObjectFetcher getRegisteredDevice(String id){ return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("registeredDevices", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class).getById(id); } /** * Gets manager. * * @return the manager */ public DirectoryObjectFetcher getManager() { return new DirectoryObjectFetcher("manager", this); } /** * Gets direct reports. * * @return the direct reports */ public OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations> getDirectReports() { return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("directReports", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class); } /** * Gets direct report. * * @return the direct report */ public DirectoryObjectFetcher getDirectReport(String id){ return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("directReports", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class).getById(id); } /** * Gets member of. * * @return the member of */ public OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations> getMemberOf() { return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("memberOf", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class); } /** * Gets member of. * * @return the member of */ public DirectoryObjectFetcher getMemberOf(String id){ return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("memberOf", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class).getById(id); } /** * Gets created objects. * * @return the created objects */ public OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations> getCreatedObjects() { return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("createdObjects", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class); } /** * Gets created object. * * @return the created object */ public DirectoryObjectFetcher getCreatedObject(String id){ return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("createdObjects", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class).getById(id); } /** * Gets owned objects. * * @return the owned objects */ public OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations> getOwnedObjects() { return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("ownedObjects", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class); } /** * Gets owned object. * * @return the owned object */ public DirectoryObjectFetcher getOwnedObject(String id){ return new OrcCollectionFetcher<DirectoryObject, DirectoryObjectFetcher, DirectoryObjectCollectionOperations>("ownedObjects", this, DirectoryObject.class, DirectoryObjectCollectionOperations.class).getById(id); } /** * Gets messages. * * @return the messages */ public OrcCollectionFetcher<Message, MessageFetcher, MessageCollectionOperations> getMessages() { return new OrcCollectionFetcher<Message, MessageFetcher, MessageCollectionOperations>("Messages", this, Message.class, MessageCollectionOperations.class); } /** * Gets message. * * @return the message */ public MessageFetcher getMessage(String id){ return new OrcCollectionFetcher<Message, MessageFetcher, MessageCollectionOperations>("Messages", this, Message.class, MessageCollectionOperations.class).getById(id); } /** * Gets calendars. * * @return the calendars */ public OrcCollectionFetcher<Calendar, CalendarFetcher, CalendarCollectionOperations> getCalendars() { return new OrcCollectionFetcher<Calendar, CalendarFetcher, CalendarCollectionOperations>("Calendars", this, Calendar.class, CalendarCollectionOperations.class); } /** * Gets calendar. * * @return the calendar */ public CalendarFetcher getCalendar(String id){ return new OrcCollectionFetcher<Calendar, CalendarFetcher, CalendarCollectionOperations>("Calendars", this, Calendar.class, CalendarCollectionOperations.class).getById(id); } /** * Gets calendar. * * @return the calendar */ public CalendarFetcher getCalendar() { return new CalendarFetcher("Calendar", this); } /** * Gets calendar groups. * * @return the calendar groups */ public OrcCollectionFetcher<CalendarGroup, CalendarGroupFetcher, CalendarGroupCollectionOperations> getCalendarGroups() { return new OrcCollectionFetcher<CalendarGroup, CalendarGroupFetcher, CalendarGroupCollectionOperations>("CalendarGroups", this, CalendarGroup.class, CalendarGroupCollectionOperations.class); } /** * Gets calendar group. * * @return the calendar group */ public CalendarGroupFetcher getCalendarGroup(String id){ return new OrcCollectionFetcher<CalendarGroup, CalendarGroupFetcher, CalendarGroupCollectionOperations>("CalendarGroups", this, CalendarGroup.class, CalendarGroupCollectionOperations.class).getById(id); } /** * Gets events. * * @return the events */ public OrcCollectionFetcher<Event, EventFetcher, EventCollectionOperations> getEvents() { return new OrcCollectionFetcher<Event, EventFetcher, EventCollectionOperations>("Events", this, Event.class, EventCollectionOperations.class); } /** * Gets event. * * @return the event */ public EventFetcher getEvent(String id){ return new OrcCollectionFetcher<Event, EventFetcher, EventCollectionOperations>("Events", this, Event.class, EventCollectionOperations.class).getById(id); } /** * Gets calendar view. * * @return the calendar view */ public OrcCollectionFetcher<Event, EventFetcher, EventCollectionOperations> getCalendarView() { return new OrcCollectionFetcher<Event, EventFetcher, EventCollectionOperations>("CalendarView", this, Event.class, EventCollectionOperations.class); } /** * Gets calendar view. * * @return the calendar view */ public EventFetcher getCalendarView(String id){ return new OrcCollectionFetcher<Event, EventFetcher, EventCollectionOperations>("CalendarView", this, Event.class, EventCollectionOperations.class).getById(id); } /** * Gets userphoto. * * @return the user photo */ public PhotoFetcher getUserPhoto() { return new PhotoFetcher("UserPhoto", this); } /** * Gets user photos. * * @return the user photos */ public OrcCollectionFetcher<Photo, PhotoFetcher, PhotoCollectionOperations> getUserPhotos() { return new OrcCollectionFetcher<Photo, PhotoFetcher, PhotoCollectionOperations>("UserPhotos", this, Photo.class, PhotoCollectionOperations.class); } /** * Gets user photo. * * @return the user photo */ public PhotoFetcher getUserPhoto(String id){ return new OrcCollectionFetcher<Photo, PhotoFetcher, PhotoCollectionOperations>("UserPhotos", this, Photo.class, PhotoCollectionOperations.class).getById(id); } /** * Gets joined groups. * * @return the joined groups */ public OrcCollectionFetcher<Group, GroupFetcher, GroupCollectionOperations> getJoinedGroups() { return new OrcCollectionFetcher<Group, GroupFetcher, GroupCollectionOperations>("JoinedGroups", this, Group.class, GroupCollectionOperations.class); } /** * Gets joined group. * * @return the joined group */ public GroupFetcher getJoinedGroup(String id){ return new OrcCollectionFetcher<Group, GroupFetcher, GroupCollectionOperations>("JoinedGroups", this, Group.class, GroupCollectionOperations.class).getById(id); } /** * Gets drive. * * @return the drive */ public DriveFetcher getDrive() { return new DriveFetcher("drive", this); } /** * Gets files. * * @return the files */ public OrcCollectionFetcher<Item, ItemFetcher, ItemCollectionOperations> getFiles() { return new OrcCollectionFetcher<Item, ItemFetcher, ItemCollectionOperations>("files", this, Item.class, ItemCollectionOperations.class); } /** * Gets file. * * @return the file */ public ItemFetcher getFile(String id){ return new OrcCollectionFetcher<Item, ItemFetcher, ItemCollectionOperations>("files", this, Item.class, ItemCollectionOperations.class).getById(id); } }