Search Results for

    Show / Hide Table of Contents

    Class GraphClient

    Inheritance
    object
    RESTClient
    ApiClient<GraphClient, string, GraphClientSettings>
    GraphClient
    Implements
    IApiClient
    Inherited Members
    ApiClient<GraphClient, string, GraphClientSettings>.DefaultInstance
    ApiClient<GraphClient, string, GraphClientSettings>.Name
    ApiClient<GraphClient, string, GraphClientSettings>.BaseUrl
    ApiClient<GraphClient, string, GraphClientSettings>.Api
    ApiClient<GraphClient, string, GraphClientSettings>.BaseRequestParameters
    ApiClient<GraphClient, string, GraphClientSettings>.AdditionalHeaders
    ApiClient<GraphClient, string, GraphClientSettings>.RequiresApiKey
    ApiClient<GraphClient, string, GraphClientSettings>.Settings
    ApiClient<GraphClient, string, GraphClientSettings>.POSTAsync<TBody, TResponse>(ICrudService, string, TBody, RequestOptions, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.POSTAsync<TBody>(ICrudService, string, TBody, RequestOptions, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.POSTAsync<TResponse>(ICrudService, string, RequestOptions, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.GETAsync(ICrudService, string, RequestOptions, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.GETAsync<TResponse>(ICrudService, string, RequestOptions, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.PUTAsync<TBody>(ICrudService, string, TBody, RequestOptions, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.PATCHAsync<TResponse>(ICrudService, string, RequestOptions, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.DELETEAsync<TBody, TStatus>(ICrudService, string, TBody, RequestOptions, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.DELETEAsync<TStatus>(ICrudService, string, RequestOptions, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.DELETEAsync(ICrudService, string, RequestOptions, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.STREAMAsync<TBody, TDelta, TResult>(ICrudService, string, TBody, RequestOptions, IStreamPipeline<string, TDelta, TResult>, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.STREAMAsync<TBody, TDelta, TResult>(ICrudService, string, TBody, RequestOptions, IStreamPipeline<PooledBytes, TDelta, TResult>, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.STREAMAsync<TDelta, TResult>(ICrudService, string, RequestOptions, IStreamPipeline<string, TDelta, TResult>, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.STREAMAsync<TDelta, TResult>(ICrudService, string, RequestOptions, IStreamPipeline<PooledBytes, TDelta, TResult>, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.DownloadAsync(ICrudService, string, RequestOptions, params RequestParameter[])
    ApiClient<GraphClient, string, GraphClientSettings>.ValidateAuthAsync()
    ApiClient<GraphClient, string, GraphClientSettings>.ValidateEndpointAsync(string)
    RESTClient.Jss
    RESTClient.Xss
    RESTClient.Logger
    RESTClient.LogOptions
    RESTClient.Timeout
    RESTClient.ExceptionParser
    RESTClient.ExceptionHandler
    RESTClient.MaxRetryCount
    RESTClient.RetryDelaySeconds
    RESTClient.MaxRetryDelaySeconds
    RESTClient.DefaultFileMimeType
    RESTClient.DefaultDownloadDirectoryPath
    RESTClient.SetOnetimeLogOptions(CurlLogOptions)
    RESTClient.POSTAsync(RESTRequest)
    RESTClient.POSTAsync<T>(RESTRequest)
    RESTClient.PUTAsync(RESTRequest)
    RESTClient.PUTAsync<T>(RESTRequest)
    RESTClient.GETAsync<T>(RESTRequest)
    RESTClient.GETAsync(RESTRequest)
    RESTClient.DELETEAsync<T>(RESTRequest)
    RESTClient.DELETEAsync(RESTRequest)
    RESTClient.HEADAsync(RESTRequest)
    RESTClient.HEADAsync<T>(RESTRequest)
    RESTClient.PATCHAsync(RESTRequest)
    RESTClient.PATCHAsync<T>(RESTRequest)
    RESTClient.STREAMAsync<TDelta, TResult>(RESTRequest, IStreamPipeline<string, TDelta, TResult>, string)
    RESTClient.STREAMAsync<TDelta, TResult>(RESTRequest, IStreamPipeline<PooledBytes, TDelta, TResult>, string)
    RESTClient.DOWNLOADAsync(RESTRequest)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Microsoft.Graph
    Assembly: Glitch9.AIDevKit.Provider.Microsoft.Graph.dll
    Syntax
    public sealed class GraphClient : ApiClient<GraphClient, string, GraphClientSettings>, IApiClient

    Constructors

    | Edit this page View Source

    GraphClient()

    Declaration
    public GraphClient()

    Properties

    | Edit this page View Source

    Calendars

    Declaration
    public CalendarService Calendars { get; }
    Property Value
    Type Description
    CalendarService
    | Edit this page View Source

    DeltaSyncs

    Declaration
    public DeltaSyncService DeltaSyncs { get; }
    Property Value
    Type Description
    DeltaSyncService
    | Edit this page View Source

    DriveItems

    Declaration
    public DriveItemService DriveItems { get; }
    Property Value
    Type Description
    DriveItemService
    | Edit this page View Source

    Drives

    Declaration
    public DriveService Drives { get; }
    Property Value
    Type Description
    DriveService
    | Edit this page View Source

    Mails

    Declaration
    public MailService Mails { get; }
    Property Value
    Type Description
    MailService
    | Edit this page View Source

    OAuth

    Declaration
    public OAuthService OAuth { get; }
    Property Value
    Type Description
    OAuthService
    | Edit this page View Source

    Sites

    Declaration
    public SiteService Sites { get; }
    Property Value
    Type Description
    SiteService
    | Edit this page View Source

    Todos

    Declaration
    public TodoService Todos { get; }
    Property Value
    Type Description
    TodoService

    Methods

    | Edit this page View Source

    DELETEAsync(ICrudService, string, bool, CancellationToken)

    Declaration
    public UniTask<RESTResponse> DELETEAsync(ICrudService service, string url, bool removeAuthHeaderOnRedirect, CancellationToken ct = default)
    Parameters
    Type Name Description
    ICrudService service
    string url
    bool removeAuthHeaderOnRedirect
    CancellationToken ct
    Returns
    Type Description
    UniTask<RESTResponse>
    | Edit this page View Source

    DELETEAsync<TStatus>(ICrudService, string, bool, CancellationToken)

    Declaration
    public UniTask<TStatus> DELETEAsync<TStatus>(ICrudService service, string url, bool removeAuthHeaderOnRedirect, CancellationToken ct = default) where TStatus : class, IDeletionStatus
    Parameters
    Type Name Description
    ICrudService service
    string url
    bool removeAuthHeaderOnRedirect
    CancellationToken ct
    Returns
    Type Description
    UniTask<TStatus>
    Type Parameters
    Name Description
    TStatus
    | Edit this page View Source

    DELETEAsync<TBody, TStatus>(ICrudService, string, TBody, bool, CancellationToken)

    Declaration
    public UniTask<TStatus> DELETEAsync<TBody, TStatus>(ICrudService service, string url, TBody body, bool removeAuthHeaderOnRedirect, CancellationToken ct = default) where TStatus : class, IDeletionStatus
    Parameters
    Type Name Description
    ICrudService service
    string url
    TBody body
    bool removeAuthHeaderOnRedirect
    CancellationToken ct
    Returns
    Type Description
    UniTask<TStatus>
    Type Parameters
    Name Description
    TBody
    TStatus
    | Edit this page View Source

    DownloadAsync(ICrudService, string, RequestOptions)

    Declaration
    public UniTask DownloadAsync(ICrudService service, string url, RequestOptions options = null)
    Parameters
    Type Name Description
    ICrudService service
    string url
    RequestOptions options
    Returns
    Type Description
    UniTask
    | Edit this page View Source

    GETAsync(ICrudService, string, IRequestParameterProvider, bool, CancellationToken)

    Declaration
    public UniTask<RESTResponse> GETAsync(ICrudService service, string url, IRequestParameterProvider query, bool removeAuthHeaderOnRedirect, CancellationToken ct = default)
    Parameters
    Type Name Description
    ICrudService service
    string url
    IRequestParameterProvider query
    bool removeAuthHeaderOnRedirect
    CancellationToken ct
    Returns
    Type Description
    UniTask<RESTResponse>
    | Edit this page View Source

    GETAsync<TResponse>(ICrudService, string, IRequestParameterProvider, bool, CancellationToken)

    Declaration
    public UniTask<TResponse> GETAsync<TResponse>(ICrudService service, string url, IRequestParameterProvider query, bool removeAuthHeaderOnRedirect, CancellationToken ct = default)
    Parameters
    Type Name Description
    ICrudService service
    string url
    IRequestParameterProvider query
    bool removeAuthHeaderOnRedirect
    CancellationToken ct
    Returns
    Type Description
    UniTask<TResponse>
    Type Parameters
    Name Description
    TResponse
    | Edit this page View Source

    GETAsync<TResponse>(ICrudService, string, CancellationToken)

    Declaration
    public UniTask<TResponse> GETAsync<TResponse>(ICrudService service, string url, CancellationToken ct)
    Parameters
    Type Name Description
    ICrudService service
    string url
    CancellationToken ct
    Returns
    Type Description
    UniTask<TResponse>
    Type Parameters
    Name Description
    TResponse
    | Edit this page View Source

    GetClientSettings()

    Declaration
    protected override GraphClientSettings GetClientSettings()
    Returns
    Type Description
    GraphClientSettings
    Overrides
    ApiClient<GraphClient, string, GraphClientSettings>.GetClientSettings()
    | Edit this page View Source

    ListNextPageAsync<T>(string, CancellationToken)

    Convenience: fetch next page via @odata.nextLink.

    Declaration
    public UniTask<GraphCollectionResponse<T>> ListNextPageAsync<T>(string nextLink, CancellationToken ct = default)
    Parameters
    Type Name Description
    string nextLink
    CancellationToken ct
    Returns
    Type Description
    UniTask<GraphCollectionResponse<T>>
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    PATCHAsync<TResponse>(ICrudService, string, bool, CancellationToken)

    Declaration
    public UniTask<TResponse> PATCHAsync<TResponse>(ICrudService service, string url, bool removeAuthHeaderOnRedirect, CancellationToken ct = default)
    Parameters
    Type Name Description
    ICrudService service
    string url
    bool removeAuthHeaderOnRedirect
    CancellationToken ct
    Returns
    Type Description
    UniTask<TResponse>
    Type Parameters
    Name Description
    TResponse
    | Edit this page View Source

    PATCHAsync<TBody>(ICrudService, string, TBody, bool, CancellationToken)

    Declaration
    public UniTask<RESTResponse> PATCHAsync<TBody>(ICrudService service, string url, TBody body, bool removeAuthHeaderOnRedirect, CancellationToken ct = default)
    Parameters
    Type Name Description
    ICrudService service
    string url
    TBody body
    bool removeAuthHeaderOnRedirect
    CancellationToken ct
    Returns
    Type Description
    UniTask<RESTResponse>
    Type Parameters
    Name Description
    TBody
    | Edit this page View Source

    PATCHAsync<TBody, TResponse>(ICrudService, string, TBody, bool, CancellationToken)

    Declaration
    public UniTask<TResponse> PATCHAsync<TBody, TResponse>(ICrudService service, string url, TBody body, bool removeAuthHeaderOnRedirect, CancellationToken ct = default)
    Parameters
    Type Name Description
    ICrudService service
    string url
    TBody body
    bool removeAuthHeaderOnRedirect
    CancellationToken ct
    Returns
    Type Description
    UniTask<TResponse>
    Type Parameters
    Name Description
    TBody
    TResponse
    | Edit this page View Source

    POSTAsync<TResponse>(ICrudService, string, bool, CancellationToken)

    Declaration
    public UniTask<TResponse> POSTAsync<TResponse>(ICrudService service, string url, bool removeAuthHeaderOnRedirect, CancellationToken ct = default)
    Parameters
    Type Name Description
    ICrudService service
    string url
    bool removeAuthHeaderOnRedirect
    CancellationToken ct
    Returns
    Type Description
    UniTask<TResponse>
    Type Parameters
    Name Description
    TResponse
    | Edit this page View Source

    POSTAsync<TBody>(ICrudService, string, TBody, bool, CancellationToken)

    Declaration
    public UniTask<RESTResponse> POSTAsync<TBody>(ICrudService service, string url, TBody body, bool removeAuthHeaderOnRedirect, CancellationToken ct = default)
    Parameters
    Type Name Description
    ICrudService service
    string url
    TBody body
    bool removeAuthHeaderOnRedirect
    CancellationToken ct
    Returns
    Type Description
    UniTask<RESTResponse>
    Type Parameters
    Name Description
    TBody
    | Edit this page View Source

    POSTAsync<TBody, TResponse>(ICrudService, string, TBody, bool, CancellationToken)

    Declaration
    public UniTask<TResponse> POSTAsync<TBody, TResponse>(ICrudService service, string url, TBody body, bool removeAuthHeaderOnRedirect, CancellationToken ct = default)
    Parameters
    Type Name Description
    ICrudService service
    string url
    TBody body
    bool removeAuthHeaderOnRedirect
    CancellationToken ct
    Returns
    Type Description
    UniTask<TResponse>
    Type Parameters
    Name Description
    TBody
    TResponse
    | Edit this page View Source

    PUTAsync<TBody>(ICrudService, string, TBody, bool, CancellationToken)

    Declaration
    public UniTask<RESTResponse> PUTAsync<TBody>(ICrudService service, string url, TBody body, bool removeAuthHeaderOnRedirect, CancellationToken ct = default)
    Parameters
    Type Name Description
    ICrudService service
    string url
    TBody body
    bool removeAuthHeaderOnRedirect
    CancellationToken ct
    Returns
    Type Description
    UniTask<RESTResponse>
    Type Parameters
    Name Description
    TBody

    Implements

    IApiClient

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation