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::users::*;

api_client!(
    CalendarGroupsApiClient,
    CalendarGroupsIdApiClient,
    ResourceIdentity::CalendarGroups
);

impl CalendarGroupsApiClient {
    post!(
        doc: "Create CalendarGroup",
        name: create_calendar_groups,
        path: "/calendarGroups",
        body: true
    );
    get!(
        doc: "List calendarGroups",
        name: list_calendar_groups,
        path: "/calendarGroups"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_calendar_groups_count,
        path: "/calendarGroups/$count"
    );
}

impl CalendarGroupsIdApiClient {
    api_client_link!(calendars, CalendarsApiClient);
    api_client_link_id!(calendar, CalendarsIdApiClient);

    delete!(
        doc: "Delete navigation property calendarGroups for users",
        name: delete_calendar_groups,
        path: "/calendarGroups/{{RID}}"
    );
    get!(
        doc: "Get calendarGroups from users",
        name: get_calendar_groups,
        path: "/calendarGroups/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property calendarGroups in users",
        name: update_calendar_groups,
        path: "/calendarGroups/{{RID}}",
        body: true
    );
    post!(
        doc: "Create Calendar",
        name: create_calendars,
        path: "/calendarGroups/{{RID}}/calendars",
        body: true
    );
    get!(
        doc: "List calendars",
        name: list_calendars,
        path: "/calendarGroups/{{RID}}/calendars"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_calendars_count,
        path: "/calendarGroups/{{RID}}/calendars/$count"
    );
    delete!(
        doc: "Delete navigation property calendars for users",
        name: delete_calendars,
        path: "/calendarGroups/{{RID}}/calendars/{{id}}",
        params: calendar_id
    );
    get!(
        doc: "Get calendars from users",
        name: get_calendars,
        path: "/calendarGroups/{{RID}}/calendars/{{id}}",
        params: calendar_id
    );
    patch!(
        doc: "Update the navigation property calendars in users",
        name: update_calendars,
        path: "/calendarGroups/{{RID}}/calendars/{{id}}",
        body: true,
        params: calendar_id
    );
    get!(
        doc: "Invoke function allowedCalendarSharingRoles",
        name: allowed_calendar_sharing_roles,
        path: "/calendarGroups/{{RID}}/calendars/{{id}}/allowedCalendarSharingRoles(User='{{id2}}')",
        params: user
    );
    post!(
        doc: "Create calendarPermission",
        name: create_calendar_permissions,
        path: "/calendarGroups/{{RID}}/calendars/{{id}}/calendarPermissions",
        body: true,
        params: calendar_id
    );
    get!(
        doc: "Get calendarPermissions from users",
        name: list_calendar_permissions,
        path: "/calendarGroups/{{RID}}/calendars/{{id}}/calendarPermissions",
        params: calendar_id
    );
    get!(
        doc: "Get the number of the resource",
        name: get_calendar_permissions_count,
        path: "/calendarGroups/{{RID}}/calendars/{{id}}/calendarPermissions/$count",
        params: calendar_id
    );
    delete!(
        doc: "Delete navigation property calendarPermissions for users",
        name: delete_calendar_permissions,
        path: "/calendarGroups/{{RID}}/calendars/{{id}}/calendarPermissions/{{id2}}",
        params: calendar_id, calendar_permission_id
    );
    get!(
        doc: "Get calendarPermissions from users",
        name: get_calendar_permissions,
        path: "/calendarGroups/{{RID}}/calendars/{{id}}/calendarPermissions/{{id2}}",
        params: calendar_id, calendar_permission_id
    );
    patch!(
        doc: "Update the navigation property calendarPermissions in users",
        name: update_calendar_permissions,
        path: "/calendarGroups/{{RID}}/calendars/{{id}}/calendarPermissions/{{id2}}",
        body: true,
        params: calendar_id, calendar_permission_id
    );
    post!(
        doc: "Invoke action getSchedule",
        name: get_schedule,
        path: "/calendarGroups/{{RID}}/calendars/{{id}}/getSchedule",
        body: true,
        params: calendar_id
    );
}