graph_rs_sdk/domains/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4
5api_client!(
6    DomainsApiClient,
7    DomainsIdApiClient,
8    ResourceIdentity::Domains
9);
10
11impl DomainsApiClient {
12    post!(
13        doc: "Create domain",
14        name: create_domain,
15        path: "/domains",
16        body: true
17    );
18    get!(
19        doc: "List domains",
20        name: list_domain,
21        path: "/domains"
22    );
23    get!(
24        doc: "Get the number of the resource",
25        name: get_domains_count,
26        path: "/domains/$count"
27    );
28}
29
30impl DomainsIdApiClient {
31    delete!(
32        doc: "Delete domain",
33        name: delete_domain,
34        path: "/domains/{{RID}}"
35    );
36    get!(
37        doc: "Get domain",
38        name: get_domain,
39        path: "/domains/{{RID}}"
40    );
41    patch!(
42        doc: "Update domain",
43        name: update_domain,
44        path: "/domains/{{RID}}",
45        body: true
46    );
47    get!(
48        doc: "List domainNameReferences",
49        name: list_domain_name_references,
50        path: "/domains/{{RID}}/domainNameReferences"
51    );
52    get!(
53        doc: "Get the number of the resource",
54        name: get_domain_name_references_count,
55        path: "/domains/{{RID}}/domainNameReferences/$count"
56    );
57    get!(
58        doc: "Get domainNameReferences from domains",
59        name: get_domain_name_references,
60        path: "/domains/{{RID}}/domainNameReferences/{{id}}",
61        params: directory_object_id
62    );
63    post!(
64        doc: "Create federationConfiguration",
65        name: create_federation_configuration,
66        path: "/domains/{{RID}}/federationConfiguration",
67        body: true
68    );
69    get!(
70        doc: "Get federationConfiguration from domains",
71        name: list_federation_configuration,
72        path: "/domains/{{RID}}/federationConfiguration"
73    );
74    get!(
75        doc: "Get the number of the resource",
76        name: get_federation_configuration_count,
77        path: "/domains/{{RID}}/federationConfiguration/$count"
78    );
79    delete!(
80        doc: "Delete navigation property federationConfiguration for domains",
81        name: delete_federation_configuration,
82        path: "/domains/{{RID}}/federationConfiguration/{{id}}",
83        params: internal_domain_federation_id
84    );
85    get!(
86        doc: "Get federationConfiguration from domains",
87        name: get_federation_configuration,
88        path: "/domains/{{RID}}/federationConfiguration/{{id}}",
89        params: internal_domain_federation_id
90    );
91    patch!(
92        doc: "Update the navigation property federationConfiguration in domains",
93        name: update_federation_configuration,
94        path: "/domains/{{RID}}/federationConfiguration/{{id}}",
95        body: true,
96        params: internal_domain_federation_id
97    );
98    post!(
99        doc: "Invoke action forceDelete",
100        name: force_delete,
101        path: "/domains/{{RID}}/forceDelete",
102        body: true
103    );
104    post!(
105        doc: "Invoke action promote",
106        name: promote,
107        path: "/domains/{{RID}}/promote"
108    );
109    post!(
110        doc: "Create new navigation property to serviceConfigurationRecords for domains",
111        name: create_service_configuration_records,
112        path: "/domains/{{RID}}/serviceConfigurationRecords",
113        body: true
114    );
115    get!(
116        doc: "List serviceConfigurationRecords",
117        name: list_service_configuration_records,
118        path: "/domains/{{RID}}/serviceConfigurationRecords"
119    );
120    get!(
121        doc: "Get the number of the resource",
122        name: get_service_configuration_records_count,
123        path: "/domains/{{RID}}/serviceConfigurationRecords/$count"
124    );
125    delete!(
126        doc: "Delete navigation property serviceConfigurationRecords for domains",
127        name: delete_service_configuration_records,
128        path: "/domains/{{RID}}/serviceConfigurationRecords/{{id}}",
129        params: domain_dns_record_id
130    );
131    get!(
132        doc: "Get serviceConfigurationRecords from domains",
133        name: get_service_configuration_records,
134        path: "/domains/{{RID}}/serviceConfigurationRecords/{{id}}",
135        params: domain_dns_record_id
136    );
137    patch!(
138        doc: "Update the navigation property serviceConfigurationRecords in domains",
139        name: update_service_configuration_records,
140        path: "/domains/{{RID}}/serviceConfigurationRecords/{{id}}",
141        body: true,
142        params: domain_dns_record_id
143    );
144    post!(
145        doc: "Create new navigation property to verificationDnsRecords for domains",
146        name: create_verification_dns_records,
147        path: "/domains/{{RID}}/verificationDnsRecords",
148        body: true
149    );
150    get!(
151        doc: "List verificationDnsRecords",
152        name: list_verification_dns_records,
153        path: "/domains/{{RID}}/verificationDnsRecords"
154    );
155    get!(
156        doc: "Get the number of the resource",
157        name: get_verification_dns_records_count,
158        path: "/domains/{{RID}}/verificationDnsRecords/$count"
159    );
160    delete!(
161        doc: "Delete navigation property verificationDnsRecords for domains",
162        name: delete_verification_dns_records,
163        path: "/domains/{{RID}}/verificationDnsRecords/{{id}}",
164        params: domain_dns_record_id
165    );
166    get!(
167        doc: "Get verificationDnsRecords from domains",
168        name: get_verification_dns_records,
169        path: "/domains/{{RID}}/verificationDnsRecords/{{id}}",
170        params: domain_dns_record_id
171    );
172    patch!(
173        doc: "Update the navigation property verificationDnsRecords in domains",
174        name: update_verification_dns_records,
175        path: "/domains/{{RID}}/verificationDnsRecords/{{id}}",
176        body: true,
177        params: domain_dns_record_id
178    );
179    post!(
180        doc: "Invoke action verify",
181        name: verify,
182        path: "/domains/{{RID}}/verify"
183    );
184}