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
// GENERATED CODE

use crate::api_default_imports::*;

api_client!(
    RoleDefinitionsApiClient,
    RoleDefinitionsIdApiClient,
    ResourceIdentity::RoleDefinitions
);

impl RoleDefinitionsApiClient {
    post!(
        doc: "Create new navigation property to roleDefinitions for deviceManagement",
        name: create_role_definitions,
        path: "/roleDefinitions",
        body: true
    );
    get!(
        doc: "Get roleDefinitions from deviceManagement",
        name: list_role_definitions,
        path: "/roleDefinitions"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_role_definitions_count,
        path: "/roleDefinitions/$count"
    );
}

impl RoleDefinitionsIdApiClient {
    delete!(
        doc: "Delete navigation property roleDefinitions for deviceManagement",
        name: delete_role_definitions,
        path: "/roleDefinitions/{{RID}}"
    );
    get!(
        doc: "Get roleDefinitions from deviceManagement",
        name: get_role_definitions,
        path: "/roleDefinitions/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property roleDefinitions in deviceManagement",
        name: update_role_definitions,
        path: "/roleDefinitions/{{RID}}",
        body: true
    );
    post!(
        doc: "Create new navigation property to roleAssignments for deviceManagement",
        name: create_role_assignments,
        path: "/roleDefinitions/{{RID}}/roleAssignments",
        body: true
    );
    get!(
        doc: "Get roleAssignments from deviceManagement",
        name: list_role_assignments,
        path: "/roleDefinitions/{{RID}}/roleAssignments"
    );
    get!(
        doc: "Get the number of the resource",
        name: count,
        path: "/roleDefinitions/{{RID}}/roleAssignments/$count"
    );
    delete!(
        doc: "Delete navigation property roleAssignments for deviceManagement",
        name: delete_role_assignments,
        path: "/roleDefinitions/{{RID}}/roleAssignments/{{id}}",
        params: role_assignment_id
    );
    get!(
        doc: "Get roleAssignments from deviceManagement",
        name: get_role_assignments,
        path: "/roleDefinitions/{{RID}}/roleAssignments/{{id}}",
        params: role_assignment_id
    );
    patch!(
        doc: "Update the navigation property roleAssignments in deviceManagement",
        name: update_role_assignments,
        path: "/roleDefinitions/{{RID}}/roleAssignments/{{id}}",
        body: true,
        params: role_assignment_id
    );
    get!(
        doc: "Get roleDefinition from deviceManagement",
        name: get_role_definition,
        path: "/roleDefinitions/{{RID}}/roleAssignments/{{id}}/roleDefinition",
        params: role_assignment_id
    );
}