Skip to content

Commit d733a30

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0e52e6a of spec repo
1 parent 9727dd3 commit d733a30

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,27 @@ components:
783783
required: false
784784
schema:
785785
type: string
786+
NDMPageNumber:
787+
description: Specific page number to return. Defaults to 0.
788+
in: query
789+
name: page[number]
790+
required: false
791+
schema:
792+
default: 0
793+
example: 0
794+
format: int64
795+
type: integer
796+
NDMPageSize:
797+
description: Size for a given page. The maximum allowed value is 500. Defaults
798+
to 50.
799+
in: query
800+
name: page[size]
801+
required: false
802+
schema:
803+
default: 50
804+
example: 50
805+
format: int64
806+
type: integer
786807
NotificationRuleIDPathParameter:
787808
description: Notification Rule UUID
788809
example: e555e290-ed65-49bd-ae18-8acbfcf18db7
@@ -85569,14 +85590,15 @@ paths:
8556985590
description: Get the list of devices.
8557085591
operationId: ListDevices
8557185592
parameters:
85572-
- $ref: '#/components/parameters/PageSize'
85573-
- $ref: '#/components/parameters/PageNumber'
85574-
- description: The field to sort the devices by.
85593+
- $ref: '#/components/parameters/NDMPageSize'
85594+
- $ref: '#/components/parameters/NDMPageNumber'
85595+
- description: The field to sort the devices by. Defaults to `name`.
8557585596
example: status
8557685597
in: query
8557785598
name: sort
8557885599
required: false
8557985600
schema:
85601+
default: name
8558085602
type: string
8558185603
- description: Filter devices by tag.
8558285604
example: status:ok

src/main/java/com/datadog/api/client/v2/api/NetworkDeviceMonitoringApi.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ public static class ListDevicesOptionalParameters {
385385
/**
386386
* Set pageSize.
387387
*
388-
* @param pageSize Size for a given page. The maximum allowed value is 100. (optional, default
389-
* to 10)
388+
* @param pageSize Size for a given page. The maximum allowed value is 500. Defaults to 50.
389+
* (optional, default to 50)
390390
* @return ListDevicesOptionalParameters
391391
*/
392392
public ListDevicesOptionalParameters pageSize(Long pageSize) {
@@ -397,7 +397,7 @@ public ListDevicesOptionalParameters pageSize(Long pageSize) {
397397
/**
398398
* Set pageNumber.
399399
*
400-
* @param pageNumber Specific page number to return. (optional, default to 0)
400+
* @param pageNumber Specific page number to return. Defaults to 0. (optional, default to 0)
401401
* @return ListDevicesOptionalParameters
402402
*/
403403
public ListDevicesOptionalParameters pageNumber(Long pageNumber) {
@@ -408,7 +408,8 @@ public ListDevicesOptionalParameters pageNumber(Long pageNumber) {
408408
/**
409409
* Set sort.
410410
*
411-
* @param sort The field to sort the devices by. (optional)
411+
* @param sort The field to sort the devices by. Defaults to <code>name</code>. (optional,
412+
* default to "name")
412413
* @return ListDevicesOptionalParameters
413414
*/
414415
public ListDevicesOptionalParameters sort(String sort) {
@@ -515,7 +516,7 @@ public PaginationIterable<DevicesListData> listDevicesWithPagination(
515516
Long limit;
516517

517518
if (parameters.pageSize == null) {
518-
limit = 10l;
519+
limit = 50l;
519520
parameters.pageSize(limit);
520521
} else {
521522
limit = parameters.pageSize;

0 commit comments

Comments
 (0)