Package com.microsoft.graph.requests
Class GraphServiceClient<nativeRequestType>
java.lang.Object
com.microsoft.graph.core.BaseClient<nativeRequestType>
com.microsoft.graph.requests.GraphServiceClient<nativeRequestType>
- Type Parameters:
nativeRequestType
- type of a request for the native http client
- All Implemented Interfaces:
com.microsoft.graph.core.IBaseClient<nativeRequestType>
public class GraphServiceClient<nativeRequestType>
extends com.microsoft.graph.core.BaseClient<nativeRequestType>
implements com.microsoft.graph.core.IBaseClient<nativeRequestType>
The class for the Graph Service Client.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder to help configure the Graph service client -
Field Summary
Fields inherited from class com.microsoft.graph.core.BaseClient
DEFAULT_GRAPH_ENDPOINT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadmin()
Gets the GraphServiceRequestBuilderGets the collection of AgreementAcceptances objectsGets a single AgreementAcceptancesGets the collection of Agreements objectsagreements
(String id) Gets a single AgreementsGets the GraphServiceRequestBuilderGets the collection of Applications objectsapplications
(String id) Gets a single ApplicationsGets the collection of ApplicationTemplates objectsGets a single ApplicationTemplatesGets the GraphServiceRequestBuilderGets the collection of AuthenticationMethodConfigurations objectsGets a single AuthenticationMethodConfigurationsGets the GraphServiceRequestBuilderbranding()
Gets the GraphServiceRequestBuilderstatic GraphServiceClient.Builder<okhttp3.OkHttpClient,
okhttp3.Request> builder()
Gets the builder to start configuring the clientstatic <nativeClient,
nativeRequest>
GraphServiceClient.Builder<nativeClient,nativeRequest> Gets the builder to start configuring the clientGets the collection of CertificateBasedAuthConfiguration objectsGets a single CertificateBasedAuthConfigurationchats()
Gets the collection of Chats objectsGets a single ChatsGets the GraphServiceRequestBuilderGets the GraphServiceRequestBuilderGets the collection of Connections objectsconnections
(String id) Gets a single Connectionscontacts()
Gets the collection of Contacts objectsGets a single ContactsGets the collection of Contracts objectsGets a single ContractsGets the collection of DataPolicyOperations objectsGets a single DataPolicyOperationsGets the GraphServiceRequestBuilderGets the GraphServiceRequestBuilderdevices()
Gets the collection of Devices objectsGets a single DevicesGets the GraphServiceRequestBuilderGets the collection of DirectoryObjects objectsGets a single DirectoryObjectsGets the collection of DirectoryRoles objectsdirectoryRoles
(String id) Gets a single DirectoryRolesGets the collection of DirectoryRoleTemplates objectsGets a single DirectoryRoleTemplatesGets the collection of DomainDnsRecords objectsGets a single DomainDnsRecordsdomains()
Gets the collection of Domains objectsGets a single Domainsdrive()
Gets the GraphServiceRequestBuilderdrives()
Gets the collection of Drives objectsGets a single DrivesGets the GraphServiceRequestBuilderexternal()
Gets the GraphServiceRequestBuilderGets the service SDK version if the service SDK is in use, null otherwiseGets the collection of GroupLifecyclePolicies objectsGets a single GroupLifecyclePoliciesgroups()
Gets the collection of Groups objectsGets a single GroupsGets the collection of GroupSettings objectsgroupSettings
(String id) Gets a single GroupSettingsGets the collection of GroupSettingTemplates objectsGets a single GroupSettingTemplatesidentity()
Gets the GraphServiceRequestBuilderGets the GraphServiceRequestBuilderGets the GraphServiceRequestBuilderDeprecated.The identityProvider API is deprecated and will stop returning data on March 2023.Deprecated.The identityProvider API is deprecated and will stop returning data on March 2023.Gets the GraphServiceRequestBuilderGets the collection of Invitations objectsinvitations
(String id) Gets a single InvitationsGets the collection of Localizations objectslocalizations
(String id) Gets a single Localizationsme()
Gets the GraphServiceRequestBuilderGets the collection of Oauth2PermissionGrants objectsGets a single Oauth2PermissionGrantsGets the collection of Organization objectsorganization
(String id) Gets a single OrganizationGets the collection of PermissionGrants objectsGets a single PermissionGrantsplaces()
Gets the collection of Places objectsGets a single Placesplanner()
Gets the GraphServiceRequestBuilderpolicies()
Gets the GraphServiceRequestBuilderprint()
Gets the GraphServiceRequestBuilderprivacy()
Gets the GraphServiceRequestBuilderreports()
Gets the GraphServiceRequestBuilderGets the GraphServiceRequestBuilderGets the collection of SchemaExtensions objectsGets a single SchemaExtensionsGets the collection of ScopedRoleMemberships objectsGets a single ScopedRoleMembershipssearch()
Gets the GraphServiceRequestBuildersecurity()
Gets the GraphServiceRequestBuilderGets the collection of ServicePrincipals objectsGets a single ServicePrincipalsshares()
Gets the collection of Shares objectsGets a single Sharessites()
Gets the collection of Sites objectsGets a single SitesGets the GraphServiceRequestBuilderGets the collection of SubscribedSkus objectssubscribedSkus
(String id) Gets a single SubscribedSkusGets the collection of Subscriptions objectssubscriptions
(String id) Gets a single Subscriptionsteams()
Gets the collection of Teams objectsGets a single TeamsGets the collection of TeamsTemplates objectsteamsTemplates
(String id) Gets a single TeamsTemplatesteamwork()
Gets the GraphServiceRequestBuilderusers()
Gets the collection of Users objectsGets a single UsersGets the collection of Workbooks objectsGets a single WorkbooksMethods inherited from class com.microsoft.graph.core.BaseClient
batch, customRequest, customRequest, getHttpProvider, getLogger, getSerializer, getServiceRoot, setHttpProvider, setLogger, setSerializer, setServiceRoot
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.microsoft.graph.core.IBaseClient
batch, customRequest, customRequest, getHttpProvider, getLogger, getSerializer, getServiceRoot, setServiceRoot
-
Constructor Details
-
GraphServiceClient
protected GraphServiceClient()Restricted constructor
-
-
Method Details
-
getServiceSDKVersion
Gets the service SDK version if the service SDK is in use, null otherwise- Specified by:
getServiceSDKVersion
in interfacecom.microsoft.graph.core.IBaseClient<nativeRequestType>
- Overrides:
getServiceSDKVersion
in classcom.microsoft.graph.core.BaseClient<nativeRequestType>
- Returns:
- the service SDK version if the service SDK is in use, null otherwise
-
builder
Gets the builder to start configuring the client- Returns:
- builder to start configuring the client
-
builder
@Nonnull public static <nativeClient,nativeRequest> GraphServiceClient.Builder<nativeClient,nativeRequest> builder(@Nonnull Class<nativeClient> nativeClientClass, @Nonnull Class<nativeRequest> nativeRequestClass) Gets the builder to start configuring the client- Type Parameters:
nativeClient
- the type of the native http clientnativeRequest
- the type of the native http request- Parameters:
nativeClientClass
- the class of the native http clientnativeRequestClass
- the class of the native http request- Returns:
- builder to start configuring the client
-
workbooks
Gets the collection of Workbooks objects- Returns:
- the request builder for the collection of Workbooks objects
-
workbooks
Gets a single Workbooks- Parameters:
id
- the id of the Workbooks to retrieve- Returns:
- the request builder for the Workbooks object
-
invitations
Gets the collection of Invitations objects- Returns:
- the request builder for the collection of Invitations objects
-
invitations
Gets a single Invitations- Parameters:
id
- the id of the Invitations to retrieve- Returns:
- the request builder for the Invitations object
-
users
Gets the collection of Users objects- Returns:
- the request builder for the collection of Users objects
-
users
Gets a single Users- Parameters:
id
- the id of the Users to retrieve- Returns:
- the request builder for the Users object
-
applicationTemplates
Gets the collection of ApplicationTemplates objects- Returns:
- the request builder for the collection of ApplicationTemplates objects
-
applicationTemplates
Gets a single ApplicationTemplates- Parameters:
id
- the id of the ApplicationTemplates to retrieve- Returns:
- the request builder for the ApplicationTemplates object
-
authenticationMethodConfigurations
@Nonnull public AuthenticationMethodConfigurationCollectionRequestBuilder authenticationMethodConfigurations()Gets the collection of AuthenticationMethodConfigurations objects- Returns:
- the request builder for the collection of AuthenticationMethodConfigurations objects
-
authenticationMethodConfigurations
@Nonnull public AuthenticationMethodConfigurationRequestBuilder authenticationMethodConfigurations(@Nonnull String id) Gets a single AuthenticationMethodConfigurations- Parameters:
id
- the id of the AuthenticationMethodConfigurations to retrieve- Returns:
- the request builder for the AuthenticationMethodConfigurations object
-
identityProviders
Deprecated.The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API.Gets the collection of IdentityProviders objects- Returns:
- the request builder for the collection of IdentityProviders objects
-
identityProviders
Deprecated.The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API.Gets a single IdentityProviders- Parameters:
id
- the id of the IdentityProviders to retrieve- Returns:
- the request builder for the IdentityProviders object
-
applications
Gets the collection of Applications objects- Returns:
- the request builder for the collection of Applications objects
-
applications
Gets a single Applications- Parameters:
id
- the id of the Applications to retrieve- Returns:
- the request builder for the Applications object
-
certificateBasedAuthConfiguration
@Nonnull public CertificateBasedAuthConfigurationCollectionRequestBuilder certificateBasedAuthConfiguration()Gets the collection of CertificateBasedAuthConfiguration objects- Returns:
- the request builder for the collection of CertificateBasedAuthConfiguration objects
-
certificateBasedAuthConfiguration
@Nonnull public CertificateBasedAuthConfigurationRequestBuilder certificateBasedAuthConfiguration(@Nonnull String id) Gets a single CertificateBasedAuthConfiguration- Parameters:
id
- the id of the CertificateBasedAuthConfiguration to retrieve- Returns:
- the request builder for the CertificateBasedAuthConfiguration object
-
contacts
Gets the collection of Contacts objects- Returns:
- the request builder for the collection of Contacts objects
-
contacts
Gets a single Contacts- Parameters:
id
- the id of the Contacts to retrieve- Returns:
- the request builder for the Contacts object
-
contracts
Gets the collection of Contracts objects- Returns:
- the request builder for the collection of Contracts objects
-
contracts
Gets a single Contracts- Parameters:
id
- the id of the Contracts to retrieve- Returns:
- the request builder for the Contracts object
-
devices
Gets the collection of Devices objects- Returns:
- the request builder for the collection of Devices objects
-
devices
Gets a single Devices- Parameters:
id
- the id of the Devices to retrieve- Returns:
- the request builder for the Devices object
-
directoryObjects
Gets the collection of DirectoryObjects objects- Returns:
- the request builder for the collection of DirectoryObjects objects
-
directoryObjects
Gets a single DirectoryObjects- Parameters:
id
- the id of the DirectoryObjects to retrieve- Returns:
- the request builder for the DirectoryObjects object
-
directoryRoles
Gets the collection of DirectoryRoles objects- Returns:
- the request builder for the collection of DirectoryRoles objects
-
directoryRoles
Gets a single DirectoryRoles- Parameters:
id
- the id of the DirectoryRoles to retrieve- Returns:
- the request builder for the DirectoryRoles object
-
directoryRoleTemplates
Gets the collection of DirectoryRoleTemplates objects- Returns:
- the request builder for the collection of DirectoryRoleTemplates objects
-
directoryRoleTemplates
Gets a single DirectoryRoleTemplates- Parameters:
id
- the id of the DirectoryRoleTemplates to retrieve- Returns:
- the request builder for the DirectoryRoleTemplates object
-
domainDnsRecords
Gets the collection of DomainDnsRecords objects- Returns:
- the request builder for the collection of DomainDnsRecords objects
-
domainDnsRecords
Gets a single DomainDnsRecords- Parameters:
id
- the id of the DomainDnsRecords to retrieve- Returns:
- the request builder for the DomainDnsRecords object
-
domains
Gets the collection of Domains objects- Returns:
- the request builder for the collection of Domains objects
-
domains
Gets a single Domains- Parameters:
id
- the id of the Domains to retrieve- Returns:
- the request builder for the Domains object
-
groups
Gets the collection of Groups objects- Returns:
- the request builder for the collection of Groups objects
-
groups
Gets a single Groups- Parameters:
id
- the id of the Groups to retrieve- Returns:
- the request builder for the Groups object
-
groupSettings
Gets the collection of GroupSettings objects- Returns:
- the request builder for the collection of GroupSettings objects
-
groupSettings
Gets a single GroupSettings- Parameters:
id
- the id of the GroupSettings to retrieve- Returns:
- the request builder for the GroupSettings object
-
groupSettingTemplates
Gets the collection of GroupSettingTemplates objects- Returns:
- the request builder for the collection of GroupSettingTemplates objects
-
groupSettingTemplates
Gets a single GroupSettingTemplates- Parameters:
id
- the id of the GroupSettingTemplates to retrieve- Returns:
- the request builder for the GroupSettingTemplates object
-
localizations
Gets the collection of Localizations objects- Returns:
- the request builder for the collection of Localizations objects
-
localizations
Gets a single Localizations- Parameters:
id
- the id of the Localizations to retrieve- Returns:
- the request builder for the Localizations object
-
oauth2PermissionGrants
Gets the collection of Oauth2PermissionGrants objects- Returns:
- the request builder for the collection of Oauth2PermissionGrants objects
-
oauth2PermissionGrants
Gets a single Oauth2PermissionGrants- Parameters:
id
- the id of the Oauth2PermissionGrants to retrieve- Returns:
- the request builder for the Oauth2PermissionGrants object
-
organization
Gets the collection of Organization objects- Returns:
- the request builder for the collection of Organization objects
-
organization
Gets a single Organization- Parameters:
id
- the id of the Organization to retrieve- Returns:
- the request builder for the Organization object
-
permissionGrants
Gets the collection of PermissionGrants objects- Returns:
- the request builder for the collection of PermissionGrants objects
-
permissionGrants
Gets a single PermissionGrants- Parameters:
id
- the id of the PermissionGrants to retrieve- Returns:
- the request builder for the PermissionGrants object
-
scopedRoleMemberships
Gets the collection of ScopedRoleMemberships objects- Returns:
- the request builder for the collection of ScopedRoleMemberships objects
-
scopedRoleMemberships
Gets a single ScopedRoleMemberships- Parameters:
id
- the id of the ScopedRoleMemberships to retrieve- Returns:
- the request builder for the ScopedRoleMemberships object
-
servicePrincipals
Gets the collection of ServicePrincipals objects- Returns:
- the request builder for the collection of ServicePrincipals objects
-
servicePrincipals
Gets a single ServicePrincipals- Parameters:
id
- the id of the ServicePrincipals to retrieve- Returns:
- the request builder for the ServicePrincipals object
-
subscribedSkus
Gets the collection of SubscribedSkus objects- Returns:
- the request builder for the collection of SubscribedSkus objects
-
subscribedSkus
Gets a single SubscribedSkus- Parameters:
id
- the id of the SubscribedSkus to retrieve- Returns:
- the request builder for the SubscribedSkus object
-
places
Gets the collection of Places objects- Returns:
- the request builder for the collection of Places objects
-
places
Gets a single Places- Parameters:
id
- the id of the Places to retrieve- Returns:
- the request builder for the Places object
-
drives
Gets the collection of Drives objects- Returns:
- the request builder for the collection of Drives objects
-
drives
Gets a single Drives- Parameters:
id
- the id of the Drives to retrieve- Returns:
- the request builder for the Drives object
-
sites
Gets the collection of Sites objects- Returns:
- the request builder for the collection of Sites objects
-
sites
Gets a single Sites- Parameters:
id
- the id of the Sites to retrieve- Returns:
- the request builder for the Sites object
-
schemaExtensions
Gets the collection of SchemaExtensions objects- Returns:
- the request builder for the collection of SchemaExtensions objects
-
schemaExtensions
Gets a single SchemaExtensions- Parameters:
id
- the id of the SchemaExtensions to retrieve- Returns:
- the request builder for the SchemaExtensions object
-
groupLifecyclePolicies
Gets the collection of GroupLifecyclePolicies objects- Returns:
- the request builder for the collection of GroupLifecyclePolicies objects
-
groupLifecyclePolicies
Gets a single GroupLifecyclePolicies- Parameters:
id
- the id of the GroupLifecyclePolicies to retrieve- Returns:
- the request builder for the GroupLifecyclePolicies object
-
agreementAcceptances
Gets the collection of AgreementAcceptances objects- Returns:
- the request builder for the collection of AgreementAcceptances objects
-
agreementAcceptances
Gets a single AgreementAcceptances- Parameters:
id
- the id of the AgreementAcceptances to retrieve- Returns:
- the request builder for the AgreementAcceptances object
-
agreements
Gets the collection of Agreements objects- Returns:
- the request builder for the collection of Agreements objects
-
agreements
Gets a single Agreements- Parameters:
id
- the id of the Agreements to retrieve- Returns:
- the request builder for the Agreements object
-
dataPolicyOperations
Gets the collection of DataPolicyOperations objects- Returns:
- the request builder for the collection of DataPolicyOperations objects
-
dataPolicyOperations
Gets a single DataPolicyOperations- Parameters:
id
- the id of the DataPolicyOperations to retrieve- Returns:
- the request builder for the DataPolicyOperations object
-
subscriptions
Gets the collection of Subscriptions objects- Returns:
- the request builder for the collection of Subscriptions objects
-
subscriptions
Gets a single Subscriptions- Parameters:
id
- the id of the Subscriptions to retrieve- Returns:
- the request builder for the Subscriptions object
-
connections
Gets the collection of Connections objects- Returns:
- the request builder for the collection of Connections objects
-
connections
Gets a single Connections- Parameters:
id
- the id of the Connections to retrieve- Returns:
- the request builder for the Connections object
-
chats
Gets the collection of Chats objects- Returns:
- the request builder for the collection of Chats objects
-
chats
Gets a single Chats- Parameters:
id
- the id of the Chats to retrieve- Returns:
- the request builder for the Chats object
-
teams
Gets the collection of Teams objects- Returns:
- the request builder for the collection of Teams objects
-
teams
Gets a single Teams- Parameters:
id
- the id of the Teams to retrieve- Returns:
- the request builder for the Teams object
-
teamsTemplates
Gets the collection of TeamsTemplates objects- Returns:
- the request builder for the collection of TeamsTemplates objects
-
teamsTemplates
Gets a single TeamsTemplates- Parameters:
id
- the id of the TeamsTemplates to retrieve- Returns:
- the request builder for the TeamsTemplates object
-
auditLogs
Gets the GraphServiceRequestBuilder- Returns:
- the AuditLogRoot
-
authenticationMethodsPolicy
Gets the GraphServiceRequestBuilder- Returns:
- the AuthenticationMethodsPolicy
-
solutions
Gets the GraphServiceRequestBuilder- Returns:
- the SolutionsRoot
-
privacy
Gets the GraphServiceRequestBuilder- Returns:
- the Privacy
-
compliance
Gets the GraphServiceRequestBuilder- Returns:
- the Compliance
-
security
Gets the GraphServiceRequestBuilder- Returns:
- the Security
-
identity
Gets the GraphServiceRequestBuilder- Returns:
- the IdentityContainer
-
branding
Gets the GraphServiceRequestBuilder- Returns:
- the OrganizationalBranding
-
directory
Gets the GraphServiceRequestBuilder- Returns:
- the Directory
-
me
Gets the GraphServiceRequestBuilder- Returns:
- the User
-
policies
Gets the GraphServiceRequestBuilder- Returns:
- the PolicyRoot
-
education
Gets the GraphServiceRequestBuilder- Returns:
- the EducationRoot
-
roleManagement
Gets the GraphServiceRequestBuilder- Returns:
- the RoleManagement
-
drive
Gets the GraphServiceRequestBuilder- Returns:
- the Drive
-
communications
Gets the GraphServiceRequestBuilder- Returns:
- the CloudCommunications
-
identityGovernance
Gets the GraphServiceRequestBuilder- Returns:
- the IdentityGovernance
-
identityProtection
Gets the GraphServiceRequestBuilder- Returns:
- the IdentityProtectionRoot
-
deviceAppManagement
Gets the GraphServiceRequestBuilder- Returns:
- the DeviceAppManagement
-
deviceManagement
Gets the GraphServiceRequestBuilder- Returns:
- the DeviceManagement
-
reports
Gets the GraphServiceRequestBuilder- Returns:
- the ReportRoot
-
admin
Gets the GraphServiceRequestBuilder- Returns:
- the Admin
-
search
Gets the GraphServiceRequestBuilder- Returns:
- the SearchEntity
-
planner
Gets the GraphServiceRequestBuilder- Returns:
- the Planner
-
print
Gets the GraphServiceRequestBuilder- Returns:
- the Print
-
external
Gets the GraphServiceRequestBuilder- Returns:
- the External
-
appCatalogs
Gets the GraphServiceRequestBuilder- Returns:
- the AppCatalogs
-
teamwork
Gets the GraphServiceRequestBuilder- Returns:
- the Teamwork
-
informationProtection
Gets the GraphServiceRequestBuilder- Returns:
- the InformationProtection
-