Skip to content

Commit

Permalink
Merge pull request #75 from CiscoISE/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
bvargasre authored Feb 15, 2025
2 parents 7fec8ed + 7259952 commit ceb3a28
Show file tree
Hide file tree
Showing 112 changed files with 15,632 additions and 435 deletions.
34 changes: 33 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.3.0] - 2025-02-14
### Added
- The following functions were added for version 3.3 patch 1:
+ `patch_allowed_protocols_id`
+ `patch_authorization_profile_id`
+ `patch_certificate_profile_id`
+ `patch_downloadable_acl_id`
+ `patch_endpoint_group_id`
+ `patch_endpoint_id`
+ `patch_external_radius_server_id`
+ `patch_filter_policy_id`
+ `patch_guest_smtp_notification_settings_id`
+ `patch_guest_ssid_id`
+ `patch_hotspot_portal_portal_id`
+ `patch_identity_group_id`
+ `patch_id_store_sequence_id`
+ `patch_internal_user_name_name`
+ `patch_internal_user_id`
+ `patch_network_device_group_id`
+ `patch_network_device_name_name`
+ `patch_network_device_id`
+ `patch_portal_theme_id`
+ `patch_radius_server_sequence_id`
+ `patch_restid_store_name_name`
+ `patch_restid_store_id`
+ `patch_self_reg_portal_portal_id`
+ `patch_tacacs_command_sets_id`
+ `patch_tacacs_external_servers_id`
+ `patch_tacacs_profile_id`
+ `patch_tacacs_server_sequence_id`

## [2.2.3] - 2024-08-05
- Update `endpoint.get_endpoints` in 3.3 patch 1 change `filterType` to `filtertype` json request
- Update `SupportBundleDownload` API to remove unused parameters
Expand Down Expand Up @@ -460,4 +491,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[2.2.1]: https://github.com/CiscoISE/ciscoisesdk/compare/v2.2.0...v2.2.1
[2.2.2]: https://github.com/CiscoISE/ciscoisesdk/compare/v2.2.1...v2.2.2
[2.2.3]: https://github.com/CiscoISE/ciscoisesdk/compare/v2.2.2...v2.2.3
[Unreleased]: https://github.com/CiscoISE/ciscoisesdk/compare/v2.2.3...develop
[2.3.0]: https://github.com/CiscoISE/ciscoisesdk/compare/v2.2.3...v2.3.0
[Unreleased]: https://github.com/CiscoISE/ciscoisesdk/compare/v2.3.0...develop
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ The following table shows the supported versions.
* - 3.2_beta
- 2.1.2
* - 3.3_patch_1
- 2.2.3
- 2.3.0

If your SDK is older please consider updating it first.

Expand Down
221 changes: 221 additions & 0 deletions ciscoisesdk/api/v3_3_patch_1/allowed_protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,3 +1332,224 @@ def get_version(self,
_api_response = self._session.get(endpoint_full_url, params=_params)

return self._object_factory('bpm_c0f61393474f5744ab0a263a232d3b96_v3_3_patch_1', _api_response)

def patch_allowed_protocols_id(self,
id,
allow_chap=None,
allow_eap_fast=None,
allow_eap_md5=None,
allow_eap_tls=None,
allow_eap_ttls=None,
allow_leap=None,
allow_ms_chap_v1=None,
allow_ms_chap_v2=None,
allow_pap_ascii=None,
allow_peap=None,
allow_preferred_eap_protocol=None,
allow_teap=None,
allow_weak_ciphers_for_eap=None,
description=None,
eap_fast=None,
eap_tls=None,
eap_tls_l_bit=None,
eap_ttls=None,
five_g=None,
name=None,
peap=None,
preferred_eap_protocol=None,
process_host_lookup=None,
require_message_auth=None,
rsa_pss=None,
teap=None,
headers=None,
payload=None,
active_validation=True,
**query_parameters):
"""Update any attribute subset. Only attributes that sent will be
affected.
Args:
allow_chap(boolean): allowChap, property of the request
body.
allow_eap_fast(boolean): allowEapFast, property of the
request body.
allow_eap_md5(boolean): allowEapMd5, property of the
request body.
allow_eap_tls(boolean): allowEapTls, property of the
request body.
allow_eap_ttls(boolean): allowEapTtls, property of the
request body.
allow_leap(boolean): allowLeap, property of the request
body.
allow_ms_chap_v1(boolean): allowMsChapV1, property of
the request body.
allow_ms_chap_v2(boolean): allowMsChapV2, property of
the request body.
allow_pap_ascii(boolean): allowPapAscii, property of the
request body.
allow_peap(boolean): allowPeap, property of the request
body.
allow_preferred_eap_protocol(boolean):
allowPreferredEapProtocol, property of
the request body.
allow_teap(boolean): allowTeap, property of the request
body.
allow_weak_ciphers_for_eap(boolean):
allowWeakCiphersForEap, property of the
request body.
description(string): Description, property of the
request body.
eap_fast(): eapFast, property of the request body.
eap_tls(): eapTls, property of the request body.
eap_tls_l_bit(boolean): eapTlsLBit, property of the
request body.
eap_ttls(): eapTtls, property of the request body.
five_g(boolean): fiveG, property of the request body.
id(string): Id, property of the request body.
name(string): name, property of the request body.
peap(): peap, property of the request body.
preferred_eap_protocol(string): The preferredEapProtocol
is required only if
allowPreferredEapProtocol is true,
otherwise it must be ignored. Allowed
Values: EAP_FAST, PEAP, LEAP, EAP_MD5,
EAP_TLS, EAP_TTLS, TEAP, property of the
request body.
process_host_lookup(boolean): processHostLookup,
property of the request body.
require_message_auth(boolean): requireMessageAuth,
property of the request body.
rsa_pss(boolean): rsaPss, property of the request body.
teap(): teap, property of the request body.
id(str): id path parameter.
headers(dict): Dictionary of HTTP Headers to send with the Request
.
payload(dict): A JSON serializable Python object to send in the
body of the Request.
active_validation(bool): Enable/Disable payload validation.
Defaults to True.
**query_parameters: Additional query parameters (provides
support for parameters that may be added in the future).
Returns:
RestResponse: REST response with following properties:
- headers(MyDict): response headers.
- response(list): A list of MyDict objects. Access the object's properties by using the dot notation
or the bracket notation.
- content(bytes): representation of the request's response
- text(str): representation of the request's response
Raises:
TypeError: If the parameter types are incorrect.
MalformedRequest: If the request body created is invalid.
ApiError: If the Identity Services Engine cloud returns an error.
"""
check_type(headers, dict)

if headers is not None:
pass

with_custom_headers = False
_headers = self._session.headers or {}
if headers:
_headers.update(dict_of_str(headers))
with_custom_headers = True
is_xml_payload = 'application/xml' in _headers.get('Content-Type', [])
if active_validation and is_xml_payload:
check_type(payload, str)
if active_validation and not is_xml_payload:
check_type(payload, dict)
check_type(id, str,
may_be_none=False)

_params = {
}
_params.update(query_parameters)
_params = dict_from_items_with_values(_params)

path_params = {
'id': id,
}
if is_xml_payload:
_payload = payload
else:
_tmp_payload = {
'processHostLookup':
process_host_lookup,
'allowPapAscii':
allow_pap_ascii,
'allowChap':
allow_chap,
'allowMsChapV1':
allow_ms_chap_v1,
'allowMsChapV2':
allow_ms_chap_v2,
'allowEapMd5':
allow_eap_md5,
'allowLeap':
allow_leap,
'allowEapTls':
allow_eap_tls,
'allowEapTtls':
allow_eap_ttls,
'allowEapFast':
allow_eap_fast,
'allowPeap':
allow_peap,
'allowTeap':
allow_teap,
'allowPreferredEapProtocol':
allow_preferred_eap_protocol,
'eapTlsLBit':
eap_tls_l_bit,
'allowWeakCiphersForEap':
allow_weak_ciphers_for_eap,
'fiveG':
five_g,
'rsaPss':
rsa_pss,
'requireMessageAuth':
require_message_auth,
'preferredEapProtocol':
preferred_eap_protocol,
'eapTls':
eap_tls,
'peap':
peap,
'eapTtls':
eap_ttls,
'eapFast':
eap_fast,
'teap':
teap,
'name':
name,
'id':
id,
'description':
description,
}
_payload = {
'AllowedProtocols': dict_from_items_with_values(_tmp_payload)
}
_payload.update(payload or {})
_payload = dict_from_items_with_values(_payload)
if active_validation and not is_xml_payload:
self._request_validator('jsd_da4eb995ac152158f324dfdef5e73d6_v3_3_patch_1')\
.validate(_payload)

e_url = ('/ers/config/allowedprotocols/{id}')
endpoint_full_url = apply_path_params(e_url, path_params)

request_params = {'data': _payload} if is_xml_payload else {'json': _payload}
if with_custom_headers:
_api_response = self._session.patch(endpoint_full_url, params=_params,
headers=_headers,
**request_params)
else:
_api_response = self._session.patch(endpoint_full_url, params=_params,
**request_params)

return self._object_factory('bpm_da4eb995ac152158f324dfdef5e73d6_v3_3_patch_1', _api_response)
Loading

0 comments on commit ceb3a28

Please sign in to comment.