graph_rs_sdk/sites/term_store_sets_terms/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4
5api_client!(
6    TermStoreSetsTermsApiClient,
7    TermStoreSetsTermsIdApiClient,
8    ResourceIdentity::TermStoreSetsTerms
9);
10
11impl TermStoreSetsTermsApiClient {
12    post!(
13        doc: "Create new navigation property to terms for sites",
14        name: create_terms,
15        path: "/terms",
16        body: true
17    );
18    get!(
19        doc: "Get terms from sites",
20        name: list_terms,
21        path: "/terms"
22    );
23    get!(
24        doc: "Get the number of the resource",
25        name: get_terms_count,
26        path: "/terms/$count"
27    );
28}
29
30impl TermStoreSetsTermsIdApiClient {
31    delete!(
32        doc: "Delete navigation property terms for sites",
33        name: delete_terms,
34        path: "/terms/{{RID}}"
35    );
36    get!(
37        doc: "Get terms from sites",
38        name: get_terms,
39        path: "/terms/{{RID}}"
40    );
41    patch!(
42        doc: "Update the navigation property terms in sites",
43        name: update_terms,
44        path: "/terms/{{RID}}",
45        body: true
46    );
47    get!(
48        doc: "Get set from sites",
49        name: get_set,
50        path: "/terms/{{RID}}/set"
51    );
52}