assets_guardian.plugins.microsoft365.client

Classes

Microsoft365ClientProvider(config)

Client provider for Microsoft 365 via Microsoft Graph.

class assets_guardian.plugins.microsoft365.client.Microsoft365ClientProvider(config: dict[str, Any])[source]

Bases: IClientProvider

Client provider for Microsoft 365 via Microsoft Graph.

Initialize the client provider with the instance’s configuration dictionary.

health_check() bool[source]

Verifies that the client connection, return True if the remote service is reachable and credentials are valid, else False.

instantiate_client() MicrosoftGraph[source]

Returns a ready-to-use client.

The return type depends on the specific implementation (e.g., GraphServiceClient, requests Session, GitLab client, etc.).