1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// GENERATED CODE

use crate::api_default_imports::*;
use graph_http::types::NoContent;

register_client!(TasksRequest,);
register_client!(TasksIdRequest, ());

impl<'a, Client> TasksRequest<'a, Client>
where
    Client: graph_http::RequestClient,
{
    post!({
        doc: "Create new navigation property to tasks",
        name: create_tasks,
        response: serde_json::Value,
        path: "tasks",
        has_body: true
    });
    get!({
        doc: "Get tasks",
        name: list_tasks,
        response: serde_json::Value,
        path: "tasks",
        has_body: false
    });
}

impl<'a, Client> TasksIdRequest<'a, Client>
where
    Client: graph_http::RequestClient,
{
    delete!({
        doc: "Delete navigation property tasks",
        name: delete_tasks,
        response: NoContent,
        path: "tasks/{{RID}}",
        has_body: false
    });
    patch!({
        doc: "Update the navigation property tasks",
        name: update_tasks,
        response: NoContent,
        path: "tasks/{{RID}}",
        has_body: true
    });
    get!({
        doc: "Get tasks",
        name: get_tasks,
        response: serde_json::Value,
        path: "tasks/{{RID}}",
        has_body: false
    });
    patch!({
        doc: "Update the navigation property assignedToTaskBoardFormat",
        name: update_assigned_to_task_board_format,
        response: NoContent,
        path: "tasks/{{RID}}/assignedToTaskBoardFormat",
        has_body: true
    });
    delete!({
        doc: "Delete navigation property assignedToTaskBoardFormat",
        name: delete_assigned_to_task_board_format,
        response: NoContent,
        path: "tasks/{{RID}}/assignedToTaskBoardFormat",
        has_body: false
    });
    get!({
        doc: "Get assignedToTaskBoardFormat",
        name: get_assigned_to_task_board_format,
        response: serde_json::Value,
        path: "tasks/{{RID}}/assignedToTaskBoardFormat",
        has_body: false
    });
    get!({
        doc: "Get bucketTaskBoardFormat",
        name: get_bucket_task_board_format,
        response: serde_json::Value,
        path: "tasks/{{RID}}/bucketTaskBoardFormat",
        has_body: false
    });
    patch!({
        doc: "Update the navigation property bucketTaskBoardFormat",
        name: update_bucket_task_board_format,
        response: NoContent,
        path: "tasks/{{RID}}/bucketTaskBoardFormat",
        has_body: true
    });
    delete!({
        doc: "Delete navigation property bucketTaskBoardFormat",
        name: delete_bucket_task_board_format,
        response: NoContent,
        path: "tasks/{{RID}}/bucketTaskBoardFormat",
        has_body: false
    });
    patch!({
        doc: "Update the navigation property details",
        name: update_details,
        response: NoContent,
        path: "tasks/{{RID}}/details",
        has_body: true
    });
    get!({
        doc: "Get details",
        name: get_details,
        response: serde_json::Value,
        path: "tasks/{{RID}}/details",
        has_body: false
    });
    delete!({
        doc: "Delete navigation property details",
        name: delete_details,
        response: NoContent,
        path: "tasks/{{RID}}/details",
        has_body: false
    });
    delete!({
        doc: "Delete navigation property progressTaskBoardFormat",
        name: delete_progress_task_board_format,
        response: NoContent,
        path: "tasks/{{RID}}/progressTaskBoardFormat",
        has_body: false
    });
    get!({
        doc: "Get progressTaskBoardFormat",
        name: get_progress_task_board_format,
        response: serde_json::Value,
        path: "tasks/{{RID}}/progressTaskBoardFormat",
        has_body: false
    });
    patch!({
        doc: "Update the navigation property progressTaskBoardFormat",
        name: update_progress_task_board_format,
        response: NoContent,
        path: "tasks/{{RID}}/progressTaskBoardFormat",
        has_body: true
    });
}