graph-rs-sdk 3.0.1

Rust SDK Client for Microsoft Graph and Microsoft Identity Platform
// GENERATED CODE

use crate::api_default_imports::*;
use crate::drives::*;

api_client!(DrivesApiClient, DrivesIdApiClient, ResourceIdentity::Drives);

impl DrivesApiClient {
    post!(
        doc: "Add new entity to drives",
        name: create_drive,
        path: "/drives",
        body: true
    );
    get!(
        doc: "Get entities from drives",
        name: list_drive,
        path: "/drives"
    );
}

impl DrivesIdApiClient {
    api_client_link_id!(item, DrivesItemsIdApiClient);
    api_client_link_id!(item_by_path, DrivesItemsPathIdApiClient);
    api_client_link!(worksheets, WorksheetsApiClient);
    api_client_link!(created_by_user, CreatedByUserApiClient);
    api_client_link_id!(worksheet, WorksheetsIdApiClient);
    api_client_link!(items, DrivesItemsApiClient);
    api_client_link!(list, DrivesListApiClient);
    api_client_link!(workbook, WorkbookApiClient);
    api_client_link!(last_modified_by_user, LastModifiedByUserApiClient);

    delete!(
        doc: "Delete entity from drives",
        name: delete_drive,
        path: "/drives/{{RID}}"
    );
    get!(
        doc: "Get entity from drives by key",
        name: get_drive,
        path: "/drives/{{RID}}"
    );
    patch!(
        doc: "Update entity in drives",
        name: update_drive,
        path: "/drives/{{RID}}",
        body: true
    );
    post!(
        doc: "Create new navigation property to bundles for drives",
        name: create_bundles,
        path: "/drives/{{RID}}/bundles",
        body: true
    );
    get!(
        doc: "Get bundles from drives",
        name: list_bundles,
        path: "/drives/{{RID}}/bundles"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_bundles_count,
        path: "/drives/{{RID}}/bundles/$count"
    );
    get!(
        doc: "Get bundles from drives",
        name: get_bundles,
        path: "/drives/{{RID}}/bundles/{{id}}",
        params: drive_item_id
    );
    get!(
        doc: "Get content for the navigation property bundles from drives",
        name: get_bundles_content,
        path: "/drives/{{RID}}/bundles/{{id}}/content",
        params: drive_item_id
    );
    put!(
        doc: "Update content for the navigation property bundles in drives",
        name: update_bundles_content,
        path: "/drives/{{RID}}/bundles/{{id}}/content",
        body: true,
        params: drive_item_id
    );
    get!(
        doc: "List followed items",
        name: list_following,
        path: "/drives/{{RID}}/following"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_following_count,
        path: "/drives/{{RID}}/following/$count"
    );
    get!(
        doc: "Get following from drives",
        name: get_following,
        path: "/drives/{{RID}}/following/{{id}}",
        params: drive_item_id
    );
    get!(
        doc: "Get content for the navigation property following from drives",
        name: get_following_content,
        path: "/drives/{{RID}}/following/{{id}}/content",
        params: drive_item_id
    );
    put!(
        doc: "Update content for the navigation property following in drives",
        name: update_following_content,
        path: "/drives/{{RID}}/following/{{id}}/content",
        body: true,
        params: drive_item_id
    );
    get!(
        doc: "Invoke function recent",
        name: recent,
        path: "/drives/{{RID}}/recent()"
    );
    get!(
        doc: "Get a driveItem resource",
        name: get_root,
        path: "/drives/{{RID}}/root"
    );
    get!(
        doc: "Get content for the navigation property root from drives",
        name: get_root_content,
        path: "/drives/{{RID}}/root/content"
    );
    put!(
        doc: "Update content for the navigation property root in drives",
        name: update_root_content,
        path: "/drives/{{RID}}/root/content",
        body: true
    );
    get!(
        doc: "Invoke function search",
        name: search,
        path: "/drives/{{RID}}/search(q='{{id}}')",
        params: q
    );
    get!(
        doc: "Invoke function sharedWithMe",
        name: shared_with_me,
        path: "/drives/{{RID}}/sharedWithMe()"
    );
    get!(
        doc: "Get a special folder by name",
        name: list_special,
        path: "/drives/{{RID}}/special"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_special_count,
        path: "/drives/{{RID}}/special/$count"
    );
    get!(
        doc: "Get a special folder by name",
        name: get_special,
        path: "/drives/{{RID}}/special/{{id}}",
        params: drive_item_id
    );
    get!(
        doc: "Get content for the navigation property special from drives",
        name: get_special_content,
        path: "/drives/{{RID}}/special/{{id}}/content",
        params: drive_item_id
    );
    put!(
        doc: "Update content for the navigation property special in drives",
        name: update_special_content,
        path: "/drives/{{RID}}/special/{{id}}/content",
        body: true,
        params: drive_item_id
    );
}