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

use crate::api_default_imports::*;

resource_api_client!(
    SubscriptionsApiClient,
    SubscriptionsIdApiClient,
    ResourceIdentity::Subscriptions
);

impl SubscriptionsApiClient {
    post!(
        doc: "Create subscription",
        name: create_subscription,
        path: "/subscriptions",
        body: true
    );
    get!(
        doc: "List subscriptions",
        name: list_subscription,
        path: "/subscriptions"
    );
}

impl SubscriptionsIdApiClient {
    delete!(
        doc: "Delete subscription",
        name: delete_subscription,
        path: "/subscriptions/{{RID}}"
    );
    get!(
        doc: "Get subscription",
        name: get_subscription,
        path: "/subscriptions/{{RID}}"
    );
    patch!(
        doc: "Update subscription",
        name: update_subscription,
        path: "/subscriptions/{{RID}}",
        body: true
    );
    post!(
        doc: "Invoke action reauthorize",
        name: reauthorize,
        path: "/subscriptions/{{RID}}/reauthorize"
    );
}