Skip to content

Commit

Permalink
Merge pull request #33 from CiscoISE/develop
Browse files Browse the repository at this point in the history
New version 2.0.5
  • Loading branch information
bvargasre authored Oct 13, 2022
2 parents 8f6f558 + 9a77c51 commit 39c3c17
Show file tree
Hide file tree
Showing 19 changed files with 542 additions and 730 deletions.
15 changes: 12 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.4] - 2021-07-11
## [2.0.5] - 2022-12-10

### Fixed

- Repaired the request body of the network_access_network_conditions.create_network_access_network_condition request 3.1_patch_1 and 3.1.1
- Repaired the request body of the network_access_network_conditions.update_network_access_network_condition_by_id request 3.1_patch_1 and 3.1.1


## [2.0.4] - 2022-07-11

### Fixed

- Update check_type to pass an instance of a list.

## [2.0.3] - 2021-06-07
## [2.0.3] - 2022-06-07

### Changed

Expand Down Expand Up @@ -355,4 +363,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[2.0.2]: https://github.com/CiscoISE/ciscoisesdk/compare/v2.0.1...v2.0.2
[2.0.3]: https://github.com/CiscoISE/ciscoisesdk/compare/v2.0.2...v2.0.3
[2.0.4]: https://github.com/CiscoISE/ciscoisesdk/compare/v2.0.3...v2.0.4
[Unreleased]: https://github.com/CiscoISE/ciscoisesdk/compare/v2.0.4...develop
[2.0.5]: https://github.com/CiscoISE/ciscoisesdk/compare/v2.0.4...v2.0.5
[Unreleased]: https://github.com/CiscoISE/ciscoisesdk/compare/v2.0.5...develop
131 changes: 117 additions & 14 deletions ciscoisesdk/api/v3_1_1/network_access_network_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class NetworkAccessNetworkConditions(object):
API and exposes the API as native Python
methods that return native Python objects.
Policy APIs for manage Policy Sets, authorization policies, authentication policies, and policy elements.
"""

Expand Down Expand Up @@ -139,11 +140,15 @@ def get_all(self,
)

def create_network_access_network_condition(self,
cli_dnis_list=None,
condition_type=None,
conditions=None,
description=None,
device_group_list=None,
device_list=None,
id=None,
ip_addr_list=None,
link=None,
mac_addr_list=None,
name=None,
headers=None,
payload=None,
Expand All @@ -152,18 +157,49 @@ def create_network_access_network_condition(self,
"""Network Access Creates network condition.
Args:
cli_dnis_list(list): This field should contain a Caller
ID (CLI), comma, and Called ID (DNIS).
Line format Caller ID (CLI), Called ID
(DNIS), property of the request body
(list of strings).
condition_type(string): This field determines the
content of the conditions field,
property of the request body. Available
values are 'DeviceCondition',
'DevicePortCondition' and
'EndstationCondition'.
conditions(list): conditions, property of the request
body (list of objects).
description(string): description, property of the
request body.
device_group_list(list): This field should contain a
tuple with NDG Root, comma, and an NDG
(that it under the root). Line format
NDG Root Name, NDG, Port, property of
the request body (list of strings).
device_list(list): This field should contain Device
Name. The device name must be the same
as the name field in a Network Device
object. Line format Device Name,
property of the request body (list of
strings).
id(string): id, property of the request body.
ip_addr_list(list): This field should contain IP address
or subnet. IP address can be IPV4
format (n.n.n.n) or IPV6 format
(n:n:n:n:n:n:n:n). IP subnet can be
IPV4 format (n.n.n.n/m) or IPV6 format
(n:n:n:n:n:n:n:n/m). Line format IP
Address or subnet, property of the
request body (list of strings).
link(object): link, property of the request body.
mac_addr_list(list): This field should contain
Endstation MAC address, comma, and
Destination MAC addresses. Each Max
address must include twelve hexadecimal
digits using formats nn:nn:nn:nn:nn:nn
or nn-nn-nn-nn-nn-nn or nnnn.nnnn.nnnn
or nnnnnnnnnnnn. Line format Endstation
MAC,Destination MAC , property of the
request body (list of strings).
name(string): Network Condition name, property of the
request body.
headers(dict): Dictionary of HTTP Headers to send with the Request
Expand Down Expand Up @@ -229,8 +265,16 @@ def create_network_access_network_condition(self,
link,
'name':
name,
'conditions':
conditions,
'deviceList':
device_list,
'cliDnisList':
cli_dnis_list,
'ipAddrList':
ip_addr_list,
'macAddrList':
mac_addr_list,
'deviceGroupList':
device_group_list,
}
_payload.update(payload or {})
_payload = dict_from_items_with_values(_payload)
Expand All @@ -253,11 +297,15 @@ def create_network_access_network_condition(self,
return self._object_factory('bpm_f4dbfb874b3b56d7a651d6732f1bd55e_v3_1_1', _api_response)

def create(self,
cli_dnis_list=None,
condition_type=None,
conditions=None,
description=None,
device_group_list=None,
device_list=None,
id=None,
ip_addr_list=None,
link=None,
mac_addr_list=None,
name=None,
headers=None,
payload=None,
Expand All @@ -268,11 +316,15 @@ def create(self,
NetworkAccessNetworkConditions.create_network_access_network_condition>`_
"""
return self.create_network_access_network_condition(
cli_dnis_list=cli_dnis_list,
condition_type=condition_type,
conditions=conditions,
description=description,
device_group_list=device_group_list,
device_list=device_list,
id=id,
ip_addr_list=ip_addr_list,
link=link,
mac_addr_list=mac_addr_list,
name=name,
payload=payload,
active_validation=active_validation,
Expand Down Expand Up @@ -358,10 +410,14 @@ def get_by_id(self,

def update_network_access_network_condition_by_id(self,
id,
cli_dnis_list=None,
condition_type=None,
conditions=None,
description=None,
device_group_list=None,
device_list=None,
ip_addr_list=None,
link=None,
mac_addr_list=None,
name=None,
headers=None,
payload=None,
Expand All @@ -370,18 +426,49 @@ def update_network_access_network_condition_by_id(self,
"""Network Access Update network condition.
Args:
cli_dnis_list(list): This field should contain a Caller
ID (CLI), comma, and Called ID (DNIS).
Line format Caller ID (CLI), Called ID
(DNIS), property of the request body
(list of strings).
condition_type(string): This field determines the
content of the conditions field,
property of the request body. Available
values are 'DeviceCondition',
'DevicePortCondition' and
'EndstationCondition'.
conditions(list): conditions, property of the request
body (list of objects).
description(string): description, property of the
request body.
device_group_list(list): This field should contain a
tuple with NDG Root, comma, and an NDG
(that it under the root). Line format
NDG Root Name, NDG, Port, property of
the request body (list of strings).
device_list(list): This field should contain Device
Name. The device name must be the same
as the name field in a Network Device
object. Line format Device Name,
property of the request body (list of
strings).
id(string): id, property of the request body.
ip_addr_list(list): This field should contain IP address
or subnet. IP address can be IPV4
format (n.n.n.n) or IPV6 format
(n:n:n:n:n:n:n:n). IP subnet can be
IPV4 format (n.n.n.n/m) or IPV6 format
(n:n:n:n:n:n:n:n/m). Line format IP
Address or subnet, property of the
request body (list of strings).
link(object): link, property of the request body.
mac_addr_list(list): This field should contain
Endstation MAC address, comma, and
Destination MAC addresses. Each Max
address must include twelve hexadecimal
digits using formats nn:nn:nn:nn:nn:nn
or nn-nn-nn-nn-nn-nn or nnnn.nnnn.nnnn
or nnnnnnnnnnnn. Line format Endstation
MAC,Destination MAC , property of the
request body (list of strings).
name(string): Network Condition name, property of the
request body.
id(basestring): id path parameter. Condition id.
Expand Down Expand Up @@ -451,8 +538,16 @@ def update_network_access_network_condition_by_id(self,
link,
'name':
name,
'conditions':
conditions,
'deviceList':
device_list,
'cliDnisList':
cli_dnis_list,
'ipAddrList':
ip_addr_list,
'macAddrList':
mac_addr_list,
'deviceGroupList':
device_group_list,
}
_payload.update(payload or {})
_payload = dict_from_items_with_values(_payload)
Expand All @@ -477,10 +572,14 @@ def update_network_access_network_condition_by_id(self,

def update_by_id(self,
id,
cli_dnis_list=None,
condition_type=None,
conditions=None,
description=None,
device_group_list=None,
device_list=None,
ip_addr_list=None,
link=None,
mac_addr_list=None,
name=None,
headers=None,
payload=None,
Expand All @@ -492,10 +591,14 @@ def update_by_id(self,
"""
return self.update_network_access_network_condition_by_id(
id=id,
cli_dnis_list=cli_dnis_list,
condition_type=condition_type,
conditions=conditions,
description=description,
device_group_list=device_group_list,
device_list=device_list,
ip_addr_list=ip_addr_list,
link=link,
mac_addr_list=mac_addr_list,
name=name,
payload=payload,
active_validation=active_validation,
Expand Down
Loading

0 comments on commit 39c3c17

Please sign in to comment.