Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrected all check_types for limit and offset to accept both basestr… #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
8 changes: 4 additions & 4 deletions dnacentersdk/api/v1_2_10/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2633,8 +2633,8 @@ def retrieves_all_network_devices(self,
check_type(role, basestring)
check_type(role_source, basestring)
check_type(associated_wlc_ip, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
if headers is not None:
if 'X-Auth-Token' in headers:
check_type(headers.get('X-Auth-Token'),
Expand Down Expand Up @@ -2745,8 +2745,8 @@ def get_modules(self,
check_type(headers, dict)
check_type(device_id, basestring,
may_be_none=False)
check_type(limit, basestring)
check_type(offset, basestring)
check_type(limit, (basestring, int))
check_type(offset, (basestring, int))
check_type(name_list, (basestring, list, set, tuple))
check_type(vendor_equipment_type_list, (basestring, list, set, tuple))
check_type(part_number_list, (basestring, list, set, tuple))
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v1_2_10/path_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def retrives_all_previous_pathtraces_summary(self,
check_type(status, basestring)
check_type(task_id, basestring)
check_type(last_update_time, basestring)
check_type(limit, basestring)
check_type(offset, basestring)
check_type(limit, (basestring, int))
check_type(offset, (basestring, int))
check_type(order, basestring)
check_type(sort_by, basestring)
if headers is not None:
Expand Down
8 changes: 4 additions & 4 deletions dnacentersdk/api/v1_2_10/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,8 @@ def get_tag_members_by_id(self,
check_type(headers, dict)
check_type(member_type, basestring,
may_be_none=False)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (int,basestring))
check_type(limit, (int,basestring))
check_type(member_association_type, basestring)
check_type(level, basestring)
check_type(id, basestring,
Expand Down Expand Up @@ -916,8 +916,8 @@ def get_tag(self,
check_type(additional_info_name_space, basestring)
check_type(additional_info_attributes, basestring)
check_type(level, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
check_type(size, basestring)
check_type(field, basestring)
check_type(sort_by, basestring)
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v1_2_10/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ def get_tasks(self,
check_type(is_error, basestring)
check_type(failure_reason, basestring)
check_type(parent_id, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
check_type(sort_by, basestring)
check_type(order, basestring)
if headers is not None:
Expand Down
8 changes: 4 additions & 4 deletions dnacentersdk/api/v1_3_0/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2209,8 +2209,8 @@ def get_modules(self,
check_type(headers, dict)
check_type(device_id, basestring,
may_be_none=False)
check_type(limit, basestring)
check_type(offset, basestring)
check_type(limit, (basestring, int))
check_type(offset, (basestring, int))
check_type(name_list, (basestring, list, set, tuple))
check_type(vendor_equipment_type_list, (basestring, list, set, tuple))
check_type(part_number_list, (basestring, list, set, tuple))
Expand Down Expand Up @@ -2836,8 +2836,8 @@ def retrieves_all_network_devices(self,
check_type(role, basestring)
check_type(role_source, basestring)
check_type(associated_wlc_ip, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
if headers is not None:
if 'X-Auth-Token' in headers:
check_type(headers.get('X-Auth-Token'),
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v1_3_0/path_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def retrives_all_previous_pathtraces_summary(self,
check_type(status, basestring)
check_type(task_id, basestring)
check_type(last_update_time, basestring)
check_type(limit, basestring)
check_type(offset, basestring)
check_type(limit, (basestring, int))
check_type(offset, (basestring, int))
check_type(order, basestring)
check_type(sort_by, basestring)
if headers is not None:
Expand Down
8 changes: 4 additions & 4 deletions dnacentersdk/api/v1_3_0/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,8 @@ def get_tag_members_by_id(self,
check_type(headers, dict)
check_type(member_type, basestring,
may_be_none=False)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (int,basestring))
check_type(limit, (int,basestring))
check_type(member_association_type, basestring)
check_type(level, basestring)
check_type(id, basestring,
Expand Down Expand Up @@ -916,8 +916,8 @@ def get_tag(self,
check_type(additional_info_name_space, basestring)
check_type(additional_info_attributes, basestring)
check_type(level, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
check_type(size, basestring)
check_type(field, basestring)
check_type(sort_by, basestring)
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v1_3_0/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ def get_tasks(self,
check_type(is_error, basestring)
check_type(failure_reason, basestring)
check_type(parent_id, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
check_type(sort_by, basestring)
check_type(order, basestring)
if headers is not None:
Expand Down
8 changes: 4 additions & 4 deletions dnacentersdk/api/v1_3_1/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1930,8 +1930,8 @@ def retrieves_all_network_devices(self,
check_type(role, basestring)
check_type(role_source, basestring)
check_type(associated_wlc_ip, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
if headers is not None:
if 'X-Auth-Token' in headers:
check_type(headers.get('X-Auth-Token'),
Expand Down Expand Up @@ -2738,8 +2738,8 @@ def get_modules(self,
check_type(headers, dict)
check_type(device_id, basestring,
may_be_none=False)
check_type(limit, basestring)
check_type(offset, basestring)
check_type(limit, (basestring, int))
check_type(offset, (basestring, int))
check_type(name_list, (basestring, list, set, tuple))
check_type(vendor_equipment_type_list, (basestring, list, set, tuple))
check_type(part_number_list, (basestring, list, set, tuple))
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v1_3_1/path_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ def retrives_all_previous_pathtraces_summary(self,
check_type(status, basestring)
check_type(task_id, basestring)
check_type(last_update_time, basestring)
check_type(limit, basestring)
check_type(offset, basestring)
check_type(limit, (basestring, int))
check_type(offset, (basestring, int))
check_type(order, basestring)
check_type(sort_by, basestring)
if headers is not None:
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v1_3_1/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def get_site(self,
check_type(name, basestring)
check_type(site_id, basestring)
check_type(type, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
if headers is not None:
if 'X-Auth-Token' in headers:
check_type(headers.get('X-Auth-Token'),
Expand Down
8 changes: 4 additions & 4 deletions dnacentersdk/api/v1_3_1/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,8 @@ def get_tag_members_by_id(self,
check_type(headers, dict)
check_type(member_type, basestring,
may_be_none=False)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (int,basestring))
check_type(limit, (int,basestring))
check_type(member_association_type, basestring)
check_type(level, basestring)
check_type(id, basestring,
Expand Down Expand Up @@ -811,8 +811,8 @@ def get_tag(self,
check_type(additional_info_name_space, basestring)
check_type(additional_info_attributes, basestring)
check_type(level, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
check_type(size, basestring)
check_type(field, basestring)
check_type(sort_by, basestring)
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v1_3_1/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ def get_tasks(self,
check_type(is_error, basestring)
check_type(failure_reason, basestring)
check_type(parent_id, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
check_type(sort_by, basestring)
check_type(order, basestring)
if headers is not None:
Expand Down
8 changes: 4 additions & 4 deletions dnacentersdk/api/v1_3_3/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2225,8 +2225,8 @@ def get_modules(self,
check_type(headers, dict)
check_type(device_id, basestring,
may_be_none=False)
check_type(limit, basestring)
check_type(offset, basestring)
check_type(limit, (basestring, int))
check_type(offset, (basestring, int))
check_type(name_list, (basestring, list, set, tuple))
check_type(vendor_equipment_type_list, (basestring, list, set, tuple))
check_type(part_number_list, (basestring, list, set, tuple))
Expand Down Expand Up @@ -2774,8 +2774,8 @@ def retrieves_all_network_devices(self,
check_type(role, basestring)
check_type(role_source, basestring)
check_type(associated_wlc_ip, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
if headers is not None:
if 'X-Auth-Token' in headers:
check_type(headers.get('X-Auth-Token'),
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v1_3_3/network_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,8 +878,8 @@ def get_global_pool(self,
ApiError: If the DNA Center cloud returns an error.
"""
check_type(headers, dict)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
if headers is not None:
if 'X-Auth-Token' in headers:
check_type(headers.get('X-Auth-Token'),
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v1_3_3/path_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def retrives_all_previous_pathtraces_summary(self,
check_type(status, basestring)
check_type(task_id, basestring)
check_type(last_update_time, basestring)
check_type(limit, basestring)
check_type(offset, basestring)
check_type(limit, (basestring, int))
check_type(offset, (basestring, int))
check_type(order, basestring)
check_type(sort_by, basestring)
if headers is not None:
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v1_3_3/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ def get_site(self,
check_type(name, basestring)
check_type(site_id, basestring)
check_type(type, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
if headers is not None:
if 'X-Auth-Token' in headers:
check_type(headers.get('X-Auth-Token'),
Expand Down
8 changes: 4 additions & 4 deletions dnacentersdk/api/v1_3_3/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,8 @@ def get_tag(self,
check_type(additional_info_name_space, basestring)
check_type(additional_info_attributes, basestring)
check_type(level, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
check_type(size, basestring)
check_type(field, basestring)
check_type(sort_by, basestring)
Expand Down Expand Up @@ -928,8 +928,8 @@ def get_tag_members_by_id(self,
check_type(headers, dict)
check_type(member_type, basestring,
may_be_none=False)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (int,basestring))
check_type(limit, (int,basestring))
check_type(member_association_type, basestring)
check_type(level, basestring)
check_type(id, basestring,
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v1_3_3/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ def get_tasks(self,
check_type(is_error, basestring)
check_type(failure_reason, basestring)
check_type(parent_id, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
check_type(sort_by, basestring)
check_type(order, basestring)
if headers is not None:
Expand Down
8 changes: 4 additions & 4 deletions dnacentersdk/api/v2_1_1/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2455,8 +2455,8 @@ def get_modules(self,
check_type(headers, dict)
check_type(device_id, basestring,
may_be_none=False)
check_type(limit, basestring)
check_type(offset, basestring)
check_type(limit, (basestring, int))
check_type(offset, (basestring, int))
check_type(name_list, (basestring, list, set, tuple))
check_type(vendor_equipment_type_list, (basestring, list, set, tuple))
check_type(part_number_list, (basestring, list, set, tuple))
Expand Down Expand Up @@ -2658,8 +2658,8 @@ def retrieves_all_network_devices(self,
check_type(role, basestring)
check_type(role_source, basestring)
check_type(associated_wlc_ip, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
if headers is not None:
if 'X-Auth-Token' in headers:
check_type(headers.get('X-Auth-Token'),
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v2_1_1/network_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,8 +878,8 @@ def get_global_pool(self,
ApiError: If the DNA Center cloud returns an error.
"""
check_type(headers, dict)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
if headers is not None:
if 'X-Auth-Token' in headers:
check_type(headers.get('X-Auth-Token'),
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v2_1_1/path_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def retrives_all_previous_pathtraces_summary(self,
check_type(status, basestring)
check_type(task_id, basestring)
check_type(last_update_time, basestring)
check_type(limit, basestring)
check_type(offset, basestring)
check_type(limit, (basestring, int))
check_type(offset, (basestring, int))
check_type(order, basestring)
check_type(sort_by, basestring)
if headers is not None:
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v2_1_1/site_design.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def get_nfv_profile(self,
ApiError: If the DNA Center cloud returns an error.
"""
check_type(headers, dict)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
check_type(name, basestring)
check_type(id, basestring,
may_be_none=False)
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v2_1_1/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ def get_site(self,
check_type(name, basestring)
check_type(site_id, basestring)
check_type(type, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
if headers is not None:
if 'X-Auth-Token' in headers:
check_type(headers.get('X-Auth-Token'),
Expand Down
8 changes: 4 additions & 4 deletions dnacentersdk/api/v2_1_1/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,8 @@ def get_tag_members_by_id(self,
check_type(headers, dict)
check_type(member_type, basestring,
may_be_none=False)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (int,basestring))
check_type(limit, (int,basestring))
check_type(member_association_type, basestring)
check_type(level, basestring)
check_type(id, basestring,
Expand Down Expand Up @@ -916,8 +916,8 @@ def get_tag(self,
check_type(additional_info_name_space, basestring)
check_type(additional_info_attributes, basestring)
check_type(level, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
check_type(size, basestring)
check_type(field, basestring)
check_type(sort_by, basestring)
Expand Down
4 changes: 2 additions & 2 deletions dnacentersdk/api/v2_1_1/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ def get_tasks(self,
check_type(is_error, basestring)
check_type(failure_reason, basestring)
check_type(parent_id, basestring)
check_type(offset, basestring)
check_type(limit, basestring)
check_type(offset, (basestring, int))
check_type(limit, (basestring, int))
check_type(sort_by, basestring)
check_type(order, basestring)
if headers is not None:
Expand Down
Loading