@@ -181,6 +181,22 @@ public CompletableFuture<ApiResponse<GetDeviceResponse>> getDeviceWithHttpInfoAs
181
181
new GenericType <GetDeviceResponse >() {});
182
182
}
183
183
184
+ /** Manage optional parameters to getInterfaces. */
185
+ public static class GetInterfacesOptionalParameters {
186
+ private Boolean getIpAddresses ;
187
+
188
+ /**
189
+ * Set getIpAddresses.
190
+ *
191
+ * @param getIpAddresses Whether to get the IP addresses of the interfaces. (optional)
192
+ * @return GetInterfacesOptionalParameters
193
+ */
194
+ public GetInterfacesOptionalParameters getIpAddresses (Boolean getIpAddresses ) {
195
+ this .getIpAddresses = getIpAddresses ;
196
+ return this ;
197
+ }
198
+ }
199
+
184
200
/**
185
201
* Get the list of interfaces of the device.
186
202
*
@@ -191,7 +207,7 @@ public CompletableFuture<ApiResponse<GetDeviceResponse>> getDeviceWithHttpInfoAs
191
207
* @throws ApiException if fails to make API call
192
208
*/
193
209
public GetInterfacesResponse getInterfaces (String deviceId ) throws ApiException {
194
- return getInterfacesWithHttpInfo (deviceId ).getData ();
210
+ return getInterfacesWithHttpInfo (deviceId , new GetInterfacesOptionalParameters () ).getData ();
195
211
}
196
212
197
213
/**
@@ -203,7 +219,7 @@ public GetInterfacesResponse getInterfaces(String deviceId) throws ApiException
203
219
* @return CompletableFuture<GetInterfacesResponse>
204
220
*/
205
221
public CompletableFuture <GetInterfacesResponse > getInterfacesAsync (String deviceId ) {
206
- return getInterfacesWithHttpInfoAsync (deviceId )
222
+ return getInterfacesWithHttpInfoAsync (deviceId , new GetInterfacesOptionalParameters () )
207
223
.thenApply (
208
224
response -> {
209
225
return response .getData ();
@@ -213,7 +229,41 @@ public CompletableFuture<GetInterfacesResponse> getInterfacesAsync(String device
213
229
/**
214
230
* Get the list of interfaces of the device.
215
231
*
232
+ * <p>See {@link #getInterfacesWithHttpInfo}.
233
+ *
216
234
* @param deviceId The ID of the device to get interfaces from. (required)
235
+ * @param parameters Optional parameters for the request.
236
+ * @return GetInterfacesResponse
237
+ * @throws ApiException if fails to make API call
238
+ */
239
+ public GetInterfacesResponse getInterfaces (
240
+ String deviceId , GetInterfacesOptionalParameters parameters ) throws ApiException {
241
+ return getInterfacesWithHttpInfo (deviceId , parameters ).getData ();
242
+ }
243
+
244
+ /**
245
+ * Get the list of interfaces of the device.
246
+ *
247
+ * <p>See {@link #getInterfacesWithHttpInfoAsync}.
248
+ *
249
+ * @param deviceId The ID of the device to get interfaces from. (required)
250
+ * @param parameters Optional parameters for the request.
251
+ * @return CompletableFuture<GetInterfacesResponse>
252
+ */
253
+ public CompletableFuture <GetInterfacesResponse > getInterfacesAsync (
254
+ String deviceId , GetInterfacesOptionalParameters parameters ) {
255
+ return getInterfacesWithHttpInfoAsync (deviceId , parameters )
256
+ .thenApply (
257
+ response -> {
258
+ return response .getData ();
259
+ });
260
+ }
261
+
262
+ /**
263
+ * Get the list of interfaces of the device.
264
+ *
265
+ * @param deviceId The ID of the device to get interfaces from. (required)
266
+ * @param parameters Optional parameters for the request.
217
267
* @return ApiResponse<GetInterfacesResponse>
218
268
* @throws ApiException if fails to make API call
219
269
* @http.response.details
@@ -225,22 +275,24 @@ public CompletableFuture<GetInterfacesResponse> getInterfacesAsync(String device
225
275
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
226
276
* </table>
227
277
*/
228
- public ApiResponse <GetInterfacesResponse > getInterfacesWithHttpInfo (String deviceId )
229
- throws ApiException {
278
+ public ApiResponse <GetInterfacesResponse > getInterfacesWithHttpInfo (
279
+ String deviceId , GetInterfacesOptionalParameters parameters ) throws ApiException {
230
280
Object localVarPostBody = null ;
231
281
232
282
// verify the required parameter 'deviceId' is set
233
283
if (deviceId == null ) {
234
284
throw new ApiException (
235
285
400 , "Missing the required parameter 'deviceId' when calling getInterfaces" );
236
286
}
287
+ Boolean getIpAddresses = parameters .getIpAddresses ;
237
288
// create path and map variables
238
289
String localVarPath = "/api/v2/ndm/interfaces" ;
239
290
240
291
List <Pair > localVarQueryParams = new ArrayList <Pair >();
241
292
Map <String , String > localVarHeaderParams = new HashMap <String , String >();
242
293
243
294
localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "device_id" , deviceId ));
295
+ localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "get_ip_addresses" , getIpAddresses ));
244
296
245
297
Invocation .Builder builder =
246
298
apiClient .createBuilder (
@@ -268,10 +320,11 @@ public ApiResponse<GetInterfacesResponse> getInterfacesWithHttpInfo(String devic
268
320
* <p>See {@link #getInterfacesWithHttpInfo}.
269
321
*
270
322
* @param deviceId The ID of the device to get interfaces from. (required)
323
+ * @param parameters Optional parameters for the request.
271
324
* @return CompletableFuture<ApiResponse<GetInterfacesResponse>>
272
325
*/
273
326
public CompletableFuture <ApiResponse <GetInterfacesResponse >> getInterfacesWithHttpInfoAsync (
274
- String deviceId ) {
327
+ String deviceId , GetInterfacesOptionalParameters parameters ) {
275
328
Object localVarPostBody = null ;
276
329
277
330
// verify the required parameter 'deviceId' is set
@@ -282,13 +335,15 @@ public CompletableFuture<ApiResponse<GetInterfacesResponse>> getInterfacesWithHt
282
335
400 , "Missing the required parameter 'deviceId' when calling getInterfaces" ));
283
336
return result ;
284
337
}
338
+ Boolean getIpAddresses = parameters .getIpAddresses ;
285
339
// create path and map variables
286
340
String localVarPath = "/api/v2/ndm/interfaces" ;
287
341
288
342
List <Pair > localVarQueryParams = new ArrayList <Pair >();
289
343
Map <String , String > localVarHeaderParams = new HashMap <String , String >();
290
344
291
345
localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "device_id" , deviceId ));
346
+ localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "get_ip_addresses" , getIpAddresses ));
292
347
293
348
Invocation .Builder builder ;
294
349
try {
0 commit comments