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

use crate::api_default_imports::*;

resource_api_client!(
    TermStoreSetsTermsApiClient,
    TermStoreSetsTermsIdApiClient,
    ResourceIdentity::TermStoreSetsTerms
);

impl TermStoreSetsTermsApiClient {
    post!(
        doc: "Create new navigation property to terms for sites",
        name: create_terms,
        path: "/terms",
        body: true
    );
    get!(
        doc: "Get terms from sites",
        name: list_terms,
        path: "/terms"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_terms_count,
        path: "/terms/$count"
    );
}

impl TermStoreSetsTermsIdApiClient {
    delete!(
        doc: "Delete navigation property terms for sites",
        name: delete_terms,
        path: "/terms/{{RID}}"
    );
    get!(
        doc: "Get terms from sites",
        name: get_terms,
        path: "/terms/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property terms in sites",
        name: update_terms,
        path: "/terms/{{RID}}",
        body: true
    );
    get!(
        doc: "Get set from sites",
        name: get_set,
        path: "/terms/{{RID}}/set"
    );
}