graph_rs_sdk/device_app_management/default_managed_app_protections/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4
5api_client!(
6    DefaultManagedAppProtectionsApiClient,
7    DefaultManagedAppProtectionsIdApiClient,
8    ResourceIdentity::DefaultManagedAppProtections
9);
10
11impl DefaultManagedAppProtectionsApiClient {
12    post!(
13        doc: "Create new navigation property to defaultManagedAppProtections for deviceAppManagement",
14        name: create_default_managed_app_protections,
15        path: "/defaultManagedAppProtections",
16        body: true
17    );
18    get!(
19        doc: "Get defaultManagedAppProtections from deviceAppManagement",
20        name: list_default_managed_app_protections,
21        path: "/defaultManagedAppProtections"
22    );
23    get!(
24        doc: "Get the number of the resource",
25        name: get_default_managed_app_protections_count,
26        path: "/defaultManagedAppProtections/$count"
27    );
28}
29
30impl DefaultManagedAppProtectionsIdApiClient {
31    delete!(
32        doc: "Delete navigation property defaultManagedAppProtections for deviceAppManagement",
33        name: delete_default_managed_app_protections,
34        path: "/defaultManagedAppProtections/{{RID}}"
35    );
36    get!(
37        doc: "Get defaultManagedAppProtections from deviceAppManagement",
38        name: get_default_managed_app_protections,
39        path: "/defaultManagedAppProtections/{{RID}}"
40    );
41    patch!(
42        doc: "Update the navigation property defaultManagedAppProtections in deviceAppManagement",
43        name: update_default_managed_app_protections,
44        path: "/defaultManagedAppProtections/{{RID}}",
45        body: true
46    );
47    post!(
48        doc: "Create new navigation property to apps for deviceAppManagement",
49        name: create_apps,
50        path: "/defaultManagedAppProtections/{{RID}}/apps",
51        body: true
52    );
53    get!(
54        doc: "Get apps from deviceAppManagement",
55        name: list_apps,
56        path: "/defaultManagedAppProtections/{{RID}}/apps"
57    );
58    get!(
59        doc: "Get the number of the resource",
60        name: get_apps_count,
61        path: "/defaultManagedAppProtections/{{RID}}/apps/$count"
62    );
63    delete!(
64        doc: "Delete navigation property apps for deviceAppManagement",
65        name: delete_apps,
66        path: "/defaultManagedAppProtections/{{RID}}/apps/{{id}}",
67        params: managed_mobile_app_id
68    );
69    get!(
70        doc: "Get apps from deviceAppManagement",
71        name: get_apps,
72        path: "/defaultManagedAppProtections/{{RID}}/apps/{{id}}",
73        params: managed_mobile_app_id
74    );
75    patch!(
76        doc: "Update the navigation property apps in deviceAppManagement",
77        name: update_apps,
78        path: "/defaultManagedAppProtections/{{RID}}/apps/{{id}}",
79        body: true,
80        params: managed_mobile_app_id
81    );
82    delete!(
83        doc: "Delete navigation property deploymentSummary for deviceAppManagement",
84        name: delete_deployment_summary,
85        path: "/defaultManagedAppProtections/{{RID}}/deploymentSummary"
86    );
87    get!(
88        doc: "Get deploymentSummary from deviceAppManagement",
89        name: get_deployment_summary,
90        path: "/defaultManagedAppProtections/{{RID}}/deploymentSummary"
91    );
92    patch!(
93        doc: "Update the navigation property deploymentSummary in deviceAppManagement",
94        name: update_deployment_summary,
95        path: "/defaultManagedAppProtections/{{RID}}/deploymentSummary",
96        body: true
97    );
98}