odata.msgraph.client.container.GraphService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-msgraph Show documentation
Show all versions of odata-client-msgraph Show documentation
Java client for use with the Microsoft Graph v1.0 endpoint
package odata.msgraph.client.container;
import com.github.davidmoten.odata.client.Context;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.HasContext;
import com.github.davidmoten.odata.client.HttpService;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.TestingService.BuilderBase;
import com.github.davidmoten.odata.client.TestingService.ContainerBuilder;
import java.lang.Override;
import java.lang.String;
import java.util.Optional;
import odata.msgraph.client.entity.request.AdminRequest;
import odata.msgraph.client.entity.request.AgreementAcceptanceRequest;
import odata.msgraph.client.entity.request.AgreementRequest;
import odata.msgraph.client.entity.request.AppCatalogsRequest;
import odata.msgraph.client.entity.request.ApplicationRequest;
import odata.msgraph.client.entity.request.ApplicationTemplateRequest;
import odata.msgraph.client.entity.request.AttributeMappingFunctionSchemaRequest;
import odata.msgraph.client.entity.request.AuditLogRootRequest;
import odata.msgraph.client.entity.request.AuthenticationMethodConfigurationRequest;
import odata.msgraph.client.entity.request.AuthenticationMethodsPolicyRequest;
import odata.msgraph.client.entity.request.CertificateBasedAuthConfigurationRequest;
import odata.msgraph.client.entity.request.ChatRequest;
import odata.msgraph.client.entity.request.CloudCommunicationsRequest;
import odata.msgraph.client.entity.request.ComplianceRequest;
import odata.msgraph.client.entity.request.ContractRequest;
import odata.msgraph.client.entity.request.DataPolicyOperationRequest;
import odata.msgraph.client.entity.request.DeviceAppManagementRequest;
import odata.msgraph.client.entity.request.DeviceManagementRequest;
import odata.msgraph.client.entity.request.DeviceRequest;
import odata.msgraph.client.entity.request.DirectoryObjectRequest;
import odata.msgraph.client.entity.request.DirectoryRequest;
import odata.msgraph.client.entity.request.DirectoryRoleRequest;
import odata.msgraph.client.entity.request.DirectoryRoleTemplateRequest;
import odata.msgraph.client.entity.request.DomainDnsRecordRequest;
import odata.msgraph.client.entity.request.DomainRequest;
import odata.msgraph.client.entity.request.DriveRequest;
import odata.msgraph.client.entity.request.EducationRootRequest;
import odata.msgraph.client.entity.request.EmployeeExperienceRequest;
import odata.msgraph.client.entity.request.FilterOperatorSchemaRequest;
import odata.msgraph.client.entity.request.GroupLifecyclePolicyRequest;
import odata.msgraph.client.entity.request.GroupRequest;
import odata.msgraph.client.entity.request.GroupSettingRequest;
import odata.msgraph.client.entity.request.GroupSettingTemplateRequest;
import odata.msgraph.client.entity.request.IdentityContainerRequest;
import odata.msgraph.client.entity.request.IdentityGovernanceRequest;
import odata.msgraph.client.entity.request.IdentityProtectionRootRequest;
import odata.msgraph.client.entity.request.IdentityProviderRequest;
import odata.msgraph.client.entity.request.InformationProtectionRequest;
import odata.msgraph.client.entity.request.InvitationRequest;
import odata.msgraph.client.entity.request.OAuth2PermissionGrantRequest;
import odata.msgraph.client.entity.request.OrgContactRequest;
import odata.msgraph.client.entity.request.OrganizationRequest;
import odata.msgraph.client.entity.request.PlaceRequest;
import odata.msgraph.client.entity.request.PlannerRequest;
import odata.msgraph.client.entity.request.PolicyRootRequest;
import odata.msgraph.client.entity.request.PrintRequest;
import odata.msgraph.client.entity.request.PrivacyRequest;
import odata.msgraph.client.entity.request.ReportRootRequest;
import odata.msgraph.client.entity.request.ResourceSpecificPermissionGrantRequest;
import odata.msgraph.client.entity.request.RoleManagementRequest;
import odata.msgraph.client.entity.request.SchemaExtensionRequest;
import odata.msgraph.client.entity.request.ScopedRoleMembershipRequest;
import odata.msgraph.client.entity.request.SearchEntityRequest;
import odata.msgraph.client.entity.request.SecurityRequest;
import odata.msgraph.client.entity.request.ServicePrincipalRequest;
import odata.msgraph.client.entity.request.SharedDriveItemRequest;
import odata.msgraph.client.entity.request.SiteRequest;
import odata.msgraph.client.entity.request.SolutionsRootRequest;
import odata.msgraph.client.entity.request.SubscribedSkuRequest;
import odata.msgraph.client.entity.request.SubscriptionRequest;
import odata.msgraph.client.entity.request.TeamRequest;
import odata.msgraph.client.entity.request.TeamsTemplateRequest;
import odata.msgraph.client.entity.request.TeamworkRequest;
import odata.msgraph.client.entity.request.TenantRelationshipRequest;
import odata.msgraph.client.entity.request.UserRequest;
import odata.msgraph.client.entity.set.AgreementAcceptances;
import odata.msgraph.client.entity.set.Agreements;
import odata.msgraph.client.entity.set.ApplicationTemplates;
import odata.msgraph.client.entity.set.Applications;
import odata.msgraph.client.entity.set.AuthenticationMethodConfigurations;
import odata.msgraph.client.entity.set.CertificateBasedAuthConfiguration;
import odata.msgraph.client.entity.set.Chats;
import odata.msgraph.client.entity.set.Connections;
import odata.msgraph.client.entity.set.Contacts;
import odata.msgraph.client.entity.set.Contracts;
import odata.msgraph.client.entity.set.DataPolicyOperations;
import odata.msgraph.client.entity.set.Devices;
import odata.msgraph.client.entity.set.DirectoryObjects;
import odata.msgraph.client.entity.set.DirectoryRoleTemplates;
import odata.msgraph.client.entity.set.DirectoryRoles;
import odata.msgraph.client.entity.set.DomainDnsRecords;
import odata.msgraph.client.entity.set.Domains;
import odata.msgraph.client.entity.set.Drives;
import odata.msgraph.client.entity.set.FilterOperators;
import odata.msgraph.client.entity.set.Functions;
import odata.msgraph.client.entity.set.GroupLifecyclePolicies;
import odata.msgraph.client.entity.set.GroupSettingTemplates;
import odata.msgraph.client.entity.set.GroupSettings;
import odata.msgraph.client.entity.set.Groups;
import odata.msgraph.client.entity.set.IdentityProviders;
import odata.msgraph.client.entity.set.Invitations;
import odata.msgraph.client.entity.set.Oauth2PermissionGrants;
import odata.msgraph.client.entity.set.Organization;
import odata.msgraph.client.entity.set.PermissionGrants;
import odata.msgraph.client.entity.set.Places;
import odata.msgraph.client.entity.set.SchemaExtensions;
import odata.msgraph.client.entity.set.ScopedRoleMemberships;
import odata.msgraph.client.entity.set.ServicePrincipals;
import odata.msgraph.client.entity.set.Shares;
import odata.msgraph.client.entity.set.Sites;
import odata.msgraph.client.entity.set.SubscribedSkus;
import odata.msgraph.client.entity.set.Subscriptions;
import odata.msgraph.client.entity.set.Teams;
import odata.msgraph.client.entity.set.TeamsTemplates;
import odata.msgraph.client.entity.set.Users;
import odata.msgraph.client.externalconnectors.entity.request.ExternalConnectionRequest;
import odata.msgraph.client.externalconnectors.entity.request.ExternalRequest;
public final class GraphService implements HasContext {
private final ContextPath contextPath;
public GraphService(Context context) {
this.contextPath = new ContextPath(context, context.service().getBasePath());
}
@Override
public Context _context() {
return contextPath.context();
}
public HttpService _service() {
return contextPath.context().service();
}
static final class ContainerBuilderImpl extends ContainerBuilder {
@Override
public GraphService _create(Context context) {
return new GraphService(context);
}
}
public static BuilderBase, GraphService> test() {
return new ContainerBuilderImpl();
}
public InvitationRequest invitations(String id) {
return new InvitationRequest(contextPath.addSegment("invitations").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Invitations invitations() {
return new Invitations(
contextPath.addSegment("invitations"));
}
public UserRequest users(String id) {
return new UserRequest(contextPath.addSegment("users").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Users users() {
return new Users(
contextPath.addSegment("users"));
}
public ApplicationTemplateRequest applicationTemplates(String id) {
return new ApplicationTemplateRequest(contextPath.addSegment("applicationTemplates").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public ApplicationTemplates applicationTemplates() {
return new ApplicationTemplates(
contextPath.addSegment("applicationTemplates"));
}
public AuthenticationMethodConfigurationRequest authenticationMethodConfigurations(String id) {
return new AuthenticationMethodConfigurationRequest(contextPath.addSegment("authenticationMethodConfigurations").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public AuthenticationMethodConfigurations authenticationMethodConfigurations() {
return new AuthenticationMethodConfigurations(
contextPath.addSegment("authenticationMethodConfigurations"));
}
public IdentityProviderRequest identityProviders(String id) {
return new IdentityProviderRequest(contextPath.addSegment("identityProviders").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public IdentityProviders identityProviders() {
return new IdentityProviders(
contextPath.addSegment("identityProviders"));
}
public ApplicationRequest applications(String id) {
return new ApplicationRequest(contextPath.addSegment("applications").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Applications applications() {
return new Applications(
contextPath.addSegment("applications"));
}
public CertificateBasedAuthConfigurationRequest certificateBasedAuthConfiguration(String id) {
return new CertificateBasedAuthConfigurationRequest(contextPath.addSegment("certificateBasedAuthConfiguration").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public CertificateBasedAuthConfiguration certificateBasedAuthConfiguration() {
return new CertificateBasedAuthConfiguration(
contextPath.addSegment("certificateBasedAuthConfiguration"));
}
public OrgContactRequest contacts(String id) {
return new OrgContactRequest(contextPath.addSegment("contacts").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Contacts contacts() {
return new Contacts(
contextPath.addSegment("contacts"));
}
public ContractRequest contracts(String id) {
return new ContractRequest(contextPath.addSegment("contracts").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Contracts contracts() {
return new Contracts(
contextPath.addSegment("contracts"));
}
public DeviceRequest devices(String id) {
return new DeviceRequest(contextPath.addSegment("devices").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Devices devices() {
return new Devices(
contextPath.addSegment("devices"));
}
public DirectoryObjectRequest directoryObjects(String id) {
return new DirectoryObjectRequest(contextPath.addSegment("directoryObjects").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public DirectoryObjects directoryObjects() {
return new DirectoryObjects(
contextPath.addSegment("directoryObjects"));
}
public DirectoryRoleRequest directoryRoles(String id) {
return new DirectoryRoleRequest(contextPath.addSegment("directoryRoles").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public DirectoryRoles directoryRoles() {
return new DirectoryRoles(
contextPath.addSegment("directoryRoles"));
}
public DirectoryRoleTemplateRequest directoryRoleTemplates(String id) {
return new DirectoryRoleTemplateRequest(contextPath.addSegment("directoryRoleTemplates").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public DirectoryRoleTemplates directoryRoleTemplates() {
return new DirectoryRoleTemplates(
contextPath.addSegment("directoryRoleTemplates"));
}
public DomainDnsRecordRequest domainDnsRecords(String id) {
return new DomainDnsRecordRequest(contextPath.addSegment("domainDnsRecords").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public DomainDnsRecords domainDnsRecords() {
return new DomainDnsRecords(
contextPath.addSegment("domainDnsRecords"));
}
public DomainRequest domains(String id) {
return new DomainRequest(contextPath.addSegment("domains").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Domains domains() {
return new Domains(
contextPath.addSegment("domains"));
}
public GroupRequest groups(String id) {
return new GroupRequest(contextPath.addSegment("groups").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Groups groups() {
return new Groups(
contextPath.addSegment("groups"));
}
public GroupSettingRequest groupSettings(String id) {
return new GroupSettingRequest(contextPath.addSegment("groupSettings").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public GroupSettings groupSettings() {
return new GroupSettings(
contextPath.addSegment("groupSettings"));
}
public GroupSettingTemplateRequest groupSettingTemplates(String id) {
return new GroupSettingTemplateRequest(contextPath.addSegment("groupSettingTemplates").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public GroupSettingTemplates groupSettingTemplates() {
return new GroupSettingTemplates(
contextPath.addSegment("groupSettingTemplates"));
}
public OAuth2PermissionGrantRequest oauth2PermissionGrants(String id) {
return new OAuth2PermissionGrantRequest(contextPath.addSegment("oauth2PermissionGrants").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Oauth2PermissionGrants oauth2PermissionGrants() {
return new Oauth2PermissionGrants(
contextPath.addSegment("oauth2PermissionGrants"));
}
public OrganizationRequest organization(String id) {
return new OrganizationRequest(contextPath.addSegment("organization").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Organization organization() {
return new Organization(
contextPath.addSegment("organization"));
}
public ResourceSpecificPermissionGrantRequest permissionGrants(String id) {
return new ResourceSpecificPermissionGrantRequest(contextPath.addSegment("permissionGrants").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public PermissionGrants permissionGrants() {
return new PermissionGrants(
contextPath.addSegment("permissionGrants"));
}
public ScopedRoleMembershipRequest scopedRoleMemberships(String id) {
return new ScopedRoleMembershipRequest(contextPath.addSegment("scopedRoleMemberships").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public ScopedRoleMemberships scopedRoleMemberships() {
return new ScopedRoleMemberships(
contextPath.addSegment("scopedRoleMemberships"));
}
public ServicePrincipalRequest servicePrincipals(String id) {
return new ServicePrincipalRequest(contextPath.addSegment("servicePrincipals").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public ServicePrincipals servicePrincipals() {
return new ServicePrincipals(
contextPath.addSegment("servicePrincipals"));
}
public SubscribedSkuRequest subscribedSkus(String id) {
return new SubscribedSkuRequest(contextPath.addSegment("subscribedSkus").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public SubscribedSkus subscribedSkus() {
return new SubscribedSkus(
contextPath.addSegment("subscribedSkus"));
}
public PlaceRequest places(String id) {
return new PlaceRequest(contextPath.addSegment("places").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Places places() {
return new Places(
contextPath.addSegment("places"));
}
public DriveRequest drives(String id) {
return new DriveRequest(contextPath.addSegment("drives").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Drives drives() {
return new Drives(
contextPath.addSegment("drives"));
}
public SharedDriveItemRequest shares(String id) {
return new SharedDriveItemRequest(contextPath.addSegment("shares").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Shares shares() {
return new Shares(
contextPath.addSegment("shares"));
}
public SiteRequest sites(String id) {
return new SiteRequest(contextPath.addSegment("sites").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Sites sites() {
return new Sites(
contextPath.addSegment("sites"));
}
public SchemaExtensionRequest schemaExtensions(String id) {
return new SchemaExtensionRequest(contextPath.addSegment("schemaExtensions").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public SchemaExtensions schemaExtensions() {
return new SchemaExtensions(
contextPath.addSegment("schemaExtensions"));
}
public GroupLifecyclePolicyRequest groupLifecyclePolicies(String id) {
return new GroupLifecyclePolicyRequest(contextPath.addSegment("groupLifecyclePolicies").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public GroupLifecyclePolicies groupLifecyclePolicies() {
return new GroupLifecyclePolicies(
contextPath.addSegment("groupLifecyclePolicies"));
}
public FilterOperatorSchemaRequest filterOperators(String id) {
return new FilterOperatorSchemaRequest(contextPath.addSegment("filterOperators").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public FilterOperators filterOperators() {
return new FilterOperators(
contextPath.addSegment("filterOperators"));
}
public AttributeMappingFunctionSchemaRequest functions(String id) {
return new AttributeMappingFunctionSchemaRequest(contextPath.addSegment("functions").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Functions functions() {
return new Functions(
contextPath.addSegment("functions"));
}
public AgreementAcceptanceRequest agreementAcceptances(String id) {
return new AgreementAcceptanceRequest(contextPath.addSegment("agreementAcceptances").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public AgreementAcceptances agreementAcceptances() {
return new AgreementAcceptances(
contextPath.addSegment("agreementAcceptances"));
}
public AgreementRequest agreements(String id) {
return new AgreementRequest(contextPath.addSegment("agreements").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Agreements agreements() {
return new Agreements(
contextPath.addSegment("agreements"));
}
public DataPolicyOperationRequest dataPolicyOperations(String id) {
return new DataPolicyOperationRequest(contextPath.addSegment("dataPolicyOperations").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public DataPolicyOperations dataPolicyOperations() {
return new DataPolicyOperations(
contextPath.addSegment("dataPolicyOperations"));
}
public SubscriptionRequest subscriptions(String id) {
return new SubscriptionRequest(contextPath.addSegment("subscriptions").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Subscriptions subscriptions() {
return new Subscriptions(
contextPath.addSegment("subscriptions"));
}
public ExternalConnectionRequest connections(String id) {
return new ExternalConnectionRequest(contextPath.addSegment("connections").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Connections connections() {
return new Connections(
contextPath.addSegment("connections"));
}
public ChatRequest chats(String id) {
return new ChatRequest(contextPath.addSegment("chats").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Chats chats() {
return new Chats(
contextPath.addSegment("chats"));
}
public TeamRequest teams(String id) {
return new TeamRequest(contextPath.addSegment("teams").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public Teams teams() {
return new Teams(
contextPath.addSegment("teams"));
}
public TeamsTemplateRequest teamsTemplates(String id) {
return new TeamsTemplateRequest(contextPath.addSegment("teamsTemplates").addKeys(new NameValue(id, String.class)), Optional.empty());
}
public TeamsTemplates teamsTemplates() {
return new TeamsTemplates(
contextPath.addSegment("teamsTemplates"));
}
public IdentityGovernanceRequest identityGovernance() {
return new IdentityGovernanceRequest(contextPath.addSegment("identityGovernance"), Optional.empty());
}
public AuditLogRootRequest auditLogs() {
return new AuditLogRootRequest(contextPath.addSegment("auditLogs"), Optional.empty());
}
public ReportRootRequest reports() {
return new ReportRootRequest(contextPath.addSegment("reports"), Optional.empty());
}
public AuthenticationMethodsPolicyRequest authenticationMethodsPolicy() {
return new AuthenticationMethodsPolicyRequest(contextPath.addSegment("authenticationMethodsPolicy"), Optional.empty());
}
public SolutionsRootRequest solutions() {
return new SolutionsRootRequest(contextPath.addSegment("solutions"), Optional.empty());
}
public PrivacyRequest privacy() {
return new PrivacyRequest(contextPath.addSegment("privacy"), Optional.empty());
}
public SecurityRequest security() {
return new SecurityRequest(contextPath.addSegment("security"), Optional.empty());
}
public ComplianceRequest compliance() {
return new ComplianceRequest(contextPath.addSegment("compliance"), Optional.empty());
}
public IdentityContainerRequest identity() {
return new IdentityContainerRequest(contextPath.addSegment("identity"), Optional.empty());
}
public DirectoryRequest directory() {
return new DirectoryRequest(contextPath.addSegment("directory"), Optional.empty());
}
public UserRequest me() {
return new UserRequest(contextPath.addSegment("me"), Optional.empty());
}
public PolicyRootRequest policies() {
return new PolicyRootRequest(contextPath.addSegment("policies"), Optional.empty());
}
public TenantRelationshipRequest tenantRelationships() {
return new TenantRelationshipRequest(contextPath.addSegment("tenantRelationships"), Optional.empty());
}
public AdminRequest admin() {
return new AdminRequest(contextPath.addSegment("admin"), Optional.empty());
}
public EducationRootRequest education() {
return new EducationRootRequest(contextPath.addSegment("education"), Optional.empty());
}
public RoleManagementRequest roleManagement() {
return new RoleManagementRequest(contextPath.addSegment("roleManagement"), Optional.empty());
}
public DriveRequest drive() {
return new DriveRequest(contextPath.addSegment("drive"), Optional.empty());
}
public CloudCommunicationsRequest communications() {
return new CloudCommunicationsRequest(contextPath.addSegment("communications"), Optional.empty());
}
public IdentityProtectionRootRequest identityProtection() {
return new IdentityProtectionRootRequest(contextPath.addSegment("identityProtection"), Optional.empty());
}
public DeviceAppManagementRequest deviceAppManagement() {
return new DeviceAppManagementRequest(contextPath.addSegment("deviceAppManagement"), Optional.empty());
}
public DeviceManagementRequest deviceManagement() {
return new DeviceManagementRequest(contextPath.addSegment("deviceManagement"), Optional.empty());
}
public SearchEntityRequest search() {
return new SearchEntityRequest(contextPath.addSegment("search"), Optional.empty());
}
public PlannerRequest planner() {
return new PlannerRequest(contextPath.addSegment("planner"), Optional.empty());
}
public PrintRequest print() {
return new PrintRequest(contextPath.addSegment("print"), Optional.empty());
}
public ExternalRequest external() {
return new ExternalRequest(contextPath.addSegment("external"), Optional.empty());
}
public AppCatalogsRequest appCatalogs() {
return new AppCatalogsRequest(contextPath.addSegment("appCatalogs"), Optional.empty());
}
public TeamworkRequest teamwork() {
return new TeamworkRequest(contextPath.addSegment("teamwork"), Optional.empty());
}
public InformationProtectionRequest informationProtection() {
return new InformationProtectionRequest(contextPath.addSegment("informationProtection"), Optional.empty());
}
public EmployeeExperienceRequest employeeExperience() {
return new EmployeeExperienceRequest(contextPath.addSegment("employeeExperience"), Optional.empty());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy