Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,27 @@ components:
required: false
schema:
type: string
NDMPageNumber:
description: Specific page number to return. Defaults to 0.
in: query
name: page[number]
required: false
schema:
default: 0
example: 0
format: int64
type: integer
NDMPageSize:
description: Size for a given page. The maximum allowed value is 500. Defaults
to 50.
in: query
name: page[size]
required: false
schema:
default: 50
example: 50
format: int64
type: integer
NotificationRuleIDPathParameter:
description: Notification Rule UUID
example: e555e290-ed65-49bd-ae18-8acbfcf18db7
Expand Down Expand Up @@ -85569,14 +85590,15 @@ paths:
description: Get the list of devices.
operationId: ListDevices
parameters:
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageNumber'
- description: The field to sort the devices by.
- $ref: '#/components/parameters/NDMPageSize'
- $ref: '#/components/parameters/NDMPageNumber'
- description: The field to sort the devices by. Defaults to `name`.
example: status
in: query
name: sort
required: false
schema:
default: name
type: string
- description: Filter devices by tag.
example: status:ok
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ def list_devices(opts = {})
# Get the list of devices.
#
# @param opts [Hash] the optional parameters
# @option opts [Integer] :page_size Size for a given page. The maximum allowed value is 100.
# @option opts [Integer] :page_number Specific page number to return.
# @option opts [String] :sort The field to sort the devices by.
# @option opts [Integer] :page_size Size for a given page. The maximum allowed value is 500. Defaults to 50.
# @option opts [Integer] :page_number Specific page number to return. Defaults to 0.
# @option opts [String] :sort The field to sort the devices by. Defaults to `name`.
# @option opts [String] :filter_tag Filter devices by tag.
# @return [Array<(ListDevicesResponse, Integer, Hash)>] ListDevicesResponse data, response status code and response headers
def list_devices_with_http_info(opts = {})
Expand Down Expand Up @@ -233,7 +233,7 @@ def list_devices_with_http_info(opts = {})
# @yield [DevicesListData] Paginated items
def list_devices_with_pagination(opts = {})
api_version = "V2"
page_size = @api_client.get_attribute_from_path(opts, "page_size", 10)
page_size = @api_client.get_attribute_from_path(opts, "page_size", 50)
@api_client.set_attribute_from_path(api_version, opts, "page_size", Integer, page_size)
@api_client.set_attribute_from_path(api_version, opts, "page_number", Integer, 0)
while true do
Expand Down
Loading