|
5 | 5 | import com.microsoft.graph.admin.configurationmanagement.configurationmonitors.ConfigurationMonitorsRequestBuilder; |
6 | 6 | import com.microsoft.graph.admin.configurationmanagement.configurationsnapshotjobs.ConfigurationSnapshotJobsRequestBuilder; |
7 | 7 | import com.microsoft.graph.admin.configurationmanagement.configurationsnapshots.ConfigurationSnapshotsRequestBuilder; |
8 | | -import com.microsoft.graph.models.ConfigurationManagement; |
9 | | -import com.microsoft.graph.models.odataerrors.ODataError; |
10 | 8 | import com.microsoft.kiota.BaseRequestBuilder; |
11 | | -import com.microsoft.kiota.BaseRequestConfiguration; |
12 | | -import com.microsoft.kiota.HttpMethod; |
13 | | -import com.microsoft.kiota.QueryParameters; |
14 | 9 | import com.microsoft.kiota.RequestAdapter; |
15 | | -import com.microsoft.kiota.RequestInformation; |
16 | | -import com.microsoft.kiota.RequestOption; |
17 | | -import com.microsoft.kiota.serialization.Parsable; |
18 | | -import com.microsoft.kiota.serialization.ParsableFactory; |
19 | | -import java.util.Collection; |
20 | 10 | import java.util.HashMap; |
21 | | -import java.util.Map; |
22 | 11 | import java.util.Objects; |
23 | 12 | /** |
24 | | - * Provides operations to manage the configurationManagement property of the microsoft.graph.admin entity. |
| 13 | + * Builds and executes requests for operations under /admin/configurationManagement |
25 | 14 | */ |
26 | 15 | @jakarta.annotation.Generated("com.microsoft.kiota") |
27 | 16 | public class ConfigurationManagementRequestBuilder extends BaseRequestBuilder { |
@@ -71,203 +60,14 @@ public ConfigurationSnapshotsRequestBuilder configurationSnapshots() { |
71 | 60 | * @param requestAdapter The request adapter to use to execute the requests. |
72 | 61 | */ |
73 | 62 | public ConfigurationManagementRequestBuilder(@jakarta.annotation.Nonnull final HashMap<String, Object> pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { |
74 | | - super(requestAdapter, "{+baseurl}/admin/configurationManagement{?%24expand,%24select}", pathParameters); |
| 63 | + super(requestAdapter, "{+baseurl}/admin/configurationManagement", pathParameters); |
75 | 64 | } |
76 | 65 | /** |
77 | 66 | * Instantiates a new {@link ConfigurationManagementRequestBuilder} and sets the default values. |
78 | 67 | * @param rawUrl The raw URL to use for the request builder. |
79 | 68 | * @param requestAdapter The request adapter to use to execute the requests. |
80 | 69 | */ |
81 | 70 | public ConfigurationManagementRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { |
82 | | - super(requestAdapter, "{+baseurl}/admin/configurationManagement{?%24expand,%24select}", rawUrl); |
83 | | - } |
84 | | - /** |
85 | | - * Delete navigation property configurationManagement for admin |
86 | | - * @throws ODataError When receiving a 4XX or 5XX status code |
87 | | - */ |
88 | | - public void delete() { |
89 | | - delete(null); |
90 | | - } |
91 | | - /** |
92 | | - * Delete navigation property configurationManagement for admin |
93 | | - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
94 | | - * @throws ODataError When receiving a 4XX or 5XX status code |
95 | | - */ |
96 | | - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) { |
97 | | - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); |
98 | | - final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>(); |
99 | | - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); |
100 | | - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); |
101 | | - } |
102 | | - /** |
103 | | - * A container for Tenant Configuration Management (TCM) resources. Read-only. |
104 | | - * @return a {@link ConfigurationManagement} |
105 | | - * @throws ODataError When receiving a 4XX or 5XX status code |
106 | | - */ |
107 | | - @jakarta.annotation.Nullable |
108 | | - public ConfigurationManagement get() { |
109 | | - return get(null); |
110 | | - } |
111 | | - /** |
112 | | - * A container for Tenant Configuration Management (TCM) resources. Read-only. |
113 | | - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
114 | | - * @return a {@link ConfigurationManagement} |
115 | | - * @throws ODataError When receiving a 4XX or 5XX status code |
116 | | - */ |
117 | | - @jakarta.annotation.Nullable |
118 | | - public ConfigurationManagement get(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) { |
119 | | - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); |
120 | | - final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>(); |
121 | | - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); |
122 | | - return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationManagement::createFromDiscriminatorValue); |
123 | | - } |
124 | | - /** |
125 | | - * Update the navigation property configurationManagement in admin |
126 | | - * @param body The request body |
127 | | - * @return a {@link ConfigurationManagement} |
128 | | - * @throws ODataError When receiving a 4XX or 5XX status code |
129 | | - */ |
130 | | - @jakarta.annotation.Nullable |
131 | | - public ConfigurationManagement patch(@jakarta.annotation.Nonnull final ConfigurationManagement body) { |
132 | | - return patch(body, null); |
133 | | - } |
134 | | - /** |
135 | | - * Update the navigation property configurationManagement in admin |
136 | | - * @param body The request body |
137 | | - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
138 | | - * @return a {@link ConfigurationManagement} |
139 | | - * @throws ODataError When receiving a 4XX or 5XX status code |
140 | | - */ |
141 | | - @jakarta.annotation.Nullable |
142 | | - public ConfigurationManagement patch(@jakarta.annotation.Nonnull final ConfigurationManagement body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) { |
143 | | - Objects.requireNonNull(body); |
144 | | - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); |
145 | | - final HashMap<String, ParsableFactory<? extends Parsable>> errorMapping = new HashMap<String, ParsableFactory<? extends Parsable>>(); |
146 | | - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); |
147 | | - return this.requestAdapter.send(requestInfo, errorMapping, ConfigurationManagement::createFromDiscriminatorValue); |
148 | | - } |
149 | | - /** |
150 | | - * Delete navigation property configurationManagement for admin |
151 | | - * @return a {@link RequestInformation} |
152 | | - */ |
153 | | - @jakarta.annotation.Nonnull |
154 | | - public RequestInformation toDeleteRequestInformation() { |
155 | | - return toDeleteRequestInformation(null); |
156 | | - } |
157 | | - /** |
158 | | - * Delete navigation property configurationManagement for admin |
159 | | - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
160 | | - * @return a {@link RequestInformation} |
161 | | - */ |
162 | | - @jakarta.annotation.Nonnull |
163 | | - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<DeleteRequestConfiguration> requestConfiguration) { |
164 | | - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); |
165 | | - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); |
166 | | - requestInfo.headers.tryAdd("Accept", "application/json"); |
167 | | - return requestInfo; |
168 | | - } |
169 | | - /** |
170 | | - * A container for Tenant Configuration Management (TCM) resources. Read-only. |
171 | | - * @return a {@link RequestInformation} |
172 | | - */ |
173 | | - @jakarta.annotation.Nonnull |
174 | | - public RequestInformation toGetRequestInformation() { |
175 | | - return toGetRequestInformation(null); |
176 | | - } |
177 | | - /** |
178 | | - * A container for Tenant Configuration Management (TCM) resources. Read-only. |
179 | | - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
180 | | - * @return a {@link RequestInformation} |
181 | | - */ |
182 | | - @jakarta.annotation.Nonnull |
183 | | - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer<GetRequestConfiguration> requestConfiguration) { |
184 | | - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); |
185 | | - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); |
186 | | - requestInfo.headers.tryAdd("Accept", "application/json"); |
187 | | - return requestInfo; |
188 | | - } |
189 | | - /** |
190 | | - * Update the navigation property configurationManagement in admin |
191 | | - * @param body The request body |
192 | | - * @return a {@link RequestInformation} |
193 | | - */ |
194 | | - @jakarta.annotation.Nonnull |
195 | | - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationManagement body) { |
196 | | - return toPatchRequestInformation(body, null); |
197 | | - } |
198 | | - /** |
199 | | - * Update the navigation property configurationManagement in admin |
200 | | - * @param body The request body |
201 | | - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
202 | | - * @return a {@link RequestInformation} |
203 | | - */ |
204 | | - @jakarta.annotation.Nonnull |
205 | | - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ConfigurationManagement body, @jakarta.annotation.Nullable final java.util.function.Consumer<PatchRequestConfiguration> requestConfiguration) { |
206 | | - Objects.requireNonNull(body); |
207 | | - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); |
208 | | - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); |
209 | | - requestInfo.headers.tryAdd("Accept", "application/json"); |
210 | | - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); |
211 | | - return requestInfo; |
212 | | - } |
213 | | - /** |
214 | | - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. |
215 | | - * @param rawUrl The raw URL to use for the request builder. |
216 | | - * @return a {@link ConfigurationManagementRequestBuilder} |
217 | | - */ |
218 | | - @jakarta.annotation.Nonnull |
219 | | - public ConfigurationManagementRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { |
220 | | - Objects.requireNonNull(rawUrl); |
221 | | - return new ConfigurationManagementRequestBuilder(rawUrl, requestAdapter); |
222 | | - } |
223 | | - /** |
224 | | - * Configuration for the request such as headers, query parameters, and middleware options. |
225 | | - */ |
226 | | - @jakarta.annotation.Generated("com.microsoft.kiota") |
227 | | - public class DeleteRequestConfiguration extends BaseRequestConfiguration { |
228 | | - } |
229 | | - /** |
230 | | - * A container for Tenant Configuration Management (TCM) resources. Read-only. |
231 | | - */ |
232 | | - @jakarta.annotation.Generated("com.microsoft.kiota") |
233 | | - public class GetQueryParameters implements QueryParameters { |
234 | | - /** |
235 | | - * Expand related entities |
236 | | - */ |
237 | | - @jakarta.annotation.Nullable |
238 | | - public String[] expand; |
239 | | - /** |
240 | | - * Select properties to be returned |
241 | | - */ |
242 | | - @jakarta.annotation.Nullable |
243 | | - public String[] select; |
244 | | - /** |
245 | | - * Extracts the query parameters into a map for the URI template parsing. |
246 | | - * @return a {@link Map<String, Object>} |
247 | | - */ |
248 | | - @jakarta.annotation.Nonnull |
249 | | - public Map<String, Object> toQueryParameters() { |
250 | | - final Map<String, Object> allQueryParams = new HashMap(); |
251 | | - allQueryParams.put("%24expand", expand); |
252 | | - allQueryParams.put("%24select", select); |
253 | | - return allQueryParams; |
254 | | - } |
255 | | - } |
256 | | - /** |
257 | | - * Configuration for the request such as headers, query parameters, and middleware options. |
258 | | - */ |
259 | | - @jakarta.annotation.Generated("com.microsoft.kiota") |
260 | | - public class GetRequestConfiguration extends BaseRequestConfiguration { |
261 | | - /** |
262 | | - * Request query parameters |
263 | | - */ |
264 | | - @jakarta.annotation.Nullable |
265 | | - public GetQueryParameters queryParameters = new GetQueryParameters(); |
266 | | - } |
267 | | - /** |
268 | | - * Configuration for the request such as headers, query parameters, and middleware options. |
269 | | - */ |
270 | | - @jakarta.annotation.Generated("com.microsoft.kiota") |
271 | | - public class PatchRequestConfiguration extends BaseRequestConfiguration { |
| 71 | + super(requestAdapter, "{+baseurl}/admin/configurationManagement", rawUrl); |
272 | 72 | } |
273 | 73 | } |
0 commit comments