graph_rs_sdk/identity_governance/assignment_policies/
request.rs1use crate::api_default_imports::*;
4
5api_client!(
6 AssignmentPoliciesApiClient,
7 AssignmentPoliciesIdApiClient,
8 ResourceIdentity::AssignmentPolicies
9);
10
11impl AssignmentPoliciesApiClient {
12 post!(
13 doc: "Create assignmentPolicies",
14 name: create_assignment_policies,
15 path: "/assignmentPolicies",
16 body: true
17 );
18 get!(
19 doc: "List assignmentPolicies",
20 name: list_assignment_policies,
21 path: "/assignmentPolicies"
22 );
23 get!(
24 doc: "Get the number of the resource",
25 name: get_assignment_policies_count,
26 path: "/assignmentPolicies/$count"
27 );
28}
29
30impl AssignmentPoliciesIdApiClient {
31 delete!(
32 doc: "Delete navigation property assignmentPolicies for identityGovernance",
33 name: delete_assignment_policies,
34 path: "/assignmentPolicies/{{RID}}"
35 );
36 get!(
37 doc: "Get assignmentPolicies from identityGovernance",
38 name: get_assignment_policies,
39 path: "/assignmentPolicies/{{RID}}"
40 );
41 put!(
42 doc: "Update the navigation property assignmentPolicies in identityGovernance",
43 name: update_assignment_policies,
44 path: "/assignmentPolicies/{{RID}}",
45 body: true
46 );
47 get!(
48 doc: "Get accessPackage from identityGovernance",
49 name: get_access_package,
50 path: "/assignmentPolicies/{{RID}}/accessPackage"
51 );
52 get!(
53 doc: "Get catalog from identityGovernance",
54 name: get_catalog,
55 path: "/assignmentPolicies/{{RID}}/catalog"
56 );
57 post!(
58 doc: "Create new navigation property to questions for identityGovernance",
59 name: create_questions,
60 path: "/assignmentPolicies/{{RID}}/questions",
61 body: true
62 );
63 get!(
64 doc: "Get questions from identityGovernance",
65 name: list_questions,
66 path: "/assignmentPolicies/{{RID}}/questions"
67 );
68 get!(
69 doc: "Get the number of the resource",
70 name: get_questions_count,
71 path: "/assignmentPolicies/{{RID}}/questions/$count"
72 );
73 delete!(
74 doc: "Delete navigation property questions for identityGovernance",
75 name: delete_questions,
76 path: "/assignmentPolicies/{{RID}}/questions/{{id}}",
77 params: access_package_question_id
78 );
79 get!(
80 doc: "Get questions from identityGovernance",
81 name: get_questions,
82 path: "/assignmentPolicies/{{RID}}/questions/{{id}}",
83 params: access_package_question_id
84 );
85 patch!(
86 doc: "Update the navigation property questions in identityGovernance",
87 name: update_questions,
88 path: "/assignmentPolicies/{{RID}}/questions/{{id}}",
89 body: true,
90 params: access_package_question_id
91 );
92}