Skip to content

Commit c77927c

Browse files
committed
Pull request #51: ISGAPPSEC2-36317-no-api-to-retrieve-compute-nodes-and-aps-ports
Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-36317-no-api-to-retrieve-compute-nodes-and-aps-ports to main Squashed commit of the following: commit c06e8485a534b49004303ef8a42e42ec02eab316 Author: iustmitu <iustin.mitu@keysight.com> Date: Fri Dec 12 11:51:05 2025 +0200 regenerated wrapper, support for cumpute nodes on aps
1 parent bd045bc commit c77927c

58 files changed

Lines changed: 599 additions & 49 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ Class | Method | HTTP request | Description
592592
- [GetStatsPlugins200Response](docs/GetStatsPlugins200Response.md)
593593
- [GetStatsPlugins200ResponseOneOf](docs/GetStatsPlugins200ResponseOneOf.md)
594594
- [GetStrikesOperation](docs/GetStrikesOperation.md)
595+
- [GroupTLS13](docs/GroupTLS13.md)
595596
- [HTTPProfile](docs/HTTPProfile.md)
596597
- [HTTPReqMeta](docs/HTTPReqMeta.md)
597598
- [HTTPResMeta](docs/HTTPResMeta.md)
@@ -670,6 +671,7 @@ Class | Method | HTTP request | Description
670671
- [PayloadMetadata](docs/PayloadMetadata.md)
671672
- [PepDUT](docs/PepDUT.md)
672673
- [PfsP2Group](docs/PfsP2Group.md)
674+
- [PlaylistMetadata](docs/PlaylistMetadata.md)
673675
- [Plugin](docs/Plugin.md)
674676
- [PluginStats](docs/PluginStats.md)
675677
- [Port](docs/Port.md)

cyperf/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@
261261
from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response
262262
from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf
263263
from cyperf.models.get_strikes_operation import GetStrikesOperation
264+
from cyperf.models.group_tls13 import GroupTLS13
264265
from cyperf.models.http_profile import HTTPProfile
265266
from cyperf.models.http_req_meta import HTTPReqMeta
266267
from cyperf.models.http_res_meta import HTTPResMeta
@@ -339,6 +340,7 @@
339340
from cyperf.models.payload_metadata import PayloadMetadata
340341
from cyperf.models.pep_dut import PepDUT
341342
from cyperf.models.pfs_p2_group import PfsP2Group
343+
from cyperf.models.playlist_metadata import PlaylistMetadata
342344
from cyperf.models.plugin import Plugin
343345
from cyperf.models.plugin_stats import PluginStats
344346
from cyperf.models.port import Port

cyperf/api/agents_api.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2613,6 +2613,7 @@ def get_controllers(
26132613
self,
26142614
take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None,
26152615
skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None,
2616+
include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None,
26162617
_request_timeout: Union[
26172618
None,
26182619
Annotated[StrictFloat, Field(gt=0)],
@@ -2634,6 +2635,8 @@ def get_controllers(
26342635
:type take: int
26352636
:param skip: The number of search results to skip
26362637
:type skip: int
2638+
:param include: Specifies if the sub-fields that are objects should be included.
2639+
:type include: str
26372640
:param _request_timeout: timeout setting for this request. If one
26382641
number provided, it will be total request
26392642
timeout. It can also be a pair (tuple) of
@@ -2659,6 +2662,7 @@ def get_controllers(
26592662
_param = self._get_controllers_serialize(
26602663
take=take,
26612664
skip=skip,
2665+
include=include,
26622666
_request_auth=_request_auth,
26632667
_content_type=_content_type,
26642668
_headers=_headers,
@@ -2681,6 +2685,7 @@ def get_controllers_with_http_info(
26812685
self,
26822686
take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None,
26832687
skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None,
2688+
include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None,
26842689
_request_timeout: Union[
26852690
None,
26862691
Annotated[StrictFloat, Field(gt=0)],
@@ -2702,6 +2707,8 @@ def get_controllers_with_http_info(
27022707
:type take: int
27032708
:param skip: The number of search results to skip
27042709
:type skip: int
2710+
:param include: Specifies if the sub-fields that are objects should be included.
2711+
:type include: str
27052712
:param _request_timeout: timeout setting for this request. If one
27062713
number provided, it will be total request
27072714
timeout. It can also be a pair (tuple) of
@@ -2727,6 +2734,7 @@ def get_controllers_with_http_info(
27272734
_param = self._get_controllers_serialize(
27282735
take=take,
27292736
skip=skip,
2737+
include=include,
27302738
_request_auth=_request_auth,
27312739
_content_type=_content_type,
27322740
_headers=_headers,
@@ -2749,6 +2757,7 @@ def get_controllers_without_preload_content(
27492757
self,
27502758
take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None,
27512759
skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None,
2760+
include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None,
27522761
_request_timeout: Union[
27532762
None,
27542763
Annotated[StrictFloat, Field(gt=0)],
@@ -2770,6 +2779,8 @@ def get_controllers_without_preload_content(
27702779
:type take: int
27712780
:param skip: The number of search results to skip
27722781
:type skip: int
2782+
:param include: Specifies if the sub-fields that are objects should be included.
2783+
:type include: str
27732784
:param _request_timeout: timeout setting for this request. If one
27742785
number provided, it will be total request
27752786
timeout. It can also be a pair (tuple) of
@@ -2795,6 +2806,7 @@ def get_controllers_without_preload_content(
27952806
_param = self._get_controllers_serialize(
27962807
take=take,
27972808
skip=skip,
2809+
include=include,
27982810
_request_auth=_request_auth,
27992811
_content_type=_content_type,
28002812
_headers=_headers,
@@ -2816,6 +2828,7 @@ def _get_controllers_serialize(
28162828
self,
28172829
take,
28182830
skip,
2831+
include,
28192832
_request_auth,
28202833
_content_type,
28212834
_headers,
@@ -2844,6 +2857,10 @@ def _get_controllers_serialize(
28442857

28452858
_query_params.append(('skip', skip))
28462859

2860+
if include is not None:
2861+
2862+
_query_params.append(('include', include))
2863+
28472864
# process the header parameters
28482865
# process the form parameters
28492866
# process the body parameter

cyperf/dynamic_models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227
GetStatsPlugins200Response = DynamicModel('GetStatsPlugins200Response', (), {} )
228228
GetStatsPlugins200ResponseOneOf = DynamicModel('GetStatsPlugins200ResponseOneOf', (), {} )
229229
GetStrikesOperation = DynamicModel('GetStrikesOperation', (), {} )
230+
GroupTLS13 = DynamicModel('GroupTLS13', (), {} )
230231
HTTPProfile = DynamicModel('HTTPProfile', (), {} )
231232
HTTPReqMeta = DynamicModel('HTTPReqMeta', (), {} )
232233
HTTPResMeta = DynamicModel('HTTPResMeta', (), {} )
@@ -305,6 +306,7 @@
305306
PayloadMetadata = DynamicModel('PayloadMetadata', (), {} )
306307
PepDUT = DynamicModel('PepDUT', (), {} )
307308
PfsP2Group = DynamicModel('PfsP2Group', (), {} )
309+
PlaylistMetadata = DynamicModel('PlaylistMetadata', (), {} )
308310
Plugin = DynamicModel('Plugin', (), {} )
309311
PluginStats = DynamicModel('PluginStats', (), {} )
310312
Port = DynamicModel('Port', (), {} )

cyperf/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ class LinkNameException(Exception):
227227
from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response
228228
from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf
229229
from cyperf.models.get_strikes_operation import GetStrikesOperation
230+
from cyperf.models.group_tls13 import GroupTLS13
230231
from cyperf.models.http_profile import HTTPProfile
231232
from cyperf.models.http_req_meta import HTTPReqMeta
232233
from cyperf.models.http_res_meta import HTTPResMeta
@@ -305,6 +306,7 @@ class LinkNameException(Exception):
305306
from cyperf.models.payload_metadata import PayloadMetadata
306307
from cyperf.models.pep_dut import PepDUT
307308
from cyperf.models.pfs_p2_group import PfsP2Group
309+
from cyperf.models.playlist_metadata import PlaylistMetadata
308310
from cyperf.models.plugin import Plugin
309311
from cyperf.models.plugin_stats import PluginStats
310312
from cyperf.models.port import Port

cyperf/models/auth_method_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class AuthMethodType(str, Enum):
3030
AAA = 'AAA'
3131
AAA_MINUS_CERTIFICATE = 'AAA-CERTIFICATE'
3232
CERTIFICATE = 'CERTIFICATE'
33+
SAML = 'SAML'
3334

3435
@classmethod
3536
def from_json(cls, json_str: str) -> Self:

cyperf/models/auth_settings.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from cyperf.models.api_link import APILink
2424
from cyperf.models.auth_method_type import AuthMethodType
2525
from cyperf.models.params import Params
26+
from cyperf.models.simulated_id_p import SimulatedIdP
2627
from typing import Optional, Set, Union, GenericAlias, get_args
2728
from typing_extensions import Self
2829
from pydantic import Field, PrivateAttr
@@ -38,10 +39,11 @@ class AuthSettings(BaseModel):
3839
key_file_password: Optional[StrictStr] = Field(default=None, description="The key file password of the TLS VPN authentication.", alias="KeyFilePassword")
3940
passwords: Optional[List[StrictStr]] = Field(default=None, alias="Passwords")
4041
passwords_param: Optional[Params] = Field(default=None, alias="PasswordsParam")
42+
simulated_id_p: Optional[SimulatedIdP] = Field(default=None, alias="SimulatedIdP")
4143
usernames: Optional[List[StrictStr]] = Field(default=None, alias="Usernames")
4244
usernames_param: Optional[Params] = Field(default=None, alias="UsernamesParam")
4345
links: Optional[List[APILink]] = None
44-
__properties: ClassVar[List[str]] = ["AuthMethod", "AuthParam", "CertificateFile", "KeyFile", "KeyFilePassword", "Passwords", "PasswordsParam", "Usernames", "UsernamesParam", "links"]
46+
__properties: ClassVar[List[str]] = ["AuthMethod", "AuthParam", "CertificateFile", "KeyFile", "KeyFilePassword", "Passwords", "PasswordsParam", "SimulatedIdP", "Usernames", "UsernamesParam", "links"]
4547

4648
model_config = ConfigDict(
4749
populate_by_name=True,
@@ -94,6 +96,9 @@ def to_dict(self) -> Dict[str, Any]:
9496
# override the default output from pydantic by calling `to_dict()` of passwords_param
9597
if self.passwords_param:
9698
_dict['PasswordsParam'] = self.passwords_param.to_dict()
99+
# override the default output from pydantic by calling `to_dict()` of simulated_id_p
100+
if self.simulated_id_p:
101+
_dict['SimulatedIdP'] = self.simulated_id_p.to_dict()
97102
# override the default output from pydantic by calling `to_dict()` of usernames_param
98103
if self.usernames_param:
99104
_dict['UsernamesParam'] = self.usernames_param.to_dict()
@@ -125,6 +130,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
125130
"KeyFilePassword": obj.get("KeyFilePassword"),
126131
"Passwords": obj.get("Passwords") if obj.get("Passwords") is not None else [],
127132
"PasswordsParam": Params.from_dict(obj["PasswordsParam"]) if obj.get("PasswordsParam") is not None else None,
133+
"SimulatedIdP": SimulatedIdP.from_dict(obj["SimulatedIdP"]) if obj.get("SimulatedIdP") is not None else None,
128134
"Usernames": obj.get("Usernames") if obj.get("Usernames") is not None else [],
129135
"UsernamesParam": Params.from_dict(obj["UsernamesParam"]) if obj.get("UsernamesParam") is not None else None,
130136
"links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None

cyperf/models/cisco_any_connect_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ class CiscoAnyConnectSettings(BaseModel):
4848
@field_validator('vpn_gateway')
4949
def vpn_gateway_validate_regular_expression(cls, value):
5050
"""Validates the regular expression"""
51-
if not re.match(r"^$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-\_]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-\_]*[A-Za-z0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{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[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,3}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:[0-9a-fA-F]{1,4})):)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))$)", value):
52-
raise ValueError(r"must validate the regular expression /^$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-\_]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-\_]*[A-Za-z0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5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?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))$)", value):
52+
raise ValueError(r"must validate the regular expression /^$|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-_]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-_]*[A-Za-z0-9])$|^(?:(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-fA-F]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(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5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,4}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,5}(?:(?:[0-9a-fA-F]{1,4})))?::)(?:(?:[0-9a-fA-F]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-fA-F]{1,4})):){0,6}(?:(?:[0-9a-fA-F]{1,4})))?::))))$)/")
5353
return value
5454

5555
model_config = ConfigDict(

0 commit comments

Comments
 (0)