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

use crate::api_default_imports::*;
use crate::device_app_management::*;

resource_api_client!(
    ManagedAppRegistrationsApiClient,
    ManagedAppRegistrationsIdApiClient,
    ResourceIdentity::ManagedAppRegistrations
);

impl ManagedAppRegistrationsApiClient {
    api_client_link!(
        applied_policies,
        ManagedAppRegistrationsAppliedPoliciesApiClient
    );
    api_client_link_id!(
        intended_policies_id,
        ManagedAppRegistrationsIntendedPoliciesIdApiClient
    );
    api_client_link!(
        intended_policies,
        ManagedAppRegistrationsIntendedPoliciesApiClient
    );
    api_client_link_id!(
        applied_policies_id,
        ManagedAppRegistrationsAppliedPoliciesIdApiClient
    );

    post!(
        doc: "Create new navigation property to managedAppRegistrations for deviceAppManagement",
        name: create_managed_app_registrations,
        path: "/managedAppRegistrations",
        body: true
    );
    get!(
        doc: "Get managedAppRegistrations from deviceAppManagement",
        name: list_managed_app_registrations,
        path: "/managedAppRegistrations"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_managed_app_registrations_count,
        path: "/managedAppRegistrations/$count"
    );
    get!(
        doc: "Invoke function getUserIdsWithFlaggedAppRegistration",
        name: get_user_ids_with_flagged_app_registration,
        path: "/managedAppRegistrations/getUserIdsWithFlaggedAppRegistration()"
    );
}

impl ManagedAppRegistrationsIdApiClient {
    api_client_link_id!(
        intended_policies_id,
        ManagedAppRegistrationsIntendedPoliciesIdApiClient
    );
    api_client_link!(
        applied_policies,
        ManagedAppRegistrationsAppliedPoliciesApiClient
    );
    api_client_link_id!(
        applied_policies_id,
        ManagedAppRegistrationsAppliedPoliciesIdApiClient
    );
    api_client_link!(
        intended_policies,
        ManagedAppRegistrationsIntendedPoliciesApiClient
    );

    delete!(
        doc: "Delete navigation property managedAppRegistrations for deviceAppManagement",
        name: delete_managed_app_registrations,
        path: "/managedAppRegistrations/{{RID}}"
    );
    get!(
        doc: "Get managedAppRegistrations from deviceAppManagement",
        name: get_managed_app_registrations,
        path: "/managedAppRegistrations/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property managedAppRegistrations in deviceAppManagement",
        name: update_managed_app_registrations,
        path: "/managedAppRegistrations/{{RID}}",
        body: true
    );
    post!(
        doc: "Create new navigation property to operations for deviceAppManagement",
        name: create_operations,
        path: "/managedAppRegistrations/{{RID}}/operations",
        body: true
    );
    get!(
        doc: "Get operations from deviceAppManagement",
        name: list_operations,
        path: "/managedAppRegistrations/{{RID}}/operations"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_operations_count,
        path: "/managedAppRegistrations/{{RID}}/operations/$count"
    );
    delete!(
        doc: "Delete navigation property operations for deviceAppManagement",
        name: delete_operations,
        path: "/managedAppRegistrations/{{RID}}/operations/{{id}}",
        params: managed_app_operation_id
    );
    get!(
        doc: "Get operations from deviceAppManagement",
        name: get_operations,
        path: "/managedAppRegistrations/{{RID}}/operations/{{id}}",
        params: managed_app_operation_id
    );
    patch!(
        doc: "Update the navigation property operations in deviceAppManagement",
        name: update_operations,
        path: "/managedAppRegistrations/{{RID}}/operations/{{id}}",
        body: true,
        params: managed_app_operation_id
    );
}