Skip to content

Commit 14361f1

Browse files
authored
Merge pull request #245 from cisco-en-programmability/develop
fix: update parameter types for limit and offset to int in multiple m…
2 parents 92835c5 + f469045 commit 14361f1

19 files changed

Lines changed: 223 additions & 183 deletions

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [2.11.2] - 2026-02-26
10+
### Fixed
11+
- **`limit` and `offset` parameter types (v2.3.7.9, v3.1.3.0)**: Changed `limit` and `offset` query parameters from `str` to `int` type in `check_type` validations and docstrings across multiple modules, matching the corrected types already applied in v3.1.6.0. Affected modules:
12+
- `application_policy` (v2.3.7.9, v3.1.3.0)
13+
- `devices` (v2.3.7.9, v3.1.3.0)
14+
- `lan_automation` (v2.3.7.9, v3.1.3.0)
15+
- `sda` (v2.3.7.9, v3.1.3.0)
16+
- `sites` (v2.3.7.9, v3.1.3.0)
17+
- `wireless` (v2.3.7.9, v3.1.3.0)
18+
- **Validator schema types (v2.3.7.9, v3.1.3.0)**: Fixed `limit` and `offset` JSON schema types from `"number"` to `"integer"` in `GetDeviceInterfaceStatsInfoV2` and `RogueAdditionalDetails` request validators.
19+
920
## [2.11.1] - 2026-02-25
1021
### Fixed
1122
- **Validator `required` fields (v3.1.6.0)**: Removed incorrectly added `required` blocks from v3.1.6.0 validators that were not present in the stable v3.1.3.0 baseline, preventing false validation failures on valid optional fields.
@@ -849,4 +860,5 @@ respond with a binary.
849860
[2.10.6]: https://github.com/cisco-en-programmability/dnacentersdk/compare/v2.10.5...v2.10.6
850861
[2.11.0]: https://github.com/cisco-en-programmability/dnacentersdk/compare/v2.10.6...v2.11.0
851862
[2.11.1]: https://github.com/cisco-en-programmability/dnacentersdk/compare/v2.11.0...v2.11.1
852-
[Unreleased]: https://github.com/cisco-en-programmability/dnacentersdk/compare/v2.11.1...develop
863+
[2.11.2]: https://github.com/cisco-en-programmability/dnacentersdk/compare/v2.11.1...v2.11.2
864+
[Unreleased]: https://github.com/cisco-en-programmability/dnacentersdk/compare/v2.11.2...develop

dnacentersdk/api/v2_3_7_9/application_policy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -830,9 +830,9 @@ def retrieve_the_list_of_network_devices_with_their_application_visibility_statu
830830
application_registry_sync_status(str): applicationRegistrySyncStatus query parameter. Indicates whether
831831
the latest definitions from application registry have been synchronized with the network
832832
device or not. Available values: SYNCING, IN_SYNC, OUT_OF_SYNC, NOT_APPLICABLE .
833-
offset(str): offset query parameter. The first record to show for this page; the first record is
833+
offset(int): offset query parameter. The first record to show for this page; the first record is
834834
numbered 1. Default value is: 1. .
835-
limit(str): limit query parameter. The number of records to show for this page. Minimum value is: 1,
835+
limit(int): limit query parameter. The number of records to show for this page. Minimum value is: 1,
836836
Maximum value is: 500 .
837837
sort_by(str): sortBy query parameter. A property within the response to sort by. .
838838
order(str): order query parameter. Whether ascending or descending order should be used to sort the
@@ -865,8 +865,8 @@ def retrieve_the_list_of_network_devices_with_their_application_visibility_statu
865865
check_type(protocol_pack_status, str)
866866
check_type(protocol_pack_update_status, str)
867867
check_type(application_registry_sync_status, str)
868-
check_type(offset, str)
869-
check_type(limit, str)
868+
check_type(offset, int)
869+
check_type(limit, int)
870870
check_type(sort_by, str)
871871
check_type(order, str)
872872
if headers is not None:

dnacentersdk/api/v2_3_7_9/devices.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11067,8 +11067,8 @@ def retrieve_scheduled_maintenance_windows_for_network_devices(
1106711067
network_device_ids(str): networkDeviceIds query parameter. List of network device ids. .
1106811068
status(str): status query parameter. The status of the maintenance schedule. Possible values are:
1106911069
UPCOMING, IN_PROGRESS, COMPLETED, FAILED. Refer features for more details. .
11070-
limit(str): limit query parameter. The number of records to show for this page. Min: 1, Max: 500 .
11071-
offset(str): offset query parameter. The first record to show for this page; the first record is
11070+
limit(int): limit query parameter. The number of records to show for this page. Min: 1, Max: 500 .
11071+
offset(int): offset query parameter. The first record to show for this page; the first record is
1107211072
numbered 1. .
1107311073
sort_by(str): sortBy query parameter. A property within the response to sort by. .
1107411074
order(str): order query parameter. Whether ascending or descending order should be used to sort the
@@ -11092,8 +11092,8 @@ def retrieve_scheduled_maintenance_windows_for_network_devices(
1109211092
check_type(headers, dict)
1109311093
check_type(network_device_ids, str)
1109411094
check_type(status, str)
11095-
check_type(limit, str)
11096-
check_type(offset, str)
11095+
check_type(limit, int)
11096+
check_type(offset, int)
1109711097
check_type(sort_by, str)
1109811098
check_type(order, str)
1109911099
if headers is not None:
@@ -11447,8 +11447,8 @@ def retrieve_network_devices(
1144711447
provided, then it will default to BASIC views. If multiple views are provided, the
1144811448
response will contain the union of the views. Refer features for more details. Available
1144911449
values : BASIC, RESYNC, USER_DEFINED_FIELDS. .
11450-
limit(str): limit query parameter. The number of records to show for this page. Min: 1, Max: 500 .
11451-
offset(str): offset query parameter. The first record to show for this page; the first record is
11450+
limit(int): limit query parameter. The number of records to show for this page. Min: 1, Max: 500 .
11451+
offset(int): offset query parameter. The first record to show for this page; the first record is
1145211452
numbered 1. .
1145311453
sort_by(str): sortBy query parameter. A property within the response to sort by. Available values : id,
1145411454
managementAddress, dnsResolvedManagementIpAddress, hostname, macAddress, type, family,
@@ -11486,8 +11486,8 @@ def retrieve_network_devices(
1148611486
check_type(reachability_status, str)
1148711487
check_type(management_state, str)
1148811488
check_type(views, str)
11489-
check_type(limit, str)
11490-
check_type(offset, str)
11489+
check_type(limit, int)
11490+
check_type(offset, int)
1149111491
check_type(sort_by, str)
1149211492
check_type(order, str)
1149311493
if headers is not None:

dnacentersdk/api/v2_3_7_9/lan_automation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -826,8 +826,8 @@ def get_port_channels(
826826
device2_management_ipaddress(str): device2ManagementIPAddress query parameter. The management IP address
827827
of the device2. .
828828
device2_uuid(str): device2Uuid query parameter. Unique identifier for the network device2 .
829-
offset(str): offset query parameter. Starting record for pagination. .
830-
limit(str): limit query parameter. Maximum number of Port Channel to return. .
829+
offset(int): offset query parameter. Starting record for pagination. .
830+
limit(int): limit query parameter. Maximum number of Port Channel to return. .
831831
headers(dict): Dictionary of HTTP Headers to send with the Request
832832
.
833833
**request_parameters: Additional request parameters (provides
@@ -849,8 +849,8 @@ def get_port_channels(
849849
check_type(device1_uuid, str)
850850
check_type(device2_management_ipaddress, str)
851851
check_type(device2_uuid, str)
852-
check_type(offset, str)
853-
check_type(limit, str)
852+
check_type(offset, int)
853+
check_type(limit, int)
854854
if headers is not None:
855855
if "X-Auth-Token" in headers:
856856
check_type(headers.get("X-Auth-Token"), str, may_be_none=False)

dnacentersdk/api/v2_3_7_9/sda.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10374,7 +10374,7 @@ def security_service_insertions(
1037410374
"""Retrieves a list of all Security Service Insertions (SSIs) configured across fabric sites. .
1037510375
1037610376
Args:
10377-
limit(str): limit query parameter. Maximum number of records to return. Default value is 100, minimum
10377+
limit(int): limit query parameter. Maximum number of records to return. Default value is 100, minimum
1037810378
value is 1 and maximum value is 100. .
1037910379
offset(int): offset query parameter. Starting record for pagination. The first record is numbered 1. .
1038010380
order(str): order query parameter. The sorting order for the response can be specified as either
@@ -10398,7 +10398,7 @@ def security_service_insertions(
1039810398
https://developer.cisco.com/docs/dna-center/#!security-service-insertions
1039910399
"""
1040010400
check_type(headers, dict)
10401-
check_type(limit, str)
10401+
check_type(limit, int)
1040210402
check_type(offset, int)
1040310403
check_type(order, str)
1040410404
check_type(fabric_site_name, str)

dnacentersdk/api/v2_3_7_9/sites.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3608,8 +3608,8 @@ def get_devices_that_are_assigned_to_a_site(
36083608
36093609
Args:
36103610
id(str): id path parameter. Site Id .
3611-
offset(str): offset query parameter. Offset/starting index for pagination .
3612-
limit(str): limit query parameter. Number of devices to be listed. Default and max supported value is
3611+
offset(int): offset query parameter. Offset/starting index for pagination .
3612+
limit(int): limit query parameter. Number of devices to be listed. Default and max supported value is
36133613
500 .
36143614
member_type(str): memberType query parameter. Member type (This API only supports the 'networkdevice'
36153615
type) .
@@ -3632,8 +3632,8 @@ def get_devices_that_are_assigned_to_a_site(
36323632
https://developer.cisco.com/docs/dna-center/#!get-devices-that-are-assigned-to-a-site
36333633
"""
36343634
check_type(headers, dict)
3635-
check_type(offset, str)
3636-
check_type(limit, str)
3635+
check_type(offset, int)
3636+
check_type(limit, int)
36373637
check_type(member_type, str, may_be_none=False)
36383638
check_type(level, str)
36393639
check_type(id, str, may_be_none=False)
@@ -3887,8 +3887,8 @@ def get_site_v2(
38873887
.
38883888
id(str): id query parameter. Site Id .
38893889
type(str): type query parameter. Site type (Acceptable values: area, building, floor) .
3890-
offset(str): offset query parameter. Offset/starting index for pagination .
3891-
limit(str): limit query parameter. Number of sites to be listed. Default and max supported value is 500
3890+
offset(int): offset query parameter. Offset/starting index for pagination .
3891+
limit(int): limit query parameter. Number of sites to be listed. Default and max supported value is 500
38923892
.
38933893
headers(dict): Dictionary of HTTP Headers to send with the Request
38943894
.
@@ -3910,8 +3910,8 @@ def get_site_v2(
39103910
check_type(group_name_hierarchy, str)
39113911
check_type(id, str)
39123912
check_type(type, str)
3913-
check_type(offset, str)
3914-
check_type(limit, str)
3913+
check_type(offset, int)
3914+
check_type(limit, int)
39153915
if headers is not None:
39163916
if "X-Auth-Token" in headers:
39173917
check_type(headers.get("X-Auth-Token"), str, may_be_none=False)

dnacentersdk/api/v2_3_7_9/wireless.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9993,9 +9993,9 @@ def get_anchor_groups(
99939993
"""This API allows the user to get AnchorGroups that captured in wireless settings design. .
99949994

99959995
Args:
9996-
limit(str): limit query parameter. The number of records to show for this page. Default is 500 if not
9996+
limit(int): limit query parameter. The number of records to show for this page. Default is 500 if not
99979997
specified. Maximum allowed limit is 500. .
9998-
offset(str): offset query parameter. The first record to show for this page, the first record is
9998+
offset(int): offset query parameter. The first record to show for this page, the first record is
99999999
numbered 1. .
1000010000
headers(dict): Dictionary of HTTP Headers to send with the Request
1000110001
.
@@ -10014,8 +10014,8 @@ def get_anchor_groups(
1001410014
https://developer.cisco.com/docs/dna-center/#!get-anchor-groups
1001510015
"""
1001610016
check_type(headers, dict)
10017-
check_type(limit, str)
10018-
check_type(offset, str)
10017+
check_type(limit, int)
10018+
check_type(offset, int)
1001910019
if headers is not None:
1002010020
if "X-Auth-Token" in headers:
1002110021
check_type(headers.get("X-Auth-Token"), str, may_be_none=False)
@@ -10304,9 +10304,9 @@ def get_ap_authorization_lists(
1030410304
ap_authorization_list_name(str): apAuthorizationListName query parameter. Employ this query parameter to
1030510305
obtain the details of the AP Authorization List corresponding to the provided
1030610306
apAuthorizationListName. .
10307-
offset(str): offset query parameter. The first record to show for this page. The first record is
10307+
offset(int): offset query parameter. The first record to show for this page. The first record is
1030810308
numbered 1. .
10309-
limit(str): limit query parameter. The number of records to show for this page. Default is 500 if not
10309+
limit(int): limit query parameter. The number of records to show for this page. Default is 500 if not
1031010310
specified. Maximum allowed limit is 500. .
1031110311
headers(dict): Dictionary of HTTP Headers to send with the Request
1031210312
.
@@ -10326,8 +10326,8 @@ def get_ap_authorization_lists(
1032610326
"""
1032710327
check_type(headers, dict)
1032810328
check_type(ap_authorization_list_name, str)
10329-
check_type(offset, str)
10330-
check_type(limit, str)
10329+
check_type(offset, int)
10330+
check_type(limit, int)
1033110331
if headers is not None:
1033210332
if "X-Auth-Token" in headers:
1033310333
check_type(headers.get("X-Auth-Token"), str, may_be_none=False)
@@ -10845,9 +10845,9 @@ def get_ap_profiles(
1084510845
"""This API allows the user to get AP Profiles that captured in wireless settings design. .
1084610846

1084710847
Args:
10848-
limit(str): limit query parameter. The number of records to show for this page. Default is 500 if not
10848+
limit(int): limit query parameter. The number of records to show for this page. Default is 500 if not
1084910849
specified. Maximum allowed limit is 500. .
10850-
offset(str): offset query parameter. The first record to show for this page, the first record is
10850+
offset(int): offset query parameter. The first record to show for this page, the first record is
1085110851
numbered 1. .
1085210852
ap_profile_name(str): apProfileName query parameter. Employ this query parameter to obtain the details
1085310853
of the apProfiles corresponding to the provided apProfileName. .
@@ -10868,8 +10868,8 @@ def get_ap_profiles(
1086810868
https://developer.cisco.com/docs/dna-center/#!get-a-p-profiles
1086910869
"""
1087010870
check_type(headers, dict)
10871-
check_type(limit, str)
10872-
check_type(offset, str)
10871+
check_type(limit, int)
10872+
check_type(offset, int)
1087310873
check_type(ap_profile_name, str)
1087410874
if headers is not None:
1087510875
if "X-Auth-Token" in headers:

dnacentersdk/api/v3_1_3_0/application_policy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -830,9 +830,9 @@ def retrieve_the_list_of_network_devices_with_their_application_visibility_statu
830830
application_registry_sync_status(str): applicationRegistrySyncStatus query parameter. Indicates whether
831831
the latest definitions from application registry have been synchronized with the network
832832
device or not. Available values: SYNCING, IN_SYNC, OUT_OF_SYNC, NOT_APPLICABLE .
833-
offset(str): offset query parameter. The first record to show for this page; the first record is
833+
offset(int): offset query parameter. The first record to show for this page; the first record is
834834
numbered 1. Default value is: 1. .
835-
limit(str): limit query parameter. The number of records to show for this page. Minimum value is: 1,
835+
limit(int): limit query parameter. The number of records to show for this page. Minimum value is: 1,
836836
Maximum value is: 500 .
837837
sort_by(str): sortBy query parameter. A property within the response to sort by. .
838838
order(str): order query parameter. Whether ascending or descending order should be used to sort the
@@ -865,8 +865,8 @@ def retrieve_the_list_of_network_devices_with_their_application_visibility_statu
865865
check_type(protocol_pack_status, str)
866866
check_type(protocol_pack_update_status, str)
867867
check_type(application_registry_sync_status, str)
868-
check_type(offset, str)
869-
check_type(limit, str)
868+
check_type(offset, int)
869+
check_type(limit, int)
870870
check_type(sort_by, str)
871871
check_type(order, str)
872872
if headers is not None:

dnacentersdk/api/v3_1_3_0/devices.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11067,8 +11067,8 @@ def retrieve_scheduled_maintenance_windows_for_network_devices(
1106711067
network_device_ids(str): networkDeviceIds query parameter. List of network device ids. .
1106811068
status(str): status query parameter. The status of the maintenance schedule. Possible values are:
1106911069
UPCOMING, IN_PROGRESS, COMPLETED, FAILED. Refer features for more details. .
11070-
limit(str): limit query parameter. The number of records to show for this page. Min: 1, Max: 500 .
11071-
offset(str): offset query parameter. The first record to show for this page; the first record is
11070+
limit(int): limit query parameter. The number of records to show for this page. Min: 1, Max: 500 .
11071+
offset(int): offset query parameter. The first record to show for this page; the first record is
1107211072
numbered 1. .
1107311073
sort_by(str): sortBy query parameter. A property within the response to sort by. .
1107411074
order(str): order query parameter. Whether ascending or descending order should be used to sort the
@@ -11092,8 +11092,8 @@ def retrieve_scheduled_maintenance_windows_for_network_devices(
1109211092
check_type(headers, dict)
1109311093
check_type(network_device_ids, str)
1109411094
check_type(status, str)
11095-
check_type(limit, str)
11096-
check_type(offset, str)
11095+
check_type(limit, int)
11096+
check_type(offset, int)
1109711097
check_type(sort_by, str)
1109811098
check_type(order, str)
1109911099
if headers is not None:
@@ -11447,8 +11447,8 @@ def retrieve_network_devices(
1144711447
provided, then it will default to BASIC views. If multiple views are provided, the
1144811448
response will contain the union of the views. Refer features for more details. Available
1144911449
values : BASIC, RESYNC, USER_DEFINED_FIELDS. .
11450-
limit(str): limit query parameter. The number of records to show for this page. Min: 1, Max: 500 .
11451-
offset(str): offset query parameter. The first record to show for this page; the first record is
11450+
limit(int): limit query parameter. The number of records to show for this page. Min: 1, Max: 500 .
11451+
offset(int): offset query parameter. The first record to show for this page; the first record is
1145211452
numbered 1. .
1145311453
sort_by(str): sortBy query parameter. A property within the response to sort by. Available values : id,
1145411454
managementAddress, dnsResolvedManagementIpAddress, hostname, macAddress, type, family,
@@ -11486,8 +11486,8 @@ def retrieve_network_devices(
1148611486
check_type(reachability_status, str)
1148711487
check_type(management_state, str)
1148811488
check_type(views, str)
11489-
check_type(limit, str)
11490-
check_type(offset, str)
11489+
check_type(limit, int)
11490+
check_type(offset, int)
1149111491
check_type(sort_by, str)
1149211492
check_type(order, str)
1149311493
if headers is not None:

0 commit comments

Comments
 (0)