Skip to content

Commit

Permalink
Alias have been adjusted for backward compatibility, Bug fix and Cis…
Browse files Browse the repository at this point in the history
…co_IMC module added
  • Loading branch information
JosePabloOcampo1212 committed Feb 17, 2025
1 parent dbcbc10 commit 2ac074f
Show file tree
Hide file tree
Showing 53 changed files with 3,978 additions and 1,455 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- removal of -v1 from reference urls in the documentation
- Modification of validators in 2.3.7.9 and 2.3.7.6
- Fixed a bug in site_design in the uploads_floor_image function in versions 2.3.7.6 and 2.3.7.9.

## [2.3.7.9.2] - 2025-02-17
### Bug fix
- Alias have been adjusted for backward compatibility.
- Some functions were changed in versions 2.3.7.6 and 2.3.7.9 to handle files.
- fix in create_webhook_destination, update_webhook_destination, get_webhook_destination functions. In versions 2.3.7.6 and 2.3.7.9.

### Added
- Cisco_IMC module added
6 changes: 6 additions & 0 deletions catalystcentersdk/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@
ApplicationPolicy as ApplicationPolicy_v2_3_7_9
from .v2_3_7_9.applications import \
Applications as Applications_v2_3_7_9
from .v2_3_7_9.cisco_i_m_c import \
CiscoIMC as CiscoIMC_v2_3_7_9
from .v2_3_7_9.authentication_management import \
AuthenticationManagement as AuthenticationManagement_v2_3_7_9
from .v2_3_7_9.cisco_trusted_certificates import \
Expand Down Expand Up @@ -585,6 +587,10 @@ def get_access_token():
Applications_v2_3_7_9(
self._session, object_factory, _validator
)
self.cisco_i_m_c = \
CiscoIMC_v2_3_7_9(
self._session, object_factory, _validator
)
self.authentication_management = \
AuthenticationManagement_v2_3_7_9(
self._session, object_factory, _validator
Expand Down
442 changes: 221 additions & 221 deletions catalystcentersdk/api/v2_3_7_6_1/devices.py

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions catalystcentersdk/api/v2_3_7_6_1/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -3265,8 +3265,8 @@ def get_discovered_network_devices_by_discovery_id(self,
**request_parameters):
""" This function is an alias of get_discovered_network_devices_by_discovery_id_v1 .
Args:
id(basestring): id path parameter. Discovery ID .
task_id(basestring): taskId query parameter.
id(str): id path parameter. Discovery ID .
task_id(str): taskId query parameter.
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand All @@ -3292,12 +3292,12 @@ def get_global_credentials(self,
**request_parameters):
""" This function is an alias of get_global_credentials_v1 .
Args:
credential_sub_type(basestring): credentialSubType query parameter. Credential type as CLI /
credential_sub_type(str): credentialSubType query parameter. Credential type as CLI /
SNMPV2_READ_COMMUNITY / SNMPV2_WRITE_COMMUNITY / SNMPV3 / HTTP_WRITE / HTTP_READ /
NETCONF .
sort_by(basestring): sortBy query parameter. Field to sort the results by. Sorts by 'instanceId' if no
sort_by(str): sortBy query parameter. Field to sort the results by. Sorts by 'instanceId' if no
value is provided .
order(basestring): order query parameter. Order of sorting. 'asc' or 'des' .
order(str): order query parameter. Order of sorting. 'asc' or 'des' .
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand All @@ -3323,8 +3323,8 @@ def get_devices_discovered_by_id(self,
**request_parameters):
""" This function is an alias of get_devices_discovered_by_id_v1 .
Args:
id(basestring): id path parameter. Discovery ID .
task_id(basestring): taskId query parameter.
id(str): id path parameter. Discovery ID .
task_id(str): taskId query parameter.
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand Down Expand Up @@ -3429,11 +3429,11 @@ def get_discovered_devices_by_range(self,
**request_parameters):
""" This function is an alias of get_discovered_devices_by_range_v1 .
Args:
id(basestring): id path parameter. Discovery ID .
id(str): id path parameter. Discovery ID .
start_index(int): startIndex path parameter. Starting index for the records .
records_to_return(int): recordsToReturn path parameter. Number of records to fetch from the start index
.
task_id(basestring): taskId query parameter.
task_id(str): taskId query parameter.
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand Down Expand Up @@ -3739,7 +3739,7 @@ def delete_global_credentials_by_id(self,
**request_parameters):
""" This function is an alias of delete_global_credentials_by_id_v1 .
Args:
global_credential_id(basestring): globalCredentialId path parameter. ID of global-credential .
global_credential_id(str): globalCredentialId path parameter. ID of global-credential .
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand All @@ -3765,10 +3765,10 @@ def get_list_of_discoveries_by_discovery_id(self,
**request_parameters):
""" This function is an alias of get_list_of_discoveries_by_discovery_id_v1 .
Args:
id(basestring): id path parameter. Discovery ID .
id(str): id path parameter. Discovery ID .
offset(int): offset query parameter. Starting index for the records .
limit(int): limit query parameter. Number of records to fetch from the starting index .
ip_address(basestring): ipAddress query parameter. Filter records based on IP address .
ip_address(str): ipAddress query parameter. Filter records based on IP address .
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand All @@ -3794,7 +3794,7 @@ def delete_discovery_by_id(self,
**request_parameters):
""" This function is an alias of delete_discovery_by_id_v1 .
Args:
id(basestring): id path parameter. Discovery ID .
id(str): id path parameter. Discovery ID .
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand All @@ -3821,7 +3821,7 @@ def update_global_credentials(self,
""" This function is an alias of update_global_credentials_v1 .
Args:
siteUuids(list): Discovery's List of siteUuids where credential is to be updated (list of strings).
global_credential_id(basestring): globalCredentialId path parameter. Global credential Uuid .
global_credential_id(str): globalCredentialId path parameter. Global credential Uuid .
headers(dict): Dictionary of HTTP Headers to send with the Request
.
payload(): A JSON serializable Python object to send in the
Expand Down Expand Up @@ -3851,7 +3851,7 @@ def get_credential_sub_type_by_credential_id(self,
**request_parameters):
""" This function is an alias of get_credential_sub_type_by_credential_id_v1 .
Args:
id(basestring): id path parameter. Global Credential ID .
id(str): id path parameter. Global Credential ID .
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand Down Expand Up @@ -3977,23 +3977,23 @@ def get_network_devices_from_discovery(self,
**request_parameters):
""" This function is an alias of get_network_devices_from_discovery_v1 .
Args:
id(basestring): id path parameter. Discovery ID .
task_id(basestring): taskId query parameter.
sort_by(basestring): sortBy query parameter. Sort by field. Available values are pingStatus,
id(str): id path parameter. Discovery ID .
task_id(str): taskId query parameter.
sort_by(str): sortBy query parameter. Sort by field. Available values are pingStatus,
cliStatus,snmpStatus, httpStatus and netconfStatus .
sort_order(basestring): sortOrder query parameter. Order of sorting based on sortBy. Available values
sort_order(str): sortOrder query parameter. Order of sorting based on sortBy. Available values
are 'asc' and 'des' .
ip_address(basestring, list, set, tuple): ipAddress query parameter. IP Address of the device .
ping_status(basestring, list, set, tuple): pingStatus query parameter. Ping status for the IP during the
ip_address(str, list, set, tuple): ipAddress query parameter. IP Address of the device .
ping_status(str, list, set, tuple): pingStatus query parameter. Ping status for the IP during the
job run. Available values are 'SUCCESS', 'FAILURE', 'NOT-PROVIDED' and 'NOT-VALIDATED' .
snmp_status(basestring, list, set, tuple): snmpStatus query parameter. SNMP status for the IP during the
snmp_status(str, list, set, tuple): snmpStatus query parameter. SNMP status for the IP during the
job run. Available values are 'SUCCESS', 'FAILURE', 'NOT-PROVIDED' and 'NOT-VALIDATED' .
clistatus(basestring, list, set, tuple): cliStatus query parameter. CLI status for the IP during the job
clistatus(str, list, set, tuple): cliStatus query parameter. CLI status for the IP during the job
run. Available values are 'SUCCESS', 'FAILURE', 'NOT-PROVIDED' and 'NOT-VALIDATED' .
netconf_status(basestring, list, set, tuple): netconfStatus query parameter. NETCONF status for the IP
netconf_status(str, list, set, tuple): netconfStatus query parameter. NETCONF status for the IP
during the job run. Available values are 'SUCCESS', 'FAILURE', 'NOT-PROVIDED' and 'NOT-
VALIDATED' .
http_status(basestring, list, set, tuple): httpStatus query parameter. HTTP staus for the IP during the
http_status(str, list, set, tuple): httpStatus query parameter. HTTP staus for the IP during the
job run. Available values are 'SUCCESS', 'FAILURE', 'NOT-PROVIDED' and 'NOT-VALIDATED' .
headers(dict): Dictionary of HTTP Headers to send with the Request
.
Expand Down Expand Up @@ -4376,7 +4376,7 @@ def delete_global_credential(self,
**request_parameters):
""" This function is an alias of delete_global_credential_v2 .
Args:
id(basestring): id path parameter. Global Credential id .
id(str): id path parameter. Global Credential id .
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand Down Expand Up @@ -4427,7 +4427,7 @@ def get_discovery_by_id(self,
**request_parameters):
""" This function is an alias of get_discovery_by_id_v1 .
Args:
id(basestring): id path parameter. Discovery ID .
id(str): id path parameter. Discovery ID .
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand Down Expand Up @@ -4583,8 +4583,8 @@ def get_discovery_jobs_by_ip(self,
Args:
offset(int): offset query parameter.
limit(int): limit query parameter.
ip_address(basestring): ipAddress query parameter.
name(basestring): name query parameter.
ip_address(str): ipAddress query parameter.
name(str): name query parameter.
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand Down
2 changes: 1 addition & 1 deletion catalystcentersdk/api/v2_3_7_6_1/eox.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def get_eox_details_per_device(self,
**request_parameters):
""" This function is an alias of get_eox_details_per_device_v1 .
Args:
device_id(basestring): deviceId path parameter. Device instance UUID .
device_id(str): deviceId path parameter. Device instance UUID .
headers(dict): Dictionary of HTTP Headers to send with the Request
.
**request_parameters: Additional request parameters (provides
Expand Down
Loading

0 comments on commit 2ac074f

Please sign in to comment.